cloudstructs 0.6.49 → 0.7.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 (178) hide show
  1. package/.jsii +753 -37
  2. package/API.md +38 -2
  3. package/assets/slack-textract/detect.lambda/index.js +26 -8
  4. package/lib/codecommit-mirror/index.js +2 -2
  5. package/lib/dmarc/index.js +1 -1
  6. package/lib/ecs-service-roller/index.js +2 -2
  7. package/lib/email-receiver/receiver.js +1 -1
  8. package/lib/saml-identity-provider/index.js +2 -2
  9. package/lib/slack-app/manifest.js +1 -1
  10. package/lib/slack-app/slack-app.js +2 -2
  11. package/lib/slack-events/index.js +4 -4
  12. package/lib/slack-textract/index.js +1 -1
  13. package/lib/ssl-server-test/index.js +1 -1
  14. package/lib/state-machine-cr-provider/index.js +1 -1
  15. package/lib/static-website/index.js +1 -1
  16. package/lib/toolkit-cleaner/index.js +1 -1
  17. package/lib/url-shortener/index.js +1 -1
  18. package/node_modules/@slack/logger/node_modules/@types/node/README.md +1 -1
  19. package/node_modules/@slack/logger/node_modules/@types/node/crypto.d.ts +9 -1
  20. package/node_modules/@slack/logger/node_modules/@types/node/fs.d.ts +28 -8
  21. package/node_modules/@slack/logger/node_modules/@types/node/package.json +2 -2
  22. package/node_modules/@slack/logger/node_modules/@types/node/string_decoder.d.ts +2 -2
  23. package/node_modules/@slack/logger/node_modules/@types/node/ts4.8/crypto.d.ts +5 -1
  24. package/node_modules/@slack/logger/node_modules/@types/node/ts4.8/fs.d.ts +28 -8
  25. package/node_modules/@slack/logger/node_modules/@types/node/ts4.8/string_decoder.d.ts +2 -2
  26. package/node_modules/@slack/logger/node_modules/@types/node/ts4.8/wasi.d.ts +17 -0
  27. package/node_modules/@slack/logger/node_modules/@types/node/wasi.d.ts +17 -0
  28. package/node_modules/@slack/web-api/dist/methods.d.ts +13 -1
  29. package/node_modules/@slack/web-api/dist/methods.d.ts.map +1 -1
  30. package/node_modules/@slack/web-api/dist/methods.js +4 -0
  31. package/node_modules/@slack/web-api/dist/methods.js.map +1 -1
  32. package/node_modules/@slack/web-api/dist/response/AdminFunctionsListResponse.d.ts +1 -0
  33. package/node_modules/@slack/web-api/dist/response/AdminFunctionsListResponse.d.ts.map +1 -1
  34. package/node_modules/@slack/web-api/dist/response/AppsManifestExportResponse.d.ts +30 -2
  35. package/node_modules/@slack/web-api/dist/response/AppsManifestExportResponse.d.ts.map +1 -1
  36. package/node_modules/@slack/web-api/dist/response/AppsManifestValidateResponse.d.ts +1 -0
  37. package/node_modules/@slack/web-api/dist/response/AppsManifestValidateResponse.d.ts.map +1 -1
  38. package/node_modules/@slack/web-api/dist/response/AuthTestResponse.d.ts +1 -0
  39. package/node_modules/@slack/web-api/dist/response/AuthTestResponse.d.ts.map +1 -1
  40. package/node_modules/@slack/web-api/dist/response/ChatPostMessageResponse.d.ts +4 -0
  41. package/node_modules/@slack/web-api/dist/response/ChatPostMessageResponse.d.ts.map +1 -1
  42. package/node_modules/@slack/web-api/dist/response/ChatScheduleMessageResponse.d.ts +1 -0
  43. package/node_modules/@slack/web-api/dist/response/ChatScheduleMessageResponse.d.ts.map +1 -1
  44. package/node_modules/@slack/web-api/dist/response/ChatUpdateResponse.d.ts +4 -0
  45. package/node_modules/@slack/web-api/dist/response/ChatUpdateResponse.d.ts.map +1 -1
  46. package/node_modules/@slack/web-api/dist/response/ConversationsHistoryResponse.d.ts +4 -0
  47. package/node_modules/@slack/web-api/dist/response/ConversationsHistoryResponse.d.ts.map +1 -1
  48. package/node_modules/@slack/web-api/dist/response/ConversationsOpenResponse.d.ts +1 -0
  49. package/node_modules/@slack/web-api/dist/response/ConversationsOpenResponse.d.ts.map +1 -1
  50. package/node_modules/@slack/web-api/dist/response/ConversationsRepliesResponse.d.ts +4 -0
  51. package/node_modules/@slack/web-api/dist/response/ConversationsRepliesResponse.d.ts.map +1 -1
  52. package/node_modules/@slack/web-api/dist/response/FilesCompleteUploadExternalResponse.d.ts +13 -0
  53. package/node_modules/@slack/web-api/dist/response/FilesCompleteUploadExternalResponse.d.ts.map +1 -1
  54. package/node_modules/@slack/web-api/dist/response/FilesRemoteAddResponse.d.ts +3 -0
  55. package/node_modules/@slack/web-api/dist/response/FilesRemoteAddResponse.d.ts.map +1 -1
  56. package/node_modules/@slack/web-api/dist/response/FilesRemoteAddResponse.js.map +1 -1
  57. package/node_modules/@slack/web-api/dist/response/FilesRemoteInfoResponse.d.ts +3 -0
  58. package/node_modules/@slack/web-api/dist/response/FilesRemoteInfoResponse.d.ts.map +1 -1
  59. package/node_modules/@slack/web-api/dist/response/FilesRemoteInfoResponse.js.map +1 -1
  60. package/node_modules/@slack/web-api/dist/response/FilesRemoteShareResponse.d.ts +3 -0
  61. package/node_modules/@slack/web-api/dist/response/FilesRemoteShareResponse.d.ts.map +1 -1
  62. package/node_modules/@slack/web-api/dist/response/FilesRemoteShareResponse.js.map +1 -1
  63. package/node_modules/@slack/web-api/dist/response/FilesRemoteUpdateResponse.d.ts +3 -0
  64. package/node_modules/@slack/web-api/dist/response/FilesRemoteUpdateResponse.d.ts.map +1 -1
  65. package/node_modules/@slack/web-api/dist/response/FilesRemoteUpdateResponse.js.map +1 -1
  66. package/node_modules/@slack/web-api/dist/response/FilesRevokePublicURLResponse.d.ts +3 -0
  67. package/node_modules/@slack/web-api/dist/response/FilesRevokePublicURLResponse.d.ts.map +1 -1
  68. package/node_modules/@slack/web-api/dist/response/FilesRevokePublicURLResponse.js.map +1 -1
  69. package/node_modules/@slack/web-api/dist/response/FilesSharedPublicURLResponse.d.ts +3 -0
  70. package/node_modules/@slack/web-api/dist/response/FilesSharedPublicURLResponse.d.ts.map +1 -1
  71. package/node_modules/@slack/web-api/dist/response/FilesSharedPublicURLResponse.js.map +1 -1
  72. package/node_modules/@slack/web-api/dist/response/FilesUploadResponse.d.ts +3 -0
  73. package/node_modules/@slack/web-api/dist/response/FilesUploadResponse.d.ts.map +1 -1
  74. package/node_modules/@slack/web-api/dist/response/FilesUploadResponse.js.map +1 -1
  75. package/node_modules/@slack/web-api/dist/response/FunctionsCompleteErrorResponse.d.ts +8 -0
  76. package/node_modules/@slack/web-api/dist/response/FunctionsCompleteErrorResponse.d.ts.map +1 -0
  77. package/node_modules/@slack/web-api/dist/response/FunctionsCompleteErrorResponse.js +12 -0
  78. package/node_modules/@slack/web-api/dist/response/FunctionsCompleteErrorResponse.js.map +1 -0
  79. package/node_modules/@slack/web-api/dist/response/FunctionsCompleteSuccessResponse.d.ts +8 -0
  80. package/node_modules/@slack/web-api/dist/response/FunctionsCompleteSuccessResponse.d.ts.map +1 -0
  81. package/node_modules/@slack/web-api/dist/response/FunctionsCompleteSuccessResponse.js +12 -0
  82. package/node_modules/@slack/web-api/dist/response/FunctionsCompleteSuccessResponse.js.map +1 -0
  83. package/node_modules/@slack/web-api/dist/response/PinsListResponse.d.ts +3 -0
  84. package/node_modules/@slack/web-api/dist/response/PinsListResponse.d.ts.map +1 -1
  85. package/node_modules/@slack/web-api/dist/response/PinsListResponse.js.map +1 -1
  86. package/node_modules/@slack/web-api/dist/response/ReactionsGetResponse.d.ts +1 -0
  87. package/node_modules/@slack/web-api/dist/response/ReactionsGetResponse.d.ts.map +1 -1
  88. package/node_modules/@slack/web-api/dist/response/ReactionsListResponse.d.ts +4 -0
  89. package/node_modules/@slack/web-api/dist/response/ReactionsListResponse.d.ts.map +1 -1
  90. package/node_modules/@slack/web-api/dist/response/RtmStartResponse.d.ts +4 -0
  91. package/node_modules/@slack/web-api/dist/response/RtmStartResponse.d.ts.map +1 -1
  92. package/node_modules/@slack/web-api/dist/response/SearchAllResponse.d.ts +64 -46
  93. package/node_modules/@slack/web-api/dist/response/SearchAllResponse.d.ts.map +1 -1
  94. package/node_modules/@slack/web-api/dist/response/SearchAllResponse.js.map +1 -1
  95. package/node_modules/@slack/web-api/dist/response/SearchFilesResponse.d.ts +127 -18
  96. package/node_modules/@slack/web-api/dist/response/SearchFilesResponse.d.ts.map +1 -1
  97. package/node_modules/@slack/web-api/dist/response/SearchFilesResponse.js +6 -6
  98. package/node_modules/@slack/web-api/dist/response/SearchFilesResponse.js.map +1 -1
  99. package/node_modules/@slack/web-api/dist/response/SearchMessagesResponse.d.ts +4 -0
  100. package/node_modules/@slack/web-api/dist/response/SearchMessagesResponse.d.ts.map +1 -1
  101. package/node_modules/@slack/web-api/dist/response/TeamBillableInfoResponse.d.ts +4 -0
  102. package/node_modules/@slack/web-api/dist/response/TeamBillableInfoResponse.d.ts.map +1 -1
  103. package/node_modules/@slack/web-api/dist/response/TeamProfileGetResponse.d.ts +1 -0
  104. package/node_modules/@slack/web-api/dist/response/TeamProfileGetResponse.d.ts.map +1 -1
  105. package/node_modules/@slack/web-api/dist/response/index.d.ts +2 -0
  106. package/node_modules/@slack/web-api/dist/response/index.d.ts.map +1 -1
  107. package/node_modules/@slack/web-api/node_modules/@types/node/README.md +1 -1
  108. package/node_modules/@slack/web-api/node_modules/@types/node/crypto.d.ts +9 -1
  109. package/node_modules/@slack/web-api/node_modules/@types/node/fs.d.ts +28 -8
  110. package/node_modules/@slack/web-api/node_modules/@types/node/package.json +2 -2
  111. package/node_modules/@slack/web-api/node_modules/@types/node/string_decoder.d.ts +2 -2
  112. package/node_modules/@slack/web-api/node_modules/@types/node/ts4.8/crypto.d.ts +5 -1
  113. package/node_modules/@slack/web-api/node_modules/@types/node/ts4.8/fs.d.ts +28 -8
  114. package/node_modules/@slack/web-api/node_modules/@types/node/ts4.8/string_decoder.d.ts +2 -2
  115. package/node_modules/@slack/web-api/node_modules/@types/node/ts4.8/wasi.d.ts +17 -0
  116. package/node_modules/@slack/web-api/node_modules/@types/node/wasi.d.ts +17 -0
  117. package/node_modules/@slack/web-api/package.json +1 -1
  118. package/node_modules/@types/cacheable-request/node_modules/@types/node/README.md +1 -1
  119. package/node_modules/@types/cacheable-request/node_modules/@types/node/crypto.d.ts +9 -1
  120. package/node_modules/@types/cacheable-request/node_modules/@types/node/fs.d.ts +28 -8
  121. package/node_modules/@types/cacheable-request/node_modules/@types/node/package.json +2 -2
  122. package/node_modules/@types/cacheable-request/node_modules/@types/node/string_decoder.d.ts +2 -2
  123. package/node_modules/@types/cacheable-request/node_modules/@types/node/ts4.8/crypto.d.ts +5 -1
  124. package/node_modules/@types/cacheable-request/node_modules/@types/node/ts4.8/fs.d.ts +28 -8
  125. package/node_modules/@types/cacheable-request/node_modules/@types/node/ts4.8/string_decoder.d.ts +2 -2
  126. package/node_modules/@types/cacheable-request/node_modules/@types/node/ts4.8/wasi.d.ts +17 -0
  127. package/node_modules/@types/cacheable-request/node_modules/@types/node/wasi.d.ts +17 -0
  128. package/node_modules/@types/is-stream/node_modules/@types/node/README.md +1 -1
  129. package/node_modules/@types/is-stream/node_modules/@types/node/crypto.d.ts +9 -1
  130. package/node_modules/@types/is-stream/node_modules/@types/node/fs.d.ts +28 -8
  131. package/node_modules/@types/is-stream/node_modules/@types/node/package.json +2 -2
  132. package/node_modules/@types/is-stream/node_modules/@types/node/string_decoder.d.ts +2 -2
  133. package/node_modules/@types/is-stream/node_modules/@types/node/ts4.8/crypto.d.ts +5 -1
  134. package/node_modules/@types/is-stream/node_modules/@types/node/ts4.8/fs.d.ts +28 -8
  135. package/node_modules/@types/is-stream/node_modules/@types/node/ts4.8/string_decoder.d.ts +2 -2
  136. package/node_modules/@types/is-stream/node_modules/@types/node/ts4.8/wasi.d.ts +17 -0
  137. package/node_modules/@types/is-stream/node_modules/@types/node/wasi.d.ts +17 -0
  138. package/node_modules/@types/keyv/node_modules/@types/node/README.md +1 -1
  139. package/node_modules/@types/keyv/node_modules/@types/node/crypto.d.ts +9 -1
  140. package/node_modules/@types/keyv/node_modules/@types/node/fs.d.ts +28 -8
  141. package/node_modules/@types/keyv/node_modules/@types/node/package.json +2 -2
  142. package/node_modules/@types/keyv/node_modules/@types/node/string_decoder.d.ts +2 -2
  143. package/node_modules/@types/keyv/node_modules/@types/node/ts4.8/crypto.d.ts +5 -1
  144. package/node_modules/@types/keyv/node_modules/@types/node/ts4.8/fs.d.ts +28 -8
  145. package/node_modules/@types/keyv/node_modules/@types/node/ts4.8/string_decoder.d.ts +2 -2
  146. package/node_modules/@types/keyv/node_modules/@types/node/ts4.8/wasi.d.ts +17 -0
  147. package/node_modules/@types/keyv/node_modules/@types/node/wasi.d.ts +17 -0
  148. package/node_modules/@types/responselike/node_modules/@types/node/README.md +1 -1
  149. package/node_modules/@types/responselike/node_modules/@types/node/crypto.d.ts +9 -1
  150. package/node_modules/@types/responselike/node_modules/@types/node/fs.d.ts +28 -8
  151. package/node_modules/@types/responselike/node_modules/@types/node/package.json +2 -2
  152. package/node_modules/@types/responselike/node_modules/@types/node/string_decoder.d.ts +2 -2
  153. package/node_modules/@types/responselike/node_modules/@types/node/ts4.8/crypto.d.ts +5 -1
  154. package/node_modules/@types/responselike/node_modules/@types/node/ts4.8/fs.d.ts +28 -8
  155. package/node_modules/@types/responselike/node_modules/@types/node/ts4.8/string_decoder.d.ts +2 -2
  156. package/node_modules/@types/responselike/node_modules/@types/node/ts4.8/wasi.d.ts +17 -0
  157. package/node_modules/@types/responselike/node_modules/@types/node/wasi.d.ts +17 -0
  158. package/node_modules/axios/CHANGELOG.md +25 -0
  159. package/node_modules/axios/dist/axios.js +366 -6
  160. package/node_modules/axios/dist/axios.js.map +1 -1
  161. package/node_modules/axios/dist/axios.min.js +1 -1
  162. package/node_modules/axios/dist/axios.min.js.map +1 -1
  163. package/node_modules/axios/dist/browser/axios.cjs +27 -6
  164. package/node_modules/axios/dist/browser/axios.cjs.map +1 -1
  165. package/node_modules/axios/dist/esm/axios.js +27 -6
  166. package/node_modules/axios/dist/esm/axios.js.map +1 -1
  167. package/node_modules/axios/dist/esm/axios.min.js +1 -1
  168. package/node_modules/axios/dist/esm/axios.min.js.map +1 -1
  169. package/node_modules/axios/dist/node/axios.cjs +29 -8
  170. package/node_modules/axios/dist/node/axios.cjs.map +1 -1
  171. package/node_modules/axios/index.d.cts +1 -1
  172. package/node_modules/axios/index.d.ts +1 -1
  173. package/node_modules/axios/lib/adapters/http.js +2 -2
  174. package/node_modules/axios/lib/core/Axios.js +25 -1
  175. package/node_modules/axios/lib/defaults/index.js +0 -3
  176. package/node_modules/axios/lib/env/data.js +1 -1
  177. package/node_modules/axios/package.json +1 -1
  178. package/package.json +19 -23
@@ -1920,7 +1920,7 @@ declare module "crypto" {
1920
1920
  * Return a random integer `n` such that `min <= n < max`. This
1921
1921
  * implementation avoids [modulo bias](https://en.wikipedia.org/wiki/Fisher%E2%80%93Yates_shuffle#Modulo_bias).
1922
1922
  *
1923
- * The range (`max - min`) must be less than 248. `min` and `max` must
1923
+ * The range (`max - min`) must be less than 2**48. `min` and `max` must
1924
1924
  * be [safe integers](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Number/isSafeInteger).
1925
1925
  *
1926
1926
  * If the `callback` function is not provided, the random integer is
@@ -4473,6 +4473,14 @@ declare module "crypto" {
4473
4473
  ): Promise<ArrayBuffer>;
4474
4474
  }
4475
4475
  }
4476
+
4477
+ global {
4478
+ var crypto: typeof globalThis extends {
4479
+ crypto: infer T;
4480
+ onmessage: any;
4481
+ } ? T
4482
+ : webcrypto.Crypto;
4483
+ }
4476
4484
  }
4477
4485
  declare module "node:crypto" {
4478
4486
  export * from "crypto";
@@ -281,7 +281,7 @@ declare module "fs" {
281
281
  * Asynchronously close the directory's underlying resource handle.
282
282
  * Subsequent reads will result in errors.
283
283
  *
284
- * A promise is returned that will be resolved after the resource has been
284
+ * A promise is returned that will be fulfilled after the resource has been
285
285
  * closed.
286
286
  * @since v12.12.0
287
287
  */
@@ -296,7 +296,7 @@ declare module "fs" {
296
296
  /**
297
297
  * Asynchronously read the next directory entry via [`readdir(3)`](http://man7.org/linux/man-pages/man3/readdir.3.html) as an `fs.Dirent`.
298
298
  *
299
- * A promise is returned that will be resolved with an `fs.Dirent`, or `null`if there are no more directory entries to read.
299
+ * A promise is returned that will be fulfilled with an `fs.Dirent`, or `null`if there are no more directory entries to read.
300
300
  *
301
301
  * Directory entries returned by this function are in no particular order as
302
302
  * provided by the operating system's underlying directory mechanisms.
@@ -354,31 +354,51 @@ declare module "fs" {
354
354
  * @since v0.5.8
355
355
  */
356
356
  close(): void;
357
+ /**
358
+ * When called, requests that the Node.js event loop _not_ exit so long as the `fs.FSWatcher` is active. Calling `watcher.ref()` multiple times will have
359
+ * no effect.
360
+ *
361
+ * By default, all `fs.FSWatcher` objects are "ref'ed", making it normally
362
+ * unnecessary to call `watcher.ref()` unless `watcher.unref()` had been
363
+ * called previously.
364
+ * @since v14.3.0, v12.20.0
365
+ */
366
+ ref(): this;
367
+ /**
368
+ * When called, the active `fs.FSWatcher` object will not require the Node.js
369
+ * event loop to remain active. If there is no other activity keeping the
370
+ * event loop running, the process may exit before the `fs.FSWatcher` object's
371
+ * callback is invoked. Calling `watcher.unref()` multiple times will have
372
+ * no effect.
373
+ * @since v14.3.0, v12.20.0
374
+ */
375
+ unref(): this;
357
376
  /**
358
377
  * events.EventEmitter
359
378
  * 1. change
360
- * 2. error
379
+ * 2. close
380
+ * 3. error
361
381
  */
362
382
  addListener(event: string, listener: (...args: any[]) => void): this;
363
383
  addListener(event: "change", listener: (eventType: string, filename: string | Buffer) => void): this;
364
- addListener(event: "error", listener: (error: Error) => void): this;
365
384
  addListener(event: "close", listener: () => void): this;
385
+ addListener(event: "error", listener: (error: Error) => void): this;
366
386
  on(event: string, listener: (...args: any[]) => void): this;
367
387
  on(event: "change", listener: (eventType: string, filename: string | Buffer) => void): this;
368
- on(event: "error", listener: (error: Error) => void): this;
369
388
  on(event: "close", listener: () => void): this;
389
+ on(event: "error", listener: (error: Error) => void): this;
370
390
  once(event: string, listener: (...args: any[]) => void): this;
371
391
  once(event: "change", listener: (eventType: string, filename: string | Buffer) => void): this;
372
- once(event: "error", listener: (error: Error) => void): this;
373
392
  once(event: "close", listener: () => void): this;
393
+ once(event: "error", listener: (error: Error) => void): this;
374
394
  prependListener(event: string, listener: (...args: any[]) => void): this;
375
395
  prependListener(event: "change", listener: (eventType: string, filename: string | Buffer) => void): this;
376
- prependListener(event: "error", listener: (error: Error) => void): this;
377
396
  prependListener(event: "close", listener: () => void): this;
397
+ prependListener(event: "error", listener: (error: Error) => void): this;
378
398
  prependOnceListener(event: string, listener: (...args: any[]) => void): this;
379
399
  prependOnceListener(event: "change", listener: (eventType: string, filename: string | Buffer) => void): this;
380
- prependOnceListener(event: "error", listener: (error: Error) => void): this;
381
400
  prependOnceListener(event: "close", listener: () => void): this;
401
+ prependOnceListener(event: "error", listener: (error: Error) => void): this;
382
402
  }
383
403
  /**
384
404
  * Instances of `fs.ReadStream` are created and returned using the {@link createReadStream} function.
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@types/node",
3
- "version": "20.11.5",
3
+ "version": "20.11.10",
4
4
  "description": "TypeScript definitions for node",
5
5
  "homepage": "https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/node",
6
6
  "license": "MIT",
@@ -224,7 +224,7 @@
224
224
  "dependencies": {
225
225
  "undici-types": "~5.26.4"
226
226
  },
227
- "typesPublisherContentHash": "c9a4069d05b7343bb761470d8e688010c07b955f2242b07b710e067f1720f96a",
227
+ "typesPublisherContentHash": "897aa7f7b2ef28b325dc21b77e81fb89f7e55a10a0d587e1d8ed0c8128302e0b",
228
228
  "typeScriptVersion": "4.6",
229
229
  "nonNpm": true
230
230
  }
@@ -48,7 +48,7 @@ declare module "string_decoder" {
48
48
  * @since v0.1.99
49
49
  * @param buffer The bytes to decode.
50
50
  */
51
- write(buffer: Buffer): string;
51
+ write(buffer: string | Buffer | NodeJS.ArrayBufferView): string;
52
52
  /**
53
53
  * Returns any remaining input stored in the internal buffer as a string. Bytes
54
54
  * representing incomplete UTF-8 and UTF-16 characters will be replaced with
@@ -59,7 +59,7 @@ declare module "string_decoder" {
59
59
  * @since v0.9.3
60
60
  * @param buffer The bytes to decode.
61
61
  */
62
- end(buffer?: Buffer): string;
62
+ end(buffer?: string | Buffer | NodeJS.ArrayBufferView): string;
63
63
  }
64
64
  }
65
65
  declare module "node:string_decoder" {
@@ -1920,7 +1920,7 @@ declare module "crypto" {
1920
1920
  * Return a random integer `n` such that `min <= n < max`. This
1921
1921
  * implementation avoids [modulo bias](https://en.wikipedia.org/wiki/Fisher%E2%80%93Yates_shuffle#Modulo_bias).
1922
1922
  *
1923
- * The range (`max - min`) must be less than 248. `min` and `max` must
1923
+ * The range (`max - min`) must be less than 2**48. `min` and `max` must
1924
1924
  * be [safe integers](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Number/isSafeInteger).
1925
1925
  *
1926
1926
  * If the `callback` function is not provided, the random integer is
@@ -4472,6 +4472,10 @@ declare module "crypto" {
4472
4472
  ): Promise<ArrayBuffer>;
4473
4473
  }
4474
4474
  }
4475
+
4476
+ global {
4477
+ var crypto: webcrypto.Crypto;
4478
+ }
4475
4479
  }
4476
4480
  declare module "node:crypto" {
4477
4481
  export * from "crypto";
@@ -281,7 +281,7 @@ declare module "fs" {
281
281
  * Asynchronously close the directory's underlying resource handle.
282
282
  * Subsequent reads will result in errors.
283
283
  *
284
- * A promise is returned that will be resolved after the resource has been
284
+ * A promise is returned that will be fulfilled after the resource has been
285
285
  * closed.
286
286
  * @since v12.12.0
287
287
  */
@@ -296,7 +296,7 @@ declare module "fs" {
296
296
  /**
297
297
  * Asynchronously read the next directory entry via [`readdir(3)`](http://man7.org/linux/man-pages/man3/readdir.3.html) as an `fs.Dirent`.
298
298
  *
299
- * A promise is returned that will be resolved with an `fs.Dirent`, or `null`if there are no more directory entries to read.
299
+ * A promise is returned that will be fulfilled with an `fs.Dirent`, or `null`if there are no more directory entries to read.
300
300
  *
301
301
  * Directory entries returned by this function are in no particular order as
302
302
  * provided by the operating system's underlying directory mechanisms.
@@ -354,31 +354,51 @@ declare module "fs" {
354
354
  * @since v0.5.8
355
355
  */
356
356
  close(): void;
357
+ /**
358
+ * When called, requests that the Node.js event loop _not_ exit so long as the `fs.FSWatcher` is active. Calling `watcher.ref()` multiple times will have
359
+ * no effect.
360
+ *
361
+ * By default, all `fs.FSWatcher` objects are "ref'ed", making it normally
362
+ * unnecessary to call `watcher.ref()` unless `watcher.unref()` had been
363
+ * called previously.
364
+ * @since v14.3.0, v12.20.0
365
+ */
366
+ ref(): this;
367
+ /**
368
+ * When called, the active `fs.FSWatcher` object will not require the Node.js
369
+ * event loop to remain active. If there is no other activity keeping the
370
+ * event loop running, the process may exit before the `fs.FSWatcher` object's
371
+ * callback is invoked. Calling `watcher.unref()` multiple times will have
372
+ * no effect.
373
+ * @since v14.3.0, v12.20.0
374
+ */
375
+ unref(): this;
357
376
  /**
358
377
  * events.EventEmitter
359
378
  * 1. change
360
- * 2. error
379
+ * 2. close
380
+ * 3. error
361
381
  */
362
382
  addListener(event: string, listener: (...args: any[]) => void): this;
363
383
  addListener(event: "change", listener: (eventType: string, filename: string | Buffer) => void): this;
364
- addListener(event: "error", listener: (error: Error) => void): this;
365
384
  addListener(event: "close", listener: () => void): this;
385
+ addListener(event: "error", listener: (error: Error) => void): this;
366
386
  on(event: string, listener: (...args: any[]) => void): this;
367
387
  on(event: "change", listener: (eventType: string, filename: string | Buffer) => void): this;
368
- on(event: "error", listener: (error: Error) => void): this;
369
388
  on(event: "close", listener: () => void): this;
389
+ on(event: "error", listener: (error: Error) => void): this;
370
390
  once(event: string, listener: (...args: any[]) => void): this;
371
391
  once(event: "change", listener: (eventType: string, filename: string | Buffer) => void): this;
372
- once(event: "error", listener: (error: Error) => void): this;
373
392
  once(event: "close", listener: () => void): this;
393
+ once(event: "error", listener: (error: Error) => void): this;
374
394
  prependListener(event: string, listener: (...args: any[]) => void): this;
375
395
  prependListener(event: "change", listener: (eventType: string, filename: string | Buffer) => void): this;
376
- prependListener(event: "error", listener: (error: Error) => void): this;
377
396
  prependListener(event: "close", listener: () => void): this;
397
+ prependListener(event: "error", listener: (error: Error) => void): this;
378
398
  prependOnceListener(event: string, listener: (...args: any[]) => void): this;
379
399
  prependOnceListener(event: "change", listener: (eventType: string, filename: string | Buffer) => void): this;
380
- prependOnceListener(event: "error", listener: (error: Error) => void): this;
381
400
  prependOnceListener(event: "close", listener: () => void): this;
401
+ prependOnceListener(event: "error", listener: (error: Error) => void): this;
382
402
  }
383
403
  /**
384
404
  * Instances of `fs.ReadStream` are created and returned using the {@link createReadStream} function.
@@ -48,7 +48,7 @@ declare module "string_decoder" {
48
48
  * @since v0.1.99
49
49
  * @param buffer The bytes to decode.
50
50
  */
51
- write(buffer: Buffer): string;
51
+ write(buffer: string | Buffer | NodeJS.ArrayBufferView): string;
52
52
  /**
53
53
  * Returns any remaining input stored in the internal buffer as a string. Bytes
54
54
  * representing incomplete UTF-8 and UTF-16 characters will be replaced with
@@ -59,7 +59,7 @@ declare module "string_decoder" {
59
59
  * @since v0.9.3
60
60
  * @param buffer The bytes to decode.
61
61
  */
62
- end(buffer?: Buffer): string;
62
+ end(buffer?: string | Buffer | NodeJS.ArrayBufferView): string;
63
63
  }
64
64
  }
65
65
  declare module "node:string_decoder" {
@@ -127,6 +127,23 @@ declare module "wasi" {
127
127
  */
128
128
  class WASI {
129
129
  constructor(options?: WASIOptions);
130
+ /**
131
+ * Return an import object that can be passed to `WebAssembly.instantiate()` if no other WASM imports are needed beyond those provided by WASI.
132
+ *
133
+ * If version `unstable` was passed into the constructor it will return:
134
+ *
135
+ * ```js
136
+ * { wasi_unstable: wasi.wasiImport }
137
+ * ```
138
+ *
139
+ * If version `preview1` was passed into the constructor or no version was specified it will return:
140
+ *
141
+ * ```js
142
+ * { wasi_snapshot_preview1: wasi.wasiImport }
143
+ * ```
144
+ * @since v19.8.0
145
+ */
146
+ getImportObject(): object;
130
147
  /**
131
148
  * Attempt to begin execution of `instance` as a WASI command by invoking its`_start()` export. If `instance` does not contain a `_start()` export, or if`instance` contains an `_initialize()`
132
149
  * export, then an exception is thrown.
@@ -127,6 +127,23 @@ declare module "wasi" {
127
127
  */
128
128
  class WASI {
129
129
  constructor(options?: WASIOptions);
130
+ /**
131
+ * Return an import object that can be passed to `WebAssembly.instantiate()` if no other WASM imports are needed beyond those provided by WASI.
132
+ *
133
+ * If version `unstable` was passed into the constructor it will return:
134
+ *
135
+ * ```js
136
+ * { wasi_unstable: wasi.wasiImport }
137
+ * ```
138
+ *
139
+ * If version `preview1` was passed into the constructor or no version was specified it will return:
140
+ *
141
+ * ```js
142
+ * { wasi_snapshot_preview1: wasi.wasiImport }
143
+ * ```
144
+ * @since v19.8.0
145
+ */
146
+ getImportObject(): object;
130
147
  /**
131
148
  * Attempt to begin execution of `instance` as a WASI command by invoking its`_start()` export. If `instance` does not contain a `_start()` export, or if`instance` contains an `_initialize()`
132
149
  * export, then an exception is thrown.
@@ -8,7 +8,7 @@ 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.
9
9
 
10
10
  ### Additional Details
11
- * Last updated: Wed, 17 Jan 2024 06:36:16 GMT
11
+ * Last updated: Sun, 28 Jan 2024 19:35:24 GMT
12
12
  * Dependencies: [undici-types](https://npmjs.com/package/undici-types)
13
13
 
14
14
  # Credits
@@ -1920,7 +1920,7 @@ declare module "crypto" {
1920
1920
  * Return a random integer `n` such that `min <= n < max`. This
1921
1921
  * implementation avoids [modulo bias](https://en.wikipedia.org/wiki/Fisher%E2%80%93Yates_shuffle#Modulo_bias).
1922
1922
  *
1923
- * The range (`max - min`) must be less than 248. `min` and `max` must
1923
+ * The range (`max - min`) must be less than 2**48. `min` and `max` must
1924
1924
  * be [safe integers](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Number/isSafeInteger).
1925
1925
  *
1926
1926
  * If the `callback` function is not provided, the random integer is
@@ -4473,6 +4473,14 @@ declare module "crypto" {
4473
4473
  ): Promise<ArrayBuffer>;
4474
4474
  }
4475
4475
  }
4476
+
4477
+ global {
4478
+ var crypto: typeof globalThis extends {
4479
+ crypto: infer T;
4480
+ onmessage: any;
4481
+ } ? T
4482
+ : webcrypto.Crypto;
4483
+ }
4476
4484
  }
4477
4485
  declare module "node:crypto" {
4478
4486
  export * from "crypto";
@@ -281,7 +281,7 @@ declare module "fs" {
281
281
  * Asynchronously close the directory's underlying resource handle.
282
282
  * Subsequent reads will result in errors.
283
283
  *
284
- * A promise is returned that will be resolved after the resource has been
284
+ * A promise is returned that will be fulfilled after the resource has been
285
285
  * closed.
286
286
  * @since v12.12.0
287
287
  */
@@ -296,7 +296,7 @@ declare module "fs" {
296
296
  /**
297
297
  * Asynchronously read the next directory entry via [`readdir(3)`](http://man7.org/linux/man-pages/man3/readdir.3.html) as an `fs.Dirent`.
298
298
  *
299
- * A promise is returned that will be resolved with an `fs.Dirent`, or `null`if there are no more directory entries to read.
299
+ * A promise is returned that will be fulfilled with an `fs.Dirent`, or `null`if there are no more directory entries to read.
300
300
  *
301
301
  * Directory entries returned by this function are in no particular order as
302
302
  * provided by the operating system's underlying directory mechanisms.
@@ -354,31 +354,51 @@ declare module "fs" {
354
354
  * @since v0.5.8
355
355
  */
356
356
  close(): void;
357
+ /**
358
+ * When called, requests that the Node.js event loop _not_ exit so long as the `fs.FSWatcher` is active. Calling `watcher.ref()` multiple times will have
359
+ * no effect.
360
+ *
361
+ * By default, all `fs.FSWatcher` objects are "ref'ed", making it normally
362
+ * unnecessary to call `watcher.ref()` unless `watcher.unref()` had been
363
+ * called previously.
364
+ * @since v14.3.0, v12.20.0
365
+ */
366
+ ref(): this;
367
+ /**
368
+ * When called, the active `fs.FSWatcher` object will not require the Node.js
369
+ * event loop to remain active. If there is no other activity keeping the
370
+ * event loop running, the process may exit before the `fs.FSWatcher` object's
371
+ * callback is invoked. Calling `watcher.unref()` multiple times will have
372
+ * no effect.
373
+ * @since v14.3.0, v12.20.0
374
+ */
375
+ unref(): this;
357
376
  /**
358
377
  * events.EventEmitter
359
378
  * 1. change
360
- * 2. error
379
+ * 2. close
380
+ * 3. error
361
381
  */
362
382
  addListener(event: string, listener: (...args: any[]) => void): this;
363
383
  addListener(event: "change", listener: (eventType: string, filename: string | Buffer) => void): this;
364
- addListener(event: "error", listener: (error: Error) => void): this;
365
384
  addListener(event: "close", listener: () => void): this;
385
+ addListener(event: "error", listener: (error: Error) => void): this;
366
386
  on(event: string, listener: (...args: any[]) => void): this;
367
387
  on(event: "change", listener: (eventType: string, filename: string | Buffer) => void): this;
368
- on(event: "error", listener: (error: Error) => void): this;
369
388
  on(event: "close", listener: () => void): this;
389
+ on(event: "error", listener: (error: Error) => void): this;
370
390
  once(event: string, listener: (...args: any[]) => void): this;
371
391
  once(event: "change", listener: (eventType: string, filename: string | Buffer) => void): this;
372
- once(event: "error", listener: (error: Error) => void): this;
373
392
  once(event: "close", listener: () => void): this;
393
+ once(event: "error", listener: (error: Error) => void): this;
374
394
  prependListener(event: string, listener: (...args: any[]) => void): this;
375
395
  prependListener(event: "change", listener: (eventType: string, filename: string | Buffer) => void): this;
376
- prependListener(event: "error", listener: (error: Error) => void): this;
377
396
  prependListener(event: "close", listener: () => void): this;
397
+ prependListener(event: "error", listener: (error: Error) => void): this;
378
398
  prependOnceListener(event: string, listener: (...args: any[]) => void): this;
379
399
  prependOnceListener(event: "change", listener: (eventType: string, filename: string | Buffer) => void): this;
380
- prependOnceListener(event: "error", listener: (error: Error) => void): this;
381
400
  prependOnceListener(event: "close", listener: () => void): this;
401
+ prependOnceListener(event: "error", listener: (error: Error) => void): this;
382
402
  }
383
403
  /**
384
404
  * Instances of `fs.ReadStream` are created and returned using the {@link createReadStream} function.
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@types/node",
3
- "version": "20.11.5",
3
+ "version": "20.11.10",
4
4
  "description": "TypeScript definitions for node",
5
5
  "homepage": "https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/node",
6
6
  "license": "MIT",
@@ -224,7 +224,7 @@
224
224
  "dependencies": {
225
225
  "undici-types": "~5.26.4"
226
226
  },
227
- "typesPublisherContentHash": "c9a4069d05b7343bb761470d8e688010c07b955f2242b07b710e067f1720f96a",
227
+ "typesPublisherContentHash": "897aa7f7b2ef28b325dc21b77e81fb89f7e55a10a0d587e1d8ed0c8128302e0b",
228
228
  "typeScriptVersion": "4.6",
229
229
  "nonNpm": true
230
230
  }
@@ -48,7 +48,7 @@ declare module "string_decoder" {
48
48
  * @since v0.1.99
49
49
  * @param buffer The bytes to decode.
50
50
  */
51
- write(buffer: Buffer): string;
51
+ write(buffer: string | Buffer | NodeJS.ArrayBufferView): string;
52
52
  /**
53
53
  * Returns any remaining input stored in the internal buffer as a string. Bytes
54
54
  * representing incomplete UTF-8 and UTF-16 characters will be replaced with
@@ -59,7 +59,7 @@ declare module "string_decoder" {
59
59
  * @since v0.9.3
60
60
  * @param buffer The bytes to decode.
61
61
  */
62
- end(buffer?: Buffer): string;
62
+ end(buffer?: string | Buffer | NodeJS.ArrayBufferView): string;
63
63
  }
64
64
  }
65
65
  declare module "node:string_decoder" {
@@ -1920,7 +1920,7 @@ declare module "crypto" {
1920
1920
  * Return a random integer `n` such that `min <= n < max`. This
1921
1921
  * implementation avoids [modulo bias](https://en.wikipedia.org/wiki/Fisher%E2%80%93Yates_shuffle#Modulo_bias).
1922
1922
  *
1923
- * The range (`max - min`) must be less than 248. `min` and `max` must
1923
+ * The range (`max - min`) must be less than 2**48. `min` and `max` must
1924
1924
  * be [safe integers](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Number/isSafeInteger).
1925
1925
  *
1926
1926
  * If the `callback` function is not provided, the random integer is
@@ -4472,6 +4472,10 @@ declare module "crypto" {
4472
4472
  ): Promise<ArrayBuffer>;
4473
4473
  }
4474
4474
  }
4475
+
4476
+ global {
4477
+ var crypto: webcrypto.Crypto;
4478
+ }
4475
4479
  }
4476
4480
  declare module "node:crypto" {
4477
4481
  export * from "crypto";
@@ -281,7 +281,7 @@ declare module "fs" {
281
281
  * Asynchronously close the directory's underlying resource handle.
282
282
  * Subsequent reads will result in errors.
283
283
  *
284
- * A promise is returned that will be resolved after the resource has been
284
+ * A promise is returned that will be fulfilled after the resource has been
285
285
  * closed.
286
286
  * @since v12.12.0
287
287
  */
@@ -296,7 +296,7 @@ declare module "fs" {
296
296
  /**
297
297
  * Asynchronously read the next directory entry via [`readdir(3)`](http://man7.org/linux/man-pages/man3/readdir.3.html) as an `fs.Dirent`.
298
298
  *
299
- * A promise is returned that will be resolved with an `fs.Dirent`, or `null`if there are no more directory entries to read.
299
+ * A promise is returned that will be fulfilled with an `fs.Dirent`, or `null`if there are no more directory entries to read.
300
300
  *
301
301
  * Directory entries returned by this function are in no particular order as
302
302
  * provided by the operating system's underlying directory mechanisms.
@@ -354,31 +354,51 @@ declare module "fs" {
354
354
  * @since v0.5.8
355
355
  */
356
356
  close(): void;
357
+ /**
358
+ * When called, requests that the Node.js event loop _not_ exit so long as the `fs.FSWatcher` is active. Calling `watcher.ref()` multiple times will have
359
+ * no effect.
360
+ *
361
+ * By default, all `fs.FSWatcher` objects are "ref'ed", making it normally
362
+ * unnecessary to call `watcher.ref()` unless `watcher.unref()` had been
363
+ * called previously.
364
+ * @since v14.3.0, v12.20.0
365
+ */
366
+ ref(): this;
367
+ /**
368
+ * When called, the active `fs.FSWatcher` object will not require the Node.js
369
+ * event loop to remain active. If there is no other activity keeping the
370
+ * event loop running, the process may exit before the `fs.FSWatcher` object's
371
+ * callback is invoked. Calling `watcher.unref()` multiple times will have
372
+ * no effect.
373
+ * @since v14.3.0, v12.20.0
374
+ */
375
+ unref(): this;
357
376
  /**
358
377
  * events.EventEmitter
359
378
  * 1. change
360
- * 2. error
379
+ * 2. close
380
+ * 3. error
361
381
  */
362
382
  addListener(event: string, listener: (...args: any[]) => void): this;
363
383
  addListener(event: "change", listener: (eventType: string, filename: string | Buffer) => void): this;
364
- addListener(event: "error", listener: (error: Error) => void): this;
365
384
  addListener(event: "close", listener: () => void): this;
385
+ addListener(event: "error", listener: (error: Error) => void): this;
366
386
  on(event: string, listener: (...args: any[]) => void): this;
367
387
  on(event: "change", listener: (eventType: string, filename: string | Buffer) => void): this;
368
- on(event: "error", listener: (error: Error) => void): this;
369
388
  on(event: "close", listener: () => void): this;
389
+ on(event: "error", listener: (error: Error) => void): this;
370
390
  once(event: string, listener: (...args: any[]) => void): this;
371
391
  once(event: "change", listener: (eventType: string, filename: string | Buffer) => void): this;
372
- once(event: "error", listener: (error: Error) => void): this;
373
392
  once(event: "close", listener: () => void): this;
393
+ once(event: "error", listener: (error: Error) => void): this;
374
394
  prependListener(event: string, listener: (...args: any[]) => void): this;
375
395
  prependListener(event: "change", listener: (eventType: string, filename: string | Buffer) => void): this;
376
- prependListener(event: "error", listener: (error: Error) => void): this;
377
396
  prependListener(event: "close", listener: () => void): this;
397
+ prependListener(event: "error", listener: (error: Error) => void): this;
378
398
  prependOnceListener(event: string, listener: (...args: any[]) => void): this;
379
399
  prependOnceListener(event: "change", listener: (eventType: string, filename: string | Buffer) => void): this;
380
- prependOnceListener(event: "error", listener: (error: Error) => void): this;
381
400
  prependOnceListener(event: "close", listener: () => void): this;
401
+ prependOnceListener(event: "error", listener: (error: Error) => void): this;
382
402
  }
383
403
  /**
384
404
  * Instances of `fs.ReadStream` are created and returned using the {@link createReadStream} function.
@@ -48,7 +48,7 @@ declare module "string_decoder" {
48
48
  * @since v0.1.99
49
49
  * @param buffer The bytes to decode.
50
50
  */
51
- write(buffer: Buffer): string;
51
+ write(buffer: string | Buffer | NodeJS.ArrayBufferView): string;
52
52
  /**
53
53
  * Returns any remaining input stored in the internal buffer as a string. Bytes
54
54
  * representing incomplete UTF-8 and UTF-16 characters will be replaced with
@@ -59,7 +59,7 @@ declare module "string_decoder" {
59
59
  * @since v0.9.3
60
60
  * @param buffer The bytes to decode.
61
61
  */
62
- end(buffer?: Buffer): string;
62
+ end(buffer?: string | Buffer | NodeJS.ArrayBufferView): string;
63
63
  }
64
64
  }
65
65
  declare module "node:string_decoder" {
@@ -127,6 +127,23 @@ declare module "wasi" {
127
127
  */
128
128
  class WASI {
129
129
  constructor(options?: WASIOptions);
130
+ /**
131
+ * Return an import object that can be passed to `WebAssembly.instantiate()` if no other WASM imports are needed beyond those provided by WASI.
132
+ *
133
+ * If version `unstable` was passed into the constructor it will return:
134
+ *
135
+ * ```js
136
+ * { wasi_unstable: wasi.wasiImport }
137
+ * ```
138
+ *
139
+ * If version `preview1` was passed into the constructor or no version was specified it will return:
140
+ *
141
+ * ```js
142
+ * { wasi_snapshot_preview1: wasi.wasiImport }
143
+ * ```
144
+ * @since v19.8.0
145
+ */
146
+ getImportObject(): object;
130
147
  /**
131
148
  * Attempt to begin execution of `instance` as a WASI command by invoking its`_start()` export. If `instance` does not contain a `_start()` export, or if`instance` contains an `_initialize()`
132
149
  * export, then an exception is thrown.
@@ -127,6 +127,23 @@ declare module "wasi" {
127
127
  */
128
128
  class WASI {
129
129
  constructor(options?: WASIOptions);
130
+ /**
131
+ * Return an import object that can be passed to `WebAssembly.instantiate()` if no other WASM imports are needed beyond those provided by WASI.
132
+ *
133
+ * If version `unstable` was passed into the constructor it will return:
134
+ *
135
+ * ```js
136
+ * { wasi_unstable: wasi.wasiImport }
137
+ * ```
138
+ *
139
+ * If version `preview1` was passed into the constructor or no version was specified it will return:
140
+ *
141
+ * ```js
142
+ * { wasi_snapshot_preview1: wasi.wasiImport }
143
+ * ```
144
+ * @since v19.8.0
145
+ */
146
+ getImportObject(): object;
130
147
  /**
131
148
  * Attempt to begin execution of `instance` as a WASI command by invoking its`_start()` export. If `instance` does not contain a `_start()` export, or if`instance` contains an `_initialize()`
132
149
  * export, then an exception is thrown.
@@ -8,7 +8,7 @@ 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.
9
9
 
10
10
  ### Additional Details
11
- * Last updated: Wed, 17 Jan 2024 06:36:16 GMT
11
+ * Last updated: Sun, 28 Jan 2024 19:35:24 GMT
12
12
  * Dependencies: [undici-types](https://npmjs.com/package/undici-types)
13
13
 
14
14
  # Credits
@@ -1920,7 +1920,7 @@ declare module "crypto" {
1920
1920
  * Return a random integer `n` such that `min <= n < max`. This
1921
1921
  * implementation avoids [modulo bias](https://en.wikipedia.org/wiki/Fisher%E2%80%93Yates_shuffle#Modulo_bias).
1922
1922
  *
1923
- * The range (`max - min`) must be less than 248. `min` and `max` must
1923
+ * The range (`max - min`) must be less than 2**48. `min` and `max` must
1924
1924
  * be [safe integers](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Number/isSafeInteger).
1925
1925
  *
1926
1926
  * If the `callback` function is not provided, the random integer is
@@ -4473,6 +4473,14 @@ declare module "crypto" {
4473
4473
  ): Promise<ArrayBuffer>;
4474
4474
  }
4475
4475
  }
4476
+
4477
+ global {
4478
+ var crypto: typeof globalThis extends {
4479
+ crypto: infer T;
4480
+ onmessage: any;
4481
+ } ? T
4482
+ : webcrypto.Crypto;
4483
+ }
4476
4484
  }
4477
4485
  declare module "node:crypto" {
4478
4486
  export * from "crypto";