[Pkg-javascript-commits] [node-tap-mocha-reporter] 126/137: Remove depends unicode-length
Bastien Roucariès
rouca at moszumanska.debian.org
Thu Sep 7 09:49:32 UTC 2017
This is an automated email from the git hooks/post-receive script.
rouca pushed a commit to branch master
in repository node-tap-mocha-reporter.
commit 2b811a0c0783d15186dd8bf834498a3d99310d91
Author: Bastien ROUCARIÈS <roucaries.bastien at gmail.com>
Date: Mon Aug 21 23:10:30 2017 +0200
Remove depends unicode-length
Not totally correct but it will change something only for 14 characters.
Will revise when unicode-length will be packaged
Forwarded: no
---
lib/reporters/classic.js | 3 ++-
package.json | 1 -
2 files changed, 2 insertions(+), 2 deletions(-)
diff --git a/lib/reporters/classic.js b/lib/reporters/classic.js
index 2545227..d87fec3 100644
--- a/lib/reporters/classic.js
+++ b/lib/reporters/classic.js
@@ -9,7 +9,8 @@ var Base = require('./base')
, ms = require('../ms.js')
, diff = require('diff')
, utils = require('../utils.js')
- , uclen = require('unicode-length').get
+ , stripAnsi = require('strip-ansi')
+ , uclen = function(str) { return stripAnsi(str).length }
, colorSupport = require('supports-color')
function repeat (n, c) {
diff --git a/package.json b/package.json
index d5d9dea..20af6e8 100644
--- a/package.json
+++ b/package.json
@@ -24,7 +24,6 @@
"glob": "^7.0.5",
"js-yaml": "^3.3.1",
"tap-parser": "^5.1.0",
- "unicode-length": "^1.0.0"
},
"devDependencies": {
"tap": "^6.2.0"
--
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-javascript/node-tap-mocha-reporter.git
More information about the Pkg-javascript-commits
mailing list