@zuplo/cli 6.69.4 → 6.69.6

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 (428) hide show
  1. package/dist/__tests__/integration/custom-domain.integration.test.js +4 -4
  2. package/dist/__tests__/integration/custom-domain.integration.test.js.map +1 -1
  3. package/dist/__tests__/integration/jest-mocks-setup.js +30 -10
  4. package/dist/__tests__/integration/jest-mocks-setup.js.map +1 -1
  5. package/dist/__tests__/integration/list.integration.test.js +2 -2
  6. package/dist/__tests__/integration/list.integration.test.js.map +1 -1
  7. package/dist/__tests__/integration/tunnel.integration.test.js +14 -14
  8. package/dist/__tests__/integration/tunnel.integration.test.js.map +1 -1
  9. package/dist/__tests__/integration/variable.integration.test.js +4 -4
  10. package/dist/__tests__/integration/variable.integration.test.js.map +1 -1
  11. package/dist/__tests__/integration/whoami.integration.test.js +2 -5
  12. package/dist/__tests__/integration/whoami.integration.test.js.map +1 -1
  13. package/dist/cli.js +12 -6
  14. package/dist/cli.js.map +1 -1
  15. package/dist/cmds/custom-domain/index.d.ts.map +1 -1
  16. package/dist/cmds/custom-domain/index.js +6 -10
  17. package/dist/cmds/custom-domain/index.js.map +1 -1
  18. package/dist/cmds/mtls-certificates/index.d.ts.map +1 -1
  19. package/dist/cmds/mtls-certificates/index.js +8 -12
  20. package/dist/cmds/mtls-certificates/index.js.map +1 -1
  21. package/dist/cmds/open-api/index.d.ts.map +1 -1
  22. package/dist/cmds/open-api/index.js +2 -5
  23. package/dist/cmds/open-api/index.js.map +1 -1
  24. package/dist/cmds/project/index.d.ts.map +1 -1
  25. package/dist/cmds/project/index.js +2 -5
  26. package/dist/cmds/project/index.js.map +1 -1
  27. package/dist/cmds/proxies/index.d.ts +4 -4
  28. package/dist/cmds/proxies/index.d.ts.map +1 -1
  29. package/dist/cmds/proxies/index.js +6 -10
  30. package/dist/cmds/proxies/index.js.map +1 -1
  31. package/dist/cmds/source/index.d.ts.map +1 -1
  32. package/dist/cmds/source/index.js +2 -9
  33. package/dist/cmds/source/index.js.map +1 -1
  34. package/dist/cmds/source/migrate.d.ts +4 -4
  35. package/dist/cmds/source/migrate.d.ts.map +1 -1
  36. package/dist/cmds/source/migrate.js +3 -6
  37. package/dist/cmds/source/migrate.js.map +1 -1
  38. package/dist/cmds/tunnel/index.d.ts.map +1 -1
  39. package/dist/cmds/tunnel/index.js +8 -12
  40. package/dist/cmds/tunnel/index.js.map +1 -1
  41. package/dist/cmds/tunnel/services/index.d.ts.map +1 -1
  42. package/dist/cmds/tunnel/services/index.js +2 -5
  43. package/dist/cmds/tunnel/services/index.js.map +1 -1
  44. package/dist/cmds/variable/index.d.ts.map +1 -1
  45. package/dist/cmds/variable/index.js +2 -5
  46. package/dist/cmds/variable/index.js.map +1 -1
  47. package/dist/common/api/client.d.ts +40 -0
  48. package/dist/common/api/client.d.ts.map +1 -0
  49. package/dist/common/api/client.js +92 -0
  50. package/dist/common/api/client.js.map +1 -0
  51. package/dist/common/handler.d.ts +4 -1
  52. package/dist/common/handler.d.ts.map +1 -1
  53. package/dist/common/handler.js +11 -2
  54. package/dist/common/handler.js.map +1 -1
  55. package/dist/common/middleware/get-environment-param.d.ts.map +1 -1
  56. package/dist/common/middleware/get-environment-param.js +2 -18
  57. package/dist/common/middleware/get-environment-param.js.map +1 -1
  58. package/dist/common/output.d.ts +4 -0
  59. package/dist/common/output.d.ts.map +1 -1
  60. package/dist/common/output.js +4 -1
  61. package/dist/common/output.js.map +1 -1
  62. package/dist/common/utils/build-environment-prompt-choices.d.ts +13 -0
  63. package/dist/common/utils/build-environment-prompt-choices.d.ts.map +1 -0
  64. package/dist/common/utils/build-environment-prompt-choices.js +66 -0
  65. package/dist/common/utils/build-environment-prompt-choices.js.map +1 -0
  66. package/dist/common/utils/build-environment-prompt-choices.test.d.ts +2 -0
  67. package/dist/common/utils/build-environment-prompt-choices.test.d.ts.map +1 -0
  68. package/dist/common/utils/build-environment-prompt-choices.test.js +97 -0
  69. package/dist/common/utils/build-environment-prompt-choices.test.js.map +1 -0
  70. package/dist/common/utils/pretty-print-environment-prompt.d.ts +1 -4
  71. package/dist/common/utils/pretty-print-environment-prompt.d.ts.map +1 -1
  72. package/dist/common/utils/pretty-print-environment-prompt.js +3 -8
  73. package/dist/common/utils/pretty-print-environment-prompt.js.map +1 -1
  74. package/dist/common/utils/pretty-print-environment-prompt.test.js +15 -17
  75. package/dist/common/utils/pretty-print-environment-prompt.test.js.map +1 -1
  76. package/dist/common/utils/sort-environments-for-prompt.d.ts +5 -0
  77. package/dist/common/utils/sort-environments-for-prompt.d.ts.map +1 -0
  78. package/dist/common/utils/sort-environments-for-prompt.js +27 -0
  79. package/dist/common/utils/sort-environments-for-prompt.js.map +1 -0
  80. package/dist/common/utils/sort-environments-for-prompt.test.d.ts +2 -0
  81. package/dist/common/utils/sort-environments-for-prompt.test.d.ts.map +1 -0
  82. package/dist/common/utils/sort-environments-for-prompt.test.js +82 -0
  83. package/dist/common/utils/sort-environments-for-prompt.test.js.map +1 -0
  84. package/dist/custom-domain/create/handler.d.ts.map +1 -1
  85. package/dist/custom-domain/create/handler.js +12 -27
  86. package/dist/custom-domain/create/handler.js.map +1 -1
  87. package/dist/custom-domain/delete/handler.d.ts.map +1 -1
  88. package/dist/custom-domain/delete/handler.js +25 -54
  89. package/dist/custom-domain/delete/handler.js.map +1 -1
  90. package/dist/custom-domain/list/handler.d.ts.map +1 -1
  91. package/dist/custom-domain/list/handler.js +15 -29
  92. package/dist/custom-domain/list/handler.js.map +1 -1
  93. package/dist/custom-domain/update/handler.d.ts.map +1 -1
  94. package/dist/custom-domain/update/handler.js +12 -27
  95. package/dist/custom-domain/update/handler.js.map +1 -1
  96. package/dist/list/handler.d.ts.map +1 -1
  97. package/dist/list/handler.js +41 -59
  98. package/dist/list/handler.js.map +1 -1
  99. package/dist/mtls-certificates/create/handler.d.ts.map +1 -1
  100. package/dist/mtls-certificates/create/handler.js +9 -23
  101. package/dist/mtls-certificates/create/handler.js.map +1 -1
  102. package/dist/mtls-certificates/delete/handler.d.ts.map +1 -1
  103. package/dist/mtls-certificates/delete/handler.js +8 -20
  104. package/dist/mtls-certificates/delete/handler.js.map +1 -1
  105. package/dist/mtls-certificates/describe/handler.d.ts.map +1 -1
  106. package/dist/mtls-certificates/describe/handler.js +17 -31
  107. package/dist/mtls-certificates/describe/handler.js.map +1 -1
  108. package/dist/mtls-certificates/disable/handler.d.ts.map +1 -1
  109. package/dist/mtls-certificates/disable/handler.js +9 -26
  110. package/dist/mtls-certificates/disable/handler.js.map +1 -1
  111. package/dist/mtls-certificates/list/handler.d.ts.map +1 -1
  112. package/dist/mtls-certificates/list/handler.js +22 -36
  113. package/dist/mtls-certificates/list/handler.js.map +1 -1
  114. package/dist/mtls-certificates/update/handler.d.ts.map +1 -1
  115. package/dist/mtls-certificates/update/handler.js +14 -29
  116. package/dist/mtls-certificates/update/handler.js.map +1 -1
  117. package/dist/proxies/create/handler.d.ts.map +1 -1
  118. package/dist/proxies/create/handler.js +9 -22
  119. package/dist/proxies/create/handler.js.map +1 -1
  120. package/dist/proxies/delete/handler.d.ts.map +1 -1
  121. package/dist/proxies/delete/handler.js +8 -21
  122. package/dist/proxies/delete/handler.js.map +1 -1
  123. package/dist/proxies/describe/handler.d.ts.map +1 -1
  124. package/dist/proxies/describe/handler.js +7 -22
  125. package/dist/proxies/describe/handler.js.map +1 -1
  126. package/dist/proxies/update/handler.d.ts.map +1 -1
  127. package/dist/proxies/update/handler.js +9 -22
  128. package/dist/proxies/update/handler.js.map +1 -1
  129. package/dist/tsconfig.tsbuildinfo +1 -1
  130. package/dist/tunnel/create/handler.d.ts.map +1 -1
  131. package/dist/tunnel/create/handler.js +8 -22
  132. package/dist/tunnel/create/handler.js.map +1 -1
  133. package/dist/tunnel/delete/handler.d.ts.map +1 -1
  134. package/dist/tunnel/delete/handler.js +16 -30
  135. package/dist/tunnel/delete/handler.js.map +1 -1
  136. package/dist/tunnel/describe/handler.d.ts.map +1 -1
  137. package/dist/tunnel/describe/handler.js +7 -21
  138. package/dist/tunnel/describe/handler.js.map +1 -1
  139. package/dist/tunnel/list/handler.d.ts.map +1 -1
  140. package/dist/tunnel/list/handler.js +13 -28
  141. package/dist/tunnel/list/handler.js.map +1 -1
  142. package/dist/tunnel/rotate-token/handler.d.ts.map +1 -1
  143. package/dist/tunnel/rotate-token/handler.js +7 -21
  144. package/dist/tunnel/rotate-token/handler.js.map +1 -1
  145. package/dist/tunnel/services/describe/handler.d.ts.map +1 -1
  146. package/dist/tunnel/services/describe/handler.js +7 -21
  147. package/dist/tunnel/services/describe/handler.js.map +1 -1
  148. package/dist/tunnel/services/update/handler.d.ts.map +1 -1
  149. package/dist/tunnel/services/update/handler.js +18 -32
  150. package/dist/tunnel/services/update/handler.js.map +1 -1
  151. package/dist/variable/create/handler.d.ts.map +1 -1
  152. package/dist/variable/create/handler.js +9 -24
  153. package/dist/variable/create/handler.js.map +1 -1
  154. package/dist/variable/update/handler.d.ts.map +1 -1
  155. package/dist/variable/update/handler.js +9 -24
  156. package/dist/variable/update/handler.js.map +1 -1
  157. package/dist/whoami/handler.d.ts.map +1 -1
  158. package/dist/whoami/handler.js +6 -18
  159. package/dist/whoami/handler.js.map +1 -1
  160. package/node_modules/@fastify/proxy-addr/node_modules/ipaddr.js/README.md +1 -5
  161. package/node_modules/@fastify/proxy-addr/node_modules/ipaddr.js/ipaddr.min.js +1 -1
  162. package/node_modules/@fastify/proxy-addr/node_modules/ipaddr.js/lib/ipaddr.js +21 -6
  163. package/node_modules/@fastify/proxy-addr/node_modules/ipaddr.js/package.json +1 -1
  164. package/node_modules/@zuplo/core/index.minified.js +141 -137
  165. package/node_modules/@zuplo/core/package.json +1 -1
  166. package/node_modules/@zuplo/editor/node_modules/fast-json-stringify/.github/workflows/ci.yml +1 -1
  167. package/node_modules/@zuplo/editor/node_modules/fast-json-stringify/.github/workflows/lock-threads.yml +19 -0
  168. package/node_modules/@zuplo/editor/node_modules/fast-json-stringify/LICENSE +1 -3
  169. package/node_modules/@zuplo/editor/node_modules/fast-json-stringify/benchmark/bench-cmp-lib.js +60 -44
  170. package/node_modules/@zuplo/editor/node_modules/fast-json-stringify/index.js +2 -2
  171. package/node_modules/@zuplo/editor/node_modules/fast-json-stringify/package.json +7 -7
  172. package/node_modules/@zuplo/editor/node_modules/fast-json-stringify/test/anyof.test.js +20 -0
  173. package/node_modules/@zuplo/editor/node_modules/fast-json-stringify/test/array.test.js +22 -0
  174. package/node_modules/@zuplo/editor/node_modules/fast-json-stringify/test/debug-mode.test.js +21 -0
  175. package/node_modules/@zuplo/editor/node_modules/fast-json-stringify/test/if-then-else.test.js +72 -0
  176. package/node_modules/@zuplo/editor/node_modules/fast-json-stringify/test/invalidSchema.test.js +20 -0
  177. package/node_modules/@zuplo/editor/node_modules/fast-json-stringify/test/issue-836.test.js +183 -0
  178. package/node_modules/@zuplo/editor/node_modules/fast-json-stringify/test/json-add-comma.test.js +57 -57
  179. package/node_modules/@zuplo/editor/node_modules/fast-json-stringify/test/oneof.test.js +20 -0
  180. package/node_modules/@zuplo/editor/node_modules/fast-json-stringify/test/ref.test.js +31 -0
  181. package/node_modules/@zuplo/editor/node_modules/fast-json-stringify/test/typebox.test.js +1 -1
  182. package/node_modules/@zuplo/editor/node_modules/fast-json-stringify/types/{index.test-d.ts → index.tst.ts} +17 -17
  183. package/node_modules/@zuplo/editor/node_modules/lru-cache/dist/commonjs/browser/diagnostics-channel-browser.d.ts.map +1 -0
  184. package/node_modules/@zuplo/editor/node_modules/lru-cache/dist/commonjs/browser/diagnostics-channel-browser.js.map +1 -0
  185. package/node_modules/@zuplo/editor/node_modules/lru-cache/dist/commonjs/browser/diagnostics-channel.d.ts +5 -0
  186. package/node_modules/@zuplo/editor/node_modules/lru-cache/dist/commonjs/browser/diagnostics-channel.js +7 -0
  187. package/node_modules/@zuplo/editor/node_modules/lru-cache/dist/commonjs/browser/index.d.ts +1380 -0
  188. package/node_modules/@zuplo/editor/node_modules/lru-cache/dist/commonjs/browser/index.d.ts.map +1 -0
  189. package/node_modules/@zuplo/editor/node_modules/lru-cache/dist/commonjs/browser/index.js +1686 -0
  190. package/node_modules/@zuplo/editor/node_modules/lru-cache/dist/commonjs/browser/index.js.map +1 -0
  191. package/node_modules/@zuplo/editor/node_modules/lru-cache/dist/commonjs/browser/index.min.js +2 -0
  192. package/node_modules/@zuplo/editor/node_modules/lru-cache/dist/commonjs/browser/index.min.js.map +7 -0
  193. package/node_modules/@zuplo/editor/node_modules/lru-cache/dist/commonjs/browser/perf.d.ts +12 -0
  194. package/node_modules/@zuplo/editor/node_modules/lru-cache/dist/commonjs/browser/perf.d.ts.map +1 -0
  195. package/node_modules/@zuplo/editor/node_modules/lru-cache/dist/commonjs/browser/perf.js +11 -0
  196. package/node_modules/@zuplo/editor/node_modules/lru-cache/dist/commonjs/browser/perf.js.map +1 -0
  197. package/node_modules/@zuplo/editor/node_modules/lru-cache/dist/commonjs/diagnostics-channel-cjs.cjs.map +1 -0
  198. package/node_modules/@zuplo/editor/node_modules/lru-cache/dist/commonjs/diagnostics-channel-cjs.d.cts.map +1 -0
  199. package/node_modules/@zuplo/editor/node_modules/lru-cache/dist/commonjs/diagnostics-channel.d.ts +2 -2
  200. package/node_modules/@zuplo/editor/node_modules/lru-cache/dist/commonjs/diagnostics-channel.js +4 -7
  201. package/node_modules/@zuplo/editor/node_modules/lru-cache/dist/commonjs/index.d.ts +2 -3
  202. package/node_modules/@zuplo/editor/node_modules/lru-cache/dist/commonjs/index.d.ts.map +1 -1
  203. package/node_modules/@zuplo/editor/node_modules/lru-cache/dist/commonjs/index.js +10 -16
  204. package/node_modules/@zuplo/editor/node_modules/lru-cache/dist/commonjs/index.js.map +1 -1
  205. package/node_modules/@zuplo/editor/node_modules/lru-cache/dist/commonjs/index.min.js +1 -1
  206. package/node_modules/@zuplo/editor/node_modules/lru-cache/dist/commonjs/index.min.js.map +4 -4
  207. package/node_modules/@zuplo/editor/node_modules/lru-cache/dist/commonjs/node/diagnostics-channel-node.d.ts.map +1 -0
  208. package/node_modules/@zuplo/editor/node_modules/lru-cache/dist/commonjs/node/diagnostics-channel-node.js.map +1 -0
  209. package/node_modules/@zuplo/editor/node_modules/lru-cache/dist/commonjs/node/diagnostics-channel.d.ts +5 -0
  210. package/node_modules/@zuplo/editor/node_modules/lru-cache/dist/commonjs/node/diagnostics-channel.js +9 -0
  211. package/node_modules/@zuplo/editor/node_modules/lru-cache/dist/commonjs/node/index.d.ts +1380 -0
  212. package/node_modules/@zuplo/editor/node_modules/lru-cache/dist/commonjs/node/index.d.ts.map +1 -0
  213. package/node_modules/@zuplo/editor/node_modules/lru-cache/dist/commonjs/node/index.js +1686 -0
  214. package/node_modules/@zuplo/editor/node_modules/lru-cache/dist/commonjs/node/index.js.map +1 -0
  215. package/node_modules/@zuplo/editor/node_modules/lru-cache/dist/commonjs/node/index.min.js +2 -0
  216. package/node_modules/@zuplo/editor/node_modules/lru-cache/dist/commonjs/node/index.min.js.map +7 -0
  217. package/node_modules/@zuplo/editor/node_modules/lru-cache/dist/commonjs/node/perf.d.ts +12 -0
  218. package/node_modules/@zuplo/editor/node_modules/lru-cache/dist/commonjs/node/perf.d.ts.map +1 -0
  219. package/node_modules/@zuplo/editor/node_modules/lru-cache/dist/commonjs/node/perf.js +11 -0
  220. package/node_modules/@zuplo/editor/node_modules/lru-cache/dist/commonjs/node/perf.js.map +1 -0
  221. package/node_modules/@zuplo/editor/node_modules/lru-cache/dist/commonjs/perf.d.ts +12 -0
  222. package/node_modules/@zuplo/editor/node_modules/lru-cache/dist/commonjs/perf.d.ts.map +1 -0
  223. package/node_modules/@zuplo/editor/node_modules/lru-cache/dist/commonjs/perf.js +11 -0
  224. package/node_modules/@zuplo/editor/node_modules/lru-cache/dist/commonjs/perf.js.map +1 -0
  225. package/node_modules/@zuplo/editor/node_modules/lru-cache/dist/esm/browser/diagnostics-channel-browser.d.ts.map +1 -0
  226. package/node_modules/@zuplo/editor/node_modules/lru-cache/dist/esm/browser/diagnostics-channel-browser.js.map +1 -0
  227. package/node_modules/@zuplo/editor/node_modules/lru-cache/dist/esm/browser/diagnostics-channel.d.ts +1 -1
  228. package/node_modules/@zuplo/editor/node_modules/lru-cache/dist/esm/browser/diagnostics-channel.js +1 -1
  229. package/node_modules/@zuplo/editor/node_modules/lru-cache/dist/esm/browser/index.d.ts +2 -3
  230. package/node_modules/@zuplo/editor/node_modules/lru-cache/dist/esm/browser/index.d.ts.map +1 -1
  231. package/node_modules/@zuplo/editor/node_modules/lru-cache/dist/esm/browser/index.js +9 -15
  232. package/node_modules/@zuplo/editor/node_modules/lru-cache/dist/esm/browser/index.js.map +1 -1
  233. package/node_modules/@zuplo/editor/node_modules/lru-cache/dist/esm/browser/index.min.js +1 -1
  234. package/node_modules/@zuplo/editor/node_modules/lru-cache/dist/esm/browser/index.min.js.map +4 -4
  235. package/node_modules/@zuplo/editor/node_modules/lru-cache/dist/esm/browser/perf.d.ts +12 -0
  236. package/node_modules/@zuplo/editor/node_modules/lru-cache/dist/esm/browser/perf.d.ts.map +1 -0
  237. package/node_modules/@zuplo/editor/node_modules/lru-cache/dist/esm/browser/perf.js +8 -0
  238. package/node_modules/@zuplo/editor/node_modules/lru-cache/dist/esm/browser/perf.js.map +1 -0
  239. package/node_modules/@zuplo/editor/node_modules/lru-cache/dist/esm/diagnostics-channel-esm.d.mts.map +1 -1
  240. package/node_modules/@zuplo/editor/node_modules/lru-cache/dist/esm/diagnostics-channel-esm.mjs.map +1 -1
  241. package/node_modules/@zuplo/editor/node_modules/lru-cache/dist/esm/index.d.ts +2 -3
  242. package/node_modules/@zuplo/editor/node_modules/lru-cache/dist/esm/index.d.ts.map +1 -1
  243. package/node_modules/@zuplo/editor/node_modules/lru-cache/dist/esm/index.js +9 -15
  244. package/node_modules/@zuplo/editor/node_modules/lru-cache/dist/esm/index.js.map +1 -1
  245. package/node_modules/@zuplo/editor/node_modules/lru-cache/dist/esm/index.min.js +1 -1
  246. package/node_modules/@zuplo/editor/node_modules/lru-cache/dist/esm/index.min.js.map +4 -4
  247. package/node_modules/@zuplo/editor/node_modules/lru-cache/dist/esm/node/diagnostics-channel-node.d.ts.map +1 -0
  248. package/node_modules/@zuplo/editor/node_modules/lru-cache/dist/esm/node/diagnostics-channel-node.js.map +1 -0
  249. package/node_modules/@zuplo/editor/node_modules/lru-cache/dist/esm/node/diagnostics-channel.d.ts +1 -1
  250. package/node_modules/@zuplo/editor/node_modules/lru-cache/dist/esm/node/diagnostics-channel.js +2 -3
  251. package/node_modules/@zuplo/editor/node_modules/lru-cache/dist/esm/node/index.d.ts +2 -3
  252. package/node_modules/@zuplo/editor/node_modules/lru-cache/dist/esm/node/index.d.ts.map +1 -1
  253. package/node_modules/@zuplo/editor/node_modules/lru-cache/dist/esm/node/index.js +9 -15
  254. package/node_modules/@zuplo/editor/node_modules/lru-cache/dist/esm/node/index.js.map +1 -1
  255. package/node_modules/@zuplo/editor/node_modules/lru-cache/dist/esm/node/index.min.js +1 -1
  256. package/node_modules/@zuplo/editor/node_modules/lru-cache/dist/esm/node/index.min.js.map +4 -4
  257. package/node_modules/@zuplo/editor/node_modules/lru-cache/dist/esm/node/perf.d.ts +12 -0
  258. package/node_modules/@zuplo/editor/node_modules/lru-cache/dist/esm/node/perf.d.ts.map +1 -0
  259. package/node_modules/@zuplo/editor/node_modules/lru-cache/dist/esm/node/perf.js +8 -0
  260. package/node_modules/@zuplo/editor/node_modules/lru-cache/dist/esm/node/perf.js.map +1 -0
  261. package/node_modules/@zuplo/editor/node_modules/lru-cache/dist/esm/perf.d.ts +12 -0
  262. package/node_modules/@zuplo/editor/node_modules/lru-cache/dist/esm/perf.d.ts.map +1 -0
  263. package/node_modules/@zuplo/editor/node_modules/lru-cache/dist/esm/perf.js +8 -0
  264. package/node_modules/@zuplo/editor/node_modules/lru-cache/dist/esm/perf.js.map +1 -0
  265. package/node_modules/@zuplo/editor/node_modules/lru-cache/package.json +44 -16
  266. package/node_modules/@zuplo/graphql/package.json +1 -1
  267. package/node_modules/@zuplo/openapi-tools/package.json +1 -1
  268. package/node_modules/@zuplo/otel/package.json +1 -1
  269. package/node_modules/@zuplo/runtime/out/esm/index.js +54 -54
  270. package/node_modules/@zuplo/runtime/out/esm/index.js.map +1 -1
  271. package/node_modules/@zuplo/runtime/out/types/index.d.ts +4 -0
  272. package/node_modules/@zuplo/runtime/package.json +1 -1
  273. package/node_modules/axios/CHANGELOG.md +32 -6
  274. package/node_modules/axios/README.md +356 -20
  275. package/node_modules/axios/dist/axios.js +1389 -1071
  276. package/node_modules/axios/dist/axios.js.map +1 -1
  277. package/node_modules/axios/dist/axios.min.js +3 -3
  278. package/node_modules/axios/dist/axios.min.js.map +1 -1
  279. package/node_modules/axios/dist/browser/axios.cjs +1486 -1123
  280. package/node_modules/axios/dist/browser/axios.cjs.map +1 -1
  281. package/node_modules/axios/dist/esm/axios.js +1488 -1124
  282. package/node_modules/axios/dist/esm/axios.js.map +1 -1
  283. package/node_modules/axios/dist/esm/axios.min.js +2 -2
  284. package/node_modules/axios/dist/esm/axios.min.js.map +1 -1
  285. package/node_modules/axios/dist/node/axios.cjs +1230 -871
  286. package/node_modules/axios/dist/node/axios.cjs.map +1 -1
  287. package/node_modules/axios/index.d.cts +25 -13
  288. package/node_modules/axios/index.d.ts +21 -4
  289. package/node_modules/axios/index.js +2 -0
  290. package/node_modules/axios/lib/adapters/adapters.js +4 -2
  291. package/node_modules/axios/lib/adapters/fetch.js +126 -10
  292. package/node_modules/axios/lib/adapters/http.js +178 -59
  293. package/node_modules/axios/lib/adapters/xhr.js +6 -2
  294. package/node_modules/axios/lib/core/Axios.js +7 -3
  295. package/node_modules/axios/lib/core/AxiosError.js +86 -1
  296. package/node_modules/axios/lib/core/AxiosHeaders.js +3 -0
  297. package/node_modules/axios/lib/core/dispatchRequest.js +19 -7
  298. package/node_modules/axios/lib/core/mergeConfig.js +6 -3
  299. package/node_modules/axios/lib/core/settle.js +7 -11
  300. package/node_modules/axios/lib/defaults/index.js +1 -1
  301. package/node_modules/axios/lib/env/data.js +1 -1
  302. package/node_modules/axios/lib/helpers/buildURL.js +1 -1
  303. package/node_modules/axios/lib/helpers/cookies.js +14 -2
  304. package/node_modules/axios/lib/helpers/estimateDataURLDecodedBytes.js +28 -1
  305. package/node_modules/axios/lib/helpers/formDataToStream.js +1 -1
  306. package/node_modules/axios/lib/helpers/parseProtocol.js +1 -1
  307. package/node_modules/axios/lib/helpers/resolveConfig.js +33 -17
  308. package/node_modules/axios/lib/helpers/shouldBypassProxy.js +26 -1
  309. package/node_modules/axios/lib/helpers/validator.js +1 -1
  310. package/node_modules/axios/lib/utils.js +27 -15
  311. package/node_modules/axios/package.json +17 -24
  312. package/node_modules/fast-uri/.github/workflows/ci.yml +12 -7
  313. package/node_modules/fast-uri/.github/workflows/lock-threads.yml +19 -0
  314. package/node_modules/fast-uri/.github/workflows/package-manager-ci.yml +1 -1
  315. package/node_modules/fast-uri/LICENSE +1 -3
  316. package/node_modules/fast-uri/README.md +13 -4
  317. package/node_modules/fast-uri/index.js +90 -24
  318. package/node_modules/fast-uri/lib/utils.js +129 -22
  319. package/node_modules/fast-uri/package.json +3 -4
  320. package/node_modules/fast-uri/test/equal.test.js +9 -0
  321. package/node_modules/fast-uri/test/parse.test.js +5 -0
  322. package/node_modules/fast-uri/test/resolve.test.js +9 -0
  323. package/node_modules/fast-uri/test/security-normalization.test.js +39 -0
  324. package/node_modules/fast-uri/test/security.test.js +133 -0
  325. package/node_modules/is-core-module/CHANGELOG.md +244 -113
  326. package/node_modules/is-core-module/README.md +1 -1
  327. package/node_modules/is-core-module/core.json +12 -12
  328. package/node_modules/is-core-module/package.json +5 -5
  329. package/node_modules/is-core-module/test/index.js +101 -0
  330. package/node_modules/rimraf/node_modules/lru-cache/dist/commonjs/browser/diagnostics-channel-browser.d.ts.map +1 -0
  331. package/node_modules/rimraf/node_modules/lru-cache/dist/commonjs/browser/diagnostics-channel-browser.js.map +1 -0
  332. package/node_modules/rimraf/node_modules/lru-cache/dist/commonjs/browser/diagnostics-channel.d.ts +5 -0
  333. package/node_modules/rimraf/node_modules/lru-cache/dist/commonjs/browser/diagnostics-channel.js +7 -0
  334. package/node_modules/rimraf/node_modules/lru-cache/dist/commonjs/browser/index.d.ts +1380 -0
  335. package/node_modules/rimraf/node_modules/lru-cache/dist/commonjs/browser/index.d.ts.map +1 -0
  336. package/node_modules/rimraf/node_modules/lru-cache/dist/commonjs/browser/index.js +1686 -0
  337. package/node_modules/rimraf/node_modules/lru-cache/dist/commonjs/browser/index.js.map +1 -0
  338. package/node_modules/rimraf/node_modules/lru-cache/dist/commonjs/browser/index.min.js +2 -0
  339. package/node_modules/rimraf/node_modules/lru-cache/dist/commonjs/browser/index.min.js.map +7 -0
  340. package/node_modules/rimraf/node_modules/lru-cache/dist/commonjs/browser/perf.d.ts +12 -0
  341. package/node_modules/rimraf/node_modules/lru-cache/dist/commonjs/browser/perf.d.ts.map +1 -0
  342. package/node_modules/rimraf/node_modules/lru-cache/dist/commonjs/browser/perf.js +11 -0
  343. package/node_modules/rimraf/node_modules/lru-cache/dist/commonjs/browser/perf.js.map +1 -0
  344. package/node_modules/rimraf/node_modules/lru-cache/dist/commonjs/diagnostics-channel-cjs.cjs.map +1 -0
  345. package/node_modules/rimraf/node_modules/lru-cache/dist/commonjs/diagnostics-channel-cjs.d.cts.map +1 -0
  346. package/node_modules/rimraf/node_modules/lru-cache/dist/commonjs/diagnostics-channel.d.ts +2 -2
  347. package/node_modules/rimraf/node_modules/lru-cache/dist/commonjs/diagnostics-channel.js +4 -7
  348. package/node_modules/rimraf/node_modules/lru-cache/dist/commonjs/index.d.ts +2 -3
  349. package/node_modules/rimraf/node_modules/lru-cache/dist/commonjs/index.d.ts.map +1 -1
  350. package/node_modules/rimraf/node_modules/lru-cache/dist/commonjs/index.js +10 -16
  351. package/node_modules/rimraf/node_modules/lru-cache/dist/commonjs/index.js.map +1 -1
  352. package/node_modules/rimraf/node_modules/lru-cache/dist/commonjs/index.min.js +1 -1
  353. package/node_modules/rimraf/node_modules/lru-cache/dist/commonjs/index.min.js.map +4 -4
  354. package/node_modules/rimraf/node_modules/lru-cache/dist/commonjs/node/diagnostics-channel-node.d.ts.map +1 -0
  355. package/node_modules/rimraf/node_modules/lru-cache/dist/commonjs/node/diagnostics-channel-node.js.map +1 -0
  356. package/node_modules/rimraf/node_modules/lru-cache/dist/commonjs/node/diagnostics-channel.d.ts +5 -0
  357. package/node_modules/rimraf/node_modules/lru-cache/dist/commonjs/node/diagnostics-channel.js +9 -0
  358. package/node_modules/rimraf/node_modules/lru-cache/dist/commonjs/node/index.d.ts +1380 -0
  359. package/node_modules/rimraf/node_modules/lru-cache/dist/commonjs/node/index.d.ts.map +1 -0
  360. package/node_modules/rimraf/node_modules/lru-cache/dist/commonjs/node/index.js +1686 -0
  361. package/node_modules/rimraf/node_modules/lru-cache/dist/commonjs/node/index.js.map +1 -0
  362. package/node_modules/rimraf/node_modules/lru-cache/dist/commonjs/node/index.min.js +2 -0
  363. package/node_modules/rimraf/node_modules/lru-cache/dist/commonjs/node/index.min.js.map +7 -0
  364. package/node_modules/rimraf/node_modules/lru-cache/dist/commonjs/node/perf.d.ts +12 -0
  365. package/node_modules/rimraf/node_modules/lru-cache/dist/commonjs/node/perf.d.ts.map +1 -0
  366. package/node_modules/rimraf/node_modules/lru-cache/dist/commonjs/node/perf.js +11 -0
  367. package/node_modules/rimraf/node_modules/lru-cache/dist/commonjs/node/perf.js.map +1 -0
  368. package/node_modules/rimraf/node_modules/lru-cache/dist/commonjs/perf.d.ts +12 -0
  369. package/node_modules/rimraf/node_modules/lru-cache/dist/commonjs/perf.d.ts.map +1 -0
  370. package/node_modules/rimraf/node_modules/lru-cache/dist/commonjs/perf.js +11 -0
  371. package/node_modules/rimraf/node_modules/lru-cache/dist/commonjs/perf.js.map +1 -0
  372. package/node_modules/rimraf/node_modules/lru-cache/dist/esm/browser/diagnostics-channel-browser.d.ts.map +1 -0
  373. package/node_modules/rimraf/node_modules/lru-cache/dist/esm/browser/diagnostics-channel-browser.js.map +1 -0
  374. package/node_modules/rimraf/node_modules/lru-cache/dist/esm/browser/diagnostics-channel.d.ts +1 -1
  375. package/node_modules/rimraf/node_modules/lru-cache/dist/esm/browser/diagnostics-channel.js +1 -1
  376. package/node_modules/rimraf/node_modules/lru-cache/dist/esm/browser/index.d.ts +2 -3
  377. package/node_modules/rimraf/node_modules/lru-cache/dist/esm/browser/index.d.ts.map +1 -1
  378. package/node_modules/rimraf/node_modules/lru-cache/dist/esm/browser/index.js +9 -15
  379. package/node_modules/rimraf/node_modules/lru-cache/dist/esm/browser/index.js.map +1 -1
  380. package/node_modules/rimraf/node_modules/lru-cache/dist/esm/browser/index.min.js +1 -1
  381. package/node_modules/rimraf/node_modules/lru-cache/dist/esm/browser/index.min.js.map +4 -4
  382. package/node_modules/rimraf/node_modules/lru-cache/dist/esm/browser/perf.d.ts +12 -0
  383. package/node_modules/rimraf/node_modules/lru-cache/dist/esm/browser/perf.d.ts.map +1 -0
  384. package/node_modules/rimraf/node_modules/lru-cache/dist/esm/browser/perf.js +8 -0
  385. package/node_modules/rimraf/node_modules/lru-cache/dist/esm/browser/perf.js.map +1 -0
  386. package/node_modules/rimraf/node_modules/lru-cache/dist/esm/diagnostics-channel-esm.d.mts.map +1 -1
  387. package/node_modules/rimraf/node_modules/lru-cache/dist/esm/diagnostics-channel-esm.mjs.map +1 -1
  388. package/node_modules/rimraf/node_modules/lru-cache/dist/esm/index.d.ts +2 -3
  389. package/node_modules/rimraf/node_modules/lru-cache/dist/esm/index.d.ts.map +1 -1
  390. package/node_modules/rimraf/node_modules/lru-cache/dist/esm/index.js +9 -15
  391. package/node_modules/rimraf/node_modules/lru-cache/dist/esm/index.js.map +1 -1
  392. package/node_modules/rimraf/node_modules/lru-cache/dist/esm/index.min.js +1 -1
  393. package/node_modules/rimraf/node_modules/lru-cache/dist/esm/index.min.js.map +4 -4
  394. package/node_modules/rimraf/node_modules/lru-cache/dist/esm/node/diagnostics-channel-node.d.ts.map +1 -0
  395. package/node_modules/rimraf/node_modules/lru-cache/dist/esm/node/diagnostics-channel-node.js.map +1 -0
  396. package/node_modules/rimraf/node_modules/lru-cache/dist/esm/node/diagnostics-channel.d.ts +1 -1
  397. package/node_modules/rimraf/node_modules/lru-cache/dist/esm/node/diagnostics-channel.js +2 -3
  398. package/node_modules/rimraf/node_modules/lru-cache/dist/esm/node/index.d.ts +2 -3
  399. package/node_modules/rimraf/node_modules/lru-cache/dist/esm/node/index.d.ts.map +1 -1
  400. package/node_modules/rimraf/node_modules/lru-cache/dist/esm/node/index.js +9 -15
  401. package/node_modules/rimraf/node_modules/lru-cache/dist/esm/node/index.js.map +1 -1
  402. package/node_modules/rimraf/node_modules/lru-cache/dist/esm/node/index.min.js +1 -1
  403. package/node_modules/rimraf/node_modules/lru-cache/dist/esm/node/index.min.js.map +4 -4
  404. package/node_modules/rimraf/node_modules/lru-cache/dist/esm/node/perf.d.ts +12 -0
  405. package/node_modules/rimraf/node_modules/lru-cache/dist/esm/node/perf.d.ts.map +1 -0
  406. package/node_modules/rimraf/node_modules/lru-cache/dist/esm/node/perf.js +8 -0
  407. package/node_modules/rimraf/node_modules/lru-cache/dist/esm/node/perf.js.map +1 -0
  408. package/node_modules/rimraf/node_modules/lru-cache/dist/esm/perf.d.ts +12 -0
  409. package/node_modules/rimraf/node_modules/lru-cache/dist/esm/perf.d.ts.map +1 -0
  410. package/node_modules/rimraf/node_modules/lru-cache/dist/esm/perf.js +8 -0
  411. package/node_modules/rimraf/node_modules/lru-cache/dist/esm/perf.js.map +1 -0
  412. package/node_modules/rimraf/node_modules/lru-cache/package.json +44 -16
  413. package/package.json +6 -6
  414. package/node_modules/@zuplo/editor/node_modules/fast-json-stringify/.github/stale.yml +0 -21
  415. package/node_modules/@zuplo/editor/node_modules/lru-cache/dist/commonjs/diagnostics-channel.d.ts.map +0 -1
  416. package/node_modules/@zuplo/editor/node_modules/lru-cache/dist/commonjs/diagnostics-channel.js.map +0 -1
  417. package/node_modules/@zuplo/editor/node_modules/lru-cache/dist/esm/browser/diagnostics-channel-browser.d.mts.map +0 -1
  418. package/node_modules/@zuplo/editor/node_modules/lru-cache/dist/esm/browser/diagnostics-channel-browser.mjs.map +0 -1
  419. package/node_modules/@zuplo/editor/node_modules/lru-cache/dist/esm/node/diagnostics-channel-node.d.mts.map +0 -1
  420. package/node_modules/@zuplo/editor/node_modules/lru-cache/dist/esm/node/diagnostics-channel-node.mjs.map +0 -1
  421. package/node_modules/fast-uri/.github/.stale.yml +0 -21
  422. package/node_modules/fast-uri/.github/tests_checker.yml +0 -8
  423. package/node_modules/rimraf/node_modules/lru-cache/dist/commonjs/diagnostics-channel.d.ts.map +0 -1
  424. package/node_modules/rimraf/node_modules/lru-cache/dist/commonjs/diagnostics-channel.js.map +0 -1
  425. package/node_modules/rimraf/node_modules/lru-cache/dist/esm/browser/diagnostics-channel-browser.d.mts.map +0 -1
  426. package/node_modules/rimraf/node_modules/lru-cache/dist/esm/browser/diagnostics-channel-browser.mjs.map +0 -1
  427. package/node_modules/rimraf/node_modules/lru-cache/dist/esm/node/diagnostics-channel-node.d.mts.map +0 -1
  428. package/node_modules/rimraf/node_modules/lru-cache/dist/esm/node/diagnostics-channel-node.mjs.map +0 -1
@@ -19,11 +19,14 @@ export default function mergeConfig(config1, config2) {
19
19
  config2 = config2 || {};
20
20
 
21
21
  // Use a null-prototype object so that downstream reads such as `config.auth`
22
- // or `config.baseURL` cannot inherit polluted values from Object.prototype
23
- // (see GHSA-q8qp-cvcw-x6jj). `hasOwnProperty` is restored as a non-enumerable
24
- // own slot to preserve ergonomics for user code that relies on it.
22
+ // or `config.baseURL` cannot inherit polluted values from Object.prototype.
23
+ // `hasOwnProperty` is restored as a non-enumerable own slot to preserve
24
+ // ergonomics for user code that relies on it.
25
25
  const config = Object.create(null);
26
26
  Object.defineProperty(config, 'hasOwnProperty', {
27
+ // Null-proto descriptor so a polluted Object.prototype.get cannot turn
28
+ // this data descriptor into an accessor descriptor on the way in.
29
+ __proto__: null,
27
30
  value: Object.prototype.hasOwnProperty,
28
31
  enumerable: false,
29
32
  writable: true,
@@ -16,16 +16,12 @@ export default function settle(resolve, reject, response) {
16
16
  if (!response.status || !validateStatus || validateStatus(response.status)) {
17
17
  resolve(response);
18
18
  } else {
19
- reject(
20
- new AxiosError(
21
- 'Request failed with status code ' + response.status,
22
- [AxiosError.ERR_BAD_REQUEST, AxiosError.ERR_BAD_RESPONSE][
23
- Math.floor(response.status / 100) - 4
24
- ],
25
- response.config,
26
- response.request,
27
- response
28
- )
29
- );
19
+ reject(new AxiosError(
20
+ 'Request failed with status code ' + response.status,
21
+ response.status >= 400 && response.status < 500 ? AxiosError.ERR_BAD_REQUEST : AxiosError.ERR_BAD_RESPONSE,
22
+ response.config,
23
+ response.request,
24
+ response
25
+ ));
30
26
  }
31
27
  }
@@ -170,7 +170,7 @@ const defaults = {
170
170
  },
171
171
  };
172
172
 
173
- utils.forEach(['delete', 'get', 'head', 'post', 'put', 'patch'], (method) => {
173
+ utils.forEach(['delete', 'get', 'head', 'post', 'put', 'patch', 'query'], (method) => {
174
174
  defaults.headers[method] = {};
175
175
  });
176
176
 
@@ -1 +1 @@
1
- export const VERSION = "1.15.2";
1
+ export const VERSION = "1.16.0";
@@ -11,7 +11,7 @@ import AxiosURLSearchParams from '../helpers/AxiosURLSearchParams.js';
11
11
  *
12
12
  * @returns {string} The encoded value.
13
13
  */
14
- function encode(val) {
14
+ export function encode(val) {
15
15
  return encodeURIComponent(val)
16
16
  .replace(/%3A/gi, ':')
17
17
  .replace(/%24/g, '$')
@@ -30,8 +30,20 @@ export default platform.hasStandardBrowserEnv
30
30
 
31
31
  read(name) {
32
32
  if (typeof document === 'undefined') return null;
33
- const match = document.cookie.match(new RegExp('(?:^|; )' + name + '=([^;]*)'));
34
- return match ? decodeURIComponent(match[1]) : null;
33
+ // Match name=value by splitting on the semicolon separator instead of building a
34
+ // RegExp from `name` interpolating an unescaped string into a RegExp would let
35
+ // metacharacters (e.g. `.+?` in an attacker-influenced cookie name) cause ReDoS or
36
+ // match the wrong cookie. Browsers may serialize cookie pairs as either ";" or
37
+ // "; ", so ignore optional whitespace before each cookie name.
38
+ const cookies = document.cookie.split(';');
39
+ for (let i = 0; i < cookies.length; i++) {
40
+ const cookie = cookies[i].replace(/^\s+/, '');
41
+ const eq = cookie.indexOf('=');
42
+ if (eq !== -1 && cookie.slice(0, eq) === name) {
43
+ return decodeURIComponent(cookie.slice(eq + 1));
44
+ }
45
+ }
46
+ return null;
35
47
  },
36
48
 
37
49
  remove(name) {
@@ -69,5 +69,32 @@ export default function estimateDataURLDecodedBytes(url) {
69
69
  return bytes > 0 ? bytes : 0;
70
70
  }
71
71
 
72
- return Buffer.byteLength(body, 'utf8');
72
+ if (typeof Buffer !== 'undefined' && typeof Buffer.byteLength === 'function') {
73
+ return Buffer.byteLength(body, 'utf8');
74
+ }
75
+
76
+ // Compute UTF-8 byte length directly from UTF-16 code units without allocating
77
+ // a byte buffer (TextEncoder.encode would defeat the DoS guard on large bodies).
78
+ // Using body.length here would undercount non-ASCII (e.g. '€' is 1 code unit
79
+ // but 3 UTF-8 bytes).
80
+ let bytes = 0;
81
+ for (let i = 0, len = body.length; i < len; i++) {
82
+ const c = body.charCodeAt(i);
83
+ if (c < 0x80) {
84
+ bytes += 1;
85
+ } else if (c < 0x800) {
86
+ bytes += 2;
87
+ } else if (c >= 0xd800 && c <= 0xdbff && i + 1 < len) {
88
+ const next = body.charCodeAt(i + 1);
89
+ if (next >= 0xdc00 && next <= 0xdfff) {
90
+ bytes += 4;
91
+ i++;
92
+ } else {
93
+ bytes += 3;
94
+ }
95
+ } else {
96
+ bytes += 3;
97
+ }
98
+ }
99
+ return bytes;
73
100
  }
@@ -77,7 +77,7 @@ const formDataToStream = (form, headersHandler, options) => {
77
77
  }
78
78
 
79
79
  if (boundary.length < 1 || boundary.length > 70) {
80
- throw Error('boundary must be 10-70 characters long');
80
+ throw Error('boundary must be 1-70 characters long');
81
81
  }
82
82
 
83
83
  const boundaryBytes = textEncoder.encode('--' + boundary + CRLF);
@@ -1,6 +1,6 @@
1
1
  'use strict';
2
2
 
3
3
  export default function parseProtocol(url) {
4
- const match = /^([-+\w]{1,25})(:?\/\/|:)/.exec(url);
4
+ const match = /^([-+\w]{1,25}):(?:\/\/)?/.exec(url);
5
5
  return (match && match[1]) || '';
6
6
  }
@@ -7,11 +7,39 @@ import mergeConfig from '../core/mergeConfig.js';
7
7
  import AxiosHeaders from '../core/AxiosHeaders.js';
8
8
  import buildURL from './buildURL.js';
9
9
 
10
+ const FORM_DATA_CONTENT_HEADERS = ['content-type', 'content-length'];
11
+
12
+ function setFormDataHeaders(headers, formHeaders, policy) {
13
+ if (policy !== 'content-only') {
14
+ headers.set(formHeaders);
15
+ return;
16
+ }
17
+
18
+ Object.entries(formHeaders).forEach(([key, val]) => {
19
+ if (FORM_DATA_CONTENT_HEADERS.includes(key.toLowerCase())) {
20
+ headers.set(key, val);
21
+ }
22
+ });
23
+ }
24
+
25
+ /**
26
+ * Encode a UTF-8 string to a Latin-1 byte string for use with btoa().
27
+ * This is a modern replacement for the deprecated unescape(encodeURIComponent(str)) pattern.
28
+ *
29
+ * @param {string} str The string to encode
30
+ *
31
+ * @returns {string} UTF-8 bytes as a Latin-1 string
32
+ */
33
+ const encodeUTF8 = (str) =>
34
+ encodeURIComponent(str).replace(/%([0-9A-F]{2})/gi, (_, hex) =>
35
+ String.fromCharCode(parseInt(hex, 16))
36
+ );
37
+
10
38
  export default (config) => {
11
39
  const newConfig = mergeConfig({}, config);
12
40
 
13
41
  // Read only own properties to prevent prototype pollution gadgets
14
- // (e.g. Object.prototype.baseURL = 'https://evil.com'). See GHSA-q8qp-cvcw-x6jj.
42
+ // (e.g. Object.prototype.baseURL = 'https://evil.com').
15
43
  const own = (key) => (utils.hasOwnProp(newConfig, key) ? newConfig[key] : undefined);
16
44
 
17
45
  const data = own('data');
@@ -37,11 +65,7 @@ export default (config) => {
37
65
  headers.set(
38
66
  'Authorization',
39
67
  'Basic ' +
40
- btoa(
41
- (auth.username || '') +
42
- ':' +
43
- (auth.password ? unescape(encodeURIComponent(auth.password)) : '')
44
- )
68
+ btoa((auth.username || '') + ':' + (auth.password ? encodeUTF8(auth.password) : ''))
45
69
  );
46
70
  }
47
71
 
@@ -50,14 +74,7 @@ export default (config) => {
50
74
  headers.setContentType(undefined); // browser handles it
51
75
  } else if (utils.isFunction(data.getHeaders)) {
52
76
  // Node.js FormData (like form-data package)
53
- const formHeaders = data.getHeaders();
54
- // Only set safe headers to avoid overwriting security headers
55
- const allowedHeaders = ['content-type', 'content-length'];
56
- Object.entries(formHeaders).forEach(([key, val]) => {
57
- if (allowedHeaders.includes(key.toLowerCase())) {
58
- headers.set(key, val);
59
- }
60
- });
77
+ setFormDataHeaders(headers, data.getHeaders(), own('formDataHeaderPolicy'));
61
78
  }
62
79
  }
63
80
 
@@ -72,10 +89,9 @@ export default (config) => {
72
89
 
73
90
  // Strict boolean check — prevents proto-pollution gadgets (e.g. Object.prototype.withXSRFToken = 1)
74
91
  // and misconfigurations (e.g. "false") from short-circuiting the same-origin check and leaking
75
- // the XSRF token cross-origin. See GHSA-xx6v-rp6x-q39c.
92
+ // the XSRF token cross-origin.
76
93
  const shouldSendXSRF =
77
- withXSRFToken === true ||
78
- (withXSRFToken == null && isURLSameOrigin(newConfig.url));
94
+ withXSRFToken === true || (withXSRFToken == null && isURLSameOrigin(newConfig.url));
79
95
 
80
96
  if (shouldSendXSRF) {
81
97
  const xsrfValue = xsrfHeaderName && xsrfCookieName && cookies.read(xsrfCookieName);
@@ -87,6 +87,31 @@ const parseNoProxyEntry = (entry) => {
87
87
  return [entryHost, entryPort];
88
88
  };
89
89
 
90
+ // Convert IPv4-mapped IPv6 (::ffff:0:0/96 prefix) to IPv4 dotted form so both
91
+ // sides of a NO_PROXY comparison see the same canonical address. Without this,
92
+ // `NO_PROXY=192.168.1.5` would not match a request to `http://[::ffff:192.168.1.5]/`
93
+ // (Node's URL parser normalises that to `[::ffff:c0a8:105]`), and vice-versa,
94
+ // allowing the proxy-bypass policy to be circumvented by using the alternate
95
+ // representation. Returns the input unchanged when not IPv4-mapped.
96
+ const IPV4_MAPPED_DOTTED_RE = /^(?:::|(?:0{1,4}:){1,4}:|(?:0{1,4}:){5})ffff:(\d+\.\d+\.\d+\.\d+)$/i;
97
+ const IPV4_MAPPED_HEX_RE = /^(?:::|(?:0{1,4}:){1,4}:|(?:0{1,4}:){5})ffff:([0-9a-f]{1,4}):([0-9a-f]{1,4})$/i;
98
+
99
+ const unmapIPv4MappedIPv6 = (host) => {
100
+ if (typeof host !== 'string' || host.indexOf(':') === -1) return host;
101
+
102
+ const dotted = host.match(IPV4_MAPPED_DOTTED_RE);
103
+ if (dotted) return dotted[1];
104
+
105
+ const hex = host.match(IPV4_MAPPED_HEX_RE);
106
+ if (hex) {
107
+ const high = parseInt(hex[1], 16);
108
+ const low = parseInt(hex[2], 16);
109
+ return `${high >> 8}.${high & 0xff}.${low >> 8}.${low & 0xff}`;
110
+ }
111
+
112
+ return host;
113
+ };
114
+
90
115
  const normalizeNoProxyHost = (hostname) => {
91
116
  if (!hostname) {
92
117
  return hostname;
@@ -96,7 +121,7 @@ const normalizeNoProxyHost = (hostname) => {
96
121
  hostname = hostname.slice(1, -1);
97
122
  }
98
123
 
99
- return hostname.replace(/\.+$/, '');
124
+ return unmapIPv4MappedIPv6(hostname.replace(/\.+$/, ''));
100
125
  };
101
126
 
102
127
  export default function shouldBypassProxy(location) {
@@ -87,7 +87,7 @@ function assertOptions(options, schema, allowUnknown) {
87
87
  while (i-- > 0) {
88
88
  const opt = keys[i];
89
89
  // Use hasOwnProperty so a polluted Object.prototype.<opt> cannot supply
90
- // a non-function validator and cause a TypeError. See GHSA-q8qp-cvcw-x6jj.
90
+ // a non-function validator and cause a TypeError.
91
91
  const validator = Object.prototype.hasOwnProperty.call(schema, opt) ? schema[opt] : undefined;
92
92
  if (validator) {
93
93
  const value = options[opt];
@@ -192,21 +192,21 @@ const isFile = kindOfTest('File');
192
192
  * also have a `name` and `type` attribute to specify filename and content type
193
193
  *
194
194
  * @see https://github.com/facebook/react-native/blob/26684cf3adf4094eb6c405d345a75bf8c7c0bf88/Libraries/Network/FormData.js#L68-L71
195
- *
195
+ *
196
196
  * @param {*} value The value to test
197
- *
197
+ *
198
198
  * @returns {boolean} True if value is a React Native Blob, otherwise false
199
199
  */
200
200
  const isReactNativeBlob = (value) => {
201
201
  return !!(value && typeof value.uri !== 'undefined');
202
- }
202
+ };
203
203
 
204
204
  /**
205
205
  * Determine if environment is React Native
206
206
  * ReactNative `FormData` has a non-standard `getParts()` method
207
- *
207
+ *
208
208
  * @param {*} formData The formData to test
209
- *
209
+ *
210
210
  * @returns {boolean} True if environment is React Native, otherwise false
211
211
  */
212
212
  const isReactNative = (formData) => formData && typeof formData.getParts !== 'undefined';
@@ -225,7 +225,7 @@ const isBlob = kindOfTest('Blob');
225
225
  *
226
226
  * @param {*} val The value to test
227
227
  *
228
- * @returns {boolean} True if value is a File, otherwise false
228
+ * @returns {boolean} True if value is a FileList, otherwise false
229
229
  */
230
230
  const isFileList = kindOfTest('FileList');
231
231
 
@@ -259,14 +259,16 @@ const FormDataCtor = typeof G.FormData !== 'undefined' ? G.FormData : undefined;
259
259
  const isFormData = (thing) => {
260
260
  if (!thing) return false;
261
261
  if (FormDataCtor && thing instanceof FormDataCtor) return true;
262
- // Reject plain objects inheriting directly from Object.prototype so prototype-pollution gadgets can't spoof FormData (GHSA-6chq-wfr3-2hj9).
262
+ // Reject plain objects inheriting directly from Object.prototype so prototype-pollution gadgets can't spoof FormData.
263
263
  const proto = getPrototypeOf(thing);
264
264
  if (!proto || proto === Object.prototype) return false;
265
265
  if (!isFunction(thing.append)) return false;
266
266
  const kind = kindOf(thing);
267
- return kind === 'formdata' ||
267
+ return (
268
+ kind === 'formdata' ||
268
269
  // detect form-data instance
269
- (kind === 'object' && isFunction(thing.toString) && thing.toString() === '[object FormData]');
270
+ (kind === 'object' && isFunction(thing.toString) && thing.toString() === '[object FormData]')
271
+ );
270
272
  };
271
273
 
272
274
  /**
@@ -401,7 +403,7 @@ const isContextDefined = (context) => !isUndefined(context) && context !== _glob
401
403
  *
402
404
  * @returns {Object} Result of all merge properties
403
405
  */
404
- function merge(/* obj1, obj2, obj3, ... */) {
406
+ function merge(...objs) {
405
407
  const { caseless, skipUndefined } = (isContextDefined(this) && this) || {};
406
408
  const result = {};
407
409
  const assignValue = (val, key) => {
@@ -411,8 +413,12 @@ function merge(/* obj1, obj2, obj3, ... */) {
411
413
  }
412
414
 
413
415
  const targetKey = (caseless && findKey(result, key)) || key;
414
- if (isPlainObject(result[targetKey]) && isPlainObject(val)) {
415
- result[targetKey] = merge(result[targetKey], val);
416
+ // Read via own-prop only — a bare `result[targetKey]` walks the prototype
417
+ // chain, so a polluted Object.prototype value could surface here and get
418
+ // copied into the merged result.
419
+ const existing = hasOwnProperty(result, targetKey) ? result[targetKey] : undefined;
420
+ if (isPlainObject(existing) && isPlainObject(val)) {
421
+ result[targetKey] = merge(existing, val);
416
422
  } else if (isPlainObject(val)) {
417
423
  result[targetKey] = merge({}, val);
418
424
  } else if (isArray(val)) {
@@ -422,8 +428,8 @@ function merge(/* obj1, obj2, obj3, ... */) {
422
428
  }
423
429
  };
424
430
 
425
- for (let i = 0, l = arguments.length; i < l; i++) {
426
- arguments[i] && forEach(arguments[i], assignValue);
431
+ for (let i = 0, l = objs.length; i < l; i++) {
432
+ objs[i] && forEach(objs[i], assignValue);
427
433
  }
428
434
  return result;
429
435
  }
@@ -445,6 +451,9 @@ const extend = (a, b, thisArg, { allOwnKeys } = {}) => {
445
451
  (val, key) => {
446
452
  if (thisArg && isFunction(val)) {
447
453
  Object.defineProperty(a, key, {
454
+ // Null-proto descriptor so a polluted Object.prototype.get cannot
455
+ // hijack defineProperty's accessor-vs-data resolution.
456
+ __proto__: null,
448
457
  value: bind(val, thisArg),
449
458
  writable: true,
450
459
  enumerable: true,
@@ -452,6 +461,7 @@ const extend = (a, b, thisArg, { allOwnKeys } = {}) => {
452
461
  });
453
462
  } else {
454
463
  Object.defineProperty(a, key, {
464
+ __proto__: null,
455
465
  value: val,
456
466
  writable: true,
457
467
  enumerable: true,
@@ -490,12 +500,14 @@ const stripBOM = (content) => {
490
500
  const inherits = (constructor, superConstructor, props, descriptors) => {
491
501
  constructor.prototype = Object.create(superConstructor.prototype, descriptors);
492
502
  Object.defineProperty(constructor.prototype, 'constructor', {
503
+ __proto__: null,
493
504
  value: constructor,
494
505
  writable: true,
495
506
  enumerable: false,
496
507
  configurable: true,
497
508
  });
498
509
  Object.defineProperty(constructor, 'super', {
510
+ __proto__: null,
499
511
  value: superConstructor.prototype,
500
512
  });
501
513
  props && Object.assign(constructor.prototype, props);
@@ -677,7 +689,7 @@ const reduceDescriptors = (obj, reducer) => {
677
689
  const freezeMethods = (obj) => {
678
690
  reduceDescriptors(obj, (descriptor, name) => {
679
691
  // skip restricted props in strict mode
680
- if (isFunction(obj) && ['arguments', 'caller', 'callee'].indexOf(name) !== -1) {
692
+ if (isFunction(obj) && ['arguments', 'caller', 'callee'].includes(name)) {
681
693
  return false;
682
694
  }
683
695
 
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "axios",
3
- "version": "1.15.2",
3
+ "version": "1.16.0",
4
4
  "description": "Promise based HTTP client for the browser and node.js",
5
5
  "main": "./dist/node/axios.cjs",
6
6
  "module": "./index.js",
@@ -82,13 +82,13 @@
82
82
  "Dmitriy Mozgovoy (https://github.com/DigitalBrainJS)",
83
83
  "Nick Uraltsev (https://github.com/nickuraltsev)",
84
84
  "Emily Morehouse (https://github.com/emilyemorehouse)",
85
- "Justin Beckwith (https://github.com/JustinBeckwith)",
86
85
  "Rubén Norte (https://github.com/rubennorte)",
86
+ "Justin Beckwith (https://github.com/JustinBeckwith)",
87
87
  "Martti Laine (https://github.com/codeclown)",
88
88
  "Xianming Zhong (https://github.com/chinesedfan)",
89
- "Remco Haszing (https://github.com/remcohaszing)",
90
- "Shaan Majid (https://github.com/shaanmajid)",
91
89
  "Willian Agostini (https://github.com/WillianAgostini)",
90
+ "Shaan Majid (https://github.com/shaanmajid)",
91
+ "Remco Haszing (https://github.com/remcohaszing)",
92
92
  "Rikki Gibson (https://github.com/RikkiGibson)"
93
93
  ],
94
94
  "sideEffects": false,
@@ -121,15 +121,15 @@
121
121
  "prepare": "husky"
122
122
  },
123
123
  "dependencies": {
124
- "follow-redirects": "^1.15.11",
124
+ "follow-redirects": "^1.16.0",
125
125
  "form-data": "^4.0.5",
126
126
  "proxy-from-env": "^2.1.0"
127
127
  },
128
128
  "devDependencies": {
129
129
  "@babel/core": "^7.29.0",
130
- "@babel/preset-env": "^7.29.0",
131
- "@commitlint/cli": "^20.4.4",
132
- "@commitlint/config-conventional": "^20.4.4",
130
+ "@babel/preset-env": "^7.29.2",
131
+ "@commitlint/cli": "^20.5.0",
132
+ "@commitlint/config-conventional": "^20.5.0",
133
133
  "@eslint/js": "^10.0.1",
134
134
  "@rollup/plugin-alias": "^6.0.0",
135
135
  "@rollup/plugin-babel": "^7.0.0",
@@ -137,40 +137,33 @@
137
137
  "@rollup/plugin-json": "^6.1.0",
138
138
  "@rollup/plugin-node-resolve": "^16.0.3",
139
139
  "@rollup/plugin-terser": "^1.0.0",
140
- "@vitest/browser": "^4.1.1",
141
- "@vitest/browser-playwright": "^4.1.1",
140
+ "@vitest/browser": "^4.1.5",
141
+ "@vitest/browser-playwright": "^4.1.5",
142
142
  "abortcontroller-polyfill": "^1.7.8",
143
- "auto-changelog": "^2.5.0",
144
143
  "body-parser": "^2.2.2",
145
144
  "chalk": "^5.6.2",
146
145
  "cross-env": "^10.1.0",
147
146
  "dev-null": "^0.1.1",
148
- "eslint": "^10.1.0",
147
+ "eslint": "^10.2.1",
149
148
  "express": "^5.2.1",
150
149
  "formdata-node": "^6.0.3",
151
- "formidable": "^3.2.4",
150
+ "formidable": "^3.5.4",
152
151
  "fs-extra": "^11.3.4",
153
152
  "get-stream": "^9.0.1",
154
- "globals": "^17.4.0",
153
+ "globals": "^17.5.0",
155
154
  "gulp": "^5.0.1",
156
- "handlebars": "^4.7.8",
157
155
  "husky": "^9.1.7",
158
156
  "lint-staged": "^16.4.0",
159
- "memoizee": "^0.4.17",
160
157
  "minimist": "^1.2.8",
161
158
  "multer": "^2.1.1",
162
- "pacote": "^21.5.0",
163
- "playwright": "^1.58.2",
164
- "prettier": "^3.8.1",
165
- "pretty-bytes": "^7.1.0",
166
- "rollup": "^4.60.0",
159
+ "playwright": "^1.59.1",
160
+ "prettier": "^3.8.3",
161
+ "rollup": "^4.60.2",
167
162
  "rollup-plugin-bundle-size": "^1.0.3",
168
163
  "selfsigned": "^5.5.0",
169
164
  "stream-throttle": "^0.1.3",
170
- "string-replace-async": "^3.0.2",
171
- "tar-stream": "^3.1.8",
172
165
  "typescript": "^5.9.3",
173
- "vitest": "^4.1.1"
166
+ "vitest": "^4.1.5"
174
167
  },
175
168
  "commitlint": {
176
169
  "rules": {
@@ -14,6 +14,11 @@ on:
14
14
  - 'docs/**'
15
15
  - '*.md'
16
16
 
17
+ # This allows a subsequently queued workflow run to interrupt previous runs
18
+ concurrency:
19
+ group: "${{ github.workflow }}-${{ github.event.pull_request.head.label || github.head_ref || github.ref }}"
20
+ cancel-in-progress: true
21
+
17
22
  permissions:
18
23
  contents: read
19
24
 
@@ -24,11 +29,11 @@ jobs:
24
29
  permissions:
25
30
  contents: read
26
31
  steps:
27
- - uses: actions/checkout@v4
32
+ - uses: actions/checkout@v6
28
33
  with:
29
34
  persist-credentials: false
30
35
 
31
- - uses: actions/setup-node@v4
36
+ - uses: actions/setup-node@v6
32
37
  with:
33
38
  node-version: '10'
34
39
  cache: 'npm'
@@ -66,11 +71,11 @@ jobs:
66
71
  permissions:
67
72
  contents: read
68
73
  steps:
69
- - uses: actions/checkout@v4
74
+ - uses: actions/checkout@v6
70
75
  with:
71
76
  persist-credentials: false
72
77
 
73
- - uses: actions/setup-node@v4
78
+ - uses: actions/setup-node@v6
74
79
  with:
75
80
  node-version: '24'
76
81
  cache: 'npm'
@@ -80,21 +85,21 @@ jobs:
80
85
  - name: Install dependencies
81
86
  run: |
82
87
  npm install --ignore-scripts
83
-
88
+
84
89
  - if: ${{ matrix.os == 'windows-latest' }}
85
90
  run: npx playwright install winldd
86
91
 
87
92
  - name: Run browser tests
88
93
  run: |
89
94
  npm run test:browser:${{ matrix.browser }}
90
-
95
+
91
96
  test:
92
97
  needs:
93
98
  - test-regression-check-node10
94
99
  permissions:
95
100
  contents: write
96
101
  pull-requests: write
97
- uses: fastify/workflows/.github/workflows/plugins-ci.yml@v5
102
+ uses: fastify/workflows/.github/workflows/plugins-ci.yml@v6
98
103
  with:
99
104
  license-check: true
100
105
  lint: true
@@ -0,0 +1,19 @@
1
+ name: Lock Threads
2
+
3
+ on:
4
+ schedule:
5
+ - cron: '0 0 1 * *'
6
+ workflow_dispatch:
7
+
8
+ concurrency:
9
+ group: lock
10
+
11
+ permissions:
12
+ contents: read
13
+
14
+ jobs:
15
+ lock-threads:
16
+ permissions:
17
+ issues: write
18
+ pull-requests: write
19
+ uses: fastify/workflows/.github/workflows/lock-threads.yml@v6
@@ -21,4 +21,4 @@ jobs:
21
21
  test:
22
22
  permissions:
23
23
  contents: read
24
- uses: fastify/workflows/.github/workflows/plugins-ci-package-manager.yml@v5
24
+ uses: fastify/workflows/.github/workflows/plugins-ci-package-manager.yml@v6
@@ -1,9 +1,7 @@
1
1
  Copyright (c) 2011-2021, Gary Court until https://github.com/garycourt/uri-js/commit/a1acf730b4bba3f1097c9f52e7d9d3aba8cdcaae
2
- Copyright (c) 2021-present The Fastify team
2
+ Copyright (c) 2021-present The Fastify team <https://github.com/fastify/fastify#team>
3
3
  All rights reserved.
4
4
 
5
- The Fastify team members are listed at https://github.com/fastify/fastify#team.
6
-
7
5
  Redistribution and use in source and binary forms, with or without
8
6
  modification, are permitted provided that the following conditions are met:
9
7
  * Redistributions of source code must retain the above copyright
@@ -1,13 +1,9 @@
1
1
  # fast-uri
2
2
 
3
- <div align="center">
4
-
5
3
  [![NPM version](https://img.shields.io/npm/v/fast-uri.svg?style=flat)](https://www.npmjs.com/package/fast-uri)
6
4
  [![CI](https://github.com/fastify/fast-uri/actions/workflows/ci.yml/badge.svg?branch=main)](https://github.com/fastify/fast-uri/actions/workflows/ci.yml)
7
5
  [![neostandard javascript style](https://img.shields.io/badge/code_style-neostandard-brightgreen?style=flat)](https://github.com/neostandard/neostandard)
8
6
 
9
- </div>
10
-
11
7
  Dependency-free RFC 3986 URI toolbox.
12
8
 
13
9
  ## Usage
@@ -16,6 +12,8 @@ Dependency-free RFC 3986 URI toolbox.
16
12
 
17
13
  All of the above functions can accept an additional options argument that is an object that can contain one or more of the following properties:
18
14
 
15
+ Malformed authorities and out-of-range ports are reported through the parsed component's `error` field. `normalize()` leaves malformed string inputs unchanged, and `equal()` returns `false` when either string input is malformed.
16
+
19
17
  * `scheme` (string)
20
18
  Indicates the scheme that the URI should be treated as, overriding the URI's normal scheme parsing behavior.
21
19
 
@@ -70,6 +68,17 @@ uri.resolve("uri://a/b/c/d?q", "../../g")
70
68
  "uri://a/g"
71
69
  ```
72
70
 
71
+ ### Normalize
72
+
73
+ ```js
74
+ const uri = require('fast-uri')
75
+ uri.normalize('http://example.com/a%2Fb')
76
+ // Output
77
+ "http://example.com/a%2Fb"
78
+ ```
79
+
80
+ Reserved path escapes such as `%2F` and `%2E` are preserved as path data during normalization and comparison.
81
+
73
82
  ### Equal
74
83
 
75
84
  ```js