cloudstructs 0.9.18 → 0.9.20

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 (432) hide show
  1. package/.jsii +3 -3
  2. package/assets/slack-textract/detect.lambda/index.js +27 -11
  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/superPropGet.js +4 -4
  19. package/node_modules/@babel/runtime/helpers/esm/superPropSet.js +2 -2
  20. package/node_modules/@babel/runtime/helpers/superPropGet.js +4 -4
  21. package/node_modules/@babel/runtime/helpers/superPropSet.js +2 -2
  22. package/node_modules/@babel/runtime/package.json +1 -1
  23. package/node_modules/@slack/logger/node_modules/@types/node/README.md +1 -1
  24. package/node_modules/@slack/logger/node_modules/@types/node/assert.d.ts +3 -3
  25. package/node_modules/@slack/logger/node_modules/@types/node/async_hooks.d.ts +1 -1
  26. package/node_modules/@slack/logger/node_modules/@types/node/buffer.buffer.d.ts +385 -0
  27. package/node_modules/@slack/logger/node_modules/@types/node/buffer.d.ts +14 -381
  28. package/node_modules/@slack/logger/node_modules/@types/node/child_process.d.ts +34 -29
  29. package/node_modules/@slack/logger/node_modules/@types/node/cluster.d.ts +2 -1
  30. package/node_modules/@slack/logger/node_modules/@types/node/compatibility/disposable.d.ts +16 -0
  31. package/node_modules/@slack/logger/node_modules/@types/node/compatibility/index.d.ts +9 -0
  32. package/node_modules/@slack/logger/node_modules/@types/node/compatibility/indexable.d.ts +23 -0
  33. package/node_modules/@slack/logger/node_modules/@types/node/compatibility/iterators.d.ts +21 -0
  34. package/node_modules/@slack/logger/node_modules/@types/node/console.d.ts +2 -2
  35. package/node_modules/@slack/logger/node_modules/@types/node/crypto.d.ts +13 -12
  36. package/node_modules/@slack/logger/node_modules/@types/node/diagnostics_channel.d.ts +4 -4
  37. package/node_modules/@slack/logger/node_modules/@types/node/dns/promises.d.ts +5 -5
  38. package/node_modules/@slack/logger/node_modules/@types/node/dns.d.ts +5 -5
  39. package/node_modules/@slack/logger/node_modules/@types/node/domain.d.ts +2 -2
  40. package/node_modules/@slack/logger/node_modules/@types/node/events.d.ts +3 -3
  41. package/node_modules/@slack/logger/node_modules/@types/node/fs/promises.d.ts +17 -6
  42. package/node_modules/@slack/logger/node_modules/@types/node/fs.d.ts +3 -3
  43. package/node_modules/@slack/logger/node_modules/@types/node/globals.d.ts +34 -63
  44. package/node_modules/@slack/logger/node_modules/@types/node/globals.typedarray.d.ts +21 -0
  45. package/node_modules/@slack/logger/node_modules/@types/node/http.d.ts +44 -7
  46. package/node_modules/@slack/logger/node_modules/@types/node/http2.d.ts +238 -101
  47. package/node_modules/@slack/logger/node_modules/@types/node/https.d.ts +17 -23
  48. package/node_modules/@slack/logger/node_modules/@types/node/index.d.ts +11 -9
  49. package/node_modules/@slack/logger/node_modules/@types/node/inspector.d.ts +270 -0
  50. package/node_modules/@slack/logger/node_modules/@types/node/module.d.ts +94 -3
  51. package/node_modules/@slack/logger/node_modules/@types/node/net.d.ts +17 -15
  52. package/node_modules/@slack/logger/node_modules/@types/node/os.d.ts +1 -1
  53. package/node_modules/@slack/logger/node_modules/@types/node/package.json +11 -3
  54. package/node_modules/@slack/logger/node_modules/@types/node/path.d.ts +1 -1
  55. package/node_modules/@slack/logger/node_modules/@types/node/perf_hooks.d.ts +43 -19
  56. package/node_modules/@slack/logger/node_modules/@types/node/punycode.d.ts +1 -1
  57. package/node_modules/@slack/logger/node_modules/@types/node/querystring.d.ts +1 -1
  58. package/node_modules/@slack/logger/node_modules/@types/node/readline/promises.d.ts +1 -1
  59. package/node_modules/@slack/logger/node_modules/@types/node/readline.d.ts +10 -10
  60. package/node_modules/@slack/logger/node_modules/@types/node/repl.d.ts +4 -4
  61. package/node_modules/@slack/logger/node_modules/@types/node/sqlite.d.ts +1 -1
  62. package/node_modules/@slack/logger/node_modules/@types/node/stream/promises.d.ts +8 -1
  63. package/node_modules/@slack/logger/node_modules/@types/node/stream/web.d.ts +22 -19
  64. package/node_modules/@slack/logger/node_modules/@types/node/stream.d.ts +36 -17
  65. package/node_modules/@slack/logger/node_modules/@types/node/string_decoder.d.ts +3 -3
  66. package/node_modules/@slack/logger/node_modules/@types/node/test.d.ts +103 -8
  67. package/node_modules/@slack/logger/node_modules/@types/node/timers/promises.d.ts +5 -5
  68. package/node_modules/@slack/logger/node_modules/@types/node/timers.d.ts +1 -1
  69. package/node_modules/@slack/logger/node_modules/@types/node/tls.d.ts +5 -5
  70. package/node_modules/@slack/logger/node_modules/@types/node/trace_events.d.ts +4 -4
  71. package/node_modules/@slack/logger/node_modules/@types/node/ts5.6/buffer.buffer.d.ts +385 -0
  72. package/node_modules/@slack/logger/node_modules/@types/node/ts5.6/globals.typedarray.d.ts +19 -0
  73. package/node_modules/@slack/logger/node_modules/@types/node/ts5.6/index.d.ts +92 -0
  74. package/node_modules/@slack/logger/node_modules/@types/node/tty.d.ts +1 -1
  75. package/node_modules/@slack/logger/node_modules/@types/node/url.d.ts +14 -11
  76. package/node_modules/@slack/logger/node_modules/@types/node/util.d.ts +59 -54
  77. package/node_modules/@slack/logger/node_modules/@types/node/v8.d.ts +12 -12
  78. package/node_modules/@slack/logger/node_modules/@types/node/vm.d.ts +88 -34
  79. package/node_modules/@slack/logger/node_modules/@types/node/wasi.d.ts +1 -1
  80. package/node_modules/@slack/logger/node_modules/@types/node/worker_threads.d.ts +23 -23
  81. package/node_modules/@slack/logger/node_modules/@types/node/zlib.d.ts +8 -8
  82. package/node_modules/@slack/web-api/dist/WebClient.d.ts +36 -4
  83. package/node_modules/@slack/web-api/dist/WebClient.d.ts.map +1 -1
  84. package/node_modules/@slack/web-api/dist/WebClient.js +23 -10
  85. package/node_modules/@slack/web-api/dist/WebClient.js.map +1 -1
  86. package/node_modules/@slack/web-api/dist/file-upload.d.ts +1 -0
  87. package/node_modules/@slack/web-api/dist/file-upload.d.ts.map +1 -1
  88. package/node_modules/@slack/web-api/dist/methods.d.ts +7 -2
  89. package/node_modules/@slack/web-api/dist/methods.d.ts.map +1 -1
  90. package/node_modules/@slack/web-api/dist/methods.js +5 -0
  91. package/node_modules/@slack/web-api/dist/methods.js.map +1 -1
  92. package/node_modules/@slack/web-api/dist/types/request/conversations.d.ts +15 -3
  93. package/node_modules/@slack/web-api/dist/types/request/conversations.d.ts.map +1 -1
  94. package/node_modules/@slack/web-api/dist/types/request/files.d.ts +1 -0
  95. package/node_modules/@slack/web-api/dist/types/request/files.d.ts.map +1 -1
  96. package/node_modules/@slack/web-api/dist/types/request/index.d.ts +1 -1
  97. package/node_modules/@slack/web-api/dist/types/request/index.d.ts.map +1 -1
  98. package/node_modules/@slack/web-api/dist/types/request/users.d.ts +1 -0
  99. package/node_modules/@slack/web-api/dist/types/request/users.d.ts.map +1 -1
  100. package/node_modules/@slack/web-api/dist/types/response/AdminAppsActivitiesListResponse.d.ts +1 -0
  101. package/node_modules/@slack/web-api/dist/types/response/AdminAppsActivitiesListResponse.d.ts.map +1 -1
  102. package/node_modules/@slack/web-api/dist/types/response/AdminFunctionsListResponse.d.ts +2 -0
  103. package/node_modules/@slack/web-api/dist/types/response/AdminFunctionsListResponse.d.ts.map +1 -1
  104. package/node_modules/@slack/web-api/dist/types/response/AdminUsersListResponse.d.ts +1 -0
  105. package/node_modules/@slack/web-api/dist/types/response/AdminUsersListResponse.d.ts.map +1 -1
  106. package/node_modules/@slack/web-api/dist/types/response/ConversationsRequestSharedInviteListResponse.d.ts +77 -0
  107. package/node_modules/@slack/web-api/dist/types/response/ConversationsRequestSharedInviteListResponse.d.ts.map +1 -0
  108. package/node_modules/@slack/web-api/dist/types/response/ConversationsRequestSharedInviteListResponse.js +11 -0
  109. package/node_modules/@slack/web-api/dist/types/response/ConversationsRequestSharedInviteListResponse.js.map +1 -0
  110. package/node_modules/@slack/web-api/dist/types/response/index.d.ts +1 -0
  111. package/node_modules/@slack/web-api/dist/types/response/index.d.ts.map +1 -1
  112. package/node_modules/@slack/web-api/node_modules/@types/node/README.md +1 -1
  113. package/node_modules/@slack/web-api/node_modules/@types/node/assert.d.ts +3 -3
  114. package/node_modules/@slack/web-api/node_modules/@types/node/async_hooks.d.ts +1 -1
  115. package/node_modules/@slack/web-api/node_modules/@types/node/buffer.buffer.d.ts +385 -0
  116. package/node_modules/@slack/web-api/node_modules/@types/node/buffer.d.ts +14 -381
  117. package/node_modules/@slack/web-api/node_modules/@types/node/child_process.d.ts +34 -29
  118. package/node_modules/@slack/web-api/node_modules/@types/node/cluster.d.ts +2 -1
  119. package/node_modules/@slack/web-api/node_modules/@types/node/compatibility/disposable.d.ts +16 -0
  120. package/node_modules/@slack/web-api/node_modules/@types/node/compatibility/index.d.ts +9 -0
  121. package/node_modules/@slack/web-api/node_modules/@types/node/compatibility/indexable.d.ts +23 -0
  122. package/node_modules/@slack/web-api/node_modules/@types/node/compatibility/iterators.d.ts +21 -0
  123. package/node_modules/@slack/web-api/node_modules/@types/node/console.d.ts +2 -2
  124. package/node_modules/@slack/web-api/node_modules/@types/node/crypto.d.ts +13 -12
  125. package/node_modules/@slack/web-api/node_modules/@types/node/diagnostics_channel.d.ts +4 -4
  126. package/node_modules/@slack/web-api/node_modules/@types/node/dns/promises.d.ts +5 -5
  127. package/node_modules/@slack/web-api/node_modules/@types/node/dns.d.ts +5 -5
  128. package/node_modules/@slack/web-api/node_modules/@types/node/domain.d.ts +2 -2
  129. package/node_modules/@slack/web-api/node_modules/@types/node/events.d.ts +3 -3
  130. package/node_modules/@slack/web-api/node_modules/@types/node/fs/promises.d.ts +17 -6
  131. package/node_modules/@slack/web-api/node_modules/@types/node/fs.d.ts +3 -3
  132. package/node_modules/@slack/web-api/node_modules/@types/node/globals.d.ts +34 -63
  133. package/node_modules/@slack/web-api/node_modules/@types/node/globals.typedarray.d.ts +21 -0
  134. package/node_modules/@slack/web-api/node_modules/@types/node/http.d.ts +44 -7
  135. package/node_modules/@slack/web-api/node_modules/@types/node/http2.d.ts +238 -101
  136. package/node_modules/@slack/web-api/node_modules/@types/node/https.d.ts +17 -23
  137. package/node_modules/@slack/web-api/node_modules/@types/node/index.d.ts +11 -9
  138. package/node_modules/@slack/web-api/node_modules/@types/node/inspector.d.ts +270 -0
  139. package/node_modules/@slack/web-api/node_modules/@types/node/module.d.ts +94 -3
  140. package/node_modules/@slack/web-api/node_modules/@types/node/net.d.ts +17 -15
  141. package/node_modules/@slack/web-api/node_modules/@types/node/os.d.ts +1 -1
  142. package/node_modules/@slack/web-api/node_modules/@types/node/package.json +11 -3
  143. package/node_modules/@slack/web-api/node_modules/@types/node/path.d.ts +1 -1
  144. package/node_modules/@slack/web-api/node_modules/@types/node/perf_hooks.d.ts +43 -19
  145. package/node_modules/@slack/web-api/node_modules/@types/node/punycode.d.ts +1 -1
  146. package/node_modules/@slack/web-api/node_modules/@types/node/querystring.d.ts +1 -1
  147. package/node_modules/@slack/web-api/node_modules/@types/node/readline/promises.d.ts +1 -1
  148. package/node_modules/@slack/web-api/node_modules/@types/node/readline.d.ts +10 -10
  149. package/node_modules/@slack/web-api/node_modules/@types/node/repl.d.ts +4 -4
  150. package/node_modules/@slack/web-api/node_modules/@types/node/sqlite.d.ts +1 -1
  151. package/node_modules/@slack/web-api/node_modules/@types/node/stream/promises.d.ts +8 -1
  152. package/node_modules/@slack/web-api/node_modules/@types/node/stream/web.d.ts +22 -19
  153. package/node_modules/@slack/web-api/node_modules/@types/node/stream.d.ts +36 -17
  154. package/node_modules/@slack/web-api/node_modules/@types/node/string_decoder.d.ts +3 -3
  155. package/node_modules/@slack/web-api/node_modules/@types/node/test.d.ts +103 -8
  156. package/node_modules/@slack/web-api/node_modules/@types/node/timers/promises.d.ts +5 -5
  157. package/node_modules/@slack/web-api/node_modules/@types/node/timers.d.ts +1 -1
  158. package/node_modules/@slack/web-api/node_modules/@types/node/tls.d.ts +5 -5
  159. package/node_modules/@slack/web-api/node_modules/@types/node/trace_events.d.ts +4 -4
  160. package/node_modules/@slack/web-api/node_modules/@types/node/ts5.6/buffer.buffer.d.ts +385 -0
  161. package/node_modules/@slack/web-api/node_modules/@types/node/ts5.6/globals.typedarray.d.ts +19 -0
  162. package/node_modules/@slack/web-api/node_modules/@types/node/ts5.6/index.d.ts +92 -0
  163. package/node_modules/@slack/web-api/node_modules/@types/node/tty.d.ts +1 -1
  164. package/node_modules/@slack/web-api/node_modules/@types/node/url.d.ts +14 -11
  165. package/node_modules/@slack/web-api/node_modules/@types/node/util.d.ts +59 -54
  166. package/node_modules/@slack/web-api/node_modules/@types/node/v8.d.ts +12 -12
  167. package/node_modules/@slack/web-api/node_modules/@types/node/vm.d.ts +88 -34
  168. package/node_modules/@slack/web-api/node_modules/@types/node/wasi.d.ts +1 -1
  169. package/node_modules/@slack/web-api/node_modules/@types/node/worker_threads.d.ts +23 -23
  170. package/node_modules/@slack/web-api/node_modules/@types/node/zlib.d.ts +8 -8
  171. package/node_modules/@slack/web-api/package.json +1 -1
  172. package/node_modules/@types/cacheable-request/node_modules/@types/node/README.md +1 -1
  173. package/node_modules/@types/cacheable-request/node_modules/@types/node/assert.d.ts +3 -3
  174. package/node_modules/@types/cacheable-request/node_modules/@types/node/async_hooks.d.ts +1 -1
  175. package/node_modules/@types/cacheable-request/node_modules/@types/node/buffer.buffer.d.ts +385 -0
  176. package/node_modules/@types/cacheable-request/node_modules/@types/node/buffer.d.ts +14 -381
  177. package/node_modules/@types/cacheable-request/node_modules/@types/node/child_process.d.ts +34 -29
  178. package/node_modules/@types/cacheable-request/node_modules/@types/node/cluster.d.ts +2 -1
  179. package/node_modules/@types/cacheable-request/node_modules/@types/node/compatibility/disposable.d.ts +16 -0
  180. package/node_modules/@types/cacheable-request/node_modules/@types/node/compatibility/index.d.ts +9 -0
  181. package/node_modules/@types/cacheable-request/node_modules/@types/node/compatibility/indexable.d.ts +23 -0
  182. package/node_modules/@types/cacheable-request/node_modules/@types/node/compatibility/iterators.d.ts +21 -0
  183. package/node_modules/@types/cacheable-request/node_modules/@types/node/console.d.ts +2 -2
  184. package/node_modules/@types/cacheable-request/node_modules/@types/node/crypto.d.ts +13 -12
  185. package/node_modules/@types/cacheable-request/node_modules/@types/node/diagnostics_channel.d.ts +4 -4
  186. package/node_modules/@types/cacheable-request/node_modules/@types/node/dns/promises.d.ts +5 -5
  187. package/node_modules/@types/cacheable-request/node_modules/@types/node/dns.d.ts +5 -5
  188. package/node_modules/@types/cacheable-request/node_modules/@types/node/domain.d.ts +2 -2
  189. package/node_modules/@types/cacheable-request/node_modules/@types/node/events.d.ts +3 -3
  190. package/node_modules/@types/cacheable-request/node_modules/@types/node/fs/promises.d.ts +17 -6
  191. package/node_modules/@types/cacheable-request/node_modules/@types/node/fs.d.ts +3 -3
  192. package/node_modules/@types/cacheable-request/node_modules/@types/node/globals.d.ts +34 -63
  193. package/node_modules/@types/cacheable-request/node_modules/@types/node/globals.typedarray.d.ts +21 -0
  194. package/node_modules/@types/cacheable-request/node_modules/@types/node/http.d.ts +44 -7
  195. package/node_modules/@types/cacheable-request/node_modules/@types/node/http2.d.ts +238 -101
  196. package/node_modules/@types/cacheable-request/node_modules/@types/node/https.d.ts +17 -23
  197. package/node_modules/@types/cacheable-request/node_modules/@types/node/index.d.ts +11 -9
  198. package/node_modules/@types/cacheable-request/node_modules/@types/node/inspector.d.ts +270 -0
  199. package/node_modules/@types/cacheable-request/node_modules/@types/node/module.d.ts +94 -3
  200. package/node_modules/@types/cacheable-request/node_modules/@types/node/net.d.ts +17 -15
  201. package/node_modules/@types/cacheable-request/node_modules/@types/node/os.d.ts +1 -1
  202. package/node_modules/@types/cacheable-request/node_modules/@types/node/package.json +11 -3
  203. package/node_modules/@types/cacheable-request/node_modules/@types/node/path.d.ts +1 -1
  204. package/node_modules/@types/cacheable-request/node_modules/@types/node/perf_hooks.d.ts +43 -19
  205. package/node_modules/@types/cacheable-request/node_modules/@types/node/punycode.d.ts +1 -1
  206. package/node_modules/@types/cacheable-request/node_modules/@types/node/querystring.d.ts +1 -1
  207. package/node_modules/@types/cacheable-request/node_modules/@types/node/readline/promises.d.ts +1 -1
  208. package/node_modules/@types/cacheable-request/node_modules/@types/node/readline.d.ts +10 -10
  209. package/node_modules/@types/cacheable-request/node_modules/@types/node/repl.d.ts +4 -4
  210. package/node_modules/@types/cacheable-request/node_modules/@types/node/sqlite.d.ts +1 -1
  211. package/node_modules/@types/cacheable-request/node_modules/@types/node/stream/promises.d.ts +8 -1
  212. package/node_modules/@types/cacheable-request/node_modules/@types/node/stream/web.d.ts +22 -19
  213. package/node_modules/@types/cacheable-request/node_modules/@types/node/stream.d.ts +36 -17
  214. package/node_modules/@types/cacheable-request/node_modules/@types/node/string_decoder.d.ts +3 -3
  215. package/node_modules/@types/cacheable-request/node_modules/@types/node/test.d.ts +103 -8
  216. package/node_modules/@types/cacheable-request/node_modules/@types/node/timers/promises.d.ts +5 -5
  217. package/node_modules/@types/cacheable-request/node_modules/@types/node/timers.d.ts +1 -1
  218. package/node_modules/@types/cacheable-request/node_modules/@types/node/tls.d.ts +5 -5
  219. package/node_modules/@types/cacheable-request/node_modules/@types/node/trace_events.d.ts +4 -4
  220. package/node_modules/@types/cacheable-request/node_modules/@types/node/ts5.6/buffer.buffer.d.ts +385 -0
  221. package/node_modules/@types/cacheable-request/node_modules/@types/node/ts5.6/globals.typedarray.d.ts +19 -0
  222. package/node_modules/@types/cacheable-request/node_modules/@types/node/ts5.6/index.d.ts +92 -0
  223. package/node_modules/@types/cacheable-request/node_modules/@types/node/tty.d.ts +1 -1
  224. package/node_modules/@types/cacheable-request/node_modules/@types/node/url.d.ts +14 -11
  225. package/node_modules/@types/cacheable-request/node_modules/@types/node/util.d.ts +59 -54
  226. package/node_modules/@types/cacheable-request/node_modules/@types/node/v8.d.ts +12 -12
  227. package/node_modules/@types/cacheable-request/node_modules/@types/node/vm.d.ts +88 -34
  228. package/node_modules/@types/cacheable-request/node_modules/@types/node/wasi.d.ts +1 -1
  229. package/node_modules/@types/cacheable-request/node_modules/@types/node/worker_threads.d.ts +23 -23
  230. package/node_modules/@types/cacheable-request/node_modules/@types/node/zlib.d.ts +8 -8
  231. package/node_modules/@types/keyv/node_modules/@types/node/README.md +1 -1
  232. package/node_modules/@types/keyv/node_modules/@types/node/assert.d.ts +3 -3
  233. package/node_modules/@types/keyv/node_modules/@types/node/async_hooks.d.ts +1 -1
  234. package/node_modules/@types/keyv/node_modules/@types/node/buffer.buffer.d.ts +385 -0
  235. package/node_modules/@types/keyv/node_modules/@types/node/buffer.d.ts +14 -381
  236. package/node_modules/@types/keyv/node_modules/@types/node/child_process.d.ts +34 -29
  237. package/node_modules/@types/keyv/node_modules/@types/node/cluster.d.ts +2 -1
  238. package/node_modules/@types/keyv/node_modules/@types/node/compatibility/disposable.d.ts +16 -0
  239. package/node_modules/@types/keyv/node_modules/@types/node/compatibility/index.d.ts +9 -0
  240. package/node_modules/@types/keyv/node_modules/@types/node/compatibility/indexable.d.ts +23 -0
  241. package/node_modules/@types/keyv/node_modules/@types/node/compatibility/iterators.d.ts +21 -0
  242. package/node_modules/@types/keyv/node_modules/@types/node/console.d.ts +2 -2
  243. package/node_modules/@types/keyv/node_modules/@types/node/crypto.d.ts +13 -12
  244. package/node_modules/@types/keyv/node_modules/@types/node/diagnostics_channel.d.ts +4 -4
  245. package/node_modules/@types/keyv/node_modules/@types/node/dns/promises.d.ts +5 -5
  246. package/node_modules/@types/keyv/node_modules/@types/node/dns.d.ts +5 -5
  247. package/node_modules/@types/keyv/node_modules/@types/node/domain.d.ts +2 -2
  248. package/node_modules/@types/keyv/node_modules/@types/node/events.d.ts +3 -3
  249. package/node_modules/@types/keyv/node_modules/@types/node/fs/promises.d.ts +17 -6
  250. package/node_modules/@types/keyv/node_modules/@types/node/fs.d.ts +3 -3
  251. package/node_modules/@types/keyv/node_modules/@types/node/globals.d.ts +34 -63
  252. package/node_modules/@types/keyv/node_modules/@types/node/globals.typedarray.d.ts +21 -0
  253. package/node_modules/@types/keyv/node_modules/@types/node/http.d.ts +44 -7
  254. package/node_modules/@types/keyv/node_modules/@types/node/http2.d.ts +238 -101
  255. package/node_modules/@types/keyv/node_modules/@types/node/https.d.ts +17 -23
  256. package/node_modules/@types/keyv/node_modules/@types/node/index.d.ts +11 -9
  257. package/node_modules/@types/keyv/node_modules/@types/node/inspector.d.ts +270 -0
  258. package/node_modules/@types/keyv/node_modules/@types/node/module.d.ts +94 -3
  259. package/node_modules/@types/keyv/node_modules/@types/node/net.d.ts +17 -15
  260. package/node_modules/@types/keyv/node_modules/@types/node/os.d.ts +1 -1
  261. package/node_modules/@types/keyv/node_modules/@types/node/package.json +11 -3
  262. package/node_modules/@types/keyv/node_modules/@types/node/path.d.ts +1 -1
  263. package/node_modules/@types/keyv/node_modules/@types/node/perf_hooks.d.ts +43 -19
  264. package/node_modules/@types/keyv/node_modules/@types/node/punycode.d.ts +1 -1
  265. package/node_modules/@types/keyv/node_modules/@types/node/querystring.d.ts +1 -1
  266. package/node_modules/@types/keyv/node_modules/@types/node/readline/promises.d.ts +1 -1
  267. package/node_modules/@types/keyv/node_modules/@types/node/readline.d.ts +10 -10
  268. package/node_modules/@types/keyv/node_modules/@types/node/repl.d.ts +4 -4
  269. package/node_modules/@types/keyv/node_modules/@types/node/sqlite.d.ts +1 -1
  270. package/node_modules/@types/keyv/node_modules/@types/node/stream/promises.d.ts +8 -1
  271. package/node_modules/@types/keyv/node_modules/@types/node/stream/web.d.ts +22 -19
  272. package/node_modules/@types/keyv/node_modules/@types/node/stream.d.ts +36 -17
  273. package/node_modules/@types/keyv/node_modules/@types/node/string_decoder.d.ts +3 -3
  274. package/node_modules/@types/keyv/node_modules/@types/node/test.d.ts +103 -8
  275. package/node_modules/@types/keyv/node_modules/@types/node/timers/promises.d.ts +5 -5
  276. package/node_modules/@types/keyv/node_modules/@types/node/timers.d.ts +1 -1
  277. package/node_modules/@types/keyv/node_modules/@types/node/tls.d.ts +5 -5
  278. package/node_modules/@types/keyv/node_modules/@types/node/trace_events.d.ts +4 -4
  279. package/node_modules/@types/keyv/node_modules/@types/node/ts5.6/buffer.buffer.d.ts +385 -0
  280. package/node_modules/@types/keyv/node_modules/@types/node/ts5.6/globals.typedarray.d.ts +19 -0
  281. package/node_modules/@types/keyv/node_modules/@types/node/ts5.6/index.d.ts +92 -0
  282. package/node_modules/@types/keyv/node_modules/@types/node/tty.d.ts +1 -1
  283. package/node_modules/@types/keyv/node_modules/@types/node/url.d.ts +14 -11
  284. package/node_modules/@types/keyv/node_modules/@types/node/util.d.ts +59 -54
  285. package/node_modules/@types/keyv/node_modules/@types/node/v8.d.ts +12 -12
  286. package/node_modules/@types/keyv/node_modules/@types/node/vm.d.ts +88 -34
  287. package/node_modules/@types/keyv/node_modules/@types/node/wasi.d.ts +1 -1
  288. package/node_modules/@types/keyv/node_modules/@types/node/worker_threads.d.ts +23 -23
  289. package/node_modules/@types/keyv/node_modules/@types/node/zlib.d.ts +8 -8
  290. package/node_modules/@types/responselike/node_modules/@types/node/README.md +1 -1
  291. package/node_modules/@types/responselike/node_modules/@types/node/assert.d.ts +3 -3
  292. package/node_modules/@types/responselike/node_modules/@types/node/async_hooks.d.ts +1 -1
  293. package/node_modules/@types/responselike/node_modules/@types/node/buffer.buffer.d.ts +385 -0
  294. package/node_modules/@types/responselike/node_modules/@types/node/buffer.d.ts +14 -381
  295. package/node_modules/@types/responselike/node_modules/@types/node/child_process.d.ts +34 -29
  296. package/node_modules/@types/responselike/node_modules/@types/node/cluster.d.ts +2 -1
  297. package/node_modules/@types/responselike/node_modules/@types/node/compatibility/disposable.d.ts +16 -0
  298. package/node_modules/@types/responselike/node_modules/@types/node/compatibility/index.d.ts +9 -0
  299. package/node_modules/@types/responselike/node_modules/@types/node/compatibility/indexable.d.ts +23 -0
  300. package/node_modules/@types/responselike/node_modules/@types/node/compatibility/iterators.d.ts +21 -0
  301. package/node_modules/@types/responselike/node_modules/@types/node/console.d.ts +2 -2
  302. package/node_modules/@types/responselike/node_modules/@types/node/crypto.d.ts +13 -12
  303. package/node_modules/@types/responselike/node_modules/@types/node/diagnostics_channel.d.ts +4 -4
  304. package/node_modules/@types/responselike/node_modules/@types/node/dns/promises.d.ts +5 -5
  305. package/node_modules/@types/responselike/node_modules/@types/node/dns.d.ts +5 -5
  306. package/node_modules/@types/responselike/node_modules/@types/node/domain.d.ts +2 -2
  307. package/node_modules/@types/responselike/node_modules/@types/node/events.d.ts +3 -3
  308. package/node_modules/@types/responselike/node_modules/@types/node/fs/promises.d.ts +17 -6
  309. package/node_modules/@types/responselike/node_modules/@types/node/fs.d.ts +3 -3
  310. package/node_modules/@types/responselike/node_modules/@types/node/globals.d.ts +34 -63
  311. package/node_modules/@types/responselike/node_modules/@types/node/globals.typedarray.d.ts +21 -0
  312. package/node_modules/@types/responselike/node_modules/@types/node/http.d.ts +44 -7
  313. package/node_modules/@types/responselike/node_modules/@types/node/http2.d.ts +238 -101
  314. package/node_modules/@types/responselike/node_modules/@types/node/https.d.ts +17 -23
  315. package/node_modules/@types/responselike/node_modules/@types/node/index.d.ts +11 -9
  316. package/node_modules/@types/responselike/node_modules/@types/node/inspector.d.ts +270 -0
  317. package/node_modules/@types/responselike/node_modules/@types/node/module.d.ts +94 -3
  318. package/node_modules/@types/responselike/node_modules/@types/node/net.d.ts +17 -15
  319. package/node_modules/@types/responselike/node_modules/@types/node/os.d.ts +1 -1
  320. package/node_modules/@types/responselike/node_modules/@types/node/package.json +11 -3
  321. package/node_modules/@types/responselike/node_modules/@types/node/path.d.ts +1 -1
  322. package/node_modules/@types/responselike/node_modules/@types/node/perf_hooks.d.ts +43 -19
  323. package/node_modules/@types/responselike/node_modules/@types/node/punycode.d.ts +1 -1
  324. package/node_modules/@types/responselike/node_modules/@types/node/querystring.d.ts +1 -1
  325. package/node_modules/@types/responselike/node_modules/@types/node/readline/promises.d.ts +1 -1
  326. package/node_modules/@types/responselike/node_modules/@types/node/readline.d.ts +10 -10
  327. package/node_modules/@types/responselike/node_modules/@types/node/repl.d.ts +4 -4
  328. package/node_modules/@types/responselike/node_modules/@types/node/sqlite.d.ts +1 -1
  329. package/node_modules/@types/responselike/node_modules/@types/node/stream/promises.d.ts +8 -1
  330. package/node_modules/@types/responselike/node_modules/@types/node/stream/web.d.ts +22 -19
  331. package/node_modules/@types/responselike/node_modules/@types/node/stream.d.ts +36 -17
  332. package/node_modules/@types/responselike/node_modules/@types/node/string_decoder.d.ts +3 -3
  333. package/node_modules/@types/responselike/node_modules/@types/node/test.d.ts +103 -8
  334. package/node_modules/@types/responselike/node_modules/@types/node/timers/promises.d.ts +5 -5
  335. package/node_modules/@types/responselike/node_modules/@types/node/timers.d.ts +1 -1
  336. package/node_modules/@types/responselike/node_modules/@types/node/tls.d.ts +5 -5
  337. package/node_modules/@types/responselike/node_modules/@types/node/trace_events.d.ts +4 -4
  338. package/node_modules/@types/responselike/node_modules/@types/node/ts5.6/buffer.buffer.d.ts +385 -0
  339. package/node_modules/@types/responselike/node_modules/@types/node/ts5.6/globals.typedarray.d.ts +19 -0
  340. package/node_modules/@types/responselike/node_modules/@types/node/ts5.6/index.d.ts +92 -0
  341. package/node_modules/@types/responselike/node_modules/@types/node/tty.d.ts +1 -1
  342. package/node_modules/@types/responselike/node_modules/@types/node/url.d.ts +14 -11
  343. package/node_modules/@types/responselike/node_modules/@types/node/util.d.ts +59 -54
  344. package/node_modules/@types/responselike/node_modules/@types/node/v8.d.ts +12 -12
  345. package/node_modules/@types/responselike/node_modules/@types/node/vm.d.ts +88 -34
  346. package/node_modules/@types/responselike/node_modules/@types/node/wasi.d.ts +1 -1
  347. package/node_modules/@types/responselike/node_modules/@types/node/worker_threads.d.ts +23 -23
  348. package/node_modules/@types/responselike/node_modules/@types/node/zlib.d.ts +8 -8
  349. package/node_modules/form-data/Readme.md +4 -4
  350. package/node_modules/form-data/lib/form_data.js +1 -1
  351. package/node_modules/form-data/package.json +9 -6
  352. package/node_modules/package-json-from-dist/README.md +21 -6
  353. package/node_modules/package-json-from-dist/dist/commonjs/index.d.ts.map +1 -1
  354. package/node_modules/package-json-from-dist/dist/commonjs/index.js +11 -1
  355. package/node_modules/package-json-from-dist/dist/commonjs/index.js.map +1 -1
  356. package/node_modules/package-json-from-dist/dist/esm/index.d.ts.map +1 -1
  357. package/node_modules/package-json-from-dist/dist/esm/index.js +11 -1
  358. package/node_modules/package-json-from-dist/dist/esm/index.js.map +1 -1
  359. package/node_modules/package-json-from-dist/package.json +2 -2
  360. package/node_modules/parse5/dist/cjs/common/doctype.d.ts +0 -1
  361. package/node_modules/parse5/dist/cjs/common/doctype.js +2 -4
  362. package/node_modules/parse5/dist/cjs/common/error-codes.d.ts +0 -1
  363. package/node_modules/parse5/dist/cjs/common/error-codes.js +1 -2
  364. package/node_modules/parse5/dist/cjs/common/foreign-content.d.ts +0 -1
  365. package/node_modules/parse5/dist/cjs/common/foreign-content.js +7 -9
  366. package/node_modules/parse5/dist/cjs/common/html.d.ts +32 -31
  367. package/node_modules/parse5/dist/cjs/common/html.js +41 -42
  368. package/node_modules/parse5/dist/cjs/common/token.d.ts +0 -1
  369. package/node_modules/parse5/dist/cjs/common/token.js +3 -4
  370. package/node_modules/parse5/dist/cjs/common/unicode.d.ts +1 -8
  371. package/node_modules/parse5/dist/cjs/common/unicode.js +7 -14
  372. package/node_modules/parse5/dist/cjs/index.d.ts +15 -4
  373. package/node_modules/parse5/dist/cjs/index.js +3 -6
  374. package/node_modules/parse5/dist/cjs/parser/formatting-element-list.d.ts +0 -1
  375. package/node_modules/parse5/dist/cjs/parser/formatting-element-list.js +1 -2
  376. package/node_modules/parse5/dist/cjs/parser/index.d.ts +72 -8
  377. package/node_modules/parse5/dist/cjs/parser/index.js +81 -9
  378. package/node_modules/parse5/dist/cjs/parser/open-element-stack.d.ts +2 -2
  379. package/node_modules/parse5/dist/cjs/parser/open-element-stack.js +95 -87
  380. package/node_modules/parse5/dist/cjs/serializer/index.d.ts +1 -2
  381. package/node_modules/parse5/dist/cjs/serializer/index.js +8 -9
  382. package/node_modules/parse5/dist/cjs/tokenizer/index.d.ts +130 -131
  383. package/node_modules/parse5/dist/cjs/tokenizer/index.js +87 -281
  384. package/node_modules/parse5/dist/cjs/tokenizer/preprocessor.d.ts +3 -4
  385. package/node_modules/parse5/dist/cjs/tokenizer/preprocessor.js +8 -7
  386. package/node_modules/parse5/dist/cjs/tree-adapters/default.d.ts +0 -1
  387. package/node_modules/parse5/dist/cjs/tree-adapters/default.js +9 -10
  388. package/node_modules/parse5/dist/cjs/tree-adapters/interface.d.ts +7 -2
  389. package/node_modules/parse5/dist/cjs/tree-adapters/interface.js +0 -1
  390. package/node_modules/parse5/dist/common/doctype.d.ts +0 -1
  391. package/node_modules/parse5/dist/common/doctype.js +0 -1
  392. package/node_modules/parse5/dist/common/error-codes.d.ts +0 -1
  393. package/node_modules/parse5/dist/common/error-codes.js +1 -2
  394. package/node_modules/parse5/dist/common/foreign-content.d.ts +0 -1
  395. package/node_modules/parse5/dist/common/foreign-content.js +0 -2
  396. package/node_modules/parse5/dist/common/html.d.ts +32 -31
  397. package/node_modules/parse5/dist/common/html.js +38 -38
  398. package/node_modules/parse5/dist/common/token.d.ts +0 -1
  399. package/node_modules/parse5/dist/common/token.js +1 -2
  400. package/node_modules/parse5/dist/common/unicode.d.ts +1 -8
  401. package/node_modules/parse5/dist/common/unicode.js +1 -8
  402. package/node_modules/parse5/dist/index.d.ts +15 -4
  403. package/node_modules/parse5/dist/index.js +0 -3
  404. package/node_modules/parse5/dist/parser/formatting-element-list.d.ts +0 -1
  405. package/node_modules/parse5/dist/parser/formatting-element-list.js +1 -2
  406. package/node_modules/parse5/dist/parser/index.d.ts +72 -8
  407. package/node_modules/parse5/dist/parser/index.js +82 -10
  408. package/node_modules/parse5/dist/parser/open-element-stack.d.ts +2 -2
  409. package/node_modules/parse5/dist/parser/open-element-stack.js +96 -88
  410. package/node_modules/parse5/dist/serializer/index.d.ts +1 -2
  411. package/node_modules/parse5/dist/serializer/index.js +6 -6
  412. package/node_modules/parse5/dist/tokenizer/index.d.ts +130 -131
  413. package/node_modules/parse5/dist/tokenizer/index.js +88 -282
  414. package/node_modules/parse5/dist/tokenizer/preprocessor.d.ts +3 -4
  415. package/node_modules/parse5/dist/tokenizer/preprocessor.js +8 -7
  416. package/node_modules/parse5/dist/tree-adapters/default.d.ts +0 -1
  417. package/node_modules/parse5/dist/tree-adapters/default.js +9 -10
  418. package/node_modules/parse5/dist/tree-adapters/interface.d.ts +7 -2
  419. package/node_modules/parse5/dist/tree-adapters/interface.js +0 -1
  420. package/node_modules/parse5/package.json +4 -4
  421. package/node_modules/parse5-htmlparser2-tree-adapter/dist/cjs/index.d.ts +1 -2
  422. package/node_modules/parse5-htmlparser2-tree-adapter/dist/cjs/index.js +11 -12
  423. package/node_modules/parse5-htmlparser2-tree-adapter/dist/index.d.ts +1 -2
  424. package/node_modules/parse5-htmlparser2-tree-adapter/dist/index.js +9 -10
  425. package/node_modules/parse5-htmlparser2-tree-adapter/package.json +7 -6
  426. package/package.json +18 -18
  427. package/node_modules/@slack/logger/node_modules/@types/node/globals.global.d.ts +0 -1
  428. package/node_modules/@slack/web-api/node_modules/@types/node/globals.global.d.ts +0 -1
  429. package/node_modules/@types/cacheable-request/node_modules/@types/node/globals.global.d.ts +0 -1
  430. package/node_modules/@types/keyv/node_modules/@types/node/globals.global.d.ts +0 -1
  431. package/node_modules/@types/responselike/node_modules/@types/node/globals.global.d.ts +0 -1
  432. package/node_modules/form-data/README.md.bak +0 -358
@@ -17,7 +17,7 @@
17
17
  * code are reflected in the context object.
18
18
  *
19
19
  * ```js
20
- * const vm = require('node:vm');
20
+ * import vm from 'node:vm';
21
21
  *
22
22
  * const x = 1;
23
23
  *
@@ -203,7 +203,7 @@ declare module "vm" {
203
203
  * The globals are contained in the `context` object.
204
204
  *
205
205
  * ```js
206
- * const vm = require('node:vm');
206
+ * import vm from 'node:vm';
207
207
  *
208
208
  * const context = {
209
209
  * animal: 'cat',
@@ -230,9 +230,16 @@ declare module "vm" {
230
230
  */
231
231
  runInContext(contextifiedObject: Context, options?: RunningScriptOptions): any;
232
232
  /**
233
- * First contextifies the given `contextObject`, runs the compiled code contained
234
- * by the `vm.Script` object within the created context, and returns the result.
235
- * Running code does not have access to local scope.
233
+ * This method is a shortcut to `script.runInContext(vm.createContext(options), options)`.
234
+ * It does several things at once:
235
+ *
236
+ * 1. Creates a new context.
237
+ * 2. If `contextObject` is an object, contextifies it with the new context.
238
+ * If `contextObject` is undefined, creates a new object and contextifies it.
239
+ * If `contextObject` is `vm.constants.DONT_CONTEXTIFY`, don't contextify anything.
240
+ * 3. Runs the compiled code contained by the `vm.Script` object within the created context. The code
241
+ * does not have access to the scope in which this method is called.
242
+ * 4. Returns the result.
236
243
  *
237
244
  * The following example compiles code that sets a global variable, then executes
238
245
  * the code multiple times in different contexts. The globals are set on and
@@ -250,12 +257,22 @@ declare module "vm" {
250
257
  *
251
258
  * console.log(contexts);
252
259
  * // Prints: [{ globalVar: 'set' }, { globalVar: 'set' }, { globalVar: 'set' }]
260
+ *
261
+ * // This would throw if the context is created from a contextified object.
262
+ * // vm.constants.DONT_CONTEXTIFY allows creating contexts with ordinary
263
+ * // global objects that can be frozen.
264
+ * const freezeScript = new vm.Script('Object.freeze(globalThis); globalThis;');
265
+ * const frozenContext = freezeScript.runInNewContext(vm.constants.DONT_CONTEXTIFY);
253
266
  * ```
254
267
  * @since v0.3.1
255
- * @param contextObject An object that will be `contextified`. If `undefined`, a new object will be created.
268
+ * @param contextObject Either `vm.constants.DONT_CONTEXTIFY` or an object that will be contextified.
269
+ * If `undefined`, an empty contextified object will be created for backwards compatibility.
256
270
  * @return the result of the very last statement executed in the script.
257
271
  */
258
- runInNewContext(contextObject?: Context, options?: RunningScriptInNewContextOptions): any;
272
+ runInNewContext(
273
+ contextObject?: Context | typeof constants.DONT_CONTEXTIFY,
274
+ options?: RunningScriptInNewContextOptions,
275
+ ): any;
259
276
  /**
260
277
  * Runs the compiled code contained by the `vm.Script` within the context of the
261
278
  * current `global` object. Running code does not have access to local scope, but _does_ have access to the current `global` object.
@@ -264,7 +281,7 @@ declare module "vm" {
264
281
  * executes that code multiple times:
265
282
  *
266
283
  * ```js
267
- * const vm = require('node:vm');
284
+ * import vm from 'node:vm';
268
285
  *
269
286
  * global.globalVar = 0;
270
287
  *
@@ -347,13 +364,13 @@ declare module "vm" {
347
364
  sourceMapURL?: string | undefined;
348
365
  }
349
366
  /**
350
- * If given a `contextObject`, the `vm.createContext()` method will
367
+ * If the given `contextObject` is an object, the `vm.createContext()` method will
351
368
  * [prepare that object](https://nodejs.org/docs/latest-v22.x/api/vm.html#what-does-it-mean-to-contextify-an-object)
352
- * and return a reference to it so that it can be used in `{@link runInContext}` or
353
- * [`script.runInContext()`](https://nodejs.org/docs/latest-v22.x/api/vm.html#scriptrunincontextcontextifiedobject-options). Inside such
354
- * scripts, the `contextObject` will be the global object, retaining all of its
355
- * existing properties but also having the built-in objects and functions any
356
- * standard [global object](https://es5.github.io/#x15.1) has. Outside of scripts run by the vm module, global
369
+ * and return a reference to it so that it can be used in calls to {@link runInContext} or
370
+ * [`script.runInContext()`](https://nodejs.org/docs/latest-v22.x/api/vm.html#scriptrunincontextcontextifiedobject-options).
371
+ * Inside such scripts, the global object will be wrapped by the `contextObject`, retaining all of its
372
+ * existing properties but also having the built-in objects and functions any standard
373
+ * [global object](https://es5.github.io/#x15.1) has. Outside of scripts run by the vm module, global
357
374
  * variables will remain unchanged.
358
375
  *
359
376
  * ```js
@@ -374,7 +391,12 @@ declare module "vm" {
374
391
  * ```
375
392
  *
376
393
  * If `contextObject` is omitted (or passed explicitly as `undefined`), a new,
377
- * empty `contextified` object will be returned.
394
+ * empty contextified object will be returned.
395
+ *
396
+ * When the global object in the newly created context is contextified, it has some quirks
397
+ * compared to ordinary global objects. For example, it cannot be frozen. To create a context
398
+ * without the contextifying quirks, pass `vm.constants.DONT_CONTEXTIFY` as the `contextObject`
399
+ * argument. See the documentation of `vm.constants.DONT_CONTEXTIFY` for details.
378
400
  *
379
401
  * The `vm.createContext()` method is primarily useful for creating a single
380
402
  * context that can be used to run multiple scripts. For instance, if emulating a
@@ -385,11 +407,17 @@ declare module "vm" {
385
407
  * The provided `name` and `origin` of the context are made visible through the
386
408
  * Inspector API.
387
409
  * @since v0.3.1
410
+ * @param contextObject Either `vm.constants.DONT_CONTEXTIFY` or an object that will be contextified.
411
+ * If `undefined`, an empty contextified object will be created for backwards compatibility.
388
412
  * @return contextified object.
389
413
  */
390
- function createContext(sandbox?: Context, options?: CreateContextOptions): Context;
414
+ function createContext(
415
+ contextObject?: Context | typeof constants.DONT_CONTEXTIFY,
416
+ options?: CreateContextOptions,
417
+ ): Context;
391
418
  /**
392
- * Returns `true` if the given `object` object has been `contextified` using {@link createContext}.
419
+ * Returns `true` if the given `object` object has been contextified using {@link createContext},
420
+ * or if it's the global object of a context created using `vm.constants.DONT_CONTEXTIFY`.
393
421
  * @since v0.11.7
394
422
  */
395
423
  function isContext(sandbox: Context): boolean;
@@ -404,7 +432,7 @@ declare module "vm" {
404
432
  * The following example compiles and executes different scripts using a single `contextified` object:
405
433
  *
406
434
  * ```js
407
- * const vm = require('node:vm');
435
+ * import vm from 'node:vm';
408
436
  *
409
437
  * const contextObject = { globalVar: 1 };
410
438
  * vm.createContext(contextObject);
@@ -422,13 +450,21 @@ declare module "vm" {
422
450
  */
423
451
  function runInContext(code: string, contextifiedObject: Context, options?: RunningCodeOptions | string): any;
424
452
  /**
425
- * The `vm.runInNewContext()` first contextifies the given `contextObject` (or
426
- * creates a new `contextObject` if passed as `undefined`), compiles the `code`,
427
- * runs it within the created context, then returns the result. Running code
428
- * does not have access to the local scope.
429
- *
453
+ * This method is a shortcut to
454
+ * `(new vm.Script(code, options)).runInContext(vm.createContext(options), options)`.
430
455
  * If `options` is a string, then it specifies the filename.
431
456
  *
457
+ * It does several things at once:
458
+ *
459
+ * 1. Creates a new context.
460
+ * 2. If `contextObject` is an object, contextifies it with the new context.
461
+ * If `contextObject` is undefined, creates a new object and contextifies it.
462
+ * If `contextObject` is `vm.constants.DONT_CONTEXTIFY`, don't contextify anything.
463
+ * 3. Compiles the code as a`vm.Script`
464
+ * 4. Runs the compield code within the created context. The code does not have access to the scope in
465
+ * which this method is called.
466
+ * 5. Returns the result.
467
+ *
432
468
  * The following example compiles and executes code that increments a global
433
469
  * variable and sets a new one. These globals are contained in the `contextObject`.
434
470
  *
@@ -443,15 +479,21 @@ declare module "vm" {
443
479
  * vm.runInNewContext('count += 1; name = "kitty"', contextObject);
444
480
  * console.log(contextObject);
445
481
  * // Prints: { animal: 'cat', count: 3, name: 'kitty' }
482
+ *
483
+ * // This would throw if the context is created from a contextified object.
484
+ * // vm.constants.DONT_CONTEXTIFY allows creating contexts with ordinary global objects that
485
+ * // can be frozen.
486
+ * const frozenContext = vm.runInNewContext('Object.freeze(globalThis); globalThis;', vm.constants.DONT_CONTEXTIFY);
446
487
  * ```
447
488
  * @since v0.3.1
448
489
  * @param code The JavaScript code to compile and run.
449
- * @param contextObject An object that will be `contextified`. If `undefined`, a new object will be created.
490
+ * @param contextObject Either `vm.constants.DONT_CONTEXTIFY` or an object that will be contextified.
491
+ * If `undefined`, an empty contextified object will be created for backwards compatibility.
450
492
  * @return the result of the very last statement executed in the script.
451
493
  */
452
494
  function runInNewContext(
453
495
  code: string,
454
- contextObject?: Context,
496
+ contextObject?: Context | typeof constants.DONT_CONTEXTIFY,
455
497
  options?: RunningCodeInNewContextOptions | string,
456
498
  ): any;
457
499
  /**
@@ -465,7 +507,7 @@ declare module "vm" {
465
507
  * the JavaScript [`eval()`](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/eval) function to run the same code:
466
508
  *
467
509
  * ```js
468
- * const vm = require('node:vm');
510
+ * import vm from 'node:vm';
469
511
  * let localVar = 'initial value';
470
512
  *
471
513
  * const vmResult = vm.runInThisContext('localVar = "vm";');
@@ -487,16 +529,16 @@ declare module "vm" {
487
529
  * context. The code passed to this VM context will have its own isolated scope.
488
530
  *
489
531
  * In order to run a simple web server using the `node:http` module the code passed
490
- * to the context must either call `require('node:http')` on its own, or have a
532
+ * to the context must either import `node:http` on its own, or have a
491
533
  * reference to the `node:http` module passed to it. For instance:
492
534
  *
493
535
  * ```js
494
536
  * 'use strict';
495
- * const vm = require('node:vm');
537
+ * import vm from 'node:vm';
496
538
  *
497
539
  * const code = `
498
540
  * ((require) => {
499
- * const http = require('node:http');
541
+ * const http = require('node:http');
500
542
  *
501
543
  * http.createServer((request, response) => {
502
544
  * response.writeHead(200, { 'Content-Type': 'text/plain' });
@@ -547,7 +589,7 @@ declare module "vm" {
547
589
  * the memory occupied by each heap space in the current V8 instance.
548
590
  *
549
591
  * ```js
550
- * const vm = require('node:vm');
592
+ * import vm from 'node:vm';
551
593
  * // Measure the memory used by the main context.
552
594
  * vm.measureMemory({ mode: 'summary' })
553
595
  * // This is the same as vm.measureMemory()
@@ -853,7 +895,7 @@ declare module "vm" {
853
895
  * module graphs.
854
896
  *
855
897
  * ```js
856
- * const vm = require('node:vm');
898
+ * import vm from 'node:vm';
857
899
  *
858
900
  * const source = '{ "a": 1 }';
859
901
  * const module = new vm.SyntheticModule(['default'], function() {
@@ -902,19 +944,31 @@ declare module "vm" {
902
944
  }
903
945
  /**
904
946
  * Returns an object containing commonly used constants for VM operations.
905
- * @since v20.12.0
947
+ * @since v21.7.0, v20.12.0
906
948
  */
907
949
  namespace constants {
908
950
  /**
909
- * Stability: 1.1 - Active development
910
- *
911
951
  * A constant that can be used as the `importModuleDynamically` option to `vm.Script`
912
952
  * and `vm.compileFunction()` so that Node.js uses the default ESM loader from the main
913
953
  * context to load the requested module.
914
954
  *
915
955
  * For detailed information, see [Support of dynamic `import()` in compilation APIs](https://nodejs.org/docs/latest-v22.x/api/vm.html#support-of-dynamic-import-in-compilation-apis).
956
+ * @since v21.7.0, v20.12.0
916
957
  */
917
958
  const USE_MAIN_CONTEXT_DEFAULT_LOADER: number;
959
+ /**
960
+ * This constant, when used as the `contextObject` argument in vm APIs, instructs Node.js to create
961
+ * a context without wrapping its global object with another object in a Node.js-specific manner.
962
+ * As a result, the `globalThis` value inside the new context would behave more closely to an ordinary
963
+ * one.
964
+ *
965
+ * When `vm.constants.DONT_CONTEXTIFY` is used as the `contextObject` argument to {@link createContext},
966
+ * the returned object is a proxy-like object to the global object in the newly created context with
967
+ * fewer Node.js-specific quirks. It is reference equal to the `globalThis` value in the new context,
968
+ * can be modified from outside the context, and can be used to access built-ins in the new context directly.
969
+ * @since v22.8.0
970
+ */
971
+ const DONT_CONTEXTIFY: number;
918
972
  }
919
973
  }
920
974
  declare module "node:vm" {
@@ -9,7 +9,7 @@
9
9
  *
10
10
  * ```js
11
11
  * import { readFile } from 'node:fs/promises';
12
- * import { WASI } from 'wasi';
12
+ * import { WASI } from 'node:wasi';
13
13
  * import { argv, env } from 'node:process';
14
14
  *
15
15
  * const wasi = new WASI({
@@ -3,7 +3,7 @@
3
3
  * JavaScript in parallel. To access it:
4
4
  *
5
5
  * ```js
6
- * const worker = require('node:worker_threads');
6
+ * import worker from 'node:worker_threads';
7
7
  * ```
8
8
  *
9
9
  * Workers (threads) are useful for performing CPU-intensive JavaScript operations.
@@ -14,9 +14,10 @@
14
14
  * so by transferring `ArrayBuffer` instances or sharing `SharedArrayBuffer` instances.
15
15
  *
16
16
  * ```js
17
- * const {
17
+ * import {
18
18
  * Worker, isMainThread, parentPort, workerData,
19
- * } = require('node:worker_threads');
19
+ * } from 'node:worker_threads';
20
+ * import { parse } from 'some-js-parsing-library';
20
21
  *
21
22
  * if (isMainThread) {
22
23
  * module.exports = function parseJSAsync(script) {
@@ -33,7 +34,6 @@
33
34
  * });
34
35
  * };
35
36
  * } else {
36
- * const { parse } = require('some-js-parsing-library');
37
37
  * const script = workerData;
38
38
  * parentPort.postMessage(parse(script));
39
39
  * }
@@ -72,7 +72,7 @@ declare module "worker_threads" {
72
72
  * The `MessageChannel` has no methods of its own. `new MessageChannel()` yields an object with `port1` and `port2` properties, which refer to linked `MessagePort` instances.
73
73
  *
74
74
  * ```js
75
- * const { MessageChannel } = require('node:worker_threads');
75
+ * import { MessageChannel } from 'node:worker_threads';
76
76
  *
77
77
  * const { port1, port2 } = new MessageChannel();
78
78
  * port1.on('message', (message) => console.log('received', message));
@@ -121,7 +121,7 @@ declare module "worker_threads" {
121
121
  * * `value` may not contain native (C++-backed) objects other than:
122
122
  *
123
123
  * ```js
124
- * const { MessageChannel } = require('node:worker_threads');
124
+ * import { MessageChannel } from 'node:worker_threads';
125
125
  * const { port1, port2 } = new MessageChannel();
126
126
  *
127
127
  * port1.on('message', (message) => console.log(message));
@@ -143,7 +143,7 @@ declare module "worker_threads" {
143
143
  * `value` may still contain `ArrayBuffer` instances that are not in `transferList`; in that case, the underlying memory is copied rather than moved.
144
144
  *
145
145
  * ```js
146
- * const { MessageChannel } = require('node:worker_threads');
146
+ * import { MessageChannel } from 'node:worker_threads';
147
147
  * const { port1, port2 } = new MessageChannel();
148
148
  *
149
149
  * port1.on('message', (message) => console.log(message));
@@ -267,7 +267,7 @@ declare module "worker_threads" {
267
267
  trackUnmanagedFds?: boolean | undefined;
268
268
  /**
269
269
  * An optional `name` to be appended to the worker title
270
- * for debuggin/identification purposes, making the final title as
270
+ * for debugging/identification purposes, making the final title as
271
271
  * `[worker ${id}] ${name}`.
272
272
  */
273
273
  name?: string | undefined;
@@ -298,8 +298,8 @@ declare module "worker_threads" {
298
298
  * Notable differences inside a Worker environment are:
299
299
  *
300
300
  * * The `process.stdin`, `process.stdout`, and `process.stderr` streams may be redirected by the parent thread.
301
- * * The `require('node:worker_threads').isMainThread` property is set to `false`.
302
- * * The `require('node:worker_threads').parentPort` message port is available.
301
+ * * The `import { isMainThread } from 'node:worker_threads'` variable is set to `false`.
302
+ * * The `import { parentPort } from 'node:worker_threads'` message port is available.
303
303
  * * `process.exit()` does not stop the whole program, just the single thread,
304
304
  * and `process.abort()` is not available.
305
305
  * * `process.chdir()` and `process` methods that set group or user ids
@@ -334,10 +334,10 @@ declare module "worker_threads" {
334
334
  * the thread barrier.
335
335
  *
336
336
  * ```js
337
- * const assert = require('node:assert');
338
- * const {
337
+ * import assert from 'node:assert';
338
+ * import {
339
339
  * Worker, MessageChannel, MessagePort, isMainThread, parentPort,
340
- * } = require('node:worker_threads');
340
+ * } from 'node:worker_threads';
341
341
  * if (isMainThread) {
342
342
  * const worker = new Worker(__filename);
343
343
  * const subChannel = new MessageChannel();
@@ -377,7 +377,7 @@ declare module "worker_threads" {
377
377
  readonly stderr: Readable;
378
378
  /**
379
379
  * An integer identifier for the referenced thread. Inside the worker thread,
380
- * it is available as `require('node:worker_threads').threadId`.
380
+ * it is available as `import { threadId } from 'node:worker_threads'`.
381
381
  * This value is unique for each `Worker` instance inside a single process.
382
382
  * @since v10.5.0
383
383
  */
@@ -513,11 +513,11 @@ declare module "worker_threads" {
513
513
  * ```js
514
514
  * 'use strict';
515
515
  *
516
- * const {
516
+ * import {
517
517
  * isMainThread,
518
518
  * BroadcastChannel,
519
519
  * Worker,
520
- * } = require('node:worker_threads');
520
+ * } from 'node:worker_threads';
521
521
  *
522
522
  * const bc = new BroadcastChannel('hello');
523
523
  *
@@ -571,7 +571,7 @@ declare module "worker_threads" {
571
571
  * This operation cannot be undone.
572
572
  *
573
573
  * ```js
574
- * const { MessageChannel, markAsUntransferable } = require('node:worker_threads');
574
+ * import { MessageChannel, markAsUntransferable } from 'node:worker_threads';
575
575
  *
576
576
  * const pooledBuffer = new ArrayBuffer(8);
577
577
  * const typedArray1 = new Uint8Array(pooledBuffer);
@@ -616,7 +616,7 @@ declare module "worker_threads" {
616
616
  * that contains the message payload, corresponding to the oldest message in the `MessagePort`'s queue.
617
617
  *
618
618
  * ```js
619
- * const { MessageChannel, receiveMessageOnPort } = require('node:worker_threads');
619
+ * import { MessageChannel, receiveMessageOnPort } from 'node:worker_threads';
620
620
  * const { port1, port2 } = new MessageChannel();
621
621
  * port1.postMessage({ hello: 'world' });
622
622
  *
@@ -642,12 +642,12 @@ declare module "worker_threads" {
642
642
  * automatically.
643
643
  *
644
644
  * ```js
645
- * const {
645
+ * import {
646
646
  * Worker,
647
647
  * isMainThread,
648
648
  * setEnvironmentData,
649
649
  * getEnvironmentData,
650
- * } = require('node:worker_threads');
650
+ * } from 'node:worker_threads';
651
651
  *
652
652
  * if (isMainThread) {
653
653
  * setEnvironmentData('Hello', 'World!');
@@ -676,7 +676,7 @@ declare module "worker_threads" {
676
676
  } from "worker_threads";
677
677
  global {
678
678
  /**
679
- * `BroadcastChannel` class is a global reference for `require('worker_threads').BroadcastChannel`
679
+ * `BroadcastChannel` class is a global reference for `import { BroadcastChannel } from 'worker_threads'`
680
680
  * https://nodejs.org/api/globals.html#broadcastchannel
681
681
  * @since v18.0.0
682
682
  */
@@ -686,7 +686,7 @@ declare module "worker_threads" {
686
686
  } ? T
687
687
  : typeof _BroadcastChannel;
688
688
  /**
689
- * `MessageChannel` class is a global reference for `require('worker_threads').MessageChannel`
689
+ * `MessageChannel` class is a global reference for `import { MessageChannel } from 'worker_threads'`
690
690
  * https://nodejs.org/api/globals.html#messagechannel
691
691
  * @since v15.0.0
692
692
  */
@@ -696,7 +696,7 @@ declare module "worker_threads" {
696
696
  } ? T
697
697
  : typeof _MessageChannel;
698
698
  /**
699
- * `MessagePort` class is a global reference for `require('worker_threads').MessagePort`
699
+ * `MessagePort` class is a global reference for `import { MessagePort } from 'worker_threads'`
700
700
  * https://nodejs.org/api/globals.html#messageport
701
701
  * @since v15.0.0
702
702
  */
@@ -5,7 +5,7 @@
5
5
  * To access it:
6
6
  *
7
7
  * ```js
8
- * const zlib = require('node:zlib');
8
+ * import zlib from 'node:zlib';
9
9
  * ```
10
10
  *
11
11
  * Compression and decompression are built around the Node.js
@@ -16,12 +16,12 @@
16
16
  * stream:
17
17
  *
18
18
  * ```js
19
- * const { createGzip } = require('node:zlib');
20
- * const { pipeline } = require('node:stream');
21
- * const {
19
+ * import { createGzip } from 'node:zlib';
20
+ * import { pipeline } from 'node:stream';
21
+ * import {
22
22
  * createReadStream,
23
23
  * createWriteStream,
24
- * } = require('node:fs');
24
+ * } from 'node:fs';
25
25
  *
26
26
  * const gzip = createGzip();
27
27
  * const source = createReadStream('input.txt');
@@ -36,7 +36,7 @@
36
36
  *
37
37
  * // Or, Promisified
38
38
  *
39
- * const { promisify } = require('node:util');
39
+ * import { promisify } from 'node:util';
40
40
  * const pipe = promisify(pipeline);
41
41
  *
42
42
  * async function do_gzip(input, output) {
@@ -56,7 +56,7 @@
56
56
  * It is also possible to compress or decompress data in a single step:
57
57
  *
58
58
  * ```js
59
- * const { deflate, unzip } = require('node:zlib');
59
+ * import { deflate, unzip } from 'node:zlib';
60
60
  *
61
61
  * const input = '.................................';
62
62
  * deflate(input, (err, buffer) => {
@@ -78,7 +78,7 @@
78
78
  *
79
79
  * // Or, Promisified
80
80
  *
81
- * const { promisify } = require('node:util');
81
+ * import { promisify } from 'node:util';
82
82
  * const do_unzip = promisify(unzip);
83
83
  *
84
84
  * do_unzip(buffer)
@@ -6,11 +6,11 @@ The API of this library is inspired by the [XMLHttpRequest-2 FormData Interface]
6
6
 
7
7
  [xhr2-fd]: http://dev.w3.org/2006/webapi/XMLHttpRequest-2/Overview.html#the-formdata-interface
8
8
 
9
- [![Linux Build](https://img.shields.io/travis/form-data/form-data/v4.0.0.svg?label=linux:6.x-12.x)](https://travis-ci.org/form-data/form-data)
10
- [![MacOS Build](https://img.shields.io/travis/form-data/form-data/v4.0.0.svg?label=macos:6.x-12.x)](https://travis-ci.org/form-data/form-data)
11
- [![Windows Build](https://img.shields.io/travis/form-data/form-data/v4.0.0.svg?label=windows:6.x-12.x)](https://travis-ci.org/form-data/form-data)
9
+ [![Linux Build](https://img.shields.io/travis/form-data/form-data/master.svg?label=linux:6.x-12.x)](https://travis-ci.org/form-data/form-data)
10
+ [![MacOS Build](https://img.shields.io/travis/form-data/form-data/master.svg?label=macos:6.x-12.x)](https://travis-ci.org/form-data/form-data)
11
+ [![Windows Build](https://img.shields.io/travis/form-data/form-data/master.svg?label=windows:6.x-12.x)](https://travis-ci.org/form-data/form-data)
12
12
 
13
- [![Coverage Status](https://img.shields.io/coveralls/form-data/form-data/v4.0.0.svg?label=code+coverage)](https://coveralls.io/github/form-data/form-data?branch=master)
13
+ [![Coverage Status](https://img.shields.io/coveralls/form-data/form-data/master.svg?label=code+coverage)](https://coveralls.io/github/form-data/form-data?branch=master)
14
14
  [![Dependency Status](https://img.shields.io/david/form-data/form-data.svg)](https://david-dm.org/form-data/form-data)
15
15
 
16
16
  ## Install
@@ -61,7 +61,7 @@ FormData.prototype.append = function(field, value, options) {
61
61
  }
62
62
 
63
63
  // https://github.com/felixge/node-form-data/issues/38
64
- if (util.isArray(value)) {
64
+ if (Array.isArray(value)) {
65
65
  // Please convert your array into string
66
66
  // the way web server expects it
67
67
  this._error(new Error('Arrays are not supported.'));
@@ -2,7 +2,7 @@
2
2
  "author": "Felix Geisendörfer <felix@debuggable.com> (http://debuggable.com/)",
3
3
  "name": "form-data",
4
4
  "description": "A library to create readable \"multipart/form-data\" streams. Can be used to submit forms and file uploads to other web applications.",
5
- "version": "4.0.0",
5
+ "version": "4.0.1",
6
6
  "repository": {
7
7
  "type": "git",
8
8
  "url": "git://github.com/form-data/form-data.git"
@@ -11,13 +11,16 @@
11
11
  "browser": "./lib/browser",
12
12
  "typings": "./index.d.ts",
13
13
  "scripts": {
14
- "pretest": "rimraf coverage test/tmp",
15
- "test": "istanbul cover test/run.js",
16
- "posttest": "istanbul report lcov text",
17
- "lint": "eslint lib/*.js test/*.js test/integration/*.js",
14
+ "pretest": "npm run lint",
15
+ "pretests-only": "rimraf coverage test/tmp",
16
+ "tests-only": "istanbul cover test/run.js",
17
+ "posttests-only": "istanbul report lcov text",
18
+ "test": "npm run tests-only",
19
+ "posttest": "npx npm@'>=10.2' audit --production",
20
+ "lint": "eslint --ext=js,mjs .",
18
21
  "report": "istanbul report lcov text",
19
22
  "ci-lint": "is-node-modern 8 && npm run lint || is-node-not-modern 8",
20
- "ci-test": "npm run test && npm run browser && npm run report",
23
+ "ci-test": "npm run tests-only && npm run browser && npm run report",
21
24
  "predebug": "rimraf coverage test/tmp",
22
25
  "debug": "verbose=1 ./test/run.js",
23
26
  "browser": "browserify -t browserify-istanbul test/run-browser.js | obake --coverage",
@@ -19,7 +19,7 @@ fashion.
19
19
 
20
20
  ## Caveats
21
21
 
22
- This *only* works if your code builds into a target folder called
22
+ This _only_ works if your code builds into a target folder called
23
23
  `dist`, which is in the root of the package. It also requires
24
24
  that you do not have a folder named `node_modules` anywhere
25
25
  within your dev environment, or else it'll get the wrong answers
@@ -34,7 +34,10 @@ just put the code right inline, there's not much of it.)
34
34
 
35
35
  ```js
36
36
  // src/index.ts
37
- import { findPackageJson, loadPackageJson } from 'package-json-from-dist'
37
+ import {
38
+ findPackageJson,
39
+ loadPackageJson,
40
+ } from 'package-json-from-dist'
38
41
 
39
42
  const pj = findPackageJson(import.meta.url)
40
43
  console.log(`package.json found at ${pj}`)
@@ -49,7 +52,10 @@ to specify the path that you would expect to find the
49
52
 
50
53
  ```js
51
54
  // src/components/something.ts
52
- import { findPackageJson, loadPackageJson } from 'package-json-from-dist'
55
+ import {
56
+ findPackageJson,
57
+ loadPackageJson,
58
+ } from 'package-json-from-dist'
53
59
 
54
60
  const pj = findPackageJson(import.meta.url, '../../package.json')
55
61
  console.log(`package.json found at ${pj}`)
@@ -63,7 +69,10 @@ When running from CommmonJS, use `__filename` instead of
63
69
 
64
70
  ```js
65
71
  // src/index.cts
66
- import { findPackageJson, loadPackageJson } from 'package-json-from-dist'
72
+ import {
73
+ findPackageJson,
74
+ loadPackageJson,
75
+ } from 'package-json-from-dist'
67
76
 
68
77
  const pj = findPackageJson(__filename)
69
78
  console.log(`package.json found at ${pj}`)
@@ -79,7 +88,10 @@ CommonJS override and some `//@ts-ignore` magic to make it work.
79
88
  `src/pkg.ts`:
80
89
 
81
90
  ```js
82
- import { findPackageJson, loadPackageJson } from 'package-json-from-dist'
91
+ import {
92
+ findPackageJson,
93
+ loadPackageJson,
94
+ } from 'package-json-from-dist'
83
95
  //@ts-ignore
84
96
  export const pkg = loadPackageJson(import.meta.url)
85
97
  //@ts-ignore
@@ -89,7 +101,10 @@ export const pj = findPackageJson(import.meta.url)
89
101
  `src/pkg-cjs.cts`:
90
102
 
91
103
  ```js
92
- import { findPackageJson, loadPackageJson } from 'package-json-from-dist'
104
+ import {
105
+ findPackageJson,
106
+ loadPackageJson,
107
+ } from 'package-json-from-dist'
93
108
  export const pkg = loadPackageJson(__filename)
94
109
  export const pj = findPackageJson(__filename)
95
110
  ```
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/index.ts"],"names":[],"mappings":"AAOA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA0CG;AACH,eAAO,MAAM,eAAe,SACpB,MAAM,GAAG,GAAG,gBACL,MAAM,KAClB,MA0BF,CAAA;AAED;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA0CG;AACH,eAAO,MAAM,eAAe,SACpB,MAAM,GAAG,GAAG,gBACL,MAAM,QAEiD,CAAA"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/index.ts"],"names":[],"mappings":"AASA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA0CG;AACH,eAAO,MAAM,eAAe,SACpB,MAAM,GAAG,GAAG,gBACL,MAAM,KAClB,MAsCF,CAAA;AAED;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA0CG;AACH,eAAO,MAAM,eAAe,SACpB,MAAM,GAAG,GAAG,gBACL,MAAM,QAEiD,CAAA"}
@@ -5,6 +5,8 @@ const node_fs_1 = require("node:fs");
5
5
  const node_path_1 = require("node:path");
6
6
  const node_url_1 = require("node:url");
7
7
  const NM = `${node_path_1.sep}node_modules${node_path_1.sep}`;
8
+ const STORE = `.store${node_path_1.sep}`;
9
+ const PKG = `${node_path_1.sep}package${node_path_1.sep}`;
8
10
  const DIST = `${node_path_1.sep}dist${node_path_1.sep}`;
9
11
  /**
10
12
  * Find the package.json file, either from a TypeScript file somewhere not
@@ -59,8 +61,16 @@ const findPackageJson = (from, pathFromSrc = '../package.json') => {
59
61
  // inside of node_modules. find the dist directly under package name.
60
62
  const nm = __dirname.substring(0, nms + NM.length);
61
63
  const pkgDir = __dirname.substring(nms + NM.length);
64
+ // affordance for yarn berry, which puts package contents in
65
+ // '.../node_modules/.store/${id}-${hash}/package/...'
66
+ if (pkgDir.startsWith(STORE)) {
67
+ const pkg = pkgDir.indexOf(PKG, STORE.length);
68
+ if (pkg) {
69
+ return (0, node_path_1.resolve)(nm, pkgDir.substring(0, pkg + PKG.length), 'package.json');
70
+ }
71
+ }
62
72
  const pkgName = pkgDir.startsWith('@') ?
63
- pkgDir.split(node_path_1.sep).slice(0, 2).join(node_path_1.sep)
73
+ pkgDir.split(node_path_1.sep, 2).join(node_path_1.sep)
64
74
  : String(pkgDir.split(node_path_1.sep)[0]);
65
75
  return (0, node_path_1.resolve)(nm, pkgName, 'package.json');
66
76
  }