[Pkg-javascript-commits] [node-tap-mocha-reporter] 134/137: Remove depends unicode-length

Bastien Roucariès rouca at moszumanska.debian.org
Thu Sep 7 09:49:33 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 df89e61e2fa641bb182f5cf17daca7afbba88a57
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             | 2 +-
 2 files changed, 3 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..be2a296 100644
--- a/package.json
+++ b/package.json
@@ -24,7 +24,7 @@
     "glob": "^7.0.5",
     "js-yaml": "^3.3.1",
     "tap-parser": "^5.1.0",
-    "unicode-length": "^1.0.0"
+    "strip-ansi" : "^3.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