fsevents 1.2.9 → 1.2.11

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 (124) hide show
  1. package/binding.gyp +1 -9
  2. package/fsevents.js +1 -3
  3. package/node_modules/abbrev/package.json +10 -13
  4. package/node_modules/ansi-regex/package.json +10 -13
  5. package/node_modules/aproba/package.json +10 -13
  6. package/node_modules/are-we-there-yet/package.json +10 -13
  7. package/node_modules/balanced-match/package.json +10 -13
  8. package/node_modules/brace-expansion/package.json +10 -13
  9. package/node_modules/chownr/chownr.js +47 -10
  10. package/node_modules/chownr/package.json +15 -18
  11. package/node_modules/code-point-at/package.json +10 -13
  12. package/node_modules/concat-map/package.json +5 -8
  13. package/node_modules/console-control-strings/package.json +10 -13
  14. package/node_modules/core-util-is/package.json +10 -13
  15. package/node_modules/debug/README.md +0 -18
  16. package/node_modules/debug/dist/debug.js +2 -28
  17. package/node_modules/debug/node.js +1 -0
  18. package/node_modules/debug/package.json +15 -30
  19. package/node_modules/debug/src/browser.js +103 -187
  20. package/node_modules/debug/src/common.js +240 -257
  21. package/node_modules/debug/src/index.js +5 -3
  22. package/node_modules/debug/src/node.js +82 -165
  23. package/node_modules/deep-extend/package.json +10 -13
  24. package/node_modules/delegates/package.json +10 -13
  25. package/node_modules/detect-libc/package.json +10 -13
  26. package/node_modules/fs-minipass/index.js +2 -1
  27. package/node_modules/fs-minipass/package.json +21 -21
  28. package/node_modules/fs.realpath/package.json +10 -13
  29. package/node_modules/gauge/package.json +10 -13
  30. package/node_modules/glob/LICENSE +6 -0
  31. package/node_modules/glob/README.md +8 -1
  32. package/node_modules/glob/package.json +17 -17
  33. package/node_modules/has-unicode/package.json +10 -13
  34. package/node_modules/iconv-lite/package.json +10 -13
  35. package/node_modules/ignore-walk/README.md +1 -1
  36. package/node_modules/ignore-walk/index.js +9 -5
  37. package/node_modules/ignore-walk/package.json +19 -19
  38. package/node_modules/inflight/package.json +10 -13
  39. package/node_modules/inherits/inherits.js +2 -0
  40. package/node_modules/inherits/inherits_browser.js +18 -14
  41. package/node_modules/inherits/package.json +16 -19
  42. package/node_modules/ini/package.json +10 -13
  43. package/node_modules/is-fullwidth-code-point/package.json +10 -13
  44. package/node_modules/isarray/package.json +10 -13
  45. package/node_modules/minimatch/package.json +10 -13
  46. package/node_modules/minimist/package.json +5 -8
  47. package/node_modules/minipass/README.md +486 -4
  48. package/node_modules/minipass/index.js +190 -28
  49. package/node_modules/minipass/package.json +20 -20
  50. package/node_modules/minizlib/README.md +36 -27
  51. package/node_modules/minizlib/constants.js +73 -4
  52. package/node_modules/minizlib/index.js +137 -152
  53. package/node_modules/minizlib/package.json +15 -18
  54. package/node_modules/mkdirp/package.json +10 -13
  55. package/node_modules/ms/index.js +2 -2
  56. package/node_modules/ms/package.json +14 -17
  57. package/node_modules/ms/readme.md +1 -1
  58. package/node_modules/needle/lib/needle.js +2 -0
  59. package/node_modules/needle/package.json +15 -18
  60. package/node_modules/needle/test/headers_spec.js +1 -1
  61. package/node_modules/node-pre-gyp/CHANGELOG.md +11 -0
  62. package/node_modules/node-pre-gyp/lib/install.js +44 -14
  63. package/node_modules/node-pre-gyp/lib/util/abi_crosswalk.json +240 -0
  64. package/node_modules/node-pre-gyp/lib/util/napi.js +3 -2
  65. package/node_modules/node-pre-gyp/package.json +14 -17
  66. package/node_modules/nopt/package.json +10 -13
  67. package/node_modules/npm-bundled/index.js +13 -5
  68. package/node_modules/npm-bundled/package.json +17 -17
  69. package/node_modules/npm-normalize-package-bin/.github/settings.yml +2 -0
  70. package/node_modules/npm-normalize-package-bin/.npmignore +24 -0
  71. package/node_modules/npm-normalize-package-bin/LICENSE +15 -0
  72. package/node_modules/npm-normalize-package-bin/README.md +14 -0
  73. package/node_modules/npm-normalize-package-bin/index.js +60 -0
  74. package/node_modules/npm-normalize-package-bin/package-lock.json +3529 -0
  75. package/node_modules/npm-normalize-package-bin/package.json +57 -0
  76. package/node_modules/npm-normalize-package-bin/test/array.js +37 -0
  77. package/node_modules/npm-normalize-package-bin/test/nobin.js +35 -0
  78. package/node_modules/npm-normalize-package-bin/test/object.js +141 -0
  79. package/node_modules/npm-normalize-package-bin/test/string.js +37 -0
  80. package/node_modules/npm-packlist/index.js +55 -16
  81. package/node_modules/npm-packlist/package.json +24 -20
  82. package/node_modules/npmlog/package.json +10 -13
  83. package/node_modules/number-is-nan/package.json +10 -13
  84. package/node_modules/object-assign/package.json +10 -13
  85. package/node_modules/once/package.json +10 -13
  86. package/node_modules/os-homedir/package.json +10 -13
  87. package/node_modules/os-tmpdir/package.json +10 -13
  88. package/node_modules/osenv/package.json +10 -13
  89. package/node_modules/path-is-absolute/package.json +10 -13
  90. package/node_modules/process-nextick-args/index.js +2 -1
  91. package/node_modules/process-nextick-args/package.json +14 -17
  92. package/node_modules/rc/node_modules/minimist/package.json +10 -13
  93. package/node_modules/rc/package.json +10 -13
  94. package/node_modules/readable-stream/package.json +10 -13
  95. package/node_modules/rimraf/package.json +14 -17
  96. package/node_modules/rimraf/rimraf.js +9 -1
  97. package/node_modules/safe-buffer/package.json +10 -13
  98. package/node_modules/safer-buffer/package.json +10 -13
  99. package/node_modules/sax/package.json +10 -13
  100. package/node_modules/semver/README.md +12 -11
  101. package/node_modules/semver/package.json +14 -17
  102. package/node_modules/set-blocking/package.json +10 -13
  103. package/node_modules/signal-exit/package.json +10 -13
  104. package/node_modules/string-width/package.json +10 -13
  105. package/node_modules/string_decoder/package.json +10 -13
  106. package/node_modules/strip-ansi/package.json +10 -13
  107. package/node_modules/strip-json-comments/package.json +10 -13
  108. package/node_modules/tar/lib/large-numbers.js +32 -27
  109. package/node_modules/tar/lib/mkdir.js +2 -2
  110. package/node_modules/tar/lib/parse.js +6 -1
  111. package/node_modules/tar/lib/read-entry.js +4 -0
  112. package/node_modules/tar/lib/write-entry.js +2 -2
  113. package/node_modules/tar/package.json +25 -24
  114. package/node_modules/util-deprecate/package.json +10 -13
  115. package/node_modules/wide-align/package.json +10 -13
  116. package/node_modules/wrappy/package.json +10 -13
  117. package/node_modules/yallist/package.json +14 -17
  118. package/node_modules/yallist/yallist.js +50 -0
  119. package/package.json +4 -14
  120. package/install.js +0 -7
  121. package/node_modules/needle/.npmignore +0 -6
  122. package/node_modules/needle/package-lock.json +0 -395
  123. package/node_modules/needle/test/keys/ssl.cert +0 -21
  124. package/node_modules/needle/test/keys/ssl.key +0 -27
@@ -5,15 +5,21 @@ const Buffer = require('buffer').Buffer
5
5
  const realZlib = require('zlib')
6
6
 
7
7
  const constants = exports.constants = require('./constants.js')
8
- const MiniPass = require('minipass')
8
+ const Minipass = require('minipass')
9
9
 
10
10
  const OriginalBufferConcat = Buffer.concat
11
11
 
12
12
  class ZlibError extends Error {
13
- constructor (msg, errno) {
14
- super('zlib: ' + msg)
15
- this.errno = errno
16
- this.code = codes.get(errno)
13
+ constructor (err) {
14
+ super('zlib: ' + err.message)
15
+ this.code = err.code
16
+ this.errno = err.errno
17
+ /* istanbul ignore if */
18
+ if (!this.code)
19
+ this.code = 'ZLIB_ERROR'
20
+
21
+ this.message = 'zlib: ' + err.message
22
+ Error.captureStackTrace(this, this.constructor)
17
23
  }
18
24
 
19
25
  get name () {
@@ -21,126 +27,51 @@ class ZlibError extends Error {
21
27
  }
22
28
  }
23
29
 
24
- // translation table for return codes.
25
- const codes = new Map([
26
- [constants.Z_OK, 'Z_OK'],
27
- [constants.Z_STREAM_END, 'Z_STREAM_END'],
28
- [constants.Z_NEED_DICT, 'Z_NEED_DICT'],
29
- [constants.Z_ERRNO, 'Z_ERRNO'],
30
- [constants.Z_STREAM_ERROR, 'Z_STREAM_ERROR'],
31
- [constants.Z_DATA_ERROR, 'Z_DATA_ERROR'],
32
- [constants.Z_MEM_ERROR, 'Z_MEM_ERROR'],
33
- [constants.Z_BUF_ERROR, 'Z_BUF_ERROR'],
34
- [constants.Z_VERSION_ERROR, 'Z_VERSION_ERROR']
35
- ])
36
-
37
- const validFlushFlags = new Set([
38
- constants.Z_NO_FLUSH,
39
- constants.Z_PARTIAL_FLUSH,
40
- constants.Z_SYNC_FLUSH,
41
- constants.Z_FULL_FLUSH,
42
- constants.Z_FINISH,
43
- constants.Z_BLOCK
44
- ])
45
-
46
- const strategies = new Set([
47
- constants.Z_FILTERED,
48
- constants.Z_HUFFMAN_ONLY,
49
- constants.Z_RLE,
50
- constants.Z_FIXED,
51
- constants.Z_DEFAULT_STRATEGY
52
- ])
53
-
54
30
  // the Zlib class they all inherit from
55
31
  // This thing manages the queue of requests, and returns
56
32
  // true or false if there is anything in the queue when
57
33
  // you call the .write() method.
58
34
  const _opts = Symbol('opts')
59
35
  const _flushFlag = Symbol('flushFlag')
60
- const _finishFlush = Symbol('finishFlush')
36
+ const _finishFlushFlag = Symbol('finishFlushFlag')
37
+ const _fullFlushFlag = Symbol('fullFlushFlag')
61
38
  const _handle = Symbol('handle')
62
39
  const _onError = Symbol('onError')
40
+ const _sawError = Symbol('sawError')
63
41
  const _level = Symbol('level')
64
42
  const _strategy = Symbol('strategy')
65
43
  const _ended = Symbol('ended')
44
+ const _defaultFullFlush = Symbol('_defaultFullFlush')
66
45
 
67
- class Zlib extends MiniPass {
46
+ class ZlibBase extends Minipass {
68
47
  constructor (opts, mode) {
48
+ if (!opts || typeof opts !== 'object')
49
+ throw new TypeError('invalid options for ZlibBase constructor')
50
+
69
51
  super(opts)
70
52
  this[_ended] = false
71
- this[_opts] = opts = opts || {}
72
- if (opts.flush && !validFlushFlags.has(opts.flush)) {
73
- throw new TypeError('Invalid flush flag: ' + opts.flush)
74
- }
75
- if (opts.finishFlush && !validFlushFlags.has(opts.finishFlush)) {
76
- throw new TypeError('Invalid flush flag: ' + opts.finishFlush)
77
- }
78
-
79
- this[_flushFlag] = opts.flush || constants.Z_NO_FLUSH
80
- this[_finishFlush] = typeof opts.finishFlush !== 'undefined' ?
81
- opts.finishFlush : constants.Z_FINISH
82
-
83
- if (opts.chunkSize) {
84
- if (opts.chunkSize < constants.Z_MIN_CHUNK) {
85
- throw new RangeError('Invalid chunk size: ' + opts.chunkSize)
86
- }
87
- }
88
-
89
- if (opts.windowBits) {
90
- if (opts.windowBits < constants.Z_MIN_WINDOWBITS ||
91
- opts.windowBits > constants.Z_MAX_WINDOWBITS) {
92
- throw new RangeError('Invalid windowBits: ' + opts.windowBits)
93
- }
94
- }
95
-
96
- if (opts.level) {
97
- if (opts.level < constants.Z_MIN_LEVEL ||
98
- opts.level > constants.Z_MAX_LEVEL) {
99
- throw new RangeError('Invalid compression level: ' + opts.level)
100
- }
101
- }
53
+ this[_opts] = opts
102
54
 
103
- if (opts.memLevel) {
104
- if (opts.memLevel < constants.Z_MIN_MEMLEVEL ||
105
- opts.memLevel > constants.Z_MAX_MEMLEVEL) {
106
- throw new RangeError('Invalid memLevel: ' + opts.memLevel)
107
- }
108
- }
109
-
110
- if (opts.strategy && !(strategies.has(opts.strategy)))
111
- throw new TypeError('Invalid strategy: ' + opts.strategy)
112
-
113
- if (opts.dictionary) {
114
- if (!(opts.dictionary instanceof Buffer)) {
115
- throw new TypeError('Invalid dictionary: it should be a Buffer instance')
116
- }
55
+ this[_flushFlag] = opts.flush
56
+ this[_finishFlushFlag] = opts.finishFlush
57
+ // this will throw if any options are invalid for the class selected
58
+ try {
59
+ this[_handle] = new realZlib[mode](opts)
60
+ } catch (er) {
61
+ // make sure that all errors get decorated properly
62
+ throw new ZlibError(er)
117
63
  }
118
64
 
119
- this[_handle] = new realZlib[mode](opts)
120
-
121
65
  this[_onError] = (err) => {
66
+ this[_sawError] = true
122
67
  // there is no way to cleanly recover.
123
68
  // continuing only obscures problems.
124
69
  this.close()
125
-
126
- const error = new ZlibError(err.message, err.errno)
127
- this.emit('error', error)
70
+ this.emit('error', err)
128
71
  }
129
- this[_handle].on('error', this[_onError])
130
72
 
131
- const level = typeof opts.level === 'number' ? opts.level
132
- : constants.Z_DEFAULT_COMPRESSION
133
-
134
- var strategy = typeof opts.strategy === 'number' ? opts.strategy
135
- : constants.Z_DEFAULT_STRATEGY
136
-
137
- // API changed in node v9
138
- /* istanbul ignore next */
139
-
140
- this[_level] = level
141
- this[_strategy] = strategy
142
-
143
- this.once('end', this.close)
73
+ this[_handle].on('error', er => this[_onError](new ZlibError(er)))
74
+ this.once('end', () => this.close)
144
75
  }
145
76
 
146
77
  close () {
@@ -151,66 +82,26 @@ class Zlib extends MiniPass {
151
82
  }
152
83
  }
153
84
 
154
- params (level, strategy) {
155
- if (!this[_handle])
156
- throw new Error('cannot switch params when binding is closed')
157
-
158
- // no way to test this without also not supporting params at all
159
- /* istanbul ignore if */
160
- if (!this[_handle].params)
161
- throw new Error('not supported in this implementation')
162
-
163
- if (level < constants.Z_MIN_LEVEL ||
164
- level > constants.Z_MAX_LEVEL) {
165
- throw new RangeError('Invalid compression level: ' + level)
166
- }
167
-
168
- if (!(strategies.has(strategy)))
169
- throw new TypeError('Invalid strategy: ' + strategy)
170
-
171
- if (this[_level] !== level || this[_strategy] !== strategy) {
172
- this.flush(constants.Z_SYNC_FLUSH)
85
+ reset () {
86
+ if (!this[_sawError]) {
173
87
  assert(this[_handle], 'zlib binding closed')
174
- // .params() calls .flush(), but the latter is always async in the
175
- // core zlib. We override .flush() temporarily to intercept that and
176
- // flush synchronously.
177
- const origFlush = this[_handle].flush
178
- this[_handle].flush = (flushFlag, cb) => {
179
- this[_handle].flush = origFlush
180
- this.flush(flushFlag)
181
- cb()
182
- }
183
- this[_handle].params(level, strategy)
184
- /* istanbul ignore else */
185
- if (this[_handle]) {
186
- this[_level] = level
187
- this[_strategy] = strategy
188
- }
88
+ return this[_handle].reset()
189
89
  }
190
90
  }
191
91
 
192
- reset () {
193
- assert(this[_handle], 'zlib binding closed')
194
- return this[_handle].reset()
195
- }
196
-
197
- flush (kind) {
198
- if (kind === undefined)
199
- kind = constants.Z_FULL_FLUSH
200
-
92
+ flush (flushFlag) {
201
93
  if (this.ended)
202
94
  return
203
95
 
204
- const flushFlag = this[_flushFlag]
205
- this[_flushFlag] = kind
206
- this.write(Buffer.alloc(0))
207
- this[_flushFlag] = flushFlag
96
+ if (typeof flushFlag !== 'number')
97
+ flushFlag = this[_fullFlushFlag]
98
+ this.write(Object.assign(Buffer.alloc(0), { [_flushFlag]: flushFlag }))
208
99
  }
209
100
 
210
101
  end (chunk, encoding, cb) {
211
102
  if (chunk)
212
103
  this.write(chunk, encoding)
213
- this.flush(this[_finishFlush])
104
+ this.flush(this[_finishFlushFlag])
214
105
  this[_ended] = true
215
106
  return super.end(null, null, cb)
216
107
  }
@@ -228,6 +119,8 @@ class Zlib extends MiniPass {
228
119
  if (typeof chunk === 'string')
229
120
  chunk = Buffer.from(chunk, encoding)
230
121
 
122
+ if (this[_sawError])
123
+ return
231
124
  assert(this[_handle], 'zlib binding closed')
232
125
 
233
126
  // _processChunk tries to .close() the native handle after it's done, so we
@@ -242,11 +135,17 @@ class Zlib extends MiniPass {
242
135
  Buffer.concat = (args) => args
243
136
  let result
244
137
  try {
245
- result = this[_handle]._processChunk(chunk, this[_flushFlag])
138
+ const flushFlag = typeof chunk[_flushFlag] === 'number'
139
+ ? chunk[_flushFlag] : this[_flushFlag]
140
+ result = this[_handle]._processChunk(chunk, flushFlag)
141
+ // if we don't throw, reset it back how it was
142
+ Buffer.concat = OriginalBufferConcat
246
143
  } catch (err) {
247
- this[_onError](err)
248
- } finally {
144
+ // or if we do, put Buffer.concat() back before we emit error
145
+ // Error events call into user code, which may call Buffer.concat()
249
146
  Buffer.concat = OriginalBufferConcat
147
+ this[_onError](new ZlibError(err))
148
+ } finally {
250
149
  if (this[_handle]) {
251
150
  // Core zlib resets `_handle` to null after attempting to close the
252
151
  // native handle. Our no-op handler prevented actual closure, but we
@@ -280,6 +179,56 @@ class Zlib extends MiniPass {
280
179
  }
281
180
  }
282
181
 
182
+ class Zlib extends ZlibBase {
183
+ constructor (opts, mode) {
184
+ opts = opts || {}
185
+
186
+ opts.flush = opts.flush || constants.Z_NO_FLUSH
187
+ opts.finishFlush = opts.finishFlush || constants.Z_FINISH
188
+ super(opts, mode)
189
+
190
+ this[_fullFlushFlag] = constants.Z_FULL_FLUSH
191
+ this[_level] = opts.level
192
+ this[_strategy] = opts.strategy
193
+ }
194
+
195
+ params (level, strategy) {
196
+ if (this[_sawError])
197
+ return
198
+
199
+ if (!this[_handle])
200
+ throw new Error('cannot switch params when binding is closed')
201
+
202
+ // no way to test this without also not supporting params at all
203
+ /* istanbul ignore if */
204
+ if (!this[_handle].params)
205
+ throw new Error('not supported in this implementation')
206
+
207
+ if (this[_level] !== level || this[_strategy] !== strategy) {
208
+ this.flush(constants.Z_SYNC_FLUSH)
209
+ assert(this[_handle], 'zlib binding closed')
210
+ // .params() calls .flush(), but the latter is always async in the
211
+ // core zlib. We override .flush() temporarily to intercept that and
212
+ // flush synchronously.
213
+ const origFlush = this[_handle].flush
214
+ this[_handle].flush = (flushFlag, cb) => {
215
+ this.flush(flushFlag)
216
+ cb()
217
+ }
218
+ try {
219
+ this[_handle].params(level, strategy)
220
+ } finally {
221
+ this[_handle].flush = origFlush
222
+ }
223
+ /* istanbul ignore else */
224
+ if (this[_handle]) {
225
+ this[_level] = level
226
+ this[_strategy] = strategy
227
+ }
228
+ }
229
+ }
230
+ }
231
+
283
232
  // minimal 2-byte header
284
233
  class Deflate extends Zlib {
285
234
  constructor (opts) {
@@ -326,6 +275,31 @@ class Unzip extends Zlib {
326
275
  }
327
276
  }
328
277
 
278
+ class Brotli extends ZlibBase {
279
+ constructor (opts, mode) {
280
+ opts = opts || {}
281
+
282
+ opts.flush = opts.flush || constants.BROTLI_OPERATION_PROCESS
283
+ opts.finishFlush = opts.finishFlush || constants.BROTLI_OPERATION_FINISH
284
+
285
+ super(opts, mode)
286
+
287
+ this[_fullFlushFlag] = constants.BROTLI_OPERATION_FLUSH
288
+ }
289
+ }
290
+
291
+ class BrotliCompress extends Brotli {
292
+ constructor (opts) {
293
+ super(opts, 'BrotliCompress')
294
+ }
295
+ }
296
+
297
+ class BrotliDecompress extends Brotli {
298
+ constructor (opts) {
299
+ super(opts, 'BrotliDecompress')
300
+ }
301
+ }
302
+
329
303
  exports.Deflate = Deflate
330
304
  exports.Inflate = Inflate
331
305
  exports.Gzip = Gzip
@@ -333,3 +307,14 @@ exports.Gunzip = Gunzip
333
307
  exports.DeflateRaw = DeflateRaw
334
308
  exports.InflateRaw = InflateRaw
335
309
  exports.Unzip = Unzip
310
+ /* istanbul ignore else */
311
+ if (typeof realZlib.BrotliCompress === 'function') {
312
+ exports.BrotliCompress = BrotliCompress
313
+ exports.BrotliDecompress = BrotliDecompress
314
+ } else {
315
+ exports.BrotliCompress = exports.BrotliDecompress = class {
316
+ constructor () {
317
+ throw new Error('Brotli is not supported in this version of Node.js')
318
+ }
319
+ }
320
+ }
@@ -1,32 +1,27 @@
1
1
  {
2
- "_args": [
3
- [
4
- "minizlib@1.2.1",
5
- "/Users/pipobscure/fsevents"
6
- ]
7
- ],
8
- "_from": "minizlib@1.2.1",
9
- "_id": "minizlib@1.2.1",
2
+ "_from": "minizlib@^1.2.1",
3
+ "_id": "minizlib@1.3.3",
10
4
  "_inBundle": false,
11
- "_integrity": "sha512-7+4oTUOWKg7AuL3vloEWekXY2/D20cevzsrNT2kGWm+39J9hGTCBv8VI5Pm5lXZ/o3/mdR4f8rflAPhnQb8mPA==",
5
+ "_integrity": "sha512-6ZYMOEnmVsdCeTJVE0W9ZD+pVnE8h9Hma/iOwwRDsdQoePpoX56/8B6z3P9VNwppJuBKNRuFDRNRqRWexT9G9Q==",
12
6
  "_location": "/minizlib",
13
7
  "_phantomChildren": {},
14
8
  "_requested": {
15
- "type": "version",
9
+ "type": "range",
16
10
  "registry": true,
17
- "raw": "minizlib@1.2.1",
11
+ "raw": "minizlib@^1.2.1",
18
12
  "name": "minizlib",
19
13
  "escapedName": "minizlib",
20
- "rawSpec": "1.2.1",
14
+ "rawSpec": "^1.2.1",
21
15
  "saveSpec": null,
22
- "fetchSpec": "1.2.1"
16
+ "fetchSpec": "^1.2.1"
23
17
  },
24
18
  "_requiredBy": [
25
19
  "/tar"
26
20
  ],
27
- "_resolved": "https://registry.npmjs.org/minizlib/-/minizlib-1.2.1.tgz",
28
- "_spec": "1.2.1",
29
- "_where": "/Users/pipobscure/fsevents",
21
+ "_resolved": "https://registry.npmjs.org/minizlib/-/minizlib-1.3.3.tgz",
22
+ "_shasum": "2290de96818a34c29551c8a8d301216bd65a861d",
23
+ "_spec": "minizlib@^1.2.1",
24
+ "_where": "/Users/pipobscure/fsevents/node_modules/tar",
30
25
  "author": {
31
26
  "name": "Isaac Z. Schlueter",
32
27
  "email": "i@izs.me",
@@ -35,9 +30,11 @@
35
30
  "bugs": {
36
31
  "url": "https://github.com/isaacs/minizlib/issues"
37
32
  },
33
+ "bundleDependencies": false,
38
34
  "dependencies": {
39
- "minipass": "^2.2.1"
35
+ "minipass": "^2.9.0"
40
36
  },
37
+ "deprecated": false,
41
38
  "description": "A small fast zlib stream built on [minipass](http://npm.im/minipass) and Node.js's zlib binding.",
42
39
  "devDependencies": {
43
40
  "tap": "^12.0.1"
@@ -70,5 +67,5 @@
70
67
  "preversion": "npm test",
71
68
  "test": "tap test/*.js --100 -J"
72
69
  },
73
- "version": "1.2.1"
70
+ "version": "1.3.3"
74
71
  }
@@ -1,33 +1,28 @@
1
1
  {
2
- "_args": [
3
- [
4
- "mkdirp@0.5.1",
5
- "/Users/pipobscure/fsevents"
6
- ]
7
- ],
8
- "_from": "mkdirp@0.5.1",
2
+ "_from": "mkdirp@^0.5.1",
9
3
  "_id": "mkdirp@0.5.1",
10
4
  "_inBundle": false,
11
5
  "_integrity": "sha1-MAV0OOrGz3+MR2fzhkjWaX11yQM=",
12
6
  "_location": "/mkdirp",
13
7
  "_phantomChildren": {},
14
8
  "_requested": {
15
- "type": "version",
9
+ "type": "range",
16
10
  "registry": true,
17
- "raw": "mkdirp@0.5.1",
11
+ "raw": "mkdirp@^0.5.1",
18
12
  "name": "mkdirp",
19
13
  "escapedName": "mkdirp",
20
- "rawSpec": "0.5.1",
14
+ "rawSpec": "^0.5.1",
21
15
  "saveSpec": null,
22
- "fetchSpec": "0.5.1"
16
+ "fetchSpec": "^0.5.1"
23
17
  },
24
18
  "_requiredBy": [
25
19
  "/node-pre-gyp",
26
20
  "/tar"
27
21
  ],
28
22
  "_resolved": "https://registry.npmjs.org/mkdirp/-/mkdirp-0.5.1.tgz",
29
- "_spec": "0.5.1",
30
- "_where": "/Users/pipobscure/fsevents",
23
+ "_shasum": "30057438eac6cf7f8c4767f38648d6697d75c903",
24
+ "_spec": "mkdirp@^0.5.1",
25
+ "_where": "/Users/pipobscure/fsevents/node_modules/node-pre-gyp",
31
26
  "author": {
32
27
  "name": "James Halliday",
33
28
  "email": "mail@substack.net",
@@ -39,9 +34,11 @@
39
34
  "bugs": {
40
35
  "url": "https://github.com/substack/node-mkdirp/issues"
41
36
  },
37
+ "bundleDependencies": false,
42
38
  "dependencies": {
43
39
  "minimist": "0.0.8"
44
40
  },
41
+ "deprecated": false,
45
42
  "description": "Recursively mkdir, like `mkdir -p`",
46
43
  "devDependencies": {
47
44
  "mock-fs": "2 >=2.7.0",
@@ -28,7 +28,7 @@ module.exports = function(val, options) {
28
28
  var type = typeof val;
29
29
  if (type === 'string' && val.length > 0) {
30
30
  return parse(val);
31
- } else if (type === 'number' && isNaN(val) === false) {
31
+ } else if (type === 'number' && isFinite(val)) {
32
32
  return options.long ? fmtLong(val) : fmtShort(val);
33
33
  }
34
34
  throw new Error(
@@ -50,7 +50,7 @@ function parse(str) {
50
50
  if (str.length > 100) {
51
51
  return;
52
52
  }
53
- var match = /^((?:\d+)?\-?\d?\.?\d+) *(milliseconds?|msecs?|ms|seconds?|secs?|s|minutes?|mins?|m|hours?|hrs?|h|days?|d|weeks?|w|years?|yrs?|y)?$/i.exec(
53
+ var match = /^(-?(?:\d+)?\.?\d+) *(milliseconds?|msecs?|ms|seconds?|secs?|s|minutes?|mins?|m|hours?|hrs?|h|days?|d|weeks?|w|years?|yrs?|y)?$/i.exec(
54
54
  str
55
55
  );
56
56
  if (!match) {
@@ -1,35 +1,32 @@
1
1
  {
2
- "_args": [
3
- [
4
- "ms@2.1.1",
5
- "/Users/pipobscure/fsevents"
6
- ]
7
- ],
8
- "_from": "ms@2.1.1",
9
- "_id": "ms@2.1.1",
2
+ "_from": "ms@^2.1.1",
3
+ "_id": "ms@2.1.2",
10
4
  "_inBundle": false,
11
- "_integrity": "sha512-tgp+dl5cGk28utYktBsrFqA7HKgrhgPsg6Z/EfhWI4gl1Hwq8B/GmY/0oXZ6nF8hDVesS/FpnYaD/kOWhYQvyg==",
5
+ "_integrity": "sha512-sGkPx+VjMtmA6MX27oA4FBFELFCZZ4S4XqeGOXCv68tT+jb3vk/RyaKWP0PTKyWtmLSM0b+adUTEvbs1PEaH2w==",
12
6
  "_location": "/ms",
13
7
  "_phantomChildren": {},
14
8
  "_requested": {
15
- "type": "version",
9
+ "type": "range",
16
10
  "registry": true,
17
- "raw": "ms@2.1.1",
11
+ "raw": "ms@^2.1.1",
18
12
  "name": "ms",
19
13
  "escapedName": "ms",
20
- "rawSpec": "2.1.1",
14
+ "rawSpec": "^2.1.1",
21
15
  "saveSpec": null,
22
- "fetchSpec": "2.1.1"
16
+ "fetchSpec": "^2.1.1"
23
17
  },
24
18
  "_requiredBy": [
25
19
  "/debug"
26
20
  ],
27
- "_resolved": "https://registry.npmjs.org/ms/-/ms-2.1.1.tgz",
28
- "_spec": "2.1.1",
29
- "_where": "/Users/pipobscure/fsevents",
21
+ "_resolved": "https://registry.npmjs.org/ms/-/ms-2.1.2.tgz",
22
+ "_shasum": "d09d1f357b443f493382a8eb3ccd183872ae6009",
23
+ "_spec": "ms@^2.1.1",
24
+ "_where": "/Users/pipobscure/fsevents/node_modules/debug",
30
25
  "bugs": {
31
26
  "url": "https://github.com/zeit/ms/issues"
32
27
  },
28
+ "bundleDependencies": false,
29
+ "deprecated": false,
33
30
  "description": "Tiny millisecond conversion utility",
34
31
  "devDependencies": {
35
32
  "eslint": "4.12.1",
@@ -68,5 +65,5 @@
68
65
  "precommit": "lint-staged",
69
66
  "test": "mocha tests.js"
70
67
  },
71
- "version": "2.1.1"
68
+ "version": "2.1.2"
72
69
  }
@@ -1,7 +1,7 @@
1
1
  # ms
2
2
 
3
3
  [![Build Status](https://travis-ci.org/zeit/ms.svg?branch=master)](https://travis-ci.org/zeit/ms)
4
- [![Slack Channel](http://zeit-slackin.now.sh/badge.svg)](https://zeit.chat/)
4
+ [![Join the community on Spectrum](https://withspectrum.github.io/badge/badge.svg)](https://spectrum.chat/zeit)
5
5
 
6
6
  Use this package to easily convert various time formats to milliseconds.
7
7
 
@@ -772,6 +772,8 @@ module.exports.defaults = function(obj) {
772
772
  throw new TypeError('Invalid type for ' + key + ', should be ' + valid_type);
773
773
  }
774
774
  defaults[target_key] = obj[key];
775
+ } else {
776
+ throw new Error('Invalid property for defaults:' + target_key);
775
777
  }
776
778
  }
777
779
 
@@ -1,32 +1,27 @@
1
1
  {
2
- "_args": [
3
- [
4
- "needle@2.3.0",
5
- "/Users/pipobscure/fsevents"
6
- ]
7
- ],
8
- "_from": "needle@2.3.0",
9
- "_id": "needle@2.3.0",
2
+ "_from": "needle@^2.2.1",
3
+ "_id": "needle@2.4.0",
10
4
  "_inBundle": false,
11
- "_integrity": "sha512-QBZu7aAFR0522EyaXZM0FZ9GLpq6lvQ3uq8gteiDUp7wKdy0lSd2hPlgFwVuW1CBkfEs9PfDQsQzZghLs/psdg==",
5
+ "_integrity": "sha512-4Hnwzr3mi5L97hMYeNl8wRW/Onhy4nUKR/lVemJ8gJedxxUyBLm9kkrDColJvoSfwi0jCNhD+xCdOtiGDQiRZg==",
12
6
  "_location": "/needle",
13
7
  "_phantomChildren": {},
14
8
  "_requested": {
15
- "type": "version",
9
+ "type": "range",
16
10
  "registry": true,
17
- "raw": "needle@2.3.0",
11
+ "raw": "needle@^2.2.1",
18
12
  "name": "needle",
19
13
  "escapedName": "needle",
20
- "rawSpec": "2.3.0",
14
+ "rawSpec": "^2.2.1",
21
15
  "saveSpec": null,
22
- "fetchSpec": "2.3.0"
16
+ "fetchSpec": "^2.2.1"
23
17
  },
24
18
  "_requiredBy": [
25
19
  "/node-pre-gyp"
26
20
  ],
27
- "_resolved": "https://registry.npmjs.org/needle/-/needle-2.3.0.tgz",
28
- "_spec": "2.3.0",
29
- "_where": "/Users/pipobscure/fsevents",
21
+ "_resolved": "https://registry.npmjs.org/needle/-/needle-2.4.0.tgz",
22
+ "_shasum": "6833e74975c444642590e15a750288c5f939b57c",
23
+ "_spec": "needle@^2.2.1",
24
+ "_where": "/Users/pipobscure/fsevents/node_modules/node-pre-gyp",
30
25
  "author": {
31
26
  "name": "Tomás Pollak",
32
27
  "email": "tomas@forkhq.com"
@@ -37,11 +32,13 @@
37
32
  "bugs": {
38
33
  "url": "https://github.com/tomas/needle/issues"
39
34
  },
35
+ "bundleDependencies": false,
40
36
  "dependencies": {
41
- "debug": "^4.1.0",
37
+ "debug": "^3.2.6",
42
38
  "iconv-lite": "^0.4.4",
43
39
  "sax": "^1.2.4"
44
40
  },
41
+ "deprecated": false,
45
42
  "description": "The leanest and most handsome HTTP client in the Nodelands.",
46
43
  "devDependencies": {
47
44
  "JSONStream": "^1.3.5",
@@ -101,5 +98,5 @@
101
98
  "cookie",
102
99
  "redirect"
103
100
  ],
104
- "version": "2.3.0"
101
+ "version": "2.4.0"
105
102
  }
@@ -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