cloudstructs 0.9.27 → 0.9.29

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 (460) hide show
  1. package/.jsii +4 -4
  2. package/assets/slack-textract/detect.lambda/index.js +929 -51
  3. package/lib/codecommit-mirror/index.js +2 -2
  4. package/lib/dmarc/index.js +1 -1
  5. package/lib/ecs-service-roller/index.js +2 -2
  6. package/lib/email-receiver/receiver.js +1 -1
  7. package/lib/mjml-template/index.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 +1 -1
  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/@babel/runtime/helpers/esm/objectWithoutProperties.js +2 -2
  19. package/node_modules/@babel/runtime/helpers/esm/objectWithoutPropertiesLoose.js +1 -1
  20. package/node_modules/@babel/runtime/helpers/esm/wrapRegExp.js +4 -3
  21. package/node_modules/@babel/runtime/helpers/objectWithoutProperties.js +2 -2
  22. package/node_modules/@babel/runtime/helpers/objectWithoutPropertiesLoose.js +1 -1
  23. package/node_modules/@babel/runtime/helpers/wrapRegExp.js +4 -3
  24. package/node_modules/@babel/runtime/package.json +1 -1
  25. package/node_modules/@slack/logger/node_modules/@types/node/README.md +1 -1
  26. package/node_modules/@slack/logger/node_modules/@types/node/assert.d.ts +55 -0
  27. package/node_modules/@slack/logger/node_modules/@types/node/buffer.buffer.d.ts +114 -39
  28. package/node_modules/@slack/logger/node_modules/@types/node/buffer.d.ts +4 -11
  29. package/node_modules/@slack/logger/node_modules/@types/node/constants.d.ts +14 -12
  30. package/node_modules/@slack/logger/node_modules/@types/node/crypto.d.ts +36 -1
  31. package/node_modules/@slack/logger/node_modules/@types/node/dgram.d.ts +10 -7
  32. package/node_modules/@slack/logger/node_modules/@types/node/fs/promises.d.ts +2 -2
  33. package/node_modules/@slack/logger/node_modules/@types/node/fs.d.ts +45 -98
  34. package/node_modules/@slack/logger/node_modules/@types/node/globals.d.ts +0 -57
  35. package/node_modules/@slack/logger/node_modules/@types/node/http.d.ts +1 -0
  36. package/node_modules/@slack/logger/node_modules/@types/node/module.d.ts +530 -237
  37. package/node_modules/@slack/logger/node_modules/@types/node/net.d.ts +30 -5
  38. package/node_modules/@slack/logger/node_modules/@types/node/package.json +2 -2
  39. package/node_modules/@slack/logger/node_modules/@types/node/perf_hooks.d.ts +5 -0
  40. package/node_modules/@slack/logger/node_modules/@types/node/process.d.ts +54 -4
  41. package/node_modules/@slack/logger/node_modules/@types/node/sea.d.ts +1 -1
  42. package/node_modules/@slack/logger/node_modules/@types/node/sqlite.d.ts +207 -2
  43. package/node_modules/@slack/logger/node_modules/@types/node/stream/web.d.ts +6 -1
  44. package/node_modules/@slack/logger/node_modules/@types/node/stream.d.ts +936 -1000
  45. package/node_modules/@slack/logger/node_modules/@types/node/test.d.ts +40 -138
  46. package/node_modules/@slack/logger/node_modules/@types/node/ts5.6/buffer.buffer.d.ts +107 -35
  47. package/node_modules/@slack/logger/node_modules/@types/node/util.d.ts +85 -17
  48. package/node_modules/@slack/logger/node_modules/@types/node/vm.d.ts +1 -1
  49. package/node_modules/@slack/web-api/README.md +4 -4
  50. package/node_modules/@slack/web-api/dist/WebClient.d.ts +30 -1
  51. package/node_modules/@slack/web-api/dist/WebClient.d.ts.map +1 -1
  52. package/node_modules/@slack/web-api/dist/WebClient.js +15 -2
  53. package/node_modules/@slack/web-api/dist/WebClient.js.map +1 -1
  54. package/node_modules/@slack/web-api/dist/methods.d.ts +1 -1
  55. package/node_modules/@slack/web-api/dist/methods.js +1 -1
  56. package/node_modules/@slack/web-api/node_modules/@types/node/README.md +1 -1
  57. package/node_modules/@slack/web-api/node_modules/@types/node/assert.d.ts +55 -0
  58. package/node_modules/@slack/web-api/node_modules/@types/node/buffer.buffer.d.ts +114 -39
  59. package/node_modules/@slack/web-api/node_modules/@types/node/buffer.d.ts +4 -11
  60. package/node_modules/@slack/web-api/node_modules/@types/node/constants.d.ts +14 -12
  61. package/node_modules/@slack/web-api/node_modules/@types/node/crypto.d.ts +36 -1
  62. package/node_modules/@slack/web-api/node_modules/@types/node/dgram.d.ts +10 -7
  63. package/node_modules/@slack/web-api/node_modules/@types/node/fs/promises.d.ts +2 -2
  64. package/node_modules/@slack/web-api/node_modules/@types/node/fs.d.ts +45 -98
  65. package/node_modules/@slack/web-api/node_modules/@types/node/globals.d.ts +0 -57
  66. package/node_modules/@slack/web-api/node_modules/@types/node/http.d.ts +1 -0
  67. package/node_modules/@slack/web-api/node_modules/@types/node/module.d.ts +530 -237
  68. package/node_modules/@slack/web-api/node_modules/@types/node/net.d.ts +30 -5
  69. package/node_modules/@slack/web-api/node_modules/@types/node/package.json +2 -2
  70. package/node_modules/@slack/web-api/node_modules/@types/node/perf_hooks.d.ts +5 -0
  71. package/node_modules/@slack/web-api/node_modules/@types/node/process.d.ts +54 -4
  72. package/node_modules/@slack/web-api/node_modules/@types/node/sea.d.ts +1 -1
  73. package/node_modules/@slack/web-api/node_modules/@types/node/sqlite.d.ts +207 -2
  74. package/node_modules/@slack/web-api/node_modules/@types/node/stream/web.d.ts +6 -1
  75. package/node_modules/@slack/web-api/node_modules/@types/node/stream.d.ts +936 -1000
  76. package/node_modules/@slack/web-api/node_modules/@types/node/test.d.ts +40 -138
  77. package/node_modules/@slack/web-api/node_modules/@types/node/ts5.6/buffer.buffer.d.ts +107 -35
  78. package/node_modules/@slack/web-api/node_modules/@types/node/util.d.ts +85 -17
  79. package/node_modules/@slack/web-api/node_modules/@types/node/vm.d.ts +1 -1
  80. package/node_modules/@slack/web-api/package.json +8 -6
  81. package/node_modules/@types/cacheable-request/node_modules/@types/node/README.md +1 -1
  82. package/node_modules/@types/cacheable-request/node_modules/@types/node/assert.d.ts +55 -0
  83. package/node_modules/@types/cacheable-request/node_modules/@types/node/buffer.buffer.d.ts +114 -39
  84. package/node_modules/@types/cacheable-request/node_modules/@types/node/buffer.d.ts +4 -11
  85. package/node_modules/@types/cacheable-request/node_modules/@types/node/constants.d.ts +14 -12
  86. package/node_modules/@types/cacheable-request/node_modules/@types/node/crypto.d.ts +36 -1
  87. package/node_modules/@types/cacheable-request/node_modules/@types/node/dgram.d.ts +10 -7
  88. package/node_modules/@types/cacheable-request/node_modules/@types/node/fs/promises.d.ts +2 -2
  89. package/node_modules/@types/cacheable-request/node_modules/@types/node/fs.d.ts +45 -98
  90. package/node_modules/@types/cacheable-request/node_modules/@types/node/globals.d.ts +0 -57
  91. package/node_modules/@types/cacheable-request/node_modules/@types/node/http.d.ts +1 -0
  92. package/node_modules/@types/cacheable-request/node_modules/@types/node/module.d.ts +530 -237
  93. package/node_modules/@types/cacheable-request/node_modules/@types/node/net.d.ts +30 -5
  94. package/node_modules/@types/cacheable-request/node_modules/@types/node/package.json +2 -2
  95. package/node_modules/@types/cacheable-request/node_modules/@types/node/perf_hooks.d.ts +5 -0
  96. package/node_modules/@types/cacheable-request/node_modules/@types/node/process.d.ts +54 -4
  97. package/node_modules/@types/cacheable-request/node_modules/@types/node/sea.d.ts +1 -1
  98. package/node_modules/@types/cacheable-request/node_modules/@types/node/sqlite.d.ts +207 -2
  99. package/node_modules/@types/cacheable-request/node_modules/@types/node/stream/web.d.ts +6 -1
  100. package/node_modules/@types/cacheable-request/node_modules/@types/node/stream.d.ts +936 -1000
  101. package/node_modules/@types/cacheable-request/node_modules/@types/node/test.d.ts +40 -138
  102. package/node_modules/@types/cacheable-request/node_modules/@types/node/ts5.6/buffer.buffer.d.ts +107 -35
  103. package/node_modules/@types/cacheable-request/node_modules/@types/node/util.d.ts +85 -17
  104. package/node_modules/@types/cacheable-request/node_modules/@types/node/vm.d.ts +1 -1
  105. package/node_modules/@types/keyv/node_modules/@types/node/README.md +1 -1
  106. package/node_modules/@types/keyv/node_modules/@types/node/assert.d.ts +55 -0
  107. package/node_modules/@types/keyv/node_modules/@types/node/buffer.buffer.d.ts +114 -39
  108. package/node_modules/@types/keyv/node_modules/@types/node/buffer.d.ts +4 -11
  109. package/node_modules/@types/keyv/node_modules/@types/node/constants.d.ts +14 -12
  110. package/node_modules/@types/keyv/node_modules/@types/node/crypto.d.ts +36 -1
  111. package/node_modules/@types/keyv/node_modules/@types/node/dgram.d.ts +10 -7
  112. package/node_modules/@types/keyv/node_modules/@types/node/fs/promises.d.ts +2 -2
  113. package/node_modules/@types/keyv/node_modules/@types/node/fs.d.ts +45 -98
  114. package/node_modules/@types/keyv/node_modules/@types/node/globals.d.ts +0 -57
  115. package/node_modules/@types/keyv/node_modules/@types/node/http.d.ts +1 -0
  116. package/node_modules/@types/keyv/node_modules/@types/node/module.d.ts +530 -237
  117. package/node_modules/@types/keyv/node_modules/@types/node/net.d.ts +30 -5
  118. package/node_modules/@types/keyv/node_modules/@types/node/package.json +2 -2
  119. package/node_modules/@types/keyv/node_modules/@types/node/perf_hooks.d.ts +5 -0
  120. package/node_modules/@types/keyv/node_modules/@types/node/process.d.ts +54 -4
  121. package/node_modules/@types/keyv/node_modules/@types/node/sea.d.ts +1 -1
  122. package/node_modules/@types/keyv/node_modules/@types/node/sqlite.d.ts +207 -2
  123. package/node_modules/@types/keyv/node_modules/@types/node/stream/web.d.ts +6 -1
  124. package/node_modules/@types/keyv/node_modules/@types/node/stream.d.ts +936 -1000
  125. package/node_modules/@types/keyv/node_modules/@types/node/test.d.ts +40 -138
  126. package/node_modules/@types/keyv/node_modules/@types/node/ts5.6/buffer.buffer.d.ts +107 -35
  127. package/node_modules/@types/keyv/node_modules/@types/node/util.d.ts +85 -17
  128. package/node_modules/@types/keyv/node_modules/@types/node/vm.d.ts +1 -1
  129. package/node_modules/@types/responselike/node_modules/@types/node/README.md +1 -1
  130. package/node_modules/@types/responselike/node_modules/@types/node/assert.d.ts +55 -0
  131. package/node_modules/@types/responselike/node_modules/@types/node/buffer.buffer.d.ts +114 -39
  132. package/node_modules/@types/responselike/node_modules/@types/node/buffer.d.ts +4 -11
  133. package/node_modules/@types/responselike/node_modules/@types/node/constants.d.ts +14 -12
  134. package/node_modules/@types/responselike/node_modules/@types/node/crypto.d.ts +36 -1
  135. package/node_modules/@types/responselike/node_modules/@types/node/dgram.d.ts +10 -7
  136. package/node_modules/@types/responselike/node_modules/@types/node/fs/promises.d.ts +2 -2
  137. package/node_modules/@types/responselike/node_modules/@types/node/fs.d.ts +45 -98
  138. package/node_modules/@types/responselike/node_modules/@types/node/globals.d.ts +0 -57
  139. package/node_modules/@types/responselike/node_modules/@types/node/http.d.ts +1 -0
  140. package/node_modules/@types/responselike/node_modules/@types/node/module.d.ts +530 -237
  141. package/node_modules/@types/responselike/node_modules/@types/node/net.d.ts +30 -5
  142. package/node_modules/@types/responselike/node_modules/@types/node/package.json +2 -2
  143. package/node_modules/@types/responselike/node_modules/@types/node/perf_hooks.d.ts +5 -0
  144. package/node_modules/@types/responselike/node_modules/@types/node/process.d.ts +54 -4
  145. package/node_modules/@types/responselike/node_modules/@types/node/sea.d.ts +1 -1
  146. package/node_modules/@types/responselike/node_modules/@types/node/sqlite.d.ts +207 -2
  147. package/node_modules/@types/responselike/node_modules/@types/node/stream/web.d.ts +6 -1
  148. package/node_modules/@types/responselike/node_modules/@types/node/stream.d.ts +936 -1000
  149. package/node_modules/@types/responselike/node_modules/@types/node/test.d.ts +40 -138
  150. package/node_modules/@types/responselike/node_modules/@types/node/ts5.6/buffer.buffer.d.ts +107 -35
  151. package/node_modules/@types/responselike/node_modules/@types/node/util.d.ts +85 -17
  152. package/node_modules/@types/responselike/node_modules/@types/node/vm.d.ts +1 -1
  153. package/node_modules/axios/CHANGELOG.md +97 -0
  154. package/node_modules/axios/README.md +35 -13
  155. package/node_modules/axios/dist/axios.js +14 -25
  156. package/node_modules/axios/dist/axios.js.map +1 -1
  157. package/node_modules/axios/dist/axios.min.js +2 -1
  158. package/node_modules/axios/dist/axios.min.js.map +1 -1
  159. package/node_modules/axios/dist/browser/axios.cjs +14 -28
  160. package/node_modules/axios/dist/browser/axios.cjs.map +1 -1
  161. package/node_modules/axios/dist/esm/axios.js +14 -28
  162. package/node_modules/axios/dist/esm/axios.js.map +1 -1
  163. package/node_modules/axios/dist/esm/axios.min.js +2 -1
  164. package/node_modules/axios/dist/esm/axios.min.js.map +1 -1
  165. package/node_modules/axios/dist/node/axios.cjs +44 -31
  166. package/node_modules/axios/dist/node/axios.cjs.map +1 -1
  167. package/node_modules/axios/index.d.cts +1 -0
  168. package/node_modules/axios/index.d.ts +1 -0
  169. package/node_modules/axios/lib/adapters/http.js +1 -1
  170. package/node_modules/axios/lib/core/Axios.js +10 -1
  171. package/node_modules/axios/lib/core/buildFullPath.js +3 -2
  172. package/node_modules/axios/lib/env/data.js +1 -1
  173. package/node_modules/axios/lib/helpers/formDataToStream.js +3 -2
  174. package/node_modules/axios/lib/helpers/resolveConfig.js +1 -1
  175. package/node_modules/axios/lib/platform/node/index.js +26 -0
  176. package/node_modules/axios/lib/utils.js +0 -22
  177. package/node_modules/axios/package.json +4 -4
  178. package/node_modules/call-bind-apply-helpers/.eslintrc +17 -0
  179. package/node_modules/call-bind-apply-helpers/.github/FUNDING.yml +12 -0
  180. package/node_modules/call-bind-apply-helpers/.nycrc +9 -0
  181. package/node_modules/call-bind-apply-helpers/CHANGELOG.md +30 -0
  182. package/node_modules/call-bind-apply-helpers/LICENSE +21 -0
  183. package/node_modules/call-bind-apply-helpers/README.md +62 -0
  184. package/node_modules/call-bind-apply-helpers/actualApply.d.ts +1 -0
  185. package/node_modules/call-bind-apply-helpers/actualApply.js +10 -0
  186. package/node_modules/call-bind-apply-helpers/applyBind.d.ts +19 -0
  187. package/node_modules/call-bind-apply-helpers/applyBind.js +10 -0
  188. package/node_modules/call-bind-apply-helpers/functionApply.d.ts +1 -0
  189. package/node_modules/call-bind-apply-helpers/functionApply.js +4 -0
  190. package/node_modules/call-bind-apply-helpers/functionCall.d.ts +1 -0
  191. package/node_modules/call-bind-apply-helpers/functionCall.js +4 -0
  192. package/node_modules/call-bind-apply-helpers/index.d.ts +64 -0
  193. package/node_modules/call-bind-apply-helpers/index.js +15 -0
  194. package/node_modules/call-bind-apply-helpers/package.json +85 -0
  195. package/node_modules/call-bind-apply-helpers/reflectApply.d.ts +3 -0
  196. package/node_modules/call-bind-apply-helpers/reflectApply.js +4 -0
  197. package/node_modules/call-bind-apply-helpers/test/index.js +63 -0
  198. package/node_modules/call-bind-apply-helpers/tsconfig.json +9 -0
  199. package/node_modules/dunder-proto/.eslintrc +5 -0
  200. package/node_modules/dunder-proto/.github/FUNDING.yml +12 -0
  201. package/node_modules/dunder-proto/.nycrc +13 -0
  202. package/node_modules/dunder-proto/CHANGELOG.md +24 -0
  203. package/node_modules/dunder-proto/LICENSE +21 -0
  204. package/node_modules/dunder-proto/README.md +54 -0
  205. package/node_modules/dunder-proto/get.d.ts +5 -0
  206. package/node_modules/dunder-proto/get.js +30 -0
  207. package/node_modules/dunder-proto/package.json +76 -0
  208. package/node_modules/dunder-proto/set.d.ts +5 -0
  209. package/node_modules/dunder-proto/set.js +35 -0
  210. package/node_modules/dunder-proto/test/get.js +34 -0
  211. package/node_modules/dunder-proto/test/index.js +4 -0
  212. package/node_modules/dunder-proto/test/set.js +50 -0
  213. package/node_modules/dunder-proto/tsconfig.json +9 -0
  214. package/node_modules/es-define-property/.eslintrc +13 -0
  215. package/node_modules/es-define-property/.github/FUNDING.yml +12 -0
  216. package/node_modules/es-define-property/.nycrc +9 -0
  217. package/node_modules/es-define-property/CHANGELOG.md +29 -0
  218. package/node_modules/es-define-property/LICENSE +21 -0
  219. package/node_modules/es-define-property/README.md +49 -0
  220. package/node_modules/es-define-property/index.d.ts +3 -0
  221. package/node_modules/es-define-property/index.js +14 -0
  222. package/node_modules/es-define-property/package.json +81 -0
  223. package/node_modules/es-define-property/test/index.js +56 -0
  224. package/node_modules/es-define-property/tsconfig.json +10 -0
  225. package/node_modules/es-errors/.eslintrc +5 -0
  226. package/node_modules/es-errors/.github/FUNDING.yml +12 -0
  227. package/node_modules/es-errors/CHANGELOG.md +40 -0
  228. package/node_modules/es-errors/LICENSE +21 -0
  229. package/node_modules/es-errors/README.md +55 -0
  230. package/node_modules/es-errors/eval.d.ts +3 -0
  231. package/node_modules/es-errors/eval.js +4 -0
  232. package/node_modules/es-errors/index.d.ts +3 -0
  233. package/node_modules/es-errors/index.js +4 -0
  234. package/node_modules/es-errors/package.json +80 -0
  235. package/node_modules/es-errors/range.d.ts +3 -0
  236. package/node_modules/es-errors/range.js +4 -0
  237. package/node_modules/es-errors/ref.d.ts +3 -0
  238. package/node_modules/es-errors/ref.js +4 -0
  239. package/node_modules/es-errors/syntax.d.ts +3 -0
  240. package/node_modules/es-errors/syntax.js +4 -0
  241. package/node_modules/es-errors/test/index.js +19 -0
  242. package/node_modules/es-errors/tsconfig.json +49 -0
  243. package/node_modules/es-errors/type.d.ts +3 -0
  244. package/node_modules/es-errors/type.js +4 -0
  245. package/node_modules/es-errors/uri.d.ts +3 -0
  246. package/node_modules/es-errors/uri.js +4 -0
  247. package/node_modules/es-object-atoms/.eslintrc +16 -0
  248. package/node_modules/es-object-atoms/.github/FUNDING.yml +12 -0
  249. package/node_modules/es-object-atoms/CHANGELOG.md +37 -0
  250. package/node_modules/es-object-atoms/LICENSE +21 -0
  251. package/node_modules/es-object-atoms/README.md +63 -0
  252. package/node_modules/es-object-atoms/RequireObjectCoercible.d.ts +3 -0
  253. package/node_modules/es-object-atoms/RequireObjectCoercible.js +11 -0
  254. package/node_modules/es-object-atoms/ToObject.d.ts +7 -0
  255. package/node_modules/es-object-atoms/ToObject.js +10 -0
  256. package/node_modules/es-object-atoms/index.d.ts +3 -0
  257. package/node_modules/es-object-atoms/index.js +4 -0
  258. package/node_modules/es-object-atoms/isObject.d.ts +3 -0
  259. package/node_modules/es-object-atoms/isObject.js +6 -0
  260. package/node_modules/es-object-atoms/package.json +80 -0
  261. package/node_modules/es-object-atoms/test/index.js +38 -0
  262. package/node_modules/es-object-atoms/tsconfig.json +6 -0
  263. package/node_modules/es-set-tostringtag/.eslintrc +13 -0
  264. package/node_modules/es-set-tostringtag/.nycrc +9 -0
  265. package/node_modules/es-set-tostringtag/CHANGELOG.md +67 -0
  266. package/node_modules/es-set-tostringtag/LICENSE +21 -0
  267. package/node_modules/es-set-tostringtag/README.md +53 -0
  268. package/node_modules/es-set-tostringtag/index.d.ts +10 -0
  269. package/node_modules/es-set-tostringtag/index.js +35 -0
  270. package/node_modules/es-set-tostringtag/package.json +78 -0
  271. package/node_modules/es-set-tostringtag/test/index.js +85 -0
  272. package/node_modules/es-set-tostringtag/tsconfig.json +9 -0
  273. package/node_modules/foreground-child/dist/commonjs/all-signals.d.ts +0 -1
  274. package/node_modules/foreground-child/dist/commonjs/all-signals.d.ts.map +1 -1
  275. package/node_modules/foreground-child/dist/commonjs/index.d.ts +1 -8
  276. package/node_modules/foreground-child/dist/commonjs/index.d.ts.map +1 -1
  277. package/node_modules/foreground-child/dist/commonjs/index.js +2 -2
  278. package/node_modules/foreground-child/dist/commonjs/index.js.map +1 -1
  279. package/node_modules/foreground-child/dist/commonjs/proxy-signals.d.ts +0 -1
  280. package/node_modules/foreground-child/dist/commonjs/proxy-signals.d.ts.map +1 -1
  281. package/node_modules/foreground-child/dist/commonjs/watchdog.d.ts +0 -1
  282. package/node_modules/foreground-child/dist/commonjs/watchdog.d.ts.map +1 -1
  283. package/node_modules/foreground-child/dist/esm/all-signals.d.ts +0 -1
  284. package/node_modules/foreground-child/dist/esm/all-signals.d.ts.map +1 -1
  285. package/node_modules/foreground-child/dist/esm/index.d.ts +1 -8
  286. package/node_modules/foreground-child/dist/esm/index.d.ts.map +1 -1
  287. package/node_modules/foreground-child/dist/esm/proxy-signals.d.ts +0 -1
  288. package/node_modules/foreground-child/dist/esm/proxy-signals.d.ts.map +1 -1
  289. package/node_modules/foreground-child/dist/esm/watchdog.d.ts +0 -1
  290. package/node_modules/foreground-child/dist/esm/watchdog.d.ts.map +1 -1
  291. package/node_modules/foreground-child/package.json +6 -11
  292. package/node_modules/form-data/lib/form_data.js +24 -22
  293. package/node_modules/form-data/package.json +17 -14
  294. package/node_modules/function-bind/.eslintrc +21 -0
  295. package/node_modules/function-bind/.github/FUNDING.yml +12 -0
  296. package/node_modules/function-bind/.github/SECURITY.md +3 -0
  297. package/node_modules/function-bind/.nycrc +13 -0
  298. package/node_modules/function-bind/CHANGELOG.md +136 -0
  299. package/node_modules/function-bind/LICENSE +20 -0
  300. package/node_modules/function-bind/README.md +46 -0
  301. package/node_modules/function-bind/implementation.js +84 -0
  302. package/node_modules/function-bind/index.js +5 -0
  303. package/node_modules/function-bind/package.json +87 -0
  304. package/node_modules/function-bind/test/.eslintrc +9 -0
  305. package/node_modules/function-bind/test/index.js +252 -0
  306. package/node_modules/get-intrinsic/.eslintrc +42 -0
  307. package/node_modules/get-intrinsic/.github/FUNDING.yml +12 -0
  308. package/node_modules/get-intrinsic/.nycrc +9 -0
  309. package/node_modules/get-intrinsic/CHANGELOG.md +186 -0
  310. package/node_modules/get-intrinsic/LICENSE +21 -0
  311. package/node_modules/get-intrinsic/README.md +71 -0
  312. package/node_modules/get-intrinsic/index.js +378 -0
  313. package/node_modules/get-intrinsic/package.json +97 -0
  314. package/node_modules/get-intrinsic/test/GetIntrinsic.js +274 -0
  315. package/node_modules/get-proto/.eslintrc +10 -0
  316. package/node_modules/get-proto/.github/FUNDING.yml +12 -0
  317. package/node_modules/get-proto/.nycrc +9 -0
  318. package/node_modules/get-proto/CHANGELOG.md +21 -0
  319. package/node_modules/get-proto/LICENSE +21 -0
  320. package/node_modules/get-proto/Object.getPrototypeOf.d.ts +5 -0
  321. package/node_modules/get-proto/Object.getPrototypeOf.js +6 -0
  322. package/node_modules/get-proto/README.md +50 -0
  323. package/node_modules/get-proto/Reflect.getPrototypeOf.d.ts +3 -0
  324. package/node_modules/get-proto/Reflect.getPrototypeOf.js +4 -0
  325. package/node_modules/get-proto/index.d.ts +5 -0
  326. package/node_modules/get-proto/index.js +27 -0
  327. package/node_modules/get-proto/package.json +81 -0
  328. package/node_modules/get-proto/test/index.js +68 -0
  329. package/node_modules/get-proto/tsconfig.json +9 -0
  330. package/node_modules/gopd/.eslintrc +16 -0
  331. package/node_modules/gopd/.github/FUNDING.yml +12 -0
  332. package/node_modules/gopd/CHANGELOG.md +45 -0
  333. package/node_modules/gopd/LICENSE +21 -0
  334. package/node_modules/gopd/README.md +40 -0
  335. package/node_modules/gopd/gOPD.d.ts +1 -0
  336. package/node_modules/gopd/gOPD.js +4 -0
  337. package/node_modules/gopd/index.d.ts +5 -0
  338. package/node_modules/gopd/index.js +15 -0
  339. package/node_modules/gopd/package.json +77 -0
  340. package/node_modules/gopd/test/index.js +36 -0
  341. package/node_modules/gopd/tsconfig.json +9 -0
  342. package/node_modules/has-symbols/.eslintrc +11 -0
  343. package/node_modules/has-symbols/.github/FUNDING.yml +12 -0
  344. package/node_modules/has-symbols/.nycrc +9 -0
  345. package/node_modules/has-symbols/CHANGELOG.md +91 -0
  346. package/node_modules/has-symbols/LICENSE +21 -0
  347. package/node_modules/has-symbols/README.md +46 -0
  348. package/node_modules/has-symbols/index.d.ts +3 -0
  349. package/node_modules/has-symbols/index.js +14 -0
  350. package/node_modules/has-symbols/package.json +111 -0
  351. package/node_modules/has-symbols/shams.d.ts +3 -0
  352. package/node_modules/has-symbols/shams.js +45 -0
  353. package/node_modules/has-symbols/test/index.js +22 -0
  354. package/node_modules/has-symbols/test/shams/core-js.js +29 -0
  355. package/node_modules/has-symbols/test/shams/get-own-property-symbols.js +29 -0
  356. package/node_modules/has-symbols/test/tests.js +58 -0
  357. package/node_modules/has-symbols/tsconfig.json +10 -0
  358. package/node_modules/has-tostringtag/.eslintrc +5 -0
  359. package/node_modules/has-tostringtag/.github/FUNDING.yml +12 -0
  360. package/node_modules/has-tostringtag/.nycrc +13 -0
  361. package/node_modules/has-tostringtag/CHANGELOG.md +42 -0
  362. package/node_modules/has-tostringtag/LICENSE +21 -0
  363. package/node_modules/has-tostringtag/README.md +46 -0
  364. package/node_modules/has-tostringtag/index.d.ts +3 -0
  365. package/node_modules/has-tostringtag/index.js +8 -0
  366. package/node_modules/has-tostringtag/package.json +108 -0
  367. package/node_modules/has-tostringtag/shams.d.ts +3 -0
  368. package/node_modules/has-tostringtag/shams.js +8 -0
  369. package/node_modules/has-tostringtag/test/index.js +21 -0
  370. package/node_modules/has-tostringtag/test/shams/core-js.js +31 -0
  371. package/node_modules/has-tostringtag/test/shams/get-own-property-symbols.js +30 -0
  372. package/node_modules/has-tostringtag/test/tests.js +15 -0
  373. package/node_modules/has-tostringtag/tsconfig.json +49 -0
  374. package/node_modules/hasown/.eslintrc +5 -0
  375. package/node_modules/hasown/.github/FUNDING.yml +12 -0
  376. package/node_modules/hasown/.nycrc +13 -0
  377. package/node_modules/hasown/CHANGELOG.md +40 -0
  378. package/node_modules/hasown/LICENSE +21 -0
  379. package/node_modules/hasown/README.md +40 -0
  380. package/node_modules/hasown/index.d.ts +3 -0
  381. package/node_modules/hasown/index.js +8 -0
  382. package/node_modules/hasown/package.json +92 -0
  383. package/node_modules/hasown/tsconfig.json +6 -0
  384. package/node_modules/js-beautify/README.md +19 -8
  385. package/node_modules/js-beautify/js/lib/beautifier.js +35 -18
  386. package/node_modules/js-beautify/js/lib/beautifier.min.js +1 -1
  387. package/node_modules/js-beautify/js/lib/beautify-html.js +35 -18
  388. package/node_modules/js-beautify/js/lib/beautify.js +4 -0
  389. package/node_modules/js-beautify/js/src/core/templatablepattern.js +4 -0
  390. package/node_modules/js-beautify/js/src/html/beautifier.js +5 -4
  391. package/node_modules/js-beautify/js/src/html/tokenizer.js +26 -14
  392. package/node_modules/js-beautify/package.json +5 -5
  393. package/node_modules/math-intrinsics/.eslintrc +16 -0
  394. package/node_modules/math-intrinsics/.github/FUNDING.yml +12 -0
  395. package/node_modules/math-intrinsics/CHANGELOG.md +24 -0
  396. package/node_modules/math-intrinsics/LICENSE +21 -0
  397. package/node_modules/math-intrinsics/README.md +50 -0
  398. package/node_modules/math-intrinsics/abs.d.ts +1 -0
  399. package/node_modules/math-intrinsics/abs.js +4 -0
  400. package/node_modules/math-intrinsics/constants/maxArrayLength.d.ts +3 -0
  401. package/node_modules/math-intrinsics/constants/maxArrayLength.js +4 -0
  402. package/node_modules/math-intrinsics/constants/maxSafeInteger.d.ts +3 -0
  403. package/node_modules/math-intrinsics/constants/maxSafeInteger.js +5 -0
  404. package/node_modules/math-intrinsics/constants/maxValue.d.ts +3 -0
  405. package/node_modules/math-intrinsics/constants/maxValue.js +5 -0
  406. package/node_modules/math-intrinsics/floor.d.ts +1 -0
  407. package/node_modules/math-intrinsics/floor.js +4 -0
  408. package/node_modules/math-intrinsics/isFinite.d.ts +3 -0
  409. package/node_modules/math-intrinsics/isFinite.js +12 -0
  410. package/node_modules/math-intrinsics/isInteger.d.ts +3 -0
  411. package/node_modules/math-intrinsics/isInteger.js +16 -0
  412. package/node_modules/math-intrinsics/isNaN.d.ts +1 -0
  413. package/node_modules/math-intrinsics/isNaN.js +6 -0
  414. package/node_modules/math-intrinsics/isNegativeZero.d.ts +3 -0
  415. package/node_modules/math-intrinsics/isNegativeZero.js +6 -0
  416. package/node_modules/math-intrinsics/max.d.ts +1 -0
  417. package/node_modules/math-intrinsics/max.js +4 -0
  418. package/node_modules/math-intrinsics/min.d.ts +1 -0
  419. package/node_modules/math-intrinsics/min.js +4 -0
  420. package/node_modules/math-intrinsics/mod.d.ts +3 -0
  421. package/node_modules/math-intrinsics/mod.js +9 -0
  422. package/node_modules/math-intrinsics/package.json +86 -0
  423. package/node_modules/math-intrinsics/pow.d.ts +1 -0
  424. package/node_modules/math-intrinsics/pow.js +4 -0
  425. package/node_modules/math-intrinsics/round.d.ts +1 -0
  426. package/node_modules/math-intrinsics/round.js +4 -0
  427. package/node_modules/math-intrinsics/sign.d.ts +3 -0
  428. package/node_modules/math-intrinsics/sign.js +11 -0
  429. package/node_modules/math-intrinsics/test/index.js +192 -0
  430. package/node_modules/math-intrinsics/tsconfig.json +3 -0
  431. package/node_modules/semver/README.md +14 -4
  432. package/node_modules/semver/bin/semver.js +2 -1
  433. package/node_modules/semver/classes/semver.js +22 -6
  434. package/node_modules/semver/functions/diff.js +5 -12
  435. package/node_modules/semver/internal/re.js +2 -0
  436. package/node_modules/semver/package.json +8 -7
  437. package/package.json +19 -19
  438. package/node_modules/axios/SECURITY.md +0 -6
  439. /package/node_modules/{path-key → cross-spawn/node_modules/path-key}/index.d.ts +0 -0
  440. /package/node_modules/{path-key → cross-spawn/node_modules/path-key}/index.js +0 -0
  441. /package/node_modules/{path-key → cross-spawn/node_modules/path-key}/license +0 -0
  442. /package/node_modules/{path-key → cross-spawn/node_modules/path-key}/package.json +0 -0
  443. /package/node_modules/{path-key → cross-spawn/node_modules/path-key}/readme.md +0 -0
  444. /package/node_modules/{path-scurry/node_modules/lru-cache → lru-cache}/LICENSE +0 -0
  445. /package/node_modules/{path-scurry/node_modules/lru-cache → lru-cache}/README.md +0 -0
  446. /package/node_modules/{path-scurry/node_modules/lru-cache → lru-cache}/dist/commonjs/index.d.ts +0 -0
  447. /package/node_modules/{path-scurry/node_modules/lru-cache → lru-cache}/dist/commonjs/index.d.ts.map +0 -0
  448. /package/node_modules/{path-scurry/node_modules/lru-cache → lru-cache}/dist/commonjs/index.js +0 -0
  449. /package/node_modules/{path-scurry/node_modules/lru-cache → lru-cache}/dist/commonjs/index.js.map +0 -0
  450. /package/node_modules/{path-scurry/node_modules/lru-cache → lru-cache}/dist/commonjs/index.min.js +0 -0
  451. /package/node_modules/{path-scurry/node_modules/lru-cache → lru-cache}/dist/commonjs/index.min.js.map +0 -0
  452. /package/node_modules/{path-scurry/node_modules/lru-cache → lru-cache}/dist/commonjs/package.json +0 -0
  453. /package/node_modules/{path-scurry/node_modules/lru-cache → lru-cache}/dist/esm/index.d.ts +0 -0
  454. /package/node_modules/{path-scurry/node_modules/lru-cache → lru-cache}/dist/esm/index.d.ts.map +0 -0
  455. /package/node_modules/{path-scurry/node_modules/lru-cache → lru-cache}/dist/esm/index.js +0 -0
  456. /package/node_modules/{path-scurry/node_modules/lru-cache → lru-cache}/dist/esm/index.js.map +0 -0
  457. /package/node_modules/{path-scurry/node_modules/lru-cache → lru-cache}/dist/esm/index.min.js +0 -0
  458. /package/node_modules/{path-scurry/node_modules/lru-cache → lru-cache}/dist/esm/index.min.js.map +0 -0
  459. /package/node_modules/{path-scurry/node_modules/lru-cache → lru-cache}/dist/esm/package.json +0 -0
  460. /package/node_modules/{path-scurry/node_modules/lru-cache → lru-cache}/package.json +0 -0
@@ -564,6 +564,23 @@ declare module "node:test" {
564
564
  /**
565
565
  * An object containing assertion methods bound to the test context.
566
566
  * The top-level functions from the `node:assert` module are exposed here for the purpose of creating test plans.
567
+ *
568
+ * **Note:** Some of the functions from `node:assert` contain type assertions. If these are called via the
569
+ * TestContext `assert` object, then the context parameter in the test's function signature **must be explicitly typed**
570
+ * (ie. the parameter must have a type annotation), otherwise an error will be raised by the TypeScript compiler:
571
+ * ```ts
572
+ * import { test, type TestContext } from 'node:test';
573
+ *
574
+ * // The test function's context parameter must have a type annotation.
575
+ * test('example', (t: TestContext) => {
576
+ * t.assert.deepStrictEqual(actual, expected);
577
+ * });
578
+ *
579
+ * // Omitting the type annotation will result in a compilation error.
580
+ * test('example', t => {
581
+ * t.assert.deepStrictEqual(actual, expected); // Error: 't' needs an explicit type annotation.
582
+ * });
583
+ * ```
567
584
  * @since v22.2.0, v20.15.0
568
585
  */
569
586
  readonly assert: TestContextAssert;
@@ -741,139 +758,29 @@ declare module "node:test" {
741
758
  */
742
759
  readonly mock: MockTracker;
743
760
  }
744
- interface TestContextAssert {
745
- /**
746
- * Identical to the `deepEqual` function from the `node:assert` module, but bound to the test context.
747
- */
748
- deepEqual: typeof import("node:assert").deepEqual;
749
- /**
750
- * Identical to the `deepStrictEqual` function from the `node:assert` module, but bound to the test context.
751
- *
752
- * **Note:** as this method returns a type assertion, the context parameter in the callback signature must have a
753
- * type annotation, otherwise an error will be raised by the TypeScript compiler:
754
- * ```ts
755
- * import { test, type TestContext } from 'node:test';
756
- *
757
- * // The test function's context parameter must have a type annotation.
758
- * test('example', (t: TestContext) => {
759
- * t.assert.deepStrictEqual(actual, expected);
760
- * });
761
- *
762
- * // Omitting the type annotation will result in a compilation error.
763
- * test('example', t => {
764
- * t.assert.deepStrictEqual(actual, expected); // Error: 't' needs an explicit type annotation.
765
- * });
766
- * ```
767
- */
768
- deepStrictEqual: typeof import("node:assert").deepStrictEqual;
769
- /**
770
- * Identical to the `doesNotMatch` function from the `node:assert` module, but bound to the test context.
771
- */
772
- doesNotMatch: typeof import("node:assert").doesNotMatch;
773
- /**
774
- * Identical to the `doesNotReject` function from the `node:assert` module, but bound to the test context.
775
- */
776
- doesNotReject: typeof import("node:assert").doesNotReject;
777
- /**
778
- * Identical to the `doesNotThrow` function from the `node:assert` module, but bound to the test context.
779
- */
780
- doesNotThrow: typeof import("node:assert").doesNotThrow;
781
- /**
782
- * Identical to the `equal` function from the `node:assert` module, but bound to the test context.
783
- */
784
- equal: typeof import("node:assert").equal;
785
- /**
786
- * Identical to the `fail` function from the `node:assert` module, but bound to the test context.
787
- */
788
- fail: typeof import("node:assert").fail;
789
- /**
790
- * Identical to the `ifError` function from the `node:assert` module, but bound to the test context.
791
- *
792
- * **Note:** as this method returns a type assertion, the context parameter in the callback signature must have a
793
- * type annotation, otherwise an error will be raised by the TypeScript compiler:
794
- * ```ts
795
- * import { test, type TestContext } from 'node:test';
796
- *
797
- * // The test function's context parameter must have a type annotation.
798
- * test('example', (t: TestContext) => {
799
- * t.assert.ifError(err);
800
- * });
801
- *
802
- * // Omitting the type annotation will result in a compilation error.
803
- * test('example', t => {
804
- * t.assert.ifError(err); // Error: 't' needs an explicit type annotation.
805
- * });
806
- * ```
807
- */
808
- ifError: typeof import("node:assert").ifError;
809
- /**
810
- * Identical to the `match` function from the `node:assert` module, but bound to the test context.
811
- */
812
- match: typeof import("node:assert").match;
813
- /**
814
- * Identical to the `notDeepEqual` function from the `node:assert` module, but bound to the test context.
815
- */
816
- notDeepEqual: typeof import("node:assert").notDeepEqual;
817
- /**
818
- * Identical to the `notDeepStrictEqual` function from the `node:assert` module, but bound to the test context.
819
- */
820
- notDeepStrictEqual: typeof import("node:assert").notDeepStrictEqual;
821
- /**
822
- * Identical to the `notEqual` function from the `node:assert` module, but bound to the test context.
823
- */
824
- notEqual: typeof import("node:assert").notEqual;
825
- /**
826
- * Identical to the `notStrictEqual` function from the `node:assert` module, but bound to the test context.
827
- */
828
- notStrictEqual: typeof import("node:assert").notStrictEqual;
829
- /**
830
- * Identical to the `ok` function from the `node:assert` module, but bound to the test context.
831
- *
832
- * **Note:** as this method returns a type assertion, the context parameter in the callback signature must have a
833
- * type annotation, otherwise an error will be raised by the TypeScript compiler:
834
- * ```ts
835
- * import { test, type TestContext } from 'node:test';
836
- *
837
- * // The test function's context parameter must have a type annotation.
838
- * test('example', (t: TestContext) => {
839
- * t.assert.ok(condition);
840
- * });
841
- *
842
- * // Omitting the type annotation will result in a compilation error.
843
- * test('example', t => {
844
- * t.assert.ok(condition)); // Error: 't' needs an explicit type annotation.
845
- * });
846
- * ```
847
- */
848
- ok: typeof import("node:assert").ok;
849
- /**
850
- * Identical to the `rejects` function from the `node:assert` module, but bound to the test context.
851
- */
852
- rejects: typeof import("node:assert").rejects;
853
- /**
854
- * Identical to the `strictEqual` function from the `node:assert` module, but bound to the test context.
855
- *
856
- * **Note:** as this method returns a type assertion, the context parameter in the callback signature must have a
857
- * type annotation, otherwise an error will be raised by the TypeScript compiler:
858
- * ```ts
859
- * import { test, type TestContext } from 'node:test';
860
- *
861
- * // The test function's context parameter must have a type annotation.
862
- * test('example', (t: TestContext) => {
863
- * t.assert.strictEqual(actual, expected);
864
- * });
865
- *
866
- * // Omitting the type annotation will result in a compilation error.
867
- * test('example', t => {
868
- * t.assert.strictEqual(actual, expected); // Error: 't' needs an explicit type annotation.
869
- * });
870
- * ```
871
- */
872
- strictEqual: typeof import("node:assert").strictEqual;
873
- /**
874
- * Identical to the `throws` function from the `node:assert` module, but bound to the test context.
875
- */
876
- throws: typeof import("node:assert").throws;
761
+ interface TestContextAssert extends
762
+ Pick<
763
+ typeof import("assert"),
764
+ | "deepEqual"
765
+ | "deepStrictEqual"
766
+ | "doesNotMatch"
767
+ | "doesNotReject"
768
+ | "doesNotThrow"
769
+ | "equal"
770
+ | "fail"
771
+ | "ifError"
772
+ | "match"
773
+ | "notDeepEqual"
774
+ | "notDeepStrictEqual"
775
+ | "notEqual"
776
+ | "notStrictEqual"
777
+ | "ok"
778
+ | "partialDeepStrictEqual"
779
+ | "rejects"
780
+ | "strictEqual"
781
+ | "throws"
782
+ >
783
+ {
877
784
  /**
878
785
  * This function implements assertions for snapshot testing.
879
786
  * ```js
@@ -887,10 +794,7 @@ declare module "node:test" {
887
794
  * });
888
795
  * });
889
796
  * ```
890
- *
891
- * Only available through the [--experimental-test-snapshots](https://nodejs.org/api/cli.html#--experimental-test-snapshots) flag.
892
797
  * @since v22.3.0
893
- * @experimental
894
798
  */
895
799
  snapshot(value: any, options?: AssertSnapshotOptions): void;
896
800
  }
@@ -1691,9 +1595,7 @@ declare module "node:test" {
1691
1595
  [Symbol.dispose](): void;
1692
1596
  }
1693
1597
  /**
1694
- * Only available through the [--experimental-test-snapshots](https://nodejs.org/api/cli.html#--experimental-test-snapshots) flag.
1695
1598
  * @since v22.3.0
1696
- * @experimental
1697
1599
  */
1698
1600
  namespace snapshot {
1699
1601
  /**
@@ -24,7 +24,7 @@ declare module "buffer" {
24
24
  * @param array The octets to store.
25
25
  * @deprecated since v10.0.0 - Use `Buffer.from(array)` instead.
26
26
  */
27
- new(array: Uint8Array): Buffer;
27
+ new(array: ArrayLike<number>): Buffer;
28
28
  /**
29
29
  * Produces a Buffer backed by the same allocated memory as
30
30
  * the given {ArrayBuffer}/{SharedArrayBuffer}.
@@ -33,20 +33,6 @@ declare module "buffer" {
33
33
  * @deprecated since v10.0.0 - Use `Buffer.from(arrayBuffer[, byteOffset[, length]])` instead.
34
34
  */
35
35
  new(arrayBuffer: ArrayBuffer | SharedArrayBuffer): Buffer;
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;
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;
50
36
  /**
51
37
  * Allocates a new `Buffer` using an `array` of bytes in the range `0` – `255`.
52
38
  * Array entries outside that range will be truncated to fit into it.
@@ -58,40 +44,120 @@ declare module "buffer" {
58
44
  * const buf = Buffer.from([0x62, 0x75, 0x66, 0x66, 0x65, 0x72]);
59
45
  * ```
60
46
  *
61
- * If `array` is an `Array`\-like object (that is, one with a `length` property of
47
+ * If `array` is an `Array`-like object (that is, one with a `length` property of
62
48
  * 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()`.
49
+ * a `Uint8Array`. This means all other `TypedArray` variants get treated as an
50
+ * `Array`. To create a `Buffer` from the bytes backing a `TypedArray`, use
51
+ * `Buffer.copyBytesFrom()`.
64
52
  *
65
53
  * A `TypeError` will be thrown if `array` is not an `Array` or another type
66
54
  * appropriate for `Buffer.from()` variants.
67
55
  *
68
- * `Buffer.from(array)` and `Buffer.from(string)` may also use the internal `Buffer` pool like `Buffer.allocUnsafe()` does.
56
+ * `Buffer.from(array)` and `Buffer.from(string)` may also use the internal
57
+ * `Buffer` pool like `Buffer.allocUnsafe()` does.
69
58
  * @since v5.10.0
70
59
  */
60
+ from(array: WithImplicitCoercion<ArrayLike<number>>): Buffer;
61
+ /**
62
+ * This creates a view of the `ArrayBuffer` without copying the underlying
63
+ * memory. For example, when passed a reference to the `.buffer` property of a
64
+ * `TypedArray` instance, the newly created `Buffer` will share the same
65
+ * allocated memory as the `TypedArray`'s underlying `ArrayBuffer`.
66
+ *
67
+ * ```js
68
+ * import { Buffer } from 'node:buffer';
69
+ *
70
+ * const arr = new Uint16Array(2);
71
+ *
72
+ * arr[0] = 5000;
73
+ * arr[1] = 4000;
74
+ *
75
+ * // Shares memory with `arr`.
76
+ * const buf = Buffer.from(arr.buffer);
77
+ *
78
+ * console.log(buf);
79
+ * // Prints: <Buffer 88 13 a0 0f>
80
+ *
81
+ * // Changing the original Uint16Array changes the Buffer also.
82
+ * arr[1] = 6000;
83
+ *
84
+ * console.log(buf);
85
+ * // Prints: <Buffer 88 13 70 17>
86
+ * ```
87
+ *
88
+ * The optional `byteOffset` and `length` arguments specify a memory range within
89
+ * the `arrayBuffer` that will be shared by the `Buffer`.
90
+ *
91
+ * ```js
92
+ * import { Buffer } from 'node:buffer';
93
+ *
94
+ * const ab = new ArrayBuffer(10);
95
+ * const buf = Buffer.from(ab, 0, 2);
96
+ *
97
+ * console.log(buf.length);
98
+ * // Prints: 2
99
+ * ```
100
+ *
101
+ * A `TypeError` will be thrown if `arrayBuffer` is not an `ArrayBuffer` or a
102
+ * `SharedArrayBuffer` or another type appropriate for `Buffer.from()`
103
+ * variants.
104
+ *
105
+ * It is important to remember that a backing `ArrayBuffer` can cover a range
106
+ * of memory that extends beyond the bounds of a `TypedArray` view. A new
107
+ * `Buffer` created using the `buffer` property of a `TypedArray` may extend
108
+ * beyond the range of the `TypedArray`:
109
+ *
110
+ * ```js
111
+ * import { Buffer } from 'node:buffer';
112
+ *
113
+ * const arrA = Uint8Array.from([0x63, 0x64, 0x65, 0x66]); // 4 elements
114
+ * const arrB = new Uint8Array(arrA.buffer, 1, 2); // 2 elements
115
+ * console.log(arrA.buffer === arrB.buffer); // true
116
+ *
117
+ * const buf = Buffer.from(arrB.buffer);
118
+ * console.log(buf);
119
+ * // Prints: <Buffer 63 64 65 66>
120
+ * ```
121
+ * @since v5.10.0
122
+ * @param arrayBuffer An `ArrayBuffer`, `SharedArrayBuffer`, for example the
123
+ * `.buffer` property of a `TypedArray`.
124
+ * @param byteOffset Index of first byte to expose. **Default:** `0`.
125
+ * @param length Number of bytes to expose. **Default:**
126
+ * `arrayBuffer.byteLength - byteOffset`.
127
+ */
71
128
  from(
72
129
  arrayBuffer: WithImplicitCoercion<ArrayBuffer | SharedArrayBuffer>,
73
130
  byteOffset?: number,
74
131
  length?: number,
75
132
  ): Buffer;
76
133
  /**
77
- * Creates a new Buffer using the passed {data}
78
- * @param data data to create a new Buffer
79
- */
80
- from(data: Uint8Array | readonly number[]): Buffer;
81
- from(data: WithImplicitCoercion<Uint8Array | readonly number[] | string>): Buffer;
82
- /**
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'.
134
+ * Creates a new `Buffer` containing `string`. The `encoding` parameter identifies
135
+ * the character encoding to be used when converting `string` into bytes.
136
+ *
137
+ * ```js
138
+ * import { Buffer } from 'node:buffer';
139
+ *
140
+ * const buf1 = Buffer.from('this is a tést');
141
+ * const buf2 = Buffer.from('7468697320697320612074c3a97374', 'hex');
142
+ *
143
+ * console.log(buf1.toString());
144
+ * // Prints: this is a tést
145
+ * console.log(buf2.toString());
146
+ * // Prints: this is a tést
147
+ * console.log(buf1.toString('latin1'));
148
+ * // Prints: this is a tést
149
+ * ```
150
+ *
151
+ * A `TypeError` will be thrown if `string` is not a string or another type
152
+ * appropriate for `Buffer.from()` variants.
153
+ *
154
+ * `Buffer.from(string)` may also use the internal `Buffer` pool like
155
+ * `Buffer.allocUnsafe()` does.
156
+ * @since v5.10.0
157
+ * @param string A string to encode.
158
+ * @param encoding The encoding of `string`. **Default:** `'utf8'`.
86
159
  */
87
- from(
88
- str:
89
- | WithImplicitCoercion<string>
90
- | {
91
- [Symbol.toPrimitive](hint: "string"): string;
92
- },
93
- encoding?: BufferEncoding,
94
- ): Buffer;
160
+ from(string: WithImplicitCoercion<string>, encoding?: BufferEncoding): Buffer;
95
161
  /**
96
162
  * Creates a new Buffer using the passed {data}
97
163
  * @param values to create a new Buffer
@@ -382,4 +448,10 @@ declare module "buffer" {
382
448
  subarray(start?: number, end?: number): Buffer;
383
449
  }
384
450
  }
451
+ /** @deprecated Use `Buffer.allocUnsafeSlow()` instead. */
452
+ var SlowBuffer: {
453
+ /** @deprecated Use `Buffer.allocUnsafeSlow()` instead. */
454
+ new(size: number): Buffer;
455
+ prototype: Buffer;
456
+ };
385
457
  }
@@ -108,14 +108,14 @@ declare module "util" {
108
108
  export interface InspectOptionsStylized extends InspectOptions {
109
109
  stylize(text: string, styleType: Style): string;
110
110
  }
111
- export interface StacktraceObject {
111
+ export interface CallSiteObject {
112
112
  /**
113
- * Returns the name of the function associated with this stack frame.
113
+ * Returns the name of the function associated with this call site.
114
114
  */
115
115
  functionName: string;
116
116
  /**
117
117
  * Returns the name of the resource that contains the script for the
118
- * function for this StackFrame.
118
+ * function for this call site.
119
119
  */
120
120
  scriptName: string;
121
121
  /**
@@ -185,15 +185,22 @@ declare module "util" {
185
185
  * @since v10.0.0
186
186
  */
187
187
  export function formatWithOptions(inspectOptions: InspectOptions, format?: any, ...param: any[]): string;
188
+ interface GetCallSitesOptions {
189
+ /**
190
+ * Reconstruct the original location in the stacktrace from the source-map.
191
+ * Enabled by default with the flag `--enable-source-maps`.
192
+ */
193
+ sourceMap?: boolean | undefined;
194
+ }
188
195
  /**
189
- * Returns an array of stacktrace objects containing the stack of
196
+ * Returns an array of call site objects containing the stack of
190
197
  * the caller function.
191
198
  *
192
199
  * ```js
193
200
  * const util = require('node:util');
194
201
  *
195
202
  * function exampleFunction() {
196
- * const callSites = util.getCallSite();
203
+ * const callSites = util.getCallSites();
197
204
  *
198
205
  * console.log('Call Sites:');
199
206
  * callSites.forEach((callSite, index) => {
@@ -225,12 +232,40 @@ declare module "util" {
225
232
  *
226
233
  * anotherFunction();
227
234
  * ```
228
- * @param frames Number of frames returned in the stacktrace.
235
+ *
236
+ * It is possible to reconstruct the original locations by setting the option `sourceMap` to `true`.
237
+ * If the source map is not available, the original location will be the same as the current location.
238
+ * When the `--enable-source-maps` flag is enabled, for example when using `--experimental-transform-types`,
239
+ * `sourceMap` will be true by default.
240
+ *
241
+ * ```ts
242
+ * import util from 'node:util';
243
+ *
244
+ * interface Foo {
245
+ * foo: string;
246
+ * }
247
+ *
248
+ * const callSites = util.getCallSites({ sourceMap: true });
249
+ *
250
+ * // With sourceMap:
251
+ * // Function Name: ''
252
+ * // Script Name: example.js
253
+ * // Line Number: 7
254
+ * // Column Number: 26
255
+ *
256
+ * // Without sourceMap:
257
+ * // Function Name: ''
258
+ * // Script Name: example.js
259
+ * // Line Number: 2
260
+ * // Column Number: 26
261
+ * ```
262
+ * @param frameCount Number of frames to capture as call site objects.
229
263
  * **Default:** `10`. Allowable range is between 1 and 200.
230
- * @return An array of stacktrace objects
264
+ * @return An array of call site objects
231
265
  * @since v22.9.0
232
266
  */
233
- export function getCallSite(frames?: number): StacktraceObject[];
267
+ export function getCallSites(frameCount?: number, options?: GetCallSitesOptions): CallSiteObject[];
268
+ export function getCallSites(options: GetCallSitesOptions): CallSiteObject[];
234
269
  /**
235
270
  * Returns the string name for a numeric error code that comes from a Node.js API.
236
271
  * The mapping between error codes and error names is platform-dependent.
@@ -260,6 +295,20 @@ declare module "util" {
260
295
  * @since v16.0.0, v14.17.0
261
296
  */
262
297
  export function getSystemErrorMap(): Map<number, [string, string]>;
298
+ /**
299
+ * Returns the string message for a numeric error code that comes from a Node.js
300
+ * API.
301
+ * The mapping between error codes and string messages is platform-dependent.
302
+ *
303
+ * ```js
304
+ * fs.access('file/that/does/not/exist', (err) => {
305
+ * const name = util.getSystemErrorMessage(err.errno);
306
+ * console.error(name); // no such file or directory
307
+ * });
308
+ * ```
309
+ * @since v22.12.0
310
+ */
311
+ export function getSystemErrorMessage(err: number): string;
263
312
  /**
264
313
  * The `util.log()` method prints the given `string` to `stdout` with an included
265
314
  * timestamp.
@@ -303,27 +352,36 @@ declare module "util" {
303
352
  */
304
353
  export function transferableAbortSignal(signal: AbortSignal): AbortSignal;
305
354
  /**
306
- * Listens to abort event on the provided `signal` and
307
- * returns a promise that is fulfilled when the `signal` is
308
- * aborted. If the passed `resource` is garbage collected before the `signal` is
309
- * aborted, the returned promise shall remain pending indefinitely.
355
+ * Listens to abort event on the provided `signal` and returns a promise that resolves when the `signal` is aborted.
356
+ * If `resource` is provided, it weakly references the operation's associated object,
357
+ * so if `resource` is garbage collected before the `signal` aborts,
358
+ * then returned promise shall remain pending.
359
+ * This prevents memory leaks in long-running or non-cancelable operations.
310
360
  *
311
361
  * ```js
312
362
  * import { aborted } from 'node:util';
313
363
  *
364
+ * // Obtain an object with an abortable signal, like a custom resource or operation.
314
365
  * const dependent = obtainSomethingAbortable();
315
366
  *
367
+ * // Pass `dependent` as the resource, indicating the promise should only resolve
368
+ * // if `dependent` is still in memory when the signal is aborted.
316
369
  * aborted(dependent.signal, dependent).then(() => {
317
- * // Do something when dependent is aborted.
370
+ * // This code runs when `dependent` is aborted.
371
+ * console.log('Dependent resource was aborted.');
318
372
  * });
319
373
  *
374
+ * // Simulate an event that triggers the abort.
320
375
  * dependent.on('event', () => {
321
- * dependent.abort();
376
+ * dependent.abort(); // This will cause the `aborted` promise to resolve.
322
377
  * });
323
378
  * ```
324
379
  * @since v19.7.0
325
380
  * @experimental
326
- * @param resource Any non-null entity, reference to which is held weakly.
381
+ * @param resource Any non-null object tied to the abortable operation and held weakly.
382
+ * If `resource` is garbage collected before the `signal` aborts, the promise remains pending,
383
+ * allowing Node.js to stop tracking it.
384
+ * This helps prevent memory leaks in long-running or non-cancelable operations.
327
385
  */
328
386
  export function aborted(signal: AbortSignal, resource: any): Promise<void>;
329
387
  /**
@@ -1307,8 +1365,6 @@ declare module "util" {
1307
1365
  | "strikethrough"
1308
1366
  | "underline";
1309
1367
  /**
1310
- * Stability: 1.1 - Active development
1311
- *
1312
1368
  * This function returns a formatted text considering the `format` passed.
1313
1369
  *
1314
1370
  * ```js
@@ -1917,6 +1973,18 @@ declare module "util/types" {
1917
1973
  * @since v10.0.0
1918
1974
  */
1919
1975
  function isBigInt64Array(value: unknown): value is BigInt64Array;
1976
+ /**
1977
+ * Returns `true` if the value is a BigInt object, e.g. created
1978
+ * by `Object(BigInt(123))`.
1979
+ *
1980
+ * ```js
1981
+ * util.types.isBigIntObject(Object(BigInt(123))); // Returns true
1982
+ * util.types.isBigIntObject(BigInt(123)); // Returns false
1983
+ * util.types.isBigIntObject(123); // Returns false
1984
+ * ```
1985
+ * @since v10.4.0
1986
+ */
1987
+ function isBigIntObject(object: unknown): object is BigInt;
1920
1988
  /**
1921
1989
  * Returns `true` if the value is a `BigUint64Array` instance.
1922
1990
  *
@@ -69,7 +69,7 @@ declare module "vm" {
69
69
  * [Support of dynamic `import()` in compilation APIs](https://nodejs.org/docs/latest-v22.x/api/vm.html#support-of-dynamic-import-in-compilation-apis).
70
70
  */
71
71
  importModuleDynamically?:
72
- | ((specifier: string, script: Script, importAttributes: ImportAttributes) => Module)
72
+ | ((specifier: string, script: Script, importAttributes: ImportAttributes) => Module | Promise<Module>)
73
73
  | typeof constants.USE_MAIN_CONTEXT_DEFAULT_LOADER
74
74
  | undefined;
75
75
  }