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.

Files changed (181) hide show
  1. package/.travis.yml +2 -3
  2. package/fsevents.cc +14 -26
  3. package/node_modules/abbrev/package.json +3 -4
  4. package/node_modules/ansi-regex/package.json +2 -2
  5. package/node_modules/aproba/package.json +2 -2
  6. package/node_modules/are-we-there-yet/CHANGES.md +6 -0
  7. package/node_modules/are-we-there-yet/package.json +14 -14
  8. package/node_modules/are-we-there-yet/tracker-stream.js +1 -0
  9. package/node_modules/balanced-match/package.json +2 -2
  10. package/node_modules/brace-expansion/package.json +2 -2
  11. package/node_modules/chownr/chownr.js +74 -38
  12. package/node_modules/chownr/package.json +17 -14
  13. package/node_modules/code-point-at/package.json +2 -2
  14. package/node_modules/concat-map/package.json +2 -2
  15. package/node_modules/console-control-strings/package.json +2 -2
  16. package/node_modules/core-util-is/package.json +2 -2
  17. package/node_modules/debug/CHANGELOG.md +34 -1
  18. package/node_modules/debug/README.md +206 -63
  19. package/node_modules/debug/dist/debug.js +912 -0
  20. package/node_modules/debug/package.json +41 -27
  21. package/node_modules/debug/src/browser.js +185 -106
  22. package/node_modules/debug/src/common.js +266 -0
  23. package/node_modules/debug/src/index.js +4 -4
  24. package/node_modules/debug/src/node.js +174 -165
  25. package/node_modules/deep-extend/CHANGELOG.md +8 -0
  26. package/node_modules/deep-extend/README.md +0 -2
  27. package/node_modules/deep-extend/package.json +20 -18
  28. package/node_modules/delegates/package.json +2 -2
  29. package/node_modules/detect-libc/package.json +2 -2
  30. package/node_modules/fs-minipass/package.json +2 -2
  31. package/node_modules/fs.realpath/package.json +2 -2
  32. package/node_modules/gauge/package.json +2 -2
  33. package/node_modules/glob/package.json +13 -13
  34. package/node_modules/has-unicode/package.json +2 -2
  35. package/node_modules/iconv-lite/Changelog.md +16 -0
  36. package/node_modules/iconv-lite/encodings/sbcs-codec.js +2 -2
  37. package/node_modules/iconv-lite/encodings/sbcs-data.js +5 -0
  38. package/node_modules/iconv-lite/lib/extend-node.js +1 -1
  39. package/node_modules/iconv-lite/lib/index.d.ts +2 -2
  40. package/node_modules/iconv-lite/package.json +14 -14
  41. package/node_modules/ignore-walk/package.json +2 -2
  42. package/node_modules/inflight/package.json +2 -2
  43. package/node_modules/inherits/package.json +3 -5
  44. package/node_modules/ini/package.json +2 -2
  45. package/node_modules/is-fullwidth-code-point/package.json +2 -2
  46. package/node_modules/isarray/package.json +2 -2
  47. package/node_modules/minimatch/package.json +2 -2
  48. package/node_modules/minimist/package.json +2 -2
  49. package/node_modules/minipass/LICENSE +15 -0
  50. package/node_modules/minipass/README.md +81 -3
  51. package/node_modules/minipass/index.js +77 -6
  52. package/node_modules/minipass/package.json +14 -14
  53. package/node_modules/minizlib/index.js +66 -95
  54. package/node_modules/minizlib/package.json +13 -13
  55. package/node_modules/mkdirp/package.json +2 -3
  56. package/node_modules/ms/index.js +28 -18
  57. package/node_modules/ms/package.json +17 -17
  58. package/node_modules/ms/readme.md +17 -8
  59. package/node_modules/needle/.npmignore +6 -0
  60. package/node_modules/needle/README.md +3 -3
  61. package/node_modules/needle/examples/multipart-stream.js +1 -1
  62. package/node_modules/needle/lib/auth.js +1 -1
  63. package/node_modules/needle/lib/cookies.js +12 -10
  64. package/node_modules/needle/lib/multipart.js +1 -1
  65. package/node_modules/needle/lib/needle.js +18 -6
  66. package/node_modules/needle/package-lock.json +395 -0
  67. package/node_modules/needle/package.json +21 -21
  68. package/node_modules/needle/test/basic_auth_spec.js +1 -1
  69. package/node_modules/needle/test/cookies_spec.js +2 -2
  70. package/node_modules/needle/test/errors_spec.js +4 -4
  71. package/node_modules/needle/test/keys/ssl.cert +21 -0
  72. package/node_modules/needle/test/keys/ssl.key +27 -0
  73. package/node_modules/needle/test/long_string_spec.js +1 -1
  74. package/node_modules/needle/test/output_spec.js +1 -1
  75. package/node_modules/needle/test/post_data_spec.js +20 -20
  76. package/node_modules/needle/test/proxy_spec.js +1 -1
  77. package/node_modules/needle/test/url_spec.js +11 -3
  78. package/node_modules/needle/test/utils/test.js +1 -1
  79. package/node_modules/node-pre-gyp/CHANGELOG.md +23 -0
  80. package/node_modules/node-pre-gyp/README.md +44 -12
  81. package/node_modules/node-pre-gyp/appveyor.yml +0 -2
  82. package/node_modules/node-pre-gyp/lib/build.js +1 -1
  83. package/node_modules/node-pre-gyp/lib/install.js +42 -8
  84. package/node_modules/node-pre-gyp/lib/node-pre-gyp.js +1 -1
  85. package/node_modules/node-pre-gyp/lib/pre-binding.js +5 -5
  86. package/node_modules/node-pre-gyp/lib/rebuild.js +1 -1
  87. package/node_modules/node-pre-gyp/lib/reinstall.js +1 -1
  88. package/node_modules/node-pre-gyp/lib/util/abi_crosswalk.json +96 -0
  89. package/node_modules/node-pre-gyp/lib/util/handle_gyp_opts.js +5 -2
  90. package/node_modules/node-pre-gyp/lib/util/napi.js +70 -22
  91. package/node_modules/node-pre-gyp/lib/util/versioning.js +7 -6
  92. package/node_modules/node-pre-gyp/package.json +19 -17
  93. package/node_modules/nopt/package.json +2 -2
  94. package/node_modules/npm-bundled/LICENSE +15 -0
  95. package/node_modules/npm-bundled/README.md +2 -0
  96. package/node_modules/npm-bundled/index.js +16 -2
  97. package/node_modules/npm-bundled/package.json +13 -13
  98. package/node_modules/npm-packlist/index.js +43 -13
  99. package/node_modules/npm-packlist/package.json +13 -13
  100. package/node_modules/npmlog/package.json +2 -2
  101. package/node_modules/number-is-nan/package.json +2 -2
  102. package/node_modules/object-assign/package.json +2 -2
  103. package/node_modules/once/package.json +2 -2
  104. package/node_modules/os-homedir/package.json +2 -2
  105. package/node_modules/os-tmpdir/package.json +2 -2
  106. package/node_modules/osenv/package.json +2 -2
  107. package/node_modules/path-is-absolute/package.json +2 -2
  108. package/node_modules/process-nextick-args/package.json +2 -2
  109. package/node_modules/rc/node_modules/minimist/package.json +2 -2
  110. package/node_modules/rc/package.json +17 -16
  111. package/node_modules/readable-stream/package.json +2 -2
  112. package/node_modules/rimraf/package.json +17 -14
  113. package/node_modules/safe-buffer/index.d.ts +187 -0
  114. package/node_modules/safe-buffer/package.json +15 -15
  115. package/node_modules/safer-buffer/package.json +2 -2
  116. package/node_modules/sax/package.json +2 -2
  117. package/node_modules/semver/CHANGELOG.md +39 -0
  118. package/node_modules/semver/README.md +31 -8
  119. package/node_modules/semver/bin/semver +92 -75
  120. package/node_modules/semver/package.json +20 -14
  121. package/node_modules/semver/semver.js +922 -763
  122. package/node_modules/set-blocking/package.json +2 -2
  123. package/node_modules/signal-exit/package.json +2 -2
  124. package/node_modules/string-width/package.json +2 -2
  125. package/node_modules/string_decoder/package.json +2 -2
  126. package/node_modules/strip-ansi/package.json +2 -2
  127. package/node_modules/strip-json-comments/package.json +2 -2
  128. package/node_modules/tar/README.md +7 -2
  129. package/node_modules/tar/lib/header.js +20 -4
  130. package/node_modules/tar/lib/mode-fix.js +14 -0
  131. package/node_modules/tar/lib/pack.js +1 -0
  132. package/node_modules/tar/lib/parse.js +2 -1
  133. package/node_modules/tar/lib/unpack.js +67 -6
  134. package/node_modules/tar/lib/write-entry.js +25 -6
  135. package/node_modules/tar/package.json +20 -20
  136. package/node_modules/util-deprecate/package.json +2 -2
  137. package/node_modules/wide-align/package.json +14 -14
  138. package/node_modules/wrappy/package.json +2 -2
  139. package/node_modules/yallist/iterator.js +5 -5
  140. package/node_modules/yallist/package.json +13 -13
  141. package/node_modules/yallist/yallist.js +2 -2
  142. package/package.json +6 -9
  143. package/src/async.cc +2 -2
  144. package/src/constants.cc +20 -20
  145. package/src/thread.cc +5 -6
  146. package/build/.target.mk +0 -55
  147. package/build/Makefile +0 -352
  148. package/build/Release/.deps/Release/.node.d +0 -1
  149. package/build/Release/.deps/Release/fse.node.d +0 -1
  150. package/build/Release/.deps/Release/obj.target/action_after_build.stamp.d +0 -1
  151. package/build/Release/.deps/Release/obj.target/fse/fsevents.o.d +0 -67
  152. package/build/Release/.deps/Users/eshanker/Code/fsevents/lib/binding/Release/node-v64-darwin-x64/fse.node.d +0 -1
  153. package/build/Release/.node +0 -0
  154. package/build/Release/fse.node +0 -0
  155. package/build/Release/obj.target/action_after_build.stamp +0 -0
  156. package/build/Release/obj.target/fse/fsevents.o +0 -0
  157. package/build/action_after_build.target.mk +0 -32
  158. package/build/binding.Makefile +0 -6
  159. package/build/fse.target.mk +0 -184
  160. package/build/gyp-mac-tool +0 -611
  161. package/lib/binding/Release/node-v11-darwin-x64/fse.node +0 -0
  162. package/lib/binding/Release/node-v46-darwin-x64/fse.node +0 -0
  163. package/lib/binding/Release/node-v47-darwin-x64/fse.node +0 -0
  164. package/lib/binding/Release/node-v48-darwin-x64/fse.node +0 -0
  165. package/lib/binding/Release/node-v57-darwin-x64/fse.node +0 -0
  166. package/lib/binding/Release/node-v64-darwin-x64/fse.node +0 -0
  167. package/node_modules/are-we-there-yet/CHANGES.md~ +0 -27
  168. package/node_modules/debug/.coveralls.yml +0 -1
  169. package/node_modules/debug/.eslintrc +0 -11
  170. package/node_modules/debug/.npmignore +0 -9
  171. package/node_modules/debug/.travis.yml +0 -14
  172. package/node_modules/debug/Makefile +0 -50
  173. package/node_modules/debug/component.json +0 -19
  174. package/node_modules/debug/karma.conf.js +0 -70
  175. package/node_modules/debug/node.js +0 -1
  176. package/node_modules/debug/src/debug.js +0 -202
  177. package/node_modules/debug/src/inspector-log.js +0 -15
  178. package/node_modules/iconv-lite/.travis.yml +0 -23
  179. package/node_modules/safe-buffer/.travis.yml +0 -7
  180. package/node_modules/safe-buffer/test.js +0 -101
  181. 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' && key !== 'napi_build_version')
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) { // return err
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 && binary.module_path.indexOf('{napi_build_version}') !== -1;
49
- var remote_path_ok = binary.remote_path && binary.remote_path.indexOf('{napi_build_version}') !== -1;
50
- var package_name_ok = binary.package_name && binary.package_name.indexOf('{napi_build_version}') !== -1;
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) && !napi_build_versions) {
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.get_napi_build_versions(package_json) + '. ' +
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
- module.exports.expand_commands = function(package_json, commands) {
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.includes(command.name)) {
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
- if (package_json.binary && package_json.binary.napi_versions) { // remove duplicates
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 (!napi_build_versions.includes(napi_version)) napi_build_versions.push(napi_version);
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, // undefined if not specified
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
- "_from": "node-pre-gyp@^0.10.0",
3
- "_id": "node-pre-gyp@0.10.0",
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-G7kEonQLRbcA/mOoFoxvlMrw6Q6dPf92+t/l0DFSMuSlDoWaI9JWIyPwK0jyE1bph//CUEL65/Fz1m2vJbmjQQ==",
11
+ "_integrity": "sha512-4KghwV8vH5k+g2ylT+sLTjy5wmUOb9vPhnM8NHvRf9dHmnW/CndrFXy2aRPaPST6dugXSdHXfeaHQm77PIz/1A==",
6
12
  "_location": "/node-pre-gyp",
7
13
  "_phantomChildren": {},
8
14
  "_requested": {
9
- "type": "range",
15
+ "type": "version",
10
16
  "registry": true,
11
- "raw": "node-pre-gyp@^0.10.0",
17
+ "raw": "node-pre-gyp@0.12.0",
12
18
  "name": "node-pre-gyp",
13
19
  "escapedName": "node-pre-gyp",
14
- "rawSpec": "^0.10.0",
20
+ "rawSpec": "0.12.0",
15
21
  "saveSpec": null,
16
- "fetchSpec": "^0.10.0"
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.10.0.tgz",
22
- "_shasum": "6e4ef5bb5c5203c6552448828c852c40111aac46",
23
- "_spec": "node-pre-gyp@^0.10.0",
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.0",
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.1.7",
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.10.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/eshanker/Code/fsevents"
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/eshanker/Code/fsevents",
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
+ [![Build Status](https://travis-ci.org/npm/npm-bundled.svg?branch=master)](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 + '/package.json'
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.3",
5
- "/Users/eshanker/Code/fsevents"
4
+ "npm-bundled@1.0.6",
5
+ "/Users/pipobscure/fsevents"
6
6
  ]
7
7
  ],
8
- "_from": "npm-bundled@1.0.3",
9
- "_id": "npm-bundled@1.0.3",
8
+ "_from": "npm-bundled@1.0.6",
9
+ "_id": "npm-bundled@1.0.6",
10
10
  "_inBundle": false,
11
- "_integrity": "sha512-ByQ3oJ/5ETLyglU2+8dBObvhfWXX8dtPZDMePCahptliFX2iIuhyEszyFk401PZUNQH20vvdW5MLjJxkwU80Ow==",
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.3",
17
+ "raw": "npm-bundled@1.0.6",
18
18
  "name": "npm-bundled",
19
19
  "escapedName": "npm-bundled",
20
- "rawSpec": "1.0.3",
20
+ "rawSpec": "1.0.6",
21
21
  "saveSpec": null,
22
- "fetchSpec": "1.0.3"
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.3.tgz",
28
- "_spec": "1.0.3",
29
- "_where": "/Users/eshanker/Code/fsevents",
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": "^10.3.2"
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.3"
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
- '.DS_Store',
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
- opt.follow = path.basename(opt.path) === 'node_modules'
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
- '!@(readme|license|licence|notice|changes|changelog|history){,.*}'
135
- ].filter(f => f).join('\n') + '\n'
136
- super.onReadIgnoreFile(packageNecessaryRules, rules, _=>_)
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
- this.onPackageJson(file, JSON.parse(data), then)
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).start()
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.10",
5
- "/Users/eshanker/Code/fsevents"
4
+ "npm-packlist@1.4.1",
5
+ "/Users/pipobscure/fsevents"
6
6
  ]
7
7
  ],
8
- "_from": "npm-packlist@1.1.10",
9
- "_id": "npm-packlist@1.1.10",
8
+ "_from": "npm-packlist@1.4.1",
9
+ "_id": "npm-packlist@1.4.1",
10
10
  "_inBundle": false,
11
- "_integrity": "sha512-AQC0Dyhzn4EiYEfIUjCdMl0JJ61I2ER9ukf/sLxJUcZHfo+VyEfz2rMJgLZSS1v30OxPQe1cN0LZA1xbcaVfWA==",
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.10",
17
+ "raw": "npm-packlist@1.4.1",
18
18
  "name": "npm-packlist",
19
19
  "escapedName": "npm-packlist",
20
- "rawSpec": "1.1.10",
20
+ "rawSpec": "1.4.1",
21
21
  "saveSpec": null,
22
- "fetchSpec": "1.1.10"
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.10.tgz",
28
- "_spec": "1.1.10",
29
- "_where": "/Users/eshanker/Code/fsevents",
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": "^10.7.2"
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.10"
68
+ "version": "1.4.1"
69
69
  }
@@ -2,7 +2,7 @@
2
2
  "_args": [
3
3
  [
4
4
  "npmlog@4.1.2",
5
- "/Users/eshanker/Code/fsevents"
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/eshanker/Code/fsevents",
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/eshanker/Code/fsevents"
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/eshanker/Code/fsevents",
29
+ "_where": "/Users/pipobscure/fsevents",
30
30
  "author": {
31
31
  "name": "Sindre Sorhus",
32
32
  "email": "sindresorhus@gmail.com",