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
@@ -1,11 +1,255 @@
1
1
  /**
2
2
  * @since v0.3.7
3
- * @experimental
4
3
  */
5
4
  declare module "module" {
6
5
  import { URL } from "node:url";
7
- import { MessagePort } from "node:worker_threads";
6
+ class Module {
7
+ constructor(id: string, parent?: Module);
8
+ }
9
+ interface Module extends NodeJS.Module {}
8
10
  namespace Module {
11
+ export { Module };
12
+ }
13
+ namespace Module {
14
+ /**
15
+ * A list of the names of all modules provided by Node.js. Can be used to verify
16
+ * if a module is maintained by a third party or not.
17
+ *
18
+ * Note: the list doesn't contain prefix-only modules like `node:test`.
19
+ * @since v9.3.0, v8.10.0, v6.13.0
20
+ */
21
+ const builtinModules: readonly string[];
22
+ /**
23
+ * @since v12.2.0
24
+ * @param path Filename to be used to construct the require
25
+ * function. Must be a file URL object, file URL string, or absolute path
26
+ * string.
27
+ */
28
+ function createRequire(path: string | URL): NodeJS.Require;
29
+ namespace constants {
30
+ /**
31
+ * The following constants are returned as the `status` field in the object returned by
32
+ * {@link enableCompileCache} to indicate the result of the attempt to enable the
33
+ * [module compile cache](https://nodejs.org/docs/latest-v22.x/api/module.html#module-compile-cache).
34
+ * @since v22.8.0
35
+ */
36
+ namespace compileCacheStatus {
37
+ /**
38
+ * Node.js has enabled the compile cache successfully. The directory used to store the
39
+ * compile cache will be returned in the `directory` field in the
40
+ * returned object.
41
+ */
42
+ const ENABLED: number;
43
+ /**
44
+ * The compile cache has already been enabled before, either by a previous call to
45
+ * {@link enableCompileCache}, or by the `NODE_COMPILE_CACHE=dir`
46
+ * environment variable. The directory used to store the
47
+ * compile cache will be returned in the `directory` field in the
48
+ * returned object.
49
+ */
50
+ const ALREADY_ENABLED: number;
51
+ /**
52
+ * Node.js fails to enable the compile cache. This can be caused by the lack of
53
+ * permission to use the specified directory, or various kinds of file system errors.
54
+ * The detail of the failure will be returned in the `message` field in the
55
+ * returned object.
56
+ */
57
+ const FAILED: number;
58
+ /**
59
+ * Node.js cannot enable the compile cache because the environment variable
60
+ * `NODE_DISABLE_COMPILE_CACHE=1` has been set.
61
+ */
62
+ const DISABLED: number;
63
+ }
64
+ }
65
+ interface EnableCompileCacheResult {
66
+ /**
67
+ * One of the {@link constants.compileCacheStatus}
68
+ */
69
+ status: number;
70
+ /**
71
+ * If Node.js cannot enable the compile cache, this contains
72
+ * the error message. Only set if `status` is `module.constants.compileCacheStatus.FAILED`.
73
+ */
74
+ message?: string;
75
+ /**
76
+ * If the compile cache is enabled, this contains the directory
77
+ * where the compile cache is stored. Only set if `status` is
78
+ * `module.constants.compileCacheStatus.ENABLED` or
79
+ * `module.constants.compileCacheStatus.ALREADY_ENABLED`.
80
+ */
81
+ directory?: string;
82
+ }
83
+ /**
84
+ * Enable [module compile cache](https://nodejs.org/docs/latest-v22.x/api/module.html#module-compile-cache)
85
+ * in the current Node.js instance.
86
+ *
87
+ * If `cacheDir` is not specified, Node.js will either use the directory specified by the
88
+ * `NODE_COMPILE_CACHE=dir` environment variable if it's set, or use
89
+ * `path.join(os.tmpdir(), 'node-compile-cache')` otherwise. For general use cases, it's
90
+ * recommended to call `module.enableCompileCache()` without specifying the `cacheDir`,
91
+ * so that the directory can be overridden by the `NODE_COMPILE_CACHE` environment
92
+ * variable when necessary.
93
+ *
94
+ * Since compile cache is supposed to be a quiet optimization that is not required for the
95
+ * application to be functional, this method is designed to not throw any exception when the
96
+ * compile cache cannot be enabled. Instead, it will return an object containing an error
97
+ * message in the `message` field to aid debugging.
98
+ * If compile cache is enabled successfully, the `directory` field in the returned object
99
+ * contains the path to the directory where the compile cache is stored. The `status`
100
+ * field in the returned object would be one of the `module.constants.compileCacheStatus`
101
+ * values to indicate the result of the attempt to enable the
102
+ * [module compile cache](https://nodejs.org/docs/latest-v22.x/api/module.html#module-compile-cache).
103
+ *
104
+ * This method only affects the current Node.js instance. To enable it in child worker threads,
105
+ * either call this method in child worker threads too, or set the
106
+ * `process.env.NODE_COMPILE_CACHE` value to compile cache directory so the behavior can
107
+ * be inherited into the child workers. The directory can be obtained either from the
108
+ * `directory` field returned by this method, or with {@link getCompileCacheDir}.
109
+ * @since v22.8.0
110
+ * @param cacheDir Optional path to specify the directory where the compile cache
111
+ * will be stored/retrieved.
112
+ */
113
+ function enableCompileCache(cacheDir?: string): EnableCompileCacheResult;
114
+ /**
115
+ * Flush the [module compile cache](https://nodejs.org/docs/latest-v22.x/api/module.html#module-compile-cache)
116
+ * accumulated from modules already loaded
117
+ * in the current Node.js instance to disk. This returns after all the flushing
118
+ * file system operations come to an end, no matter they succeed or not. If there
119
+ * are any errors, this will fail silently, since compile cache misses should not
120
+ * interfere with the actual operation of the application.
121
+ * @since v22.10.0
122
+ */
123
+ function flushCompileCache(): void;
124
+ /**
125
+ * @since v22.8.0
126
+ * @return Path to the [module compile cache](https://nodejs.org/docs/latest-v22.x/api/module.html#module-compile-cache)
127
+ * directory if it is enabled, or `undefined` otherwise.
128
+ */
129
+ function getCompileCacheDir(): string | undefined;
130
+ /**
131
+ * @since v23.2.0, v22.14.0
132
+ */
133
+ function findPackageJSON(
134
+ specifier: string | URL,
135
+ base?: string | URL,
136
+ ): undefined | string;
137
+ /**
138
+ * @since v18.6.0, v16.17.0
139
+ */
140
+ function isBuiltin(moduleName: string): boolean;
141
+ interface RegisterOptions<Data> {
142
+ /**
143
+ * If you want to resolve `specifier` relative to a
144
+ * base URL, such as `import.meta.url`, you can pass that URL here. This
145
+ * property is ignored if the `parentURL` is supplied as the second argument.
146
+ * @default 'data:'
147
+ */
148
+ parentURL?: string | URL | undefined;
149
+ /**
150
+ * Any arbitrary, cloneable JavaScript value to pass into the
151
+ * {@link initialize} hook.
152
+ */
153
+ data?: Data | undefined;
154
+ /**
155
+ * [Transferable objects](https://nodejs.org/docs/latest-v22.x/api/worker_threads.html#portpostmessagevalue-transferlist)
156
+ * to be passed into the `initialize` hook.
157
+ */
158
+ transferList?: any[] | undefined;
159
+ }
160
+ /* eslint-disable @definitelytyped/no-unnecessary-generics */
161
+ /**
162
+ * Register a module that exports hooks that customize Node.js module
163
+ * resolution and loading behavior. See
164
+ * [Customization hooks](https://nodejs.org/docs/latest-v22.x/api/module.html#customization-hooks).
165
+ * @since v20.6.0, v18.19.0
166
+ * @param specifier Customization hooks to be registered; this should be
167
+ * the same string that would be passed to `import()`, except that if it is
168
+ * relative, it is resolved relative to `parentURL`.
169
+ * @param parentURL f you want to resolve `specifier` relative to a base
170
+ * URL, such as `import.meta.url`, you can pass that URL here.
171
+ */
172
+ function register<Data = any>(
173
+ specifier: string | URL,
174
+ parentURL?: string | URL,
175
+ options?: RegisterOptions<Data>,
176
+ ): void;
177
+ function register<Data = any>(specifier: string | URL, options?: RegisterOptions<Data>): void;
178
+ interface StripTypeScriptTypesOptions {
179
+ /**
180
+ * Possible values are:
181
+ * * `'strip'` Only strip type annotations without performing the transformation of TypeScript features.
182
+ * * `'transform'` Strip type annotations and transform TypeScript features to JavaScript.
183
+ * @default 'strip'
184
+ */
185
+ mode?: "strip" | "transform" | undefined;
186
+ /**
187
+ * Only when `mode` is `'transform'`, if `true`, a source map
188
+ * will be generated for the transformed code.
189
+ * @default false
190
+ */
191
+ sourceMap?: boolean | undefined;
192
+ /**
193
+ * Specifies the source url used in the source map.
194
+ */
195
+ sourceUrl?: string | undefined;
196
+ }
197
+ /**
198
+ * `module.stripTypeScriptTypes()` removes type annotations from TypeScript code. It
199
+ * can be used to strip type annotations from TypeScript code before running it
200
+ * with `vm.runInContext()` or `vm.compileFunction()`.
201
+ * By default, it will throw an error if the code contains TypeScript features
202
+ * that require transformation such as `Enums`,
203
+ * see [type-stripping](https://nodejs.org/docs/latest-v22.x/api/typescript.md#type-stripping) for more information.
204
+ * When mode is `'transform'`, it also transforms TypeScript features to JavaScript,
205
+ * see [transform TypeScript features](https://nodejs.org/docs/latest-v22.x/api/typescript.md#typescript-features) for more information.
206
+ * When mode is `'strip'`, source maps are not generated, because locations are preserved.
207
+ * If `sourceMap` is provided, when mode is `'strip'`, an error will be thrown.
208
+ *
209
+ * _WARNING_: The output of this function should not be considered stable across Node.js versions,
210
+ * due to changes in the TypeScript parser.
211
+ *
212
+ * ```js
213
+ * import { stripTypeScriptTypes } from 'node:module';
214
+ * const code = 'const a: number = 1;';
215
+ * const strippedCode = stripTypeScriptTypes(code);
216
+ * console.log(strippedCode);
217
+ * // Prints: const a = 1;
218
+ * ```
219
+ *
220
+ * If `sourceUrl` is provided, it will be used appended as a comment at the end of the output:
221
+ *
222
+ * ```js
223
+ * import { stripTypeScriptTypes } from 'node:module';
224
+ * const code = 'const a: number = 1;';
225
+ * const strippedCode = stripTypeScriptTypes(code, { mode: 'strip', sourceUrl: 'source.ts' });
226
+ * console.log(strippedCode);
227
+ * // Prints: const a = 1\n\n//# sourceURL=source.ts;
228
+ * ```
229
+ *
230
+ * When `mode` is `'transform'`, the code is transformed to JavaScript:
231
+ *
232
+ * ```js
233
+ * import { stripTypeScriptTypes } from 'node:module';
234
+ * const code = `
235
+ * namespace MathUtil {
236
+ * export const add = (a: number, b: number) => a + b;
237
+ * }`;
238
+ * const strippedCode = stripTypeScriptTypes(code, { mode: 'transform', sourceMap: true });
239
+ * console.log(strippedCode);
240
+ * // Prints:
241
+ * // var MathUtil;
242
+ * // (function(MathUtil) {
243
+ * // MathUtil.add = (a, b)=>a + b;
244
+ * // })(MathUtil || (MathUtil = {}));
245
+ * // # sourceMappingURL=data:application/json;base64, ...
246
+ * ```
247
+ * @since v22.13.0
248
+ * @param code The code to strip type annotations from.
249
+ * @returns The code with type annotations stripped.
250
+ */
251
+ function stripTypeScriptTypes(code: string, options?: StripTypeScriptTypesOptions): string;
252
+ /* eslint-enable @definitelytyped/no-unnecessary-generics */
9
253
  /**
10
254
  * The `module.syncBuiltinESMExports()` method updates all the live bindings for
11
255
  * builtin `ES Modules` to match the properties of the `CommonJS` exports. It
@@ -42,86 +286,6 @@ declare module "module" {
42
286
  * @since v12.12.0
43
287
  */
44
288
  function syncBuiltinESMExports(): void;
45
- /**
46
- * `path` is the resolved path for the file for which a corresponding source map
47
- * should be fetched.
48
- * @since v13.7.0, v12.17.0
49
- * @return Returns `module.SourceMap` if a source map is found, `undefined` otherwise.
50
- */
51
- function findSourceMap(path: string, error?: Error): SourceMap | undefined;
52
- interface SourceMapPayload {
53
- file: string;
54
- version: number;
55
- sources: string[];
56
- sourcesContent: string[];
57
- names: string[];
58
- mappings: string;
59
- sourceRoot: string;
60
- }
61
- interface SourceMapping {
62
- generatedLine: number;
63
- generatedColumn: number;
64
- originalSource: string;
65
- originalLine: number;
66
- originalColumn: number;
67
- }
68
- interface SourceOrigin {
69
- /**
70
- * The name of the range in the source map, if one was provided
71
- */
72
- name?: string;
73
- /**
74
- * The file name of the original source, as reported in the SourceMap
75
- */
76
- fileName: string;
77
- /**
78
- * The 1-indexed lineNumber of the corresponding call site in the original source
79
- */
80
- lineNumber: number;
81
- /**
82
- * The 1-indexed columnNumber of the corresponding call site in the original source
83
- */
84
- columnNumber: number;
85
- }
86
- /**
87
- * @since v13.7.0, v12.17.0
88
- */
89
- class SourceMap {
90
- /**
91
- * Getter for the payload used to construct the `SourceMap` instance.
92
- */
93
- readonly payload: SourceMapPayload;
94
- constructor(payload: SourceMapPayload);
95
- /**
96
- * Given a line offset and column offset in the generated source
97
- * file, returns an object representing the SourceMap range in the
98
- * original file if found, or an empty object if not.
99
- *
100
- * The object returned contains the following keys:
101
- *
102
- * The returned value represents the raw range as it appears in the
103
- * SourceMap, based on zero-indexed offsets, _not_ 1-indexed line and
104
- * column numbers as they appear in Error messages and CallSite
105
- * objects.
106
- *
107
- * To get the corresponding 1-indexed line and column numbers from a
108
- * lineNumber and columnNumber as they are reported by Error stacks
109
- * and CallSite objects, use `sourceMap.findOrigin(lineNumber, columnNumber)`
110
- * @param lineOffset The zero-indexed line number offset in the generated source
111
- * @param columnOffset The zero-indexed column number offset in the generated source
112
- */
113
- findEntry(lineOffset: number, columnOffset: number): SourceMapping;
114
- /**
115
- * Given a 1-indexed `lineNumber` and `columnNumber` from a call site in the generated source,
116
- * find the corresponding call site location in the original source.
117
- *
118
- * If the `lineNumber` and `columnNumber` provided are not found in any source map,
119
- * then an empty object is returned.
120
- * @param lineNumber The 1-indexed line number of the call site in the generated source
121
- * @param columnNumber The 1-indexed column number of the call site in the generated source
122
- */
123
- findOrigin(lineNumber: number, columnNumber: number): SourceOrigin | {};
124
- }
125
289
  interface ImportAttributes extends NodeJS.Dict<string> {
126
290
  type?: string | undefined;
127
291
  }
@@ -134,26 +298,15 @@ declare module "module" {
134
298
  | "module-typescript"
135
299
  | "wasm";
136
300
  type ModuleSource = string | ArrayBuffer | NodeJS.TypedArray;
137
- interface GlobalPreloadContext {
138
- port: MessagePort;
139
- }
140
- /**
141
- * @deprecated This hook will be removed in a future version.
142
- * Use `initialize` instead. When a loader has an `initialize` export, `globalPreload` will be ignored.
143
- *
144
- * Sometimes it might be necessary to run some code inside of the same global scope that the application runs in.
145
- * This hook allows the return of a string that is run as a sloppy-mode script on startup.
146
- *
147
- * @param context Information to assist the preload code
148
- * @return Code to run before application startup
149
- */
150
- type GlobalPreloadHook = (context: GlobalPreloadContext) => string;
151
301
  /**
152
- * The `initialize` hook provides a way to define a custom function that runs in the hooks thread
153
- * when the hooks module is initialized. Initialization happens when the hooks module is registered via `register`.
302
+ * The `initialize` hook provides a way to define a custom function that runs in
303
+ * the hooks thread when the hooks module is initialized. Initialization happens
304
+ * when the hooks module is registered via {@link register}.
154
305
  *
155
- * This hook can receive data from a `register` invocation, including ports and other transferrable objects.
156
- * The return value of `initialize` can be a `Promise`, in which case it will be awaited before the main application thread execution resumes.
306
+ * This hook can receive data from a {@link register} invocation, including
307
+ * ports and other transferable objects. The return value of `initialize` can be a
308
+ * `Promise`, in which case it will be awaited before the main application thread
309
+ * execution resumes.
157
310
  */
158
311
  type InitializeHook<Data = any> = (data: Data) => void | Promise<void>;
159
312
  interface ResolveHookContext {
@@ -172,9 +325,9 @@ declare module "module" {
172
325
  }
173
326
  interface ResolveFnOutput {
174
327
  /**
175
- * A hint to the load hook (it might be ignored)
328
+ * A hint to the load hook (it might be ignored); can be an intermediary value.
176
329
  */
177
- format?: ModuleFormat | null | undefined;
330
+ format?: string | null | undefined;
178
331
  /**
179
332
  * The import attributes to use when caching the module (optional; if excluded the input will be used)
180
333
  */
@@ -190,20 +343,20 @@ declare module "module" {
190
343
  url: string;
191
344
  }
192
345
  /**
193
- * The `resolve` hook chain is responsible for resolving file URL for a given module specifier and parent URL, and optionally its format (such as `'module'`) as a hint to the `load` hook.
194
- * If a format is specified, the load hook is ultimately responsible for providing the final `format` value (and it is free to ignore the hint provided by `resolve`);
195
- * if `resolve` provides a format, a custom `load` hook is required even if only to pass the value to the Node.js default `load` hook.
196
- *
197
- * @param specifier The specified URL path of the module to be resolved
198
- * @param context
199
- * @param nextResolve The subsequent `resolve` hook in the chain, or the Node.js default `resolve` hook after the last user-supplied resolve hook
346
+ * The `resolve` hook chain is responsible for telling Node.js where to find and
347
+ * how to cache a given `import` statement or expression, or `require` call. It can
348
+ * optionally return a format (such as `'module'`) as a hint to the `load` hook. If
349
+ * a format is specified, the `load` hook is ultimately responsible for providing
350
+ * the final `format` value (and it is free to ignore the hint provided by
351
+ * `resolve`); if `resolve` provides a `format`, a custom `load` hook is required
352
+ * even if only to pass the value to the Node.js default `load` hook.
200
353
  */
201
354
  type ResolveHook = (
202
355
  specifier: string,
203
356
  context: ResolveHookContext,
204
357
  nextResolve: (
205
358
  specifier: string,
206
- context?: ResolveHookContext,
359
+ context?: Partial<ResolveHookContext>,
207
360
  ) => ResolveFnOutput | Promise<ResolveFnOutput>,
208
361
  ) => ResolveFnOutput | Promise<ResolveFnOutput>;
209
362
  interface LoadHookContext {
@@ -212,9 +365,9 @@ declare module "module" {
212
365
  */
213
366
  conditions: string[];
214
367
  /**
215
- * The format optionally supplied by the `resolve` hook chain
368
+ * The format optionally supplied by the `resolve` hook chain (can be an intermediary value).
216
369
  */
217
- format: ModuleFormat;
370
+ format: string | null | undefined;
218
371
  /**
219
372
  * An object whose key-value pairs represent the assertions for the module to import
220
373
  */
@@ -230,143 +383,109 @@ declare module "module" {
230
383
  /**
231
384
  * The source for Node.js to evaluate
232
385
  */
233
- source?: ModuleSource;
386
+ source?: ModuleSource | undefined;
234
387
  }
235
388
  /**
236
- * The `load` hook provides a way to define a custom method of determining how a URL should be interpreted, retrieved, and parsed.
237
- * It is also in charge of validating the import assertion.
238
- *
239
- * @param url The URL/path of the module to be loaded
240
- * @param context Metadata about the module
241
- * @param nextLoad The subsequent `load` hook in the chain, or the Node.js default `load` hook after the last user-supplied `load` hook
389
+ * The `load` hook provides a way to define a custom method of determining how a
390
+ * URL should be interpreted, retrieved, and parsed. It is also in charge of
391
+ * validating the import attributes.
242
392
  */
243
393
  type LoadHook = (
244
394
  url: string,
245
395
  context: LoadHookContext,
246
- nextLoad: (url: string, context?: LoadHookContext) => LoadFnOutput | Promise<LoadFnOutput>,
396
+ nextLoad: (
397
+ url: string,
398
+ context?: Partial<LoadHookContext>,
399
+ ) => LoadFnOutput | Promise<LoadFnOutput>,
247
400
  ) => LoadFnOutput | Promise<LoadFnOutput>;
248
- namespace constants {
401
+ /**
402
+ * `path` is the resolved path for the file for which a corresponding source map
403
+ * should be fetched.
404
+ * @since v13.7.0, v12.17.0
405
+ * @return Returns `module.SourceMap` if a source map is found, `undefined` otherwise.
406
+ */
407
+ function findSourceMap(path: string): SourceMap | undefined;
408
+ interface SourceMapConstructorOptions {
249
409
  /**
250
- * The following constants are returned as the `status` field in the object returned by
251
- * {@link enableCompileCache} to indicate the result of the attempt to enable the
252
- * [module compile cache](https://nodejs.org/docs/latest-v22.x/api/module.html#module-compile-cache).
253
- * @since v22.8.0
410
+ * @since v21.0.0, v20.5.0
254
411
  */
255
- namespace compileCacheStatus {
256
- /**
257
- * Node.js has enabled the compile cache successfully. The directory used to store the
258
- * compile cache will be returned in the `directory` field in the
259
- * returned object.
260
- */
261
- const ENABLED: number;
262
- /**
263
- * The compile cache has already been enabled before, either by a previous call to
264
- * {@link enableCompileCache}, or by the `NODE_COMPILE_CACHE=dir`
265
- * environment variable. The directory used to store the
266
- * compile cache will be returned in the `directory` field in the
267
- * returned object.
268
- */
269
- const ALREADY_ENABLED: number;
270
- /**
271
- * Node.js fails to enable the compile cache. This can be caused by the lack of
272
- * permission to use the specified directory, or various kinds of file system errors.
273
- * The detail of the failure will be returned in the `message` field in the
274
- * returned object.
275
- */
276
- const FAILED: number;
277
- /**
278
- * Node.js cannot enable the compile cache because the environment variable
279
- * `NODE_DISABLE_COMPILE_CACHE=1` has been set.
280
- */
281
- const DISABLED: number;
282
- }
412
+ lineLengths?: readonly number[] | undefined;
413
+ }
414
+ interface SourceMapPayload {
415
+ file: string;
416
+ version: number;
417
+ sources: string[];
418
+ sourcesContent: string[];
419
+ names: string[];
420
+ mappings: string;
421
+ sourceRoot: string;
422
+ }
423
+ interface SourceMapping {
424
+ generatedLine: number;
425
+ generatedColumn: number;
426
+ originalSource: string;
427
+ originalLine: number;
428
+ originalColumn: number;
429
+ }
430
+ interface SourceOrigin {
431
+ /**
432
+ * The name of the range in the source map, if one was provided
433
+ */
434
+ name: string | undefined;
435
+ /**
436
+ * The file name of the original source, as reported in the SourceMap
437
+ */
438
+ fileName: string;
439
+ /**
440
+ * The 1-indexed lineNumber of the corresponding call site in the original source
441
+ */
442
+ lineNumber: number;
443
+ /**
444
+ * The 1-indexed columnNumber of the corresponding call site in the original source
445
+ */
446
+ columnNumber: number;
283
447
  }
284
- }
285
- interface RegisterOptions<Data> {
286
- parentURL: string | URL;
287
- data?: Data | undefined;
288
- transferList?: any[] | undefined;
289
- }
290
- interface EnableCompileCacheResult {
291
- /**
292
- * One of the {@link constants.compileCacheStatus}
293
- */
294
- status: number;
295
- /**
296
- * If Node.js cannot enable the compile cache, this contains
297
- * the error message. Only set if `status` is `module.constants.compileCacheStatus.FAILED`.
298
- */
299
- message?: string;
300
- /**
301
- * If the compile cache is enabled, this contains the directory
302
- * where the compile cache is stored. Only set if `status` is
303
- * `module.constants.compileCacheStatus.ENABLED` or
304
- * `module.constants.compileCacheStatus.ALREADY_ENABLED`.
305
- */
306
- directory?: string;
307
- }
308
- interface Module extends NodeModule {}
309
- class Module {
310
- static runMain(): void;
311
- static wrap(code: string): string;
312
- static createRequire(path: string | URL): NodeRequire;
313
- static builtinModules: string[];
314
- static isBuiltin(moduleName: string): boolean;
315
- static Module: typeof Module;
316
- static register<Data = any>(
317
- specifier: string | URL,
318
- parentURL?: string | URL,
319
- options?: RegisterOptions<Data>,
320
- ): void;
321
- static register<Data = any>(specifier: string | URL, options?: RegisterOptions<Data>): void;
322
- /**
323
- * Enable [module compile cache](https://nodejs.org/docs/latest-v22.x/api/module.html#module-compile-cache)
324
- * in the current Node.js instance.
325
- *
326
- * If `cacheDir` is not specified, Node.js will either use the directory specified by the
327
- * `NODE_COMPILE_CACHE=dir` environment variable if it's set, or use
328
- * `path.join(os.tmpdir(), 'node-compile-cache')` otherwise. For general use cases, it's
329
- * recommended to call `module.enableCompileCache()` without specifying the `cacheDir`,
330
- * so that the directory can be overridden by the `NODE_COMPILE_CACHE` environment
331
- * variable when necessary.
332
- *
333
- * Since compile cache is supposed to be a quiet optimization that is not required for the
334
- * application to be functional, this method is designed to not throw any exception when the
335
- * compile cache cannot be enabled. Instead, it will return an object containing an error
336
- * message in the `message` field to aid debugging.
337
- * If compile cache is enabled successfully, the `directory` field in the returned object
338
- * contains the path to the directory where the compile cache is stored. The `status`
339
- * field in the returned object would be one of the `module.constants.compileCacheStatus`
340
- * values to indicate the result of the attempt to enable the
341
- * [module compile cache](https://nodejs.org/docs/latest-v22.x/api/module.html#module-compile-cache).
342
- *
343
- * This method only affects the current Node.js instance. To enable it in child worker threads,
344
- * either call this method in child worker threads too, or set the
345
- * `process.env.NODE_COMPILE_CACHE` value to compile cache directory so the behavior can
346
- * be inherited into the child workers. The directory can be obtained either from the
347
- * `directory` field returned by this method, or with {@link getCompileCacheDir}.
348
- * @since v22.8.0
349
- * @param cacheDir Optional path to specify the directory where the compile cache
350
- * will be stored/retrieved.
351
- */
352
- static enableCompileCache(cacheDir?: string): EnableCompileCacheResult;
353
- /**
354
- * @since v22.8.0
355
- * @return Path to the [module compile cache](https://nodejs.org/docs/latest-v22.x/api/module.html#module-compile-cache)
356
- * directory if it is enabled, or `undefined` otherwise.
357
- */
358
- static getCompileCacheDir(): string | undefined;
359
448
  /**
360
- * Flush the [module compile cache](https://nodejs.org/docs/latest-v22.x/api/module.html#module-compile-cache)
361
- * accumulated from modules already loaded
362
- * in the current Node.js instance to disk. This returns after all the flushing
363
- * file system operations come to an end, no matter they succeed or not. If there
364
- * are any errors, this will fail silently, since compile cache misses should not
365
- * interfere with the actual operation of the application.
366
- * @since v22.10.0
449
+ * @since v13.7.0, v12.17.0
367
450
  */
368
- static flushCompileCache(): void;
369
- constructor(id: string, parent?: Module);
451
+ class SourceMap {
452
+ constructor(payload: SourceMapPayload, options?: SourceMapConstructorOptions);
453
+ /**
454
+ * Getter for the payload used to construct the `SourceMap` instance.
455
+ */
456
+ readonly payload: SourceMapPayload;
457
+ /**
458
+ * Given a line offset and column offset in the generated source
459
+ * file, returns an object representing the SourceMap range in the
460
+ * original file if found, or an empty object if not.
461
+ *
462
+ * The object returned contains the following keys:
463
+ *
464
+ * The returned value represents the raw range as it appears in the
465
+ * SourceMap, based on zero-indexed offsets, _not_ 1-indexed line and
466
+ * column numbers as they appear in Error messages and CallSite
467
+ * objects.
468
+ *
469
+ * To get the corresponding 1-indexed line and column numbers from a
470
+ * lineNumber and columnNumber as they are reported by Error stacks
471
+ * and CallSite objects, use `sourceMap.findOrigin(lineNumber, columnNumber)`
472
+ * @param lineOffset The zero-indexed line number offset in the generated source
473
+ * @param columnOffset The zero-indexed column number offset in the generated source
474
+ */
475
+ findEntry(lineOffset: number, columnOffset: number): SourceMapping | {};
476
+ /**
477
+ * Given a 1-indexed `lineNumber` and `columnNumber` from a call site in the generated source,
478
+ * find the corresponding call site location in the original source.
479
+ *
480
+ * If the `lineNumber` and `columnNumber` provided are not found in any source map,
481
+ * then an empty object is returned.
482
+ * @param lineNumber The 1-indexed line number of the call site in the generated source
483
+ * @param columnNumber The 1-indexed column number of the call site in the generated source
484
+ */
485
+ findOrigin(lineNumber: number, columnNumber: number): SourceOrigin | {};
486
+ }
487
+ function runMain(main?: string): void;
488
+ function wrap(script: string): string;
370
489
  }
371
490
  global {
372
491
  interface ImportMeta {
@@ -400,6 +519,180 @@ declare module "module" {
400
519
  */
401
520
  resolve(specifier: string, parent?: string | URL | undefined): string;
402
521
  }
522
+ namespace NodeJS {
523
+ interface Module {
524
+ /**
525
+ * The module objects required for the first time by this one.
526
+ * @since v0.1.16
527
+ */
528
+ children: Module[];
529
+ /**
530
+ * The `module.exports` object is created by the `Module` system. Sometimes this is
531
+ * not acceptable; many want their module to be an instance of some class. To do
532
+ * this, assign the desired export object to `module.exports`.
533
+ * @since v0.1.16
534
+ */
535
+ exports: any;
536
+ /**
537
+ * The fully resolved filename of the module.
538
+ * @since v0.1.16
539
+ */
540
+ filename: string;
541
+ /**
542
+ * The identifier for the module. Typically this is the fully resolved
543
+ * filename.
544
+ * @since v0.1.16
545
+ */
546
+ id: string;
547
+ /**
548
+ * `true` if the module is running during the Node.js preload
549
+ * phase.
550
+ * @since v15.4.0, v14.17.0
551
+ */
552
+ isPreloading: boolean;
553
+ /**
554
+ * Whether or not the module is done loading, or is in the process of
555
+ * loading.
556
+ * @since v0.1.16
557
+ */
558
+ loaded: boolean;
559
+ /**
560
+ * The module that first required this one, or `null` if the current module is the
561
+ * entry point of the current process, or `undefined` if the module was loaded by
562
+ * something that is not a CommonJS module (e.g. REPL or `import`).
563
+ * @since v0.1.16
564
+ * @deprecated Please use `require.main` and `module.children` instead.
565
+ */
566
+ parent: Module | null | undefined;
567
+ /**
568
+ * The directory name of the module. This is usually the same as the
569
+ * `path.dirname()` of the `module.id`.
570
+ * @since v11.14.0
571
+ */
572
+ path: string;
573
+ /**
574
+ * The search paths for the module.
575
+ * @since v0.4.0
576
+ */
577
+ paths: string[];
578
+ /**
579
+ * The `module.require()` method provides a way to load a module as if
580
+ * `require()` was called from the original module.
581
+ * @since v0.5.1
582
+ */
583
+ require(id: string): any;
584
+ }
585
+ interface Require {
586
+ /**
587
+ * Used to import modules, `JSON`, and local files.
588
+ * @since v0.1.13
589
+ */
590
+ (id: string): any;
591
+ /**
592
+ * Modules are cached in this object when they are required. By deleting a key
593
+ * value from this object, the next `require` will reload the module.
594
+ * This does not apply to
595
+ * [native addons](https://nodejs.org/docs/latest-v22.x/api/addons.html),
596
+ * for which reloading will result in an error.
597
+ * @since v0.3.0
598
+ */
599
+ cache: Dict<Module>;
600
+ /**
601
+ * Instruct `require` on how to handle certain file extensions.
602
+ * @since v0.3.0
603
+ * @deprecated
604
+ */
605
+ extensions: RequireExtensions;
606
+ /**
607
+ * The `Module` object representing the entry script loaded when the Node.js
608
+ * process launched, or `undefined` if the entry point of the program is not a
609
+ * CommonJS module.
610
+ * @since v0.1.17
611
+ */
612
+ main: Module | undefined;
613
+ /**
614
+ * @since v0.3.0
615
+ */
616
+ resolve: RequireResolve;
617
+ }
618
+ /** @deprecated */
619
+ interface RequireExtensions extends Dict<(module: Module, filename: string) => any> {
620
+ ".js": (module: Module, filename: string) => any;
621
+ ".json": (module: Module, filename: string) => any;
622
+ ".node": (module: Module, filename: string) => any;
623
+ }
624
+ interface RequireResolveOptions {
625
+ /**
626
+ * Paths to resolve module location from. If present, these
627
+ * paths are used instead of the default resolution paths, with the exception
628
+ * of
629
+ * [GLOBAL\_FOLDERS](https://nodejs.org/docs/latest-v22.x/api/modules.html#loading-from-the-global-folders)
630
+ * like `$HOME/.node_modules`, which are
631
+ * always included. Each of these paths is used as a starting point for
632
+ * the module resolution algorithm, meaning that the `node_modules` hierarchy
633
+ * is checked from this location.
634
+ * @since v8.9.0
635
+ */
636
+ paths?: string[] | undefined;
637
+ }
638
+ interface RequireResolve {
639
+ /**
640
+ * Use the internal `require()` machinery to look up the location of a module,
641
+ * but rather than loading the module, just return the resolved filename.
642
+ *
643
+ * If the module can not be found, a `MODULE_NOT_FOUND` error is thrown.
644
+ * @since v0.3.0
645
+ * @param request The module path to resolve.
646
+ */
647
+ (request: string, options?: RequireResolveOptions): string;
648
+ /**
649
+ * Returns an array containing the paths searched during resolution of `request` or
650
+ * `null` if the `request` string references a core module, for example `http` or
651
+ * `fs`.
652
+ * @since v8.9.0
653
+ * @param request The module path whose lookup paths are being retrieved.
654
+ */
655
+ paths(request: string): string[] | null;
656
+ }
657
+ }
658
+ /**
659
+ * The directory name of the current module. This is the same as the
660
+ * `path.dirname()` of the `__filename`.
661
+ * @since v0.1.27
662
+ */
663
+ var __dirname: string;
664
+ /**
665
+ * The file name of the current module. This is the current module file's absolute
666
+ * path with symlinks resolved.
667
+ *
668
+ * For a main program this is not necessarily the same as the file name used in the
669
+ * command line.
670
+ * @since v0.0.1
671
+ */
672
+ var __filename: string;
673
+ /**
674
+ * The `exports` variable is available within a module's file-level scope, and is
675
+ * assigned the value of `module.exports` before the module is evaluated.
676
+ * @since v0.1.16
677
+ */
678
+ var exports: NodeJS.Module["exports"];
679
+ /**
680
+ * A reference to the current module.
681
+ * @since v0.1.16
682
+ */
683
+ var module: NodeJS.Module;
684
+ /**
685
+ * @since v0.1.13
686
+ */
687
+ var require: NodeJS.Require;
688
+ // Global-scope aliases for backwards compatibility with @types/node <13.0.x
689
+ // TODO: consider removing in a future major version update
690
+ /** @deprecated Use `NodeJS.Module` instead. */
691
+ interface NodeModule extends NodeJS.Module {}
692
+ /** @deprecated Use `NodeJS.Require` instead. */
693
+ interface NodeRequire extends NodeJS.Require {}
694
+ /** @deprecated Use `NodeJS.RequireResolve` instead. */
695
+ interface RequireResolve extends NodeJS.RequireResolve {}
403
696
  }
404
697
  export = Module;
405
698
  }