[Pkg-javascript-commits] [Git][js-team/node-wide-align][upstream] New upstream version 1.1.3
Xavier Guimard
gitlab at salsa.debian.org
Wed Aug 28 21:36:19 BST 2019
Xavier Guimard pushed to branch upstream at Debian JavaScript Maintainers / node-wide-align
Commits:
e904257e by Xavier Guimard at 2019-08-28T20:24:58Z
New upstream version 1.1.3
- - - - -
4 changed files:
- − .npmignore
- + package-lock.json
- package.json
- test/align.js
Changes:
=====================================
.npmignore deleted
=====================================
@@ -1,5 +0,0 @@
-*~
-/node_modules
-.#*
-/.nyc_output
-/coverage
=====================================
package-lock.json
=====================================
The diff for this file was not included because it is too large.
=====================================
package.json
=====================================
@@ -1,10 +1,11 @@
{
"name": "wide-align",
- "version": "1.1.0",
+ "version": "1.1.3",
"description": "A wide-character aware text alignment function for use on the console or with fixed width fonts.",
"main": "align.js",
"scripts": {
- "test": "tap --coverage test/*.js"
+ "test": "tap --coverage test/*.js",
+ "version": "perl -pi -e 's/^( \"version\": $ENV{npm_config_node_version}\").*?\",/$1abc\",/' package-lock.json ; git add package-lock.json"
},
"keywords": [
"wide",
@@ -21,9 +22,12 @@
"url": "https://github.com/iarna/wide-align"
},
"dependencies": {
- "string-width": "^1.0.1"
+ "string-width": "^1.0.2 || 2"
},
"devDependencies": {
- "tap": "^2.3.2"
- }
+ "tap": "10 || 11 || 12"
+ },
+ "files": [
+ "align.js"
+ ]
}
=====================================
test/align.js
=====================================
@@ -29,9 +29,9 @@ test('align', function (t) {
t.is(align.center(' ', 2), ' ', 'center align whitespace overflow')
t.is(align.right(' ', 2), ' ', 'right align whitespace overflow')
- t.is(align.left('x ', 10), 'x ', 'left align whitespace mix')
- t.is(align.center('x ', 10), ' x ', 'center align whitespace mix')
- t.is(align.right('x ', 10), ' x', 'right align whitespace mix')
+ t.is(align.left(' x ', 10), ' x ', 'left align whitespace mix')
+ t.is(align.center(' x ', 10), ' x ', 'center align whitespace mix')
+ t.is(align.right(' x ', 10), ' x ', 'right align whitespace mix')
t.end()
})
View it on GitLab: https://salsa.debian.org/js-team/node-wide-align/commit/e904257e283145b5bf0c4bd7d7d0e26f807609a0
--
View it on GitLab: https://salsa.debian.org/js-team/node-wide-align/commit/e904257e283145b5bf0c4bd7d7d0e26f807609a0
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/20190828/03082791/attachment-0001.html>
More information about the Pkg-javascript-commits
mailing list