[Pkg-javascript-commits] [npm] 02/04: Update ansi patch
Jérémy Lal
kapouer at moszumanska.debian.org
Tue Aug 5 22:34:13 UTC 2014
This is an automated email from the git hooks/post-receive script.
kapouer pushed a commit to branch master
in repository npm.
commit 552c6dff1deb24a26ecf735d9aff7646731b11db
Author: Jérémy Lal <kapouer at melix.org>
Date: Tue Aug 5 23:55:40 2014 +0200
Update ansi patch
---
debian/patches/2009_ansi-color-table.patch | 51 +++++++++++++++---------------
1 file changed, 26 insertions(+), 25 deletions(-)
diff --git a/debian/patches/2009_ansi-color-table.patch b/debian/patches/2009_ansi-color-table.patch
index 0763132..7d9c7f3 100644
--- a/debian/patches/2009_ansi-color-table.patch
+++ b/debian/patches/2009_ansi-color-table.patch
@@ -1,42 +1,43 @@
-Description: use ansi-color-table instead of text-table, ansicolors, ansistyles
- node-ansi is already available in debian, it's easier to depend on it
+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 at melix.org>
-Forwarded: not-needed
-Last-Update: 2014-03-01
+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,7 @@
+@@ -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")
-@@ -55,7 +53,7 @@
+--- 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")
- if (npm.color) {
- outTable[0] = outTable[0].map(function(heading) {
-- return styles.underline(heading)
-+ return heading.underline()
- })
- }
+ helpSearch.usage = "npm help-search <text>"
-@@ -88,10 +86,10 @@
- ]
+--- 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")
- if (npm.color) {
-- columns[0] = color[has === want ? "yellow" : "red"](columns[0]) // dep
-- columns[2] = color.green(columns[2]) // want
-- columns[3] = color.magenta(columns[3]) // latest
-- columns[4] = color.brightBlack(columns[4]) // dir
-+ columns[0] = columns[0][has === want ? "yellow" : "red"]() // dep
-+ columns[2] = columns[2].green() // want
-+ columns[3] = columns[3].magenta() // latest
-+ columns[4] = columns[4].brightBlack() // dir
- }
+ ls.usage = "npm ls"
- return columns
--
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-javascript/npm.git
More information about the Pkg-javascript-commits
mailing list