@pnpm/exe 11.0.5 → 11.0.7

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 (381) hide show
  1. package/dist/node-gyp-bin/node-gyp +0 -0
  2. package/dist/node-gyp-bin/node-gyp.cmd +0 -0
  3. package/dist/node_modules/node-gyp/.release-please-manifest.json +1 -1
  4. package/dist/node_modules/node-gyp/bin/node-gyp.js +0 -0
  5. package/dist/node_modules/node-gyp/gyp/.release-please-manifest.json +1 -1
  6. package/dist/node_modules/node-gyp/gyp/pylib/gyp/MSVSVersion.py +11 -3
  7. package/dist/node_modules/node-gyp/gyp/pylib/gyp/__init__.py +2 -3
  8. package/dist/node_modules/node-gyp/gyp/pylib/gyp/generator/msvs.py +1 -1
  9. package/dist/node_modules/node-gyp/gyp/pylib/gyp/generator/ninja.py +2 -1
  10. package/dist/node_modules/node-gyp/gyp/pylib/gyp/generator/ninja_test.py +26 -16
  11. package/dist/node_modules/node-gyp/gyp/pylib/gyp/mac_tool.py +1 -1
  12. package/dist/node_modules/node-gyp/gyp/pylib/gyp/msvs_emulation.py +1 -1
  13. package/dist/node_modules/node-gyp/gyp/pylib/gyp/simple_copy.py +2 -2
  14. package/dist/node_modules/node-gyp/gyp/pylib/packaging/metadata.py +3 -20
  15. package/dist/node_modules/node-gyp/gyp/pylib/packaging/tags.py +2 -14
  16. package/dist/node_modules/node-gyp/gyp/pyproject.toml +5 -3
  17. package/dist/node_modules/node-gyp/lib/download.js +55 -8
  18. package/dist/node_modules/node-gyp/lib/find-visualstudio.js +1 -1
  19. package/dist/node_modules/node-gyp/lib/process-release.js +17 -19
  20. package/dist/node_modules/node-gyp/package.json +3 -3
  21. package/dist/node_modules/{safer-buffer → undici}/LICENSE +1 -1
  22. package/dist/node_modules/undici/index-fetch.js +35 -0
  23. package/dist/node_modules/undici/index.js +169 -0
  24. package/dist/node_modules/undici/lib/api/abort-signal.js +57 -0
  25. package/dist/node_modules/undici/lib/api/api-connect.js +108 -0
  26. package/dist/node_modules/undici/lib/api/api-pipeline.js +251 -0
  27. package/dist/node_modules/undici/lib/api/api-request.js +214 -0
  28. package/dist/node_modules/undici/lib/api/api-stream.js +220 -0
  29. package/dist/node_modules/undici/lib/api/api-upgrade.js +108 -0
  30. package/dist/node_modules/undici/lib/api/index.js +7 -0
  31. package/dist/node_modules/undici/lib/api/readable.js +385 -0
  32. package/dist/node_modules/undici/lib/api/util.js +93 -0
  33. package/dist/node_modules/undici/lib/core/connect.js +240 -0
  34. package/dist/node_modules/undici/lib/core/constants.js +118 -0
  35. package/dist/node_modules/undici/lib/core/diagnostics.js +202 -0
  36. package/dist/node_modules/undici/lib/core/errors.js +425 -0
  37. package/dist/node_modules/undici/lib/core/request.js +405 -0
  38. package/dist/node_modules/undici/lib/core/symbols.js +67 -0
  39. package/dist/node_modules/undici/lib/core/tree.js +152 -0
  40. package/dist/node_modules/undici/lib/core/util.js +719 -0
  41. package/dist/node_modules/undici/lib/dispatcher/agent.js +130 -0
  42. package/dist/node_modules/undici/lib/dispatcher/balanced-pool.js +209 -0
  43. package/dist/node_modules/undici/lib/dispatcher/client-h1.js +1370 -0
  44. package/dist/node_modules/undici/lib/dispatcher/client-h2.js +744 -0
  45. package/dist/node_modules/undici/lib/dispatcher/client.js +623 -0
  46. package/dist/node_modules/undici/lib/dispatcher/dispatcher-base.js +198 -0
  47. package/dist/node_modules/undici/lib/dispatcher/dispatcher.js +65 -0
  48. package/dist/node_modules/undici/lib/dispatcher/env-http-proxy-agent.js +160 -0
  49. package/dist/node_modules/undici/lib/dispatcher/fixed-queue.js +117 -0
  50. package/dist/node_modules/undici/lib/dispatcher/pool-base.js +194 -0
  51. package/dist/node_modules/undici/lib/dispatcher/pool-stats.js +34 -0
  52. package/dist/node_modules/undici/lib/dispatcher/pool.js +107 -0
  53. package/dist/node_modules/undici/lib/dispatcher/proxy-agent.js +274 -0
  54. package/dist/node_modules/undici/lib/dispatcher/retry-agent.js +35 -0
  55. package/dist/node_modules/undici/lib/global.js +32 -0
  56. package/dist/node_modules/undici/lib/handler/decorator-handler.js +44 -0
  57. package/dist/node_modules/undici/lib/handler/redirect-handler.js +232 -0
  58. package/dist/node_modules/undici/lib/handler/retry-handler.js +374 -0
  59. package/dist/node_modules/undici/lib/interceptor/dns.js +375 -0
  60. package/dist/node_modules/undici/lib/interceptor/dump.js +123 -0
  61. package/dist/node_modules/undici/lib/interceptor/redirect-interceptor.js +21 -0
  62. package/dist/node_modules/undici/lib/interceptor/redirect.js +24 -0
  63. package/dist/node_modules/undici/lib/interceptor/response-error.js +86 -0
  64. package/dist/node_modules/undici/lib/interceptor/retry.js +19 -0
  65. package/dist/node_modules/undici/lib/llhttp/.gitkeep +0 -0
  66. package/dist/node_modules/undici/lib/llhttp/constants.js +278 -0
  67. package/dist/node_modules/undici/lib/llhttp/llhttp-wasm.js +5 -0
  68. package/dist/node_modules/undici/lib/llhttp/llhttp_simd-wasm.js +5 -0
  69. package/dist/node_modules/undici/lib/llhttp/utils.js +15 -0
  70. package/dist/node_modules/undici/lib/mock/mock-agent.js +160 -0
  71. package/dist/node_modules/undici/lib/mock/mock-client.js +59 -0
  72. package/dist/node_modules/undici/lib/mock/mock-errors.js +28 -0
  73. package/dist/node_modules/undici/lib/mock/mock-interceptor.js +207 -0
  74. package/dist/node_modules/undici/lib/mock/mock-pool.js +59 -0
  75. package/dist/node_modules/undici/lib/mock/mock-symbols.js +23 -0
  76. package/dist/node_modules/undici/lib/mock/mock-utils.js +367 -0
  77. package/dist/node_modules/undici/lib/mock/pending-interceptors-formatter.js +43 -0
  78. package/dist/node_modules/undici/lib/mock/pluralizer.js +29 -0
  79. package/dist/node_modules/undici/lib/util/timers.js +423 -0
  80. package/dist/node_modules/undici/lib/web/cache/cache.js +859 -0
  81. package/dist/node_modules/undici/lib/web/cache/cachestorage.js +152 -0
  82. package/dist/node_modules/undici/lib/web/cache/symbols.js +5 -0
  83. package/dist/node_modules/undici/lib/web/cache/util.js +45 -0
  84. package/dist/node_modules/undici/lib/web/cookies/constants.js +12 -0
  85. package/dist/node_modules/undici/lib/web/cookies/index.js +184 -0
  86. package/dist/node_modules/undici/lib/web/cookies/parse.js +317 -0
  87. package/dist/node_modules/undici/lib/web/cookies/util.js +282 -0
  88. package/dist/node_modules/undici/lib/web/eventsource/eventsource-stream.js +398 -0
  89. package/dist/node_modules/undici/lib/web/eventsource/eventsource.js +480 -0
  90. package/dist/node_modules/undici/lib/web/eventsource/util.js +37 -0
  91. package/dist/node_modules/{@npmcli/redact → undici/lib/web/fetch}/LICENSE +1 -1
  92. package/dist/node_modules/undici/lib/web/fetch/body.js +529 -0
  93. package/dist/node_modules/undici/lib/web/fetch/constants.js +124 -0
  94. package/dist/node_modules/undici/lib/web/fetch/data-url.js +744 -0
  95. package/dist/node_modules/undici/lib/web/fetch/dispatcher-weakref.js +46 -0
  96. package/dist/node_modules/undici/lib/web/fetch/file.js +126 -0
  97. package/dist/node_modules/undici/lib/web/fetch/formdata-parser.js +474 -0
  98. package/dist/node_modules/undici/lib/web/fetch/formdata.js +252 -0
  99. package/dist/node_modules/undici/lib/web/fetch/global.js +40 -0
  100. package/dist/node_modules/undici/lib/web/fetch/headers.js +687 -0
  101. package/dist/node_modules/undici/lib/web/fetch/index.js +2272 -0
  102. package/dist/node_modules/undici/lib/web/fetch/request.js +1037 -0
  103. package/dist/node_modules/undici/lib/web/fetch/response.js +610 -0
  104. package/dist/node_modules/undici/lib/web/fetch/symbols.js +9 -0
  105. package/dist/node_modules/undici/lib/web/fetch/util.js +1632 -0
  106. package/dist/node_modules/undici/lib/web/fetch/webidl.js +695 -0
  107. package/dist/node_modules/undici/lib/web/fileapi/encoding.js +290 -0
  108. package/dist/node_modules/undici/lib/web/fileapi/filereader.js +344 -0
  109. package/dist/node_modules/undici/lib/web/fileapi/progressevent.js +78 -0
  110. package/dist/node_modules/undici/lib/web/fileapi/symbols.js +10 -0
  111. package/dist/node_modules/undici/lib/web/fileapi/util.js +391 -0
  112. package/dist/node_modules/undici/lib/web/websocket/connection.js +371 -0
  113. package/dist/node_modules/undici/lib/web/websocket/constants.js +66 -0
  114. package/dist/node_modules/undici/lib/web/websocket/events.js +329 -0
  115. package/dist/node_modules/undici/lib/web/websocket/frame.js +96 -0
  116. package/dist/node_modules/undici/lib/web/websocket/permessage-deflate.js +100 -0
  117. package/dist/node_modules/undici/lib/web/websocket/receiver.js +490 -0
  118. package/dist/node_modules/undici/lib/web/websocket/sender.js +104 -0
  119. package/dist/node_modules/undici/lib/web/websocket/symbols.js +12 -0
  120. package/dist/node_modules/undici/lib/web/websocket/util.js +322 -0
  121. package/dist/node_modules/undici/lib/web/websocket/websocket.js +592 -0
  122. package/dist/node_modules/undici/package.json +160 -0
  123. package/dist/node_modules/undici/scripts/strip-comments.js +8 -0
  124. package/dist/node_modules/yallist/package.json +51 -12
  125. package/dist/pnpm.mjs +5915 -5140
  126. package/dist/worker.js +70 -67
  127. package/package.json +21 -13
  128. package/setup.js +17 -3
  129. package/dist/node_modules/@gar/promise-retry/LICENSE +0 -20
  130. package/dist/node_modules/@gar/promise-retry/lib/index.js +0 -62
  131. package/dist/node_modules/@gar/promise-retry/lib/retry.js +0 -109
  132. package/dist/node_modules/@gar/promise-retry/package.json +0 -45
  133. package/dist/node_modules/@npmcli/agent/lib/agents.js +0 -206
  134. package/dist/node_modules/@npmcli/agent/lib/dns.js +0 -53
  135. package/dist/node_modules/@npmcli/agent/lib/errors.js +0 -61
  136. package/dist/node_modules/@npmcli/agent/lib/index.js +0 -56
  137. package/dist/node_modules/@npmcli/agent/lib/options.js +0 -86
  138. package/dist/node_modules/@npmcli/agent/lib/proxy.js +0 -88
  139. package/dist/node_modules/@npmcli/agent/package.json +0 -60
  140. package/dist/node_modules/@npmcli/fs/lib/common/get-options.js +0 -20
  141. package/dist/node_modules/@npmcli/fs/lib/common/node.js +0 -9
  142. package/dist/node_modules/@npmcli/fs/lib/cp/LICENSE +0 -15
  143. package/dist/node_modules/@npmcli/fs/lib/cp/errors.js +0 -129
  144. package/dist/node_modules/@npmcli/fs/lib/cp/index.js +0 -22
  145. package/dist/node_modules/@npmcli/fs/lib/cp/polyfill.js +0 -428
  146. package/dist/node_modules/@npmcli/fs/lib/index.js +0 -13
  147. package/dist/node_modules/@npmcli/fs/lib/move-file.js +0 -78
  148. package/dist/node_modules/@npmcli/fs/lib/readdir-scoped.js +0 -20
  149. package/dist/node_modules/@npmcli/fs/lib/with-temp-dir.js +0 -39
  150. package/dist/node_modules/@npmcli/fs/package.json +0 -54
  151. package/dist/node_modules/@npmcli/redact/lib/deep-map.js +0 -71
  152. package/dist/node_modules/@npmcli/redact/lib/error.js +0 -28
  153. package/dist/node_modules/@npmcli/redact/lib/index.js +0 -44
  154. package/dist/node_modules/@npmcli/redact/lib/matchers.js +0 -88
  155. package/dist/node_modules/@npmcli/redact/lib/server.js +0 -59
  156. package/dist/node_modules/@npmcli/redact/lib/utils.js +0 -202
  157. package/dist/node_modules/@npmcli/redact/package.json +0 -52
  158. package/dist/node_modules/agent-base/LICENSE +0 -22
  159. package/dist/node_modules/agent-base/dist/helpers.js +0 -66
  160. package/dist/node_modules/agent-base/dist/index.js +0 -178
  161. package/dist/node_modules/agent-base/package.json +0 -46
  162. package/dist/node_modules/balanced-match/dist/commonjs/index.js +0 -59
  163. package/dist/node_modules/balanced-match/dist/esm/index.js +0 -54
  164. package/dist/node_modules/balanced-match/package.json +0 -68
  165. package/dist/node_modules/brace-expansion/LICENSE +0 -23
  166. package/dist/node_modules/brace-expansion/dist/commonjs/index.js +0 -201
  167. package/dist/node_modules/brace-expansion/dist/commonjs/package.json +0 -3
  168. package/dist/node_modules/brace-expansion/dist/esm/index.js +0 -197
  169. package/dist/node_modules/brace-expansion/dist/esm/package.json +0 -3
  170. package/dist/node_modules/brace-expansion/package.json +0 -64
  171. package/dist/node_modules/cacache/lib/content/path.js +0 -29
  172. package/dist/node_modules/cacache/lib/content/read.js +0 -165
  173. package/dist/node_modules/cacache/lib/content/rm.js +0 -18
  174. package/dist/node_modules/cacache/lib/content/write.js +0 -206
  175. package/dist/node_modules/cacache/lib/entry-index.js +0 -336
  176. package/dist/node_modules/cacache/lib/get.js +0 -170
  177. package/dist/node_modules/cacache/lib/index.js +0 -42
  178. package/dist/node_modules/cacache/lib/memoization.js +0 -72
  179. package/dist/node_modules/cacache/lib/put.js +0 -80
  180. package/dist/node_modules/cacache/lib/rm.js +0 -31
  181. package/dist/node_modules/cacache/lib/util/glob.js +0 -7
  182. package/dist/node_modules/cacache/lib/util/hash-to-segments.js +0 -7
  183. package/dist/node_modules/cacache/lib/util/tmp.js +0 -32
  184. package/dist/node_modules/cacache/lib/verify.js +0 -258
  185. package/dist/node_modules/cacache/package.json +0 -81
  186. package/dist/node_modules/debug/LICENSE +0 -20
  187. package/dist/node_modules/debug/package.json +0 -64
  188. package/dist/node_modules/debug/src/browser.js +0 -272
  189. package/dist/node_modules/debug/src/common.js +0 -292
  190. package/dist/node_modules/debug/src/index.js +0 -10
  191. package/dist/node_modules/debug/src/node.js +0 -263
  192. package/dist/node_modules/fs-minipass/LICENSE +0 -15
  193. package/dist/node_modules/fs-minipass/lib/index.js +0 -443
  194. package/dist/node_modules/fs-minipass/package.json +0 -54
  195. package/dist/node_modules/glob/dist/commonjs/glob.js +0 -248
  196. package/dist/node_modules/glob/dist/commonjs/has-magic.js +0 -27
  197. package/dist/node_modules/glob/dist/commonjs/ignore.js +0 -119
  198. package/dist/node_modules/glob/dist/commonjs/index.js +0 -68
  199. package/dist/node_modules/glob/dist/commonjs/index.min.js +0 -4
  200. package/dist/node_modules/glob/dist/commonjs/package.json +0 -3
  201. package/dist/node_modules/glob/dist/commonjs/pattern.js +0 -223
  202. package/dist/node_modules/glob/dist/commonjs/processor.js +0 -301
  203. package/dist/node_modules/glob/dist/commonjs/walker.js +0 -387
  204. package/dist/node_modules/glob/dist/esm/glob.js +0 -244
  205. package/dist/node_modules/glob/dist/esm/has-magic.js +0 -23
  206. package/dist/node_modules/glob/dist/esm/ignore.js +0 -115
  207. package/dist/node_modules/glob/dist/esm/index.js +0 -55
  208. package/dist/node_modules/glob/dist/esm/index.min.js +0 -4
  209. package/dist/node_modules/glob/dist/esm/package.json +0 -3
  210. package/dist/node_modules/glob/dist/esm/pattern.js +0 -219
  211. package/dist/node_modules/glob/dist/esm/processor.js +0 -294
  212. package/dist/node_modules/glob/dist/esm/walker.js +0 -381
  213. package/dist/node_modules/glob/package.json +0 -98
  214. package/dist/node_modules/http-cache-semantics/LICENSE +0 -9
  215. package/dist/node_modules/http-cache-semantics/index.js +0 -928
  216. package/dist/node_modules/http-cache-semantics/package.json +0 -22
  217. package/dist/node_modules/http-proxy-agent/LICENSE +0 -22
  218. package/dist/node_modules/http-proxy-agent/dist/index.js +0 -148
  219. package/dist/node_modules/http-proxy-agent/package.json +0 -47
  220. package/dist/node_modules/https-proxy-agent/LICENSE +0 -22
  221. package/dist/node_modules/https-proxy-agent/dist/index.js +0 -180
  222. package/dist/node_modules/https-proxy-agent/dist/parse-proxy-response.js +0 -101
  223. package/dist/node_modules/https-proxy-agent/package.json +0 -50
  224. package/dist/node_modules/iconv-lite/LICENSE +0 -21
  225. package/dist/node_modules/iconv-lite/encodings/dbcs-codec.js +0 -532
  226. package/dist/node_modules/iconv-lite/encodings/dbcs-data.js +0 -185
  227. package/dist/node_modules/iconv-lite/encodings/index.js +0 -23
  228. package/dist/node_modules/iconv-lite/encodings/internal.js +0 -218
  229. package/dist/node_modules/iconv-lite/encodings/sbcs-codec.js +0 -75
  230. package/dist/node_modules/iconv-lite/encodings/sbcs-data-generated.js +0 -451
  231. package/dist/node_modules/iconv-lite/encodings/sbcs-data.js +0 -178
  232. package/dist/node_modules/iconv-lite/encodings/tables/big5-added.json +0 -122
  233. package/dist/node_modules/iconv-lite/encodings/tables/cp936.json +0 -264
  234. package/dist/node_modules/iconv-lite/encodings/tables/cp949.json +0 -273
  235. package/dist/node_modules/iconv-lite/encodings/tables/cp950.json +0 -177
  236. package/dist/node_modules/iconv-lite/encodings/tables/eucjp.json +0 -182
  237. package/dist/node_modules/iconv-lite/encodings/tables/gb18030-ranges.json +0 -1
  238. package/dist/node_modules/iconv-lite/encodings/tables/gbk-added.json +0 -56
  239. package/dist/node_modules/iconv-lite/encodings/tables/shiftjis.json +0 -125
  240. package/dist/node_modules/iconv-lite/encodings/utf16.js +0 -187
  241. package/dist/node_modules/iconv-lite/encodings/utf32.js +0 -307
  242. package/dist/node_modules/iconv-lite/encodings/utf7.js +0 -283
  243. package/dist/node_modules/iconv-lite/lib/bom-handling.js +0 -48
  244. package/dist/node_modules/iconv-lite/lib/helpers/merge-exports.js +0 -13
  245. package/dist/node_modules/iconv-lite/lib/index.js +0 -182
  246. package/dist/node_modules/iconv-lite/lib/streams.js +0 -105
  247. package/dist/node_modules/iconv-lite/package.json +0 -70
  248. package/dist/node_modules/ip-address/LICENSE +0 -19
  249. package/dist/node_modules/ip-address/dist/address-error.js +0 -12
  250. package/dist/node_modules/ip-address/dist/common.js +0 -46
  251. package/dist/node_modules/ip-address/dist/ip-address.js +0 -35
  252. package/dist/node_modules/ip-address/dist/ipv4.js +0 -360
  253. package/dist/node_modules/ip-address/dist/ipv6.js +0 -1003
  254. package/dist/node_modules/ip-address/dist/v4/constants.js +0 -8
  255. package/dist/node_modules/ip-address/dist/v6/constants.js +0 -76
  256. package/dist/node_modules/ip-address/dist/v6/helpers.js +0 -45
  257. package/dist/node_modules/ip-address/dist/v6/regular-expressions.js +0 -95
  258. package/dist/node_modules/ip-address/package.json +0 -78
  259. package/dist/node_modules/lru-cache/dist/commonjs/diagnostics-channel.js +0 -10
  260. package/dist/node_modules/lru-cache/dist/commonjs/index.js +0 -1692
  261. package/dist/node_modules/lru-cache/dist/commonjs/index.min.js +0 -2
  262. package/dist/node_modules/lru-cache/dist/commonjs/package.json +0 -3
  263. package/dist/node_modules/lru-cache/dist/esm/browser/diagnostics-channel.js +0 -4
  264. package/dist/node_modules/lru-cache/dist/esm/browser/index.js +0 -1688
  265. package/dist/node_modules/lru-cache/dist/esm/browser/index.min.js +0 -2
  266. package/dist/node_modules/lru-cache/dist/esm/diagnostics-channel.js +0 -19
  267. package/dist/node_modules/lru-cache/dist/esm/index.js +0 -1688
  268. package/dist/node_modules/lru-cache/dist/esm/index.min.js +0 -2
  269. package/dist/node_modules/lru-cache/dist/esm/node/diagnostics-channel.js +0 -7
  270. package/dist/node_modules/lru-cache/dist/esm/node/index.js +0 -1688
  271. package/dist/node_modules/lru-cache/dist/esm/node/index.min.js +0 -2
  272. package/dist/node_modules/lru-cache/dist/esm/package.json +0 -3
  273. package/dist/node_modules/lru-cache/package.json +0 -126
  274. package/dist/node_modules/make-fetch-happen/LICENSE +0 -16
  275. package/dist/node_modules/make-fetch-happen/lib/cache/entry.js +0 -471
  276. package/dist/node_modules/make-fetch-happen/lib/cache/errors.js +0 -11
  277. package/dist/node_modules/make-fetch-happen/lib/cache/index.js +0 -49
  278. package/dist/node_modules/make-fetch-happen/lib/cache/key.js +0 -17
  279. package/dist/node_modules/make-fetch-happen/lib/cache/policy.js +0 -161
  280. package/dist/node_modules/make-fetch-happen/lib/fetch.js +0 -118
  281. package/dist/node_modules/make-fetch-happen/lib/index.js +0 -41
  282. package/dist/node_modules/make-fetch-happen/lib/options.js +0 -59
  283. package/dist/node_modules/make-fetch-happen/lib/pipeline.js +0 -41
  284. package/dist/node_modules/make-fetch-happen/lib/remote.js +0 -134
  285. package/dist/node_modules/make-fetch-happen/package.json +0 -75
  286. package/dist/node_modules/minimatch/dist/commonjs/assert-valid-pattern.js +0 -14
  287. package/dist/node_modules/minimatch/dist/commonjs/ast.js +0 -845
  288. package/dist/node_modules/minimatch/dist/commonjs/brace-expressions.js +0 -150
  289. package/dist/node_modules/minimatch/dist/commonjs/escape.js +0 -30
  290. package/dist/node_modules/minimatch/dist/commonjs/index.js +0 -1127
  291. package/dist/node_modules/minimatch/dist/commonjs/package.json +0 -3
  292. package/dist/node_modules/minimatch/dist/commonjs/unescape.js +0 -38
  293. package/dist/node_modules/minimatch/dist/esm/assert-valid-pattern.js +0 -10
  294. package/dist/node_modules/minimatch/dist/esm/ast.js +0 -841
  295. package/dist/node_modules/minimatch/dist/esm/brace-expressions.js +0 -146
  296. package/dist/node_modules/minimatch/dist/esm/escape.js +0 -26
  297. package/dist/node_modules/minimatch/dist/esm/index.js +0 -1114
  298. package/dist/node_modules/minimatch/dist/esm/package.json +0 -3
  299. package/dist/node_modules/minimatch/dist/esm/unescape.js +0 -34
  300. package/dist/node_modules/minimatch/package.json +0 -73
  301. package/dist/node_modules/minipass-collect/LICENSE +0 -15
  302. package/dist/node_modules/minipass-collect/index.js +0 -71
  303. package/dist/node_modules/minipass-collect/package.json +0 -30
  304. package/dist/node_modules/minipass-fetch/LICENSE +0 -28
  305. package/dist/node_modules/minipass-fetch/lib/abort-error.js +0 -17
  306. package/dist/node_modules/minipass-fetch/lib/blob.js +0 -97
  307. package/dist/node_modules/minipass-fetch/lib/body.js +0 -360
  308. package/dist/node_modules/minipass-fetch/lib/fetch-error.js +0 -32
  309. package/dist/node_modules/minipass-fetch/lib/headers.js +0 -267
  310. package/dist/node_modules/minipass-fetch/lib/index.js +0 -376
  311. package/dist/node_modules/minipass-fetch/lib/request.js +0 -282
  312. package/dist/node_modules/minipass-fetch/lib/response.js +0 -90
  313. package/dist/node_modules/minipass-fetch/package.json +0 -70
  314. package/dist/node_modules/minipass-flush/index.js +0 -39
  315. package/dist/node_modules/minipass-flush/node_modules/minipass/LICENSE +0 -15
  316. package/dist/node_modules/minipass-flush/node_modules/minipass/index.js +0 -649
  317. package/dist/node_modules/minipass-flush/node_modules/minipass/package.json +0 -56
  318. package/dist/node_modules/minipass-flush/package.json +0 -42
  319. package/dist/node_modules/minipass-pipeline/LICENSE +0 -15
  320. package/dist/node_modules/minipass-pipeline/index.js +0 -128
  321. package/dist/node_modules/minipass-pipeline/node_modules/minipass/LICENSE +0 -15
  322. package/dist/node_modules/minipass-pipeline/node_modules/minipass/index.js +0 -649
  323. package/dist/node_modules/minipass-pipeline/node_modules/minipass/package.json +0 -56
  324. package/dist/node_modules/minipass-pipeline/package.json +0 -29
  325. package/dist/node_modules/minipass-sized/LICENSE +0 -15
  326. package/dist/node_modules/minipass-sized/dist/commonjs/index.js +0 -69
  327. package/dist/node_modules/minipass-sized/dist/commonjs/package.json +0 -3
  328. package/dist/node_modules/minipass-sized/dist/esm/index.js +0 -64
  329. package/dist/node_modules/minipass-sized/dist/esm/package.json +0 -3
  330. package/dist/node_modules/minipass-sized/package.json +0 -69
  331. package/dist/node_modules/ms/index.js +0 -162
  332. package/dist/node_modules/ms/package.json +0 -38
  333. package/dist/node_modules/negotiator/LICENSE +0 -24
  334. package/dist/node_modules/negotiator/index.js +0 -83
  335. package/dist/node_modules/negotiator/lib/charset.js +0 -169
  336. package/dist/node_modules/negotiator/lib/encoding.js +0 -205
  337. package/dist/node_modules/negotiator/lib/language.js +0 -179
  338. package/dist/node_modules/negotiator/lib/mediaType.js +0 -294
  339. package/dist/node_modules/negotiator/package.json +0 -43
  340. package/dist/node_modules/p-map/index.js +0 -283
  341. package/dist/node_modules/p-map/license +0 -9
  342. package/dist/node_modules/p-map/package.json +0 -57
  343. package/dist/node_modules/path-scurry/dist/commonjs/index.js +0 -2018
  344. package/dist/node_modules/path-scurry/dist/commonjs/package.json +0 -3
  345. package/dist/node_modules/path-scurry/dist/esm/index.js +0 -1983
  346. package/dist/node_modules/path-scurry/dist/esm/package.json +0 -3
  347. package/dist/node_modules/path-scurry/package.json +0 -72
  348. package/dist/node_modules/safer-buffer/dangerous.js +0 -58
  349. package/dist/node_modules/safer-buffer/package.json +0 -34
  350. package/dist/node_modules/safer-buffer/safer.js +0 -77
  351. package/dist/node_modules/safer-buffer/tests.js +0 -406
  352. package/dist/node_modules/smart-buffer/.prettierrc.yaml +0 -5
  353. package/dist/node_modules/smart-buffer/LICENSE +0 -20
  354. package/dist/node_modules/smart-buffer/build/smartbuffer.js +0 -1233
  355. package/dist/node_modules/smart-buffer/build/utils.js +0 -108
  356. package/dist/node_modules/smart-buffer/package.json +0 -79
  357. package/dist/node_modules/socks/.eslintrc.cjs +0 -11
  358. package/dist/node_modules/socks/.prettierrc.yaml +0 -7
  359. package/dist/node_modules/socks/LICENSE +0 -20
  360. package/dist/node_modules/socks/build/client/socksclient.js +0 -793
  361. package/dist/node_modules/socks/build/common/constants.js +0 -108
  362. package/dist/node_modules/socks/build/common/helpers.js +0 -167
  363. package/dist/node_modules/socks/build/common/receivebuffer.js +0 -43
  364. package/dist/node_modules/socks/build/common/util.js +0 -25
  365. package/dist/node_modules/socks/build/index.js +0 -18
  366. package/dist/node_modules/socks/package.json +0 -58
  367. package/dist/node_modules/socks-proxy-agent/LICENSE +0 -22
  368. package/dist/node_modules/socks-proxy-agent/dist/index.js +0 -195
  369. package/dist/node_modules/socks-proxy-agent/package.json +0 -142
  370. package/dist/node_modules/ssri/lib/index.js +0 -550
  371. package/dist/node_modules/ssri/package.json +0 -66
  372. package/dist/node_modules/tar/node_modules/yallist/dist/commonjs/package.json +0 -3
  373. package/dist/node_modules/tar/node_modules/yallist/dist/esm/package.json +0 -3
  374. package/dist/node_modules/tar/node_modules/yallist/package.json +0 -68
  375. package/dist/node_modules/yallist/LICENSE +0 -15
  376. package/dist/node_modules/yallist/iterator.js +0 -8
  377. package/dist/node_modules/yallist/yallist.js +0 -426
  378. /package/dist/node_modules/{tar/node_modules/yallist → yallist}/dist/commonjs/index.js +0 -0
  379. /package/dist/node_modules/{balanced-match → yallist}/dist/commonjs/package.json +0 -0
  380. /package/dist/node_modules/{tar/node_modules/yallist → yallist}/dist/esm/index.js +0 -0
  381. /package/dist/node_modules/{balanced-match → yallist}/dist/esm/package.json +0 -0
@@ -0,0 +1,480 @@
1
+ 'use strict'
2
+
3
+ const { pipeline } = require('node:stream')
4
+ const { fetching } = require('../fetch')
5
+ const { makeRequest } = require('../fetch/request')
6
+ const { webidl } = require('../fetch/webidl')
7
+ const { EventSourceStream } = require('./eventsource-stream')
8
+ const { parseMIMEType } = require('../fetch/data-url')
9
+ const { createFastMessageEvent } = require('../websocket/events')
10
+ const { isNetworkError } = require('../fetch/response')
11
+ const { delay } = require('./util')
12
+ const { kEnumerableProperty } = require('../../core/util')
13
+ const { environmentSettingsObject } = require('../fetch/util')
14
+
15
+ let experimentalWarned = false
16
+
17
+ /**
18
+ * A reconnection time, in milliseconds. This must initially be an implementation-defined value,
19
+ * probably in the region of a few seconds.
20
+ *
21
+ * In Comparison:
22
+ * - Chrome uses 3000ms.
23
+ * - Deno uses 5000ms.
24
+ *
25
+ * @type {3000}
26
+ */
27
+ const defaultReconnectionTime = 3000
28
+
29
+ /**
30
+ * The readyState attribute represents the state of the connection.
31
+ * @enum
32
+ * @readonly
33
+ * @see https://html.spec.whatwg.org/multipage/server-sent-events.html#dom-eventsource-readystate-dev
34
+ */
35
+
36
+ /**
37
+ * The connection has not yet been established, or it was closed and the user
38
+ * agent is reconnecting.
39
+ * @type {0}
40
+ */
41
+ const CONNECTING = 0
42
+
43
+ /**
44
+ * The user agent has an open connection and is dispatching events as it
45
+ * receives them.
46
+ * @type {1}
47
+ */
48
+ const OPEN = 1
49
+
50
+ /**
51
+ * The connection is not open, and the user agent is not trying to reconnect.
52
+ * @type {2}
53
+ */
54
+ const CLOSED = 2
55
+
56
+ /**
57
+ * Requests for the element will have their mode set to "cors" and their credentials mode set to "same-origin".
58
+ * @type {'anonymous'}
59
+ */
60
+ const ANONYMOUS = 'anonymous'
61
+
62
+ /**
63
+ * Requests for the element will have their mode set to "cors" and their credentials mode set to "include".
64
+ * @type {'use-credentials'}
65
+ */
66
+ const USE_CREDENTIALS = 'use-credentials'
67
+
68
+ /**
69
+ * The EventSource interface is used to receive server-sent events. It
70
+ * connects to a server over HTTP and receives events in text/event-stream
71
+ * format without closing the connection.
72
+ * @extends {EventTarget}
73
+ * @see https://html.spec.whatwg.org/multipage/server-sent-events.html#server-sent-events
74
+ * @api public
75
+ */
76
+ class EventSource extends EventTarget {
77
+ #events = {
78
+ open: null,
79
+ error: null,
80
+ message: null
81
+ }
82
+
83
+ #url = null
84
+ #withCredentials = false
85
+
86
+ #readyState = CONNECTING
87
+
88
+ #request = null
89
+ #controller = null
90
+
91
+ #dispatcher
92
+
93
+ /**
94
+ * @type {import('./eventsource-stream').eventSourceSettings}
95
+ */
96
+ #state
97
+
98
+ /**
99
+ * Creates a new EventSource object.
100
+ * @param {string} url
101
+ * @param {EventSourceInit} [eventSourceInitDict]
102
+ * @see https://html.spec.whatwg.org/multipage/server-sent-events.html#the-eventsource-interface
103
+ */
104
+ constructor (url, eventSourceInitDict = {}) {
105
+ // 1. Let ev be a new EventSource object.
106
+ super()
107
+
108
+ webidl.util.markAsUncloneable(this)
109
+
110
+ const prefix = 'EventSource constructor'
111
+ webidl.argumentLengthCheck(arguments, 1, prefix)
112
+
113
+ if (!experimentalWarned) {
114
+ experimentalWarned = true
115
+ process.emitWarning('EventSource is experimental, expect them to change at any time.', {
116
+ code: 'UNDICI-ES'
117
+ })
118
+ }
119
+
120
+ url = webidl.converters.USVString(url, prefix, 'url')
121
+ eventSourceInitDict = webidl.converters.EventSourceInitDict(eventSourceInitDict, prefix, 'eventSourceInitDict')
122
+
123
+ this.#dispatcher = eventSourceInitDict.dispatcher
124
+ this.#state = {
125
+ lastEventId: '',
126
+ reconnectionTime: defaultReconnectionTime
127
+ }
128
+
129
+ // 2. Let settings be ev's relevant settings object.
130
+ // https://html.spec.whatwg.org/multipage/webappapis.html#environment-settings-object
131
+ const settings = environmentSettingsObject
132
+
133
+ let urlRecord
134
+
135
+ try {
136
+ // 3. Let urlRecord be the result of encoding-parsing a URL given url, relative to settings.
137
+ urlRecord = new URL(url, settings.settingsObject.baseUrl)
138
+ this.#state.origin = urlRecord.origin
139
+ } catch (e) {
140
+ // 4. If urlRecord is failure, then throw a "SyntaxError" DOMException.
141
+ throw new DOMException(e, 'SyntaxError')
142
+ }
143
+
144
+ // 5. Set ev's url to urlRecord.
145
+ this.#url = urlRecord.href
146
+
147
+ // 6. Let corsAttributeState be Anonymous.
148
+ let corsAttributeState = ANONYMOUS
149
+
150
+ // 7. If the value of eventSourceInitDict's withCredentials member is true,
151
+ // then set corsAttributeState to Use Credentials and set ev's
152
+ // withCredentials attribute to true.
153
+ if (eventSourceInitDict.withCredentials) {
154
+ corsAttributeState = USE_CREDENTIALS
155
+ this.#withCredentials = true
156
+ }
157
+
158
+ // 8. Let request be the result of creating a potential-CORS request given
159
+ // urlRecord, the empty string, and corsAttributeState.
160
+ const initRequest = {
161
+ redirect: 'follow',
162
+ keepalive: true,
163
+ // @see https://html.spec.whatwg.org/multipage/urls-and-fetching.html#cors-settings-attributes
164
+ mode: 'cors',
165
+ credentials: corsAttributeState === 'anonymous'
166
+ ? 'same-origin'
167
+ : 'omit',
168
+ referrer: 'no-referrer'
169
+ }
170
+
171
+ // 9. Set request's client to settings.
172
+ initRequest.client = environmentSettingsObject.settingsObject
173
+
174
+ // 10. User agents may set (`Accept`, `text/event-stream`) in request's header list.
175
+ initRequest.headersList = [['accept', { name: 'accept', value: 'text/event-stream' }]]
176
+
177
+ // 11. Set request's cache mode to "no-store".
178
+ initRequest.cache = 'no-store'
179
+
180
+ // 12. Set request's initiator type to "other".
181
+ initRequest.initiator = 'other'
182
+
183
+ initRequest.urlList = [new URL(this.#url)]
184
+
185
+ // 13. Set ev's request to request.
186
+ this.#request = makeRequest(initRequest)
187
+
188
+ this.#connect()
189
+ }
190
+
191
+ /**
192
+ * Returns the state of this EventSource object's connection. It can have the
193
+ * values described below.
194
+ * @returns {0|1|2}
195
+ * @readonly
196
+ */
197
+ get readyState () {
198
+ return this.#readyState
199
+ }
200
+
201
+ /**
202
+ * Returns the URL providing the event stream.
203
+ * @readonly
204
+ * @returns {string}
205
+ */
206
+ get url () {
207
+ return this.#url
208
+ }
209
+
210
+ /**
211
+ * Returns a boolean indicating whether the EventSource object was
212
+ * instantiated with CORS credentials set (true), or not (false, the default).
213
+ */
214
+ get withCredentials () {
215
+ return this.#withCredentials
216
+ }
217
+
218
+ #connect () {
219
+ if (this.#readyState === CLOSED) return
220
+
221
+ this.#readyState = CONNECTING
222
+
223
+ const fetchParams = {
224
+ request: this.#request,
225
+ dispatcher: this.#dispatcher
226
+ }
227
+
228
+ // 14. Let processEventSourceEndOfBody given response res be the following step: if res is not a network error, then reestablish the connection.
229
+ const processEventSourceEndOfBody = (response) => {
230
+ if (isNetworkError(response)) {
231
+ this.dispatchEvent(new Event('error'))
232
+ this.close()
233
+ }
234
+
235
+ this.#reconnect()
236
+ }
237
+
238
+ // 15. Fetch request, with processResponseEndOfBody set to processEventSourceEndOfBody...
239
+ fetchParams.processResponseEndOfBody = processEventSourceEndOfBody
240
+
241
+ // and processResponse set to the following steps given response res:
242
+ fetchParams.processResponse = (response) => {
243
+ // 1. If res is an aborted network error, then fail the connection.
244
+
245
+ if (isNetworkError(response)) {
246
+ // 1. When a user agent is to fail the connection, the user agent
247
+ // must queue a task which, if the readyState attribute is set to a
248
+ // value other than CLOSED, sets the readyState attribute to CLOSED
249
+ // and fires an event named error at the EventSource object. Once the
250
+ // user agent has failed the connection, it does not attempt to
251
+ // reconnect.
252
+ if (response.aborted) {
253
+ this.close()
254
+ this.dispatchEvent(new Event('error'))
255
+ return
256
+ // 2. Otherwise, if res is a network error, then reestablish the
257
+ // connection, unless the user agent knows that to be futile, in
258
+ // which case the user agent may fail the connection.
259
+ } else {
260
+ this.#reconnect()
261
+ return
262
+ }
263
+ }
264
+
265
+ // 3. Otherwise, if res's status is not 200, or if res's `Content-Type`
266
+ // is not `text/event-stream`, then fail the connection.
267
+ const contentType = response.headersList.get('content-type', true)
268
+ const mimeType = contentType !== null ? parseMIMEType(contentType) : 'failure'
269
+ const contentTypeValid = mimeType !== 'failure' && mimeType.essence === 'text/event-stream'
270
+ if (
271
+ response.status !== 200 ||
272
+ contentTypeValid === false
273
+ ) {
274
+ this.close()
275
+ this.dispatchEvent(new Event('error'))
276
+ return
277
+ }
278
+
279
+ // 4. Otherwise, announce the connection and interpret res's body
280
+ // line by line.
281
+
282
+ // When a user agent is to announce the connection, the user agent
283
+ // must queue a task which, if the readyState attribute is set to a
284
+ // value other than CLOSED, sets the readyState attribute to OPEN
285
+ // and fires an event named open at the EventSource object.
286
+ // @see https://html.spec.whatwg.org/multipage/server-sent-events.html#sse-processing-model
287
+ this.#readyState = OPEN
288
+ this.dispatchEvent(new Event('open'))
289
+
290
+ // If redirected to a different origin, set the origin to the new origin.
291
+ this.#state.origin = response.urlList[response.urlList.length - 1].origin
292
+
293
+ const eventSourceStream = new EventSourceStream({
294
+ eventSourceSettings: this.#state,
295
+ push: (event) => {
296
+ this.dispatchEvent(createFastMessageEvent(
297
+ event.type,
298
+ event.options
299
+ ))
300
+ }
301
+ })
302
+
303
+ pipeline(response.body.stream,
304
+ eventSourceStream,
305
+ (error) => {
306
+ if (
307
+ error?.aborted === false
308
+ ) {
309
+ this.close()
310
+ this.dispatchEvent(new Event('error'))
311
+ }
312
+ })
313
+ }
314
+
315
+ this.#controller = fetching(fetchParams)
316
+ }
317
+
318
+ /**
319
+ * @see https://html.spec.whatwg.org/multipage/server-sent-events.html#sse-processing-model
320
+ * @returns {Promise<void>}
321
+ */
322
+ async #reconnect () {
323
+ // When a user agent is to reestablish the connection, the user agent must
324
+ // run the following steps. These steps are run in parallel, not as part of
325
+ // a task. (The tasks that it queues, of course, are run like normal tasks
326
+ // and not themselves in parallel.)
327
+
328
+ // 1. Queue a task to run the following steps:
329
+
330
+ // 1. If the readyState attribute is set to CLOSED, abort the task.
331
+ if (this.#readyState === CLOSED) return
332
+
333
+ // 2. Set the readyState attribute to CONNECTING.
334
+ this.#readyState = CONNECTING
335
+
336
+ // 3. Fire an event named error at the EventSource object.
337
+ this.dispatchEvent(new Event('error'))
338
+
339
+ // 2. Wait a delay equal to the reconnection time of the event source.
340
+ await delay(this.#state.reconnectionTime)
341
+
342
+ // 5. Queue a task to run the following steps:
343
+
344
+ // 1. If the EventSource object's readyState attribute is not set to
345
+ // CONNECTING, then return.
346
+ if (this.#readyState !== CONNECTING) return
347
+
348
+ // 2. Let request be the EventSource object's request.
349
+ // 3. If the EventSource object's last event ID string is not the empty
350
+ // string, then:
351
+ // 1. Let lastEventIDValue be the EventSource object's last event ID
352
+ // string, encoded as UTF-8.
353
+ // 2. Set (`Last-Event-ID`, lastEventIDValue) in request's header
354
+ // list.
355
+ if (this.#state.lastEventId.length) {
356
+ this.#request.headersList.set('last-event-id', this.#state.lastEventId, true)
357
+ }
358
+
359
+ // 4. Fetch request and process the response obtained in this fashion, if any, as described earlier in this section.
360
+ this.#connect()
361
+ }
362
+
363
+ /**
364
+ * Closes the connection, if any, and sets the readyState attribute to
365
+ * CLOSED.
366
+ */
367
+ close () {
368
+ webidl.brandCheck(this, EventSource)
369
+
370
+ if (this.#readyState === CLOSED) return
371
+ this.#readyState = CLOSED
372
+ this.#controller.abort()
373
+ this.#request = null
374
+ }
375
+
376
+ get onopen () {
377
+ return this.#events.open
378
+ }
379
+
380
+ set onopen (fn) {
381
+ if (this.#events.open) {
382
+ this.removeEventListener('open', this.#events.open)
383
+ }
384
+
385
+ if (typeof fn === 'function') {
386
+ this.#events.open = fn
387
+ this.addEventListener('open', fn)
388
+ } else {
389
+ this.#events.open = null
390
+ }
391
+ }
392
+
393
+ get onmessage () {
394
+ return this.#events.message
395
+ }
396
+
397
+ set onmessage (fn) {
398
+ if (this.#events.message) {
399
+ this.removeEventListener('message', this.#events.message)
400
+ }
401
+
402
+ if (typeof fn === 'function') {
403
+ this.#events.message = fn
404
+ this.addEventListener('message', fn)
405
+ } else {
406
+ this.#events.message = null
407
+ }
408
+ }
409
+
410
+ get onerror () {
411
+ return this.#events.error
412
+ }
413
+
414
+ set onerror (fn) {
415
+ if (this.#events.error) {
416
+ this.removeEventListener('error', this.#events.error)
417
+ }
418
+
419
+ if (typeof fn === 'function') {
420
+ this.#events.error = fn
421
+ this.addEventListener('error', fn)
422
+ } else {
423
+ this.#events.error = null
424
+ }
425
+ }
426
+ }
427
+
428
+ const constantsPropertyDescriptors = {
429
+ CONNECTING: {
430
+ __proto__: null,
431
+ configurable: false,
432
+ enumerable: true,
433
+ value: CONNECTING,
434
+ writable: false
435
+ },
436
+ OPEN: {
437
+ __proto__: null,
438
+ configurable: false,
439
+ enumerable: true,
440
+ value: OPEN,
441
+ writable: false
442
+ },
443
+ CLOSED: {
444
+ __proto__: null,
445
+ configurable: false,
446
+ enumerable: true,
447
+ value: CLOSED,
448
+ writable: false
449
+ }
450
+ }
451
+
452
+ Object.defineProperties(EventSource, constantsPropertyDescriptors)
453
+ Object.defineProperties(EventSource.prototype, constantsPropertyDescriptors)
454
+
455
+ Object.defineProperties(EventSource.prototype, {
456
+ close: kEnumerableProperty,
457
+ onerror: kEnumerableProperty,
458
+ onmessage: kEnumerableProperty,
459
+ onopen: kEnumerableProperty,
460
+ readyState: kEnumerableProperty,
461
+ url: kEnumerableProperty,
462
+ withCredentials: kEnumerableProperty
463
+ })
464
+
465
+ webidl.converters.EventSourceInitDict = webidl.dictionaryConverter([
466
+ {
467
+ key: 'withCredentials',
468
+ converter: webidl.converters.boolean,
469
+ defaultValue: () => false
470
+ },
471
+ {
472
+ key: 'dispatcher', // undici only
473
+ converter: webidl.converters.any
474
+ }
475
+ ])
476
+
477
+ module.exports = {
478
+ EventSource,
479
+ defaultReconnectionTime
480
+ }
@@ -0,0 +1,37 @@
1
+ 'use strict'
2
+
3
+ /**
4
+ * Checks if the given value is a valid LastEventId.
5
+ * @param {string} value
6
+ * @returns {boolean}
7
+ */
8
+ function isValidLastEventId (value) {
9
+ // LastEventId should not contain U+0000 NULL
10
+ return value.indexOf('\u0000') === -1
11
+ }
12
+
13
+ /**
14
+ * Checks if the given value is a base 10 digit.
15
+ * @param {string} value
16
+ * @returns {boolean}
17
+ */
18
+ function isASCIINumber (value) {
19
+ if (value.length === 0) return false
20
+ for (let i = 0; i < value.length; i++) {
21
+ if (value.charCodeAt(i) < 0x30 || value.charCodeAt(i) > 0x39) return false
22
+ }
23
+ return true
24
+ }
25
+
26
+ // https://github.com/nodejs/undici/issues/2664
27
+ function delay (ms) {
28
+ return new Promise((resolve) => {
29
+ setTimeout(resolve, ms).unref()
30
+ })
31
+ }
32
+
33
+ module.exports = {
34
+ isValidLastEventId,
35
+ isASCIINumber,
36
+ delay
37
+ }
@@ -1,6 +1,6 @@
1
1
  MIT License
2
2
 
3
- Copyright (c) 2024 npm
3
+ Copyright (c) 2020 Ethan Arrowood
4
4
 
5
5
  Permission is hereby granted, free of charge, to any person obtaining a copy
6
6
  of this software and associated documentation files (the "Software"), to deal