pnpm 11.0.6 → 11.0.8

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 (377) hide show
  1. package/dist/node_modules/node-gyp/.release-please-manifest.json +1 -1
  2. package/dist/node_modules/node-gyp/gyp/.release-please-manifest.json +1 -1
  3. package/dist/node_modules/node-gyp/gyp/pylib/gyp/MSVSVersion.py +11 -3
  4. package/dist/node_modules/node-gyp/gyp/pylib/gyp/__init__.py +2 -3
  5. package/dist/node_modules/node-gyp/gyp/pylib/gyp/generator/msvs.py +1 -1
  6. package/dist/node_modules/node-gyp/gyp/pylib/gyp/generator/ninja.py +2 -1
  7. package/dist/node_modules/node-gyp/gyp/pylib/gyp/generator/ninja_test.py +26 -16
  8. package/dist/node_modules/node-gyp/gyp/pylib/gyp/mac_tool.py +1 -1
  9. package/dist/node_modules/node-gyp/gyp/pylib/gyp/msvs_emulation.py +1 -1
  10. package/dist/node_modules/node-gyp/gyp/pylib/gyp/simple_copy.py +2 -2
  11. package/dist/node_modules/node-gyp/gyp/pylib/packaging/metadata.py +3 -20
  12. package/dist/node_modules/node-gyp/gyp/pylib/packaging/tags.py +2 -14
  13. package/dist/node_modules/node-gyp/gyp/pyproject.toml +5 -3
  14. package/dist/node_modules/node-gyp/lib/download.js +55 -8
  15. package/dist/node_modules/node-gyp/lib/find-visualstudio.js +1 -1
  16. package/dist/node_modules/node-gyp/lib/process-release.js +17 -19
  17. package/dist/node_modules/node-gyp/package.json +3 -3
  18. package/dist/node_modules/{safer-buffer → undici}/LICENSE +1 -1
  19. package/dist/node_modules/undici/index-fetch.js +35 -0
  20. package/dist/node_modules/undici/index.js +169 -0
  21. package/dist/node_modules/undici/lib/api/abort-signal.js +57 -0
  22. package/dist/node_modules/undici/lib/api/api-connect.js +108 -0
  23. package/dist/node_modules/undici/lib/api/api-pipeline.js +251 -0
  24. package/dist/node_modules/undici/lib/api/api-request.js +214 -0
  25. package/dist/node_modules/undici/lib/api/api-stream.js +220 -0
  26. package/dist/node_modules/undici/lib/api/api-upgrade.js +108 -0
  27. package/dist/node_modules/undici/lib/api/index.js +7 -0
  28. package/dist/node_modules/undici/lib/api/readable.js +385 -0
  29. package/dist/node_modules/undici/lib/api/util.js +93 -0
  30. package/dist/node_modules/undici/lib/core/connect.js +240 -0
  31. package/dist/node_modules/undici/lib/core/constants.js +118 -0
  32. package/dist/node_modules/undici/lib/core/diagnostics.js +202 -0
  33. package/dist/node_modules/undici/lib/core/errors.js +425 -0
  34. package/dist/node_modules/undici/lib/core/request.js +405 -0
  35. package/dist/node_modules/undici/lib/core/symbols.js +67 -0
  36. package/dist/node_modules/undici/lib/core/tree.js +152 -0
  37. package/dist/node_modules/undici/lib/core/util.js +719 -0
  38. package/dist/node_modules/undici/lib/dispatcher/agent.js +130 -0
  39. package/dist/node_modules/undici/lib/dispatcher/balanced-pool.js +209 -0
  40. package/dist/node_modules/undici/lib/dispatcher/client-h1.js +1370 -0
  41. package/dist/node_modules/undici/lib/dispatcher/client-h2.js +744 -0
  42. package/dist/node_modules/undici/lib/dispatcher/client.js +623 -0
  43. package/dist/node_modules/undici/lib/dispatcher/dispatcher-base.js +198 -0
  44. package/dist/node_modules/undici/lib/dispatcher/dispatcher.js +65 -0
  45. package/dist/node_modules/undici/lib/dispatcher/env-http-proxy-agent.js +160 -0
  46. package/dist/node_modules/undici/lib/dispatcher/fixed-queue.js +117 -0
  47. package/dist/node_modules/undici/lib/dispatcher/pool-base.js +194 -0
  48. package/dist/node_modules/undici/lib/dispatcher/pool-stats.js +34 -0
  49. package/dist/node_modules/undici/lib/dispatcher/pool.js +107 -0
  50. package/dist/node_modules/undici/lib/dispatcher/proxy-agent.js +274 -0
  51. package/dist/node_modules/undici/lib/dispatcher/retry-agent.js +35 -0
  52. package/dist/node_modules/undici/lib/global.js +32 -0
  53. package/dist/node_modules/undici/lib/handler/decorator-handler.js +44 -0
  54. package/dist/node_modules/undici/lib/handler/redirect-handler.js +232 -0
  55. package/dist/node_modules/undici/lib/handler/retry-handler.js +374 -0
  56. package/dist/node_modules/undici/lib/interceptor/dns.js +375 -0
  57. package/dist/node_modules/undici/lib/interceptor/dump.js +123 -0
  58. package/dist/node_modules/undici/lib/interceptor/redirect-interceptor.js +21 -0
  59. package/dist/node_modules/undici/lib/interceptor/redirect.js +24 -0
  60. package/dist/node_modules/undici/lib/interceptor/response-error.js +86 -0
  61. package/dist/node_modules/undici/lib/interceptor/retry.js +19 -0
  62. package/dist/node_modules/undici/lib/llhttp/.gitkeep +0 -0
  63. package/dist/node_modules/undici/lib/llhttp/constants.js +278 -0
  64. package/dist/node_modules/undici/lib/llhttp/llhttp-wasm.js +5 -0
  65. package/dist/node_modules/undici/lib/llhttp/llhttp_simd-wasm.js +5 -0
  66. package/dist/node_modules/undici/lib/llhttp/utils.js +15 -0
  67. package/dist/node_modules/undici/lib/mock/mock-agent.js +160 -0
  68. package/dist/node_modules/undici/lib/mock/mock-client.js +59 -0
  69. package/dist/node_modules/undici/lib/mock/mock-errors.js +28 -0
  70. package/dist/node_modules/undici/lib/mock/mock-interceptor.js +207 -0
  71. package/dist/node_modules/undici/lib/mock/mock-pool.js +59 -0
  72. package/dist/node_modules/undici/lib/mock/mock-symbols.js +23 -0
  73. package/dist/node_modules/undici/lib/mock/mock-utils.js +367 -0
  74. package/dist/node_modules/undici/lib/mock/pending-interceptors-formatter.js +43 -0
  75. package/dist/node_modules/undici/lib/mock/pluralizer.js +29 -0
  76. package/dist/node_modules/undici/lib/util/timers.js +423 -0
  77. package/dist/node_modules/undici/lib/web/cache/cache.js +859 -0
  78. package/dist/node_modules/undici/lib/web/cache/cachestorage.js +152 -0
  79. package/dist/node_modules/undici/lib/web/cache/symbols.js +5 -0
  80. package/dist/node_modules/undici/lib/web/cache/util.js +45 -0
  81. package/dist/node_modules/undici/lib/web/cookies/constants.js +12 -0
  82. package/dist/node_modules/undici/lib/web/cookies/index.js +184 -0
  83. package/dist/node_modules/undici/lib/web/cookies/parse.js +317 -0
  84. package/dist/node_modules/undici/lib/web/cookies/util.js +282 -0
  85. package/dist/node_modules/undici/lib/web/eventsource/eventsource-stream.js +398 -0
  86. package/dist/node_modules/undici/lib/web/eventsource/eventsource.js +480 -0
  87. package/dist/node_modules/undici/lib/web/eventsource/util.js +37 -0
  88. package/dist/node_modules/{@npmcli/redact → undici/lib/web/fetch}/LICENSE +1 -1
  89. package/dist/node_modules/undici/lib/web/fetch/body.js +529 -0
  90. package/dist/node_modules/undici/lib/web/fetch/constants.js +124 -0
  91. package/dist/node_modules/undici/lib/web/fetch/data-url.js +744 -0
  92. package/dist/node_modules/undici/lib/web/fetch/dispatcher-weakref.js +46 -0
  93. package/dist/node_modules/undici/lib/web/fetch/file.js +126 -0
  94. package/dist/node_modules/undici/lib/web/fetch/formdata-parser.js +474 -0
  95. package/dist/node_modules/undici/lib/web/fetch/formdata.js +252 -0
  96. package/dist/node_modules/undici/lib/web/fetch/global.js +40 -0
  97. package/dist/node_modules/undici/lib/web/fetch/headers.js +687 -0
  98. package/dist/node_modules/undici/lib/web/fetch/index.js +2272 -0
  99. package/dist/node_modules/undici/lib/web/fetch/request.js +1037 -0
  100. package/dist/node_modules/undici/lib/web/fetch/response.js +610 -0
  101. package/dist/node_modules/undici/lib/web/fetch/symbols.js +9 -0
  102. package/dist/node_modules/undici/lib/web/fetch/util.js +1632 -0
  103. package/dist/node_modules/undici/lib/web/fetch/webidl.js +695 -0
  104. package/dist/node_modules/undici/lib/web/fileapi/encoding.js +290 -0
  105. package/dist/node_modules/undici/lib/web/fileapi/filereader.js +344 -0
  106. package/dist/node_modules/undici/lib/web/fileapi/progressevent.js +78 -0
  107. package/dist/node_modules/undici/lib/web/fileapi/symbols.js +10 -0
  108. package/dist/node_modules/undici/lib/web/fileapi/util.js +391 -0
  109. package/dist/node_modules/undici/lib/web/websocket/connection.js +371 -0
  110. package/dist/node_modules/undici/lib/web/websocket/constants.js +66 -0
  111. package/dist/node_modules/undici/lib/web/websocket/events.js +329 -0
  112. package/dist/node_modules/undici/lib/web/websocket/frame.js +96 -0
  113. package/dist/node_modules/undici/lib/web/websocket/permessage-deflate.js +100 -0
  114. package/dist/node_modules/undici/lib/web/websocket/receiver.js +490 -0
  115. package/dist/node_modules/undici/lib/web/websocket/sender.js +104 -0
  116. package/dist/node_modules/undici/lib/web/websocket/symbols.js +12 -0
  117. package/dist/node_modules/undici/lib/web/websocket/util.js +322 -0
  118. package/dist/node_modules/undici/lib/web/websocket/websocket.js +592 -0
  119. package/dist/node_modules/undici/package.json +160 -0
  120. package/dist/node_modules/undici/scripts/strip-comments.js +8 -0
  121. package/dist/node_modules/yallist/package.json +51 -12
  122. package/dist/pnpm.mjs +4529 -3898
  123. package/dist/worker.js +76 -73
  124. package/package.json +1 -1
  125. package/dist/node_modules/@gar/promise-retry/LICENSE +0 -20
  126. package/dist/node_modules/@gar/promise-retry/lib/index.js +0 -62
  127. package/dist/node_modules/@gar/promise-retry/lib/retry.js +0 -109
  128. package/dist/node_modules/@gar/promise-retry/package.json +0 -45
  129. package/dist/node_modules/@npmcli/agent/lib/agents.js +0 -206
  130. package/dist/node_modules/@npmcli/agent/lib/dns.js +0 -53
  131. package/dist/node_modules/@npmcli/agent/lib/errors.js +0 -61
  132. package/dist/node_modules/@npmcli/agent/lib/index.js +0 -56
  133. package/dist/node_modules/@npmcli/agent/lib/options.js +0 -86
  134. package/dist/node_modules/@npmcli/agent/lib/proxy.js +0 -88
  135. package/dist/node_modules/@npmcli/agent/package.json +0 -60
  136. package/dist/node_modules/@npmcli/fs/lib/common/get-options.js +0 -20
  137. package/dist/node_modules/@npmcli/fs/lib/common/node.js +0 -9
  138. package/dist/node_modules/@npmcli/fs/lib/cp/LICENSE +0 -15
  139. package/dist/node_modules/@npmcli/fs/lib/cp/errors.js +0 -129
  140. package/dist/node_modules/@npmcli/fs/lib/cp/index.js +0 -22
  141. package/dist/node_modules/@npmcli/fs/lib/cp/polyfill.js +0 -428
  142. package/dist/node_modules/@npmcli/fs/lib/index.js +0 -13
  143. package/dist/node_modules/@npmcli/fs/lib/move-file.js +0 -78
  144. package/dist/node_modules/@npmcli/fs/lib/readdir-scoped.js +0 -20
  145. package/dist/node_modules/@npmcli/fs/lib/with-temp-dir.js +0 -39
  146. package/dist/node_modules/@npmcli/fs/package.json +0 -54
  147. package/dist/node_modules/@npmcli/redact/lib/deep-map.js +0 -71
  148. package/dist/node_modules/@npmcli/redact/lib/error.js +0 -28
  149. package/dist/node_modules/@npmcli/redact/lib/index.js +0 -44
  150. package/dist/node_modules/@npmcli/redact/lib/matchers.js +0 -88
  151. package/dist/node_modules/@npmcli/redact/lib/server.js +0 -59
  152. package/dist/node_modules/@npmcli/redact/lib/utils.js +0 -202
  153. package/dist/node_modules/@npmcli/redact/package.json +0 -52
  154. package/dist/node_modules/agent-base/LICENSE +0 -22
  155. package/dist/node_modules/agent-base/dist/helpers.js +0 -66
  156. package/dist/node_modules/agent-base/dist/index.js +0 -178
  157. package/dist/node_modules/agent-base/package.json +0 -46
  158. package/dist/node_modules/balanced-match/dist/commonjs/index.js +0 -59
  159. package/dist/node_modules/balanced-match/dist/esm/index.js +0 -54
  160. package/dist/node_modules/balanced-match/package.json +0 -68
  161. package/dist/node_modules/brace-expansion/LICENSE +0 -23
  162. package/dist/node_modules/brace-expansion/dist/commonjs/index.js +0 -201
  163. package/dist/node_modules/brace-expansion/dist/commonjs/package.json +0 -3
  164. package/dist/node_modules/brace-expansion/dist/esm/index.js +0 -197
  165. package/dist/node_modules/brace-expansion/dist/esm/package.json +0 -3
  166. package/dist/node_modules/brace-expansion/package.json +0 -64
  167. package/dist/node_modules/cacache/lib/content/path.js +0 -29
  168. package/dist/node_modules/cacache/lib/content/read.js +0 -165
  169. package/dist/node_modules/cacache/lib/content/rm.js +0 -18
  170. package/dist/node_modules/cacache/lib/content/write.js +0 -206
  171. package/dist/node_modules/cacache/lib/entry-index.js +0 -336
  172. package/dist/node_modules/cacache/lib/get.js +0 -170
  173. package/dist/node_modules/cacache/lib/index.js +0 -42
  174. package/dist/node_modules/cacache/lib/memoization.js +0 -72
  175. package/dist/node_modules/cacache/lib/put.js +0 -80
  176. package/dist/node_modules/cacache/lib/rm.js +0 -31
  177. package/dist/node_modules/cacache/lib/util/glob.js +0 -7
  178. package/dist/node_modules/cacache/lib/util/hash-to-segments.js +0 -7
  179. package/dist/node_modules/cacache/lib/util/tmp.js +0 -32
  180. package/dist/node_modules/cacache/lib/verify.js +0 -258
  181. package/dist/node_modules/cacache/package.json +0 -81
  182. package/dist/node_modules/debug/LICENSE +0 -20
  183. package/dist/node_modules/debug/package.json +0 -64
  184. package/dist/node_modules/debug/src/browser.js +0 -272
  185. package/dist/node_modules/debug/src/common.js +0 -292
  186. package/dist/node_modules/debug/src/index.js +0 -10
  187. package/dist/node_modules/debug/src/node.js +0 -263
  188. package/dist/node_modules/fs-minipass/LICENSE +0 -15
  189. package/dist/node_modules/fs-minipass/lib/index.js +0 -443
  190. package/dist/node_modules/fs-minipass/package.json +0 -54
  191. package/dist/node_modules/glob/dist/commonjs/glob.js +0 -248
  192. package/dist/node_modules/glob/dist/commonjs/has-magic.js +0 -27
  193. package/dist/node_modules/glob/dist/commonjs/ignore.js +0 -119
  194. package/dist/node_modules/glob/dist/commonjs/index.js +0 -68
  195. package/dist/node_modules/glob/dist/commonjs/index.min.js +0 -4
  196. package/dist/node_modules/glob/dist/commonjs/package.json +0 -3
  197. package/dist/node_modules/glob/dist/commonjs/pattern.js +0 -223
  198. package/dist/node_modules/glob/dist/commonjs/processor.js +0 -301
  199. package/dist/node_modules/glob/dist/commonjs/walker.js +0 -387
  200. package/dist/node_modules/glob/dist/esm/glob.js +0 -244
  201. package/dist/node_modules/glob/dist/esm/has-magic.js +0 -23
  202. package/dist/node_modules/glob/dist/esm/ignore.js +0 -115
  203. package/dist/node_modules/glob/dist/esm/index.js +0 -55
  204. package/dist/node_modules/glob/dist/esm/index.min.js +0 -4
  205. package/dist/node_modules/glob/dist/esm/package.json +0 -3
  206. package/dist/node_modules/glob/dist/esm/pattern.js +0 -219
  207. package/dist/node_modules/glob/dist/esm/processor.js +0 -294
  208. package/dist/node_modules/glob/dist/esm/walker.js +0 -381
  209. package/dist/node_modules/glob/package.json +0 -98
  210. package/dist/node_modules/http-cache-semantics/LICENSE +0 -9
  211. package/dist/node_modules/http-cache-semantics/index.js +0 -928
  212. package/dist/node_modules/http-cache-semantics/package.json +0 -22
  213. package/dist/node_modules/http-proxy-agent/LICENSE +0 -22
  214. package/dist/node_modules/http-proxy-agent/dist/index.js +0 -148
  215. package/dist/node_modules/http-proxy-agent/package.json +0 -47
  216. package/dist/node_modules/https-proxy-agent/LICENSE +0 -22
  217. package/dist/node_modules/https-proxy-agent/dist/index.js +0 -180
  218. package/dist/node_modules/https-proxy-agent/dist/parse-proxy-response.js +0 -101
  219. package/dist/node_modules/https-proxy-agent/package.json +0 -50
  220. package/dist/node_modules/iconv-lite/LICENSE +0 -21
  221. package/dist/node_modules/iconv-lite/encodings/dbcs-codec.js +0 -532
  222. package/dist/node_modules/iconv-lite/encodings/dbcs-data.js +0 -185
  223. package/dist/node_modules/iconv-lite/encodings/index.js +0 -23
  224. package/dist/node_modules/iconv-lite/encodings/internal.js +0 -218
  225. package/dist/node_modules/iconv-lite/encodings/sbcs-codec.js +0 -75
  226. package/dist/node_modules/iconv-lite/encodings/sbcs-data-generated.js +0 -451
  227. package/dist/node_modules/iconv-lite/encodings/sbcs-data.js +0 -178
  228. package/dist/node_modules/iconv-lite/encodings/tables/big5-added.json +0 -122
  229. package/dist/node_modules/iconv-lite/encodings/tables/cp936.json +0 -264
  230. package/dist/node_modules/iconv-lite/encodings/tables/cp949.json +0 -273
  231. package/dist/node_modules/iconv-lite/encodings/tables/cp950.json +0 -177
  232. package/dist/node_modules/iconv-lite/encodings/tables/eucjp.json +0 -182
  233. package/dist/node_modules/iconv-lite/encodings/tables/gb18030-ranges.json +0 -1
  234. package/dist/node_modules/iconv-lite/encodings/tables/gbk-added.json +0 -56
  235. package/dist/node_modules/iconv-lite/encodings/tables/shiftjis.json +0 -125
  236. package/dist/node_modules/iconv-lite/encodings/utf16.js +0 -187
  237. package/dist/node_modules/iconv-lite/encodings/utf32.js +0 -307
  238. package/dist/node_modules/iconv-lite/encodings/utf7.js +0 -283
  239. package/dist/node_modules/iconv-lite/lib/bom-handling.js +0 -48
  240. package/dist/node_modules/iconv-lite/lib/helpers/merge-exports.js +0 -13
  241. package/dist/node_modules/iconv-lite/lib/index.js +0 -182
  242. package/dist/node_modules/iconv-lite/lib/streams.js +0 -105
  243. package/dist/node_modules/iconv-lite/package.json +0 -70
  244. package/dist/node_modules/ip-address/LICENSE +0 -19
  245. package/dist/node_modules/ip-address/dist/address-error.js +0 -12
  246. package/dist/node_modules/ip-address/dist/common.js +0 -46
  247. package/dist/node_modules/ip-address/dist/ip-address.js +0 -35
  248. package/dist/node_modules/ip-address/dist/ipv4.js +0 -360
  249. package/dist/node_modules/ip-address/dist/ipv6.js +0 -1003
  250. package/dist/node_modules/ip-address/dist/v4/constants.js +0 -8
  251. package/dist/node_modules/ip-address/dist/v6/constants.js +0 -76
  252. package/dist/node_modules/ip-address/dist/v6/helpers.js +0 -45
  253. package/dist/node_modules/ip-address/dist/v6/regular-expressions.js +0 -95
  254. package/dist/node_modules/ip-address/package.json +0 -78
  255. package/dist/node_modules/lru-cache/dist/commonjs/diagnostics-channel.js +0 -10
  256. package/dist/node_modules/lru-cache/dist/commonjs/index.js +0 -1692
  257. package/dist/node_modules/lru-cache/dist/commonjs/index.min.js +0 -2
  258. package/dist/node_modules/lru-cache/dist/commonjs/package.json +0 -3
  259. package/dist/node_modules/lru-cache/dist/esm/browser/diagnostics-channel.js +0 -4
  260. package/dist/node_modules/lru-cache/dist/esm/browser/index.js +0 -1688
  261. package/dist/node_modules/lru-cache/dist/esm/browser/index.min.js +0 -2
  262. package/dist/node_modules/lru-cache/dist/esm/diagnostics-channel.js +0 -19
  263. package/dist/node_modules/lru-cache/dist/esm/index.js +0 -1688
  264. package/dist/node_modules/lru-cache/dist/esm/index.min.js +0 -2
  265. package/dist/node_modules/lru-cache/dist/esm/node/diagnostics-channel.js +0 -7
  266. package/dist/node_modules/lru-cache/dist/esm/node/index.js +0 -1688
  267. package/dist/node_modules/lru-cache/dist/esm/node/index.min.js +0 -2
  268. package/dist/node_modules/lru-cache/dist/esm/package.json +0 -3
  269. package/dist/node_modules/lru-cache/package.json +0 -126
  270. package/dist/node_modules/make-fetch-happen/LICENSE +0 -16
  271. package/dist/node_modules/make-fetch-happen/lib/cache/entry.js +0 -471
  272. package/dist/node_modules/make-fetch-happen/lib/cache/errors.js +0 -11
  273. package/dist/node_modules/make-fetch-happen/lib/cache/index.js +0 -49
  274. package/dist/node_modules/make-fetch-happen/lib/cache/key.js +0 -17
  275. package/dist/node_modules/make-fetch-happen/lib/cache/policy.js +0 -161
  276. package/dist/node_modules/make-fetch-happen/lib/fetch.js +0 -118
  277. package/dist/node_modules/make-fetch-happen/lib/index.js +0 -41
  278. package/dist/node_modules/make-fetch-happen/lib/options.js +0 -59
  279. package/dist/node_modules/make-fetch-happen/lib/pipeline.js +0 -41
  280. package/dist/node_modules/make-fetch-happen/lib/remote.js +0 -134
  281. package/dist/node_modules/make-fetch-happen/package.json +0 -75
  282. package/dist/node_modules/minimatch/dist/commonjs/assert-valid-pattern.js +0 -14
  283. package/dist/node_modules/minimatch/dist/commonjs/ast.js +0 -845
  284. package/dist/node_modules/minimatch/dist/commonjs/brace-expressions.js +0 -150
  285. package/dist/node_modules/minimatch/dist/commonjs/escape.js +0 -30
  286. package/dist/node_modules/minimatch/dist/commonjs/index.js +0 -1127
  287. package/dist/node_modules/minimatch/dist/commonjs/package.json +0 -3
  288. package/dist/node_modules/minimatch/dist/commonjs/unescape.js +0 -38
  289. package/dist/node_modules/minimatch/dist/esm/assert-valid-pattern.js +0 -10
  290. package/dist/node_modules/minimatch/dist/esm/ast.js +0 -841
  291. package/dist/node_modules/minimatch/dist/esm/brace-expressions.js +0 -146
  292. package/dist/node_modules/minimatch/dist/esm/escape.js +0 -26
  293. package/dist/node_modules/minimatch/dist/esm/index.js +0 -1114
  294. package/dist/node_modules/minimatch/dist/esm/package.json +0 -3
  295. package/dist/node_modules/minimatch/dist/esm/unescape.js +0 -34
  296. package/dist/node_modules/minimatch/package.json +0 -73
  297. package/dist/node_modules/minipass-collect/LICENSE +0 -15
  298. package/dist/node_modules/minipass-collect/index.js +0 -71
  299. package/dist/node_modules/minipass-collect/package.json +0 -30
  300. package/dist/node_modules/minipass-fetch/LICENSE +0 -28
  301. package/dist/node_modules/minipass-fetch/lib/abort-error.js +0 -17
  302. package/dist/node_modules/minipass-fetch/lib/blob.js +0 -97
  303. package/dist/node_modules/minipass-fetch/lib/body.js +0 -360
  304. package/dist/node_modules/minipass-fetch/lib/fetch-error.js +0 -32
  305. package/dist/node_modules/minipass-fetch/lib/headers.js +0 -267
  306. package/dist/node_modules/minipass-fetch/lib/index.js +0 -376
  307. package/dist/node_modules/minipass-fetch/lib/request.js +0 -282
  308. package/dist/node_modules/minipass-fetch/lib/response.js +0 -90
  309. package/dist/node_modules/minipass-fetch/package.json +0 -70
  310. package/dist/node_modules/minipass-flush/index.js +0 -39
  311. package/dist/node_modules/minipass-flush/node_modules/minipass/LICENSE +0 -15
  312. package/dist/node_modules/minipass-flush/node_modules/minipass/index.js +0 -649
  313. package/dist/node_modules/minipass-flush/node_modules/minipass/package.json +0 -56
  314. package/dist/node_modules/minipass-flush/package.json +0 -42
  315. package/dist/node_modules/minipass-pipeline/LICENSE +0 -15
  316. package/dist/node_modules/minipass-pipeline/index.js +0 -128
  317. package/dist/node_modules/minipass-pipeline/node_modules/minipass/LICENSE +0 -15
  318. package/dist/node_modules/minipass-pipeline/node_modules/minipass/index.js +0 -649
  319. package/dist/node_modules/minipass-pipeline/node_modules/minipass/package.json +0 -56
  320. package/dist/node_modules/minipass-pipeline/package.json +0 -29
  321. package/dist/node_modules/minipass-sized/LICENSE +0 -15
  322. package/dist/node_modules/minipass-sized/dist/commonjs/index.js +0 -69
  323. package/dist/node_modules/minipass-sized/dist/commonjs/package.json +0 -3
  324. package/dist/node_modules/minipass-sized/dist/esm/index.js +0 -64
  325. package/dist/node_modules/minipass-sized/dist/esm/package.json +0 -3
  326. package/dist/node_modules/minipass-sized/package.json +0 -69
  327. package/dist/node_modules/ms/index.js +0 -162
  328. package/dist/node_modules/ms/package.json +0 -38
  329. package/dist/node_modules/negotiator/LICENSE +0 -24
  330. package/dist/node_modules/negotiator/index.js +0 -83
  331. package/dist/node_modules/negotiator/lib/charset.js +0 -169
  332. package/dist/node_modules/negotiator/lib/encoding.js +0 -205
  333. package/dist/node_modules/negotiator/lib/language.js +0 -179
  334. package/dist/node_modules/negotiator/lib/mediaType.js +0 -294
  335. package/dist/node_modules/negotiator/package.json +0 -43
  336. package/dist/node_modules/p-map/index.js +0 -283
  337. package/dist/node_modules/p-map/license +0 -9
  338. package/dist/node_modules/p-map/package.json +0 -57
  339. package/dist/node_modules/path-scurry/dist/commonjs/index.js +0 -2018
  340. package/dist/node_modules/path-scurry/dist/commonjs/package.json +0 -3
  341. package/dist/node_modules/path-scurry/dist/esm/index.js +0 -1983
  342. package/dist/node_modules/path-scurry/dist/esm/package.json +0 -3
  343. package/dist/node_modules/path-scurry/package.json +0 -72
  344. package/dist/node_modules/safer-buffer/dangerous.js +0 -58
  345. package/dist/node_modules/safer-buffer/package.json +0 -34
  346. package/dist/node_modules/safer-buffer/safer.js +0 -77
  347. package/dist/node_modules/safer-buffer/tests.js +0 -406
  348. package/dist/node_modules/smart-buffer/.prettierrc.yaml +0 -5
  349. package/dist/node_modules/smart-buffer/LICENSE +0 -20
  350. package/dist/node_modules/smart-buffer/build/smartbuffer.js +0 -1233
  351. package/dist/node_modules/smart-buffer/build/utils.js +0 -108
  352. package/dist/node_modules/smart-buffer/package.json +0 -79
  353. package/dist/node_modules/socks/.eslintrc.cjs +0 -11
  354. package/dist/node_modules/socks/.prettierrc.yaml +0 -7
  355. package/dist/node_modules/socks/LICENSE +0 -20
  356. package/dist/node_modules/socks/build/client/socksclient.js +0 -793
  357. package/dist/node_modules/socks/build/common/constants.js +0 -108
  358. package/dist/node_modules/socks/build/common/helpers.js +0 -167
  359. package/dist/node_modules/socks/build/common/receivebuffer.js +0 -43
  360. package/dist/node_modules/socks/build/common/util.js +0 -25
  361. package/dist/node_modules/socks/build/index.js +0 -18
  362. package/dist/node_modules/socks/package.json +0 -58
  363. package/dist/node_modules/socks-proxy-agent/LICENSE +0 -22
  364. package/dist/node_modules/socks-proxy-agent/dist/index.js +0 -195
  365. package/dist/node_modules/socks-proxy-agent/package.json +0 -142
  366. package/dist/node_modules/ssri/lib/index.js +0 -550
  367. package/dist/node_modules/ssri/package.json +0 -66
  368. package/dist/node_modules/tar/node_modules/yallist/dist/commonjs/package.json +0 -3
  369. package/dist/node_modules/tar/node_modules/yallist/dist/esm/package.json +0 -3
  370. package/dist/node_modules/tar/node_modules/yallist/package.json +0 -68
  371. package/dist/node_modules/yallist/LICENSE +0 -15
  372. package/dist/node_modules/yallist/iterator.js +0 -8
  373. package/dist/node_modules/yallist/yallist.js +0 -426
  374. /package/dist/node_modules/{tar/node_modules/yallist → yallist}/dist/commonjs/index.js +0 -0
  375. /package/dist/node_modules/{balanced-match → yallist}/dist/commonjs/package.json +0 -0
  376. /package/dist/node_modules/{tar/node_modules/yallist → yallist}/dist/esm/index.js +0 -0
  377. /package/dist/node_modules/{balanced-match → yallist}/dist/esm/package.json +0 -0
@@ -1,3 +1,3 @@
1
1
  {
2
- ".": "12.2.0"
2
+ ".": "12.3.0"
3
3
  }
@@ -1,3 +1,3 @@
1
1
  {
2
- ".": "0.21.1"
2
+ ".": "0.22.1"
3
3
  }
@@ -87,7 +87,7 @@ class VisualStudioVersion:
87
87
  def _SetupScriptInternal(self, target_arch):
88
88
  """Returns a command (with arguments) to be used to set up the
89
89
  environment."""
90
- assert target_arch in ("x86", "x64"), "target_arch not supported"
90
+ assert target_arch in ("x86", "x64", "arm64"), "target_arch not supported"
91
91
  # If WindowsSDKDir is set and SetEnv.Cmd exists then we are using the
92
92
  # depot_tools build tools and should run SetEnv.Cmd to set up the
93
93
  # environment. The check for WindowsSDKDir alone is not sufficient because
@@ -109,8 +109,16 @@ class VisualStudioVersion:
109
109
  )
110
110
 
111
111
  # Always use a native executable, cross-compiling if necessary.
112
- host_arch = "amd64" if is_host_arch_x64 else "x86"
113
- msvc_target_arch = "amd64" if target_arch == "x64" else "x86"
112
+ host_arch = (
113
+ "amd64"
114
+ if is_host_arch_x64
115
+ else (
116
+ "arm64"
117
+ if os.environ.get("PROCESSOR_ARCHITECTURE") == "ARM64"
118
+ else "x86"
119
+ )
120
+ )
121
+ msvc_target_arch = {"x64": "amd64"}.get(target_arch, target_arch)
114
122
  arg = host_arch
115
123
  if host_arch != msvc_target_arch:
116
124
  arg += "_" + msvc_target_arch
@@ -13,6 +13,7 @@ import re
13
13
  import shlex
14
14
  import sys
15
15
  import traceback
16
+ from importlib.metadata import version
16
17
 
17
18
  import gyp.input
18
19
  from gyp.common import GypError
@@ -491,9 +492,7 @@ def gyp_main(args):
491
492
 
492
493
  options, build_files_arg = parser.parse_args(args)
493
494
  if options.version:
494
- import pkg_resources # noqa: PLC0415
495
-
496
- print(f"v{pkg_resources.get_distribution('gyp-next').version}")
495
+ print(f"v{version('gyp-next')}")
497
496
  return 0
498
497
  build_files = build_files_arg
499
498
 
@@ -857,7 +857,7 @@ def _EscapeCommandLineArgumentForMSBuild(s):
857
857
  """Escapes a Windows command-line argument for use by MSBuild."""
858
858
 
859
859
  def _Replace(match):
860
- return (len(match.group(1)) / 2 * 4) * "\\" + '\\"'
860
+ return (len(match.group(1)) // 2 * 4) * "\\" + '\\"'
861
861
 
862
862
  # Escape all quotes so that they are interpreted literally.
863
863
  s = quote_replacer_regex2.sub(_Replace, s)
@@ -246,7 +246,7 @@ class NinjaWriter:
246
246
  if flavor == "win":
247
247
  # See docstring of msvs_emulation.GenerateEnvironmentFiles().
248
248
  self.win_env = {}
249
- for arch in ("x86", "x64"):
249
+ for arch in ("x86", "x64", "arm64"):
250
250
  self.win_env[arch] = "environment." + arch
251
251
 
252
252
  # Relative path from build output dir to base dir.
@@ -2339,6 +2339,7 @@ def GenerateOutputForConfig(target_list, target_dicts, data, params, config_name
2339
2339
  master_ninja.variable("rc", "rc.exe")
2340
2340
  master_ninja.variable("ml_x86", "ml.exe")
2341
2341
  master_ninja.variable("ml_x64", "ml64.exe")
2342
+ master_ninja.variable("ml_arm64", "armasm64.exe")
2342
2343
  master_ninja.variable("mt", "mt.exe")
2343
2344
  else:
2344
2345
  master_ninja.variable("ld", CommandWithWrapper("LINK", wrappers, ld))
@@ -11,26 +11,36 @@ import unittest
11
11
  from pathlib import Path
12
12
 
13
13
  from gyp.generator import ninja
14
+ from gyp.MSVSVersion import SelectVisualStudioVersion
15
+
16
+
17
+ def _has_visual_studio():
18
+ """Check if Visual Studio can be detected by gyp's registry-based detection."""
19
+ if not sys.platform.startswith("win"):
20
+ return False
21
+ try:
22
+ SelectVisualStudioVersion("auto", allow_fallback=False)
23
+ return True
24
+ except ValueError:
25
+ return False
14
26
 
15
27
 
16
28
  class TestPrefixesAndSuffixes(unittest.TestCase):
29
+ @unittest.skipUnless(
30
+ _has_visual_studio(),
31
+ "requires Windows with a Visual Studio installation detected via the registry",
32
+ )
17
33
  def test_BinaryNamesWindows(self):
18
- # These cannot run on non-Windows as they require a VS installation to
19
- # correctly handle variable expansion.
20
- if sys.platform.startswith("win"):
21
- writer = ninja.NinjaWriter(
22
- "foo", "wee", ".", ".", "build.ninja", ".", "build.ninja", "win"
23
- )
24
- spec = {"target_name": "wee"}
25
- self.assertTrue(
26
- writer.ComputeOutputFileName(spec, "executable").endswith(".exe")
27
- )
28
- self.assertTrue(
29
- writer.ComputeOutputFileName(spec, "shared_library").endswith(".dll")
30
- )
31
- self.assertTrue(
32
- writer.ComputeOutputFileName(spec, "static_library").endswith(".lib")
33
- )
34
+ writer = ninja.NinjaWriter(
35
+ "foo", "wee", ".", ".", "build.ninja", ".", "build.ninja", "win"
36
+ )
37
+ spec = {"target_name": "wee"}
38
+ for key, ext in {
39
+ "executable": ".exe",
40
+ "shared_library": ".dll",
41
+ "static_library": ".lib",
42
+ }.items():
43
+ self.assertTrue(writer.ComputeOutputFileName(spec, key).endswith(ext))
34
44
 
35
45
  def test_BinaryNamesLinux(self):
36
46
  writer = ninja.NinjaWriter(
@@ -545,7 +545,7 @@ class MacTool:
545
545
  # If the user has multiple provisioning profiles installed that can be
546
546
  # used for ${bundle_identifier}, pick the most specific one (ie. the
547
547
  # provisioning profile whose pattern is the longest).
548
- selected_key = max(valid_provisioning_profiles, key=lambda v: len(v))
548
+ selected_key = max(valid_provisioning_profiles, key=len)
549
549
  return valid_provisioning_profiles[selected_key]
550
550
 
551
551
  def _LoadProvisioningProfile(self, profile_path):
@@ -1174,7 +1174,7 @@ def GenerateEnvironmentFiles(
1174
1174
  meet your requirement (e.g. for custom toolchains), you can pass
1175
1175
  "-G ninja_use_custom_environment_files" to the gyp to suppress file
1176
1176
  generation and use custom environment files prepared by yourself."""
1177
- archs = ("x86", "x64")
1177
+ archs = ("x86", "x64", "arm64")
1178
1178
  if generator_flags.get("ninja_use_custom_environment_files", 0):
1179
1179
  cl_paths = {}
1180
1180
  for arch in archs:
@@ -24,8 +24,8 @@ def deepcopy(x):
24
24
  return _deepcopy_dispatch[type(x)](x)
25
25
  except KeyError:
26
26
  raise Error(
27
- "Unsupported type %s for deepcopy. Use copy.deepcopy "
28
- + "or expand simple_copy support." % type(x)
27
+ f"Unsupported type {type(x)} for deepcopy. Use copy.deepcopy "
28
+ + "or expand simple_copy support."
29
29
  )
30
30
 
31
31
 
@@ -21,27 +21,10 @@ from typing import (
21
21
  from . import requirements, specifiers, utils, version as version_module
22
22
 
23
23
  T = typing.TypeVar("T")
24
- if sys.version_info[:2] >= (3, 8): # pragma: no cover
25
- from typing import Literal, TypedDict
26
- else: # pragma: no cover
27
- if typing.TYPE_CHECKING:
28
- from typing_extensions import Literal, TypedDict
29
- else:
30
- try:
31
- from typing_extensions import Literal, TypedDict
32
- except ImportError:
33
-
34
- class Literal:
35
- def __init_subclass__(*_args, **_kwargs):
36
- pass
37
-
38
- class TypedDict:
39
- def __init_subclass__(*_args, **_kwargs):
40
- pass
41
-
24
+ from typing import Literal, TypedDict
42
25
 
43
26
  try:
44
- ExceptionGroup
27
+ ExceptionGroup # Added in Python 3.11+
45
28
  except NameError: # pragma: no cover
46
29
 
47
30
  class ExceptionGroup(Exception): # noqa: N818
@@ -504,7 +487,7 @@ class _Validator(Generic[T]):
504
487
  self.raw_name = _RAW_TO_EMAIL_MAPPING[name]
505
488
 
506
489
  def __get__(self, instance: "Metadata", _owner: Type["Metadata"]) -> T:
507
- # With Python 3.8, the caching can be replaced with functools.cached_property().
490
+ # With Python 3.8+, the caching can be replaced with functools.cached_property().
508
491
  # No need to check the cache as attribute lookup will resolve into the
509
492
  # instance's __dict__ before __get__ is called.
510
493
  cache = instance.__dict__
@@ -127,10 +127,8 @@ def _normalize_string(string: str) -> str:
127
127
  def _abi3_applies(python_version: PythonVersion) -> bool:
128
128
  """
129
129
  Determine if the Python version supports abi3.
130
-
131
- PEP 384 was first implemented in Python 3.2.
132
130
  """
133
- return len(python_version) > 1 and tuple(python_version) >= (3, 2)
131
+ return len(python_version) > 1
134
132
 
135
133
 
136
134
  def _cpython_abis(py_version: PythonVersion, warn: bool = False) -> List[str]:
@@ -146,17 +144,7 @@ def _cpython_abis(py_version: PythonVersion, warn: bool = False) -> List[str]:
146
144
  has_ext = "_d.pyd" in EXTENSION_SUFFIXES
147
145
  if with_debug or (with_debug is None and (has_refcount or has_ext)):
148
146
  debug = "d"
149
- if py_version < (3, 8):
150
- with_pymalloc = _get_config_var("WITH_PYMALLOC", warn)
151
- if with_pymalloc or with_pymalloc is None:
152
- pymalloc = "m"
153
- if py_version < (3, 3):
154
- unicode_size = _get_config_var("Py_UNICODE_SIZE", warn)
155
- if unicode_size == 4 or (
156
- unicode_size is None and sys.maxunicode == 0x10FFFF
157
- ):
158
- ucs4 = "u"
159
- elif debug:
147
+ if debug:
160
148
  # Debug builds can also load "normal" extension modules.
161
149
  # We can also assume no UCS-4 or pymalloc requirement.
162
150
  abis.append(f"cp{version}")
@@ -4,14 +4,14 @@ build-backend = "setuptools.build_meta"
4
4
 
5
5
  [project]
6
6
  name = "gyp-next"
7
- version = "0.21.1"
7
+ version = "0.22.1"
8
8
  authors = [
9
9
  { name="Node.js contributors", email="ryzokuken@disroot.org" },
10
10
  ]
11
11
  description = "A fork of the GYP build system for use in the Node.js projects"
12
12
  readme = "README.md"
13
13
  license = { file="LICENSE" }
14
- requires-python = ">=3.8"
14
+ requires-python = ">=3.9"
15
15
  dependencies = ["packaging>=24.0", "setuptools>=69.5.1"]
16
16
  classifiers = [
17
17
  "Development Status :: 3 - Alpha",
@@ -21,10 +21,12 @@ classifiers = [
21
21
  "Natural Language :: English",
22
22
  "Programming Language :: Python",
23
23
  "Programming Language :: Python :: 3",
24
- "Programming Language :: Python :: 3.8",
25
24
  "Programming Language :: Python :: 3.9",
26
25
  "Programming Language :: Python :: 3.10",
27
26
  "Programming Language :: Python :: 3.11",
27
+ "Programming Language :: Python :: 3.12",
28
+ "Programming Language :: Python :: 3.13",
29
+ "Programming Language :: Python :: 3.14",
28
30
  ]
29
31
 
30
32
  [project.optional-dependencies]
@@ -1,4 +1,5 @@
1
- const fetch = require('make-fetch-happen')
1
+ const { Readable } = require('stream')
2
+ const { EnvHttpProxyAgent } = require('undici')
2
3
  const { promises: fs } = require('graceful-fs')
3
4
  const log = require('./log')
4
5
 
@@ -10,19 +11,65 @@ async function download (gyp, url) {
10
11
  'User-Agent': `node-gyp v${gyp.version} (node ${process.version})`,
11
12
  Connection: 'keep-alive'
12
13
  },
13
- proxy: gyp.opts.proxy,
14
- noProxy: gyp.opts.noproxy
14
+ dispatcher: await createDispatcher(gyp)
15
15
  }
16
16
 
17
- const cafile = gyp.opts.cafile
18
- if (cafile) {
19
- requestOpts.ca = await readCAFile(cafile)
17
+ let res
18
+ try {
19
+ res = await fetch(url, requestOpts)
20
+ } catch (err) {
21
+ // Built-in fetch wraps low-level errors in "TypeError: fetch failed" with
22
+ // the underlying error on .cause. Callers inspect .code (e.g. ENOTFOUND).
23
+ if (err.cause) {
24
+ throw err.cause
25
+ }
26
+ throw err
20
27
  }
21
28
 
22
- const res = await fetch(url, requestOpts)
23
29
  log.http(res.status, res.url)
24
30
 
25
- return res
31
+ const body = res.body ? Readable.fromWeb(res.body) : Readable.from([])
32
+ return {
33
+ status: res.status,
34
+ url: res.url,
35
+ body,
36
+ text: async () => {
37
+ let data = ''
38
+ body.setEncoding('utf8')
39
+ for await (const chunk of body) {
40
+ data += chunk
41
+ }
42
+ return data
43
+ }
44
+ }
45
+ }
46
+
47
+ async function createDispatcher (gyp) {
48
+ const env = process.env
49
+ const hasProxyEnv = env.http_proxy || env.HTTP_PROXY || env.https_proxy || env.HTTPS_PROXY
50
+ if (!gyp.opts.proxy && !gyp.opts.cafile && !hasProxyEnv) {
51
+ return undefined
52
+ }
53
+
54
+ const opts = {}
55
+ if (gyp.opts.cafile) {
56
+ const ca = await readCAFile(gyp.opts.cafile)
57
+ // EnvHttpProxyAgent forwards opts to both its internal Agent (direct) and
58
+ // ProxyAgent (proxied). Agent reads TLS config from `connect`; ProxyAgent
59
+ // reads it from `requestTls` (origin) / `proxyTls` (proxy). Set all three
60
+ // so the custom CA is applied regardless of which path a request takes.
61
+ opts.connect = { ca }
62
+ opts.requestTls = { ca }
63
+ opts.proxyTls = { ca }
64
+ }
65
+ if (gyp.opts.proxy) {
66
+ opts.httpProxy = gyp.opts.proxy
67
+ opts.httpsProxy = gyp.opts.proxy
68
+ }
69
+ if (gyp.opts.noproxy) {
70
+ opts.noProxy = gyp.opts.noproxy
71
+ }
72
+ return new EnvHttpProxyAgent(opts)
26
73
  }
27
74
 
28
75
  async function readCAFile (filename) {
@@ -247,7 +247,7 @@ class VisualStudioFinder {
247
247
  'Unrestricted',
248
248
  '-NoProfile',
249
249
  '-Command',
250
- '&{Add-Type -Path \'' + csFile + '\';' + '[VisualStudioConfiguration.Main]::PrintJson()}'
250
+ '&{Add-Type -IgnoreWarnings -Path \'' + csFile + '\';' + '[VisualStudioConfiguration.Main]::PrintJson()}'
251
251
  ]
252
252
 
253
253
  this.log.silly('Running', ps, psArgs)
@@ -1,9 +1,6 @@
1
- /* eslint-disable n/no-deprecated-api */
2
-
3
1
  'use strict'
4
2
 
5
3
  const semver = require('semver')
6
- const url = require('url')
7
4
  const path = require('path')
8
5
  const log = require('./log')
9
6
 
@@ -74,11 +71,11 @@ function processRelease (argv, gyp, defaultVersion, defaultRelease) {
74
71
  } else {
75
72
  distBaseUrl = 'https://nodejs.org/dist'
76
73
  }
77
- distBaseUrl += '/v' + version + '/'
74
+ distBaseUrl = new URL(distBaseUrl + '/v' + version + '/')
78
75
 
79
76
  // new style, based on process.release so we have a lot of the data we need
80
77
  if (defaultRelease && defaultRelease.headersUrl && !overrideDistUrl) {
81
- baseUrl = url.resolve(defaultRelease.headersUrl, './')
78
+ baseUrl = new URL('./', defaultRelease.headersUrl)
82
79
  libUrl32 = resolveLibUrl(name, defaultRelease.libUrl || baseUrl || distBaseUrl, 'x86', versionSemver.major)
83
80
  libUrl64 = resolveLibUrl(name, defaultRelease.libUrl || baseUrl || distBaseUrl, 'x64', versionSemver.major)
84
81
  libUrlArm64 = resolveLibUrl(name, defaultRelease.libUrl || baseUrl || distBaseUrl, 'arm64', versionSemver.major)
@@ -96,28 +93,28 @@ function processRelease (argv, gyp, defaultVersion, defaultRelease) {
96
93
  // have a *-headers.tar.gz file in its dist location, even some frankenstein
97
94
  // custom version
98
95
  canGetHeaders = semver.satisfies(versionSemver, headersTarballRange)
99
- tarballUrl = url.resolve(baseUrl, name + '-v' + version + (canGetHeaders ? '-headers' : '') + '.tar.gz')
96
+ tarballUrl = new URL(name + '-v' + version + (canGetHeaders ? '-headers' : '') + '.tar.gz', baseUrl).href
100
97
  }
101
98
 
102
99
  return {
103
100
  version,
104
101
  semver: versionSemver,
105
102
  name,
106
- baseUrl,
103
+ baseUrl: baseUrl.href,
107
104
  tarballUrl,
108
- shasumsUrl: url.resolve(baseUrl, 'SHASUMS256.txt'),
105
+ shasumsUrl: new URL('SHASUMS256.txt', baseUrl).href,
109
106
  versionDir: (name !== 'node' ? name + '-' : '') + version,
110
107
  ia32: {
111
- libUrl: libUrl32,
112
- libPath: normalizePath(path.relative(new URL(baseUrl).pathname, new URL(libUrl32).pathname))
108
+ libUrl: libUrl32.href,
109
+ libPath: normalizePath(path.relative(baseUrl.pathname, libUrl32.pathname))
113
110
  },
114
111
  x64: {
115
- libUrl: libUrl64,
116
- libPath: normalizePath(path.relative(new URL(baseUrl).pathname, new URL(libUrl64).pathname))
112
+ libUrl: libUrl64.href,
113
+ libPath: normalizePath(path.relative(baseUrl.pathname, libUrl64.pathname))
117
114
  },
118
115
  arm64: {
119
- libUrl: libUrlArm64,
120
- libPath: normalizePath(path.relative(new URL(baseUrl).pathname, new URL(libUrlArm64).pathname))
116
+ libUrl: libUrlArm64.href,
117
+ libPath: normalizePath(path.relative(baseUrl.pathname, libUrlArm64.pathname))
121
118
  }
122
119
  }
123
120
  }
@@ -127,20 +124,21 @@ function normalizePath (p) {
127
124
  }
128
125
 
129
126
  function resolveLibUrl (name, defaultUrl, arch, versionMajor) {
130
- const base = url.resolve(defaultUrl, './')
131
- const hasLibUrl = bitsre.test(defaultUrl) || (versionMajor === 3 && bitsreV3.test(defaultUrl))
127
+ if (!defaultUrl.pathname) defaultUrl = new URL(defaultUrl)
128
+ const base = new URL('./', defaultUrl)
129
+ const hasLibUrl = bitsre.test(defaultUrl.pathname) || (versionMajor === 3 && bitsreV3.test(defaultUrl.pathname))
132
130
 
133
131
  if (!hasLibUrl) {
134
132
  // let's assume it's a baseUrl then
135
133
  if (versionMajor >= 1) {
136
- return url.resolve(base, 'win-' + arch + '/' + name + '.lib')
134
+ return new URL('win-' + arch + '/' + name + '.lib', base)
137
135
  }
138
136
  // prior to io.js@1.0.0 32-bit node.lib lives in /, 64-bit lives in /x64/
139
- return url.resolve(base, (arch === 'x86' ? '' : arch + '/') + name + '.lib')
137
+ return new URL((arch === 'x86' ? '' : arch + '/') + name + '.lib', base)
140
138
  }
141
139
 
142
140
  // else we have a proper url to a .lib, just make sure it's the right arch
143
- return defaultUrl.replace(versionMajor === 3 ? bitsreV3 : bitsre, '/win-' + arch + '/')
141
+ return new URL(defaultUrl.pathname.replace(versionMajor === 3 ? bitsreV3 : bitsre, '/win-' + arch + '/'), defaultUrl)
144
142
  }
145
143
 
146
144
  module.exports = processRelease
@@ -11,7 +11,7 @@
11
11
  "bindings",
12
12
  "gyp"
13
13
  ],
14
- "version": "12.2.0",
14
+ "version": "12.3.0",
15
15
  "installVersion": 11,
16
16
  "author": "Nathan Rajlich <nathan@tootallnate.net> (http://tootallnate.net)",
17
17
  "repository": {
@@ -25,12 +25,12 @@
25
25
  "env-paths": "^2.2.0",
26
26
  "exponential-backoff": "^3.1.1",
27
27
  "graceful-fs": "^4.2.6",
28
- "make-fetch-happen": "^15.0.0",
29
28
  "nopt": "^9.0.0",
30
29
  "proc-log": "^6.0.0",
31
30
  "semver": "^7.3.5",
32
31
  "tar": "^7.5.4",
33
32
  "tinyglobby": "^0.2.12",
33
+ "undici": "^6.25.0",
34
34
  "which": "^6.0.0"
35
35
  },
36
36
  "engines": {
@@ -42,7 +42,7 @@
42
42
  "eslint": "^9.39.1",
43
43
  "mocha": "^11.7.5",
44
44
  "nan": "^2.23.1",
45
- "neostandard": "^0.12.2",
45
+ "neostandard": "^0.13.0",
46
46
  "require-inject": "^1.4.4"
47
47
  },
48
48
  "scripts": {
@@ -1,6 +1,6 @@
1
1
  MIT License
2
2
 
3
- Copyright (c) 2018 Nikita Skovoroda <chalkerx@gmail.com>
3
+ Copyright (c) Matteo Collina and Undici contributors
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
@@ -0,0 +1,35 @@
1
+ 'use strict'
2
+
3
+ const { getGlobalDispatcher, setGlobalDispatcher } = require('./lib/global')
4
+ const EnvHttpProxyAgent = require('./lib/dispatcher/env-http-proxy-agent')
5
+ const fetchImpl = require('./lib/web/fetch').fetch
6
+
7
+ module.exports.fetch = function fetch (resource, init = undefined) {
8
+ return fetchImpl(resource, init).catch((err) => {
9
+ if (err && typeof err === 'object') {
10
+ Error.captureStackTrace(err)
11
+ }
12
+ throw err
13
+ })
14
+ }
15
+ module.exports.FormData = require('./lib/web/fetch/formdata').FormData
16
+ module.exports.Headers = require('./lib/web/fetch/headers').Headers
17
+ module.exports.Response = require('./lib/web/fetch/response').Response
18
+ module.exports.Request = require('./lib/web/fetch/request').Request
19
+
20
+ const { CloseEvent, ErrorEvent, MessageEvent, createFastMessageEvent } = require('./lib/web/websocket/events')
21
+ module.exports.WebSocket = require('./lib/web/websocket/websocket').WebSocket
22
+ module.exports.CloseEvent = CloseEvent
23
+ module.exports.ErrorEvent = ErrorEvent
24
+ module.exports.MessageEvent = MessageEvent
25
+ module.exports.createFastMessageEvent = createFastMessageEvent
26
+
27
+ module.exports.EventSource = require('./lib/web/eventsource/eventsource').EventSource
28
+
29
+ const api = require('./lib/api')
30
+ const Dispatcher = require('./lib/dispatcher/dispatcher')
31
+ Object.assign(Dispatcher.prototype, api)
32
+ // Expose the fetch implementation to be enabled in Node.js core via a flag
33
+ module.exports.EnvHttpProxyAgent = EnvHttpProxyAgent
34
+ module.exports.getGlobalDispatcher = getGlobalDispatcher
35
+ module.exports.setGlobalDispatcher = setGlobalDispatcher