Skip to content
Commits on Source (13)
*~
/node_modules
.#*
/.nyc_output
/coverage
node-wide-align (1.1.0-2) UNRELEASED; urgency=medium
node-wide-align (1.1.3-1) unstable; urgency=medium
* Switch to github tarballs
* Team upload
-- Pirate Praveen <praveen@debian.org> Fri, 12 May 2017 10:36:26 +0530
[ Pirate Praveen ]
* Switch to github tarballs
[ Xavier Guimard ]
* Bump debhelper compatibility level to 12
* Declare compliance with policy 4.4.0
* Change section to javascript
* Add debian/gbp.conf
* Add upstream/metadata
* New upstream version 1.1.3
* Switch install to pkg-js-tools
* Enable upstream test using pkg-js-tools
* Update VCS fields to salsa
* Update debian/copyright
-- Xavier Guimard <yadd@debian.org> Wed, 28 Aug 2019 22:29:28 +0200
node-wide-align (1.1.0-1) unstable; urgency=low
......
Source: node-wide-align
Section: web
Priority: optional
Maintainer: Debian Javascript Maintainers <pkg-javascript-devel@lists.alioth.debian.org>
Uploaders: Pirate Praveen <praveen@debian.org>
Section: javascript
Testsuite: autopkgtest-pkg-nodejs
Priority: optional
Build-Depends:
debhelper (>= 9)
, dh-buildinfo
debhelper-compat (= 12)
, nodejs
Standards-Version: 3.9.8
, node-string-width <!nocheck>
, node-tap <!nocheck>
, pkg-js-tools (>= 0.9.8)
Standards-Version: 4.4.0
Vcs-Browser: https://salsa.debian.org/js-team/node-wide-align
Vcs-Git: https://salsa.debian.org/js-team/node-wide-align.git
Homepage: https://github.com/iarna/wide-align#readme
Vcs-Git: https://anonscm.debian.org/git/pkg-javascript/node-wide-align.git
Vcs-Browser: https://anonscm.debian.org/cgit/pkg-javascript/node-wide-align.git
Package: node-wide-align
Architecture: all
Depends:
${misc:Depends}
, nodejs
, node-string-width (>= 1.0.1)
, node-string-width
Description: Wide-character aware text alignment function
Wide-character aware text alignment function for use on the console or with
fixed width fonts.
......
Format: http://www.debian.org/doc/packaging-manuals/copyright-format/1.0/
Format: https://www.debian.org/doc/packaging-manuals/copyright-format/1.0/
Upstream-Name: wide-align
Upstream-Contact: https://github.com/iarna/wide-align/issues
Source: https://github.com/iarna/wide-align#readme
Files: *
Copyright: 2014 Rebecca Turner <me@re-becca.org> (http://re-becca.org/)
Copyright: 2015 Rebecca Turner <me@re-becca.org>
License: ISC
Files: debian/*
Copyright: 2017 Pirate Praveen <praveen@debian.org>
2019, Xavier Guimard <yadd@debian.org>
License: ISC
License: ISC
......@@ -23,4 +24,3 @@ License: ISC
WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN
ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF
OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
[DEFAULT]
pristine-tar = True
[import-orig]
filter = [ '.gitignore', '.travis.yml', '.git*' ]
align.js usr/lib/nodejs/wide-align/
package.json usr/lib/nodejs/wide-align/
......@@ -5,11 +5,4 @@
#export DH_VERBOSE=1
%:
dh $@
#override_dh_auto_build:
#override_dh_auto_test:
dh $@ --with nodejs
Tests: require
Depends: node-wide-align
tap --coverage test/*.js
#!/bin/sh
set -e
nodejs -e "require('wide-align');"
---
Archive: GitHub
Bug-Database: https://github.com/iarna/wide-align/issues
Contact: https://github.com/iarna/wide-align/issues
Name: wide-align
Repository: https://github.com/iarna/wide-align.git
Repository-Browse: https://github.com/iarna/wide-align
This diff is collapsed.
{
"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"
]
}
......@@ -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()
})