importmap_mocha-rails 0.3.2 → 0.3.3

Sign up to get free protection for your applications and to get access to all the features.
@@ -1,4 +1,4 @@
1
- // mocha@10.2.0 in javascript ES2018
1
+ // mocha@10.3.0 in javascript ES2018
2
2
  (function (global, factory) {
3
3
  typeof exports === 'object' && typeof module !== 'undefined' ? module.exports = factory() :
4
4
  typeof define === 'function' && define.amd ? define(factory) :
@@ -972,6 +972,11 @@
972
972
  ? global$2.TYPED_ARRAY_SUPPORT
973
973
  : true;
974
974
 
975
+ /*
976
+ * Export kMaxLength after typed array support is determined.
977
+ */
978
+ kMaxLength$1();
979
+
975
980
  function kMaxLength$1 () {
976
981
  return Buffer$1.TYPED_ARRAY_SUPPORT
977
982
  ? 0x7fffffff
@@ -8722,6 +8727,11 @@
8722
8727
  ? global$1.TYPED_ARRAY_SUPPORT
8723
8728
  : true;
8724
8729
 
8730
+ /*
8731
+ * Export kMaxLength after typed array support is determined.
8732
+ */
8733
+ kMaxLength();
8734
+
8725
8735
  function kMaxLength () {
8726
8736
  return Buffer.TYPED_ARRAY_SUPPORT
8727
8737
  ? 0x7fffffff
@@ -8813,6 +8823,8 @@
8813
8823
  if (Buffer.TYPED_ARRAY_SUPPORT) {
8814
8824
  Buffer.prototype.__proto__ = Uint8Array.prototype;
8815
8825
  Buffer.__proto__ = Uint8Array;
8826
+ if (typeof Symbol !== 'undefined' && Symbol.species &&
8827
+ Buffer[Symbol.species] === Buffer) ;
8816
8828
  }
8817
8829
 
8818
8830
  function assertSize (size) {
@@ -10456,28 +10468,6 @@
10456
10468
 
10457
10469
  var utils$3 = {};
10458
10470
 
10459
- let urlAlphabet =
10460
- 'useandom-26T198340PX75pxJACKVERYMINDBUSHWOLF_GQZbfghjklqvwyzrict';
10461
- let customAlphabet = (alphabet, defaultSize = 21) => {
10462
- return (size = defaultSize) => {
10463
- let id = '';
10464
- let i = size;
10465
- while (i--) {
10466
- id += alphabet[(Math.random() * alphabet.length) | 0];
10467
- }
10468
- return id
10469
- }
10470
- };
10471
- let nanoid = (size = 21) => {
10472
- let id = '';
10473
- let i = size;
10474
- while (i--) {
10475
- id += urlAlphabet[(Math.random() * 64) | 0];
10476
- }
10477
- return id
10478
- };
10479
- var nonSecure = { nanoid, customAlphabet };
10480
-
10481
10471
  var he = {exports: {}};
10482
10472
 
10483
10473
  /*! https://mths.be/he v1.2.0 by @mathias | MIT license */
@@ -10831,8 +10821,6 @@
10831
10821
  /**
10832
10822
  * Module dependencies.
10833
10823
  */
10834
-
10835
- const {nanoid} = nonSecure;
10836
10824
  var path = require$$1;
10837
10825
  var util = require$$0$1;
10838
10826
  var he$1 = he.exports;
@@ -11438,11 +11426,22 @@
11438
11426
  MOCHA_ID_PROP_NAME
11439
11427
  });
11440
11428
 
11429
+ const uniqueIDBase =
11430
+ 'abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789-_';
11431
+
11441
11432
  /**
11442
11433
  * Creates a new unique identifier
11434
+ * Does not create cryptographically safe ids.
11435
+ * Trivial copy of nanoid/non-secure
11443
11436
  * @returns {string} Unique identifier
11444
11437
  */
11445
- exports.uniqueID = () => nanoid();
11438
+ exports.uniqueID = () => {
11439
+ let id = '';
11440
+ for (let i = 0; i < 21; i++) {
11441
+ id += uniqueIDBase[(Math.random() * 64) | 0];
11442
+ }
11443
+ return id;
11444
+ };
11446
11445
 
11447
11446
  exports.assignNewMochaID = obj => {
11448
11447
  const id = exports.uniqueID();
@@ -12969,7 +12968,7 @@
12969
12968
  *
12970
12969
  * @memberof Mocha.Runnable
12971
12970
  * @public
12972
- * @return {string}
12971
+ * @return {string[]}
12973
12972
  */
12974
12973
  Runnable$3.prototype.titlePath = function () {
12975
12974
  return this.parent.titlePath().concat([this.title]);
@@ -13712,7 +13711,7 @@
13712
13711
  *
13713
13712
  * @memberof Suite
13714
13713
  * @public
13715
- * @return {string}
13714
+ * @return {string[]}
13716
13715
  */
13717
13716
  Suite.prototype.titlePath = function () {
13718
13717
  var result = [];
@@ -17296,7 +17295,7 @@
17296
17295
  runner.once(EVENT_RUN_END, function () {
17297
17296
  Base.cursor.show();
17298
17297
  for (var i = 0; i < self.numberOfLines; i++) {
17299
- write('\n');
17298
+ process.stdout.write('\n');
17300
17299
  }
17301
17300
  self.epilogue();
17302
17301
  });
@@ -17332,15 +17331,15 @@
17332
17331
  var stats = this.stats;
17333
17332
 
17334
17333
  function draw(type, n) {
17335
- write(' ');
17336
- write(Base.color(type, n));
17337
- write('\n');
17334
+ process.stdout.write(' ');
17335
+ process.stdout.write(Base.color(type, n));
17336
+ process.stdout.write('\n');
17338
17337
  }
17339
17338
 
17340
17339
  draw('green', stats.passes);
17341
17340
  draw('fail', stats.failures);
17342
17341
  draw('pending', stats.pending);
17343
- write('\n');
17342
+ process.stdout.write('\n');
17344
17343
 
17345
17344
  this.cursorUp(this.numberOfLines);
17346
17345
  };
@@ -17374,9 +17373,9 @@
17374
17373
  var self = this;
17375
17374
 
17376
17375
  this.trajectories.forEach(function (line) {
17377
- write('\u001b[' + self.scoreboardWidth + 'C');
17378
- write(line.join(''));
17379
- write('\n');
17376
+ process.stdout.write('\u001b[' + self.scoreboardWidth + 'C');
17377
+ process.stdout.write(line.join(''));
17378
+ process.stdout.write('\n');
17380
17379
  });
17381
17380
 
17382
17381
  this.cursorUp(this.numberOfLines);
@@ -17393,25 +17392,25 @@
17393
17392
  var dist = '\u001b[' + startWidth + 'C';
17394
17393
  var padding = '';
17395
17394
 
17396
- write(dist);
17397
- write('_,------,');
17398
- write('\n');
17395
+ process.stdout.write(dist);
17396
+ process.stdout.write('_,------,');
17397
+ process.stdout.write('\n');
17399
17398
 
17400
- write(dist);
17399
+ process.stdout.write(dist);
17401
17400
  padding = self.tick ? ' ' : ' ';
17402
- write('_|' + padding + '/\\_/\\ ');
17403
- write('\n');
17401
+ process.stdout.write('_|' + padding + '/\\_/\\ ');
17402
+ process.stdout.write('\n');
17404
17403
 
17405
- write(dist);
17404
+ process.stdout.write(dist);
17406
17405
  padding = self.tick ? '_' : '__';
17407
17406
  var tail = self.tick ? '~' : '^';
17408
- write(tail + '|' + padding + this.face() + ' ');
17409
- write('\n');
17407
+ process.stdout.write(tail + '|' + padding + this.face() + ' ');
17408
+ process.stdout.write('\n');
17410
17409
 
17411
- write(dist);
17410
+ process.stdout.write(dist);
17412
17411
  padding = self.tick ? ' ' : ' ';
17413
- write(padding + '"" "" ');
17414
- write('\n');
17412
+ process.stdout.write(padding + '"" "" ');
17413
+ process.stdout.write('\n');
17415
17414
 
17416
17415
  this.cursorUp(this.numberOfLines);
17417
17416
  };
@@ -17443,7 +17442,7 @@
17443
17442
  */
17444
17443
 
17445
17444
  NyanCat.prototype.cursorUp = function (n) {
17446
- write('\u001b[' + n + 'A');
17445
+ process.stdout.write('\u001b[' + n + 'A');
17447
17446
  };
17448
17447
 
17449
17448
  /**
@@ -17454,7 +17453,7 @@
17454
17453
  */
17455
17454
 
17456
17455
  NyanCat.prototype.cursorDown = function (n) {
17457
- write('\u001b[' + n + 'B');
17456
+ process.stdout.write('\u001b[' + n + 'B');
17458
17457
  };
17459
17458
 
17460
17459
  /**
@@ -17494,15 +17493,6 @@
17494
17493
  return '\u001b[38;5;' + color + 'm' + str + '\u001b[0m';
17495
17494
  };
17496
17495
 
17497
- /**
17498
- * Stdout helper.
17499
- *
17500
- * @param {string} string A message to write to stdout.
17501
- */
17502
- function write(string) {
17503
- process.stdout.write(string);
17504
- }
17505
-
17506
17496
  NyanCat.description = '"nyan cat"';
17507
17497
  }(nyan));
17508
17498
 
@@ -19076,7 +19066,7 @@
19076
19066
  };
19077
19067
 
19078
19068
  var name = "mocha";
19079
- var version = "10.2.0";
19069
+ var version = "10.3.0";
19080
19070
  var homepage = "https://mochajs.org/";
19081
19071
  var notifyLogo = "https://ibin.co/4QuRuGjXvl36.png";
19082
19072
  var require$$17 = {
@@ -20632,4 +20622,3 @@
20632
20622
  return browserEntry;
20633
20623
 
20634
20624
  }));
20635
- //# sourceMappingURL=mocha.js.map
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: importmap_mocha-rails
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.3.2
4
+ version: 0.3.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - Takashi Kato
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2024-01-17 00:00:00.000000000 Z
11
+ date: 2024-02-19 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rails
@@ -65,7 +65,6 @@ files:
65
65
  - vendor/javascripts/chai.js
66
66
  - vendor/javascripts/is-node-process.js
67
67
  - vendor/javascripts/mocha.js
68
- - vendor/javascripts/mocha.js.map
69
68
  - vendor/javascripts/outvariant.js
70
69
  - vendor/javascripts/strict-event-emitter.js
71
70
  - vendor/stylesheets/mocha.css