fsevents 1.2.7 → 1.2.8
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Potentially problematic release.
This version of fsevents might be problematic. Click here for more details.
- package/.travis.yml +0 -2
- package/node_modules/abbrev/package.json +2 -3
- package/node_modules/ansi-regex/package.json +1 -1
- package/node_modules/aproba/package.json +1 -1
- package/node_modules/are-we-there-yet/package.json +1 -1
- package/node_modules/balanced-match/package.json +1 -1
- package/node_modules/brace-expansion/package.json +1 -1
- package/node_modules/chownr/package.json +1 -1
- package/node_modules/code-point-at/package.json +1 -1
- package/node_modules/concat-map/package.json +1 -1
- package/node_modules/console-control-strings/package.json +1 -1
- package/node_modules/core-util-is/package.json +1 -1
- package/node_modules/debug/CHANGELOG.md +34 -1
- package/node_modules/debug/README.md +206 -63
- package/node_modules/debug/dist/debug.js +912 -0
- package/node_modules/debug/package.json +40 -26
- package/node_modules/debug/src/browser.js +185 -106
- package/node_modules/debug/src/common.js +266 -0
- package/node_modules/debug/src/index.js +4 -4
- package/node_modules/debug/src/node.js +174 -165
- package/node_modules/deep-extend/package.json +1 -1
- package/node_modules/delegates/package.json +1 -1
- package/node_modules/detect-libc/package.json +1 -1
- package/node_modules/fs-minipass/package.json +1 -1
- package/node_modules/fs.realpath/package.json +1 -1
- package/node_modules/gauge/package.json +1 -1
- package/node_modules/glob/package.json +1 -1
- package/node_modules/has-unicode/package.json +1 -1
- package/node_modules/iconv-lite/package.json +1 -1
- package/node_modules/ignore-walk/package.json +1 -1
- package/node_modules/inflight/package.json +1 -1
- package/node_modules/inherits/package.json +2 -4
- package/node_modules/ini/package.json +1 -1
- package/node_modules/is-fullwidth-code-point/package.json +1 -1
- package/node_modules/isarray/package.json +1 -1
- package/node_modules/minimatch/package.json +1 -1
- package/node_modules/minimist/package.json +1 -1
- package/node_modules/minipass/package.json +1 -1
- package/node_modules/minizlib/package.json +1 -1
- package/node_modules/mkdirp/package.json +1 -2
- package/node_modules/ms/index.js +28 -18
- package/node_modules/ms/package.json +17 -17
- package/node_modules/ms/readme.md +17 -8
- package/node_modules/needle/.npmignore +6 -0
- package/node_modules/needle/README.md +1 -2
- package/node_modules/needle/examples/multipart-stream.js +1 -1
- package/node_modules/needle/lib/auth.js +1 -1
- package/node_modules/needle/lib/multipart.js +1 -1
- package/node_modules/needle/lib/needle.js +2 -2
- package/node_modules/needle/package-lock.json +395 -0
- package/node_modules/needle/package.json +13 -13
- package/node_modules/needle/test/basic_auth_spec.js +1 -1
- package/node_modules/needle/test/cookies_spec.js +2 -2
- package/node_modules/needle/test/keys/ssl.cert +21 -0
- package/node_modules/needle/test/keys/ssl.key +27 -0
- package/node_modules/needle/test/output_spec.js +1 -1
- package/node_modules/needle/test/post_data_spec.js +20 -20
- package/node_modules/needle/test/proxy_spec.js +1 -1
- package/node_modules/needle/test/utils/test.js +1 -1
- package/node_modules/node-pre-gyp/CHANGELOG.md +10 -0
- package/node_modules/node-pre-gyp/README.md +41 -6
- package/node_modules/node-pre-gyp/lib/build.js +1 -1
- package/node_modules/node-pre-gyp/lib/install.js +20 -8
- package/node_modules/node-pre-gyp/lib/node-pre-gyp.js +1 -1
- package/node_modules/node-pre-gyp/lib/pre-binding.js +5 -5
- package/node_modules/node-pre-gyp/lib/rebuild.js +1 -1
- package/node_modules/node-pre-gyp/lib/reinstall.js +1 -1
- package/node_modules/node-pre-gyp/lib/util/abi_crosswalk.json +48 -0
- package/node_modules/node-pre-gyp/lib/util/handle_gyp_opts.js +5 -2
- package/node_modules/node-pre-gyp/lib/util/napi.js +70 -22
- package/node_modules/node-pre-gyp/lib/util/versioning.js +7 -6
- package/node_modules/node-pre-gyp/package.json +13 -12
- package/node_modules/nopt/package.json +1 -1
- package/node_modules/npm-bundled/index.js +13 -1
- package/node_modules/npm-bundled/package.json +6 -6
- package/node_modules/npm-packlist/index.js +29 -8
- package/node_modules/npm-packlist/package.json +6 -6
- package/node_modules/npmlog/package.json +1 -1
- package/node_modules/number-is-nan/package.json +1 -1
- package/node_modules/object-assign/package.json +1 -1
- package/node_modules/once/package.json +1 -1
- package/node_modules/os-homedir/package.json +1 -1
- package/node_modules/os-tmpdir/package.json +1 -1
- package/node_modules/osenv/package.json +1 -1
- package/node_modules/path-is-absolute/package.json +1 -1
- package/node_modules/process-nextick-args/package.json +1 -1
- package/node_modules/rc/node_modules/minimist/package.json +1 -1
- package/node_modules/rc/package.json +1 -1
- package/node_modules/readable-stream/package.json +1 -1
- package/node_modules/rimraf/package.json +1 -1
- package/node_modules/safe-buffer/package.json +1 -1
- package/node_modules/safer-buffer/package.json +1 -1
- package/node_modules/sax/package.json +1 -1
- package/node_modules/semver/CHANGELOG.md +39 -0
- package/node_modules/semver/README.md +14 -2
- package/node_modules/semver/bin/semver +84 -77
- package/node_modules/semver/package.json +14 -8
- package/node_modules/semver/semver.js +906 -775
- package/node_modules/set-blocking/package.json +1 -1
- package/node_modules/signal-exit/package.json +1 -1
- package/node_modules/string-width/package.json +1 -1
- package/node_modules/string_decoder/package.json +1 -1
- package/node_modules/strip-ansi/package.json +1 -1
- package/node_modules/strip-json-comments/package.json +1 -1
- package/node_modules/tar/package.json +1 -1
- package/node_modules/util-deprecate/package.json +1 -1
- package/node_modules/wide-align/package.json +1 -1
- package/node_modules/wrappy/package.json +1 -1
- package/node_modules/yallist/package.json +1 -1
- package/package.json +5 -8
- package/node_modules/debug/.coveralls.yml +0 -1
- package/node_modules/debug/.eslintrc +0 -11
- package/node_modules/debug/.npmignore +0 -9
- package/node_modules/debug/.travis.yml +0 -14
- package/node_modules/debug/Makefile +0 -50
- package/node_modules/debug/component.json +0 -19
- package/node_modules/debug/karma.conf.js +0 -70
- package/node_modules/debug/node.js +0 -1
- package/node_modules/debug/src/debug.js +0 -202
- package/node_modules/debug/src/inspector-log.js +0 -15
- package/node_modules/needle/note.xml +0 -7
- package/node_modules/needle/note.xml.1 +0 -7
@@ -2,6 +2,7 @@
|
|
2
2
|
|
3
3
|
var fs = require('fs');
|
4
4
|
var rm = require('rimraf');
|
5
|
+
var log = require('npmlog');
|
5
6
|
|
6
7
|
module.exports = exports;
|
7
8
|
|
@@ -27,8 +28,9 @@ var napi_multiple_commands = [
|
|
27
28
|
|
28
29
|
var napi_build_version_tag = 'napi_build_version=';
|
29
30
|
|
30
|
-
module.exports.get_napi_version = function() {
|
31
|
+
module.exports.get_napi_version = function(target) { // target may be undefined
|
31
32
|
// returns the non-zero numeric napi version or undefined if napi is not supported.
|
33
|
+
// correctly supporting target requires an updated cross-walk
|
32
34
|
var version = process.versions.napi; // can be undefined
|
33
35
|
if (!version) { // this code should never need to be updated
|
34
36
|
if (versionArray[0] === 9 && versionArray[1] >= 3) version = 2; // 9.3.0+
|
@@ -37,18 +39,20 @@ module.exports.get_napi_version = function() {
|
|
37
39
|
return version;
|
38
40
|
};
|
39
41
|
|
40
|
-
module.exports.get_napi_version_as_string = function() {
|
42
|
+
module.exports.get_napi_version_as_string = function(target) {
|
41
43
|
// returns the napi version as a string or an empty string if napi is not supported.
|
42
|
-
var version = module.exports.get_napi_version();
|
44
|
+
var version = module.exports.get_napi_version(target);
|
43
45
|
return version ? ''+version : '';
|
44
46
|
};
|
45
47
|
|
46
|
-
module.exports.validate_package_json = function(package_json) { //
|
48
|
+
module.exports.validate_package_json = function(package_json, opts) { // throws Error
|
49
|
+
|
47
50
|
var binary = package_json.binary;
|
48
|
-
var module_path_ok = binary.module_path
|
49
|
-
var remote_path_ok = binary.remote_path
|
50
|
-
var package_name_ok = binary.package_name
|
51
|
-
var napi_build_versions = module.exports.get_napi_build_versions(package_json);
|
51
|
+
var module_path_ok = pathOK(binary.module_path);
|
52
|
+
var remote_path_ok = pathOK(binary.remote_path);
|
53
|
+
var package_name_ok = pathOK(binary.package_name);
|
54
|
+
var napi_build_versions = module.exports.get_napi_build_versions(package_json,opts,true);
|
55
|
+
var napi_build_versions_raw = module.exports.get_napi_build_versions_raw(package_json);
|
52
56
|
|
53
57
|
if (napi_build_versions) {
|
54
58
|
napi_build_versions.forEach(function(napi_build_version){
|
@@ -63,29 +67,41 @@ module.exports.validate_package_json = function(package_json) { // return err
|
|
63
67
|
"package_name must contain the substitution string '{napi_build_version}`.");
|
64
68
|
}
|
65
69
|
|
66
|
-
if ((module_path_ok || remote_path_ok || package_name_ok) && !
|
70
|
+
if ((module_path_ok || remote_path_ok || package_name_ok) && !napi_build_versions_raw) {
|
67
71
|
throw new Error("When the substitution string '{napi_build_version}` is specified in " +
|
68
72
|
"module_path, remote_path, or package_name; napi_versions must also be specified.");
|
69
73
|
}
|
70
74
|
|
71
|
-
if (napi_build_versions && !module.exports.get_best_napi_build_version(package_json)
|
75
|
+
if (napi_build_versions && !module.exports.get_best_napi_build_version(package_json, opts) &&
|
76
|
+
module.exports.build_napi_only(package_json)) {
|
77
|
+
throw new Error(
|
78
|
+
'The N-API version of this Node instance is ' + module.exports.get_napi_version(opts ? opts.target : undefined) + '. ' +
|
79
|
+
'This module supports N-API version(s) ' + module.exports.get_napi_build_versions_raw(package_json) + '. ' +
|
80
|
+
'This Node instance cannot run this module.');
|
81
|
+
}
|
82
|
+
|
83
|
+
if (napi_build_versions_raw && !napi_build_versions && module.exports.build_napi_only(package_json)) {
|
72
84
|
throw new Error(
|
73
|
-
'The N-API version of this Node instance is ' + module.exports.get_napi_version() + '. ' +
|
74
|
-
'This module supports N-API version(s) ' + module.exports.
|
85
|
+
'The N-API version of this Node instance is ' + module.exports.get_napi_version(opts ? opts.target : undefined) + '. ' +
|
86
|
+
'This module supports N-API version(s) ' + module.exports.get_napi_build_versions_raw(package_json) + '. ' +
|
75
87
|
'This Node instance cannot run this module.');
|
76
88
|
}
|
77
89
|
|
78
90
|
};
|
79
91
|
|
80
|
-
|
92
|
+
function pathOK (path) {
|
93
|
+
return path && (path.indexOf('{napi_build_version}') !== -1 || path.indexOf('{node_napi_label}') !== -1);
|
94
|
+
}
|
95
|
+
|
96
|
+
module.exports.expand_commands = function(package_json, opts, commands) {
|
81
97
|
var expanded_commands = [];
|
82
|
-
var napi_build_versions = module.exports.get_napi_build_versions(package_json);
|
98
|
+
var napi_build_versions = module.exports.get_napi_build_versions(package_json, opts);
|
83
99
|
commands.forEach(function(command){
|
84
100
|
if (napi_build_versions && command.name === 'install') {
|
85
|
-
var napi_build_version = module.exports.get_best_napi_build_version(package_json);
|
101
|
+
var napi_build_version = module.exports.get_best_napi_build_version(package_json, opts);
|
86
102
|
var args = napi_build_version ? [ napi_build_version_tag+napi_build_version ] : [ ];
|
87
103
|
expanded_commands.push ({ name: command.name, args: args });
|
88
|
-
} else if (napi_build_versions && napi_multiple_commands.
|
104
|
+
} else if (napi_build_versions && napi_multiple_commands.indexOf(command.name) !== -1) {
|
89
105
|
napi_build_versions.forEach(function(napi_build_version){
|
90
106
|
var args = command.args.slice();
|
91
107
|
args.push (napi_build_version_tag+napi_build_version);
|
@@ -98,11 +114,38 @@ module.exports.expand_commands = function(package_json, commands) {
|
|
98
114
|
return expanded_commands;
|
99
115
|
};
|
100
116
|
|
101
|
-
module.exports.get_napi_build_versions = function(package_json) {
|
117
|
+
module.exports.get_napi_build_versions = function(package_json, opts, warnings) { // opts may be undefined
|
118
|
+
var napi_build_versions = [];
|
119
|
+
var supported_napi_version = module.exports.get_napi_version(opts ? opts.target : undefined);
|
120
|
+
// remove duplicates, verify each napi version can actaully be built
|
121
|
+
if (package_json.binary && package_json.binary.napi_versions) {
|
122
|
+
package_json.binary.napi_versions.forEach(function(napi_version) {
|
123
|
+
var duplicated = napi_build_versions.indexOf(napi_version) !== -1;
|
124
|
+
if (!duplicated && supported_napi_version && napi_version <= supported_napi_version) {
|
125
|
+
napi_build_versions.push(napi_version);
|
126
|
+
} else if (warnings && !duplicated && supported_napi_version) {
|
127
|
+
log.info('This Node instance does not support builds for N-API version', napi_version);
|
128
|
+
}
|
129
|
+
});
|
130
|
+
}
|
131
|
+
if (opts && opts["build-latest-napi-version-only"]) {
|
132
|
+
var latest_version = 0;
|
133
|
+
napi_build_versions.forEach(function(napi_version) {
|
134
|
+
if (napi_version > latest_version) latest_version = napi_version;
|
135
|
+
});
|
136
|
+
napi_build_versions = latest_version ? [ latest_version ] : [];
|
137
|
+
}
|
138
|
+
return napi_build_versions.length ? napi_build_versions : undefined;
|
139
|
+
};
|
140
|
+
|
141
|
+
module.exports.get_napi_build_versions_raw = function(package_json) {
|
102
142
|
var napi_build_versions = [];
|
103
|
-
|
143
|
+
// remove duplicates
|
144
|
+
if (package_json.binary && package_json.binary.napi_versions) {
|
104
145
|
package_json.binary.napi_versions.forEach(function(napi_version) {
|
105
|
-
if (
|
146
|
+
if (napi_build_versions.indexOf(napi_version) === -1) {
|
147
|
+
napi_build_versions.push(napi_version);
|
148
|
+
}
|
106
149
|
});
|
107
150
|
}
|
108
151
|
return napi_build_versions.length ? napi_build_versions : undefined;
|
@@ -140,11 +183,11 @@ module.exports.get_build_dir = function(napi_build_version) {
|
|
140
183
|
return 'build-tmp-napi-v'+napi_build_version;
|
141
184
|
};
|
142
185
|
|
143
|
-
module.exports.get_best_napi_build_version = function(package_json) {
|
186
|
+
module.exports.get_best_napi_build_version = function(package_json, opts) {
|
144
187
|
var best_napi_build_version = 0;
|
145
|
-
var napi_build_versions = module.exports.get_napi_build_versions (package_json);
|
188
|
+
var napi_build_versions = module.exports.get_napi_build_versions (package_json, opts);
|
146
189
|
if (napi_build_versions) {
|
147
|
-
var our_napi_version = module.exports.get_napi_version();
|
190
|
+
var our_napi_version = module.exports.get_napi_version(opts ? opts.target : undefined);
|
148
191
|
napi_build_versions.forEach(function(napi_build_version){
|
149
192
|
if (napi_build_version > best_napi_build_version &&
|
150
193
|
napi_build_version <= our_napi_version) {
|
@@ -154,3 +197,8 @@ module.exports.get_best_napi_build_version = function(package_json) {
|
|
154
197
|
}
|
155
198
|
return best_napi_build_version === 0 ? undefined : best_napi_build_version;
|
156
199
|
};
|
200
|
+
|
201
|
+
module.exports.build_napi_only = function(package_json) {
|
202
|
+
return package_json.binary && package_json.binary.package_name &&
|
203
|
+
package_json.binary.package_name.indexOf('{node_napi_label}') === -1;
|
204
|
+
};
|
@@ -192,7 +192,7 @@ var required_parameters = [
|
|
192
192
|
'host'
|
193
193
|
];
|
194
194
|
|
195
|
-
function validate_config(package_json) {
|
195
|
+
function validate_config(package_json,opts) {
|
196
196
|
var msg = package_json.name + ' package.json is not node-pre-gyp ready:\n';
|
197
197
|
var missing = [];
|
198
198
|
if (!package_json.main) {
|
@@ -226,7 +226,7 @@ function validate_config(package_json) {
|
|
226
226
|
throw new Error("'host' protocol ("+protocol+") is invalid - only 'https:' is accepted");
|
227
227
|
}
|
228
228
|
}
|
229
|
-
napi.validate_package_json(package_json);
|
229
|
+
napi.validate_package_json(package_json,opts);
|
230
230
|
}
|
231
231
|
|
232
232
|
module.exports.validate_config = validate_config;
|
@@ -276,7 +276,7 @@ var default_remote_path = '';
|
|
276
276
|
|
277
277
|
module.exports.evaluate = function(package_json,options,napi_build_version) {
|
278
278
|
options = options || {};
|
279
|
-
validate_config(package_json);
|
279
|
+
validate_config(package_json,options); // options is a suitable substitute for opts in this case
|
280
280
|
var v = package_json.version;
|
281
281
|
var module_version = semver.parse(v);
|
282
282
|
var runtime = options.runtime || get_process_runtime(process.versions);
|
@@ -293,9 +293,10 @@ module.exports.evaluate = function(package_json,options,napi_build_version) {
|
|
293
293
|
patch: module_version.patch,
|
294
294
|
runtime: runtime,
|
295
295
|
node_abi: get_runtime_abi(runtime,options.target),
|
296
|
-
node_abi_napi: napi.get_napi_version() ? 'napi' : get_runtime_abi(runtime,options.target),
|
297
|
-
napi_version: napi.get_napi_version(), // non-zero numeric, undefined if unsupported
|
298
|
-
napi_build_version: napi_build_version
|
296
|
+
node_abi_napi: napi.get_napi_version(options.target) ? 'napi' : get_runtime_abi(runtime,options.target),
|
297
|
+
napi_version: napi.get_napi_version(options.target), // non-zero numeric, undefined if unsupported
|
298
|
+
napi_build_version: napi_build_version || '',
|
299
|
+
node_napi_label: napi_build_version ? 'napi-v' + napi_build_version : get_runtime_abi(runtime,options.target),
|
299
300
|
target: options.target || '',
|
300
301
|
platform: options.target_platform || process.platform,
|
301
302
|
target_platform: options.target_platform || process.platform,
|
@@ -1,27 +1,28 @@
|
|
1
1
|
{
|
2
|
-
"_from": "node-pre-gyp
|
3
|
-
"_id": "node-pre-gyp@0.
|
2
|
+
"_from": "node-pre-gyp@0.12.0",
|
3
|
+
"_id": "node-pre-gyp@0.12.0",
|
4
4
|
"_inBundle": false,
|
5
|
-
"_integrity": "sha512-
|
5
|
+
"_integrity": "sha512-4KghwV8vH5k+g2ylT+sLTjy5wmUOb9vPhnM8NHvRf9dHmnW/CndrFXy2aRPaPST6dugXSdHXfeaHQm77PIz/1A==",
|
6
6
|
"_location": "/node-pre-gyp",
|
7
7
|
"_phantomChildren": {},
|
8
8
|
"_requested": {
|
9
|
-
"type": "
|
9
|
+
"type": "version",
|
10
10
|
"registry": true,
|
11
|
-
"raw": "node-pre-gyp
|
11
|
+
"raw": "node-pre-gyp@0.12.0",
|
12
12
|
"name": "node-pre-gyp",
|
13
13
|
"escapedName": "node-pre-gyp",
|
14
|
-
"rawSpec": "
|
14
|
+
"rawSpec": "0.12.0",
|
15
15
|
"saveSpec": null,
|
16
|
-
"fetchSpec": "
|
16
|
+
"fetchSpec": "0.12.0"
|
17
17
|
},
|
18
18
|
"_requiredBy": [
|
19
|
+
"#USER",
|
19
20
|
"/"
|
20
21
|
],
|
21
|
-
"_resolved": "https://registry.npmjs.org/node-pre-gyp/-/node-pre-gyp-0.
|
22
|
-
"_shasum": "
|
23
|
-
"_spec": "node-pre-gyp
|
24
|
-
"_where": "/Users/
|
22
|
+
"_resolved": "https://registry.npmjs.org/node-pre-gyp/-/node-pre-gyp-0.12.0.tgz",
|
23
|
+
"_shasum": "39ba4bb1439da030295f899e3b520b7785766149",
|
24
|
+
"_spec": "node-pre-gyp@0.12.0",
|
25
|
+
"_where": "/Users/pipobscure/fsevents",
|
25
26
|
"author": {
|
26
27
|
"name": "Dane Springmeyer",
|
27
28
|
"email": "dane@mapbox.com"
|
@@ -82,5 +83,5 @@
|
|
82
83
|
"test": "jshint lib lib/util scripts bin/node-pre-gyp && tape test/*test.js",
|
83
84
|
"update-crosswalk": "node scripts/abi_crosswalk.js"
|
84
85
|
},
|
85
|
-
"version": "0.
|
86
|
+
"version": "0.12.0"
|
86
87
|
}
|
@@ -21,7 +21,7 @@
|
|
21
21
|
"_resolved": "https://registry.npmjs.org/nopt/-/nopt-4.0.1.tgz",
|
22
22
|
"_shasum": "d0d4685afd5415193c8c7505602d0d17cd64474d",
|
23
23
|
"_spec": "nopt@^4.0.1",
|
24
|
-
"_where": "/Users/
|
24
|
+
"_where": "/Users/pipobscure/fsevents/node_modules/node-pre-gyp",
|
25
25
|
"author": {
|
26
26
|
"name": "Isaac Z. Schlueter",
|
27
27
|
"email": "i@izs.me",
|
@@ -43,6 +43,18 @@ class BundleWalker extends EE {
|
|
43
43
|
this.bundle = null
|
44
44
|
}
|
45
45
|
|
46
|
+
addListener (ev, fn) {
|
47
|
+
return this.on(ev, fn)
|
48
|
+
}
|
49
|
+
|
50
|
+
on (ev, fn) {
|
51
|
+
const ret = super.on(ev, fn)
|
52
|
+
if (ev === 'done' && this.didDone) {
|
53
|
+
this.emit('done', this.result)
|
54
|
+
}
|
55
|
+
return ret
|
56
|
+
}
|
57
|
+
|
46
58
|
done () {
|
47
59
|
if (!this.didDone) {
|
48
60
|
this.didDone = true
|
@@ -57,7 +69,7 @@ class BundleWalker extends EE {
|
|
57
69
|
}
|
58
70
|
|
59
71
|
start () {
|
60
|
-
const pj = this.path
|
72
|
+
const pj = path.resolve(this.path, 'package.json')
|
61
73
|
if (this.packageJsonCache.has(pj))
|
62
74
|
this.onPackage(this.packageJsonCache.get(pj))
|
63
75
|
else
|
@@ -1,8 +1,8 @@
|
|
1
1
|
{
|
2
2
|
"_from": "npm-bundled@^1.0.1",
|
3
|
-
"_id": "npm-bundled@1.0.
|
3
|
+
"_id": "npm-bundled@1.0.6",
|
4
4
|
"_inBundle": false,
|
5
|
-
"_integrity": "sha512-
|
5
|
+
"_integrity": "sha512-8/JCaftHwbd//k6y2rEWp6k1wxVfpFzB6t1p825+cUb7Ym2XQfhwIC5KwhrvzZRJu+LtDE585zVaS32+CGtf0g==",
|
6
6
|
"_location": "/npm-bundled",
|
7
7
|
"_phantomChildren": {},
|
8
8
|
"_requested": {
|
@@ -18,10 +18,10 @@
|
|
18
18
|
"_requiredBy": [
|
19
19
|
"/npm-packlist"
|
20
20
|
],
|
21
|
-
"_resolved": "https://registry.npmjs.org/npm-bundled/-/npm-bundled-1.0.
|
22
|
-
"_shasum": "
|
21
|
+
"_resolved": "https://registry.npmjs.org/npm-bundled/-/npm-bundled-1.0.6.tgz",
|
22
|
+
"_shasum": "e7ba9aadcef962bb61248f91721cd932b3fe6bdd",
|
23
23
|
"_spec": "npm-bundled@^1.0.1",
|
24
|
-
"_where": "/Users/
|
24
|
+
"_where": "/Users/pipobscure/fsevents/node_modules/npm-packlist",
|
25
25
|
"author": {
|
26
26
|
"name": "Isaac Z. Schlueter",
|
27
27
|
"email": "i@izs.me",
|
@@ -56,5 +56,5 @@
|
|
56
56
|
"preversion": "npm test",
|
57
57
|
"test": "tap test/*.js -J --100"
|
58
58
|
},
|
59
|
-
"version": "1.0.
|
59
|
+
"version": "1.0.6"
|
60
60
|
}
|
@@ -34,11 +34,20 @@ const defaultRules = [
|
|
34
34
|
'npm-debug.log',
|
35
35
|
'**/.npmrc',
|
36
36
|
'.*.swp',
|
37
|
-
'
|
37
|
+
'**/.DS_Store/**',
|
38
38
|
'._*',
|
39
|
+
'**/._*/**',
|
39
40
|
'*.orig',
|
40
|
-
'package-lock.json',
|
41
|
+
'/package-lock.json',
|
42
|
+
'/yarn.lock',
|
41
43
|
'archived-packages/**',
|
44
|
+
'core',
|
45
|
+
'!core/',
|
46
|
+
'!**/core/',
|
47
|
+
'*.core',
|
48
|
+
'*.vgcore',
|
49
|
+
'vgcore.*',
|
50
|
+
'core.+([0-9])',
|
42
51
|
]
|
43
52
|
|
44
53
|
// a decorator that applies our custom rules to an ignore walker
|
@@ -136,13 +145,23 @@ const npmWalker = Class => class Walker extends Class {
|
|
136
145
|
onPackageJson (ig, pkg, then) {
|
137
146
|
this.packageJsonCache.set(ig, pkg)
|
138
147
|
|
139
|
-
// if there's a browser or main, make sure we don't ignore it
|
148
|
+
// if there's a bin, browser or main, make sure we don't ignore it
|
149
|
+
// also, don't ignore the package.json itself!
|
140
150
|
const rules = [
|
141
151
|
pkg.browser ? '!' + pkg.browser : '',
|
142
152
|
pkg.main ? '!' + pkg.main : '',
|
143
|
-
'
|
144
|
-
|
145
|
-
|
153
|
+
'!package.json',
|
154
|
+
'!@(readme|copying|license|licence|notice|changes|changelog|history){,.*[^~$]}'
|
155
|
+
]
|
156
|
+
if (pkg.bin)
|
157
|
+
if (typeof pkg.bin === "object")
|
158
|
+
for (const key in pkg.bin)
|
159
|
+
rules.push('!' + pkg.bin[key])
|
160
|
+
else
|
161
|
+
rules.push('!' + pkg.bin)
|
162
|
+
|
163
|
+
const data = rules.filter(f => f).join('\n') + '\n'
|
164
|
+
super.onReadIgnoreFile(packageNecessaryRules, data, _=>_)
|
146
165
|
|
147
166
|
if (Array.isArray(pkg.files))
|
148
167
|
super.onReadIgnoreFile('package.json', '*\n' + pkg.files.map(
|
@@ -163,7 +182,8 @@ const npmWalker = Class => class Walker extends Class {
|
|
163
182
|
onReadIgnoreFile (file, data, then) {
|
164
183
|
if (file === 'package.json')
|
165
184
|
try {
|
166
|
-
|
185
|
+
const ig = path.resolve(this.path, file)
|
186
|
+
this.onPackageJson(ig, JSON.parse(data), then)
|
167
187
|
} catch (er) {
|
168
188
|
// ignore package.json files that are not json
|
169
189
|
then()
|
@@ -193,12 +213,13 @@ class WalkerSync extends npmWalker(IgnoreWalkerSync) {
|
|
193
213
|
const walk = (options, callback) => {
|
194
214
|
options = options || {}
|
195
215
|
const p = new Promise((resolve, reject) => {
|
196
|
-
const bw = new BundleWalker(options)
|
216
|
+
const bw = new BundleWalker(options)
|
197
217
|
bw.on('done', bundled => {
|
198
218
|
options.bundled = bundled
|
199
219
|
options.packageJsonCache = bw.packageJsonCache
|
200
220
|
new Walker(options).on('done', resolve).on('error', reject).start()
|
201
221
|
})
|
222
|
+
bw.start()
|
202
223
|
})
|
203
224
|
return callback ? p.then(res => callback(null, res), callback) : p
|
204
225
|
}
|
@@ -1,8 +1,8 @@
|
|
1
1
|
{
|
2
2
|
"_from": "npm-packlist@^1.1.6",
|
3
|
-
"_id": "npm-packlist@1.
|
3
|
+
"_id": "npm-packlist@1.4.1",
|
4
4
|
"_inBundle": false,
|
5
|
-
"_integrity": "sha512
|
5
|
+
"_integrity": "sha512-+TcdO7HJJ8peiiYhvPxsEDhF3PJFGUGRcFsGve3vxvxdcpO2Z4Z7rkosRM0kWj6LfbK/P0gu3dzk5RU1ffvFcw==",
|
6
6
|
"_location": "/npm-packlist",
|
7
7
|
"_phantomChildren": {},
|
8
8
|
"_requested": {
|
@@ -18,10 +18,10 @@
|
|
18
18
|
"_requiredBy": [
|
19
19
|
"/node-pre-gyp"
|
20
20
|
],
|
21
|
-
"_resolved": "https://registry.npmjs.org/npm-packlist/-/npm-packlist-1.
|
22
|
-
"_shasum": "
|
21
|
+
"_resolved": "https://registry.npmjs.org/npm-packlist/-/npm-packlist-1.4.1.tgz",
|
22
|
+
"_shasum": "19064cdf988da80ea3cee45533879d90192bbfbc",
|
23
23
|
"_spec": "npm-packlist@^1.1.6",
|
24
|
-
"_where": "/Users/
|
24
|
+
"_where": "/Users/pipobscure/fsevents/node_modules/node-pre-gyp",
|
25
25
|
"author": {
|
26
26
|
"name": "Isaac Z. Schlueter",
|
27
27
|
"email": "i@izs.me",
|
@@ -62,5 +62,5 @@
|
|
62
62
|
"preversion": "npm test",
|
63
63
|
"test": "tap test/*.js --100 -J"
|
64
64
|
},
|
65
|
-
"version": "1.
|
65
|
+
"version": "1.4.1"
|
66
66
|
}
|
@@ -21,7 +21,7 @@
|
|
21
21
|
"_resolved": "https://registry.npmjs.org/npmlog/-/npmlog-4.1.2.tgz",
|
22
22
|
"_shasum": "08a7f2a8bf734604779a9efa4ad5cc717abb954b",
|
23
23
|
"_spec": "npmlog@^4.0.2",
|
24
|
-
"_where": "/Users/
|
24
|
+
"_where": "/Users/pipobscure/fsevents/node_modules/node-pre-gyp",
|
25
25
|
"author": {
|
26
26
|
"name": "Isaac Z. Schlueter",
|
27
27
|
"email": "i@izs.me",
|
@@ -21,7 +21,7 @@
|
|
21
21
|
"_resolved": "https://registry.npmjs.org/number-is-nan/-/number-is-nan-1.0.1.tgz",
|
22
22
|
"_shasum": "097b602b53422a522c1afb8790318336941a011d",
|
23
23
|
"_spec": "number-is-nan@^1.0.0",
|
24
|
-
"_where": "/Users/
|
24
|
+
"_where": "/Users/pipobscure/fsevents/node_modules/is-fullwidth-code-point",
|
25
25
|
"author": {
|
26
26
|
"name": "Sindre Sorhus",
|
27
27
|
"email": "sindresorhus@gmail.com",
|
@@ -21,7 +21,7 @@
|
|
21
21
|
"_resolved": "https://registry.npmjs.org/object-assign/-/object-assign-4.1.1.tgz",
|
22
22
|
"_shasum": "2109adc7965887cfc05cbbd442cac8bfbb360863",
|
23
23
|
"_spec": "object-assign@^4.1.0",
|
24
|
-
"_where": "/Users/
|
24
|
+
"_where": "/Users/pipobscure/fsevents/node_modules/gauge",
|
25
25
|
"author": {
|
26
26
|
"name": "Sindre Sorhus",
|
27
27
|
"email": "sindresorhus@gmail.com",
|
@@ -22,7 +22,7 @@
|
|
22
22
|
"_resolved": "https://registry.npmjs.org/once/-/once-1.4.0.tgz",
|
23
23
|
"_shasum": "583b1aa775961d4b113ac17d9c50baef9dd76bd1",
|
24
24
|
"_spec": "once@^1.3.0",
|
25
|
-
"_where": "/Users/
|
25
|
+
"_where": "/Users/pipobscure/fsevents/node_modules/glob",
|
26
26
|
"author": {
|
27
27
|
"name": "Isaac Z. Schlueter",
|
28
28
|
"email": "i@izs.me",
|
@@ -21,7 +21,7 @@
|
|
21
21
|
"_resolved": "https://registry.npmjs.org/os-homedir/-/os-homedir-1.0.2.tgz",
|
22
22
|
"_shasum": "ffbc4988336e0e833de0c168c7ef152121aa7fb3",
|
23
23
|
"_spec": "os-homedir@^1.0.0",
|
24
|
-
"_where": "/Users/
|
24
|
+
"_where": "/Users/pipobscure/fsevents/node_modules/osenv",
|
25
25
|
"author": {
|
26
26
|
"name": "Sindre Sorhus",
|
27
27
|
"email": "sindresorhus@gmail.com",
|
@@ -21,7 +21,7 @@
|
|
21
21
|
"_resolved": "https://registry.npmjs.org/os-tmpdir/-/os-tmpdir-1.0.2.tgz",
|
22
22
|
"_shasum": "bbe67406c79aa85c5cfec766fe5734555dfa1274",
|
23
23
|
"_spec": "os-tmpdir@^1.0.0",
|
24
|
-
"_where": "/Users/
|
24
|
+
"_where": "/Users/pipobscure/fsevents/node_modules/osenv",
|
25
25
|
"author": {
|
26
26
|
"name": "Sindre Sorhus",
|
27
27
|
"email": "sindresorhus@gmail.com",
|
@@ -21,7 +21,7 @@
|
|
21
21
|
"_resolved": "https://registry.npmjs.org/osenv/-/osenv-0.1.5.tgz",
|
22
22
|
"_shasum": "85cdfafaeb28e8677f416e287592b5f3f49ea410",
|
23
23
|
"_spec": "osenv@^0.1.4",
|
24
|
-
"_where": "/Users/
|
24
|
+
"_where": "/Users/pipobscure/fsevents/node_modules/nopt",
|
25
25
|
"author": {
|
26
26
|
"name": "Isaac Z. Schlueter",
|
27
27
|
"email": "i@izs.me",
|
@@ -21,7 +21,7 @@
|
|
21
21
|
"_resolved": "https://registry.npmjs.org/path-is-absolute/-/path-is-absolute-1.0.1.tgz",
|
22
22
|
"_shasum": "174b9268735534ffbc7ace6bf53a5a9e1b5c5f5f",
|
23
23
|
"_spec": "path-is-absolute@^1.0.0",
|
24
|
-
"_where": "/Users/
|
24
|
+
"_where": "/Users/pipobscure/fsevents/node_modules/glob",
|
25
25
|
"author": {
|
26
26
|
"name": "Sindre Sorhus",
|
27
27
|
"email": "sindresorhus@gmail.com",
|
@@ -21,7 +21,7 @@
|
|
21
21
|
"_resolved": "https://registry.npmjs.org/process-nextick-args/-/process-nextick-args-2.0.0.tgz",
|
22
22
|
"_shasum": "a37d732f4271b4ab1ad070d35508e8290788ffaa",
|
23
23
|
"_spec": "process-nextick-args@~2.0.0",
|
24
|
-
"_where": "/Users/
|
24
|
+
"_where": "/Users/pipobscure/fsevents/node_modules/readable-stream",
|
25
25
|
"author": "",
|
26
26
|
"bugs": {
|
27
27
|
"url": "https://github.com/calvinmetcalf/process-nextick-args/issues"
|
@@ -21,7 +21,7 @@
|
|
21
21
|
"_resolved": "https://registry.npmjs.org/minimist/-/minimist-1.2.0.tgz",
|
22
22
|
"_shasum": "a35008b20f41383eec1fb914f4cd5df79a264284",
|
23
23
|
"_spec": "minimist@^1.2.0",
|
24
|
-
"_where": "/Users/
|
24
|
+
"_where": "/Users/pipobscure/fsevents/node_modules/rc",
|
25
25
|
"author": {
|
26
26
|
"name": "James Halliday",
|
27
27
|
"email": "mail@substack.net",
|
@@ -21,7 +21,7 @@
|
|
21
21
|
"_resolved": "https://registry.npmjs.org/rc/-/rc-1.2.8.tgz",
|
22
22
|
"_shasum": "cd924bf5200a075b83c188cd6b9e211b7fc0d3ed",
|
23
23
|
"_spec": "rc@^1.2.7",
|
24
|
-
"_where": "/Users/
|
24
|
+
"_where": "/Users/pipobscure/fsevents/node_modules/node-pre-gyp",
|
25
25
|
"author": {
|
26
26
|
"name": "Dominic Tarr",
|
27
27
|
"email": "dominic.tarr@gmail.com",
|
@@ -21,7 +21,7 @@
|
|
21
21
|
"_resolved": "https://registry.npmjs.org/readable-stream/-/readable-stream-2.3.6.tgz",
|
22
22
|
"_shasum": "b11c27d88b8ff1fbe070643cf94b0c79ae1b0aaf",
|
23
23
|
"_spec": "readable-stream@^2.0.6",
|
24
|
-
"_where": "/Users/
|
24
|
+
"_where": "/Users/pipobscure/fsevents/node_modules/are-we-there-yet",
|
25
25
|
"browser": {
|
26
26
|
"util": false,
|
27
27
|
"./readable.js": "./readable-browser.js",
|
@@ -21,7 +21,7 @@
|
|
21
21
|
"_resolved": "https://registry.npmjs.org/rimraf/-/rimraf-2.6.3.tgz",
|
22
22
|
"_shasum": "b2d104fe0d8fb27cf9e0a1cda8262dd3833c6cab",
|
23
23
|
"_spec": "rimraf@^2.6.1",
|
24
|
-
"_where": "/Users/
|
24
|
+
"_where": "/Users/pipobscure/fsevents/node_modules/node-pre-gyp",
|
25
25
|
"author": {
|
26
26
|
"name": "Isaac Z. Schlueter",
|
27
27
|
"email": "i@izs.me",
|
@@ -24,7 +24,7 @@
|
|
24
24
|
"_resolved": "https://registry.npmjs.org/safe-buffer/-/safe-buffer-5.1.2.tgz",
|
25
25
|
"_shasum": "991ec69d296e0313747d59bdfd2b745c35f8828d",
|
26
26
|
"_spec": "safe-buffer@~5.1.1",
|
27
|
-
"_where": "/Users/
|
27
|
+
"_where": "/Users/pipobscure/fsevents/node_modules/readable-stream",
|
28
28
|
"author": {
|
29
29
|
"name": "Feross Aboukhadijeh",
|
30
30
|
"email": "feross@feross.org",
|
@@ -21,7 +21,7 @@
|
|
21
21
|
"_resolved": "https://registry.npmjs.org/safer-buffer/-/safer-buffer-2.1.2.tgz",
|
22
22
|
"_shasum": "44fa161b0187b9549dd84bb91802f9bd8385cd6a",
|
23
23
|
"_spec": "safer-buffer@>= 2.1.2 < 3",
|
24
|
-
"_where": "/Users/
|
24
|
+
"_where": "/Users/pipobscure/fsevents/node_modules/iconv-lite",
|
25
25
|
"author": {
|
26
26
|
"name": "Nikita Skovoroda",
|
27
27
|
"email": "chalkerx@gmail.com",
|
@@ -21,7 +21,7 @@
|
|
21
21
|
"_resolved": "https://registry.npmjs.org/sax/-/sax-1.2.4.tgz",
|
22
22
|
"_shasum": "2816234e2378bddc4e5354fab5caa895df7100d9",
|
23
23
|
"_spec": "sax@^1.2.4",
|
24
|
-
"_where": "/Users/
|
24
|
+
"_where": "/Users/pipobscure/fsevents/node_modules/needle",
|
25
25
|
"author": {
|
26
26
|
"name": "Isaac Z. Schlueter",
|
27
27
|
"email": "i@izs.me",
|
@@ -0,0 +1,39 @@
|
|
1
|
+
# changes log
|
2
|
+
|
3
|
+
## 5.7
|
4
|
+
|
5
|
+
* Add `minVersion` method
|
6
|
+
|
7
|
+
## 5.6
|
8
|
+
|
9
|
+
* Move boolean `loose` param to an options object, with
|
10
|
+
backwards-compatibility protection.
|
11
|
+
* Add ability to opt out of special prerelease version handling with
|
12
|
+
the `includePrerelease` option flag.
|
13
|
+
|
14
|
+
## 5.5
|
15
|
+
|
16
|
+
* Add version coercion capabilities
|
17
|
+
|
18
|
+
## 5.4
|
19
|
+
|
20
|
+
* Add intersection checking
|
21
|
+
|
22
|
+
## 5.3
|
23
|
+
|
24
|
+
* Add `minSatisfying` method
|
25
|
+
|
26
|
+
## 5.2
|
27
|
+
|
28
|
+
* Add `prerelease(v)` that returns prerelease components
|
29
|
+
|
30
|
+
## 5.1
|
31
|
+
|
32
|
+
* Add Backus-Naur for ranges
|
33
|
+
* Remove excessively cute inspection methods
|
34
|
+
|
35
|
+
## 5.0
|
36
|
+
|
37
|
+
* Remove AMD/Browserified build artifacts
|
38
|
+
* Fix ltr and gtr when using the `*` range
|
39
|
+
* Fix for range `*` with a prerelease identifier
|