@emulsify/cli 1.11.4 → 1.12.0

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 (147) hide show
  1. package/dist/node_modules/.package-lock.json +34 -24
  2. package/dist/node_modules/@types/node/README.md +2 -2
  3. package/dist/node_modules/@types/node/assert.d.ts +23 -1
  4. package/dist/node_modules/@types/node/async_hooks.d.ts +64 -0
  5. package/dist/node_modules/@types/node/buffer.buffer.d.ts +124 -38
  6. package/dist/node_modules/@types/node/buffer.d.ts +19 -17
  7. package/dist/node_modules/@types/node/child_process.d.ts +88 -161
  8. package/dist/node_modules/@types/node/cluster.d.ts +5 -6
  9. package/dist/node_modules/@types/node/constants.d.ts +14 -12
  10. package/dist/node_modules/@types/node/crypto.d.ts +237 -166
  11. package/dist/node_modules/@types/node/dgram.d.ts +15 -14
  12. package/dist/node_modules/@types/node/diagnostics_channel.d.ts +39 -15
  13. package/dist/node_modules/@types/node/dns/promises.d.ts +11 -9
  14. package/dist/node_modules/@types/node/dns.d.ts +28 -21
  15. package/dist/node_modules/@types/node/events.d.ts +81 -35
  16. package/dist/node_modules/@types/node/fs/promises.d.ts +61 -36
  17. package/dist/node_modules/@types/node/fs.d.ts +251 -193
  18. package/dist/node_modules/@types/node/globals.d.ts +146 -442
  19. package/dist/node_modules/@types/node/globals.typedarray.d.ts +17 -0
  20. package/dist/node_modules/@types/node/http.d.ts +136 -31
  21. package/dist/node_modules/@types/node/http2.d.ts +102 -26
  22. package/dist/node_modules/@types/node/https.d.ts +94 -60
  23. package/dist/node_modules/@types/node/index.d.ts +5 -3
  24. package/dist/node_modules/@types/node/{inspector.d.ts → inspector.generated.d.ts} +272 -2
  25. package/dist/node_modules/@types/node/module.d.ts +362 -138
  26. package/dist/node_modules/@types/node/net.d.ts +27 -20
  27. package/dist/node_modules/@types/node/os.d.ts +14 -3
  28. package/dist/node_modules/@types/node/package.json +4 -89
  29. package/dist/node_modules/@types/node/perf_hooks.d.ts +37 -10
  30. package/dist/node_modules/@types/node/process.d.ts +108 -35
  31. package/dist/node_modules/@types/node/querystring.d.ts +2 -3
  32. package/dist/node_modules/@types/node/readline/promises.d.ts +1 -1
  33. package/dist/node_modules/@types/node/stream/consumers.d.ts +33 -7
  34. package/dist/node_modules/@types/node/stream/web.d.ts +13 -4
  35. package/dist/node_modules/@types/node/stream.d.ts +963 -1014
  36. package/dist/node_modules/@types/node/string_decoder.d.ts +2 -2
  37. package/dist/node_modules/@types/node/test.d.ts +1504 -1655
  38. package/dist/node_modules/@types/node/timers/promises.d.ts +28 -17
  39. package/dist/node_modules/@types/node/timers.d.ts +157 -111
  40. package/dist/node_modules/@types/node/tls.d.ts +105 -67
  41. package/dist/node_modules/@types/node/ts5.6/buffer.buffer.d.ts +120 -37
  42. package/dist/node_modules/@types/node/ts5.6/globals.typedarray.d.ts +15 -0
  43. package/dist/node_modules/@types/node/ts5.6/index.d.ts +5 -3
  44. package/dist/node_modules/@types/node/url.d.ts +10 -1
  45. package/dist/node_modules/@types/node/util.d.ts +28 -3
  46. package/dist/node_modules/@types/node/v8.d.ts +6 -5
  47. package/dist/node_modules/@types/node/vm.d.ts +147 -68
  48. package/dist/node_modules/@types/node/wasi.d.ts +1 -1
  49. package/dist/node_modules/@types/node/web-globals/abortcontroller.d.ts +34 -0
  50. package/dist/node_modules/@types/node/web-globals/domexception.d.ts +68 -0
  51. package/dist/node_modules/@types/node/web-globals/events.d.ts +97 -0
  52. package/dist/node_modules/@types/node/web-globals/fetch.d.ts +46 -0
  53. package/dist/node_modules/@types/node/worker_threads.d.ts +60 -39
  54. package/dist/node_modules/@types/node/zlib.d.ts +21 -20
  55. package/dist/node_modules/debug/package.json +7 -3
  56. package/dist/node_modules/debug/src/browser.js +2 -1
  57. package/dist/node_modules/debug/src/common.js +57 -39
  58. package/dist/node_modules/fast-uri/.github/dependabot.yml +1 -1
  59. package/dist/node_modules/fast-uri/.github/workflows/ci.yml +81 -3
  60. package/dist/node_modules/fast-uri/.github/workflows/package-manager-ci.yml +6 -2
  61. package/dist/node_modules/fast-uri/LICENSE +3 -1
  62. package/dist/node_modules/fast-uri/README.md +55 -37
  63. package/dist/node_modules/fast-uri/benchmark/benchmark.mjs +159 -0
  64. package/dist/node_modules/fast-uri/benchmark/equal.mjs +51 -0
  65. package/dist/node_modules/fast-uri/benchmark/non-simple-domain.mjs +22 -0
  66. package/dist/node_modules/fast-uri/benchmark/package.json +17 -0
  67. package/dist/node_modules/fast-uri/benchmark/string-array-to-hex-stripped.mjs +24 -0
  68. package/dist/node_modules/fast-uri/benchmark/ws-is-secure.mjs +65 -0
  69. package/dist/node_modules/fast-uri/eslint.config.js +6 -0
  70. package/dist/node_modules/fast-uri/index.js +98 -61
  71. package/dist/node_modules/fast-uri/lib/schemes.js +160 -81
  72. package/dist/node_modules/fast-uri/lib/utils.js +217 -123
  73. package/dist/node_modules/fast-uri/package.json +44 -14
  74. package/dist/node_modules/fast-uri/test/ajv.test.js +7 -3
  75. package/dist/node_modules/fast-uri/test/equal.test.js +7 -2
  76. package/dist/node_modules/fast-uri/test/fixtures/uri-js-parse.json +501 -0
  77. package/dist/node_modules/fast-uri/test/fixtures/uri-js-serialize.json +120 -0
  78. package/dist/node_modules/fast-uri/test/parse.test.js +31 -31
  79. package/dist/node_modules/fast-uri/test/resolve.test.js +52 -49
  80. package/dist/node_modules/fast-uri/test/rfc-3986.test.js +90 -0
  81. package/dist/node_modules/fast-uri/test/serialize.test.js +55 -47
  82. package/dist/node_modules/fast-uri/test/uri-js-compatibility.test.js +33 -0
  83. package/dist/node_modules/fast-uri/test/uri-js.test.js +230 -230
  84. package/dist/node_modules/fast-uri/test/util.test.js +23 -8
  85. package/dist/node_modules/fast-uri/tsconfig.json +9 -0
  86. package/dist/node_modules/fast-uri/types/index.d.ts +16 -9
  87. package/dist/node_modules/fast-uri/types/index.test-d.ts +9 -9
  88. package/dist/node_modules/fs-extra/LICENSE +1 -1
  89. package/dist/node_modules/fs-extra/README.md +3 -1
  90. package/dist/node_modules/fs-extra/lib/copy/copy-sync.js +11 -1
  91. package/dist/node_modules/fs-extra/lib/copy/copy.js +13 -15
  92. package/dist/node_modules/fs-extra/lib/fs/index.js +6 -0
  93. package/dist/node_modules/fs-extra/lib/util/async.js +29 -0
  94. package/dist/node_modules/fs-extra/lib/util/stat.js +2 -1
  95. package/dist/node_modules/fs-extra/package.json +1 -1
  96. package/dist/node_modules/jsonfile/README.md +1 -1
  97. package/dist/node_modules/jsonfile/index.js +3 -3
  98. package/dist/node_modules/jsonfile/package.json +1 -1
  99. package/dist/node_modules/simple-git/dist/cjs/index.js +235 -235
  100. package/dist/node_modules/simple-git/dist/cjs/index.js.map +3 -3
  101. package/dist/node_modules/simple-git/dist/esm/index.js +229 -233
  102. package/dist/node_modules/simple-git/dist/esm/index.js.map +3 -3
  103. package/dist/node_modules/simple-git/dist/src/lib/git-logger.d.ts +1 -1
  104. package/dist/node_modules/simple-git/dist/src/lib/parsers/parse-branch.d.ts +1 -1
  105. package/dist/node_modules/simple-git/dist/src/lib/plugins/error-detection.plugin.d.ts +2 -3
  106. package/dist/node_modules/simple-git/dist/src/lib/plugins/simple-git-plugin.d.ts +2 -3
  107. package/dist/node_modules/simple-git/dist/src/lib/plugins/spawn-options-plugin.d.ts +0 -1
  108. package/dist/node_modules/simple-git/dist/src/lib/runners/scheduler.d.ts +1 -1
  109. package/dist/node_modules/simple-git/dist/src/lib/runners/tasks-pending-queue.d.ts +2 -2
  110. package/dist/node_modules/simple-git/dist/src/lib/tasks/apply-patch.d.ts +1 -1
  111. package/dist/node_modules/simple-git/dist/src/lib/tasks/clean.d.ts +1 -1
  112. package/dist/node_modules/simple-git/dist/src/lib/tasks/clone.d.ts +1 -1
  113. package/dist/node_modules/simple-git/dist/src/lib/tasks/log.d.ts +3 -3
  114. package/dist/node_modules/simple-git/dist/src/lib/tasks/push.d.ts +1 -1
  115. package/dist/node_modules/simple-git/dist/src/lib/tasks/remote.d.ts +4 -2
  116. package/dist/node_modules/simple-git/dist/src/lib/tasks/reset.d.ts +3 -3
  117. package/dist/node_modules/simple-git/dist/src/lib/tasks/stash-list.d.ts +1 -1
  118. package/dist/node_modules/simple-git/dist/src/lib/tasks/task.d.ts +2 -2
  119. package/dist/node_modules/simple-git/dist/src/lib/types/handlers.d.ts +1 -1
  120. package/dist/node_modules/simple-git/dist/src/lib/types/index.d.ts +9 -13
  121. package/dist/node_modules/simple-git/dist/src/lib/types/tasks.d.ts +5 -6
  122. package/dist/node_modules/simple-git/dist/src/lib/utils/argument-filters.d.ts +5 -7
  123. package/dist/node_modules/simple-git/dist/src/lib/utils/git-output-streams.d.ts +0 -1
  124. package/dist/node_modules/simple-git/dist/src/lib/utils/line-parser.d.ts +1 -1
  125. package/dist/node_modules/simple-git/dist/src/lib/utils/task-options.d.ts +1 -1
  126. package/dist/node_modules/simple-git/dist/src/lib/utils/util.d.ts +11 -10
  127. package/dist/node_modules/simple-git/package.json +6 -6
  128. package/dist/node_modules/simple-git/readme.md +8 -0
  129. package/dist/node_modules/undici-types/dispatcher.d.ts +1 -0
  130. package/dist/node_modules/undici-types/eventsource.d.ts +0 -2
  131. package/dist/node_modules/undici-types/filereader.d.ts +1 -1
  132. package/dist/node_modules/undici-types/interceptors.d.ts +3 -1
  133. package/dist/node_modules/undici-types/package.json +1 -1
  134. package/dist/node_modules/undici-types/patch.d.ts +0 -38
  135. package/dist/node_modules/undici-types/readable.d.ts +5 -0
  136. package/dist/node_modules/undici-types/webidl.d.ts +6 -0
  137. package/dist/node_modules/undici-types/websocket.d.ts +0 -2
  138. package/dist/package-lock.json +911 -812
  139. package/dist/package.json +1 -1
  140. package/dist/util/getAvailableStarters.js +2 -2
  141. package/package.json +1 -1
  142. package/dist/node_modules/@types/node/dom-events.d.ts +0 -124
  143. package/dist/node_modules/fast-uri/benchmark.js +0 -105
  144. package/dist/node_modules/fast-uri/lib/scopedChars.js +0 -30
  145. package/dist/node_modules/fast-uri/test/.gitkeep +0 -0
  146. package/dist/node_modules/fast-uri/test/compatibility.test.js +0 -131
  147. package/dist/node_modules/jsonfile/CHANGELOG.md +0 -171
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@emulsify/cli",
3
- "version": "1.11.4",
3
+ "version": "1.12.0",
4
4
  "lockfileVersion": 3,
5
5
  "requires": true,
6
6
  "packages": {
@@ -20,12 +20,12 @@
20
20
  "license": "MIT"
21
21
  },
22
22
  "node_modules/@types/node": {
23
- "version": "20.17.9",
24
- "resolved": "https://registry.npmjs.org/@types/node/-/node-20.17.9.tgz",
25
- "integrity": "sha512-0JOXkRyLanfGPE2QRCwgxhzlBAvaRdCNMcvbd7jFfpmD4eEXll7LRwy5ymJmyeZqk7Nh7eD2LeUyQ68BbndmXw==",
23
+ "version": "20.19.25",
24
+ "resolved": "https://registry.npmjs.org/@types/node/-/node-20.19.25.tgz",
25
+ "integrity": "sha512-ZsJzA5thDQMSQO788d7IocwwQbI8B5OPzmqNvpf3NY/+MHDAS759Wo0gd2WQeXYt5AAAQjzcrTVC6SKCuYgoCQ==",
26
26
  "license": "MIT",
27
27
  "dependencies": {
28
- "undici-types": "~6.19.2"
28
+ "undici-types": "~6.21.0"
29
29
  }
30
30
  },
31
31
  "node_modules/@types/progress": {
@@ -151,9 +151,9 @@
151
151
  "license": "MIT"
152
152
  },
153
153
  "node_modules/debug": {
154
- "version": "4.3.7",
155
- "resolved": "https://registry.npmjs.org/debug/-/debug-4.3.7.tgz",
156
- "integrity": "sha512-Er2nc/H7RrMXZBFCEim6TCmMk02Z8vLC2Rbi1KEBggpo0fS6l0S1nnapwmIi3yW/+GOJap1Krg4w0Hg80oCqgQ==",
154
+ "version": "4.4.3",
155
+ "resolved": "https://registry.npmjs.org/debug/-/debug-4.4.3.tgz",
156
+ "integrity": "sha512-RGwwWnwQvkVfavKVt22FGLw+xYSdzARwm0ru6DhTVA3umU5hZc28V3kO4stgYryrTlLpuvgI9GiijltAjNbcqA==",
157
157
  "license": "MIT",
158
158
  "dependencies": {
159
159
  "ms": "^2.1.3"
@@ -174,15 +174,25 @@
174
174
  "license": "MIT"
175
175
  },
176
176
  "node_modules/fast-uri": {
177
- "version": "3.0.3",
178
- "resolved": "https://registry.npmjs.org/fast-uri/-/fast-uri-3.0.3.tgz",
179
- "integrity": "sha512-aLrHthzCjH5He4Z2H9YZ+v6Ujb9ocRuW6ZzkJQOrTxleEijANq4v1TsaPaVG1PZcuurEzrLcWRyYBYXD5cEiaw==",
177
+ "version": "3.1.0",
178
+ "resolved": "https://registry.npmjs.org/fast-uri/-/fast-uri-3.1.0.tgz",
179
+ "integrity": "sha512-iPeeDKJSWf4IEOasVVrknXpaBV0IApz/gp7S2bb7Z4Lljbl2MGJRqInZiUrQwV16cpzw/D3S5j5Julj/gT52AA==",
180
+ "funding": [
181
+ {
182
+ "type": "github",
183
+ "url": "https://github.com/sponsors/fastify"
184
+ },
185
+ {
186
+ "type": "opencollective",
187
+ "url": "https://opencollective.com/fastify"
188
+ }
189
+ ],
180
190
  "license": "BSD-3-Clause"
181
191
  },
182
192
  "node_modules/fs-extra": {
183
- "version": "11.2.0",
184
- "resolved": "https://registry.npmjs.org/fs-extra/-/fs-extra-11.2.0.tgz",
185
- "integrity": "sha512-PmDi3uwK5nFuXh7XDTlVnS17xJS7vW36is2+w3xcv8SVxiB4NyATf4ctkVY5bkSjX0Y4nbvZCq1/EjtEyr9ktw==",
193
+ "version": "11.3.2",
194
+ "resolved": "https://registry.npmjs.org/fs-extra/-/fs-extra-11.3.2.tgz",
195
+ "integrity": "sha512-Xr9F6z6up6Ws+NjzMCZc6WXg2YFRlrLP9NQDO3VQrWrfiojdhS56TzueT88ze0uBdCTwEIhQ3ptnmKeWGFAe0A==",
186
196
  "license": "MIT",
187
197
  "dependencies": {
188
198
  "graceful-fs": "^4.2.0",
@@ -215,9 +225,9 @@
215
225
  "license": "MIT"
216
226
  },
217
227
  "node_modules/jsonfile": {
218
- "version": "6.1.0",
219
- "resolved": "https://registry.npmjs.org/jsonfile/-/jsonfile-6.1.0.tgz",
220
- "integrity": "sha512-5dgndWOriYSm5cnYaJNhalLNDKOqFwyDB/rr1E9ZsGciGvKPs8R2xYGCacuf3z6K1YKDz182fd+fY3cn3pMqXQ==",
228
+ "version": "6.2.0",
229
+ "resolved": "https://registry.npmjs.org/jsonfile/-/jsonfile-6.2.0.tgz",
230
+ "integrity": "sha512-FGuPw30AdOIUTRMC2OMRtQV+jkVj2cfPqSeWXv1NEAJ1qZ5zb1X6z1mFhbfOB/iy3ssJCD+3KuZ8r8C3uVFlAg==",
221
231
  "license": "MIT",
222
232
  "dependencies": {
223
233
  "universalify": "^2.0.0"
@@ -266,14 +276,14 @@
266
276
  }
267
277
  },
268
278
  "node_modules/simple-git": {
269
- "version": "3.27.0",
270
- "resolved": "https://registry.npmjs.org/simple-git/-/simple-git-3.27.0.tgz",
271
- "integrity": "sha512-ivHoFS9Yi9GY49ogc6/YAi3Fl9ROnF4VyubNylgCkA+RVqLaKWnDSzXOVzya8csELIaWaYNutsEuAhZrtOjozA==",
279
+ "version": "3.30.0",
280
+ "resolved": "https://registry.npmjs.org/simple-git/-/simple-git-3.30.0.tgz",
281
+ "integrity": "sha512-q6lxyDsCmEal/MEGhP1aVyQ3oxnagGlBDOVSIB4XUVLl1iZh0Pah6ebC9V4xBap/RfgP2WlI8EKs0WS0rMEJHg==",
272
282
  "license": "MIT",
273
283
  "dependencies": {
274
284
  "@kwsites/file-exists": "^1.1.1",
275
285
  "@kwsites/promise-deferred": "^1.1.1",
276
- "debug": "^4.3.5"
286
+ "debug": "^4.4.0"
277
287
  },
278
288
  "funding": {
279
289
  "type": "github",
@@ -293,9 +303,9 @@
293
303
  }
294
304
  },
295
305
  "node_modules/undici-types": {
296
- "version": "6.19.8",
297
- "resolved": "https://registry.npmjs.org/undici-types/-/undici-types-6.19.8.tgz",
298
- "integrity": "sha512-ve2KP6f/JnbPBFyobGHuerC9g1FYGn/F8n1LWTwNxCEzd6IfqTwUQcNXgEtmmQ6DlRrC1hrSrBnCZPokRrDHjw==",
306
+ "version": "6.21.0",
307
+ "resolved": "https://registry.npmjs.org/undici-types/-/undici-types-6.21.0.tgz",
308
+ "integrity": "sha512-iwDZqg0QAGrg9Rav5H4n0M64c3mkR59cJ6wQp+7C4nI0gsmExaedaYLNO44eT4AtBBwjbTiGPMlt2Md0T9H9JQ==",
299
309
  "license": "MIT"
300
310
  },
301
311
  "node_modules/universalify": {
@@ -8,8 +8,8 @@ This package contains type definitions for node (https://nodejs.org/).
8
8
  Files were exported from https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/node/v20.
9
9
 
10
10
  ### Additional Details
11
- * Last updated: Thu, 28 Nov 2024 06:02:26 GMT
11
+ * Last updated: Tue, 11 Nov 2025 23:33:13 GMT
12
12
  * Dependencies: [undici-types](https://npmjs.com/package/undici-types)
13
13
 
14
14
  # Credits
15
- These definitions were written by [Microsoft TypeScript](https://github.com/Microsoft), [Alberto Schiabel](https://github.com/jkomyno), [Alvis HT Tang](https://github.com/alvis), [Andrew Makarov](https://github.com/r3nya), [Benjamin Toueg](https://github.com/btoueg), [Chigozirim C.](https://github.com/smac89), [David Junger](https://github.com/touffy), [Deividas Bakanas](https://github.com/DeividasBakanas), [Eugene Y. Q. Shen](https://github.com/eyqs), [Hannes Magnusson](https://github.com/Hannes-Magnusson-CK), [Huw](https://github.com/hoo29), [Kelvin Jin](https://github.com/kjin), [Klaus Meinhardt](https://github.com/ajafff), [Lishude](https://github.com/islishude), [Mariusz Wiktorczyk](https://github.com/mwiktorczyk), [Mohsen Azimi](https://github.com/mohsen1), [Nikita Galkin](https://github.com/galkin), [Parambir Singh](https://github.com/parambirs), [Sebastian Silbermann](https://github.com/eps1lon), [Thomas den Hollander](https://github.com/ThomasdenH), [Wilco Bakker](https://github.com/WilcoBakker), [wwwy3y3](https://github.com/wwwy3y3), [Samuel Ainsworth](https://github.com/samuela), [Kyle Uehlein](https://github.com/kuehlein), [Thanik Bhongbhibhat](https://github.com/bhongy), [Marcin Kopacz](https://github.com/chyzwar), [Trivikram Kamat](https://github.com/trivikr), [Junxiao Shi](https://github.com/yoursunny), [Ilia Baryshnikov](https://github.com/qwelias), [ExE Boss](https://github.com/ExE-Boss), [Piotr Błażejewicz](https://github.com/peterblazejewicz), [Anna Henningsen](https://github.com/addaleax), [Victor Perin](https://github.com/victorperin), [Yongsheng Zhang](https://github.com/ZYSzys), [NodeJS Contributors](https://github.com/NodeJS), [Linus Unnebäck](https://github.com/LinusU), [wafuwafu13](https://github.com/wafuwafu13), [Matteo Collina](https://github.com/mcollina), and [Dmitry Semigradsky](https://github.com/Semigradsky).
15
+ These definitions were written by [Microsoft TypeScript](https://github.com/Microsoft), [Alberto Schiabel](https://github.com/jkomyno), [Andrew Makarov](https://github.com/r3nya), [Benjamin Toueg](https://github.com/btoueg), [David Junger](https://github.com/touffy), [Mohsen Azimi](https://github.com/mohsen1), [Nikita Galkin](https://github.com/galkin), [Sebastian Silbermann](https://github.com/eps1lon), [Wilco Bakker](https://github.com/WilcoBakker), [Marcin Kopacz](https://github.com/chyzwar), [Trivikram Kamat](https://github.com/trivikr), [Junxiao Shi](https://github.com/yoursunny), [Ilia Baryshnikov](https://github.com/qwelias), [ExE Boss](https://github.com/ExE-Boss), [Piotr Błażejewicz](https://github.com/peterblazejewicz), [Anna Henningsen](https://github.com/addaleax), [Victor Perin](https://github.com/victorperin), [NodeJS Contributors](https://github.com/NodeJS), [Linus Unnebäck](https://github.com/LinusU), [wafuwafu13](https://github.com/wafuwafu13), [Matteo Collina](https://github.com/mcollina), and [Dmitry Semigradsky](https://github.com/Semigradsky).
@@ -11,6 +11,24 @@ declare module "assert" {
11
11
  */
12
12
  function assert(value: unknown, message?: string | Error): asserts value;
13
13
  namespace assert {
14
+ type AssertMethodNames =
15
+ | "deepEqual"
16
+ | "deepStrictEqual"
17
+ | "doesNotMatch"
18
+ | "doesNotReject"
19
+ | "doesNotThrow"
20
+ | "equal"
21
+ | "fail"
22
+ | "ifError"
23
+ | "match"
24
+ | "notDeepEqual"
25
+ | "notDeepStrictEqual"
26
+ | "notEqual"
27
+ | "notStrictEqual"
28
+ | "ok"
29
+ | "rejects"
30
+ | "strictEqual"
31
+ | "throws";
14
32
  /**
15
33
  * Indicates the failure of an assertion. All errors thrown by the `node:assert` module will be instances of the `AssertionError` class.
16
34
  */
@@ -79,7 +97,9 @@ declare module "assert" {
79
97
  * @return A function that wraps `fn`.
80
98
  */
81
99
  calls(exact?: number): () => void;
82
- calls<Func extends (...args: any[]) => any>(fn?: Func, exact?: number): Func;
100
+ calls(fn: undefined, exact?: number): () => void;
101
+ calls<Func extends (...args: any[]) => any>(fn: Func, exact?: number): Func;
102
+ calls<Func extends (...args: any[]) => any>(fn?: Func, exact?: number): Func | (() => void);
83
103
  /**
84
104
  * Example:
85
105
  *
@@ -1015,6 +1035,7 @@ declare module "assert" {
1015
1035
  | "deepStrictEqual"
1016
1036
  | "ifError"
1017
1037
  | "strict"
1038
+ | "AssertionError"
1018
1039
  >
1019
1040
  & {
1020
1041
  (value: unknown, message?: string | Error): asserts value;
@@ -1030,6 +1051,7 @@ declare module "assert" {
1030
1051
  deepStrictEqual: typeof deepStrictEqual;
1031
1052
  ifError: typeof ifError;
1032
1053
  strict: typeof strict;
1054
+ AssertionError: typeof AssertionError;
1033
1055
  };
1034
1056
  }
1035
1057
  export = assert;
@@ -535,6 +535,70 @@ declare module "async_hooks" {
535
535
  */
536
536
  enterWith(store: T): void;
537
537
  }
538
+ /**
539
+ * @since v17.2.0, v16.14.0
540
+ * @return A map of provider types to the corresponding numeric id.
541
+ * This map contains all the event types that might be emitted by the `async_hooks.init()` event.
542
+ */
543
+ namespace asyncWrapProviders {
544
+ const NONE: number;
545
+ const DIRHANDLE: number;
546
+ const DNSCHANNEL: number;
547
+ const ELDHISTOGRAM: number;
548
+ const FILEHANDLE: number;
549
+ const FILEHANDLECLOSEREQ: number;
550
+ const FIXEDSIZEBLOBCOPY: number;
551
+ const FSEVENTWRAP: number;
552
+ const FSREQCALLBACK: number;
553
+ const FSREQPROMISE: number;
554
+ const GETADDRINFOREQWRAP: number;
555
+ const GETNAMEINFOREQWRAP: number;
556
+ const HEAPSNAPSHOT: number;
557
+ const HTTP2SESSION: number;
558
+ const HTTP2STREAM: number;
559
+ const HTTP2PING: number;
560
+ const HTTP2SETTINGS: number;
561
+ const HTTPINCOMINGMESSAGE: number;
562
+ const HTTPCLIENTREQUEST: number;
563
+ const JSSTREAM: number;
564
+ const JSUDPWRAP: number;
565
+ const MESSAGEPORT: number;
566
+ const PIPECONNECTWRAP: number;
567
+ const PIPESERVERWRAP: number;
568
+ const PIPEWRAP: number;
569
+ const PROCESSWRAP: number;
570
+ const PROMISE: number;
571
+ const QUERYWRAP: number;
572
+ const SHUTDOWNWRAP: number;
573
+ const SIGNALWRAP: number;
574
+ const STATWATCHER: number;
575
+ const STREAMPIPE: number;
576
+ const TCPCONNECTWRAP: number;
577
+ const TCPSERVERWRAP: number;
578
+ const TCPWRAP: number;
579
+ const TTYWRAP: number;
580
+ const UDPSENDWRAP: number;
581
+ const UDPWRAP: number;
582
+ const SIGINTWATCHDOG: number;
583
+ const WORKER: number;
584
+ const WORKERHEAPSNAPSHOT: number;
585
+ const WRITEWRAP: number;
586
+ const ZLIB: number;
587
+ const CHECKPRIMEREQUEST: number;
588
+ const PBKDF2REQUEST: number;
589
+ const KEYPAIRGENREQUEST: number;
590
+ const KEYGENREQUEST: number;
591
+ const KEYEXPORTREQUEST: number;
592
+ const CIPHERREQUEST: number;
593
+ const DERIVEBITSREQUEST: number;
594
+ const HASHREQUEST: number;
595
+ const RANDOMBYTESREQUEST: number;
596
+ const RANDOMPRIMEREQUEST: number;
597
+ const SCRYPTREQUEST: number;
598
+ const SIGNREQUEST: number;
599
+ const TLSWRAP: number;
600
+ const VERIFYREQUEST: number;
601
+ }
538
602
  }
539
603
  declare module "node:async_hooks" {
540
604
  export * from "async_hooks";
@@ -1,4 +1,6 @@
1
1
  declare module "buffer" {
2
+ type ImplicitArrayBuffer<T extends WithImplicitCoercion<ArrayBufferLike>> = T extends
3
+ { valueOf(): infer V extends ArrayBufferLike } ? V : T;
2
4
  global {
3
5
  interface BufferConstructor {
4
6
  // see buffer.d.ts for implementation shared with all TypeScript versions
@@ -24,7 +26,7 @@ declare module "buffer" {
24
26
  * @param array The octets to store.
25
27
  * @deprecated since v10.0.0 - Use `Buffer.from(array)` instead.
26
28
  */
27
- new(array: Uint8Array): Buffer<ArrayBuffer>;
29
+ new(array: ArrayLike<number>): Buffer<ArrayBuffer>;
28
30
  /**
29
31
  * Produces a Buffer backed by the same allocated memory as
30
32
  * the given {ArrayBuffer}/{SharedArrayBuffer}.
@@ -33,20 +35,6 @@ declare module "buffer" {
33
35
  * @deprecated since v10.0.0 - Use `Buffer.from(arrayBuffer[, byteOffset[, length]])` instead.
34
36
  */
35
37
  new<TArrayBuffer extends ArrayBufferLike = ArrayBuffer>(arrayBuffer: TArrayBuffer): Buffer<TArrayBuffer>;
36
- /**
37
- * Allocates a new buffer containing the given {array} of octets.
38
- *
39
- * @param array The octets to store.
40
- * @deprecated since v10.0.0 - Use `Buffer.from(array)` instead.
41
- */
42
- new(array: readonly any[]): Buffer<ArrayBuffer>;
43
- /**
44
- * Copies the passed {buffer} data onto a new {Buffer} instance.
45
- *
46
- * @param buffer The buffer to copy.
47
- * @deprecated since v10.0.0 - Use `Buffer.from(buffer)` instead.
48
- */
49
- new(buffer: Buffer): Buffer<ArrayBuffer>;
50
38
  /**
51
39
  * Allocates a new `Buffer` using an `array` of bytes in the range `0` – `255`.
52
40
  * Array entries outside that range will be truncated to fit into it.
@@ -58,40 +46,121 @@ declare module "buffer" {
58
46
  * const buf = Buffer.from([0x62, 0x75, 0x66, 0x66, 0x65, 0x72]);
59
47
  * ```
60
48
  *
61
- * If `array` is an `Array`\-like object (that is, one with a `length` property of
49
+ * If `array` is an `Array`-like object (that is, one with a `length` property of
62
50
  * type `number`), it is treated as if it is an array, unless it is a `Buffer` or
63
- * a `Uint8Array`. This means all other `TypedArray` variants get treated as an `Array`. To create a `Buffer` from the bytes backing a `TypedArray`, use `Buffer.copyBytesFrom()`.
51
+ * a `Uint8Array`. This means all other `TypedArray` variants get treated as an
52
+ * `Array`. To create a `Buffer` from the bytes backing a `TypedArray`, use
53
+ * `Buffer.copyBytesFrom()`.
64
54
  *
65
55
  * A `TypeError` will be thrown if `array` is not an `Array` or another type
66
56
  * appropriate for `Buffer.from()` variants.
67
57
  *
68
- * `Buffer.from(array)` and `Buffer.from(string)` may also use the internal `Buffer` pool like `Buffer.allocUnsafe()` does.
58
+ * `Buffer.from(array)` and `Buffer.from(string)` may also use the internal
59
+ * `Buffer` pool like `Buffer.allocUnsafe()` does.
69
60
  * @since v5.10.0
70
61
  */
71
- from<TArrayBuffer extends ArrayBufferLike>(
72
- arrayBuffer: WithImplicitCoercion<TArrayBuffer>,
73
- byteOffset?: number,
74
- length?: number,
75
- ): Buffer<TArrayBuffer>;
62
+ from(array: WithImplicitCoercion<ArrayLike<number>>): Buffer<ArrayBuffer>;
76
63
  /**
77
- * Creates a new Buffer using the passed {data}
78
- * @param data data to create a new Buffer
64
+ * This creates a view of the `ArrayBuffer` without copying the underlying
65
+ * memory. For example, when passed a reference to the `.buffer` property of a
66
+ * `TypedArray` instance, the newly created `Buffer` will share the same
67
+ * allocated memory as the `TypedArray`'s underlying `ArrayBuffer`.
68
+ *
69
+ * ```js
70
+ * import { Buffer } from 'node:buffer';
71
+ *
72
+ * const arr = new Uint16Array(2);
73
+ *
74
+ * arr[0] = 5000;
75
+ * arr[1] = 4000;
76
+ *
77
+ * // Shares memory with `arr`.
78
+ * const buf = Buffer.from(arr.buffer);
79
+ *
80
+ * console.log(buf);
81
+ * // Prints: <Buffer 88 13 a0 0f>
82
+ *
83
+ * // Changing the original Uint16Array changes the Buffer also.
84
+ * arr[1] = 6000;
85
+ *
86
+ * console.log(buf);
87
+ * // Prints: <Buffer 88 13 70 17>
88
+ * ```
89
+ *
90
+ * The optional `byteOffset` and `length` arguments specify a memory range within
91
+ * the `arrayBuffer` that will be shared by the `Buffer`.
92
+ *
93
+ * ```js
94
+ * import { Buffer } from 'node:buffer';
95
+ *
96
+ * const ab = new ArrayBuffer(10);
97
+ * const buf = Buffer.from(ab, 0, 2);
98
+ *
99
+ * console.log(buf.length);
100
+ * // Prints: 2
101
+ * ```
102
+ *
103
+ * A `TypeError` will be thrown if `arrayBuffer` is not an `ArrayBuffer` or a
104
+ * `SharedArrayBuffer` or another type appropriate for `Buffer.from()`
105
+ * variants.
106
+ *
107
+ * It is important to remember that a backing `ArrayBuffer` can cover a range
108
+ * of memory that extends beyond the bounds of a `TypedArray` view. A new
109
+ * `Buffer` created using the `buffer` property of a `TypedArray` may extend
110
+ * beyond the range of the `TypedArray`:
111
+ *
112
+ * ```js
113
+ * import { Buffer } from 'node:buffer';
114
+ *
115
+ * const arrA = Uint8Array.from([0x63, 0x64, 0x65, 0x66]); // 4 elements
116
+ * const arrB = new Uint8Array(arrA.buffer, 1, 2); // 2 elements
117
+ * console.log(arrA.buffer === arrB.buffer); // true
118
+ *
119
+ * const buf = Buffer.from(arrB.buffer);
120
+ * console.log(buf);
121
+ * // Prints: <Buffer 63 64 65 66>
122
+ * ```
123
+ * @since v5.10.0
124
+ * @param arrayBuffer An `ArrayBuffer`, `SharedArrayBuffer`, for example the
125
+ * `.buffer` property of a `TypedArray`.
126
+ * @param byteOffset Index of first byte to expose. **Default:** `0`.
127
+ * @param length Number of bytes to expose. **Default:**
128
+ * `arrayBuffer.byteLength - byteOffset`.
79
129
  */
80
- from(data: Uint8Array | readonly number[]): Buffer<ArrayBuffer>;
81
- from(data: WithImplicitCoercion<Uint8Array | readonly number[] | string>): Buffer<ArrayBuffer>;
130
+ from<TArrayBuffer extends WithImplicitCoercion<ArrayBufferLike>>(
131
+ arrayBuffer: TArrayBuffer,
132
+ byteOffset?: number,
133
+ length?: number,
134
+ ): Buffer<ImplicitArrayBuffer<TArrayBuffer>>;
82
135
  /**
83
- * Creates a new Buffer containing the given JavaScript string {str}.
84
- * If provided, the {encoding} parameter identifies the character encoding.
85
- * If not provided, {encoding} defaults to 'utf8'.
136
+ * Creates a new `Buffer` containing `string`. The `encoding` parameter identifies
137
+ * the character encoding to be used when converting `string` into bytes.
138
+ *
139
+ * ```js
140
+ * import { Buffer } from 'node:buffer';
141
+ *
142
+ * const buf1 = Buffer.from('this is a tést');
143
+ * const buf2 = Buffer.from('7468697320697320612074c3a97374', 'hex');
144
+ *
145
+ * console.log(buf1.toString());
146
+ * // Prints: this is a tést
147
+ * console.log(buf2.toString());
148
+ * // Prints: this is a tést
149
+ * console.log(buf1.toString('latin1'));
150
+ * // Prints: this is a tést
151
+ * ```
152
+ *
153
+ * A `TypeError` will be thrown if `string` is not a string or another type
154
+ * appropriate for `Buffer.from()` variants.
155
+ *
156
+ * `Buffer.from(string)` may also use the internal `Buffer` pool like
157
+ * `Buffer.allocUnsafe()` does.
158
+ * @since v5.10.0
159
+ * @param string A string to encode.
160
+ * @param encoding The encoding of `string`. **Default:** `'utf8'`.
86
161
  */
87
- from(
88
- str:
89
- | WithImplicitCoercion<string>
90
- | {
91
- [Symbol.toPrimitive](hint: "string"): string;
92
- },
93
- encoding?: BufferEncoding,
94
- ): Buffer<ArrayBuffer>;
162
+ from(string: WithImplicitCoercion<string>, encoding?: BufferEncoding): Buffer<ArrayBuffer>;
163
+ from(arrayOrString: WithImplicitCoercion<ArrayLike<number> | string>): Buffer<ArrayBuffer>;
95
164
  /**
96
165
  * Creates a new Buffer using the passed {data}
97
166
  * @param values to create a new Buffer
@@ -381,5 +450,22 @@ declare module "buffer" {
381
450
  */
382
451
  subarray(start?: number, end?: number): Buffer<TArrayBuffer>;
383
452
  }
453
+ // TODO: remove globals in future version
454
+ /**
455
+ * @deprecated This is intended for internal use, and will be removed once `@types/node` no longer supports
456
+ * TypeScript versions earlier than 5.7.
457
+ */
458
+ type NonSharedBuffer = Buffer<ArrayBuffer>;
459
+ /**
460
+ * @deprecated This is intended for internal use, and will be removed once `@types/node` no longer supports
461
+ * TypeScript versions earlier than 5.7.
462
+ */
463
+ type AllowSharedBuffer = Buffer<ArrayBufferLike>;
384
464
  }
465
+ /** @deprecated Use `Buffer.allocUnsafeSlow()` instead. */
466
+ var SlowBuffer: {
467
+ /** @deprecated Use `Buffer.allocUnsafeSlow()` instead. */
468
+ new(size: number): Buffer<ArrayBuffer>;
469
+ prototype: Buffer;
470
+ };
385
471
  }
@@ -59,7 +59,7 @@ declare module "buffer" {
59
59
  * @since v19.4.0, v18.14.0
60
60
  * @param input The input to validate.
61
61
  */
62
- export function isUtf8(input: Buffer | ArrayBuffer | NodeJS.TypedArray): boolean;
62
+ export function isUtf8(input: ArrayBuffer | NodeJS.TypedArray): boolean;
63
63
  /**
64
64
  * This function returns `true` if `input` contains only valid ASCII-encoded data,
65
65
  * including the case in which `input` is empty.
@@ -68,8 +68,8 @@ declare module "buffer" {
68
68
  * @since v19.6.0, v18.15.0
69
69
  * @param input The input to validate.
70
70
  */
71
- export function isAscii(input: Buffer | ArrayBuffer | NodeJS.TypedArray): boolean;
72
- export const INSPECT_MAX_BYTES: number;
71
+ export function isAscii(input: ArrayBuffer | NodeJS.TypedArray): boolean;
72
+ export let INSPECT_MAX_BYTES: number;
73
73
  export const kMaxLength: number;
74
74
  export const kStringMaxLength: number;
75
75
  export const constants: {
@@ -113,12 +113,11 @@ declare module "buffer" {
113
113
  * @param fromEnc The current encoding.
114
114
  * @param toEnc To target encoding.
115
115
  */
116
- export function transcode(source: Uint8Array, fromEnc: TranscodeEncoding, toEnc: TranscodeEncoding): Buffer;
117
- export const SlowBuffer: {
118
- /** @deprecated since v6.0.0, use `Buffer.allocUnsafeSlow()` */
119
- new(size: number): Buffer;
120
- prototype: Buffer;
121
- };
116
+ export function transcode(
117
+ source: Uint8Array,
118
+ fromEnc: TranscodeEncoding,
119
+ toEnc: TranscodeEncoding,
120
+ ): NonSharedBuffer;
122
121
  /**
123
122
  * Resolves a `'blob:nodedata:...'` an associated `Blob` object registered using
124
123
  * a prior call to `URL.createObjectURL()`.
@@ -127,7 +126,7 @@ declare module "buffer" {
127
126
  * @param id A `'blob:nodedata:...` URL string returned by a prior call to `URL.createObjectURL()`.
128
127
  */
129
128
  export function resolveObjectURL(id: string): Blob | undefined;
130
- export { Buffer };
129
+ export { type AllowSharedBuffer, Buffer, type NonSharedBuffer };
131
130
  /**
132
131
  * @experimental
133
132
  */
@@ -238,7 +237,10 @@ declare module "buffer" {
238
237
  }
239
238
  export import atob = globalThis.atob;
240
239
  export import btoa = globalThis.btoa;
241
-
240
+ export type WithImplicitCoercion<T> =
241
+ | T
242
+ | { valueOf(): T }
243
+ | (T extends string ? { [Symbol.toPrimitive](hint: "string"): T } : never);
242
244
  global {
243
245
  namespace NodeJS {
244
246
  export { BufferEncoding };
@@ -257,11 +259,6 @@ declare module "buffer" {
257
259
  | "latin1"
258
260
  | "binary"
259
261
  | "hex";
260
- type WithImplicitCoercion<T> =
261
- | T
262
- | {
263
- valueOf(): T;
264
- };
265
262
  /**
266
263
  * Raw data is stored in instances of the Buffer class.
267
264
  * A Buffer is similar to an array of integers but corresponds to a raw memory allocation outside the V8 heap. A Buffer cannot be resized.
@@ -339,7 +336,7 @@ declare module "buffer" {
339
336
  * @return The number of bytes contained within `string`.
340
337
  */
341
338
  byteLength(
342
- string: string | Buffer | NodeJS.ArrayBufferView | ArrayBuffer | SharedArrayBuffer,
339
+ string: string | NodeJS.ArrayBufferView | ArrayBufferLike,
343
340
  encoding?: BufferEncoding,
344
341
  ): number;
345
342
  /**
@@ -1710,6 +1707,8 @@ declare module "buffer" {
1710
1707
  * @return A reference to `buf`.
1711
1708
  */
1712
1709
  fill(value: string | Uint8Array | number, offset?: number, end?: number, encoding?: BufferEncoding): this;
1710
+ fill(value: string | Uint8Array | number, offset: number, encoding: BufferEncoding): this;
1711
+ fill(value: string | Uint8Array | number, encoding: BufferEncoding): this;
1713
1712
  /**
1714
1713
  * If `value` is:
1715
1714
  *
@@ -1779,6 +1778,7 @@ declare module "buffer" {
1779
1778
  * @return The index of the first occurrence of `value` in `buf`, or `-1` if `buf` does not contain `value`.
1780
1779
  */
1781
1780
  indexOf(value: string | number | Uint8Array, byteOffset?: number, encoding?: BufferEncoding): number;
1781
+ indexOf(value: string | number | Uint8Array, encoding: BufferEncoding): number;
1782
1782
  /**
1783
1783
  * Identical to `buf.indexOf()`, except the last occurrence of `value` is found
1784
1784
  * rather than the first occurrence.
@@ -1847,6 +1847,7 @@ declare module "buffer" {
1847
1847
  * @return The index of the last occurrence of `value` in `buf`, or `-1` if `buf` does not contain `value`.
1848
1848
  */
1849
1849
  lastIndexOf(value: string | number | Uint8Array, byteOffset?: number, encoding?: BufferEncoding): number;
1850
+ lastIndexOf(value: string | number | Uint8Array, encoding: BufferEncoding): number;
1850
1851
  /**
1851
1852
  * Equivalent to `buf.indexOf() !== -1`.
1852
1853
  *
@@ -1877,6 +1878,7 @@ declare module "buffer" {
1877
1878
  * @return `true` if `value` was found in `buf`, `false` otherwise.
1878
1879
  */
1879
1880
  includes(value: string | number | Buffer, byteOffset?: number, encoding?: BufferEncoding): boolean;
1881
+ includes(value: string | number | Buffer, encoding: BufferEncoding): boolean;
1880
1882
  }
1881
1883
  var Buffer: BufferConstructor;
1882
1884
  /**