fsevents 1.2.4 → 1.2.9
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 +2 -3
- package/fsevents.cc +14 -26
- package/node_modules/abbrev/package.json +3 -4
- package/node_modules/ansi-regex/package.json +2 -2
- package/node_modules/aproba/package.json +2 -2
- package/node_modules/are-we-there-yet/CHANGES.md +6 -0
- package/node_modules/are-we-there-yet/package.json +14 -14
- package/node_modules/are-we-there-yet/tracker-stream.js +1 -0
- package/node_modules/balanced-match/package.json +2 -2
- package/node_modules/brace-expansion/package.json +2 -2
- package/node_modules/chownr/chownr.js +74 -38
- package/node_modules/chownr/package.json +17 -14
- package/node_modules/code-point-at/package.json +2 -2
- package/node_modules/concat-map/package.json +2 -2
- package/node_modules/console-control-strings/package.json +2 -2
- package/node_modules/core-util-is/package.json +2 -2
- 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 +41 -27
- 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/CHANGELOG.md +8 -0
- package/node_modules/deep-extend/README.md +0 -2
- package/node_modules/deep-extend/package.json +20 -18
- package/node_modules/delegates/package.json +2 -2
- package/node_modules/detect-libc/package.json +2 -2
- package/node_modules/fs-minipass/package.json +2 -2
- package/node_modules/fs.realpath/package.json +2 -2
- package/node_modules/gauge/package.json +2 -2
- package/node_modules/glob/package.json +13 -13
- package/node_modules/has-unicode/package.json +2 -2
- package/node_modules/iconv-lite/Changelog.md +16 -0
- package/node_modules/iconv-lite/encodings/sbcs-codec.js +2 -2
- package/node_modules/iconv-lite/encodings/sbcs-data.js +5 -0
- package/node_modules/iconv-lite/lib/extend-node.js +1 -1
- package/node_modules/iconv-lite/lib/index.d.ts +2 -2
- package/node_modules/iconv-lite/package.json +14 -14
- package/node_modules/ignore-walk/package.json +2 -2
- package/node_modules/inflight/package.json +2 -2
- package/node_modules/inherits/package.json +3 -5
- package/node_modules/ini/package.json +2 -2
- package/node_modules/is-fullwidth-code-point/package.json +2 -2
- package/node_modules/isarray/package.json +2 -2
- package/node_modules/minimatch/package.json +2 -2
- package/node_modules/minimist/package.json +2 -2
- package/node_modules/minipass/LICENSE +15 -0
- package/node_modules/minipass/README.md +81 -3
- package/node_modules/minipass/index.js +77 -6
- package/node_modules/minipass/package.json +14 -14
- package/node_modules/minizlib/index.js +66 -95
- package/node_modules/minizlib/package.json +13 -13
- package/node_modules/mkdirp/package.json +2 -3
- 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 +3 -3
- package/node_modules/needle/examples/multipart-stream.js +1 -1
- package/node_modules/needle/lib/auth.js +1 -1
- package/node_modules/needle/lib/cookies.js +12 -10
- package/node_modules/needle/lib/multipart.js +1 -1
- package/node_modules/needle/lib/needle.js +18 -6
- package/node_modules/needle/package-lock.json +395 -0
- package/node_modules/needle/package.json +21 -21
- 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/errors_spec.js +4 -4
- 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/long_string_spec.js +1 -1
- 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/url_spec.js +11 -3
- package/node_modules/needle/test/utils/test.js +1 -1
- package/node_modules/node-pre-gyp/CHANGELOG.md +23 -0
- package/node_modules/node-pre-gyp/README.md +44 -12
- package/node_modules/node-pre-gyp/appveyor.yml +0 -2
- package/node_modules/node-pre-gyp/lib/build.js +1 -1
- package/node_modules/node-pre-gyp/lib/install.js +42 -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 +96 -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 +19 -17
- package/node_modules/nopt/package.json +2 -2
- package/node_modules/npm-bundled/LICENSE +15 -0
- package/node_modules/npm-bundled/README.md +2 -0
- package/node_modules/npm-bundled/index.js +16 -2
- package/node_modules/npm-bundled/package.json +13 -13
- package/node_modules/npm-packlist/index.js +43 -13
- package/node_modules/npm-packlist/package.json +13 -13
- package/node_modules/npmlog/package.json +2 -2
- package/node_modules/number-is-nan/package.json +2 -2
- package/node_modules/object-assign/package.json +2 -2
- package/node_modules/once/package.json +2 -2
- package/node_modules/os-homedir/package.json +2 -2
- package/node_modules/os-tmpdir/package.json +2 -2
- package/node_modules/osenv/package.json +2 -2
- package/node_modules/path-is-absolute/package.json +2 -2
- package/node_modules/process-nextick-args/package.json +2 -2
- package/node_modules/rc/node_modules/minimist/package.json +2 -2
- package/node_modules/rc/package.json +17 -16
- package/node_modules/readable-stream/package.json +2 -2
- package/node_modules/rimraf/package.json +17 -14
- package/node_modules/safe-buffer/index.d.ts +187 -0
- package/node_modules/safe-buffer/package.json +15 -15
- package/node_modules/safer-buffer/package.json +2 -2
- package/node_modules/sax/package.json +2 -2
- package/node_modules/semver/CHANGELOG.md +39 -0
- package/node_modules/semver/README.md +31 -8
- package/node_modules/semver/bin/semver +92 -75
- package/node_modules/semver/package.json +20 -14
- package/node_modules/semver/semver.js +922 -763
- package/node_modules/set-blocking/package.json +2 -2
- package/node_modules/signal-exit/package.json +2 -2
- package/node_modules/string-width/package.json +2 -2
- package/node_modules/string_decoder/package.json +2 -2
- package/node_modules/strip-ansi/package.json +2 -2
- package/node_modules/strip-json-comments/package.json +2 -2
- package/node_modules/tar/README.md +7 -2
- package/node_modules/tar/lib/header.js +20 -4
- package/node_modules/tar/lib/mode-fix.js +14 -0
- package/node_modules/tar/lib/pack.js +1 -0
- package/node_modules/tar/lib/parse.js +2 -1
- package/node_modules/tar/lib/unpack.js +67 -6
- package/node_modules/tar/lib/write-entry.js +25 -6
- package/node_modules/tar/package.json +20 -20
- package/node_modules/util-deprecate/package.json +2 -2
- package/node_modules/wide-align/package.json +14 -14
- package/node_modules/wrappy/package.json +2 -2
- package/node_modules/yallist/iterator.js +5 -5
- package/node_modules/yallist/package.json +13 -13
- package/node_modules/yallist/yallist.js +2 -2
- package/package.json +6 -9
- package/src/async.cc +2 -2
- package/src/constants.cc +20 -20
- package/src/thread.cc +5 -6
- package/build/.target.mk +0 -55
- package/build/Makefile +0 -352
- package/build/Release/.deps/Release/.node.d +0 -1
- package/build/Release/.deps/Release/fse.node.d +0 -1
- package/build/Release/.deps/Release/obj.target/action_after_build.stamp.d +0 -1
- package/build/Release/.deps/Release/obj.target/fse/fsevents.o.d +0 -67
- package/build/Release/.deps/Users/eshanker/Code/fsevents/lib/binding/Release/node-v64-darwin-x64/fse.node.d +0 -1
- package/build/Release/.node +0 -0
- package/build/Release/fse.node +0 -0
- package/build/Release/obj.target/action_after_build.stamp +0 -0
- package/build/Release/obj.target/fse/fsevents.o +0 -0
- package/build/action_after_build.target.mk +0 -32
- package/build/binding.Makefile +0 -6
- package/build/fse.target.mk +0 -184
- package/build/gyp-mac-tool +0 -611
- package/lib/binding/Release/node-v11-darwin-x64/fse.node +0 -0
- package/lib/binding/Release/node-v46-darwin-x64/fse.node +0 -0
- package/lib/binding/Release/node-v47-darwin-x64/fse.node +0 -0
- package/lib/binding/Release/node-v48-darwin-x64/fse.node +0 -0
- package/lib/binding/Release/node-v57-darwin-x64/fse.node +0 -0
- package/lib/binding/Release/node-v64-darwin-x64/fse.node +0 -0
- package/node_modules/are-we-there-yet/CHANGES.md~ +0 -27
- 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/iconv-lite/.travis.yml +0 -23
- package/node_modules/safe-buffer/.travis.yml +0 -7
- package/node_modules/safe-buffer/test.js +0 -101
- package/src/locking.cc +0 -27
@@ -47,7 +47,8 @@ var share_with_node_gyp = [
|
|
47
47
|
'module_path',
|
48
48
|
'napi_version',
|
49
49
|
'node_abi_napi',
|
50
|
-
'napi_build_version'
|
50
|
+
'napi_build_version',
|
51
|
+
'node_napi_label'
|
51
52
|
];
|
52
53
|
|
53
54
|
function handle_gyp_opts(gyp, argv, callback) {
|
@@ -61,8 +62,10 @@ function handle_gyp_opts(gyp, argv, callback) {
|
|
61
62
|
var val = opts[key];
|
62
63
|
if (val) {
|
63
64
|
node_pre_gyp_options.push('--' + key + '=' + val);
|
65
|
+
} else if (key === 'napi_build_version') {
|
66
|
+
node_pre_gyp_options.push('--' + key + '=0');
|
64
67
|
} else {
|
65
|
-
if (key !== 'napi_version' && key !== 'node_abi_napi'
|
68
|
+
if (key !== 'napi_version' && key !== 'node_abi_napi')
|
66
69
|
return callback(new Error("Option " + key + " required but not found by node-pre-gyp"));
|
67
70
|
}
|
68
71
|
});
|
@@ -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,32 @@
|
|
1
1
|
{
|
2
|
-
"
|
3
|
-
|
2
|
+
"_args": [
|
3
|
+
[
|
4
|
+
"node-pre-gyp@0.12.0",
|
5
|
+
"/Users/pipobscure/fsevents"
|
6
|
+
]
|
7
|
+
],
|
8
|
+
"_from": "node-pre-gyp@0.12.0",
|
9
|
+
"_id": "node-pre-gyp@0.12.0",
|
4
10
|
"_inBundle": false,
|
5
|
-
"_integrity": "sha512-
|
11
|
+
"_integrity": "sha512-4KghwV8vH5k+g2ylT+sLTjy5wmUOb9vPhnM8NHvRf9dHmnW/CndrFXy2aRPaPST6dugXSdHXfeaHQm77PIz/1A==",
|
6
12
|
"_location": "/node-pre-gyp",
|
7
13
|
"_phantomChildren": {},
|
8
14
|
"_requested": {
|
9
|
-
"type": "
|
15
|
+
"type": "version",
|
10
16
|
"registry": true,
|
11
|
-
"raw": "node-pre-gyp
|
17
|
+
"raw": "node-pre-gyp@0.12.0",
|
12
18
|
"name": "node-pre-gyp",
|
13
19
|
"escapedName": "node-pre-gyp",
|
14
|
-
"rawSpec": "
|
20
|
+
"rawSpec": "0.12.0",
|
15
21
|
"saveSpec": null,
|
16
|
-
"fetchSpec": "
|
22
|
+
"fetchSpec": "0.12.0"
|
17
23
|
},
|
18
24
|
"_requiredBy": [
|
19
25
|
"/"
|
20
26
|
],
|
21
|
-
"_resolved": "https://registry.npmjs.org/node-pre-gyp/-/node-pre-gyp-0.
|
22
|
-
"
|
23
|
-
"
|
24
|
-
"_where": "/Users/eshanker/Code/fsevents",
|
27
|
+
"_resolved": "https://registry.npmjs.org/node-pre-gyp/-/node-pre-gyp-0.12.0.tgz",
|
28
|
+
"_spec": "0.12.0",
|
29
|
+
"_where": "/Users/pipobscure/fsevents",
|
25
30
|
"author": {
|
26
31
|
"name": "Dane Springmeyer",
|
27
32
|
"email": "dane@mapbox.com"
|
@@ -32,26 +37,23 @@
|
|
32
37
|
"bugs": {
|
33
38
|
"url": "https://github.com/mapbox/node-pre-gyp/issues"
|
34
39
|
},
|
35
|
-
"bundleDependencies": false,
|
36
40
|
"dependencies": {
|
37
41
|
"detect-libc": "^1.0.2",
|
38
42
|
"mkdirp": "^0.5.1",
|
39
|
-
"needle": "^2.2.
|
43
|
+
"needle": "^2.2.1",
|
40
44
|
"nopt": "^4.0.1",
|
41
45
|
"npm-packlist": "^1.1.6",
|
42
46
|
"npmlog": "^4.0.2",
|
43
|
-
"rc": "^1.
|
47
|
+
"rc": "^1.2.7",
|
44
48
|
"rimraf": "^2.6.1",
|
45
49
|
"semver": "^5.3.0",
|
46
50
|
"tar": "^4"
|
47
51
|
},
|
48
|
-
"deprecated": false,
|
49
52
|
"description": "Node.js native addon binary install tool",
|
50
53
|
"devDependencies": {
|
51
54
|
"aws-sdk": "^2.28.0",
|
52
55
|
"jshint": "^2.9.5",
|
53
56
|
"nock": "^9.2.3",
|
54
|
-
"retire": "^1.2.12",
|
55
57
|
"tape": "^4.6.3"
|
56
58
|
},
|
57
59
|
"homepage": "https://github.com/mapbox/node-pre-gyp#readme",
|
@@ -83,5 +85,5 @@
|
|
83
85
|
"test": "jshint lib lib/util scripts bin/node-pre-gyp && tape test/*test.js",
|
84
86
|
"update-crosswalk": "node scripts/abi_crosswalk.js"
|
85
87
|
},
|
86
|
-
"version": "0.
|
88
|
+
"version": "0.12.0"
|
87
89
|
}
|
@@ -2,7 +2,7 @@
|
|
2
2
|
"_args": [
|
3
3
|
[
|
4
4
|
"nopt@4.0.1",
|
5
|
-
"/Users/
|
5
|
+
"/Users/pipobscure/fsevents"
|
6
6
|
]
|
7
7
|
],
|
8
8
|
"_from": "nopt@4.0.1",
|
@@ -26,7 +26,7 @@
|
|
26
26
|
],
|
27
27
|
"_resolved": "https://registry.npmjs.org/nopt/-/nopt-4.0.1.tgz",
|
28
28
|
"_spec": "4.0.1",
|
29
|
-
"_where": "/Users/
|
29
|
+
"_where": "/Users/pipobscure/fsevents",
|
30
30
|
"author": {
|
31
31
|
"name": "Isaac Z. Schlueter",
|
32
32
|
"email": "i@izs.me",
|
@@ -0,0 +1,15 @@
|
|
1
|
+
The ISC License
|
2
|
+
|
3
|
+
Copyright (c) npm, Inc. and Contributors
|
4
|
+
|
5
|
+
Permission to use, copy, modify, and/or distribute this software for any
|
6
|
+
purpose with or without fee is hereby granted, provided that the above
|
7
|
+
copyright notice and this permission notice appear in all copies.
|
8
|
+
|
9
|
+
THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES
|
10
|
+
WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF
|
11
|
+
MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR
|
12
|
+
ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES
|
13
|
+
WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN
|
14
|
+
ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF OR
|
15
|
+
IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
|
@@ -4,6 +4,8 @@ Run this in a node package, and it'll tell you which things in
|
|
4
4
|
node_modules are bundledDependencies, or transitive dependencies of
|
5
5
|
bundled dependencies.
|
6
6
|
|
7
|
+
[](https://travis-ci.org/npm/npm-bundled)
|
8
|
+
|
7
9
|
## USAGE
|
8
10
|
|
9
11
|
To get the list of deps at the top level that are bundled (or
|
@@ -35,6 +35,7 @@ class BundleWalker extends EE {
|
|
35
35
|
this.packageJsonCache = opt.packageJsonCache || new Map()
|
36
36
|
}
|
37
37
|
|
38
|
+
this.seen = new Set()
|
38
39
|
this.didDone = false
|
39
40
|
this.children = 0
|
40
41
|
this.node_modules = []
|
@@ -42,6 +43,18 @@ class BundleWalker extends EE {
|
|
42
43
|
this.bundle = null
|
43
44
|
}
|
44
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
|
+
|
45
58
|
done () {
|
46
59
|
if (!this.didDone) {
|
47
60
|
this.didDone = true
|
@@ -56,7 +69,7 @@ class BundleWalker extends EE {
|
|
56
69
|
}
|
57
70
|
|
58
71
|
start () {
|
59
|
-
const pj = this.path
|
72
|
+
const pj = path.resolve(this.path, 'package.json')
|
60
73
|
if (this.packageJsonCache.has(pj))
|
61
74
|
this.onPackage(this.packageJsonCache.get(pj))
|
62
75
|
else
|
@@ -114,7 +127,8 @@ class BundleWalker extends EE {
|
|
114
127
|
}
|
115
128
|
|
116
129
|
childDep (dep) {
|
117
|
-
if (this.node_modules.indexOf(dep) !== -1) {
|
130
|
+
if (this.node_modules.indexOf(dep) !== -1 && !this.seen.has(dep)) {
|
131
|
+
this.seen.add(dep)
|
118
132
|
this.child(dep)
|
119
133
|
} else if (this.parent) {
|
120
134
|
this.parent.childDep(dep)
|
@@ -1,32 +1,32 @@
|
|
1
1
|
{
|
2
2
|
"_args": [
|
3
3
|
[
|
4
|
-
"npm-bundled@1.0.
|
5
|
-
"/Users/
|
4
|
+
"npm-bundled@1.0.6",
|
5
|
+
"/Users/pipobscure/fsevents"
|
6
6
|
]
|
7
7
|
],
|
8
|
-
"_from": "npm-bundled@1.0.
|
9
|
-
"_id": "npm-bundled@1.0.
|
8
|
+
"_from": "npm-bundled@1.0.6",
|
9
|
+
"_id": "npm-bundled@1.0.6",
|
10
10
|
"_inBundle": false,
|
11
|
-
"_integrity": "sha512-
|
11
|
+
"_integrity": "sha512-8/JCaftHwbd//k6y2rEWp6k1wxVfpFzB6t1p825+cUb7Ym2XQfhwIC5KwhrvzZRJu+LtDE585zVaS32+CGtf0g==",
|
12
12
|
"_location": "/npm-bundled",
|
13
13
|
"_phantomChildren": {},
|
14
14
|
"_requested": {
|
15
15
|
"type": "version",
|
16
16
|
"registry": true,
|
17
|
-
"raw": "npm-bundled@1.0.
|
17
|
+
"raw": "npm-bundled@1.0.6",
|
18
18
|
"name": "npm-bundled",
|
19
19
|
"escapedName": "npm-bundled",
|
20
|
-
"rawSpec": "1.0.
|
20
|
+
"rawSpec": "1.0.6",
|
21
21
|
"saveSpec": null,
|
22
|
-
"fetchSpec": "1.0.
|
22
|
+
"fetchSpec": "1.0.6"
|
23
23
|
},
|
24
24
|
"_requiredBy": [
|
25
25
|
"/npm-packlist"
|
26
26
|
],
|
27
|
-
"_resolved": "https://registry.npmjs.org/npm-bundled/-/npm-bundled-1.0.
|
28
|
-
"_spec": "1.0.
|
29
|
-
"_where": "/Users/
|
27
|
+
"_resolved": "https://registry.npmjs.org/npm-bundled/-/npm-bundled-1.0.6.tgz",
|
28
|
+
"_spec": "1.0.6",
|
29
|
+
"_where": "/Users/pipobscure/fsevents",
|
30
30
|
"author": {
|
31
31
|
"name": "Isaac Z. Schlueter",
|
32
32
|
"email": "i@izs.me",
|
@@ -40,7 +40,7 @@
|
|
40
40
|
"mkdirp": "^0.5.1",
|
41
41
|
"mutate-fs": "^1.1.0",
|
42
42
|
"rimraf": "^2.6.1",
|
43
|
-
"tap": "^
|
43
|
+
"tap": "^12.0.1"
|
44
44
|
},
|
45
45
|
"files": [
|
46
46
|
"index.js"
|
@@ -59,5 +59,5 @@
|
|
59
59
|
"preversion": "npm test",
|
60
60
|
"test": "tap test/*.js -J --100"
|
61
61
|
},
|
62
|
-
"version": "1.0.
|
62
|
+
"version": "1.0.6"
|
63
63
|
}
|
@@ -20,20 +20,34 @@ const path = require('path')
|
|
20
20
|
const defaultRules = [
|
21
21
|
'.npmignore',
|
22
22
|
'.gitignore',
|
23
|
-
'**/.git
|
24
|
-
'**/.svn
|
25
|
-
'**/.hg
|
26
|
-
'**/CVS
|
23
|
+
'**/.git',
|
24
|
+
'**/.svn',
|
25
|
+
'**/.hg',
|
26
|
+
'**/CVS',
|
27
|
+
'**/.git/**',
|
28
|
+
'**/.svn/**',
|
29
|
+
'**/.hg/**',
|
30
|
+
'**/CVS/**',
|
27
31
|
'/.lock-wscript',
|
28
32
|
'/.wafpickle-*',
|
29
33
|
'/build/config.gypi',
|
30
34
|
'npm-debug.log',
|
31
35
|
'**/.npmrc',
|
32
36
|
'.*.swp',
|
33
|
-
'
|
37
|
+
'**/.DS_Store/**',
|
34
38
|
'._*',
|
39
|
+
'**/._*/**',
|
35
40
|
'*.orig',
|
36
|
-
'package-lock.json'
|
41
|
+
'/package-lock.json',
|
42
|
+
'/yarn.lock',
|
43
|
+
'archived-packages/**',
|
44
|
+
'core',
|
45
|
+
'!core/',
|
46
|
+
'!**/core/',
|
47
|
+
'*.core',
|
48
|
+
'*.vgcore',
|
49
|
+
'vgcore.*',
|
50
|
+
'core.+([0-9])',
|
37
51
|
]
|
38
52
|
|
39
53
|
// a decorator that applies our custom rules to an ignore walker
|
@@ -52,7 +66,11 @@ const npmWalker = Class => class Walker extends Class {
|
|
52
66
|
|
53
67
|
opt.includeEmpty = false
|
54
68
|
opt.path = opt.path || process.cwd()
|
55
|
-
|
69
|
+
const dirName = path.basename(opt.path)
|
70
|
+
const parentName = path.basename(path.dirname(opt.path))
|
71
|
+
opt.follow =
|
72
|
+
dirName === 'node_modules' ||
|
73
|
+
(parentName === 'node_modules' && /^@/.test(dirName))
|
56
74
|
super(opt)
|
57
75
|
|
58
76
|
// ignore a bunch of things by default at the root level.
|
@@ -127,13 +145,23 @@ const npmWalker = Class => class Walker extends Class {
|
|
127
145
|
onPackageJson (ig, pkg, then) {
|
128
146
|
this.packageJsonCache.set(ig, pkg)
|
129
147
|
|
130
|
-
// 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!
|
131
150
|
const rules = [
|
132
151
|
pkg.browser ? '!' + pkg.browser : '',
|
133
152
|
pkg.main ? '!' + pkg.main : '',
|
134
|
-
'
|
135
|
-
|
136
|
-
|
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, _=>_)
|
137
165
|
|
138
166
|
if (Array.isArray(pkg.files))
|
139
167
|
super.onReadIgnoreFile('package.json', '*\n' + pkg.files.map(
|
@@ -154,7 +182,8 @@ const npmWalker = Class => class Walker extends Class {
|
|
154
182
|
onReadIgnoreFile (file, data, then) {
|
155
183
|
if (file === 'package.json')
|
156
184
|
try {
|
157
|
-
|
185
|
+
const ig = path.resolve(this.path, file)
|
186
|
+
this.onPackageJson(ig, JSON.parse(data), then)
|
158
187
|
} catch (er) {
|
159
188
|
// ignore package.json files that are not json
|
160
189
|
then()
|
@@ -184,12 +213,13 @@ class WalkerSync extends npmWalker(IgnoreWalkerSync) {
|
|
184
213
|
const walk = (options, callback) => {
|
185
214
|
options = options || {}
|
186
215
|
const p = new Promise((resolve, reject) => {
|
187
|
-
const bw = new BundleWalker(options)
|
216
|
+
const bw = new BundleWalker(options)
|
188
217
|
bw.on('done', bundled => {
|
189
218
|
options.bundled = bundled
|
190
219
|
options.packageJsonCache = bw.packageJsonCache
|
191
220
|
new Walker(options).on('done', resolve).on('error', reject).start()
|
192
221
|
})
|
222
|
+
bw.start()
|
193
223
|
})
|
194
224
|
return callback ? p.then(res => callback(null, res), callback) : p
|
195
225
|
}
|
@@ -1,32 +1,32 @@
|
|
1
1
|
{
|
2
2
|
"_args": [
|
3
3
|
[
|
4
|
-
"npm-packlist@1.1
|
5
|
-
"/Users/
|
4
|
+
"npm-packlist@1.4.1",
|
5
|
+
"/Users/pipobscure/fsevents"
|
6
6
|
]
|
7
7
|
],
|
8
|
-
"_from": "npm-packlist@1.1
|
9
|
-
"_id": "npm-packlist@1.1
|
8
|
+
"_from": "npm-packlist@1.4.1",
|
9
|
+
"_id": "npm-packlist@1.4.1",
|
10
10
|
"_inBundle": false,
|
11
|
-
"_integrity": "sha512
|
11
|
+
"_integrity": "sha512-+TcdO7HJJ8peiiYhvPxsEDhF3PJFGUGRcFsGve3vxvxdcpO2Z4Z7rkosRM0kWj6LfbK/P0gu3dzk5RU1ffvFcw==",
|
12
12
|
"_location": "/npm-packlist",
|
13
13
|
"_phantomChildren": {},
|
14
14
|
"_requested": {
|
15
15
|
"type": "version",
|
16
16
|
"registry": true,
|
17
|
-
"raw": "npm-packlist@1.1
|
17
|
+
"raw": "npm-packlist@1.4.1",
|
18
18
|
"name": "npm-packlist",
|
19
19
|
"escapedName": "npm-packlist",
|
20
|
-
"rawSpec": "1.1
|
20
|
+
"rawSpec": "1.4.1",
|
21
21
|
"saveSpec": null,
|
22
|
-
"fetchSpec": "1.1
|
22
|
+
"fetchSpec": "1.4.1"
|
23
23
|
},
|
24
24
|
"_requiredBy": [
|
25
25
|
"/node-pre-gyp"
|
26
26
|
],
|
27
|
-
"_resolved": "https://registry.npmjs.org/npm-packlist/-/npm-packlist-1.1.
|
28
|
-
"_spec": "1.1
|
29
|
-
"_where": "/Users/
|
27
|
+
"_resolved": "https://registry.npmjs.org/npm-packlist/-/npm-packlist-1.4.1.tgz",
|
28
|
+
"_spec": "1.4.1",
|
29
|
+
"_where": "/Users/pipobscure/fsevents",
|
30
30
|
"author": {
|
31
31
|
"name": "Isaac Z. Schlueter",
|
32
32
|
"email": "i@izs.me",
|
@@ -43,7 +43,7 @@
|
|
43
43
|
"devDependencies": {
|
44
44
|
"mkdirp": "^0.5.1",
|
45
45
|
"rimraf": "^2.6.1",
|
46
|
-
"tap": "^
|
46
|
+
"tap": "^12.0.1"
|
47
47
|
},
|
48
48
|
"directories": {
|
49
49
|
"test": "test"
|
@@ -65,5 +65,5 @@
|
|
65
65
|
"preversion": "npm test",
|
66
66
|
"test": "tap test/*.js --100 -J"
|
67
67
|
},
|
68
|
-
"version": "1.1
|
68
|
+
"version": "1.4.1"
|
69
69
|
}
|
@@ -2,7 +2,7 @@
|
|
2
2
|
"_args": [
|
3
3
|
[
|
4
4
|
"npmlog@4.1.2",
|
5
|
-
"/Users/
|
5
|
+
"/Users/pipobscure/fsevents"
|
6
6
|
]
|
7
7
|
],
|
8
8
|
"_from": "npmlog@4.1.2",
|
@@ -26,7 +26,7 @@
|
|
26
26
|
],
|
27
27
|
"_resolved": "https://registry.npmjs.org/npmlog/-/npmlog-4.1.2.tgz",
|
28
28
|
"_spec": "4.1.2",
|
29
|
-
"_where": "/Users/
|
29
|
+
"_where": "/Users/pipobscure/fsevents",
|
30
30
|
"author": {
|
31
31
|
"name": "Isaac Z. Schlueter",
|
32
32
|
"email": "i@izs.me",
|
@@ -2,7 +2,7 @@
|
|
2
2
|
"_args": [
|
3
3
|
[
|
4
4
|
"number-is-nan@1.0.1",
|
5
|
-
"/Users/
|
5
|
+
"/Users/pipobscure/fsevents"
|
6
6
|
]
|
7
7
|
],
|
8
8
|
"_from": "number-is-nan@1.0.1",
|
@@ -26,7 +26,7 @@
|
|
26
26
|
],
|
27
27
|
"_resolved": "https://registry.npmjs.org/number-is-nan/-/number-is-nan-1.0.1.tgz",
|
28
28
|
"_spec": "1.0.1",
|
29
|
-
"_where": "/Users/
|
29
|
+
"_where": "/Users/pipobscure/fsevents",
|
30
30
|
"author": {
|
31
31
|
"name": "Sindre Sorhus",
|
32
32
|
"email": "sindresorhus@gmail.com",
|