fsevents 1.0.0 → 1.0.1
Sign up to get free protection for your applications and to get access to all the features.
Potentially problematic release.
This version of fsevents might be problematic. Click here for more details.
- package/node_modules/node-pre-gyp/CHANGELOG.md +9 -0
- package/node_modules/node-pre-gyp/lib/util/abi_crosswalk.json +32 -0
- package/node_modules/node-pre-gyp/node_modules/mkdirp/node_modules/minimist/package.json +2 -1
- package/node_modules/node-pre-gyp/node_modules/nopt/README.md +8 -7
- package/node_modules/node-pre-gyp/node_modules/nopt/package.json +16 -12
- package/node_modules/node-pre-gyp/node_modules/npmlog/node_modules/are-we-there-yet/node_modules/readable-stream/node_modules/core-util-is/package.json +1 -1
- package/node_modules/node-pre-gyp/node_modules/npmlog/node_modules/are-we-there-yet/node_modules/readable-stream/node_modules/inherits/package.json +1 -1
- package/node_modules/node-pre-gyp/node_modules/npmlog/node_modules/are-we-there-yet/node_modules/readable-stream/package.json +1 -1
- package/node_modules/node-pre-gyp/node_modules/rc/lib/utils.js +2 -2
- package/node_modules/node-pre-gyp/node_modules/rc/node_modules/minimist/index.js +14 -2
- package/node_modules/node-pre-gyp/node_modules/rc/node_modules/minimist/package.json +10 -9
- package/node_modules/node-pre-gyp/node_modules/rc/node_modules/minimist/test/bool.js +23 -0
- package/node_modules/node-pre-gyp/node_modules/rc/node_modules/minimist/test/kv_short.js +16 -0
- package/node_modules/node-pre-gyp/node_modules/rc/package.json +9 -8
- package/node_modules/node-pre-gyp/node_modules/request/.travis.yml +1 -0
- package/node_modules/node-pre-gyp/node_modules/request/CHANGELOG.md +22 -2
- package/node_modules/node-pre-gyp/node_modules/request/README.md +42 -10
- package/node_modules/node-pre-gyp/node_modules/request/index.js +4 -0
- package/node_modules/node-pre-gyp/node_modules/request/node_modules/aws-sign2/package.json +1 -1
- package/node_modules/node-pre-gyp/node_modules/request/node_modules/bl/node_modules/readable-stream/node_modules/core-util-is/package.json +1 -1
- package/node_modules/node-pre-gyp/node_modules/request/node_modules/bl/node_modules/readable-stream/node_modules/inherits/package.json +1 -1
- package/node_modules/node-pre-gyp/node_modules/request/node_modules/bl/node_modules/readable-stream/node_modules/process-nextick-args/index.js +1 -1
- package/node_modules/node-pre-gyp/node_modules/request/node_modules/{form-data/node_modules/async/LICENSE → bl/node_modules/readable-stream/node_modules/process-nextick-args/license.md} +6 -6
- package/node_modules/node-pre-gyp/node_modules/request/node_modules/bl/node_modules/readable-stream/node_modules/process-nextick-args/package.json +10 -9
- package/node_modules/node-pre-gyp/node_modules/request/node_modules/bl/node_modules/readable-stream/node_modules/process-nextick-args/test.js +7 -0
- package/node_modules/node-pre-gyp/node_modules/request/node_modules/bl/node_modules/readable-stream/package.json +2 -1
- package/node_modules/node-pre-gyp/node_modules/request/node_modules/bl/package.json +2 -1
- package/node_modules/node-pre-gyp/node_modules/request/node_modules/caseless/package.json +2 -1
- package/node_modules/node-pre-gyp/node_modules/request/node_modules/extend/package.json +2 -1
- package/node_modules/node-pre-gyp/node_modules/request/node_modules/forever-agent/package.json +1 -1
- package/node_modules/node-pre-gyp/node_modules/request/node_modules/form-data/Readme.md +44 -9
- package/node_modules/node-pre-gyp/node_modules/request/node_modules/form-data/lib/form_data.js +48 -25
- package/node_modules/node-pre-gyp/node_modules/request/node_modules/form-data/node_modules/async/lib/async.js +13 -7
- package/node_modules/node-pre-gyp/node_modules/request/node_modules/form-data/node_modules/async/package.json +26 -11
- package/node_modules/node-pre-gyp/node_modules/request/node_modules/form-data/package.json +29 -20
- package/node_modules/node-pre-gyp/node_modules/request/node_modules/har-validator/node_modules/bluebird/README.md +4 -1
- package/node_modules/node-pre-gyp/node_modules/request/node_modules/har-validator/node_modules/bluebird/js/browser/bluebird.js +35 -11
- package/node_modules/node-pre-gyp/node_modules/request/node_modules/har-validator/node_modules/bluebird/js/browser/bluebird.min.js +5 -5
- package/node_modules/node-pre-gyp/node_modules/request/node_modules/har-validator/node_modules/bluebird/js/main/debuggability.js +2 -0
- package/node_modules/node-pre-gyp/node_modules/request/node_modules/har-validator/node_modules/bluebird/js/main/direct_resolve.js +2 -0
- package/node_modules/node-pre-gyp/node_modules/request/node_modules/har-validator/node_modules/bluebird/js/main/promise.js +5 -1
- package/node_modules/node-pre-gyp/node_modules/request/node_modules/har-validator/node_modules/bluebird/js/main/promisify.js +10 -5
- package/node_modules/node-pre-gyp/node_modules/request/node_modules/har-validator/node_modules/bluebird/js/main/using.js +14 -3
- package/node_modules/node-pre-gyp/node_modules/request/node_modules/har-validator/node_modules/bluebird/package.json +9 -8
- package/node_modules/node-pre-gyp/node_modules/request/node_modules/har-validator/node_modules/chalk/index.js +2 -2
- package/node_modules/node-pre-gyp/node_modules/request/node_modules/har-validator/node_modules/chalk/node_modules/escape-string-regexp/package.json +1 -1
- package/node_modules/node-pre-gyp/node_modules/request/node_modules/har-validator/node_modules/chalk/package.json +22 -15
- package/node_modules/node-pre-gyp/node_modules/request/node_modules/har-validator/node_modules/chalk/readme.md +3 -2
- package/node_modules/node-pre-gyp/node_modules/request/node_modules/har-validator/node_modules/commander/package.json +1 -1
- package/node_modules/node-pre-gyp/node_modules/request/node_modules/har-validator/node_modules/is-my-json-valid/README.md +1 -1
- package/node_modules/node-pre-gyp/node_modules/request/node_modules/har-validator/node_modules/is-my-json-valid/node_modules/generate-function/package.json +1 -1
- package/node_modules/node-pre-gyp/node_modules/request/node_modules/har-validator/node_modules/is-my-json-valid/node_modules/generate-object-property/package.json +1 -1
- package/node_modules/node-pre-gyp/node_modules/request/node_modules/har-validator/node_modules/is-my-json-valid/node_modules/jsonpointer/.travis.yml +6 -2
- package/node_modules/node-pre-gyp/node_modules/request/node_modules/har-validator/node_modules/is-my-json-valid/node_modules/jsonpointer/README.md +3 -2
- package/node_modules/node-pre-gyp/node_modules/request/node_modules/har-validator/node_modules/is-my-json-valid/node_modules/jsonpointer/jsonpointer.js +7 -10
- package/node_modules/node-pre-gyp/node_modules/request/node_modules/har-validator/node_modules/is-my-json-valid/node_modules/jsonpointer/package.json +24 -20
- package/node_modules/node-pre-gyp/node_modules/request/node_modules/har-validator/node_modules/is-my-json-valid/node_modules/jsonpointer/test.js +11 -13
- package/node_modules/node-pre-gyp/node_modules/request/node_modules/har-validator/node_modules/is-my-json-valid/package.json +11 -10
- package/node_modules/node-pre-gyp/node_modules/request/node_modules/hawk/node_modules/boom/.travis.yml +3 -2
- package/node_modules/node-pre-gyp/node_modules/request/node_modules/hawk/node_modules/boom/lib/index.js +39 -28
- package/node_modules/node-pre-gyp/node_modules/request/node_modules/hawk/node_modules/boom/package.json +11 -12
- package/node_modules/node-pre-gyp/node_modules/request/node_modules/hawk/node_modules/boom/test/index.js +1 -1
- package/node_modules/node-pre-gyp/node_modules/request/node_modules/hawk/node_modules/cryptiles/.npmignore +18 -18
- package/node_modules/node-pre-gyp/node_modules/request/node_modules/hawk/node_modules/cryptiles/.travis.yml +8 -5
- package/node_modules/node-pre-gyp/node_modules/request/node_modules/hawk/node_modules/cryptiles/README.md +2 -0
- package/node_modules/node-pre-gyp/node_modules/request/node_modules/hawk/node_modules/cryptiles/package.json +24 -28
- package/node_modules/node-pre-gyp/node_modules/request/node_modules/hawk/node_modules/cryptiles/test/index.js +57 -63
- package/node_modules/node-pre-gyp/node_modules/request/node_modules/hawk/node_modules/hoek/.travis.yml +2 -2
- package/node_modules/node-pre-gyp/node_modules/request/node_modules/hawk/node_modules/hoek/LICENSE +0 -0
- package/node_modules/node-pre-gyp/node_modules/request/node_modules/hawk/node_modules/hoek/README.md +16 -6
- package/node_modules/node-pre-gyp/node_modules/request/node_modules/hawk/node_modules/hoek/images/hoek.png +0 -0
- package/node_modules/node-pre-gyp/node_modules/request/node_modules/hawk/node_modules/hoek/lib/escape.js +0 -0
- package/node_modules/node-pre-gyp/node_modules/request/node_modules/hawk/node_modules/hoek/lib/index.js +24 -8
- package/node_modules/node-pre-gyp/node_modules/request/node_modules/hawk/node_modules/hoek/package.json +13 -13
- package/node_modules/node-pre-gyp/node_modules/request/node_modules/hawk/node_modules/hoek/test/escaper.js +0 -0
- package/node_modules/node-pre-gyp/node_modules/request/node_modules/hawk/node_modules/hoek/test/index.js +866 -778
- package/node_modules/node-pre-gyp/node_modules/request/node_modules/hawk/node_modules/hoek/test/modules/test1.js +0 -0
- package/node_modules/node-pre-gyp/node_modules/request/node_modules/hawk/node_modules/hoek/test/modules/test2.js +0 -0
- package/node_modules/node-pre-gyp/node_modules/request/node_modules/hawk/node_modules/hoek/test/modules/test3.js +0 -0
- package/node_modules/node-pre-gyp/node_modules/request/node_modules/hawk/node_modules/sntp/package.json +1 -1
- package/node_modules/node-pre-gyp/node_modules/request/node_modules/hawk/package.json +2 -1
- package/node_modules/node-pre-gyp/node_modules/request/node_modules/http-signature/node_modules/assert-plus/package.json +1 -1
- package/node_modules/node-pre-gyp/node_modules/request/node_modules/http-signature/node_modules/ctype/package.json +1 -1
- package/node_modules/node-pre-gyp/node_modules/request/node_modules/isstream/package.json +1 -1
- package/node_modules/node-pre-gyp/node_modules/request/node_modules/mime-types/HISTORY.md +24 -0
- package/node_modules/node-pre-gyp/node_modules/request/node_modules/mime-types/index.js +1 -1
- package/node_modules/node-pre-gyp/node_modules/request/node_modules/mime-types/node_modules/mime-db/HISTORY.md +33 -0
- package/node_modules/node-pre-gyp/node_modules/request/node_modules/mime-types/node_modules/mime-db/db.json +50 -0
- package/node_modules/node-pre-gyp/node_modules/request/node_modules/mime-types/node_modules/mime-db/package.json +12 -13
- package/node_modules/node-pre-gyp/node_modules/request/node_modules/mime-types/package.json +9 -10
- package/node_modules/node-pre-gyp/node_modules/request/node_modules/node-uuid/package.json +1 -1
- package/node_modules/node-pre-gyp/node_modules/request/node_modules/qs/.npmignore +0 -1
- package/node_modules/node-pre-gyp/node_modules/request/node_modules/qs/.travis.yml +3 -2
- package/node_modules/node-pre-gyp/node_modules/request/node_modules/qs/CHANGELOG.md +13 -2
- package/node_modules/node-pre-gyp/node_modules/request/node_modules/qs/README.md +11 -4
- package/node_modules/node-pre-gyp/node_modules/request/node_modules/qs/bower.json +1 -1
- package/node_modules/node-pre-gyp/node_modules/request/node_modules/qs/component.json +15 -0
- package/node_modules/node-pre-gyp/node_modules/request/node_modules/qs/dist/qs.js +523 -0
- package/node_modules/node-pre-gyp/node_modules/request/node_modules/qs/lib/parse.js +3 -2
- package/node_modules/node-pre-gyp/node_modules/request/node_modules/qs/lib/stringify.js +28 -7
- package/node_modules/node-pre-gyp/node_modules/request/node_modules/qs/package.json +20 -18
- package/node_modules/node-pre-gyp/node_modules/request/node_modules/qs/test/parse.js +14 -14
- package/node_modules/node-pre-gyp/node_modules/request/node_modules/qs/test/stringify.js +23 -1
- package/node_modules/node-pre-gyp/node_modules/request/node_modules/stringstream/package.json +1 -1
- package/node_modules/node-pre-gyp/node_modules/request/package.json +12 -12
- package/node_modules/node-pre-gyp/node_modules/request/request.js +51 -30
- package/node_modules/node-pre-gyp/node_modules/rimraf/node_modules/glob/node_modules/inherits/package.json +1 -1
- package/node_modules/node-pre-gyp/node_modules/rimraf/node_modules/glob/node_modules/minimatch/package.json +3 -2
- package/node_modules/node-pre-gyp/node_modules/rimraf/node_modules/glob/package.json +2 -1
- package/node_modules/node-pre-gyp/node_modules/rimraf/package.json +9 -8
- package/node_modules/node-pre-gyp/node_modules/rimraf/rimraf.js +1 -1
- package/node_modules/node-pre-gyp/node_modules/semver/package.json +10 -12
- package/node_modules/node-pre-gyp/node_modules/semver/semver.js +1 -0
- package/node_modules/node-pre-gyp/node_modules/semver/test/index.js +21 -8
- package/node_modules/node-pre-gyp/node_modules/tar/lib/entry.js +7 -0
- package/node_modules/node-pre-gyp/node_modules/tar/lib/parse.js +5 -1
- package/node_modules/node-pre-gyp/node_modules/tar/node_modules/fstream/node_modules/graceful-fs/fs.js +21 -11
- package/node_modules/node-pre-gyp/node_modules/tar/node_modules/fstream/node_modules/graceful-fs/graceful-fs.js +208 -115
- package/node_modules/node-pre-gyp/node_modules/tar/node_modules/fstream/node_modules/graceful-fs/legacy-streams.js +118 -0
- package/node_modules/node-pre-gyp/node_modules/tar/node_modules/fstream/node_modules/graceful-fs/package.json +18 -17
- package/node_modules/node-pre-gyp/node_modules/tar/node_modules/fstream/node_modules/graceful-fs/polyfills.js +130 -133
- package/node_modules/node-pre-gyp/node_modules/tar/node_modules/fstream/package.json +18 -14
- package/node_modules/node-pre-gyp/node_modules/tar/node_modules/inherits/package.json +1 -1
- package/node_modules/node-pre-gyp/node_modules/tar/package.json +22 -15
- package/node_modules/node-pre-gyp/node_modules/tar/test/parse-discard.js +29 -0
- package/node_modules/node-pre-gyp/node_modules/tar-pack/node_modules/fstream-ignore/node_modules/inherits/package.json +1 -1
- package/node_modules/node-pre-gyp/node_modules/tar-pack/node_modules/fstream-ignore/node_modules/minimatch/node_modules/lru-cache/README.md +12 -2
- package/node_modules/node-pre-gyp/node_modules/tar-pack/node_modules/fstream-ignore/node_modules/minimatch/node_modules/lru-cache/lib/lru-cache.js +48 -4
- package/node_modules/node-pre-gyp/node_modules/tar-pack/node_modules/fstream-ignore/node_modules/minimatch/node_modules/lru-cache/package.json +9 -9
- package/node_modules/node-pre-gyp/node_modules/tar-pack/node_modules/fstream-ignore/node_modules/minimatch/node_modules/lru-cache/test/basic.js +26 -25
- package/node_modules/node-pre-gyp/node_modules/tar-pack/node_modules/fstream-ignore/node_modules/minimatch/node_modules/lru-cache/test/serialize.js +216 -0
- package/node_modules/node-pre-gyp/node_modules/tar-pack/node_modules/readable-stream/node_modules/core-util-is/package.json +1 -1
- package/node_modules/node-pre-gyp/node_modules/tar-pack/node_modules/readable-stream/package.json +1 -1
- package/node_modules/node-pre-gyp/package.json +10 -10
- package/package.json +2 -2
- package/node_modules/node-pre-gyp/node_modules/request/node_modules/form-data/node_modules/async/.jscsrc +0 -3
- package/node_modules/node-pre-gyp/node_modules/request/node_modules/form-data/node_modules/async/CHANGELOG.md +0 -81
- package/node_modules/node-pre-gyp/node_modules/request/node_modules/form-data/node_modules/async/README.md +0 -1789
- package/node_modules/node-pre-gyp/node_modules/request/node_modules/form-data/node_modules/async/support/sync-package-managers.js +0 -53
- package/node_modules/node-pre-gyp/node_modules/request/node_modules/hawk/node_modules/cryptiles/Makefile +0 -9
- package/node_modules/node-pre-gyp/node_modules/request/node_modules/hawk/node_modules/cryptiles/index.js +0 -1
- package/node_modules/node-pre-gyp/node_modules/request/node_modules/hawk/node_modules/hoek/Makefile +0 -8
- package/node_modules/node-pre-gyp/node_modules/request/node_modules/hawk/node_modules/hoek/index.js +0 -1
- package/node_modules/node-pre-gyp/node_modules/tar/node_modules/fstream/node_modules/graceful-fs/.npmignore +0 -1
- package/node_modules/node-pre-gyp/node_modules/tar/node_modules/fstream/node_modules/graceful-fs/LICENSE +0 -15
- package/node_modules/node-pre-gyp/node_modules/tar/node_modules/fstream/node_modules/graceful-fs/test/max-open.js +0 -69
- package/node_modules/node-pre-gyp/node_modules/tar/node_modules/fstream/node_modules/graceful-fs/test/open.js +0 -39
- package/node_modules/node-pre-gyp/node_modules/tar/node_modules/fstream/node_modules/graceful-fs/test/readdir-sort.js +0 -20
- package/node_modules/node-pre-gyp/node_modules/tar/node_modules/fstream/node_modules/graceful-fs/test/write-then-read.js +0 -47
@@ -1,7 +1,7 @@
|
|
1
1
|
{
|
2
2
|
"name": "bluebird",
|
3
3
|
"description": "Full featured Promises/A+ implementation with exceptionally good performance",
|
4
|
-
"version": "2.
|
4
|
+
"version": "2.10.1",
|
5
5
|
"keywords": [
|
6
6
|
"promise",
|
7
7
|
"performance",
|
@@ -24,7 +24,8 @@
|
|
24
24
|
"lint": "node scripts/jshint.js",
|
25
25
|
"test": "node tools/test.js",
|
26
26
|
"istanbul": "istanbul",
|
27
|
-
"prepublish": "node tools/build.js --no-debug --main --zalgo --browser --minify"
|
27
|
+
"prepublish": "node tools/build.js --no-debug --main --zalgo --browser --minify",
|
28
|
+
"generate-browser-core": "node tools/build.js --features=core --no-debug --main --zalgo --browser --minify && mv js/browser/bluebird.js js/browser/bluebird.core.js && mv js/browser/bluebird.min.js js/browser/bluebird.core.min.js"
|
28
29
|
},
|
29
30
|
"homepage": "https://github.com/petkaantonov/bluebird",
|
30
31
|
"repository": {
|
@@ -74,9 +75,9 @@
|
|
74
75
|
"js/zalgo",
|
75
76
|
"zalgo.js"
|
76
77
|
],
|
77
|
-
"gitHead": "
|
78
|
-
"_id": "bluebird@2.
|
79
|
-
"_shasum": "
|
78
|
+
"gitHead": "41b23cce935e77b851e076928745ad4c3cebba42",
|
79
|
+
"_id": "bluebird@2.10.1",
|
80
|
+
"_shasum": "3aeb31bdd92e52df50cba95303e281f94448ce06",
|
80
81
|
"_from": "bluebird@^2.9.30",
|
81
82
|
"_npmVersion": "2.11.1",
|
82
83
|
"_nodeVersion": "2.3.0",
|
@@ -91,9 +92,9 @@
|
|
91
92
|
}
|
92
93
|
],
|
93
94
|
"dist": {
|
94
|
-
"shasum": "
|
95
|
-
"tarball": "http://registry.npmjs.org/bluebird/-/bluebird-2.
|
95
|
+
"shasum": "3aeb31bdd92e52df50cba95303e281f94448ce06",
|
96
|
+
"tarball": "http://registry.npmjs.org/bluebird/-/bluebird-2.10.1.tgz"
|
96
97
|
},
|
97
98
|
"directories": {},
|
98
|
-
"_resolved": "https://registry.npmjs.org/bluebird/-/bluebird-2.
|
99
|
+
"_resolved": "https://registry.npmjs.org/bluebird/-/bluebird-2.10.1.tgz"
|
99
100
|
}
|
@@ -36,7 +36,7 @@ var styles = (function () {
|
|
36
36
|
var proto = defineProps(function chalk() {}, styles);
|
37
37
|
|
38
38
|
function build(_styles) {
|
39
|
-
var builder = function
|
39
|
+
var builder = function () {
|
40
40
|
return applyStyle.apply(builder, arguments);
|
41
41
|
};
|
42
42
|
|
@@ -44,7 +44,7 @@ function build(_styles) {
|
|
44
44
|
builder.enabled = this.enabled;
|
45
45
|
// __proto__ is used because we must return a function, but there is
|
46
46
|
// no way to create a function with a different prototype.
|
47
|
-
/*eslint no-proto
|
47
|
+
/* eslint-disable no-proto */
|
48
48
|
builder.__proto__ = proto;
|
49
49
|
|
50
50
|
return builder;
|
@@ -1,11 +1,11 @@
|
|
1
1
|
{
|
2
2
|
"name": "chalk",
|
3
|
-
"version": "1.1.
|
3
|
+
"version": "1.1.1",
|
4
4
|
"description": "Terminal string styling done right. Much color.",
|
5
5
|
"license": "MIT",
|
6
6
|
"repository": {
|
7
7
|
"type": "git",
|
8
|
-
"url": "https://github.com/chalk/chalk"
|
8
|
+
"url": "git+https://github.com/chalk/chalk.git"
|
9
9
|
},
|
10
10
|
"maintainers": [
|
11
11
|
{
|
@@ -25,7 +25,7 @@
|
|
25
25
|
"node": ">=0.10.0"
|
26
26
|
},
|
27
27
|
"scripts": {
|
28
|
-
"test": "mocha",
|
28
|
+
"test": "xo && mocha",
|
29
29
|
"bench": "matcha benchmark.js",
|
30
30
|
"coverage": "nyc npm test && nyc report",
|
31
31
|
"coveralls": "nyc npm test && nyc report --reporter=text-lcov | coveralls"
|
@@ -70,27 +70,34 @@
|
|
70
70
|
"nyc": "^3.0.0",
|
71
71
|
"require-uncached": "^1.0.2",
|
72
72
|
"resolve-from": "^1.0.0",
|
73
|
-
"semver": "^4.3.3"
|
73
|
+
"semver": "^4.3.3",
|
74
|
+
"xo": "*"
|
74
75
|
},
|
75
|
-
"
|
76
|
+
"xo": {
|
77
|
+
"envs": [
|
78
|
+
"node",
|
79
|
+
"mocha"
|
80
|
+
]
|
81
|
+
},
|
82
|
+
"gitHead": "8b554e254e89c85c1fd04dcc444beeb15824e1a5",
|
76
83
|
"bugs": {
|
77
84
|
"url": "https://github.com/chalk/chalk/issues"
|
78
85
|
},
|
79
|
-
"homepage": "https://github.com/chalk/chalk",
|
80
|
-
"_id": "chalk@1.1.
|
81
|
-
"_shasum": "
|
86
|
+
"homepage": "https://github.com/chalk/chalk#readme",
|
87
|
+
"_id": "chalk@1.1.1",
|
88
|
+
"_shasum": "509afb67066e7499f7eb3535c77445772ae2d019",
|
82
89
|
"_from": "chalk@^1.0.0",
|
83
|
-
"_npmVersion": "2.
|
84
|
-
"_nodeVersion": "0.12.
|
90
|
+
"_npmVersion": "2.13.5",
|
91
|
+
"_nodeVersion": "0.12.7",
|
85
92
|
"_npmUser": {
|
86
|
-
"name": "
|
87
|
-
"email": "
|
93
|
+
"name": "sindresorhus",
|
94
|
+
"email": "sindresorhus@gmail.com"
|
88
95
|
},
|
89
96
|
"dist": {
|
90
|
-
"shasum": "
|
91
|
-
"tarball": "http://registry.npmjs.org/chalk/-/chalk-1.1.
|
97
|
+
"shasum": "509afb67066e7499f7eb3535c77445772ae2d019",
|
98
|
+
"tarball": "http://registry.npmjs.org/chalk/-/chalk-1.1.1.tgz"
|
92
99
|
},
|
93
100
|
"directories": {},
|
94
|
-
"_resolved": "https://registry.npmjs.org/chalk/-/chalk-1.1.
|
101
|
+
"_resolved": "https://registry.npmjs.org/chalk/-/chalk-1.1.1.tgz",
|
95
102
|
"readme": "ERROR: No README data found!"
|
96
103
|
}
|
@@ -30,7 +30,7 @@
|
|
30
30
|
- Clean and focused
|
31
31
|
- Auto-detects color support
|
32
32
|
- Actively maintained
|
33
|
-
- [Used by ~
|
33
|
+
- [Used by ~4500 modules](https://www.npmjs.com/browse/depended/chalk) as of July 15, 2015
|
34
34
|
|
35
35
|
|
36
36
|
## Install
|
@@ -189,7 +189,7 @@ if (!chalk.supportsColor) {
|
|
189
189
|
|
190
190
|
## 256-colors
|
191
191
|
|
192
|
-
Chalk does not support
|
192
|
+
Chalk does not support anything other than the base eight colors, which guarantees it will work on all terminals and systems. Some terminals, specifically `xterm` compliant ones, will support the full range of 8-bit colors. For this the lower level [ansi-256-colors](https://github.com/jbnicolai/ansi-256-colors) package can be used.
|
193
193
|
|
194
194
|
|
195
195
|
## Windows
|
@@ -205,6 +205,7 @@ If you're on Windows, do yourself a favor and use [`cmder`](http://bliker.github
|
|
205
205
|
- [strip-ansi](https://github.com/chalk/strip-ansi) - Strip ANSI escape codes
|
206
206
|
- [has-ansi](https://github.com/chalk/has-ansi) - Check if a string has ANSI escape codes
|
207
207
|
- [ansi-regex](https://github.com/chalk/ansi-regex) - Regular expression for matching ANSI escape codes
|
208
|
+
- [wrap-ansi](https://github.com/chalk/wrap-ansi) - Wordwrap a string with ANSI escape codes
|
208
209
|
|
209
210
|
|
210
211
|
## License
|
@@ -4,7 +4,7 @@
|
|
4
4
|
"description": "Generate safe JS code that can used to reference a object property",
|
5
5
|
"repository": {
|
6
6
|
"type": "git",
|
7
|
-
"url": "
|
7
|
+
"url": "https://github.com/mafintosh/generate-object-property"
|
8
8
|
},
|
9
9
|
"devDependencies": {
|
10
10
|
"tape": "^2.13.0"
|
@@ -11,6 +11,7 @@ This is an implementation of [JSON Pointer](http://tools.ietf.org/html/draft-iet
|
|
11
11
|
var three = jsonpointer.get(obj, "/qux/0");
|
12
12
|
var four = jsonpointer.get(obj, "/qux/1");
|
13
13
|
var five = jsonpointer.get(obj, "/qux/2");
|
14
|
+
var notfound = jsonpointer.get(obj, "/quo"); // returns null
|
14
15
|
|
15
16
|
jsonpointer.set(obj, "/foo", 6); // obj.foo = 6;
|
16
17
|
|
@@ -20,7 +21,7 @@ This is an implementation of [JSON Pointer](http://tools.ietf.org/html/draft-iet
|
|
20
21
|
All tests pass.
|
21
22
|
$
|
22
23
|
|
23
|
-
[![Build Status](https://travis-ci.org/janl/node-jsonpointer.png?branch=master)](
|
24
|
+
[![Build Status](https://travis-ci.org/janl/node-jsonpointer.png?branch=master)](https://travis-ci.org/janl/node-jsonpointer)
|
24
25
|
|
25
26
|
## Author
|
26
27
|
|
@@ -28,4 +29,4 @@ This is an implementation of [JSON Pointer](http://tools.ietf.org/html/draft-iet
|
|
28
29
|
|
29
30
|
## License
|
30
31
|
|
31
|
-
MIT License.
|
32
|
+
MIT License.
|
@@ -1,5 +1,3 @@
|
|
1
|
-
var console = require("console");
|
2
|
-
|
3
1
|
var untilde = function(str) {
|
4
2
|
return str.replace(/~./g, function(m) {
|
5
3
|
switch (m) {
|
@@ -8,16 +6,15 @@ var untilde = function(str) {
|
|
8
6
|
case "~1":
|
9
7
|
return "/";
|
10
8
|
}
|
11
|
-
throw("Invalid tilde escape: " + m);
|
9
|
+
throw new Error("Invalid tilde escape: " + m);
|
12
10
|
});
|
13
11
|
}
|
14
12
|
|
15
13
|
var traverse = function(obj, pointer, value) {
|
16
14
|
// assert(isArray(pointer))
|
17
15
|
var part = untilde(pointer.shift());
|
18
|
-
if(
|
19
|
-
|
20
|
-
return;
|
16
|
+
if(!obj.hasOwnProperty(part)) {
|
17
|
+
return null;
|
21
18
|
}
|
22
19
|
if(pointer.length !== 0) { // keep traversin!
|
23
20
|
return traverse(obj[part], pointer, value);
|
@@ -39,7 +36,7 @@ var traverse = function(obj, pointer, value) {
|
|
39
36
|
|
40
37
|
var validate_input = function(obj, pointer) {
|
41
38
|
if(typeof obj !== "object") {
|
42
|
-
throw("Invalid input object.");
|
39
|
+
throw new Error("Invalid input object.");
|
43
40
|
}
|
44
41
|
|
45
42
|
if(pointer === "") {
|
@@ -47,13 +44,13 @@ var validate_input = function(obj, pointer) {
|
|
47
44
|
}
|
48
45
|
|
49
46
|
if(!pointer) {
|
50
|
-
throw("Invalid JSON pointer.");
|
47
|
+
throw new Error("Invalid JSON pointer.");
|
51
48
|
}
|
52
49
|
|
53
50
|
pointer = pointer.split("/");
|
54
51
|
var first = pointer.shift();
|
55
52
|
if (first !== "") {
|
56
|
-
throw("Invalid JSON pointer.");
|
53
|
+
throw new Error("Invalid JSON pointer.");
|
57
54
|
}
|
58
55
|
|
59
56
|
return pointer;
|
@@ -70,7 +67,7 @@ var get = function(obj, pointer) {
|
|
70
67
|
var set = function(obj, pointer, value) {
|
71
68
|
pointer = validate_input(obj, pointer);
|
72
69
|
if (pointer.length === 0) {
|
73
|
-
throw("Invalid JSON pointer for set.")
|
70
|
+
throw new Error("Invalid JSON pointer for set.")
|
74
71
|
}
|
75
72
|
return traverse(obj, pointer, value);
|
76
73
|
}
|
@@ -7,7 +7,7 @@
|
|
7
7
|
"util",
|
8
8
|
"utility"
|
9
9
|
],
|
10
|
-
"version": "
|
10
|
+
"version": "2.0.0",
|
11
11
|
"author": {
|
12
12
|
"name": "Jan Lehnardt",
|
13
13
|
"email": "jan@apache.org"
|
@@ -16,9 +16,6 @@
|
|
16
16
|
{
|
17
17
|
"name": "Joe Hildebrand",
|
18
18
|
"email": "joe-github@cursive.net"
|
19
|
-
},
|
20
|
-
{
|
21
|
-
"name": "Filip Noetzel"
|
22
19
|
}
|
23
20
|
],
|
24
21
|
"repository": {
|
@@ -28,33 +25,40 @@
|
|
28
25
|
"bugs": {
|
29
26
|
"url": "http://github.com/janl/node-jsonpointer/issues"
|
30
27
|
},
|
31
|
-
"engines":
|
32
|
-
"node >=
|
33
|
-
|
28
|
+
"engines": {
|
29
|
+
"node": ">=0.6.0"
|
30
|
+
},
|
34
31
|
"main": "./jsonpointer",
|
35
32
|
"scripts": {
|
36
33
|
"test": "node test.js"
|
37
34
|
},
|
38
|
-
"
|
39
|
-
"
|
40
|
-
|
41
|
-
|
42
|
-
|
43
|
-
"
|
35
|
+
"license": "MIT",
|
36
|
+
"gitHead": "26ea4a5c0fcb6d9a2e87f733403791dd05637af8",
|
37
|
+
"homepage": "https://github.com/janl/node-jsonpointer#readme",
|
38
|
+
"_id": "jsonpointer@2.0.0",
|
39
|
+
"_shasum": "3af1dd20fe85463910d469a385e33017d2a030d9",
|
40
|
+
"_from": "jsonpointer@2.0.0",
|
41
|
+
"_npmVersion": "2.10.1",
|
42
|
+
"_nodeVersion": "0.10.36",
|
44
43
|
"_npmUser": {
|
45
|
-
"name": "
|
46
|
-
"email": "
|
44
|
+
"name": "marcbachmann",
|
45
|
+
"email": "marc.brookman@gmail.com"
|
47
46
|
},
|
48
47
|
"maintainers": [
|
49
48
|
{
|
50
49
|
"name": "jan",
|
51
50
|
"email": "jan@apache.org"
|
51
|
+
},
|
52
|
+
{
|
53
|
+
"name": "marcbachmann",
|
54
|
+
"email": "marc.brookman@gmail.com"
|
52
55
|
}
|
53
56
|
],
|
57
|
+
"dist": {
|
58
|
+
"shasum": "3af1dd20fe85463910d469a385e33017d2a030d9",
|
59
|
+
"tarball": "http://registry.npmjs.org/jsonpointer/-/jsonpointer-2.0.0.tgz"
|
60
|
+
},
|
54
61
|
"directories": {},
|
55
|
-
"
|
56
|
-
"
|
57
|
-
"_resolved": "https://registry.npmjs.org/jsonpointer/-/jsonpointer-1.1.0.tgz",
|
58
|
-
"readme": "ERROR: No README data found!",
|
59
|
-
"homepage": "https://github.com/janl/node-jsonpointer#readme"
|
62
|
+
"_resolved": "https://registry.npmjs.org/jsonpointer/-/jsonpointer-2.0.0.tgz",
|
63
|
+
"readme": "ERROR: No README data found!"
|
60
64
|
}
|
@@ -1,5 +1,4 @@
|
|
1
1
|
var assert = require("assert");
|
2
|
-
var console = require("console");
|
3
2
|
var jsonpointer = require("./jsonpointer");
|
4
3
|
|
5
4
|
var obj = {
|
@@ -32,9 +31,14 @@ assert.equal(jsonpointer.get(obj, "/d/e/1/b"), 5);
|
|
32
31
|
assert.equal(jsonpointer.get(obj, "/d/e/2/c"), 6);
|
33
32
|
|
34
33
|
assert.equal(jsonpointer.get(obj, ""), obj);
|
35
|
-
assert.throws(function()
|
36
|
-
|
37
|
-
|
34
|
+
assert.throws(function(){ jsonpointer.get(obj, "a"); }, validateError);
|
35
|
+
assert.throws(function(){ jsonpointer.get(obj, "a/"); }, validateError);
|
36
|
+
|
37
|
+
function validateError(err) {
|
38
|
+
if ( (err instanceof Error) && /Invalid JSON pointer/.test(err.message) ) {
|
39
|
+
return true;
|
40
|
+
}
|
41
|
+
}
|
38
42
|
|
39
43
|
var complexKeys = {
|
40
44
|
"a/b": {
|
@@ -51,19 +55,13 @@ assert.equal(jsonpointer.get(complexKeys, "/a~1b/c"), 1);
|
|
51
55
|
assert.equal(jsonpointer.get(complexKeys, "/d/e~1f"), 2);
|
52
56
|
assert.equal(jsonpointer.get(complexKeys, "/~01"), 3);
|
53
57
|
assert.equal(jsonpointer.get(complexKeys, "/01"), 4);
|
54
|
-
assert.
|
55
|
-
|
56
|
-
});
|
57
|
-
assert.throws(function() {
|
58
|
-
assert.equal(jsonpointer.get(complexKeys, "/~1"), 3);
|
59
|
-
});
|
58
|
+
assert.equal(jsonpointer.get(complexKeys, "/a/b/c"), null);
|
59
|
+
assert.equal(jsonpointer.get(complexKeys, "/~1"), null);
|
60
60
|
|
61
61
|
// draft-ietf-appsawg-json-pointer-08 has special array rules
|
62
62
|
var ary = [ "zero", "one", "two" ];
|
63
|
+
assert.equal(jsonpointer.get(ary, "/01"), null);
|
63
64
|
|
64
|
-
assert.throws(function() {
|
65
|
-
assert.equal(jsonpointer.get(ary, "/01"), "one");
|
66
|
-
});
|
67
65
|
//assert.equal(jsonpointer.set(ary, "/-", "three"), null);
|
68
66
|
//assert.equal(ary[3], "three");
|
69
67
|
|
@@ -1,12 +1,12 @@
|
|
1
1
|
{
|
2
2
|
"name": "is-my-json-valid",
|
3
|
-
"version": "2.12.
|
3
|
+
"version": "2.12.2",
|
4
4
|
"description": "A JSONSchema validator that uses code generation to be extremely fast",
|
5
5
|
"main": "index.js",
|
6
6
|
"dependencies": {
|
7
7
|
"generate-function": "^2.0.0",
|
8
8
|
"generate-object-property": "^1.1.0",
|
9
|
-
"jsonpointer": "
|
9
|
+
"jsonpointer": "2.0.0",
|
10
10
|
"xtend": "^4.0.0"
|
11
11
|
},
|
12
12
|
"devDependencies": {
|
@@ -33,19 +33,19 @@
|
|
33
33
|
"url": "https://github.com/mafintosh/is-my-json-valid/issues"
|
34
34
|
},
|
35
35
|
"homepage": "https://github.com/mafintosh/is-my-json-valid",
|
36
|
-
"gitHead": "
|
37
|
-
"_id": "is-my-json-valid@2.12.
|
38
|
-
"_shasum": "
|
36
|
+
"gitHead": "48040cf001f661bcaa31f09bdc7fe3939ac2253b",
|
37
|
+
"_id": "is-my-json-valid@2.12.2",
|
38
|
+
"_shasum": "0d65859318c846ce3a134402fd3fbc504272ccc9",
|
39
39
|
"_from": "is-my-json-valid@^2.12.0",
|
40
|
-
"_npmVersion": "2.13.
|
41
|
-
"_nodeVersion": "2.
|
40
|
+
"_npmVersion": "2.13.4",
|
41
|
+
"_nodeVersion": "2.5.0",
|
42
42
|
"_npmUser": {
|
43
43
|
"name": "mafintosh",
|
44
44
|
"email": "mathiasbuus@gmail.com"
|
45
45
|
},
|
46
46
|
"dist": {
|
47
|
-
"shasum": "
|
48
|
-
"tarball": "http://registry.npmjs.org/is-my-json-valid/-/is-my-json-valid-2.12.
|
47
|
+
"shasum": "0d65859318c846ce3a134402fd3fbc504272ccc9",
|
48
|
+
"tarball": "http://registry.npmjs.org/is-my-json-valid/-/is-my-json-valid-2.12.2.tgz"
|
49
49
|
},
|
50
50
|
"maintainers": [
|
51
51
|
{
|
@@ -62,5 +62,6 @@
|
|
62
62
|
}
|
63
63
|
],
|
64
64
|
"directories": {},
|
65
|
-
"_resolved": "https://registry.npmjs.org/is-my-json-valid/-/is-my-json-valid-2.12.
|
65
|
+
"_resolved": "https://registry.npmjs.org/is-my-json-valid/-/is-my-json-valid-2.12.2.tgz",
|
66
|
+
"readme": "ERROR: No README data found!"
|
66
67
|
}
|