fsevents 1.2.8 → 1.2.12

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.
Files changed (187) hide show
  1. package/.travis.yml +1 -0
  2. package/binding.gyp +1 -9
  3. package/fsevents.cc +8 -11
  4. package/fsevents.js +1 -3
  5. package/node_modules/abbrev/package.json +1 -1
  6. package/node_modules/ansi-regex/package.json +1 -1
  7. package/node_modules/aproba/package.json +1 -1
  8. package/node_modules/are-we-there-yet/package.json +1 -1
  9. package/node_modules/balanced-match/package.json +1 -1
  10. package/node_modules/brace-expansion/package.json +1 -1
  11. package/node_modules/chownr/chownr.js +98 -19
  12. package/node_modules/chownr/package.json +13 -10
  13. package/node_modules/code-point-at/package.json +1 -1
  14. package/node_modules/concat-map/package.json +1 -1
  15. package/node_modules/console-control-strings/package.json +1 -1
  16. package/node_modules/core-util-is/package.json +1 -1
  17. package/node_modules/debug/README.md +0 -18
  18. package/node_modules/debug/dist/debug.js +2 -28
  19. package/node_modules/debug/node.js +1 -0
  20. package/node_modules/debug/package.json +12 -24
  21. package/node_modules/debug/src/browser.js +103 -187
  22. package/node_modules/debug/src/common.js +240 -257
  23. package/node_modules/debug/src/index.js +5 -3
  24. package/node_modules/debug/src/node.js +82 -165
  25. package/node_modules/deep-extend/package.json +1 -1
  26. package/node_modules/delegates/package.json +1 -1
  27. package/node_modules/detect-libc/package.json +2 -2
  28. package/node_modules/fs-minipass/index.js +2 -1
  29. package/node_modules/fs-minipass/package.json +13 -10
  30. package/node_modules/fs.realpath/package.json +1 -1
  31. package/node_modules/gauge/package.json +1 -1
  32. package/node_modules/glob/LICENSE +6 -0
  33. package/node_modules/glob/README.md +8 -1
  34. package/node_modules/glob/package.json +9 -6
  35. package/node_modules/has-unicode/package.json +1 -1
  36. package/node_modules/iconv-lite/package.json +1 -1
  37. package/node_modules/ignore-walk/README.md +1 -1
  38. package/node_modules/ignore-walk/index.js +9 -5
  39. package/node_modules/ignore-walk/package.json +11 -8
  40. package/node_modules/inflight/package.json +1 -1
  41. package/node_modules/inherits/inherits.js +2 -0
  42. package/node_modules/inherits/inherits_browser.js +18 -14
  43. package/node_modules/inherits/package.json +8 -8
  44. package/node_modules/ini/package.json +1 -1
  45. package/node_modules/is-fullwidth-code-point/package.json +1 -1
  46. package/node_modules/isarray/package.json +1 -1
  47. package/node_modules/minimatch/package.json +1 -1
  48. package/node_modules/minimist/.travis.yml +4 -0
  49. package/node_modules/minimist/example/parse.js +1 -1
  50. package/node_modules/minimist/index.js +112 -54
  51. package/node_modules/minimist/package.json +17 -14
  52. package/node_modules/minimist/readme.markdown +28 -6
  53. package/node_modules/{rc/node_modules/minimist → minimist}/test/all_bool.js +0 -0
  54. package/node_modules/{rc/node_modules/minimist → minimist}/test/bool.js +12 -0
  55. package/node_modules/minimist/test/dash.js +7 -0
  56. package/node_modules/minimist/test/default_bool.js +15 -0
  57. package/node_modules/minimist/test/dotted.js +6 -0
  58. package/node_modules/{rc/node_modules/minimist → minimist}/test/kv_short.js +0 -0
  59. package/node_modules/{rc/node_modules/minimist → minimist}/test/num.js +0 -0
  60. package/node_modules/minimist/test/parse.js +23 -144
  61. package/node_modules/minimist/test/parse_modified.js +1 -1
  62. package/node_modules/minimist/test/proto.js +44 -0
  63. package/node_modules/{rc/node_modules/minimist → minimist}/test/stop_early.js +0 -0
  64. package/node_modules/{rc/node_modules/minimist → minimist}/test/unknown.js +0 -0
  65. package/node_modules/minipass/README.md +486 -4
  66. package/node_modules/minipass/index.js +190 -28
  67. package/node_modules/minipass/package.json +17 -14
  68. package/node_modules/minizlib/README.md +36 -27
  69. package/node_modules/minizlib/constants.js +73 -4
  70. package/node_modules/minizlib/index.js +137 -152
  71. package/node_modules/minizlib/package.json +12 -12
  72. package/node_modules/mkdirp/package.json +17 -10
  73. package/node_modules/ms/index.js +2 -2
  74. package/node_modules/ms/package.json +6 -6
  75. package/node_modules/ms/readme.md +1 -1
  76. package/node_modules/needle/.github/workflows/nodejs.yml +27 -0
  77. package/node_modules/needle/README.md +5 -5
  78. package/node_modules/needle/lib/needle.js +11 -3
  79. package/node_modules/needle/package.json +8 -8
  80. package/node_modules/needle/test/compression_spec.js +18 -0
  81. package/node_modules/needle/test/headers_spec.js +1 -1
  82. package/node_modules/node-pre-gyp/CHANGELOG.md +11 -0
  83. package/node_modules/node-pre-gyp/lib/install.js +44 -14
  84. package/node_modules/node-pre-gyp/lib/util/abi_crosswalk.json +240 -0
  85. package/node_modules/node-pre-gyp/lib/util/napi.js +3 -2
  86. package/node_modules/node-pre-gyp/package.json +13 -13
  87. package/node_modules/nopt/lib/nopt.js +6 -1
  88. package/node_modules/nopt/package.json +15 -8
  89. package/node_modules/npm-bundled/index.js +13 -5
  90. package/node_modules/npm-bundled/package.json +9 -6
  91. package/node_modules/npm-normalize-package-bin/.github/settings.yml +2 -0
  92. package/node_modules/npm-normalize-package-bin/.npmignore +24 -0
  93. package/node_modules/npm-normalize-package-bin/LICENSE +15 -0
  94. package/node_modules/npm-normalize-package-bin/README.md +14 -0
  95. package/node_modules/npm-normalize-package-bin/index.js +60 -0
  96. package/node_modules/npm-normalize-package-bin/package-lock.json +3529 -0
  97. package/node_modules/npm-normalize-package-bin/package.json +58 -0
  98. package/node_modules/npm-normalize-package-bin/test/array.js +37 -0
  99. package/node_modules/npm-normalize-package-bin/test/nobin.js +35 -0
  100. package/node_modules/npm-normalize-package-bin/test/object.js +141 -0
  101. package/node_modules/npm-normalize-package-bin/test/string.js +37 -0
  102. package/node_modules/npm-packlist/index.js +55 -16
  103. package/node_modules/npm-packlist/package.json +18 -10
  104. package/node_modules/npmlog/package.json +1 -1
  105. package/node_modules/number-is-nan/package.json +1 -1
  106. package/node_modules/object-assign/package.json +1 -1
  107. package/node_modules/once/package.json +1 -1
  108. package/node_modules/os-homedir/package.json +1 -1
  109. package/node_modules/os-tmpdir/package.json +1 -1
  110. package/node_modules/osenv/package.json +1 -1
  111. package/node_modules/path-is-absolute/package.json +1 -1
  112. package/node_modules/process-nextick-args/index.js +2 -1
  113. package/node_modules/process-nextick-args/package.json +6 -6
  114. package/node_modules/rc/package.json +2 -2
  115. package/node_modules/readable-stream/.travis.yml +9 -30
  116. package/node_modules/readable-stream/lib/_stream_duplex.js +1 -1
  117. package/node_modules/readable-stream/lib/_stream_passthrough.js +1 -1
  118. package/node_modules/readable-stream/lib/_stream_readable.js +1 -1
  119. package/node_modules/readable-stream/lib/_stream_transform.js +1 -1
  120. package/node_modules/readable-stream/lib/_stream_writable.js +1 -1
  121. package/node_modules/readable-stream/package.json +6 -6
  122. package/node_modules/rimraf/package.json +7 -7
  123. package/node_modules/rimraf/rimraf.js +9 -1
  124. package/node_modules/safe-buffer/package.json +1 -1
  125. package/node_modules/safer-buffer/package.json +1 -1
  126. package/node_modules/sax/package.json +1 -1
  127. package/node_modules/semver/README.md +12 -11
  128. package/node_modules/semver/package.json +7 -7
  129. package/node_modules/set-blocking/package.json +1 -1
  130. package/node_modules/signal-exit/package.json +1 -1
  131. package/node_modules/string-width/package.json +1 -1
  132. package/node_modules/string_decoder/package.json +1 -1
  133. package/node_modules/strip-ansi/package.json +1 -1
  134. package/node_modules/strip-json-comments/package.json +1 -1
  135. package/node_modules/tar/lib/large-numbers.js +32 -27
  136. package/node_modules/tar/lib/mkdir.js +2 -2
  137. package/node_modules/tar/lib/parse.js +6 -1
  138. package/node_modules/tar/lib/read-entry.js +4 -0
  139. package/node_modules/tar/lib/write-entry.js +2 -2
  140. package/node_modules/tar/package.json +22 -18
  141. package/node_modules/util-deprecate/package.json +1 -1
  142. package/node_modules/wide-align/package.json +1 -1
  143. package/node_modules/wrappy/package.json +1 -1
  144. package/node_modules/yallist/package.json +11 -11
  145. package/node_modules/yallist/yallist.js +50 -0
  146. package/package.json +5 -15
  147. package/src/constants.cc +20 -20
  148. package/install.js +0 -7
  149. package/node_modules/mkdirp/.travis.yml +0 -8
  150. package/node_modules/mkdirp/examples/pow.js +0 -6
  151. package/node_modules/mkdirp/test/chmod.js +0 -41
  152. package/node_modules/mkdirp/test/clobber.js +0 -38
  153. package/node_modules/mkdirp/test/mkdirp.js +0 -28
  154. package/node_modules/mkdirp/test/opts_fs.js +0 -29
  155. package/node_modules/mkdirp/test/opts_fs_sync.js +0 -27
  156. package/node_modules/mkdirp/test/perm.js +0 -32
  157. package/node_modules/mkdirp/test/perm_sync.js +0 -36
  158. package/node_modules/mkdirp/test/race.js +0 -37
  159. package/node_modules/mkdirp/test/rel.js +0 -32
  160. package/node_modules/mkdirp/test/return.js +0 -25
  161. package/node_modules/mkdirp/test/return_sync.js +0 -24
  162. package/node_modules/mkdirp/test/root.js +0 -19
  163. package/node_modules/mkdirp/test/sync.js +0 -32
  164. package/node_modules/mkdirp/test/umask.js +0 -28
  165. package/node_modules/mkdirp/test/umask_sync.js +0 -32
  166. package/node_modules/needle/.npmignore +0 -6
  167. package/node_modules/needle/package-lock.json +0 -395
  168. package/node_modules/needle/test/keys/ssl.cert +0 -21
  169. package/node_modules/needle/test/keys/ssl.key +0 -27
  170. package/node_modules/nopt/.npmignore +0 -1
  171. package/node_modules/nopt/.travis.yml +0 -8
  172. package/node_modules/nopt/examples/my-program.js +0 -30
  173. package/node_modules/nopt/test/basic.js +0 -303
  174. package/node_modules/rc/node_modules/minimist/.travis.yml +0 -8
  175. package/node_modules/rc/node_modules/minimist/LICENSE +0 -18
  176. package/node_modules/rc/node_modules/minimist/example/parse.js +0 -2
  177. package/node_modules/rc/node_modules/minimist/index.js +0 -236
  178. package/node_modules/rc/node_modules/minimist/package.json +0 -73
  179. package/node_modules/rc/node_modules/minimist/readme.markdown +0 -91
  180. package/node_modules/rc/node_modules/minimist/test/dash.js +0 -31
  181. package/node_modules/rc/node_modules/minimist/test/default_bool.js +0 -35
  182. package/node_modules/rc/node_modules/minimist/test/dotted.js +0 -22
  183. package/node_modules/rc/node_modules/minimist/test/long.js +0 -31
  184. package/node_modules/rc/node_modules/minimist/test/parse.js +0 -197
  185. package/node_modules/rc/node_modules/minimist/test/parse_modified.js +0 -9
  186. package/node_modules/rc/node_modules/minimist/test/short.js +0 -67
  187. package/node_modules/rc/node_modules/minimist/test/whitespace.js +0 -8
@@ -37,20 +37,25 @@ var close_by_default = !http.Agent || http.Agent.defaultMaxSockets != Infinity;
37
37
  var extend = Object.assign ? Object.assign : require('util')._extend;
38
38
 
39
39
  // these are the status codes that Needle interprets as redirects.
40
- var redirect_codes = [301, 302, 303, 307];
40
+ var redirect_codes = [301, 302, 303, 307, 308];
41
41
 
42
42
  //////////////////////////////////////////
43
- // decompressors for gzip/deflate bodies
43
+ // decompressors for gzip/deflate/br bodies
44
44
 
45
45
  var decompressors = {};
46
+ var brotli_supported = false;
46
47
 
47
48
  try {
48
49
 
49
50
  var zlib = require('zlib');
51
+ brotli_supported = typeof zlib.BrotliDecompress === 'function';
50
52
  decompressors['x-deflate'] = zlib.Inflate;
51
53
  decompressors['deflate'] = zlib.Inflate;
52
54
  decompressors['x-gzip'] = zlib.Gunzip;
53
55
  decompressors['gzip'] = zlib.Gunzip;
56
+ if (brotli_supported) {
57
+ decompressors['br'] = zlib.BrotliDecompress;
58
+ }
54
59
 
55
60
  // Enable Z_SYNC_FLUSH to avoid Z_BUF_ERROR errors (Node PR #2595)
56
61
  var zlib_options = {
@@ -82,6 +87,7 @@ var defaults = {
82
87
  stream_length : -1,
83
88
 
84
89
  // booleans
90
+ compressed : false,
85
91
  decode_response : true,
86
92
  parse_cookies : true,
87
93
  follow_set_cookies : false,
@@ -236,7 +242,7 @@ Needle.prototype.setup = function(uri, options) {
236
242
  config.headers['connection'] = options.connection || 'close';
237
243
 
238
244
  if ((options.compressed || defaults.compressed) && typeof zlib != 'undefined')
239
- config.headers['accept-encoding'] = 'gzip,deflate';
245
+ config.headers['accept-encoding'] = brotli_supported ? 'gzip, deflate, br' : 'gzip, deflate';
240
246
 
241
247
  if (options.cookies)
242
248
  config.headers['cookie'] = cookies.write(options.cookies);
@@ -772,6 +778,8 @@ module.exports.defaults = function(obj) {
772
778
  throw new TypeError('Invalid type for ' + key + ', should be ' + valid_type);
773
779
  }
774
780
  defaults[target_key] = obj[key];
781
+ } else {
782
+ throw new Error('Invalid property for defaults:' + target_key);
775
783
  }
776
784
  }
777
785
 
@@ -1,8 +1,8 @@
1
1
  {
2
2
  "_from": "needle@^2.2.1",
3
- "_id": "needle@2.3.0",
3
+ "_id": "needle@2.3.3",
4
4
  "_inBundle": false,
5
- "_integrity": "sha512-QBZu7aAFR0522EyaXZM0FZ9GLpq6lvQ3uq8gteiDUp7wKdy0lSd2hPlgFwVuW1CBkfEs9PfDQsQzZghLs/psdg==",
5
+ "_integrity": "sha512-EkY0GeSq87rWp1hoq/sH/wnTWgFVhYlnIkbJ0YJFfRgEFlz2RraCjBpFQ+vrEgEdp0ThfyHADmkChEhcb7PKyw==",
6
6
  "_location": "/needle",
7
7
  "_phantomChildren": {},
8
8
  "_requested": {
@@ -18,23 +18,23 @@
18
18
  "_requiredBy": [
19
19
  "/node-pre-gyp"
20
20
  ],
21
- "_resolved": "https://registry.npmjs.org/needle/-/needle-2.3.0.tgz",
22
- "_shasum": "ce3fea21197267bacb310705a7bbe24f2a3a3492",
21
+ "_resolved": "https://registry.npmjs.org/needle/-/needle-2.3.3.tgz",
22
+ "_shasum": "a041ad1d04a871b0ebb666f40baaf1fb47867117",
23
23
  "_spec": "needle@^2.2.1",
24
- "_where": "/Users/pipobscure/fsevents/node_modules/node-pre-gyp",
24
+ "_where": "/Users/user/Developer/personal/fsevents/node_modules/node-pre-gyp",
25
25
  "author": {
26
26
  "name": "Tomás Pollak",
27
27
  "email": "tomas@forkhq.com"
28
28
  },
29
29
  "bin": {
30
- "needle": "./bin/needle"
30
+ "needle": "bin/needle"
31
31
  },
32
32
  "bugs": {
33
33
  "url": "https://github.com/tomas/needle/issues"
34
34
  },
35
35
  "bundleDependencies": false,
36
36
  "dependencies": {
37
- "debug": "^4.1.0",
37
+ "debug": "^3.2.6",
38
38
  "iconv-lite": "^0.4.4",
39
39
  "sax": "^1.2.4"
40
40
  },
@@ -98,5 +98,5 @@
98
98
  "cookie",
99
99
  "redirect"
100
100
  ],
101
- "version": "2.3.0"
101
+ "version": "2.3.3"
102
102
  }
@@ -29,6 +29,9 @@ describe('compression', function(){
29
29
  } else if (acceptEncoding.match(/\bgzip\b/)) {
30
30
  res.setHeader('Content-Encoding', 'gzip');
31
31
  raw.pipe(zlib.createGzip()).pipe(res);
32
+ } else if (acceptEncoding.match(/\bbr\b/)) {
33
+ res.setHeader('Content-Encoding', 'br');
34
+ raw.pipe(zlib.createBrotliCompress()).pipe(res);
32
35
  } else {
33
36
  raw.pipe(res);
34
37
  }
@@ -90,5 +93,20 @@ describe('compression', function(){
90
93
  })
91
94
  })
92
95
  })
96
+
97
+ describe('and client requests brotli compression', function() {
98
+ it('should have the body decompressed', function(done){
99
+ // Skip this test if Brotli is not supported
100
+ if (typeof zlib.BrotliDecompress !== 'function') {
101
+ return done();
102
+ }
103
+ needle.get('localhost:' + port, {headers: {'Accept-Encoding': 'br'}}, function(err, response, body){
104
+ should.ifError(err);
105
+ body.should.have.property('foo', 'bar');
106
+ response.bytes.should.not.equal(jsonData.length);
107
+ done();
108
+ })
109
+ })
110
+ })
93
111
  })
94
112
  })
@@ -2,7 +2,7 @@ var http = require('http'),
2
2
  helpers = require('./helpers'),
3
3
  should = require('should');
4
4
 
5
- var port = 5432;
5
+ var port = 54321;
6
6
 
7
7
  describe('request headers', function() {
8
8
 
@@ -1,5 +1,16 @@
1
1
  # node-pre-gyp changelog
2
2
 
3
+ ## 0.14.0
4
+
5
+ - Defer modules requires in napi.js (https://github.com/mapbox/node-pre-gyp/pull/434)
6
+ - Bump dependency on `tar` from `^4` to `^4.4.2` (https://github.com/mapbox/node-pre-gyp/pull/454)
7
+ - Support extracting compiled binary from local offline mirror (https://github.com/mapbox/node-pre-gyp/pull/459)
8
+ - Added Node 13 support in the local database (https://github.com/mapbox/node-pre-gyp/pull/483)
9
+
10
+ ## 0.13.0
11
+
12
+ - Added Node 12 support in the local database (https://github.com/mapbox/node-pre-gyp/pull/449)
13
+
3
14
  ## 0.12.0
4
15
 
5
16
  - Fixed double-build problem with node v10 (https://github.com/mapbox/node-pre-gyp/pull/428)
@@ -91,11 +91,9 @@ function place_binary(from,to,opts,callback) {
91
91
  if (err) return callback(err);
92
92
  if (!req) return callback(new Error("empty req"));
93
93
  var badDownload = false;
94
- var extractCount = 0;
95
94
  var hasResponse = false;
96
- var tar = require('tar');
97
95
 
98
- function afterTarball(err) {
96
+ function afterExtract(err, extractCount) {
99
97
  if (err) return callback(err);
100
98
  if (badDownload) return callback(new Error("bad download"));
101
99
  if (extractCount === 0) {
@@ -105,11 +103,6 @@ function place_binary(from,to,opts,callback) {
105
103
  callback();
106
104
  }
107
105
 
108
- function filter_func(entry) {
109
- log.info('install','unpacking ' + entry.path);
110
- extractCount++;
111
- }
112
-
113
106
  // for request compatibility
114
107
  req.on('error', function(err) {
115
108
  badDownload = true;
@@ -151,15 +144,47 @@ function place_binary(from,to,opts,callback) {
151
144
  return callback(err);
152
145
  }
153
146
  // start unzipping and untaring
154
- req.pipe(tar.extract({
155
- cwd: to,
156
- strip: 1,
157
- onentry: filter_func
158
- }).on('close', afterTarball).on('error', callback));
147
+ req.pipe(extract(to, afterExtract));
159
148
  });
160
149
  });
161
150
  }
162
151
 
152
+ function extract_from_local(from, to, callback) {
153
+ if (!fs.existsSync(from)) {
154
+ return callback(new Error('Cannot find file ' + from));
155
+ }
156
+ log.info('Found local file to extract from ' + from);
157
+ function afterExtract(err, extractCount) {
158
+ if (err) return callback(err);
159
+ if (extractCount === 0) {
160
+ return callback(new Error('There was a fatal problem while extracting the tarball'));
161
+ }
162
+ log.info('tarball', 'done parsing tarball');
163
+ callback();
164
+ }
165
+ fs.createReadStream(from).pipe(extract(to, afterExtract));
166
+ }
167
+
168
+ function extract(to, callback) {
169
+ var extractCount = 0;
170
+ function filter_func(entry) {
171
+ log.info('install','unpacking ' + entry.path);
172
+ extractCount++;
173
+ }
174
+
175
+ function afterTarball(err) {
176
+ callback(err, extractCount);
177
+ }
178
+
179
+ var tar = require('tar');
180
+ return tar.extract({
181
+ cwd: to,
182
+ strip: 1,
183
+ onentry: filter_func
184
+ }).on('close', afterTarball).on('error', callback);
185
+ }
186
+
187
+
163
188
  function do_build(gyp,argv,callback) {
164
189
  var args = ['rebuild'].concat(argv);
165
190
  gyp.todo.push( { name: 'build', args: args } );
@@ -235,7 +260,12 @@ function install(gyp, argv, callback) {
235
260
  if (err) {
236
261
  after_place(err);
237
262
  } else {
238
- place_binary(from,to,opts,after_place);
263
+ var fileName = from.startsWith('file://') && from.replace(/^file:\/\//, '');
264
+ if (fileName) {
265
+ extract_from_local(fileName, to, after_place);
266
+ } else {
267
+ place_binary(from,to,opts,after_place);
268
+ }
239
269
  }
240
270
  });
241
271
  }
@@ -1507,6 +1507,26 @@
1507
1507
  "node_abi": 48,
1508
1508
  "v8": "5.1"
1509
1509
  },
1510
+ "6.15.0": {
1511
+ "node_abi": 48,
1512
+ "v8": "5.1"
1513
+ },
1514
+ "6.15.1": {
1515
+ "node_abi": 48,
1516
+ "v8": "5.1"
1517
+ },
1518
+ "6.16.0": {
1519
+ "node_abi": 48,
1520
+ "v8": "5.1"
1521
+ },
1522
+ "6.17.0": {
1523
+ "node_abi": 48,
1524
+ "v8": "5.1"
1525
+ },
1526
+ "6.17.1": {
1527
+ "node_abi": 48,
1528
+ "v8": "5.1"
1529
+ },
1510
1530
  "7.0.0": {
1511
1531
  "node_abi": 51,
1512
1532
  "v8": "5.4"
@@ -1683,6 +1703,38 @@
1683
1703
  "node_abi": 57,
1684
1704
  "v8": "6.2"
1685
1705
  },
1706
+ "8.13.0": {
1707
+ "node_abi": 57,
1708
+ "v8": "6.2"
1709
+ },
1710
+ "8.14.0": {
1711
+ "node_abi": 57,
1712
+ "v8": "6.2"
1713
+ },
1714
+ "8.14.1": {
1715
+ "node_abi": 57,
1716
+ "v8": "6.2"
1717
+ },
1718
+ "8.15.0": {
1719
+ "node_abi": 57,
1720
+ "v8": "6.2"
1721
+ },
1722
+ "8.15.1": {
1723
+ "node_abi": 57,
1724
+ "v8": "6.2"
1725
+ },
1726
+ "8.16.0": {
1727
+ "node_abi": 57,
1728
+ "v8": "6.2"
1729
+ },
1730
+ "8.16.1": {
1731
+ "node_abi": 57,
1732
+ "v8": "6.2"
1733
+ },
1734
+ "8.16.2": {
1735
+ "node_abi": 57,
1736
+ "v8": "6.2"
1737
+ },
1686
1738
  "9.0.0": {
1687
1739
  "node_abi": 59,
1688
1740
  "v8": "6.2"
@@ -1819,6 +1871,54 @@
1819
1871
  "node_abi": 64,
1820
1872
  "v8": "6.8"
1821
1873
  },
1874
+ "10.14.0": {
1875
+ "node_abi": 64,
1876
+ "v8": "6.8"
1877
+ },
1878
+ "10.14.1": {
1879
+ "node_abi": 64,
1880
+ "v8": "6.8"
1881
+ },
1882
+ "10.14.2": {
1883
+ "node_abi": 64,
1884
+ "v8": "6.8"
1885
+ },
1886
+ "10.15.0": {
1887
+ "node_abi": 64,
1888
+ "v8": "6.8"
1889
+ },
1890
+ "10.15.1": {
1891
+ "node_abi": 64,
1892
+ "v8": "6.8"
1893
+ },
1894
+ "10.15.2": {
1895
+ "node_abi": 64,
1896
+ "v8": "6.8"
1897
+ },
1898
+ "10.15.3": {
1899
+ "node_abi": 64,
1900
+ "v8": "6.8"
1901
+ },
1902
+ "10.16.0": {
1903
+ "node_abi": 64,
1904
+ "v8": "6.8"
1905
+ },
1906
+ "10.16.1": {
1907
+ "node_abi": 64,
1908
+ "v8": "6.8"
1909
+ },
1910
+ "10.16.2": {
1911
+ "node_abi": 64,
1912
+ "v8": "6.8"
1913
+ },
1914
+ "10.16.3": {
1915
+ "node_abi": 64,
1916
+ "v8": "6.8"
1917
+ },
1918
+ "10.17.0": {
1919
+ "node_abi": 64,
1920
+ "v8": "6.8"
1921
+ },
1822
1922
  "11.0.0": {
1823
1923
  "node_abi": 67,
1824
1924
  "v8": "7.0"
@@ -1826,5 +1926,145 @@
1826
1926
  "11.1.0": {
1827
1927
  "node_abi": 67,
1828
1928
  "v8": "7.0"
1929
+ },
1930
+ "11.2.0": {
1931
+ "node_abi": 67,
1932
+ "v8": "7.0"
1933
+ },
1934
+ "11.3.0": {
1935
+ "node_abi": 67,
1936
+ "v8": "7.0"
1937
+ },
1938
+ "11.4.0": {
1939
+ "node_abi": 67,
1940
+ "v8": "7.0"
1941
+ },
1942
+ "11.5.0": {
1943
+ "node_abi": 67,
1944
+ "v8": "7.0"
1945
+ },
1946
+ "11.6.0": {
1947
+ "node_abi": 67,
1948
+ "v8": "7.0"
1949
+ },
1950
+ "11.7.0": {
1951
+ "node_abi": 67,
1952
+ "v8": "7.0"
1953
+ },
1954
+ "11.8.0": {
1955
+ "node_abi": 67,
1956
+ "v8": "7.0"
1957
+ },
1958
+ "11.9.0": {
1959
+ "node_abi": 67,
1960
+ "v8": "7.0"
1961
+ },
1962
+ "11.10.0": {
1963
+ "node_abi": 67,
1964
+ "v8": "7.0"
1965
+ },
1966
+ "11.10.1": {
1967
+ "node_abi": 67,
1968
+ "v8": "7.0"
1969
+ },
1970
+ "11.11.0": {
1971
+ "node_abi": 67,
1972
+ "v8": "7.0"
1973
+ },
1974
+ "11.12.0": {
1975
+ "node_abi": 67,
1976
+ "v8": "7.0"
1977
+ },
1978
+ "11.13.0": {
1979
+ "node_abi": 67,
1980
+ "v8": "7.0"
1981
+ },
1982
+ "11.14.0": {
1983
+ "node_abi": 67,
1984
+ "v8": "7.0"
1985
+ },
1986
+ "11.15.0": {
1987
+ "node_abi": 67,
1988
+ "v8": "7.0"
1989
+ },
1990
+ "12.0.0": {
1991
+ "node_abi": 72,
1992
+ "v8": "7.4"
1993
+ },
1994
+ "12.1.0": {
1995
+ "node_abi": 72,
1996
+ "v8": "7.4"
1997
+ },
1998
+ "12.2.0": {
1999
+ "node_abi": 72,
2000
+ "v8": "7.4"
2001
+ },
2002
+ "12.3.0": {
2003
+ "node_abi": 72,
2004
+ "v8": "7.4"
2005
+ },
2006
+ "12.3.1": {
2007
+ "node_abi": 72,
2008
+ "v8": "7.4"
2009
+ },
2010
+ "12.4.0": {
2011
+ "node_abi": 72,
2012
+ "v8": "7.4"
2013
+ },
2014
+ "12.5.0": {
2015
+ "node_abi": 72,
2016
+ "v8": "7.5"
2017
+ },
2018
+ "12.6.0": {
2019
+ "node_abi": 72,
2020
+ "v8": "7.5"
2021
+ },
2022
+ "12.7.0": {
2023
+ "node_abi": 72,
2024
+ "v8": "7.5"
2025
+ },
2026
+ "12.8.0": {
2027
+ "node_abi": 72,
2028
+ "v8": "7.5"
2029
+ },
2030
+ "12.8.1": {
2031
+ "node_abi": 72,
2032
+ "v8": "7.5"
2033
+ },
2034
+ "12.9.0": {
2035
+ "node_abi": 72,
2036
+ "v8": "7.6"
2037
+ },
2038
+ "12.9.1": {
2039
+ "node_abi": 72,
2040
+ "v8": "7.6"
2041
+ },
2042
+ "12.10.0": {
2043
+ "node_abi": 72,
2044
+ "v8": "7.6"
2045
+ },
2046
+ "12.11.0": {
2047
+ "node_abi": 72,
2048
+ "v8": "7.7"
2049
+ },
2050
+ "12.11.1": {
2051
+ "node_abi": 72,
2052
+ "v8": "7.7"
2053
+ },
2054
+ "12.12.0": {
2055
+ "node_abi": 72,
2056
+ "v8": "7.7"
2057
+ },
2058
+ "12.13.0": {
2059
+ "node_abi": 72,
2060
+ "v8": "7.7"
2061
+ },
2062
+ "13.0.0": {
2063
+ "node_abi": 79,
2064
+ "v8": "7.8"
2065
+ },
2066
+ "13.0.1": {
2067
+ "node_abi": 79,
2068
+ "v8": "7.8"
1829
2069
  }
1830
2070
  }
@@ -1,8 +1,6 @@
1
1
  "use strict";
2
2
 
3
3
  var fs = require('fs');
4
- var rm = require('rimraf');
5
- var log = require('npmlog');
6
4
 
7
5
  module.exports = exports;
8
6
 
@@ -115,6 +113,7 @@ module.exports.expand_commands = function(package_json, opts, commands) {
115
113
  };
116
114
 
117
115
  module.exports.get_napi_build_versions = function(package_json, opts, warnings) { // opts may be undefined
116
+ var log = require('npmlog');
118
117
  var napi_build_versions = [];
119
118
  var supported_napi_version = module.exports.get_napi_version(opts ? opts.target : undefined);
120
119
  // remove duplicates, verify each napi version can actaully be built
@@ -167,6 +166,7 @@ module.exports.get_napi_build_version_from_command_args = function(command_args)
167
166
 
168
167
  module.exports.swap_build_dir_out = function(napi_build_version) {
169
168
  if (napi_build_version) {
169
+ var rm = require('rimraf');
170
170
  rm.sync(module.exports.get_build_dir(napi_build_version));
171
171
  fs.renameSync('build', module.exports.get_build_dir(napi_build_version));
172
172
  }
@@ -174,6 +174,7 @@ module.exports.swap_build_dir_out = function(napi_build_version) {
174
174
 
175
175
  module.exports.swap_build_dir_in = function(napi_build_version) {
176
176
  if (napi_build_version) {
177
+ var rm = require('rimraf');
177
178
  rm.sync('build');
178
179
  fs.renameSync(module.exports.get_build_dir(napi_build_version), 'build');
179
180
  }
@@ -1,34 +1,34 @@
1
1
  {
2
- "_from": "node-pre-gyp@0.12.0",
3
- "_id": "node-pre-gyp@0.12.0",
2
+ "_from": "node-pre-gyp@0.14.0",
3
+ "_id": "node-pre-gyp@0.14.0",
4
4
  "_inBundle": false,
5
- "_integrity": "sha512-4KghwV8vH5k+g2ylT+sLTjy5wmUOb9vPhnM8NHvRf9dHmnW/CndrFXy2aRPaPST6dugXSdHXfeaHQm77PIz/1A==",
5
+ "_integrity": "sha512-+CvDC7ZttU/sSt9rFjix/P05iS43qHCOOGzcr3Ry99bXG7VX953+vFyEuph/tfqoYu8dttBkE86JSKBO2OzcxA==",
6
6
  "_location": "/node-pre-gyp",
7
7
  "_phantomChildren": {},
8
8
  "_requested": {
9
9
  "type": "version",
10
10
  "registry": true,
11
- "raw": "node-pre-gyp@0.12.0",
11
+ "raw": "node-pre-gyp@0.14.0",
12
12
  "name": "node-pre-gyp",
13
13
  "escapedName": "node-pre-gyp",
14
- "rawSpec": "0.12.0",
14
+ "rawSpec": "0.14.0",
15
15
  "saveSpec": null,
16
- "fetchSpec": "0.12.0"
16
+ "fetchSpec": "0.14.0"
17
17
  },
18
18
  "_requiredBy": [
19
19
  "#USER",
20
20
  "/"
21
21
  ],
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",
22
+ "_resolved": "https://registry.npmjs.org/node-pre-gyp/-/node-pre-gyp-0.14.0.tgz",
23
+ "_shasum": "9a0596533b877289bcad4e143982ca3d904ddc83",
24
+ "_spec": "node-pre-gyp@0.14.0",
25
+ "_where": "/Users/user/Developer/personal/fsevents",
26
26
  "author": {
27
27
  "name": "Dane Springmeyer",
28
28
  "email": "dane@mapbox.com"
29
29
  },
30
30
  "bin": {
31
- "node-pre-gyp": "./bin/node-pre-gyp"
31
+ "node-pre-gyp": "bin/node-pre-gyp"
32
32
  },
33
33
  "bugs": {
34
34
  "url": "https://github.com/mapbox/node-pre-gyp/issues"
@@ -44,7 +44,7 @@
44
44
  "rc": "^1.2.7",
45
45
  "rimraf": "^2.6.1",
46
46
  "semver": "^5.3.0",
47
- "tar": "^4"
47
+ "tar": "^4.4.2"
48
48
  },
49
49
  "deprecated": false,
50
50
  "description": "Node.js native addon binary install tool",
@@ -83,5 +83,5 @@
83
83
  "test": "jshint lib lib/util scripts bin/node-pre-gyp && tape test/*test.js",
84
84
  "update-crosswalk": "node scripts/abi_crosswalk.js"
85
85
  },
86
- "version": "0.12.0"
86
+ "version": "0.14.0"
87
87
  }
@@ -113,7 +113,12 @@ function clean (data, types, typeDefs) {
113
113
  return d[k]
114
114
  }).filter(function (val) { return val !== remove })
115
115
 
116
- if (!val.length) delete data[k]
116
+ // if we allow Array specifically, then an empty array is how we
117
+ // express 'no value here', not null. Allow it.
118
+ if (!val.length && type.indexOf(Array) === -1) {
119
+ debug('VAL HAS NO LENGTH, DELETE IT', val, k, type.indexOf(Array))
120
+ delete data[k]
121
+ }
117
122
  else if (isArray) {
118
123
  debug(isArray, data[k], val)
119
124
  data[k] = val
@@ -1,8 +1,8 @@
1
1
  {
2
2
  "_from": "nopt@^4.0.1",
3
- "_id": "nopt@4.0.1",
3
+ "_id": "nopt@4.0.3",
4
4
  "_inBundle": false,
5
- "_integrity": "sha1-0NRoWv1UFRk8jHUFYC0NF81kR00=",
5
+ "_integrity": "sha512-CvaGwVMztSMJLOeXPrez7fyfObdZqNUK1cPAEzLHrTybIua9pMdmmPR5YwtfNftIOMv3DPUhFaxsZMNTQO20Kg==",
6
6
  "_location": "/nopt",
7
7
  "_phantomChildren": {},
8
8
  "_requested": {
@@ -18,17 +18,17 @@
18
18
  "_requiredBy": [
19
19
  "/node-pre-gyp"
20
20
  ],
21
- "_resolved": "https://registry.npmjs.org/nopt/-/nopt-4.0.1.tgz",
22
- "_shasum": "d0d4685afd5415193c8c7505602d0d17cd64474d",
21
+ "_resolved": "https://registry.npmjs.org/nopt/-/nopt-4.0.3.tgz",
22
+ "_shasum": "a375cad9d02fd921278d954c2254d5aa57e15e48",
23
23
  "_spec": "nopt@^4.0.1",
24
- "_where": "/Users/pipobscure/fsevents/node_modules/node-pre-gyp",
24
+ "_where": "/Users/user/Developer/personal/fsevents/node_modules/node-pre-gyp",
25
25
  "author": {
26
26
  "name": "Isaac Z. Schlueter",
27
27
  "email": "i@izs.me",
28
28
  "url": "http://blog.izs.me/"
29
29
  },
30
30
  "bin": {
31
- "nopt": "./bin/nopt.js"
31
+ "nopt": "bin/nopt.js"
32
32
  },
33
33
  "bugs": {
34
34
  "url": "https://github.com/npm/nopt/issues"
@@ -41,8 +41,12 @@
41
41
  "deprecated": false,
42
42
  "description": "Option parsing for Node, supporting types, shorthands, etc. Used by npm.",
43
43
  "devDependencies": {
44
- "tap": "^8.0.1"
44
+ "tap": "^14.10.6"
45
45
  },
46
+ "files": [
47
+ "bin",
48
+ "lib"
49
+ ],
46
50
  "homepage": "https://github.com/npm/nopt#readme",
47
51
  "license": "ISC",
48
52
  "main": "lib/nopt.js",
@@ -52,7 +56,10 @@
52
56
  "url": "git+https://github.com/npm/nopt.git"
53
57
  },
54
58
  "scripts": {
59
+ "postversion": "npm publish",
60
+ "prepublishOnly": "git push origin --follow-tags",
61
+ "preversion": "npm test",
55
62
  "test": "tap test/*.js"
56
63
  },
57
- "version": "4.0.1"
64
+ "version": "4.0.3"
58
65
  }