Package: node-tap / 12.0.1+ds-1

0002-Replace-color-support-by-supports-color.patch Patch series | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
From d6f28e9134e685a20cc78b7d6e832bdd7e0a5c2c Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Bastien=20ROUCARI=C3=88S?= <roucaries.bastien@gmail.com>
Date: Sun, 10 Sep 2017 22:52:22 +0200
Subject: Replace color-support by supports-color

Forwarded: no
---
 bin/run.js   | 2 +-
 package.json | 2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/bin/run.js b/bin/run.js
index 117fa34..4cef079 100755
--- a/bin/run.js
+++ b/bin/run.js
@@ -5,7 +5,7 @@ const node = process.execPath
 const fs = require('fs')
 const spawn = require('child_process').spawn
 const fg = require('foreground-child')
-const colorSupport = require('color-support')
+const colorSupport = require('supports-color')
 const nycBin = require.resolve('nyc/bin/nyc.js')
 const glob = require('glob')
 const isexe = require('isexe')
diff --git a/package.json b/package.json
index 301f1bb..5a7776c 100644
--- a/package.json
+++ b/package.json
@@ -15,7 +15,7 @@
     "bind-obj-methods": "^2.0.0",
     "bluebird": "^3.5.1",
     "clean-yaml-object": "^0.1.0",
-    "color-support": "^1.1.0",
+    "supports-color" : "^3",
     "coveralls": "^3.0.1",
     "foreground-child": "^1.3.3",
     "fs-exists-cached": "^1.0.0",