[Pkg-javascript-commits] [node-tap-mocha-reporter] 115/137: Use supports-color instead of color-support

Bastien Roucariès rouca at moszumanska.debian.org
Thu Sep 7 09:49:31 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 5fc1a3dd703e8299d11937605f3026b6e2536b8c
Author: Bastien ROUCARIÈS <roucaries.bastien at gmail.com>
Date:   Mon Aug 21 23:05:09 2017 +0200

    Use supports-color instead of color-support
    
    Forwarded: no
---
 lib/reporters/base.js    | 2 +-
 lib/reporters/classic.js | 2 +-
 package.json             | 2 +-
 3 files changed, 3 insertions(+), 3 deletions(-)

diff --git a/lib/reporters/base.js b/lib/reporters/base.js
index 433d6c8..f6cae45 100644
--- a/lib/reporters/base.js
+++ b/lib/reporters/base.js
@@ -6,7 +6,7 @@ var tty = require('tty')
   , diff = require('diff')
   , ms = require('../ms')
   , utils = require('../utils')
-  , supportsColor = require('color-support')()
+  , supportsColor = require('supports-color')
 
 /**
  * Save timer references to avoid Sinon interfering (see GH-237).
diff --git a/lib/reporters/classic.js b/lib/reporters/classic.js
index e58e91a..2545227 100644
--- a/lib/reporters/classic.js
+++ b/lib/reporters/classic.js
@@ -10,7 +10,7 @@ var Base = require('./base')
   , diff = require('diff')
   , utils = require('../utils.js')
   , uclen = require('unicode-length').get
-  , colorSupport = require('color-support')()
+  , colorSupport = require('supports-color')
 
 function repeat (n, c) {
   return new Array(Math.max(n + 1, 0)).join(c)
diff --git a/package.json b/package.json
index e831e10..d5d9dea 100644
--- a/package.json
+++ b/package.json
@@ -17,7 +17,7 @@
   },
   "homepage": "https://github.com/isaacs/tap-mocha-reporter",
   "dependencies": {
-    "color-support": "^1.1.0",
+    "support-colors": "^3.2",
     "debug": "^2.1.3",
     "diff": "^1.3.2",
     "escape-string-regexp": "^1.0.3",

-- 
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