mocha-compat 3.6.4 → 10.8.2

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 (92) hide show
  1. package/LICENSE +1 -1
  2. package/README.md +61 -110
  3. package/bin/_mocha +10 -0
  4. package/bin/mocha.js +142 -0
  5. package/browser-entry.js +61 -22
  6. package/lib/browser/highlight-tags.js +39 -0
  7. package/lib/browser/parse-query.js +24 -0
  8. package/lib/{template.html → browser/template.html} +7 -5
  9. package/lib/cli/cli.js +89 -0
  10. package/lib/cli/collect-files.js +137 -0
  11. package/lib/cli/commands.js +14 -0
  12. package/lib/cli/config.js +100 -0
  13. package/lib/cli/index.js +3 -0
  14. package/lib/cli/init.js +36 -0
  15. package/lib/cli/lookup-files.js +150 -0
  16. package/lib/cli/node-flags.js +85 -0
  17. package/lib/cli/one-and-dones.js +69 -0
  18. package/lib/cli/options.js +284 -0
  19. package/lib/cli/run-helpers.js +304 -0
  20. package/lib/cli/run-option-metadata.js +116 -0
  21. package/lib/cli/run.js +380 -0
  22. package/lib/cli/watch-run.js +377 -0
  23. package/lib/context.js +16 -42
  24. package/lib/errors.js +563 -0
  25. package/lib/hook.js +50 -9
  26. package/lib/interfaces/bdd.js +28 -29
  27. package/lib/interfaces/common.js +56 -21
  28. package/lib/interfaces/exports.js +4 -7
  29. package/lib/interfaces/qunit.js +10 -11
  30. package/lib/interfaces/tdd.js +15 -15
  31. package/lib/mocha.js +1073 -292
  32. package/lib/mocharc.json +10 -0
  33. package/lib/nodejs/buffered-worker-pool.js +188 -0
  34. package/lib/nodejs/esm-utils.js +106 -0
  35. package/lib/nodejs/file-unloader.js +15 -0
  36. package/lib/nodejs/parallel-buffered-runner.js +433 -0
  37. package/lib/nodejs/reporters/parallel-buffered.js +165 -0
  38. package/lib/nodejs/serializer.js +414 -0
  39. package/lib/nodejs/worker.js +151 -0
  40. package/lib/pending.js +3 -3
  41. package/lib/plugin-loader.js +286 -0
  42. package/lib/reporters/base.js +305 -205
  43. package/lib/reporters/doc.js +52 -21
  44. package/lib/reporters/dot.js +31 -18
  45. package/lib/reporters/html.js +153 -81
  46. package/lib/reporters/json-stream.js +53 -24
  47. package/lib/reporters/json.js +88 -18
  48. package/lib/reporters/landing.js +38 -16
  49. package/lib/reporters/list.js +34 -19
  50. package/lib/reporters/markdown.js +28 -15
  51. package/lib/reporters/min.js +22 -8
  52. package/lib/reporters/nyan.js +62 -58
  53. package/lib/reporters/progress.js +32 -19
  54. package/lib/reporters/spec.js +41 -23
  55. package/lib/reporters/tap.js +255 -32
  56. package/lib/reporters/xunit.js +89 -39
  57. package/lib/runnable.js +233 -148
  58. package/lib/runner.js +679 -380
  59. package/lib/stats-collector.js +83 -0
  60. package/lib/suite.js +376 -112
  61. package/lib/test.js +82 -21
  62. package/lib/utils.js +364 -477
  63. package/mocha.css +183 -54
  64. package/mocha.js +19840 -15846
  65. package/mocha.js.map +1 -0
  66. package/package.json +163 -336
  67. package/{lib/to-iso-string → vendor/serialize-javascript}/LICENSE +8 -6
  68. package/vendor/serialize-javascript/README.md +10 -0
  69. package/vendor/serialize-javascript/index.js +349 -0
  70. package/bin/_mocha-compat +0 -572
  71. package/bin/mocha-compat +0 -87
  72. package/bin/options.js +0 -41
  73. package/bower.json +0 -38
  74. package/images/error.png +0 -0
  75. package/images/ok.png +0 -0
  76. package/lib/browser/.eslintrc.yaml +0 -4
  77. package/lib/browser/debug.js +0 -7
  78. package/lib/browser/events.js +0 -195
  79. package/lib/browser/progress.js +0 -119
  80. package/lib/browser/tty.js +0 -13
  81. package/lib/ms.js +0 -130
  82. package/lib/to-iso-string/index.js +0 -37
  83. package/vendor/glob/LICENSE +0 -15
  84. package/vendor/glob/README.md +0 -399
  85. package/vendor/glob/common.js +0 -244
  86. package/vendor/glob/glob.js +0 -788
  87. package/vendor/glob/package.json +0 -55
  88. package/vendor/glob/sync.js +0 -486
  89. package/vendor/inflight/LICENSE +0 -15
  90. package/vendor/inflight/README.md +0 -37
  91. package/vendor/inflight/inflight.js +0 -54
  92. package/vendor/inflight/package.json +0 -29
package/package.json CHANGED
@@ -1,290 +1,24 @@
1
1
  {
2
2
  "name": "mocha-compat",
3
- "version": "3.6.4",
4
- "description": "This is a fork of mocha 3.5.3 to upgrade dependencies to retain support for Node >=0.8 and resolve npm audit issues. Replace mocha-compat wherever you use mocha so they can be used side by side",
3
+ "version": "10.8.2",
4
+ "type": "commonjs",
5
+ "description": "Fork of mocha 10.8.2 with serialize-javascript vendored so npm audit is clean on Node 12.17 through 26. Install as an alias next to mocha: \"mocha-compat-10\": \"npm:mocha-compat@^10\"",
5
6
  "keywords": [
6
7
  "mocha",
7
8
  "test",
8
9
  "bdd",
9
10
  "tdd",
10
- "tap"
11
+ "tap",
12
+ "testing",
13
+ "chai",
14
+ "assertion",
15
+ "ava",
16
+ "jest",
17
+ "tape",
18
+ "jasmine",
19
+ "karma"
11
20
  ],
12
21
  "author": "TJ Holowaychuk <tj@vision-media.ca>",
13
- "contributors": [
14
- "aaroncrows (https://github.com/aaroncrows)",
15
- "Aaron Hamid <aaron@incsw.com> (https://github.com/ahamid)",
16
- "Aaron Heckmann <aaron.heckmann+github@gmail.com> (https://github.com/aheckmann)",
17
- "Adam Crabtree (CrabDude's alias) (https://github.com/CrabBot)",
18
- "Adam Gruber (https://github.com/adamgruber)",
19
- "Adrian Ludwig (https://github.com/adrian-ludwig)",
20
- "Ainthe Kitchen <a.in.the.k@gmail.com> (https://github.com/ainthek)",
21
- "ajaykodali (https://github.com/ajaykodali)",
22
- "Alex Early (https://github.com/aearly)",
23
- "Alex Pham <thedark1337@thedark1337.com> (https://github.com/thedark1337)",
24
- "amsul (https://github.com/amsul)",
25
- "Andreas Brekken <andreas@brekken.com> (https://github.com/abrkn)",
26
- "Andreas Lind <andreas@one.com> (https://github.com/papandreou)",
27
- "Andrew Miller <vnikitin@live.com> (https://github.com/vnikiti)",
28
- "Andrew Nesbitt <andrewnez@gmail.com> (https://github.com/andrew)",
29
- "Andrey Popp <8mayday@gmail.com> (https://github.com/andreypopp)",
30
- "Andrii Shumada <eagleeyes91@gmail.com> (https://github.com/eagleeye)",
31
- "Anis Safine (https://github.com/anis)",
32
- "Arian Stolwijk <stolwijk.arian@gmail.com> (https://github.com/arian)",
33
- "Ariel Mashraki <ariel@mashraki.co.il> (https://github.com/a8m)",
34
- "Arnaud Brousseau (https://github.com/ArnaudBrousseau)",
35
- "Atsuya Takagi <atsuya.takagi@gmail.com> (https://github.com/atsuya)",
36
- "Attila Domokos (https://github.com/adomokos)",
37
- "Austin Birch (https://github.com/austinbirch)",
38
- "Avi Vahl (https://github.com/AviVahl)",
39
- "Ben Bradley (https://github.com/ben-bradley)",
40
- "beneidel (https://github.com/beneidel)",
41
- "Benjie Gillam (https://github.com/benjie)",
42
- "Ben Noordhuis <info@bnoordhuis.nl> (https://github.com/bnoordhuis)",
43
- "Benoit Larroque (https://github.com/zetaben)",
44
- "Benoît Zugmeyer (https://github.com/BenoitZugmeyer)",
45
- "Ben Vinegar (https://github.com/benvinegar)",
46
- "Berker Peksag <berker.peksag@gmail.com> (https://github.com/berkerpeksag)",
47
- "Bjørge Næss (https://github.com/bjoerge)",
48
- "Brendan Nee <brendan@blinktag.com> (https://github.com/brendannee)",
49
- "Brian Beck <exogen@gmail.com> (https://github.com/exogen)",
50
- "Brian C <brian.m.carlson@gmail.com> (https://github.com/brianc)",
51
- "Brian Lalor <blalor@bravo5.org> (https://github.com/blalor)",
52
- "Brian Moore (https://github.com/bionicbrian)",
53
- "Bryan Donovan (https://github.com/BryanDonovan)",
54
- "Buck Doyle (https://github.com/backspace)",
55
- "C. Scott Ananian <cscott@cscott.net> (https://github.com/cscott)",
56
- "Casey Foster (https://github.com/caseywebdev)",
57
- "Charles Lowell <cowboyd@frontside.io> (https://github.com/cowboyd)",
58
- "Chris Buckley <chris@cmbuckley.co.uk> (https://github.com/cmbuckley)",
59
- "Christopher Hiller <boneskull@boneskull.com> (https://github.com/boneskull)",
60
- "Chris Wren <chriswrendev@gmail.com> (https://github.com/ChrisWren)",
61
- "Clemens Stolle (https://github.com/klaemo)",
62
- "Connor Dunn (https://github.com/Connorhd)",
63
- "Corey Butler (https://github.com/coreybutler)",
64
- "Cory Thomas (https://github.com/dump247)",
65
- "cybertk (https://github.com/cybertk)",
66
- "Daniel Ericsson (https://github.com/monowerker)",
67
- "Daniel St. Jules <danielst.jules@gmail.com> (https://github.com/danielstjules)",
68
- "Daniel Stockman <daniel.stockman@gmail.com> (https://github.com/evocateur)",
69
- "Dave McKenna <davemckenna01@gmail.com> (https://github.com/davemckenna01)",
70
- "David da Silva <yo@dasilvacont.in> (https://github.com/dasilvacontin)",
71
- "David Henderson (https://github.com/dhendo)",
72
- "Denis Bardadym <bardadymchik@gmail.com> (https://github.com/btd)",
73
- "Devin Weaver <suki@tritarget.org> (https://github.com/sukima)",
74
- "Diogo Monteiro <diogo.gmt@gmail.com> (https://github.com/diogogmt)",
75
- "Dmitry Shirokov <deadrunk@gmail.com> (https://github.com/runk)",
76
- "Domenic Denicola <d@domenic.me> (https://github.com/domenic)",
77
- "Dominic Barnes <dominic@dbarnes.info> (https://github.com/dominicbarnes)",
78
- "domq (https://github.com/domq)",
79
- "Douglas Wilson <doug@somethingdoug.com> (https://github.com/dougwilson)",
80
- "Duncan Beevers <duncan@dweebd.com> (https://github.com/duncanbeevers)",
81
- "Duncan Wong (https://github.com/badunk)",
82
- "eiji.ienaga (https://github.com/haru01)",
83
- "Fabio Crisci <piuccio@gmail.com> (https://github.com/piuccio)",
84
- "Fede Ramirez <i@2fd.me> (https://github.com/2fd)",
85
- "Fedor Indutny <fedor@indutny.com> (https://github.com/indutny)",
86
- "fengmk2 <m@fengmk2.com> (https://github.com/fengmk2)",
87
- "Florian Margaine <florian@margaine.com> (https://github.com/ralt)",
88
- "Forbes Lindesay (https://github.com/ForbesLindesay)",
89
- "Frederico Silva (https://github.com/fredericosilva)",
90
- "Fredrik Enestad <fredrik.enestad@soundtrackyourbrand.com> (https://github.com/fredr)",
91
- "Fredrik Lindin (https://github.com/Cowboy-coder)",
92
- "Gabriel Silk (https://github.com/gsilk)",
93
- "Gareth Aye <gareth.aye@gmail.com> (https://github.com/gaye)",
94
- "Gavin Mogan <gavin@gavinmogan.com> (https://github.com/halkeye)",
95
- "gigadude (https://github.com/gigadude)",
96
- "Giovanni Bassi (https://github.com/giggio)",
97
- "Glen Huang <curvedmark@gmail.com> (https://github.com/curvedmark)",
98
- "Glen Mailer <glen@stainlessed.co.uk> (https://github.com/glenjamin)",
99
- "Greg Perkins <gregperkins@alum.mit.edu> (https://github.com/gregrperkins)",
100
- "Guillermo Rauch <rauchg@gmail.com> (https://github.com/rauchg)",
101
- "Guy Arye (https://github.com/aryeguy)",
102
- "Gyandeep Singh <gyandeeps@gmail.com> (https://github.com/gyandeeps)",
103
- "Harish <hyeluri@gmail.com> (https://github.com/hyeluri)",
104
- "Harry Brundage <harry.brundage@gmail.com> (https://github.com/airhorns)",
105
- "Ian Remmel <design@ianwremmel.com> (https://github.com/ianwremmel)",
106
- "Ian Storm Taylor (https://github.com/ianstormtaylor)",
107
- "Ian Young <ian@iangreenleaf.com> (https://github.com/iangreenleaf)",
108
- "Ivan (https://github.com/ivanstoyanov)",
109
- "Jaakko Salonen (https://github.com/jsalonen)",
110
- "Jacob Wejendorp <jacob@wejendorp.dk> (https://github.com/wejendorp)",
111
- "Jake Craige (https://github.com/jakecraige)",
112
- "Jake Marsh (https://github.com/jakemmarsh)",
113
- "Jake Mc <jake.mc@icloud.com> (https://github.com/startswithaj)",
114
- "Jake Verbaten <raynos2@gmail.com> (https://github.com/Raynos)",
115
- "Jakub Nešetřil <jakub@apiary.io> (https://github.com/zzen)",
116
- "James Bowes (https://github.com/jbowes)",
117
- "James Carr <james.r.carr@gmail.com> (https://github.com/jamescarr)",
118
- "James G. Kim <jgkim@jayg.org> (https://github.com/jgkim)",
119
- "James Lal <james@lightsofapollo.com> (https://github.com/lightsofapollo)",
120
- "James Nylen <jnylen@gmail.com> (https://github.com/nylen)",
121
- "Jason (https://github.com/jlai)",
122
- "Jason Barry <jay@jcbarry.com> (https://github.com/JCBarry)",
123
- "Javier Aranda <javier.aranda.varo@gmail.com> (https://github.com/javierav)",
124
- "jcreamer898 (https://github.com/jcreamer898)",
125
- "Jean Ponchon (https://github.com/nopnop)",
126
- "Jeff Kunkle (https://github.com/kunklejr)",
127
- "Jeff Schilling <jeff@manicwave.com> (https://github.com/jschilli)",
128
- "JeongHoon Byun (aka Outsider) <outsideris@gmail.com> (https://github.com/outsideris)",
129
- "Jeremy Martin (https://github.com/jmar777)",
130
- "jimenglish81 (https://github.com/jimenglish81)",
131
- "Jimmy Cuadra (https://github.com/jimmycuadra)",
132
- "jldailey (https://github.com/jldailey)",
133
- "jleyba (https://github.com/jleyba)",
134
- "Joey Cozza <joeycozza@gmail.com> (https://github.com/joeycozza)",
135
- "Johnathon Sanders (https://github.com/outdooricon)",
136
- "John Doty <jrhdoty@gmail.com> (https://github.com/jrhdoty)",
137
- "John Firebaugh <john.firebaugh@gmail.com> (https://github.com/jfirebaugh)",
138
- "John Reeves (https://github.com/jonnyreeves)",
139
- "Jo Liss <joliss42@gmail.com> (https://github.com/joliss)",
140
- "Jonas Dohse (https://github.com/dohse)",
141
- "Jonathan Kim <hello@jkimbo.co.uk> (https://github.com/jkimbo)",
142
- "Jonathan Park <jonathan.daniel.park@gmail.com> (https://github.com/park9140)",
143
- "jongleberry <me@jongleberry.com> (https://github.com/jonathanong)",
144
- "Jordan Sexton <jordan@jordansexton.com> (https://github.com/jordansexton)",
145
- "Joseph Spencer (https://github.com/jsdevel)",
146
- "Josh Lory (https://github.com/joshlory)",
147
- "Joshua Appelman <joshua@jbna.nl> (https://github.com/jbnicolai)",
148
- "Joshua Krall <joshuakrall@pobox.com> (https://github.com/jkrall)",
149
- "João Moreno (https://github.com/joaomoreno)",
150
- "João Paulo Bochi <jpbochi@gmail.com> (https://github.com/jpbochi)",
151
- "jugglinmike (https://github.com/jugglinmike)",
152
- "Julien Wajsberg (https://github.com/julienw)",
153
- "Jussi Virtanen <contact@jvirtanen.org> (https://github.com/jvirtanen)",
154
- "Justin DuJardin (https://github.com/justindujardin)",
155
- "Juzer Ali <juzerali@live.com> (https://github.com/juzerali)",
156
- "Jérémie Astori (https://github.com/astorije)",
157
- "Katie Gengler (https://github.com/kategengler)",
158
- "Kazuhito Hokamura (https://github.com/hokaccha)",
159
- "Keith Cirkel (https://github.com/keithamus)",
160
- "Kent C. Dodds <kent+github@doddsfamily.us> (https://github.com/kentcdodds)",
161
- "Kevin Burke <kev@inburke.com> (https://github.com/kevinburke)",
162
- "Kevin Conway <kevinjacobconway@gmail.com> (https://github.com/kevinconway)",
163
- "Kevin Kirsche <Kev.Kirsche@gmail.com> (https://github.com/kkirsche)",
164
- "Kirill Korolyov <kirill.korolyov@gmail.com> (https://github.com/Dremora)",
165
- "Koen Punt <mail@koen.pt> (https://github.com/koenpunt)",
166
- "Konstantin Käfer <mail@kkaefer.com> (https://github.com/kkaefer)",
167
- "Kris Rasmussen (https://github.com/krisr)",
168
- "Kyle Mitchell <kyle@kemitchell.com> (https://github.com/kemitchell)",
169
- "lakmeer (https://github.com/lakmeer)",
170
- "Liam Newman <bitwiseman@gmail.com> (https://github.com/bitwiseman)",
171
- "Linus Unnebäck <linus@folkdatorn.se> (https://github.com/LinusU)",
172
- "Long Ho <holevietlong@gmail.com> (https://github.com/longlho)",
173
- "László Bácsi <lackac@lackac.hu> (https://github.com/lackac)",
174
- "Maciej Małecki <me@mmalecki.com> (https://github.com/mmalecki)",
175
- "Mal Graty (https://github.com/mal)",
176
- "Marcello Bastéa-Forte <marcello@cellosoft.com> (https://github.com/marcello3d)",
177
- "Marc Kuo <marc@routific.com> (https://github.com/mck-)",
178
- "Mark Banner (https://github.com/Standard8)",
179
- "Matija Marohnić <matija.marohnic@gmail.com> (https://github.com/silvenon)",
180
- "Matthew Shanley <matthewshanley@littlesecretsrecords.com> (https://github.com/arkadyan)",
181
- "mattias-lw (https://github.com/mattias-lw)",
182
- "Matt Robenolt <m@robenolt.com> (https://github.com/mattrobenolt)",
183
- "Matt Smith <matt@twobitfool.com> (https://github.com/twobitfool)",
184
- "Max Goodman <c@chromako.de> (https://github.com/chromakode)",
185
- "Maximilian Antoni <mail@maxantoni.de> (https://github.com/mantoni)",
186
- "Merrick Christensen <merrick.christensen@gmail.com> (https://github.com/iammerrick)",
187
- "michael-adsk (https://github.com/michael-adsk)",
188
- "Michael Demmer (https://github.com/demmer)",
189
- "Michael Jackson <mjijackson@gmail.com> (https://github.com/mjackson)",
190
- "Michael Schoonmaker <michael.r.schoonmaker@gmail.com> (https://github.com/Schoonology)",
191
- "Michal Charemza (https://github.com/michalc)",
192
- "Mike Olson (https://github.com/mwolson)",
193
- "Mislav Marohnić <mislav.marohnic@gmail.com> (https://github.com/mislav)",
194
- "mrShturman (https://github.com/mrShturman)",
195
- "Nathan Alderson <nathan@nathanalderson.com> (https://github.com/nathanalderson)",
196
- "Nathan Black <nathan@nathanblack.org> (https://github.com/nathanboktae)",
197
- "Nathan Bowser <nbowser@gmail.com> (https://github.com/nathanbowser)",
198
- "Nathan Houle <nathan+github@nathanhoule.com> (https://github.com/ndhoule)",
199
- "Nathan Rajlich <nathan@tootallnate.net> (https://github.com/TooTallNate)",
200
- "Nick Fitzgerald (https://github.com/fitzgen)",
201
- "noirlab (https://github.com/noirlab)",
202
- "Noshir Patel <nosh@blackpiano.com> (https://github.com/noshir-patel)",
203
- "OlegTsyba <oleg.tsyba.ua@gmail.com> (https://github.com/OlegTsyba)",
204
- "omar (https://github.com/omardelarosa)",
205
- "Panu Horsmalahti <panu.horsmalahti@iki.fi> (https://github.com/panuhorsmalahti)",
206
- "Parker Moore <email@byparker.com> (https://github.com/parkr)",
207
- "Paul Armstrong (https://github.com/paularmstrong)",
208
- "Paul Miller <paul+gh@paulmillr.com> (https://github.com/paulmillr)",
209
- "Pavel Zubkou (https://github.com/irnc)",
210
- "Pete Hawkins (https://github.com/phawk)",
211
- "Phil Sung <philbert@gmail.com> (https://github.com/psung)",
212
- "Prayag Verma <prayag.verma@gmail.com> (https://github.com/pra85)",
213
- "qiu zuhui <qiuzuhui@gmail.com> (https://github.com/qiuzuhui)",
214
- "Quang Van <quang@boldapps.io> (https://github.com/quangv)",
215
- "Rauno (https://github.com/Rauno56)",
216
- "Refael Ackermann <me@refack.com> (https://github.com/refack)",
217
- "Richard Dingwall <rdingwall@gmail.com> (https://github.com/rdingwall)",
218
- "Richard Knop (https://github.com/RichardKnop)",
219
- "Rico Sta. Cruz <hi@ricostacruz.com> (https://github.com/rstacruz)",
220
- "Robert Rossmann (https://github.com/Alaneor)",
221
- "Rob Wu <rob@robwu.nl> (https://github.com/Rob--W)",
222
- "Romain (https://github.com/rprieto)",
223
- "Roman Neuhauser <rneuhauser@sigpipe.cz> (https://github.com/roman-neuhauser)",
224
- "Roman Shtylman (https://github.com/defunctzombie)",
225
- "Russ Bradberry <devdazed@me.com> (https://github.com/devdazed)",
226
- "Russell Munson (https://github.com/rmunson)",
227
- "Rustem Mustafin <mustafin.rustem@gmail.com> (https://github.com/rulikkk)",
228
- "Ryan <ryan.shaw@min.vc> (https://github.com/ryan-shaw)",
229
- "Ryan Hubbard (https://github.com/ryedog)",
230
- "Ryunosuke Sato <tricknotes.rs@gmail.com> (https://github.com/tricknotes)",
231
- "ryym (https://github.com/ryym)",
232
- "Salehen Shovon Rahman <sal@linux.com> (https://github.com/shovon)",
233
- "Salvador de la Puente González <salva@unoyunodiez.com> (https://github.com/delapuente)",
234
- "Sam Mussell (https://github.com/smussell)",
235
- "Samuel Goldszmidt <samuel.goldszmidt@gmail.com> (https://github.com/ouhouhsami)",
236
- "Sasha Koss <kossnocorp@gmail.com> (https://github.com/kossnocorp)",
237
- "Scott Santucci <ScottFreeCode@gmail.com> (https://github.com/ScottFreeCode)",
238
- "Sean Lang <slang800@gmail.com> (https://github.com/slang800)",
239
- "seb vincent <seb.vincent@gmail.com> (https://github.com/sebv)",
240
- "Seiya Konno <nulltask@gmail.com> (https://github.com/nulltask)",
241
- "Sergey Simonchik (https://github.com/segrey)",
242
- "Sergio Santoro (https://github.com/taueres)",
243
- "Shahar Soel (https://github.com/bd82)",
244
- "Shaine Hatch (https://github.com/shaine)",
245
- "Shiwei Wang (https://github.com/wsw0108)",
246
- "Simon Gaeremynck (https://github.com/simong)",
247
- "Simon Goumaz (https://github.com/sgoumaz)",
248
- "Sindre Sorhus <sindresorhus@gmail.com> (https://github.com/sindresorhus)",
249
- "slientcloud <rjmuqiang@gmail.com> (https://github.com/silentcloud)",
250
- "Sorin Iclanzan (https://github.com/iclanzan)",
251
- "Standa Opichal <opichals@gmail.com> (https://github.com/opichals)",
252
- "Stephen Mathieson <me@stephenmathieson.com> (https://github.com/stephenmathieson)",
253
- "Steve Mason (https://github.com/spmason)",
254
- "Stewart Taylor <stewart@taylore.net> (https://github.com/Stewart-Taylor)",
255
- "Sune Simonsen <sune@we-knowhow.dk> (https://github.com/sunesimonsen)",
256
- "Sylvain Faucherand (https://github.com/slyg)",
257
- "Takuya Nishigori <nishigori.tak@gmail.com> (https://github.com/nishigori)",
258
- "Taylor Gautier (https://github.com/tsgautier)",
259
- "Teddy Zeenny (https://github.com/teddyzeenny)",
260
- "Thomas Grainger <https//@graingert.co.uk> (https://github.com/graingert)",
261
- "Tim Ehat (https://github.com/timehat)",
262
- "Timothy Gu <timothygu99@gmail.com> (https://github.com/TimothyGu)",
263
- "Timo Tijhof <krinklemail@gmail.com> (https://github.com/Krinkle)",
264
- "Tingan Ho <tingan87@gmail.com> (https://github.com/tinganho)",
265
- "TJ Holowaychuk <tj@vision-media.ca> (https://github.com/tj)",
266
- "Tobias Bieniek <tobias.bieniek@gmail.com> (https://github.com/Turbo87)",
267
- "Toby Ho <airportyh@gmail.com> (https://github.com/airportyh)",
268
- "Todd Agulnick (https://github.com/tawdle)",
269
- "Tom Hughes (https://github.com/tomhughes)",
270
- "Tommy Montgomery (https://github.com/tmont)",
271
- "traleig1 (https://github.com/traleig1)",
272
- "Travis Jeffery <tj@travisjeffery.com> (https://github.com/travisjeffery)",
273
- "Tyson Tate <tyson@tysontate.com> (https://github.com/tysontate)",
274
- "Valentin Agachi (https://github.com/avaly)",
275
- "Victor Costan <victor@costan.us> (https://github.com/pwnall)",
276
- "Vladimir Chernis (https://github.com/vlazzle)",
277
- "Vlad Magdalin <vlad@webflow.com> (https://github.com/callmevlad)",
278
- "Will Langstroth (https://github.com/wlangstroth)",
279
- "Wil Moore III <wil.moore@wilmoore.com> (https://github.com/wilmoore)",
280
- "Xavier Antoviaque <xavier@opencraft.com> (https://github.com/antoviaque)",
281
- "Xavier Damman <xdamman@gmail.com> (https://github.com/xdamman)",
282
- "Yanis Wang <yanis.wang@gmail.com> (https://github.com/yaniswang)",
283
- "yuitest <developer.yuitest+github@cjhat.net> (https://github.com/yuitest)",
284
- "Zhiye Li <github@zhiye.li> (https://github.com/zhiyelee)",
285
- "Zhouxuan Yang <fool2fish@gmail.com> (https://github.com/fool2fish)",
286
- "Zsolt Takács <firstname at lastname dot cc> (https://github.com/oker1)"
287
- ],
288
22
  "license": "MIT",
289
23
  "repository": {
290
24
  "type": "git",
@@ -294,87 +28,180 @@
294
28
  "url": "https://github.com/kmalakoff/mocha-compat/issues"
295
29
  },
296
30
  "homepage": "https://github.com/kmalakoff/mocha-compat#readme",
31
+ "logo": "https://cldup.com/S9uQ-cOLYz.svg",
32
+ "notifyLogo": "https://ibin.co/4QuRuGjXvl36.png",
297
33
  "bin": {
298
- "mocha-compat-3": "bin/mocha-compat",
299
- "_mocha-compat-3": "bin/_mocha-compat",
300
- "mocha-compat": "bin/mocha-compat",
301
- "_mocha-compat": "bin/_mocha-compat"
34
+ "mocha-compat-10": "bin/mocha.js",
35
+ "_mocha-compat-10": "bin/_mocha"
36
+ },
37
+ "directories": {
38
+ "lib": "./lib",
39
+ "test": "./test"
302
40
  },
303
41
  "engines": {
304
- "node": ">= 0.10.x",
305
- "npm": ">= 1.4.x"
42
+ "node": ">= 12.17.0"
306
43
  },
307
44
  "scripts": {
308
- "lint": "",
309
- "test": "make test && make clean",
310
- "preversion": "make test && rm mocha.js && make mocha.js && git add mocha.js",
311
- "coveralls": "nyc report --reporter=text-lcov | coveralls"
45
+ "build": "rollup -c ./rollup.config.js",
46
+ "clean": "rimraf mocha.js mocha.js.map",
47
+ "docs-clean": "rimraf docs/_site docs/api",
48
+ "docs-watch": "eleventy --serve",
49
+ "docs:api": "jsdoc -c jsdoc.conf.json",
50
+ "docs:site": "eleventy",
51
+ "docs": "run-s docs-clean docs:*",
52
+ "format:eslint": "eslint --fix . \"bin/*\"",
53
+ "format:prettier": "prettier --write \"!(package*).json\" \".*.json\" \"lib/**/*.json\" \"*.yml\"",
54
+ "format": "run-s format:*",
55
+ "lint:knip": "knip --cache",
56
+ "lint:code": "eslint . \"bin/*\" --max-warnings 0",
57
+ "lint:markdown": "markdownlint \"*.md\" \"docs/**/*.md\" \".github/*.md\" \"lib/**/*.md\" \"test/**/*.md\" \"example/**/*.md\" -i CHANGELOG.md",
58
+ "lint": "run-p lint:*",
59
+ "prepack": "run-s clean build",
60
+ "prepublishOnly": "run-s clean build",
61
+ "test-browser-run": "cross-env NODE_PATH=. karma start ./karma.conf.js --single-run",
62
+ "test-browser:reporters:bdd": "cross-env MOCHA_TEST=bdd npm run -s test-browser-run",
63
+ "test-browser:reporters:esm": "cross-env MOCHA_TEST=esm npm run -s test-browser-run",
64
+ "test-browser:reporters:qunit": "cross-env MOCHA_TEST=qunit npm run -s test-browser-run",
65
+ "test-browser:reporters:tdd": "cross-env MOCHA_TEST=tdd npm run -s test-browser-run",
66
+ "test-browser:reporters": "run-s test-browser:reporters:*",
67
+ "test-browser:webpack-compat": "webpack --mode development --config ./test/browser-specific/fixtures/webpack/webpack.config.js",
68
+ "test-browser": "run-s clean build test-browser:*",
69
+ "test-coverage-clean": "rimraf .nyc_output coverage",
70
+ "test-coverage-generate": "nyc report --reporter=lcov --reporter=text",
71
+ "test-node-run-only": "nyc --no-clean --reporter=json node bin/mocha.js",
72
+ "test-node-run": "nyc --no-clean --reporter=json node bin/mocha.js --forbid-only",
73
+ "test-node:integration": "run-s clean build && npm run -s test-node-run -- --parallel --timeout 10000 --slow 3750 \"test/integration/**/*.spec.js\"",
74
+ "test-node:interfaces:bdd": "npm run -s test-node-run -- --ui bdd test/interfaces/bdd.spec",
75
+ "test-node:interfaces:exports": "npm run -s test-node-run -- --ui exports test/interfaces/exports.spec",
76
+ "test-node:interfaces:qunit": "npm run -s test-node-run -- --ui qunit test/interfaces/qunit.spec",
77
+ "test-node:interfaces:tdd": "npm run -s test-node-run -- --ui tdd test/interfaces/tdd.spec",
78
+ "test-node:interfaces": "run-p test-node:interfaces:*",
79
+ "test-node:jsapi": "node test/jsapi/index.js",
80
+ "test-node:only:bddRequire": "npm run -s test-node-run-only -- --ui qunit test/only/bdd-require.spec --no-parallel",
81
+ "test-node:only:globalBdd": "npm run -s test-node-run-only -- --ui bdd test/only/global/bdd.spec --no-parallel",
82
+ "test-node:only:globalQunit": "npm run -s test-node-run-only -- --ui qunit test/only/global/qunit.spec --no-parallel",
83
+ "test-node:only:globalTdd": "npm run -s test-node-run-only -- --ui tdd test/only/global/tdd.spec --no-parallel",
84
+ "test-node:only": "run-p test-node:only:*",
85
+ "test-node:reporters": "npm run -s test-node-run -- \"test/reporters/*.spec.js\"",
86
+ "test-node:requires": "npm run -s test-node-run -- --require coffeescript/register --require test/require/a.js --require test/require/b.coffee --require test/require/c.js --require test/require/d.coffee test/require/require.spec.js",
87
+ "test-node:unit": "npm run -s test-node-run -- \"test/unit/*.spec.js\" \"test/node-unit/**/*.spec.js\"",
88
+ "test-node": "run-s test-coverage-clean test-node:* test-coverage-generate",
89
+ "test-smoke": "node ./bin/mocha --no-config test/smoke/smoke.spec.js",
90
+ "test": "run-s lint test-node test-browser",
91
+ "version:linkify-changelog": "node scripts/linkify-changelog.mjs",
92
+ "version:update-authors": "node scripts/update-authors.js",
93
+ "version": "run-p version:* && git add -A ./AUTHORS ./CHANGELOG.md"
312
94
  },
313
95
  "dependencies": {
96
+ "ansi-colors": "^4.1.3",
314
97
  "browser-stdout": "^1.3.1",
315
- "commander": "2.10.0",
316
- "debug": "^2.6.9",
317
- "diff": "^3.5.0",
318
- "escape-string-regexp": "1.0.5",
319
- "fs.realpath": "^1.0.0",
98
+ "chokidar": "^3.5.3",
99
+ "debug": "^4.3.5",
100
+ "diff": "^5.2.2",
101
+ "escape-string-regexp": "^4.0.0",
102
+ "find-up": "^5.0.0",
103
+ "glob": "^8.1.0",
320
104
  "he": "^1.2.0",
321
- "inherits": "2",
322
- "is-absolute": "^1.0.0",
323
- "json3": "^3.3.2",
324
- "lodash.create": "^4.2.0",
325
- "minimatch": "^3.1.2",
326
- "mkdirp": "^0.5.5",
327
- "once": "^1.3.0",
328
- "supports-color": "^3.1.2",
329
- "wrappy": "^1.0.2"
105
+ "js-yaml": "^4.3.1",
106
+ "log-symbols": "^4.1.0",
107
+ "minimatch": "^5.1.8",
108
+ "ms": "^2.1.3",
109
+ "randombytes": "^2.1.0",
110
+ "strip-json-comments": "^3.1.1",
111
+ "supports-color": "^8.1.1",
112
+ "workerpool": "^6.5.1",
113
+ "yargs": "^16.2.0",
114
+ "yargs-parser": "^20.2.9",
115
+ "yargs-unparser": "^2.0.0"
330
116
  },
331
117
  "devDependencies": {
332
- "@coderbyheart/karma-sauce-launcher": "git://github.com/coderbyheart/karma-sauce-launcher#5259942cd6d40090eaa13ceeef5b0b8738c7710f",
333
- "assert": "^1.4.1",
334
- "browserify": "^13.0.0",
335
- "coffee-script": "^1.10.0",
336
- "coveralls": "^3.1.1",
337
- "cross-spawn": "^5.1.0",
338
- "expect.js": "^0.3.1",
339
- "globals": "^15.12.0",
340
- "karma": "^6.4.4",
341
- "karma-browserify": "^8.1.0",
118
+ "@11ty/eleventy": "^1.0.0",
119
+ "@11ty/eleventy-plugin-inclusive-language": "^1.0.3",
120
+ "@eslint/js": "^8.56.0",
121
+ "@mocha/docdash": "^4.0.1",
122
+ "@rollup/plugin-commonjs": "^21.0.2",
123
+ "@rollup/plugin-json": "^4.1.0",
124
+ "@rollup/plugin-multi-entry": "^4.0.1",
125
+ "@rollup/plugin-node-resolve": "^13.1.3",
126
+ "chai": "^4.3.4",
127
+ "coffeescript": "^2.6.1",
128
+ "cross-env": "^7.0.2",
129
+ "eslint": "^8.56.0",
130
+ "fail-on-errors-webpack-plugin": "^3.0.0",
131
+ "fs-extra": "^10.0.0",
132
+ "globals": "^13.24.0",
133
+ "jsdoc": "^3.6.7",
134
+ "jsdoc-ts-utils": "^2.0.1",
135
+ "karma": "^6.4.2",
342
136
  "karma-chrome-launcher": "^3.2.0",
343
- "karma-expect": "^1.1.3",
344
137
  "karma-mocha": "^2.0.1",
345
- "karma-phantomjs-launcher": "^1.0.4",
346
- "karma-spec-reporter": "0.0.36",
347
- "nyc": "^17.1.0",
348
- "os-name": "^2.0.1",
349
- "os-shim": "^0.1.3",
350
- "phantomjs": "^2.1.7",
351
- "readable-stream": "2.2.11",
352
- "rimraf": "^2.5.2",
353
- "should": "^9.0.2",
354
- "through2": "^2.0.1",
355
- "watchify": "^3.7.0"
138
+ "karma-mocha-reporter": "^2.2.5",
139
+ "karma-sauce-launcher": "^4.3.6",
140
+ "knip": "^5.27.0",
141
+ "markdown-it": "^12.3.2",
142
+ "markdown-it-anchor": "^8.4.1",
143
+ "markdown-it-attrs": "^4.1.3",
144
+ "markdown-it-emoji": "^2.0.0",
145
+ "markdown-it-prism": "^2.2.2",
146
+ "markdown-toc": "^1.2.0",
147
+ "markdownlint-cli": "^0.30.0",
148
+ "needle": "^2.5.0",
149
+ "npm-run-all2": "^6.2.0",
150
+ "nyc": "^15.1.0",
151
+ "pidtree": "^0.5.0",
152
+ "prettier": "^2.4.1",
153
+ "remark": "^14.0.2",
154
+ "remark-github": "^11.2.2",
155
+ "remark-inline-links": "^6.0.1",
156
+ "rewiremock": "^3.14.3",
157
+ "rimraf": "^3.0.2",
158
+ "rollup": "^2.70.1",
159
+ "rollup-plugin-node-globals": "^1.4.0",
160
+ "rollup-plugin-polyfill-node": "^0.8.0",
161
+ "rollup-plugin-visualizer": "^5.6.0",
162
+ "sinon": "^9.0.3",
163
+ "strip-ansi": "^6.0.0",
164
+ "unexpected": "^11.14.0",
165
+ "unexpected-eventemitter": "^2.2.0",
166
+ "unexpected-map": "^2.0.0",
167
+ "unexpected-set": "^3.0.0",
168
+ "unexpected-sinon": "^10.11.2",
169
+ "uslug": "^1.0.4",
170
+ "webpack": "^5.67.0",
171
+ "webpack-cli": "^4.9.1"
356
172
  },
357
173
  "files": [
358
- "bin",
359
- "images",
360
- "lib",
174
+ "bin/*mocha*",
175
+ "lib/**/*.{js,html,json}",
361
176
  "vendor",
362
177
  "index.js",
363
178
  "mocha.css",
364
179
  "mocha.js",
365
- "browser-entry.js",
366
- "LICENSE",
367
- "bower.json"
180
+ "mocha.js.map",
181
+ "browser-entry.js"
368
182
  ],
369
183
  "browser": {
370
- "debug": "./lib/browser/debug.js",
371
- "events": "./lib/browser/events.js",
372
- "tty": "./lib/browser/tty.js",
373
184
  "./index.js": "./browser-entry.js",
374
185
  "fs": false,
375
- "glob": false,
376
186
  "path": false,
377
- "supports-color": false
187
+ "supports-color": false,
188
+ "./lib/nodejs/buffered-worker-pool.js": false,
189
+ "./lib/nodejs/esm-utils.js": false,
190
+ "./lib/nodejs/file-unloader.js": false,
191
+ "./lib/nodejs/parallel-buffered-runner.js": false,
192
+ "./lib/nodejs/serializer.js": false,
193
+ "./lib/nodejs/worker.js": false,
194
+ "./lib/nodejs/reporters/parallel-buffered.js": false,
195
+ "./lib/cli/index.js": false
196
+ },
197
+ "prettier": {
198
+ "arrowParens": "avoid",
199
+ "bracketSpacing": false,
200
+ "endOfLine": "auto",
201
+ "singleQuote": true,
202
+ "trailingComma": "none"
378
203
  },
379
- "logo": "https://cldup.com/S9uQ-cOLYz.svg"
204
+ "overrides": {
205
+ "webdriverio": "^7.33.0"
206
+ }
380
207
  }
@@ -1,4 +1,6 @@
1
- Copyright (c) 2016 Segment.io, Inc. (friends@segment.com)
1
+ MIT License
2
+
3
+ Copyright (c) 2021 Kevin Malakoff
2
4
 
3
5
  Permission is hereby granted, free of charge, to any person obtaining a copy
4
6
  of this software and associated documentation files (the "Software"), to deal
@@ -7,13 +9,13 @@ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
7
9
  copies of the Software, and to permit persons to whom the Software is
8
10
  furnished to do so, subject to the following conditions:
9
11
 
10
- The above copyright notice and this permission notice shall be included in
11
- all copies or substantial portions of the Software.
12
+ The above copyright notice and this permission notice shall be included in all
13
+ copies or substantial portions of the Software.
12
14
 
13
15
  THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
14
16
  IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
15
- FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
17
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
16
18
  AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
17
19
  LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
18
- OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
19
- THE SOFTWARE.
20
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21
+ SOFTWARE.
@@ -0,0 +1,10 @@
1
+ # vendored serialize-javascript
2
+
3
+ serialize-javascript 7.1.1 semantics with the UID generated via `randombytes` instead of
4
+ `crypto.getRandomValues`, which is the only reason upstream 7.1.1 declares `engines: >=20`.
5
+
6
+ Upstream 6.x — what mocha 10.8.2 depends on — carries two advisories (RCE via a spoofed
7
+ `toISOString`, RCE via `RegExp.flags`) and there is no fixed version that runs below Node 20.
8
+
9
+ Kept byte-identical to `function-exec-sync`'s `dist/cjs/serialize-javascript.js` so the two can be
10
+ diffed. Regenerate from there rather than editing in place.