mocha 6.2.2 → 6.2.3

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.
package/CHANGELOG.md CHANGED
@@ -1,3 +1,9 @@
1
+ # 6.2.3 / 2020-03-25
2
+
3
+ ## :lock: Security Fixes
4
+
5
+ - [848d6fb8](https://github.com/mochajs/mocha/commit/848d6fb8feef659564b296db457312d38176910d): Update dependencies mkdirp, yargs-parser and yargs ([**@juergba**](https://github.com/juergba))
6
+
1
7
  # 6.2.2 / 2019-10-18
2
8
 
3
9
  ## :bug: Fixes
package/bin/mocha CHANGED
@@ -98,9 +98,7 @@ if (/^(debug|inspect)$/.test(mochaArgs._[0])) {
98
98
  .forEach(opt => {
99
99
  const newOpt = opt === 'debug' ? 'inspect' : 'inspect-brk';
100
100
  warn(
101
- `"--${opt}" is not available in Node.js ${
102
- process.version
103
- }; use "--${newOpt}" instead.`
101
+ `"--${opt}" is not available in Node.js ${process.version}; use "--${newOpt}" instead.`
104
102
  );
105
103
  nodeArgs[newOpt] = nodeArgs[opt];
106
104
  mochaArgs.timeout = false;
package/mocha.js CHANGED
@@ -193,7 +193,7 @@ global.mocha = mocha;
193
193
  module.exports = global;
194
194
 
195
195
  }).call(this,require('_process'),typeof global !== "undefined" ? global : typeof self !== "undefined" ? self : typeof window !== "undefined" ? window : {})
196
- },{"./lib/mocha":14,"_process":69,"browser-stdout":41}],2:[function(require,module,exports){
196
+ },{"./lib/mocha":14,"_process":68,"browser-stdout":41}],2:[function(require,module,exports){
197
197
  (function (process,global){
198
198
  'use strict';
199
199
 
@@ -365,7 +365,7 @@ function notPermitted(err) {
365
365
  }
366
366
 
367
367
  }).call(this,require('_process'),typeof global !== "undefined" ? global : typeof self !== "undefined" ? self : typeof window !== "undefined" ? window : {})
368
- },{"../../package":90,"../runner":34,"_process":69}],3:[function(require,module,exports){
368
+ },{"../../package":91,"../runner":34,"_process":68}],3:[function(require,module,exports){
369
369
  'use strict';
370
370
 
371
371
  /**
@@ -2242,7 +2242,7 @@ Mocha.prototype.run = function(fn) {
2242
2242
  };
2243
2243
 
2244
2244
  }).call(this,require('_process'),typeof global !== "undefined" ? global : typeof self !== "undefined" ? self : typeof window !== "undefined" ? window : {})
2245
- },{"../package.json":90,"./context":5,"./errors":6,"./growl":2,"./hook":7,"./interfaces":11,"./mocharc.json":15,"./reporters":21,"./runnable":33,"./runner":34,"./stats-collector":35,"./suite":36,"./test":37,"./utils":38,"_process":69,"escape-string-regexp":49,"path":42}],15:[function(require,module,exports){
2245
+ },{"../package.json":91,"./context":5,"./errors":6,"./growl":2,"./hook":7,"./interfaces":11,"./mocharc.json":15,"./reporters":21,"./runnable":33,"./runner":34,"./stats-collector":35,"./suite":36,"./test":37,"./utils":38,"_process":68,"escape-string-regexp":49,"path":42}],15:[function(require,module,exports){
2246
2246
  module.exports={
2247
2247
  "diff": true,
2248
2248
  "extension": ["js"],
@@ -2785,7 +2785,7 @@ Base.consoleLog = consoleLog;
2785
2785
  Base.abstract = true;
2786
2786
 
2787
2787
  }).call(this,require('_process'))
2788
- },{"../runner":34,"../utils":38,"_process":69,"diff":48,"ms":60,"supports-color":42,"tty":4}],18:[function(require,module,exports){
2788
+ },{"../runner":34,"../utils":38,"_process":68,"diff":48,"ms":59,"supports-color":42,"tty":4}],18:[function(require,module,exports){
2789
2789
  'use strict';
2790
2790
  /**
2791
2791
  * @module Doc
@@ -2961,7 +2961,7 @@ inherits(Dot, Base);
2961
2961
  Dot.description = 'dot matrix representation';
2962
2962
 
2963
2963
  }).call(this,require('_process'))
2964
- },{"../runner":34,"../utils":38,"./base":17,"_process":69}],20:[function(require,module,exports){
2964
+ },{"../runner":34,"../utils":38,"./base":17,"_process":68}],20:[function(require,module,exports){
2965
2965
  (function (global){
2966
2966
  'use strict';
2967
2967
 
@@ -3470,7 +3470,7 @@ function clean(test) {
3470
3470
  JSONStream.description = 'newline delimited JSON events';
3471
3471
 
3472
3472
  }).call(this,require('_process'))
3473
- },{"../runner":34,"./base":17,"_process":69}],23:[function(require,module,exports){
3473
+ },{"../runner":34,"./base":17,"_process":68}],23:[function(require,module,exports){
3474
3474
  (function (process){
3475
3475
  'use strict';
3476
3476
  /**
@@ -3609,7 +3609,7 @@ function errorJSON(err) {
3609
3609
  JSONReporter.description = 'single JSON object';
3610
3610
 
3611
3611
  }).call(this,require('_process'))
3612
- },{"../runner":34,"./base":17,"_process":69}],24:[function(require,module,exports){
3612
+ },{"../runner":34,"./base":17,"_process":68}],24:[function(require,module,exports){
3613
3613
  (function (process){
3614
3614
  'use strict';
3615
3615
  /**
@@ -3721,7 +3721,7 @@ inherits(Landing, Base);
3721
3721
  Landing.description = 'Unicode landing strip';
3722
3722
 
3723
3723
  }).call(this,require('_process'))
3724
- },{"../runnable":33,"../runner":34,"../utils":38,"./base":17,"_process":69}],25:[function(require,module,exports){
3724
+ },{"../runnable":33,"../runner":34,"../utils":38,"./base":17,"_process":68}],25:[function(require,module,exports){
3725
3725
  (function (process){
3726
3726
  'use strict';
3727
3727
  /**
@@ -3803,7 +3803,7 @@ inherits(List, Base);
3803
3803
  List.description = 'like "spec" reporter but flat';
3804
3804
 
3805
3805
  }).call(this,require('_process'))
3806
- },{"../runner":34,"../utils":38,"./base":17,"_process":69}],26:[function(require,module,exports){
3806
+ },{"../runner":34,"../utils":38,"./base":17,"_process":68}],26:[function(require,module,exports){
3807
3807
  (function (process){
3808
3808
  'use strict';
3809
3809
  /**
@@ -3919,7 +3919,7 @@ function Markdown(runner, options) {
3919
3919
  Markdown.description = 'GitHub Flavored Markdown';
3920
3920
 
3921
3921
  }).call(this,require('_process'))
3922
- },{"../runner":34,"../utils":38,"./base":17,"_process":69}],27:[function(require,module,exports){
3922
+ },{"../runner":34,"../utils":38,"./base":17,"_process":68}],27:[function(require,module,exports){
3923
3923
  (function (process){
3924
3924
  'use strict';
3925
3925
  /**
@@ -3975,7 +3975,7 @@ inherits(Min, Base);
3975
3975
  Min.description = 'essentially just a summary';
3976
3976
 
3977
3977
  }).call(this,require('_process'))
3978
- },{"../runner":34,"../utils":38,"./base":17,"_process":69}],28:[function(require,module,exports){
3978
+ },{"../runner":34,"../utils":38,"./base":17,"_process":68}],28:[function(require,module,exports){
3979
3979
  (function (process){
3980
3980
  'use strict';
3981
3981
  /**
@@ -4255,7 +4255,7 @@ function write(string) {
4255
4255
  NyanCat.description = '"nyan cat"';
4256
4256
 
4257
4257
  }).call(this,require('_process'))
4258
- },{"../runner":34,"../utils":38,"./base":17,"_process":69}],29:[function(require,module,exports){
4258
+ },{"../runner":34,"../utils":38,"./base":17,"_process":68}],29:[function(require,module,exports){
4259
4259
  (function (process){
4260
4260
  'use strict';
4261
4261
  /**
@@ -4363,7 +4363,7 @@ inherits(Progress, Base);
4363
4363
  Progress.description = 'a progress bar';
4364
4364
 
4365
4365
  }).call(this,require('_process'))
4366
- },{"../runner":34,"../utils":38,"./base":17,"_process":69}],30:[function(require,module,exports){
4366
+ },{"../runner":34,"../utils":38,"./base":17,"_process":68}],30:[function(require,module,exports){
4367
4367
  'use strict';
4368
4368
  /**
4369
4369
  * @module Spec
@@ -4762,7 +4762,7 @@ inherits(TAP13Producer, TAPProducer);
4762
4762
  TAP.description = 'TAP-compatible output';
4763
4763
 
4764
4764
  }).call(this,require('_process'))
4765
- },{"../runner":34,"../utils":38,"./base":17,"_process":69,"util":89}],32:[function(require,module,exports){
4765
+ },{"../runner":34,"../utils":38,"./base":17,"_process":68,"util":90}],32:[function(require,module,exports){
4766
4766
  (function (process,global){
4767
4767
  'use strict';
4768
4768
  /**
@@ -4982,7 +4982,7 @@ function tag(name, attrs, close, content) {
4982
4982
  XUnit.description = 'XUnit-compatible XML output';
4983
4983
 
4984
4984
  }).call(this,require('_process'),typeof global !== "undefined" ? global : typeof self !== "undefined" ? self : typeof window !== "undefined" ? window : {})
4985
- },{"../errors":6,"../runnable":33,"../runner":34,"../utils":38,"./base":17,"_process":69,"fs":42,"mkdirp":59,"path":42}],33:[function(require,module,exports){
4985
+ },{"../errors":6,"../runnable":33,"../runner":34,"../utils":38,"./base":17,"_process":68,"fs":42,"mkdirp":58,"path":42}],33:[function(require,module,exports){
4986
4986
  (function (global){
4987
4987
  'use strict';
4988
4988
 
@@ -5482,7 +5482,7 @@ Runnable.toValueOrError = function(value) {
5482
5482
  Runnable.constants = constants;
5483
5483
 
5484
5484
  }).call(this,typeof global !== "undefined" ? global : typeof self !== "undefined" ? self : typeof window !== "undefined" ? window : {})
5485
- },{"./errors":6,"./pending":16,"./utils":38,"debug":45,"events":50,"ms":60}],34:[function(require,module,exports){
5485
+ },{"./errors":6,"./pending":16,"./utils":38,"debug":45,"events":50,"ms":59}],34:[function(require,module,exports){
5486
5486
  (function (process,global){
5487
5487
  'use strict';
5488
5488
 
@@ -6511,7 +6511,7 @@ Runner.constants = constants;
6511
6511
  */
6512
6512
 
6513
6513
  }).call(this,require('_process'),typeof global !== "undefined" ? global : typeof self !== "undefined" ? self : typeof window !== "undefined" ? window : {})
6514
- },{"./errors":6,"./pending":16,"./runnable":33,"./suite":36,"./utils":38,"_process":69,"debug":45,"events":50,"util":89}],35:[function(require,module,exports){
6514
+ },{"./errors":6,"./pending":16,"./runnable":33,"./suite":36,"./utils":38,"_process":68,"debug":45,"events":50,"util":90}],35:[function(require,module,exports){
6515
6515
  (function (global){
6516
6516
  'use strict';
6517
6517
 
@@ -7242,7 +7242,7 @@ var deprecatedEvents = Object.keys(constants)
7242
7242
 
7243
7243
  Suite.constants = constants;
7244
7244
 
7245
- },{"./errors":6,"./hook":7,"./utils":38,"debug":45,"events":50,"ms":60}],37:[function(require,module,exports){
7245
+ },{"./errors":6,"./hook":7,"./utils":38,"debug":45,"events":50,"ms":59}],37:[function(require,module,exports){
7246
7246
  'use strict';
7247
7247
  var Runnable = require('./runnable');
7248
7248
  var utils = require('./utils');
@@ -8206,7 +8206,7 @@ exports.defineConstants = function(obj) {
8206
8206
  };
8207
8207
 
8208
8208
  }).call(this,require('_process'),require("buffer").Buffer)
8209
- },{"./errors":6,"_process":69,"buffer":43,"debug":45,"fs":42,"glob":42,"he":54,"object.assign":65,"path":42,"util":89}],39:[function(require,module,exports){
8209
+ },{"./errors":6,"_process":68,"buffer":43,"debug":45,"fs":42,"glob":42,"he":54,"object.assign":64,"path":42,"util":90}],39:[function(require,module,exports){
8210
8210
  'use strict'
8211
8211
 
8212
8212
  exports.byteLength = byteLength
@@ -8274,7 +8274,8 @@ function toByteArray (b64) {
8274
8274
  ? validLen - 4
8275
8275
  : validLen
8276
8276
 
8277
- for (var i = 0; i < len; i += 4) {
8277
+ var i
8278
+ for (i = 0; i < len; i += 4) {
8278
8279
  tmp =
8279
8280
  (revLookup[b64.charCodeAt(i)] << 18) |
8280
8281
  (revLookup[b64.charCodeAt(i + 1)] << 12) |
@@ -8390,7 +8391,7 @@ BrowserStdout.prototype._write = function(chunks, encoding, cb) {
8390
8391
  }
8391
8392
 
8392
8393
  }).call(this,require('_process'))
8393
- },{"_process":69,"stream":84,"util":89}],42:[function(require,module,exports){
8394
+ },{"_process":68,"stream":84,"util":90}],42:[function(require,module,exports){
8394
8395
  arguments[4][40][0].apply(exports,arguments)
8395
8396
  },{"dup":40}],43:[function(require,module,exports){
8396
8397
  (function (Buffer){
@@ -8406,6 +8407,10 @@ arguments[4][40][0].apply(exports,arguments)
8406
8407
 
8407
8408
  var base64 = require('base64-js')
8408
8409
  var ieee754 = require('ieee754')
8410
+ var customInspectSymbol =
8411
+ (typeof Symbol === 'function' && typeof Symbol.for === 'function')
8412
+ ? Symbol.for('nodejs.util.inspect.custom')
8413
+ : null
8409
8414
 
8410
8415
  exports.Buffer = Buffer
8411
8416
  exports.SlowBuffer = SlowBuffer
@@ -8442,7 +8447,9 @@ function typedArraySupport () {
8442
8447
  // Can typed array instances can be augmented?
8443
8448
  try {
8444
8449
  var arr = new Uint8Array(1)
8445
- arr.__proto__ = { __proto__: Uint8Array.prototype, foo: function () { return 42 } }
8450
+ var proto = { foo: function () { return 42 } }
8451
+ Object.setPrototypeOf(proto, Uint8Array.prototype)
8452
+ Object.setPrototypeOf(arr, proto)
8446
8453
  return arr.foo() === 42
8447
8454
  } catch (e) {
8448
8455
  return false
@@ -8471,7 +8478,7 @@ function createBuffer (length) {
8471
8478
  }
8472
8479
  // Return an augmented `Uint8Array` instance
8473
8480
  var buf = new Uint8Array(length)
8474
- buf.__proto__ = Buffer.prototype
8481
+ Object.setPrototypeOf(buf, Buffer.prototype)
8475
8482
  return buf
8476
8483
  }
8477
8484
 
@@ -8521,7 +8528,7 @@ function from (value, encodingOrOffset, length) {
8521
8528
  }
8522
8529
 
8523
8530
  if (value == null) {
8524
- throw TypeError(
8531
+ throw new TypeError(
8525
8532
  'The first argument must be one of type string, Buffer, ArrayBuffer, Array, ' +
8526
8533
  'or Array-like Object. Received type ' + (typeof value)
8527
8534
  )
@@ -8532,6 +8539,12 @@ function from (value, encodingOrOffset, length) {
8532
8539
  return fromArrayBuffer(value, encodingOrOffset, length)
8533
8540
  }
8534
8541
 
8542
+ if (typeof SharedArrayBuffer !== 'undefined' &&
8543
+ (isInstance(value, SharedArrayBuffer) ||
8544
+ (value && isInstance(value.buffer, SharedArrayBuffer)))) {
8545
+ return fromArrayBuffer(value, encodingOrOffset, length)
8546
+ }
8547
+
8535
8548
  if (typeof value === 'number') {
8536
8549
  throw new TypeError(
8537
8550
  'The "value" argument must not be of type number. Received type number'
@@ -8573,8 +8586,8 @@ Buffer.from = function (value, encodingOrOffset, length) {
8573
8586
 
8574
8587
  // Note: Change prototype *after* Buffer.from is defined to workaround Chrome bug:
8575
8588
  // https://github.com/feross/buffer/pull/148
8576
- Buffer.prototype.__proto__ = Uint8Array.prototype
8577
- Buffer.__proto__ = Uint8Array
8589
+ Object.setPrototypeOf(Buffer.prototype, Uint8Array.prototype)
8590
+ Object.setPrototypeOf(Buffer, Uint8Array)
8578
8591
 
8579
8592
  function assertSize (size) {
8580
8593
  if (typeof size !== 'number') {
@@ -8678,7 +8691,8 @@ function fromArrayBuffer (array, byteOffset, length) {
8678
8691
  }
8679
8692
 
8680
8693
  // Return an augmented `Uint8Array` instance
8681
- buf.__proto__ = Buffer.prototype
8694
+ Object.setPrototypeOf(buf, Buffer.prototype)
8695
+
8682
8696
  return buf
8683
8697
  }
8684
8698
 
@@ -9000,6 +9014,9 @@ Buffer.prototype.inspect = function inspect () {
9000
9014
  if (this.length > max) str += ' ... '
9001
9015
  return '<Buffer ' + str + '>'
9002
9016
  }
9017
+ if (customInspectSymbol) {
9018
+ Buffer.prototype[customInspectSymbol] = Buffer.prototype.inspect
9019
+ }
9003
9020
 
9004
9021
  Buffer.prototype.compare = function compare (target, start, end, thisStart, thisEnd) {
9005
9022
  if (isInstance(target, Uint8Array)) {
@@ -9125,7 +9142,7 @@ function bidirectionalIndexOf (buffer, val, byteOffset, encoding, dir) {
9125
9142
  return Uint8Array.prototype.lastIndexOf.call(buffer, val, byteOffset)
9126
9143
  }
9127
9144
  }
9128
- return arrayIndexOf(buffer, [ val ], byteOffset, encoding, dir)
9145
+ return arrayIndexOf(buffer, [val], byteOffset, encoding, dir)
9129
9146
  }
9130
9147
 
9131
9148
  throw new TypeError('val must be string, number or Buffer')
@@ -9454,7 +9471,7 @@ function hexSlice (buf, start, end) {
9454
9471
 
9455
9472
  var out = ''
9456
9473
  for (var i = start; i < end; ++i) {
9457
- out += toHex(buf[i])
9474
+ out += hexSliceLookupTable[buf[i]]
9458
9475
  }
9459
9476
  return out
9460
9477
  }
@@ -9491,7 +9508,8 @@ Buffer.prototype.slice = function slice (start, end) {
9491
9508
 
9492
9509
  var newBuf = this.subarray(start, end)
9493
9510
  // Return an augmented `Uint8Array` instance
9494
- newBuf.__proto__ = Buffer.prototype
9511
+ Object.setPrototypeOf(newBuf, Buffer.prototype)
9512
+
9495
9513
  return newBuf
9496
9514
  }
9497
9515
 
@@ -9980,6 +9998,8 @@ Buffer.prototype.fill = function fill (val, start, end, encoding) {
9980
9998
  }
9981
9999
  } else if (typeof val === 'number') {
9982
10000
  val = val & 255
10001
+ } else if (typeof val === 'boolean') {
10002
+ val = Number(val)
9983
10003
  }
9984
10004
 
9985
10005
  // Invalid ranges are not set to a default, so can range check early.
@@ -10037,11 +10057,6 @@ function base64clean (str) {
10037
10057
  return str
10038
10058
  }
10039
10059
 
10040
- function toHex (n) {
10041
- if (n < 16) return '0' + n.toString(16)
10042
- return n.toString(16)
10043
- }
10044
-
10045
10060
  function utf8ToBytes (string, units) {
10046
10061
  units = units || Infinity
10047
10062
  var codePoint
@@ -10172,6 +10187,20 @@ function numberIsNaN (obj) {
10172
10187
  return obj !== obj // eslint-disable-line no-self-compare
10173
10188
  }
10174
10189
 
10190
+ // Create lookup table for `toString('hex')`
10191
+ // See: https://github.com/feross/buffer/issues/219
10192
+ var hexSliceLookupTable = (function () {
10193
+ var alphabet = '0123456789abcdef'
10194
+ var table = new Array(256)
10195
+ for (var i = 0; i < 16; ++i) {
10196
+ var i16 = i * 16
10197
+ for (var j = 0; j < 16; ++j) {
10198
+ table[i16 + j] = alphabet[i] + alphabet[j]
10199
+ }
10200
+ }
10201
+ return table
10202
+ })()
10203
+
10175
10204
  }).call(this,require("buffer").Buffer)
10176
10205
  },{"base64-js":39,"buffer":43,"ieee754":55}],44:[function(require,module,exports){
10177
10206
  (function (Buffer){
@@ -10468,7 +10497,7 @@ formatters.j = function (v) {
10468
10497
 
10469
10498
 
10470
10499
  }).call(this,require('_process'))
10471
- },{"./common":46,"_process":69}],46:[function(require,module,exports){
10500
+ },{"./common":46,"_process":68}],46:[function(require,module,exports){
10472
10501
  "use strict";
10473
10502
 
10474
10503
  /**
@@ -10719,7 +10748,7 @@ function setup(env) {
10719
10748
  module.exports = setup;
10720
10749
 
10721
10750
 
10722
- },{"ms":60}],47:[function(require,module,exports){
10751
+ },{"ms":59}],47:[function(require,module,exports){
10723
10752
  'use strict';
10724
10753
 
10725
10754
  var keys = require('object-keys');
@@ -10779,7 +10808,7 @@ defineProperties.supportsDescriptors = !!supportsDescriptors;
10779
10808
 
10780
10809
  module.exports = defineProperties;
10781
10810
 
10782
- },{"object-keys":62}],48:[function(require,module,exports){
10811
+ },{"object-keys":61}],48:[function(require,module,exports){
10783
10812
  /*!
10784
10813
 
10785
10814
  diff v3.5.0
@@ -13225,7 +13254,7 @@ module.exports = Function.prototype.bind || implementation;
13225
13254
  },{"./implementation":51}],53:[function(require,module,exports){
13226
13255
  'use strict';
13227
13256
 
13228
- /* eslint complexity: [2, 17], max-statements: [2, 33] */
13257
+ /* eslint complexity: [2, 18], max-statements: [2, 33] */
13229
13258
  module.exports = function hasSymbols() {
13230
13259
  if (typeof Symbol !== 'function' || typeof Object.getOwnPropertySymbols !== 'function') { return false; }
13231
13260
  if (typeof Symbol.iterator === 'symbol') { return true; }
@@ -13703,24 +13732,28 @@ exports.write = function (buffer, value, offset, isLE, mLen, nBytes) {
13703
13732
  if (typeof Object.create === 'function') {
13704
13733
  // implementation from standard node.js 'util' module
13705
13734
  module.exports = function inherits(ctor, superCtor) {
13706
- ctor.super_ = superCtor
13707
- ctor.prototype = Object.create(superCtor.prototype, {
13708
- constructor: {
13709
- value: ctor,
13710
- enumerable: false,
13711
- writable: true,
13712
- configurable: true
13713
- }
13714
- });
13735
+ if (superCtor) {
13736
+ ctor.super_ = superCtor
13737
+ ctor.prototype = Object.create(superCtor.prototype, {
13738
+ constructor: {
13739
+ value: ctor,
13740
+ enumerable: false,
13741
+ writable: true,
13742
+ configurable: true
13743
+ }
13744
+ })
13745
+ }
13715
13746
  };
13716
13747
  } else {
13717
13748
  // old school shim for old browsers
13718
13749
  module.exports = function inherits(ctor, superCtor) {
13719
- ctor.super_ = superCtor
13720
- var TempCtor = function () {}
13721
- TempCtor.prototype = superCtor.prototype
13722
- ctor.prototype = new TempCtor()
13723
- ctor.prototype.constructor = ctor
13750
+ if (superCtor) {
13751
+ ctor.super_ = superCtor
13752
+ var TempCtor = function () {}
13753
+ TempCtor.prototype = superCtor.prototype
13754
+ ctor.prototype = new TempCtor()
13755
+ ctor.prototype.constructor = ctor
13756
+ }
13724
13757
  }
13725
13758
  }
13726
13759
 
@@ -13732,29 +13765,12 @@ if (typeof Object.create === 'function') {
13732
13765
  * @license MIT
13733
13766
  */
13734
13767
 
13735
- // The _isBuffer check is for Safari 5-7 support, because it's missing
13736
- // Object.prototype.constructor. Remove this eventually
13737
- module.exports = function (obj) {
13738
- return obj != null && (isBuffer(obj) || isSlowBuffer(obj) || !!obj._isBuffer)
13739
- }
13740
-
13741
- function isBuffer (obj) {
13742
- return !!obj.constructor && typeof obj.constructor.isBuffer === 'function' && obj.constructor.isBuffer(obj)
13743
- }
13744
-
13745
- // For Node v0.10 support. Remove this eventually.
13746
- function isSlowBuffer (obj) {
13747
- return typeof obj.readFloatLE === 'function' && typeof obj.slice === 'function' && isBuffer(obj.slice(0, 0))
13768
+ module.exports = function isBuffer (obj) {
13769
+ return obj != null && obj.constructor != null &&
13770
+ typeof obj.constructor.isBuffer === 'function' && obj.constructor.isBuffer(obj)
13748
13771
  }
13749
13772
 
13750
13773
  },{}],58:[function(require,module,exports){
13751
- var toString = {}.toString;
13752
-
13753
- module.exports = Array.isArray || function (arr) {
13754
- return toString.call(arr) == '[object Array]';
13755
- };
13756
-
13757
- },{}],59:[function(require,module,exports){
13758
13774
  (function (process){
13759
13775
  var path = require('path');
13760
13776
  var fs = require('fs');
@@ -13789,6 +13805,7 @@ function mkdirP (p, opts, f, made) {
13789
13805
  }
13790
13806
  switch (er.code) {
13791
13807
  case 'ENOENT':
13808
+ if (path.dirname(p) === p) return cb(er);
13792
13809
  mkdirP(path.dirname(p), opts, function (er, made) {
13793
13810
  if (er) cb(er, made);
13794
13811
  else mkdirP(p, opts, cb, made);
@@ -13856,7 +13873,7 @@ mkdirP.sync = function sync (p, opts, made) {
13856
13873
  };
13857
13874
 
13858
13875
  }).call(this,require('_process'))
13859
- },{"_process":69,"fs":42,"path":42}],60:[function(require,module,exports){
13876
+ },{"_process":68,"fs":42,"path":42}],59:[function(require,module,exports){
13860
13877
  /**
13861
13878
  * Helpers.
13862
13879
  */
@@ -14020,7 +14037,7 @@ function plural(ms, msAbs, n, name) {
14020
14037
  return Math.round(ms / n) + ' ' + name + (isPlural ? 's' : '');
14021
14038
  }
14022
14039
 
14023
- },{}],61:[function(require,module,exports){
14040
+ },{}],60:[function(require,module,exports){
14024
14041
  'use strict';
14025
14042
 
14026
14043
  var keysShim;
@@ -14054,6 +14071,8 @@ if (!Object.keys) {
14054
14071
  $frames: true,
14055
14072
  $innerHeight: true,
14056
14073
  $innerWidth: true,
14074
+ $onmozfullscreenchange: true,
14075
+ $onmozfullscreenerror: true,
14057
14076
  $outerHeight: true,
14058
14077
  $outerWidth: true,
14059
14078
  $pageXOffset: true,
@@ -14142,7 +14161,7 @@ if (!Object.keys) {
14142
14161
  }
14143
14162
  module.exports = keysShim;
14144
14163
 
14145
- },{"./isArguments":63}],62:[function(require,module,exports){
14164
+ },{"./isArguments":62}],61:[function(require,module,exports){
14146
14165
  'use strict';
14147
14166
 
14148
14167
  var slice = Array.prototype.slice;
@@ -14176,7 +14195,7 @@ keysShim.shim = function shimObjectKeys() {
14176
14195
 
14177
14196
  module.exports = keysShim;
14178
14197
 
14179
- },{"./implementation":61,"./isArguments":63}],63:[function(require,module,exports){
14198
+ },{"./implementation":60,"./isArguments":62}],62:[function(require,module,exports){
14180
14199
  'use strict';
14181
14200
 
14182
14201
  var toStr = Object.prototype.toString;
@@ -14195,7 +14214,7 @@ module.exports = function isArguments(value) {
14195
14214
  return isArgs;
14196
14215
  };
14197
14216
 
14198
- },{}],64:[function(require,module,exports){
14217
+ },{}],63:[function(require,module,exports){
14199
14218
  'use strict';
14200
14219
 
14201
14220
  // modified from https://github.com/es-shims/es6-shim
@@ -14238,7 +14257,7 @@ module.exports = function assign(target, source1) {
14238
14257
  return objTarget;
14239
14258
  };
14240
14259
 
14241
- },{"function-bind":52,"has-symbols/shams":53,"object-keys":62}],65:[function(require,module,exports){
14260
+ },{"function-bind":52,"has-symbols/shams":53,"object-keys":61}],64:[function(require,module,exports){
14242
14261
  'use strict';
14243
14262
 
14244
14263
  var defineProperties = require('define-properties');
@@ -14257,7 +14276,7 @@ defineProperties(polyfill, {
14257
14276
 
14258
14277
  module.exports = polyfill;
14259
14278
 
14260
- },{"./implementation":64,"./polyfill":66,"./shim":67,"define-properties":47}],66:[function(require,module,exports){
14279
+ },{"./implementation":63,"./polyfill":65,"./shim":66,"define-properties":47}],65:[function(require,module,exports){
14261
14280
  'use strict';
14262
14281
 
14263
14282
  var implementation = require('./implementation');
@@ -14310,7 +14329,7 @@ module.exports = function getPolyfill() {
14310
14329
  return Object.assign;
14311
14330
  };
14312
14331
 
14313
- },{"./implementation":64}],67:[function(require,module,exports){
14332
+ },{"./implementation":63}],66:[function(require,module,exports){
14314
14333
  'use strict';
14315
14334
 
14316
14335
  var define = require('define-properties');
@@ -14326,11 +14345,12 @@ module.exports = function shimAssign() {
14326
14345
  return polyfill;
14327
14346
  };
14328
14347
 
14329
- },{"./polyfill":66,"define-properties":47}],68:[function(require,module,exports){
14348
+ },{"./polyfill":65,"define-properties":47}],67:[function(require,module,exports){
14330
14349
  (function (process){
14331
14350
  'use strict';
14332
14351
 
14333
- if (!process.version ||
14352
+ if (typeof process === 'undefined' ||
14353
+ !process.version ||
14334
14354
  process.version.indexOf('v0.') === 0 ||
14335
14355
  process.version.indexOf('v1.') === 0 && process.version.indexOf('v1.8.') !== 0) {
14336
14356
  module.exports = { nextTick: nextTick };
@@ -14374,7 +14394,7 @@ function nextTick(fn, arg1, arg2, arg3) {
14374
14394
 
14375
14395
 
14376
14396
  }).call(this,require('_process'))
14377
- },{"_process":69}],69:[function(require,module,exports){
14397
+ },{"_process":68}],68:[function(require,module,exports){
14378
14398
  // shim for using process in browser
14379
14399
  var process = module.exports = {};
14380
14400
 
@@ -14560,10 +14580,10 @@ process.chdir = function (dir) {
14560
14580
  };
14561
14581
  process.umask = function() { return 0; };
14562
14582
 
14563
- },{}],70:[function(require,module,exports){
14583
+ },{}],69:[function(require,module,exports){
14564
14584
  module.exports = require('./lib/_stream_duplex.js');
14565
14585
 
14566
- },{"./lib/_stream_duplex.js":71}],71:[function(require,module,exports){
14586
+ },{"./lib/_stream_duplex.js":70}],70:[function(require,module,exports){
14567
14587
  // Copyright Joyent, Inc. and other Node contributors.
14568
14588
  //
14569
14589
  // Permission is hereby granted, free of charge, to any person obtaining a
@@ -14609,7 +14629,7 @@ var objectKeys = Object.keys || function (obj) {
14609
14629
  module.exports = Duplex;
14610
14630
 
14611
14631
  /*<replacement>*/
14612
- var util = require('core-util-is');
14632
+ var util = Object.create(require('core-util-is'));
14613
14633
  util.inherits = require('inherits');
14614
14634
  /*</replacement>*/
14615
14635
 
@@ -14695,7 +14715,7 @@ Duplex.prototype._destroy = function (err, cb) {
14695
14715
 
14696
14716
  pna.nextTick(cb, err);
14697
14717
  };
14698
- },{"./_stream_readable":73,"./_stream_writable":75,"core-util-is":44,"inherits":56,"process-nextick-args":68}],72:[function(require,module,exports){
14718
+ },{"./_stream_readable":72,"./_stream_writable":74,"core-util-is":44,"inherits":56,"process-nextick-args":67}],71:[function(require,module,exports){
14699
14719
  // Copyright Joyent, Inc. and other Node contributors.
14700
14720
  //
14701
14721
  // Permission is hereby granted, free of charge, to any person obtaining a
@@ -14728,7 +14748,7 @@ module.exports = PassThrough;
14728
14748
  var Transform = require('./_stream_transform');
14729
14749
 
14730
14750
  /*<replacement>*/
14731
- var util = require('core-util-is');
14751
+ var util = Object.create(require('core-util-is'));
14732
14752
  util.inherits = require('inherits');
14733
14753
  /*</replacement>*/
14734
14754
 
@@ -14743,7 +14763,7 @@ function PassThrough(options) {
14743
14763
  PassThrough.prototype._transform = function (chunk, encoding, cb) {
14744
14764
  cb(null, chunk);
14745
14765
  };
14746
- },{"./_stream_transform":74,"core-util-is":44,"inherits":56}],73:[function(require,module,exports){
14766
+ },{"./_stream_transform":73,"core-util-is":44,"inherits":56}],72:[function(require,module,exports){
14747
14767
  (function (process,global){
14748
14768
  // Copyright Joyent, Inc. and other Node contributors.
14749
14769
  //
@@ -14811,7 +14831,7 @@ function _isUint8Array(obj) {
14811
14831
  /*</replacement>*/
14812
14832
 
14813
14833
  /*<replacement>*/
14814
- var util = require('core-util-is');
14834
+ var util = Object.create(require('core-util-is'));
14815
14835
  util.inherits = require('inherits');
14816
14836
  /*</replacement>*/
14817
14837
 
@@ -15765,7 +15785,7 @@ function indexOf(xs, x) {
15765
15785
  return -1;
15766
15786
  }
15767
15787
  }).call(this,require('_process'),typeof global !== "undefined" ? global : typeof self !== "undefined" ? self : typeof window !== "undefined" ? window : {})
15768
- },{"./_stream_duplex":71,"./internal/streams/BufferList":76,"./internal/streams/destroy":77,"./internal/streams/stream":78,"_process":69,"core-util-is":44,"events":50,"inherits":56,"isarray":58,"process-nextick-args":68,"safe-buffer":83,"string_decoder/":85,"util":40}],74:[function(require,module,exports){
15788
+ },{"./_stream_duplex":70,"./internal/streams/BufferList":75,"./internal/streams/destroy":76,"./internal/streams/stream":77,"_process":68,"core-util-is":44,"events":50,"inherits":56,"isarray":78,"process-nextick-args":67,"safe-buffer":83,"string_decoder/":85,"util":40}],73:[function(require,module,exports){
15769
15789
  // Copyright Joyent, Inc. and other Node contributors.
15770
15790
  //
15771
15791
  // Permission is hereby granted, free of charge, to any person obtaining a
@@ -15836,7 +15856,7 @@ module.exports = Transform;
15836
15856
  var Duplex = require('./_stream_duplex');
15837
15857
 
15838
15858
  /*<replacement>*/
15839
- var util = require('core-util-is');
15859
+ var util = Object.create(require('core-util-is'));
15840
15860
  util.inherits = require('inherits');
15841
15861
  /*</replacement>*/
15842
15862
 
@@ -15980,7 +16000,7 @@ function done(stream, er, data) {
15980
16000
 
15981
16001
  return stream.push(null);
15982
16002
  }
15983
- },{"./_stream_duplex":71,"core-util-is":44,"inherits":56}],75:[function(require,module,exports){
16003
+ },{"./_stream_duplex":70,"core-util-is":44,"inherits":56}],74:[function(require,module,exports){
15984
16004
  (function (process,global,setImmediate){
15985
16005
  // Copyright Joyent, Inc. and other Node contributors.
15986
16006
  //
@@ -16048,7 +16068,7 @@ var Duplex;
16048
16068
  Writable.WritableState = WritableState;
16049
16069
 
16050
16070
  /*<replacement>*/
16051
- var util = require('core-util-is');
16071
+ var util = Object.create(require('core-util-is'));
16052
16072
  util.inherits = require('inherits');
16053
16073
  /*</replacement>*/
16054
16074
 
@@ -16670,7 +16690,7 @@ Writable.prototype._destroy = function (err, cb) {
16670
16690
  cb(err);
16671
16691
  };
16672
16692
  }).call(this,require('_process'),typeof global !== "undefined" ? global : typeof self !== "undefined" ? self : typeof window !== "undefined" ? window : {},require("timers").setImmediate)
16673
- },{"./_stream_duplex":71,"./internal/streams/destroy":77,"./internal/streams/stream":78,"_process":69,"core-util-is":44,"inherits":56,"process-nextick-args":68,"safe-buffer":83,"timers":86,"util-deprecate":87}],76:[function(require,module,exports){
16693
+ },{"./_stream_duplex":70,"./internal/streams/destroy":76,"./internal/streams/stream":77,"_process":68,"core-util-is":44,"inherits":56,"process-nextick-args":67,"safe-buffer":83,"timers":86,"util-deprecate":87}],75:[function(require,module,exports){
16674
16694
  'use strict';
16675
16695
 
16676
16696
  function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
@@ -16750,7 +16770,7 @@ if (util && util.inspect && util.inspect.custom) {
16750
16770
  return this.constructor.name + ' ' + obj;
16751
16771
  };
16752
16772
  }
16753
- },{"safe-buffer":83,"util":40}],77:[function(require,module,exports){
16773
+ },{"safe-buffer":83,"util":40}],76:[function(require,module,exports){
16754
16774
  'use strict';
16755
16775
 
16756
16776
  /*<replacement>*/
@@ -16825,10 +16845,17 @@ module.exports = {
16825
16845
  destroy: destroy,
16826
16846
  undestroy: undestroy
16827
16847
  };
16828
- },{"process-nextick-args":68}],78:[function(require,module,exports){
16848
+ },{"process-nextick-args":67}],77:[function(require,module,exports){
16829
16849
  module.exports = require('events').EventEmitter;
16830
16850
 
16831
- },{"events":50}],79:[function(require,module,exports){
16851
+ },{"events":50}],78:[function(require,module,exports){
16852
+ var toString = {}.toString;
16853
+
16854
+ module.exports = Array.isArray || function (arr) {
16855
+ return toString.call(arr) == '[object Array]';
16856
+ };
16857
+
16858
+ },{}],79:[function(require,module,exports){
16832
16859
  module.exports = require('./readable').PassThrough
16833
16860
 
16834
16861
  },{"./readable":80}],80:[function(require,module,exports){
@@ -16840,13 +16867,13 @@ exports.Duplex = require('./lib/_stream_duplex.js');
16840
16867
  exports.Transform = require('./lib/_stream_transform.js');
16841
16868
  exports.PassThrough = require('./lib/_stream_passthrough.js');
16842
16869
 
16843
- },{"./lib/_stream_duplex.js":71,"./lib/_stream_passthrough.js":72,"./lib/_stream_readable.js":73,"./lib/_stream_transform.js":74,"./lib/_stream_writable.js":75}],81:[function(require,module,exports){
16870
+ },{"./lib/_stream_duplex.js":70,"./lib/_stream_passthrough.js":71,"./lib/_stream_readable.js":72,"./lib/_stream_transform.js":73,"./lib/_stream_writable.js":74}],81:[function(require,module,exports){
16844
16871
  module.exports = require('./readable').Transform
16845
16872
 
16846
16873
  },{"./readable":80}],82:[function(require,module,exports){
16847
16874
  module.exports = require('./lib/_stream_writable.js');
16848
16875
 
16849
- },{"./lib/_stream_writable.js":75}],83:[function(require,module,exports){
16876
+ },{"./lib/_stream_writable.js":74}],83:[function(require,module,exports){
16850
16877
  /* eslint-disable node/no-deprecated-api */
16851
16878
  var buffer = require('buffer')
16852
16879
  var Buffer = buffer.Buffer
@@ -17039,7 +17066,7 @@ Stream.prototype.pipe = function(dest, options) {
17039
17066
  return dest;
17040
17067
  };
17041
17068
 
17042
- },{"events":50,"inherits":56,"readable-stream/duplex.js":70,"readable-stream/passthrough.js":79,"readable-stream/readable.js":80,"readable-stream/transform.js":81,"readable-stream/writable.js":82}],85:[function(require,module,exports){
17069
+ },{"events":50,"inherits":56,"readable-stream/duplex.js":69,"readable-stream/passthrough.js":79,"readable-stream/readable.js":80,"readable-stream/transform.js":81,"readable-stream/writable.js":82}],85:[function(require,module,exports){
17043
17070
  // Copyright Joyent, Inc. and other Node contributors.
17044
17071
  //
17045
17072
  // Permission is hereby granted, free of charge, to any person obtaining a
@@ -17415,7 +17442,7 @@ exports.clearImmediate = typeof clearImmediate === "function" ? clearImmediate :
17415
17442
  delete immediateIds[id];
17416
17443
  };
17417
17444
  }).call(this,require("timers").setImmediate,require("timers").clearImmediate)
17418
- },{"process/browser.js":69,"timers":86}],87:[function(require,module,exports){
17445
+ },{"process/browser.js":68,"timers":86}],87:[function(require,module,exports){
17419
17446
  (function (global){
17420
17447
 
17421
17448
  /**
@@ -17487,13 +17514,38 @@ function config (name) {
17487
17514
 
17488
17515
  }).call(this,typeof global !== "undefined" ? global : typeof self !== "undefined" ? self : typeof window !== "undefined" ? window : {})
17489
17516
  },{}],88:[function(require,module,exports){
17517
+ if (typeof Object.create === 'function') {
17518
+ // implementation from standard node.js 'util' module
17519
+ module.exports = function inherits(ctor, superCtor) {
17520
+ ctor.super_ = superCtor
17521
+ ctor.prototype = Object.create(superCtor.prototype, {
17522
+ constructor: {
17523
+ value: ctor,
17524
+ enumerable: false,
17525
+ writable: true,
17526
+ configurable: true
17527
+ }
17528
+ });
17529
+ };
17530
+ } else {
17531
+ // old school shim for old browsers
17532
+ module.exports = function inherits(ctor, superCtor) {
17533
+ ctor.super_ = superCtor
17534
+ var TempCtor = function () {}
17535
+ TempCtor.prototype = superCtor.prototype
17536
+ ctor.prototype = new TempCtor()
17537
+ ctor.prototype.constructor = ctor
17538
+ }
17539
+ }
17540
+
17541
+ },{}],89:[function(require,module,exports){
17490
17542
  module.exports = function isBuffer(arg) {
17491
17543
  return arg && typeof arg === 'object'
17492
17544
  && typeof arg.copy === 'function'
17493
17545
  && typeof arg.fill === 'function'
17494
17546
  && typeof arg.readUInt8 === 'function';
17495
17547
  }
17496
- },{}],89:[function(require,module,exports){
17548
+ },{}],90:[function(require,module,exports){
17497
17549
  (function (process,global){
17498
17550
  // Copyright Joyent, Inc. and other Node contributors.
17499
17551
  //
@@ -18083,10 +18135,10 @@ function hasOwnProperty(obj, prop) {
18083
18135
  }
18084
18136
 
18085
18137
  }).call(this,require('_process'),typeof global !== "undefined" ? global : typeof self !== "undefined" ? self : typeof window !== "undefined" ? window : {})
18086
- },{"./support/isBuffer":88,"_process":69,"inherits":56}],90:[function(require,module,exports){
18138
+ },{"./support/isBuffer":89,"_process":68,"inherits":88}],91:[function(require,module,exports){
18087
18139
  module.exports={
18088
18140
  "name": "mocha",
18089
- "version": "6.2.2",
18141
+ "version": "6.2.3",
18090
18142
  "homepage": "https://mochajs.org/",
18091
18143
  "notifyLogo": "https://ibin.co/4QuRuGjXvl36.png"
18092
18144
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "mocha",
3
- "version": "6.2.2",
3
+ "version": "6.2.3",
4
4
  "description": "simple, flexible, fun test framework",
5
5
  "keywords": [
6
6
  "mocha",
@@ -530,7 +530,7 @@
530
530
  "js-yaml": "3.13.1",
531
531
  "log-symbols": "2.2.0",
532
532
  "minimatch": "3.0.4",
533
- "mkdirp": "0.5.1",
533
+ "mkdirp": "0.5.4",
534
534
  "ms": "2.1.1",
535
535
  "node-environment-flags": "1.0.5",
536
536
  "object.assign": "4.1.0",
@@ -538,8 +538,8 @@
538
538
  "supports-color": "6.0.0",
539
539
  "which": "1.3.1",
540
540
  "wide-align": "1.1.3",
541
- "yargs": "13.3.0",
542
- "yargs-parser": "13.1.1",
541
+ "yargs": "13.3.2",
542
+ "yargs-parser": "13.1.2",
543
543
  "yargs-unparser": "1.6.0"
544
544
  },
545
545
  "devDependencies": {