summaryrefslogtreecommitdiffstats
path: root/debian/patches/2009_ansi-color-table.patch
blob: 7d9c7f3c0b34c2df11e18c6f4724fdb67ca0d651 (plain)
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
38
39
40
41
42
43
Description: use ansi-color-table instead of text-table, and ansi instead of ansicolors, ansistyles
 node-ansi is already available in debian, it's easier to depend on it and it's been patched to
 be a drop-in replacement of ansicolors and ansistyles.
Author: Jérémy Lal <kapouer@melix.org>
Forwarded: not-needed, waiting for upstream ansi.js to accept patch
Last-Update: 2014-08-05
--- a/lib/outdated.js
+++ b/lib/outdated.js
@@ -29,9 +29,9 @@
   , npm = require("./npm.js")
   , url = require("url")
   , isGitUrl = require("./utils/is-git-url.js")
-  , color = require("ansicolors")
-  , styles = require("ansistyles")
-  , table = require("text-table")
+  , color = require("ansi")
+  , styles = color
+  , table = require("ansi-color-table")
   , semver = require("semver")
   , os = require("os")
 
--- a/lib/help-search.js
+++ b/lib/help-search.js
@@ -6,7 +6,7 @@
   , asyncMap = require("slide").asyncMap
   , npm = require("./npm.js")
   , glob = require("glob")
-  , color = require("ansicolors")
+  , color = require("ansi")
 
 helpSearch.usage = "npm help-search <text>"
 
--- a/lib/ls.js
+++ b/lib/ls.js
@@ -15,7 +15,7 @@
   , semver = require("semver")
   , url = require("url")
   , isGitUrl = require("./utils/is-git-url.js")
-  , color = require("ansicolors")
+  , color = require("ansi")
 
 ls.usage = "npm ls"