Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/npm/cli.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorisaacs <i@izs.me>2014-06-06 08:30:39 +0400
committerisaacs <i@izs.me>2014-06-06 08:30:39 +0400
commitab8270d5d1c0dda55b71b073a93a7828074de0d8 (patch)
tree4cfb05e550bd802fb8c655d7507ad3689d8580a6
parentf49cc9c30e21c95f6813cffcca839249aadc2e49 (diff)
bump ansi and associated deps
-rw-r--r--node_modules/ansi/.jshintrc4
-rw-r--r--node_modules/ansi/History.md16
-rw-r--r--node_modules/ansi/README.md15
-rw-r--r--node_modules/ansi/color-spaces.pl67
-rwxr-xr-xnode_modules/ansi/examples/starwars.js46
-rw-r--r--node_modules/ansi/package.json46
-rw-r--r--node_modules/npm-install-checks/package.json11
-rw-r--r--node_modules/npmlog/package.json29
-rw-r--r--package.json6
9 files changed, 72 insertions, 168 deletions
diff --git a/node_modules/ansi/.jshintrc b/node_modules/ansi/.jshintrc
new file mode 100644
index 000000000..248c5426e
--- /dev/null
+++ b/node_modules/ansi/.jshintrc
@@ -0,0 +1,4 @@
+{
+ "laxcomma": true,
+ "asi": true
+}
diff --git a/node_modules/ansi/History.md b/node_modules/ansi/History.md
new file mode 100644
index 000000000..f4a9fe304
--- /dev/null
+++ b/node_modules/ansi/History.md
@@ -0,0 +1,16 @@
+
+0.3.0 / 2014-05-09
+==================
+
+ * package: remove "test" script and "devDependencies"
+ * package: remove "engines" section
+ * pacakge: remove "bin" section
+ * package: beautify
+ * examples: remove `starwars` example (#15)
+ * Documented goto, horizontalAbsolute, and eraseLine methods in README.md (#12, @Jammerwoch)
+ * add `.jshintrc` file
+
+< 0.3.0
+=======
+
+ * Prehistoric
diff --git a/node_modules/ansi/README.md b/node_modules/ansi/README.md
index 2f9bb140a..6ce19403c 100644
--- a/node_modules/ansi/README.md
+++ b/node_modules/ansi/README.md
@@ -7,9 +7,6 @@ writing ANSI escape codes to `Stream` instances. ANSI escape codes are used to d
fancy things in a terminal window, like render text in colors, delete characters,
lines, the entire window, or hide and show the cursor, and lots more!
-The code for the example in the screenshot above can be found in the
-`examples/imgcat` directory.
-
#### Features:
* 256 color support for the terminal!
@@ -51,7 +48,7 @@ cursor
// Rendering modes are persistent:
cursor.hex('#660000').bold().underline()
-// You can use the regular logging functions, text will be green
+// You can use the regular logging functions, text will be green:
console.log('This is blood red, bold text')
// To reset just the foreground color:
@@ -59,6 +56,16 @@ cursor.fg.reset()
console.log('This will still be bold')
+// to go to a location (x,y) on the console
+// note: 1-indexed, not 0-indexed:
+cursor.goto(10, 5).write('Five down, ten over')
+
+// to clear the current line:
+cursor.horizontalAbsolute(0).eraseLine().write('Starting again')
+
+// to go to a different column on the current line:
+cursor.horizontalAbsolute(5).write('column five')
+
// Clean up after yourself!
cursor.reset()
```
diff --git a/node_modules/ansi/color-spaces.pl b/node_modules/ansi/color-spaces.pl
deleted file mode 100644
index 8774c0446..000000000
--- a/node_modules/ansi/color-spaces.pl
+++ /dev/null
@@ -1,67 +0,0 @@
-#!/usr/bin/perl
-# Author: Todd Larason <jtl@molehill.org>
-# $XFree86: xc/programs/xterm/vttests/256colors2.pl,v 1.1 1999/07/11 08:49:54 dawes Exp $
-
-print "256 color mode\n\n";
-
-# display back ground colors
-
-for ($fgbg = 38; $fgbg <= 48; $fgbg +=10) {
-
-# first the system ones:
-print "System colors:\n";
-for ($color = 0; $color < 8; $color++) {
- print "\x1b[${fgbg};5;${color}m::";
-}
-print "\x1b[0m\n";
-for ($color = 8; $color < 16; $color++) {
- print "\x1b[${fgbg};5;${color}m::";
-}
-print "\x1b[0m\n\n";
-
-# now the color cube
-print "Color cube, 6x6x6:\n";
-for ($green = 0; $green < 6; $green++) {
- for ($red = 0; $red < 6; $red++) {
- for ($blue = 0; $blue < 6; $blue++) {
- $color = 16 + ($red * 36) + ($green * 6) + $blue;
- print "\x1b[${fgbg};5;${color}m::";
- }
- print "\x1b[0m ";
- }
- print "\n";
-}
-
-# now the grayscale ramp
-print "Grayscale ramp:\n";
-for ($color = 232; $color < 256; $color++) {
- print "\x1b[${fgbg};5;${color}m::";
-}
-print "\x1b[0m\n\n";
-
-}
-
-print "Examples for the 3-byte color mode\n\n";
-
-for ($fgbg = 38; $fgbg <= 48; $fgbg +=10) {
-
-# now the color cube
-print "Color cube\n";
-for ($green = 0; $green < 256; $green+=51) {
- for ($red = 0; $red < 256; $red+=51) {
- for ($blue = 0; $blue < 256; $blue+=51) {
- print "\x1b[${fgbg};2;${red};${green};${blue}m::";
- }
- print "\x1b[0m ";
- }
- print "\n";
-}
-
-# now the grayscale ramp
-print "Grayscale ramp:\n";
-for ($gray = 8; $gray < 256; $gray+=10) {
- print "\x1b[${fgbg};2;${gray};${gray};${gray}m::";
-}
-print "\x1b[0m\n\n";
-
-}
diff --git a/node_modules/ansi/examples/starwars.js b/node_modules/ansi/examples/starwars.js
deleted file mode 100755
index 06f8ba847..000000000
--- a/node_modules/ansi/examples/starwars.js
+++ /dev/null
@@ -1,46 +0,0 @@
-#!/usr/bin/env node
-
-/**
- * A little script to play the ASCII Star Wars, but with a hidden cursor,
- * since over `telnet(1)` the cursor remains visible which is annoying.
- */
-
-process.title = 'starwars'
-
-var net = require('net')
- , cursor = require('../')(process.stdout)
- , color = process.argv[2]
-
-// enable "raw mode" so that keystrokes aren't visible
-process.stdin.resume()
-if (process.stdin.setRawMode) {
- process.stdin.setRawMode(true)
-} else {
- require('tty').setRawMode(true)
-}
-
-// connect to the ASCII Star Wars server
-var socket = net.connect(23, 'towel.blinkenlights.nl')
-
-socket.on('connect', function () {
- if (color in cursor.fg) {
- cursor.fg[color]()
- }
- cursor.hide()
- socket.pipe(process.stdout)
-})
-
-process.stdin.on('data', function (data) {
- if (data.toString() === '\u0003') {
- // Ctrl+C; a.k.a SIGINT
- socket.destroy()
- process.stdin.pause()
- }
-})
-
-process.on('exit', function () {
- cursor
- .show()
- .fg.reset()
- .write('\n')
-})
diff --git a/node_modules/ansi/package.json b/node_modules/ansi/package.json
index e7cde2604..706ae6306 100644
--- a/node_modules/ansi/package.json
+++ b/node_modules/ansi/package.json
@@ -11,7 +11,7 @@
"256",
"stream"
],
- "version": "0.2.1",
+ "version": "0.3.0",
"author": {
"name": "Nathan Rajlich",
"email": "nathan@tootallnate.net",
@@ -22,29 +22,33 @@
"url": "git://github.com/TooTallNate/ansi.js.git"
},
"main": "./lib/ansi.js",
- "bin": {
- "beep": "./examples/beep/index.js",
- "clear": "./examples/clear/index.js",
- "starwars": "./examples/starwars.js"
- },
- "scripts": {
- "test": "mocha --reporter spec"
- },
- "devDependencies": {
- "mocha": "*"
- },
- "engines": {
- "node": "*"
- },
- "readme": "ansi.js\n=========\n### Advanced ANSI formatting tool for Node.js\n\n`ansi.js` is a module for Node.js that provides an easy-to-use API for\nwriting ANSI escape codes to `Stream` instances. ANSI escape codes are used to do\nfancy things in a terminal window, like render text in colors, delete characters,\nlines, the entire window, or hide and show the cursor, and lots more!\n\nThe code for the example in the screenshot above can be found in the\n`examples/imgcat` directory.\n\n#### Features:\n\n * 256 color support for the terminal!\n * Make a beep sound from your terminal!\n * Works with *any* writable `Stream` instance.\n * Allows you to move the cursor anywhere on the terminal window.\n * Allows you to delete existing contents from the terminal window.\n * Allows you to hide and show the cursor.\n * Converts CSS color codes and RGB values into ANSI escape codes.\n * Low-level; you are in control of when escape codes are used, it's not abstracted.\n\n\nInstallation\n------------\n\nInstall with `npm`:\n\n``` bash\n$ npm install ansi\n```\n\n\nExample\n-------\n\n``` js\nvar ansi = require('ansi')\n , cursor = ansi(process.stdout)\n\n// You can chain your calls forever:\ncursor\n .red() // Set font color to red\n .bg.grey() // Set background color to grey\n .write('Hello World!') // Write 'Hello World!' to stdout\n .bg.reset() // Reset the bgcolor before writing the trailing \\n,\n // to avoid Terminal glitches\n .write('\\n') // And a final \\n to wrap things up\n\n// Rendering modes are persistent:\ncursor.hex('#660000').bold().underline()\n\n// You can use the regular logging functions, text will be green\nconsole.log('This is blood red, bold text')\n\n// To reset just the foreground color:\ncursor.fg.reset()\n\nconsole.log('This will still be bold')\n\n// Clean up after yourself!\ncursor.reset()\n```\n\n\nLicense\n-------\n\n(The MIT License)\n\nCopyright (c) 2012 Nathan Rajlich &lt;nathan@tootallnate.net&gt;\n\nPermission is hereby granted, free of charge, to any person obtaining\na copy of this software and associated documentation files (the\n'Software'), to deal in the Software without restriction, including\nwithout limitation the rights to use, copy, modify, merge, publish,\ndistribute, sublicense, and/or sell copies of the Software, and to\npermit persons to whom the Software is furnished to do so, subject to\nthe following conditions:\n\nThe above copyright notice and this permission notice shall be\nincluded in all copies or substantial portions of the Software.\n\nTHE SOFTWARE IS PROVIDED 'AS IS', WITHOUT WARRANTY OF ANY KIND,\nEXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF\nMERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.\nIN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY\nCLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT,\nTORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE\nSOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.\n",
- "readmeFilename": "README.md",
"bugs": {
"url": "https://github.com/TooTallNate/ansi.js/issues"
},
- "_id": "ansi@0.2.1",
+ "homepage": "https://github.com/TooTallNate/ansi.js",
+ "_id": "ansi@0.3.0",
+ "_shasum": "74b2f1f187c8553c7f95015bcb76009fb43d38e0",
+ "_from": "ansi@latest",
+ "_npmVersion": "1.4.9",
+ "_npmUser": {
+ "name": "tootallnate",
+ "email": "nathan@tootallnate.net"
+ },
+ "maintainers": [
+ {
+ "name": "TooTallNate",
+ "email": "nathan@tootallnate.net"
+ },
+ {
+ "name": "tootallnate",
+ "email": "nathan@tootallnate.net"
+ }
+ ],
"dist": {
- "shasum": "76961682ac06d5ea0729af53295ea8f953a0cb21"
+ "shasum": "74b2f1f187c8553c7f95015bcb76009fb43d38e0",
+ "tarball": "http://registry.npmjs.org/ansi/-/ansi-0.3.0.tgz"
},
- "_from": "ansi@latest",
- "_resolved": "https://registry.npmjs.org/ansi/-/ansi-0.2.1.tgz"
+ "directories": {},
+ "_resolved": "https://registry.npmjs.org/ansi/-/ansi-0.3.0.tgz",
+ "readme": "ERROR: No README data found!"
}
diff --git a/node_modules/npm-install-checks/package.json b/node_modules/npm-install-checks/package.json
index a4e8695ca..9457df0b5 100644
--- a/node_modules/npm-install-checks/package.json
+++ b/node_modules/npm-install-checks/package.json
@@ -1,10 +1,10 @@
{
"name": "npm-install-checks",
- "version": "1.0.1",
+ "version": "1.0.2",
"description": "checks that npm runs during the installation of a module",
"main": "index.js",
"dependencies": {
- "npmlog": "0.0.6",
+ "npmlog": "0.1",
"semver": "^2.3.0"
},
"devDependencies": {
@@ -34,7 +34,8 @@
},
"readme": "# npm-install-checks\n\nA package that contains checks that npm runs during the installation.\n\n## API\n\n### .checkEngine(target, npmVer, nodeVer, force, strict, cb)\nCheck if node/npm version is supported by the package.\n\nError type: `ENOTSUP`\n\n### .checkPlatform(target, force, cb)\nCheck if OS/Arch is supported by the package.\n\nError type: `EBADPLATFORM`\n\n### .checkCycle(target, ancestors, cb)\nCheck for cyclic dependencies.\n\nError type: `ECYCLE`\n\n### .checkGit(folder, cb)\nCheck if a folder is a .git folder.\n\nError type: `EISGIT`\n",
"readmeFilename": "README.md",
- "_id": "npm-install-checks@1.0.1",
- "_shasum": "547a73dec58acfd52365012e60de9418b6405101",
- "_from": "npm-install-checks@~1.0.0"
+ "gitHead": "056ade7c5e3a6b3c720ca6a743c1b99a0705d29e",
+ "_id": "npm-install-checks@1.0.2",
+ "_shasum": "ebba769753fc8551308333ef411920743a6809f6",
+ "_from": "npm-install-checks@latest"
}
diff --git a/node_modules/npmlog/package.json b/node_modules/npmlog/package.json
index 5bb392553..096a83309 100644
--- a/node_modules/npmlog/package.json
+++ b/node_modules/npmlog/package.json
@@ -6,7 +6,7 @@
},
"name": "npmlog",
"description": "logger for npm",
- "version": "0.0.6",
+ "version": "0.1.0",
"repository": {
"type": "git",
"url": "git://github.com/isaacs/npmlog.git"
@@ -16,7 +16,7 @@
"test": "tap test/*.js"
},
"dependencies": {
- "ansi": "~0.2.1"
+ "ansi": "^0.3.0"
},
"devDependencies": {
"tap": ""
@@ -24,27 +24,12 @@
"license": "BSD",
"readme": "# npmlog\n\nThe logger util that npm uses.\n\nThis logger is very basic. It does the logging for npm. It supports\ncustom levels and colored output.\n\nBy default, logs are written to stderr. If you want to send log messages\nto outputs other than streams, then you can change the `log.stream`\nmember, or you can just listen to the events that it emits, and do\nwhatever you want with them.\n\n# Basic Usage\n\n```\nvar log = require('npmlog')\n\n// additional stuff ---------------------------+\n// message ----------+ |\n// prefix ----+ | |\n// level -+ | | |\n// v v v v\n log.info('fyi', 'I have a kitty cat: %j', myKittyCat)\n```\n\n## log.level\n\n* {String}\n\nThe level to display logs at. Any logs at or above this level will be\ndisplayed. The special level `silent` will prevent anything from being\ndisplayed ever.\n\n## log.record\n\n* {Array}\n\nAn array of all the log messages that have been entered.\n\n## log.maxRecordSize\n\n* {Number}\n\nThe maximum number of records to keep. If log.record gets bigger than\n10% over this value, then it is sliced down to 90% of this value.\n\nThe reason for the 10% window is so that it doesn't have to resize a\nlarge array on every log entry.\n\n## log.prefixStyle\n\n* {Object}\n\nA style object that specifies how prefixes are styled. (See below)\n\n## log.headingStyle\n\n* {Object}\n\nA style object that specifies how the heading is styled. (See below)\n\n## log.heading\n\n* {String} Default: \"\"\n\nIf set, a heading that is printed at the start of every line.\n\n## log.stream\n\n* {Stream} Default: `process.stderr`\n\nThe stream where output is written.\n\n## log.enableColor()\n\nForce colors to be used on all messages, regardless of the output\nstream.\n\n## log.disableColor()\n\nDisable colors on all messages.\n\n## log.pause()\n\nStop emitting messages to the stream, but do not drop them.\n\n## log.resume()\n\nEmit all buffered messages that were written while paused.\n\n## log.log(level, prefix, message, ...)\n\n* `level` {String} The level to emit the message at\n* `prefix` {String} A string prefix. Set to \"\" to skip.\n* `message...` Arguments to `util.format`\n\nEmit a log message at the specified level.\n\n## log\\[level](prefix, message, ...)\n\nFor example,\n\n* log.silly(prefix, message, ...)\n* log.verbose(prefix, message, ...)\n* log.info(prefix, message, ...)\n* log.http(prefix, message, ...)\n* log.warn(prefix, message, ...)\n* log.error(prefix, message, ...)\n\nLike `log.log(level, prefix, message, ...)`. In this way, each level is\ngiven a shorthand, so you can do `log.info(prefix, message)`.\n\n## log.addLevel(level, n, style, disp)\n\n* `level` {String} Level indicator\n* `n` {Number} The numeric level\n* `style` {Object} Object with fg, bg, inverse, etc.\n* `disp` {String} Optional replacement for `level` in the output.\n\nSets up a new level with a shorthand function and so forth.\n\nNote that if the number is `Infinity`, then setting the level to that\nwill cause all log messages to be suppressed. If the number is\n`-Infinity`, then the only way to show it is to enable all log messages.\n\n# Events\n\nEvents are all emitted with the message object.\n\n* `log` Emitted for all messages\n* `log.<level>` Emitted for all messages with the `<level>` level.\n* `<prefix>` Messages with prefixes also emit their prefix as an event.\n\n# Style Objects\n\nStyle objects can have the following fields:\n\n* `fg` {String} Color for the foreground text\n* `bg` {String} Color for the background\n* `bold`, `inverse`, `underline` {Boolean} Set the associated property\n* `bell` {Boolean} Make a noise (This is pretty annoying, probably.)\n\n# Message Objects\n\nEvery log event is emitted with a message object, and the `log.record`\nlist contains all of them that have been created. They have the\nfollowing fields:\n\n* `id` {Number}\n* `level` {String}\n* `prefix` {String}\n* `message` {String} Result of `util.format()`\n* `messageRaw` {Array} Arguments to `util.format()`\n",
"readmeFilename": "README.md",
+ "gitHead": "e1bc90b9ce78900fa0b1c30bcaaa630de99763c8",
"bugs": {
"url": "https://github.com/isaacs/npmlog/issues"
},
- "_id": "npmlog@0.0.6",
- "dist": {
- "shasum": "685043fe71aa1665d6e3b2acef180640caf40873",
- "tarball": "http://registry.npmjs.org/npmlog/-/npmlog-0.0.6.tgz"
- },
- "_from": "npmlog@latest",
- "_npmVersion": "1.3.11",
- "_npmUser": {
- "name": "isaacs",
- "email": "i@izs.me"
- },
- "maintainers": [
- {
- "name": "isaacs",
- "email": "i@izs.me"
- }
- ],
- "directories": {},
- "_shasum": "685043fe71aa1665d6e3b2acef180640caf40873",
- "_resolved": "https://registry.npmjs.org/npmlog/-/npmlog-0.0.6.tgz"
+ "homepage": "https://github.com/isaacs/npmlog",
+ "_id": "npmlog@0.1.0",
+ "_shasum": "c88336df9426979b86d848d35357f4e6a558bd90",
+ "_from": "npmlog@latest"
}
diff --git a/package.json b/package.json
index e496acddc..5d5f0cc26 100644
--- a/package.json
+++ b/package.json
@@ -32,7 +32,7 @@
"bin": "./bin/npm-cli.js",
"dependencies": {
"abbrev": "~1.0.5",
- "ansi": "~0.2.1",
+ "ansi": "~0.3.0",
"ansicolors": "~0.3.2",
"ansistyles": "~0.1.3",
"archy": "0",
@@ -60,11 +60,11 @@
"node-gyp": "~0.13.0",
"nopt": "~2.2.1",
"npm-cache-filename": "~1.0.1",
- "npm-install-checks": "~1.0.0",
+ "npm-install-checks": "~1.0.2",
"npm-registry-client": "~1.0.0",
"npm-user-validate": "~0.1.0",
"npmconf": "~1.0.1",
- "npmlog": "0.0.6",
+ "npmlog": "~0.1.0",
"once": "~1.3.0",
"opener": "~1.3.0",
"osenv": "0",