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:
authorKat Marchán <kzm@sykosomatic.org>2017-01-25 22:07:35 +0300
committerKat Marchán <kzm@sykosomatic.org>2017-01-25 22:23:09 +0300
commitb824bfbeb2d89c92762e9170b026af98b5a3668a (patch)
tree2a2bd127803f120596cd6013370a92776956bbe8
parent1dfe875b9ac61a0ab9f61a2eab02bacf6cce583c (diff)
ansi-regex@2.1.1
-rw-r--r--node_modules/ansi-regex/index.js2
-rw-r--r--node_modules/ansi-regex/package.json129
-rw-r--r--node_modules/ansi-regex/readme.md12
-rw-r--r--npm-shrinkwrap.json6
-rw-r--r--package.json1
5 files changed, 110 insertions, 40 deletions
diff --git a/node_modules/ansi-regex/index.js b/node_modules/ansi-regex/index.js
index 4906755bc..b9574ed7e 100644
--- a/node_modules/ansi-regex/index.js
+++ b/node_modules/ansi-regex/index.js
@@ -1,4 +1,4 @@
'use strict';
module.exports = function () {
- return /[\u001b\u009b][[()#;?]*(?:[0-9]{1,4}(?:;[0-9]{0,4})*)?[0-9A-ORZcf-nqry=><]/g;
+ return /[\u001b\u009b][[()#;?]*(?:[0-9]{1,4}(?:;[0-9]{0,4})*)?[0-9A-PRZcf-nqry=><]/g;
};
diff --git a/node_modules/ansi-regex/package.json b/node_modules/ansi-regex/package.json
index 36b92255d..8ce656deb 100644
--- a/node_modules/ansi-regex/package.json
+++ b/node_modules/ansi-regex/package.json
@@ -1,39 +1,84 @@
{
- "name": "ansi-regex",
- "version": "2.0.0",
- "description": "Regular expression for matching ANSI escape codes",
- "license": "MIT",
- "repository": {
- "type": "git",
- "url": "git+https://github.com/sindresorhus/ansi-regex.git"
+ "_args": [
+ [
+ {
+ "raw": "ansi-regex@2.1.1",
+ "scope": null,
+ "escapedName": "ansi-regex",
+ "name": "ansi-regex",
+ "rawSpec": "2.1.1",
+ "spec": "2.1.1",
+ "type": "version"
+ },
+ "/Users/zkat/Documents/code/npm"
+ ]
+ ],
+ "_from": "ansi-regex@2.1.1",
+ "_id": "ansi-regex@2.1.1",
+ "_inCache": true,
+ "_location": "/ansi-regex",
+ "_nodeVersion": "0.10.32",
+ "_npmOperationalInternal": {
+ "host": "packages-18-east.internal.npmjs.com",
+ "tmp": "tmp/ansi-regex-2.1.1.tgz_1484363378013_0.4482989883981645"
+ },
+ "_npmUser": {
+ "name": "qix",
+ "email": "i.am.qix@gmail.com"
+ },
+ "_npmVersion": "2.14.2",
+ "_phantomChildren": {},
+ "_requested": {
+ "raw": "ansi-regex@2.1.1",
+ "scope": null,
+ "escapedName": "ansi-regex",
+ "name": "ansi-regex",
+ "rawSpec": "2.1.1",
+ "spec": "2.1.1",
+ "type": "version"
},
+ "_requiredBy": [
+ "#USER",
+ "/",
+ "/npm-registry-couchapp/couchapp/nano/follow/request/har-validator/chalk/has-ansi",
+ "/request/har-validator/chalk/has-ansi",
+ "/standard/eslint/chalk/has-ansi",
+ "/standard/eslint/inquirer",
+ "/strip-ansi",
+ "/tap/coveralls/request/har-validator/chalk/has-ansi"
+ ],
+ "_resolved": "https://registry.npmjs.org/ansi-regex/-/ansi-regex-2.1.1.tgz",
+ "_shasum": "c3b33ab5ee360d86e0e628f0468ae7ef27d654df",
+ "_shrinkwrap": null,
+ "_spec": "ansi-regex@2.1.1",
+ "_where": "/Users/zkat/Documents/code/npm",
"author": {
"name": "Sindre Sorhus",
"email": "sindresorhus@gmail.com",
"url": "sindresorhus.com"
},
- "maintainers": [
- {
- "name": "Sindre Sorhus",
- "email": "sindresorhus@gmail.com",
- "url": "sindresorhus.com"
- },
- {
- "name": "Joshua Appelman",
- "email": "jappelman@xebia.com",
- "url": "jbnicolai.com"
- }
- ],
+ "bugs": {
+ "url": "https://github.com/chalk/ansi-regex/issues"
+ },
+ "dependencies": {},
+ "description": "Regular expression for matching ANSI escape codes",
+ "devDependencies": {
+ "ava": "0.17.0",
+ "xo": "0.16.0"
+ },
+ "directories": {},
+ "dist": {
+ "shasum": "c3b33ab5ee360d86e0e628f0468ae7ef27d654df",
+ "tarball": "https://registry.npmjs.org/ansi-regex/-/ansi-regex-2.1.1.tgz"
+ },
"engines": {
"node": ">=0.10.0"
},
- "scripts": {
- "test": "mocha test/test.js",
- "view-supported": "node test/viewCodes.js"
- },
"files": [
"index.js"
],
+ "gitHead": "7c908e7b4eb6cd82bfe1295e33fdf6d166c7ed85",
+ "homepage": "https://github.com/chalk/ansi-regex#readme",
"keywords": [
"ansi",
"styles",
@@ -61,17 +106,33 @@
"find",
"pattern"
],
- "devDependencies": {
- "mocha": "*"
+ "license": "MIT",
+ "maintainers": [
+ {
+ "name": "qix",
+ "email": "i.am.qix@gmail.com"
+ },
+ {
+ "name": "sindresorhus",
+ "email": "sindresorhus@gmail.com"
+ }
+ ],
+ "name": "ansi-regex",
+ "optionalDependencies": {},
+ "readme": "ERROR: No README data found!",
+ "repository": {
+ "type": "git",
+ "url": "git+https://github.com/chalk/ansi-regex.git"
},
- "readme": "# ansi-regex [![Build Status](https://travis-ci.org/sindresorhus/ansi-regex.svg?branch=master)](https://travis-ci.org/sindresorhus/ansi-regex)\n\n> Regular expression for matching [ANSI escape codes](http://en.wikipedia.org/wiki/ANSI_escape_code)\n\n\n## Install\n\n```\n$ npm install --save ansi-regex\n```\n\n\n## Usage\n\n```js\nvar ansiRegex = require('ansi-regex');\n\nansiRegex().test('\\u001b[4mcake\\u001b[0m');\n//=> true\n\nansiRegex().test('cake');\n//=> false\n\n'\\u001b[4mcake\\u001b[0m'.match(ansiRegex());\n//=> ['\\u001b[4m', '\\u001b[0m']\n```\n\n\n## License\n\nMIT © [Sindre Sorhus](http://sindresorhus.com)\n",
- "readmeFilename": "readme.md",
- "bugs": {
- "url": "https://github.com/sindresorhus/ansi-regex/issues"
+ "scripts": {
+ "test": "xo && ava --verbose",
+ "view-supported": "node fixtures/view-codes.js"
},
- "homepage": "https://github.com/sindresorhus/ansi-regex#readme",
- "_id": "ansi-regex@2.0.0",
- "_shasum": "c5061b6e0ef8a81775e50f5d66151bf6bf371107",
- "_resolved": "https://registry.npmjs.org/ansi-regex/-/ansi-regex-2.0.0.tgz",
- "_from": "ansi-regex@2.0.0"
+ "version": "2.1.1",
+ "xo": {
+ "rules": {
+ "guard-for-in": 0,
+ "no-loop-func": 0
+ }
+ }
}
diff --git a/node_modules/ansi-regex/readme.md b/node_modules/ansi-regex/readme.md
index 1a4894ec1..6a928edf0 100644
--- a/node_modules/ansi-regex/readme.md
+++ b/node_modules/ansi-regex/readme.md
@@ -1,4 +1,4 @@
-# ansi-regex [![Build Status](https://travis-ci.org/sindresorhus/ansi-regex.svg?branch=master)](https://travis-ci.org/sindresorhus/ansi-regex)
+# ansi-regex [![Build Status](https://travis-ci.org/chalk/ansi-regex.svg?branch=master)](https://travis-ci.org/chalk/ansi-regex)
> Regular expression for matching [ANSI escape codes](http://en.wikipedia.org/wiki/ANSI_escape_code)
@@ -13,7 +13,7 @@ $ npm install --save ansi-regex
## Usage
```js
-var ansiRegex = require('ansi-regex');
+const ansiRegex = require('ansi-regex');
ansiRegex().test('\u001b[4mcake\u001b[0m');
//=> true
@@ -25,6 +25,14 @@ ansiRegex().test('cake');
//=> ['\u001b[4m', '\u001b[0m']
```
+## FAQ
+
+### Why do you test for codes not in the ECMA 48 standard?
+
+Some of the codes we run as a test are codes that we acquired finding various lists of non-standard or manufacturer specific codes. If I recall correctly, we test for both standard and non-standard codes, as most of them follow the same or similar format and can be safely matched in strings without the risk of removing actual string content. There are a few non-standard control codes that do not follow the traditional format (i.e. they end in numbers) thus forcing us to exclude them from the test because we cannot reliably match them.
+
+On the historical side, those ECMA standards were established in the early 90's whereas the VT100, for example, was designed in the mid/late 70's. At that point in time, control codes were still pretty ungoverned and engineers used them for a multitude of things, namely to activate hardware ports that may have been proprietary. Somewhere else you see a similar 'anarchy' of codes is in the x86 architecture for processors; there are a ton of "interrupts" that can mean different things on certain brands of processors, most of which have been phased out.
+
## License
diff --git a/npm-shrinkwrap.json b/npm-shrinkwrap.json
index d90eb7902..594844963 100644
--- a/npm-shrinkwrap.json
+++ b/npm-shrinkwrap.json
@@ -8,9 +8,9 @@
"resolved": "https://registry.npmjs.org/abbrev/-/abbrev-1.0.9.tgz"
},
"ansi-regex": {
- "version": "2.0.0",
- "from": "ansi-regex@2.0.0",
- "resolved": "https://registry.npmjs.org/ansi-regex/-/ansi-regex-2.0.0.tgz"
+ "version": "2.1.1",
+ "from": "ansi-regex@2.1.1",
+ "resolved": "https://registry.npmjs.org/ansi-regex/-/ansi-regex-2.1.1.tgz"
},
"ansicolors": {
"version": "0.3.2",
diff --git a/package.json b/package.json
index 4a15414a9..00f451457 100644
--- a/package.json
+++ b/package.json
@@ -32,6 +32,7 @@
"dependencies": {
"JSONStream": "~1.3.0",
"abbrev": "~1.0.9",
+ "ansi-regex": "~2.1.1",
"ansicolors": "~0.3.2",
"ansistyles": "~0.1.3",
"aproba": "~1.0.4",