[Pkg-javascript-commits] [Git][js-team/node-gauge][upstream] New upstream version 4.0.4
Yadd (@yadd)
gitlab at salsa.debian.org
Thu May 19 09:57:01 BST 2022
Yadd pushed to branch upstream at Debian JavaScript Maintainers / node-gauge
Commits:
747bcf7e by Yadd at 2022-05-19T10:54:43+02:00
New upstream version 4.0.4
- - - - -
7 changed files:
- .commitlintrc.js
- .eslintrc.js
- .npmrc
- CHANGELOG.md
- lib/index.js
- package.json
- test/plumbing.js
Changes:
=====================================
.commitlintrc.js
=====================================
@@ -1,10 +1,9 @@
-// This file is automatically added by @npmcli/template-oss. Do not edit.
+/* This file is automatically added by @npmcli/template-oss. Do not edit. */
module.exports = {
extends: ['@commitlint/config-conventional'],
- // If you change rules be sure to also update release-please.yml
rules: {
- 'type-enum': [2, 'always', ['feat', 'fix', 'docs', 'chore', 'deps']],
+ 'type-enum': [2, 'always', ['feat', 'fix', 'docs', 'deps', 'chore']],
'header-max-length': [2, 'always', 80],
'subject-case': [0, 'always', ['lower-case', 'sentence-case', 'start-case']],
},
=====================================
.eslintrc.js
=====================================
@@ -1,4 +1,4 @@
-// This file is automatically added by @npmcli/template-oss. Do not edit.
+/* This file is automatically added by @npmcli/template-oss. Do not edit. */
const { readdirSync: readdir } = require('fs')
=====================================
.npmrc
=====================================
@@ -1,3 +1,3 @@
-;This file is automatically added by @npmcli/template-oss. Do not edit.
+; This file is automatically added by @npmcli/template-oss. Do not edit.
package-lock=false
=====================================
CHANGELOG.md
=====================================
@@ -1,3 +1,12 @@
+# Changelog
+
+### [4.0.4](https://github.com/npm/gauge/compare/v4.0.3...v4.0.4) (2022-03-28)
+
+
+### Bug Fixes
+
+* fix always true condition ([#160](https://github.com/npm/gauge/issues/160)) ([bebaf0b](https://github.com/npm/gauge/commit/bebaf0b0655f0bdc58a6548b04230cd420245e5e))
+
### v4.0.0
* BREAKING CHANGE: Drops support for Node v10 and non-LTS versions of v12 and v14
=====================================
lib/index.js
=====================================
@@ -91,8 +91,7 @@ Gauge.prototype._computeTheme = function (theme) {
if (typeof theme === 'string') {
theme = this._themes.getTheme(theme)
} else if (
- theme &&
- (Object.keys(theme).length === 0 || theme.hasUnicode != null || theme.hasColor != null)
+ Object.keys(theme).length === 0 || theme.hasUnicode != null || theme.hasColor != null
) {
var useUnicode = theme.hasUnicode == null ? hasUnicode() : theme.hasUnicode
var useColor = theme.hasColor == null ? hasColor : theme.hasColor
=====================================
package.json
=====================================
@@ -1,23 +1,23 @@
{
"name": "gauge",
- "version": "4.0.3",
+ "version": "4.0.4",
"description": "A terminal based horizontal gauge",
"main": "lib",
"scripts": {
"test": "tap",
- "lint": "eslint '**/*.js'",
- "postlint": "npm-template-check",
+ "lint": "eslint \"**/*.js\"",
+ "postlint": "template-oss-check",
"lintfix": "npm run lint -- --fix",
"preversion": "npm test",
"postversion": "npm publish",
"prepublishOnly": "git push origin --follow-tags",
"snap": "tap",
"posttest": "npm run lint",
- "template-copy": "npm-template-copy --force"
+ "template-oss-apply": "template-oss-apply --force"
},
"repository": {
"type": "git",
- "url": "https://github.com/npm/gauge"
+ "url": "https://github.com/npm/gauge.git"
},
"keywords": [
"progressbar",
@@ -41,16 +41,17 @@
"wide-align": "^1.1.5"
},
"devDependencies": {
- "@npmcli/template-oss": "^2.9.2",
+ "@npmcli/eslint-config": "^3.0.1",
+ "@npmcli/template-oss": "3.2.0",
"readable-stream": "^3.6.0",
- "tap": "^15.1.6"
+ "tap": "^16.0.1"
},
"files": [
- "bin",
- "lib"
+ "bin/",
+ "lib/"
],
"engines": {
- "node": "^12.13.0 || ^14.15.0 || >=16"
+ "node": "^12.13.0 || ^14.15.0 || >=16.0.0"
},
"tap": {
"branches": 79,
@@ -59,6 +60,7 @@
"lines": 90
},
"templateOSS": {
- "version": "2.9.2"
+ "//@npmcli/template-oss": "This file is partially managed by @npmcli/template-oss. Edits may be overwritten.",
+ "version": "3.2.0"
}
}
=====================================
test/plumbing.js
=====================================
@@ -57,9 +57,9 @@ t.test('show', function (t) {
})
t.test('width', function (t) {
- const plumbing = new Plumbing(theme, template)
+ const defaultWidth = new Plumbing(theme, template)
t.equal(
- plumbing.show({ name: 'test' }),
+ defaultWidth.show({ name: 'test' }),
'w:80, t:[{"type":"name"}], v:{"name":"test"}COLOR:resetERASECR'
)
t.end()
View it on GitLab: https://salsa.debian.org/js-team/node-gauge/-/commit/747bcf7e98a9dc75cd6fef6dde225d26dff2897b
--
View it on GitLab: https://salsa.debian.org/js-team/node-gauge/-/commit/747bcf7e98a9dc75cd6fef6dde225d26dff2897b
You're receiving this email because of your account on salsa.debian.org.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://alioth-lists.debian.net/pipermail/pkg-javascript-commits/attachments/20220519/c8935816/attachment-0001.htm>
More information about the Pkg-javascript-commits
mailing list