@automattic/vip 4.1.5 → 4.1.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 (1819) hide show
  1. package/assets/dev-env.lando.template.yml.ejs +7 -3
  2. package/config/config.local.json +6 -0
  3. package/dist/bin/vip-app-deploy-token-generate.js +110 -78
  4. package/dist/bin/vip-app-deploy-token.js +24 -16
  5. package/dist/bin/vip-app-deploy-validate.js +45 -41
  6. package/dist/bin/vip-app-deploy.js +222 -215
  7. package/dist/bin/vip-app-list.js +59 -43
  8. package/dist/bin/vip-app.js +97 -66
  9. package/dist/bin/vip-backup-db.js +36 -29
  10. package/dist/bin/vip-backup.js +16 -9
  11. package/dist/bin/vip-cache-purge-url.js +93 -55
  12. package/dist/bin/vip-cache.js +23 -14
  13. package/dist/bin/vip-config-envvar-delete.js +74 -73
  14. package/dist/bin/vip-config-envvar-get-all.js +68 -68
  15. package/dist/bin/vip-config-envvar-get.js +46 -46
  16. package/dist/bin/vip-config-envvar-list.js +54 -57
  17. package/dist/bin/vip-config-envvar-set.js +102 -96
  18. package/dist/bin/vip-config-envvar.js +38 -24
  19. package/dist/bin/vip-config-software-get.js +89 -67
  20. package/dist/bin/vip-config-software-update.js +116 -120
  21. package/dist/bin/vip-config-software.js +31 -21
  22. package/dist/bin/vip-config.js +25 -17
  23. package/dist/bin/vip-db-phpmyadmin.js +40 -39
  24. package/dist/bin/vip-db.js +13 -12
  25. package/dist/bin/vip-defensive-mode-configure.js +197 -197
  26. package/dist/bin/vip-defensive-mode-disable.js +43 -35
  27. package/dist/bin/vip-defensive-mode-enable.js +47 -38
  28. package/dist/bin/vip-defensive-mode.js +28 -17
  29. package/dist/bin/vip-dev-env-create.js +147 -104
  30. package/dist/bin/vip-dev-env-destroy.js +48 -39
  31. package/dist/bin/vip-dev-env-envvar-delete.js +60 -49
  32. package/dist/bin/vip-dev-env-envvar-get-all.js +52 -45
  33. package/dist/bin/vip-dev-env-envvar-get.js +48 -37
  34. package/dist/bin/vip-dev-env-envvar-list.js +48 -41
  35. package/dist/bin/vip-dev-env-envvar-set.js +83 -70
  36. package/dist/bin/vip-dev-env-envvar.js +38 -23
  37. package/dist/bin/vip-dev-env-exec.js +81 -74
  38. package/dist/bin/vip-dev-env-import-media.js +34 -26
  39. package/dist/bin/vip-dev-env-import-sql.js +65 -51
  40. package/dist/bin/vip-dev-env-import.js +23 -14
  41. package/dist/bin/vip-dev-env-info.js +59 -50
  42. package/dist/bin/vip-dev-env-list.js +34 -31
  43. package/dist/bin/vip-dev-env-logs.js +59 -49
  44. package/dist/bin/vip-dev-env-purge.js +71 -63
  45. package/dist/bin/vip-dev-env-shell.js +82 -71
  46. package/dist/bin/vip-dev-env-start.js +77 -65
  47. package/dist/bin/vip-dev-env-stop.js +80 -74
  48. package/dist/bin/vip-dev-env-sync-sql.js +80 -72
  49. package/dist/bin/vip-dev-env-sync.js +18 -11
  50. package/dist/bin/vip-dev-env-update.js +93 -84
  51. package/dist/bin/vip-dev-env.js +25 -8
  52. package/dist/bin/vip-edge-workers-build.js +82 -54
  53. package/dist/bin/vip-edge-workers-delete.js +84 -52
  54. package/dist/bin/vip-edge-workers-deploy.js +186 -126
  55. package/dist/bin/vip-edge-workers-disable.js +75 -44
  56. package/dist/bin/vip-edge-workers-enable.js +86 -54
  57. package/dist/bin/vip-edge-workers-get.js +108 -88
  58. package/dist/bin/vip-edge-workers-init.js +83 -53
  59. package/dist/bin/vip-edge-workers-list.js +89 -54
  60. package/dist/bin/vip-edge-workers-new.js +98 -69
  61. package/dist/bin/vip-edge-workers-validate.js +123 -82
  62. package/dist/bin/vip-edge-workers.js +19 -6
  63. package/dist/bin/vip-export-sql.js +75 -69
  64. package/dist/bin/vip-export.js +12 -7
  65. package/dist/bin/vip-import-media-abort.js +99 -73
  66. package/dist/bin/vip-import-media-status.js +83 -51
  67. package/dist/bin/vip-import-media.js +165 -166
  68. package/dist/bin/vip-import-sql-status.js +75 -45
  69. package/dist/bin/vip-import-sql.js +536 -596
  70. package/dist/bin/vip-import-validate-files.js +122 -141
  71. package/dist/bin/vip-import-validate-sql.js +52 -16
  72. package/dist/bin/vip-import.js +16 -7
  73. package/dist/bin/vip-logout.js +17 -13
  74. package/dist/bin/vip-logs.js +209 -183
  75. package/dist/bin/vip-search-replace.js +85 -53
  76. package/dist/bin/vip-slowlogs.js +168 -147
  77. package/dist/bin/vip-sync.js +163 -133
  78. package/dist/bin/vip-whoami.js +71 -35
  79. package/dist/bin/vip-wp.js +505 -459
  80. package/dist/bin/vip.js +161 -116
  81. package/dist/commands/backup-db.js +183 -149
  82. package/dist/commands/dev-env-import-sql.js +162 -117
  83. package/dist/commands/dev-env-sync-sql.js +372 -330
  84. package/dist/commands/export-sql.js +441 -425
  85. package/dist/commands/phpmyadmin.js +232 -212
  86. package/dist/commands/wp-ssh.js +218 -187
  87. package/dist/lib/analytics/clients/tracks.js +84 -91
  88. package/dist/lib/analytics/index.js +27 -27
  89. package/dist/lib/api/app.js +37 -36
  90. package/dist/lib/api/cache-purge.js +17 -20
  91. package/dist/lib/api/constants.js +5 -6
  92. package/dist/lib/api/edge-workers.js +84 -135
  93. package/dist/lib/api/error-debug.js +10 -13
  94. package/dist/lib/api/feature-flags.js +16 -17
  95. package/dist/lib/api/http.js +47 -48
  96. package/dist/lib/api/user.js +17 -18
  97. package/dist/lib/api.js +107 -116
  98. package/dist/lib/app-logs/app-logs.js +24 -25
  99. package/dist/lib/app-slowlogs/app-slowlogs.js +23 -24
  100. package/dist/lib/app-slowlogs/types.js +2 -1
  101. package/dist/lib/app.js +6 -8
  102. package/dist/lib/backup-storage-availability/backup-storage-availability.js +119 -119
  103. package/dist/lib/backup-storage-availability/docker-machine-not-found-error.js +5 -6
  104. package/dist/lib/cli/apiConfig.js +71 -41
  105. package/dist/lib/cli/command.js +1120 -873
  106. package/dist/lib/cli/config.js +29 -29
  107. package/dist/lib/cli/envAlias.js +35 -50
  108. package/dist/lib/cli/exit.js +19 -19
  109. package/dist/lib/cli/format.js +172 -172
  110. package/dist/lib/cli/progress.js +193 -236
  111. package/dist/lib/cli/prompt.js +14 -15
  112. package/dist/lib/cli/runtime-mode.js +5 -6
  113. package/dist/lib/client-file-uploader.js +492 -615
  114. package/dist/lib/config/software.js +225 -191
  115. package/dist/lib/constants/dev-environment.js +40 -37
  116. package/dist/lib/constants/file-size.js +6 -7
  117. package/dist/lib/constants/vipgo.js +24 -12
  118. package/dist/lib/custom-deploy/custom-deploy.js +138 -120
  119. package/dist/lib/database.js +88 -85
  120. package/dist/lib/defensive-mode/api.js +41 -46
  121. package/dist/lib/defensive-mode/cli-helpers.js +40 -40
  122. package/dist/lib/dev-environment/dev-environment-cli.js +776 -735
  123. package/dist/lib/dev-environment/dev-environment-configuration-file.js +224 -191
  124. package/dist/lib/dev-environment/dev-environment-core.js +697 -732
  125. package/dist/lib/dev-environment/dev-environment-database.js +57 -41
  126. package/dist/lib/dev-environment/dev-environment-lando.js +734 -666
  127. package/dist/lib/dev-environment/docker-utils.js +96 -90
  128. package/dist/lib/dev-environment/env-vars.js +61 -59
  129. package/dist/lib/dev-environment/lando-loader.js +6 -7
  130. package/dist/lib/dev-environment/types.js +2 -1
  131. package/dist/lib/edge-workers/confirmation.js +42 -36
  132. package/dist/lib/edge-workers/deployment.js +150 -159
  133. package/dist/lib/edge-workers/index.js +68 -85
  134. package/dist/lib/edge-workers/location.js +26 -26
  135. package/dist/lib/edge-workers/output.js +14 -15
  136. package/dist/lib/edge-workers/project.js +123 -132
  137. package/dist/lib/edge-workers/toolchains/assemblyscript/constants.js +6 -8
  138. package/dist/lib/edge-workers/toolchains/assemblyscript/index.js +100 -101
  139. package/dist/lib/edge-workers/toolchains/assemblyscript/templates.js +31 -33
  140. package/dist/lib/edge-workers/toolchains/index.js +15 -15
  141. package/dist/lib/edge-workers/types.js +10 -38
  142. package/dist/lib/edge-workers/validation.js +161 -150
  143. package/dist/lib/env.js +16 -17
  144. package/dist/lib/envvar/api-delete.js +16 -18
  145. package/dist/lib/envvar/api-get-all.js +15 -19
  146. package/dist/lib/envvar/api-get.js +8 -9
  147. package/dist/lib/envvar/api-list.js +16 -21
  148. package/dist/lib/envvar/api-set.js +20 -19
  149. package/dist/lib/envvar/api.js +34 -29
  150. package/dist/lib/envvar/input.js +29 -34
  151. package/dist/lib/envvar/logging.js +9 -11
  152. package/dist/lib/envvar/read-file.js +6 -7
  153. package/dist/lib/http/download-file.js +76 -44
  154. package/dist/lib/http/proxy-agent.js +37 -40
  155. package/dist/lib/http/proxy-dispatcher.js +69 -71
  156. package/dist/lib/keychain/insecure.js +40 -36
  157. package/dist/lib/keychain/keychain.js +2 -1
  158. package/dist/lib/keychain/secure.js +16 -15
  159. package/dist/lib/keychain.js +22 -22
  160. package/dist/lib/live-backup-copy.js +117 -115
  161. package/dist/lib/logout.js +17 -19
  162. package/dist/lib/media-import/config.js +15 -14
  163. package/dist/lib/media-import/media-file-import.js +9 -13
  164. package/dist/lib/media-import/progress.js +53 -65
  165. package/dist/lib/media-import/status.js +241 -256
  166. package/dist/lib/media-import/utils.js +15 -15
  167. package/dist/lib/node-version-check.js +16 -16
  168. package/dist/lib/promise.js +16 -17
  169. package/dist/lib/read-file.js +48 -16
  170. package/dist/lib/rechallenge/client.js +37 -43
  171. package/dist/lib/rechallenge/errors.js +38 -37
  172. package/dist/lib/rechallenge/flow.js +148 -123
  173. package/dist/lib/rechallenge/index.js +23 -24
  174. package/dist/lib/rechallenge/link.js +153 -151
  175. package/dist/lib/rechallenge/open-browser.js +14 -17
  176. package/dist/lib/rechallenge/token-cache.js +83 -86
  177. package/dist/lib/rechallenge/types.js +5 -14
  178. package/dist/lib/retry.js +93 -129
  179. package/dist/lib/search-and-replace.js +164 -148
  180. package/dist/lib/site-import/db-file-import.js +12 -16
  181. package/dist/lib/site-import/status.js +291 -291
  182. package/dist/lib/token.js +86 -87
  183. package/dist/lib/tracker.js +51 -62
  184. package/dist/lib/types/graphql/rate-limit-exceeded-error.js +2 -1
  185. package/dist/lib/types.js +2 -1
  186. package/dist/lib/user-error.js +6 -8
  187. package/dist/lib/utils.js +81 -87
  188. package/dist/lib/validations/custom-deploy.js +218 -186
  189. package/dist/lib/validations/is-multi-site-sql-dump.js +6 -6
  190. package/dist/lib/validations/is-multi-site.js +83 -50
  191. package/dist/lib/validations/is-multisite-domain-mapped.js +92 -62
  192. package/dist/lib/validations/line-by-line.js +78 -46
  193. package/dist/lib/validations/site-type.js +59 -63
  194. package/dist/lib/validations/sql-insert-parser.js +415 -0
  195. package/dist/lib/validations/sql.js +551 -431
  196. package/dist/lib/validations/utils.js +27 -29
  197. package/dist/lib/vip-import-validate-files.js +481 -490
  198. package/dist/lib/wp/helpers.js +41 -45
  199. package/dist/lib/wp/readline.js +21 -57
  200. package/dist/lib/xdg-data.js +11 -12
  201. package/helpers/generate-docs.js +9 -3
  202. package/helpers/mark-cli-executable.js +9 -0
  203. package/node_modules/@apollo/client/CHANGELOG.md +42 -0
  204. package/node_modules/@apollo/client/__cjs/cache/core/cache.cjs +1 -1
  205. package/node_modules/@apollo/client/__cjs/cache/core/cache.cjs.map +1 -1
  206. package/node_modules/@apollo/client/__cjs/cache/core/cache.d.cts +4 -1
  207. package/node_modules/@apollo/client/__cjs/cache/core/types/Cache.d.cts +5 -0
  208. package/node_modules/@apollo/client/__cjs/cache/inmemory/entityStore.cjs +4 -4
  209. package/node_modules/@apollo/client/__cjs/cache/inmemory/helpers.cjs +5 -0
  210. package/node_modules/@apollo/client/__cjs/cache/inmemory/helpers.cjs.map +1 -1
  211. package/node_modules/@apollo/client/__cjs/cache/inmemory/inMemoryCache.cjs +17 -6
  212. package/node_modules/@apollo/client/__cjs/cache/inmemory/inMemoryCache.cjs.map +1 -1
  213. package/node_modules/@apollo/client/__cjs/cache/inmemory/inMemoryCache.d.cts +3 -1
  214. package/node_modules/@apollo/client/__cjs/cache/inmemory/key-extractor.cjs +15 -3
  215. package/node_modules/@apollo/client/__cjs/cache/inmemory/key-extractor.cjs.map +1 -1
  216. package/node_modules/@apollo/client/__cjs/cache/inmemory/policies.cjs +21 -5
  217. package/node_modules/@apollo/client/__cjs/cache/inmemory/policies.cjs.map +1 -1
  218. package/node_modules/@apollo/client/__cjs/cache/inmemory/policies.d.cts +2 -0
  219. package/node_modules/@apollo/client/__cjs/cache/inmemory/readFromStore.cjs +28 -10
  220. package/node_modules/@apollo/client/__cjs/cache/inmemory/readFromStore.cjs.map +1 -1
  221. package/node_modules/@apollo/client/__cjs/cache/inmemory/types.d.cts +7 -2
  222. package/node_modules/@apollo/client/__cjs/cache/inmemory/writeToStore.cjs +32 -16
  223. package/node_modules/@apollo/client/__cjs/cache/inmemory/writeToStore.cjs.map +1 -1
  224. package/node_modules/@apollo/client/__cjs/cache/inmemory/writeToStore.d.cts +5 -2
  225. package/node_modules/@apollo/client/__cjs/core/ApolloClient.cjs +14 -14
  226. package/node_modules/@apollo/client/__cjs/core/ObservableQuery.cjs +8 -8
  227. package/node_modules/@apollo/client/__cjs/core/QueryInfo.cjs +22 -33
  228. package/node_modules/@apollo/client/__cjs/core/QueryInfo.cjs.map +1 -1
  229. package/node_modules/@apollo/client/__cjs/core/QueryInfo.d.cts +1 -1
  230. package/node_modules/@apollo/client/__cjs/core/QueryManager.cjs +22 -15
  231. package/node_modules/@apollo/client/__cjs/core/QueryManager.cjs.map +1 -1
  232. package/node_modules/@apollo/client/__cjs/core/RefetchEventManager.cjs +3 -3
  233. package/node_modules/@apollo/client/__cjs/incremental/handlers/defer20220824.cjs +15 -2
  234. package/node_modules/@apollo/client/__cjs/incremental/handlers/defer20220824.cjs.map +1 -1
  235. package/node_modules/@apollo/client/__cjs/incremental/handlers/defer20220824.d.cts +5 -1
  236. package/node_modules/@apollo/client/__cjs/incremental/handlers/graphql17Alpha9.cjs +58 -14
  237. package/node_modules/@apollo/client/__cjs/incremental/handlers/graphql17Alpha9.cjs.map +1 -1
  238. package/node_modules/@apollo/client/__cjs/incremental/handlers/graphql17Alpha9.d.cts +23 -12
  239. package/node_modules/@apollo/client/__cjs/incremental/handlers/notImplemented.cjs +1 -1
  240. package/node_modules/@apollo/client/__cjs/incremental/types.d.cts +19 -1
  241. package/node_modules/@apollo/client/__cjs/invariantErrorCodes.cjs +64 -58
  242. package/node_modules/@apollo/client/__cjs/link/http/parseAndCheckHttpResponse.cjs +1 -1
  243. package/node_modules/@apollo/client/__cjs/link/http/parseAndCheckHttpResponse.cjs.map +1 -1
  244. package/node_modules/@apollo/client/__cjs/react/hooks/useFragment.cjs.map +1 -1
  245. package/node_modules/@apollo/client/__cjs/react/hooks/useFragment.d.cts +42 -43
  246. package/node_modules/@apollo/client/__cjs/utilities/internal/index.cjs.map +1 -1
  247. package/node_modules/@apollo/client/__cjs/utilities/internal/index.d.cts +0 -1
  248. package/node_modules/@apollo/client/__cjs/utilities/internal/isDeferredFragment.cjs +24 -26
  249. package/node_modules/@apollo/client/__cjs/utilities/internal/isDeferredFragment.cjs.map +1 -1
  250. package/node_modules/@apollo/client/__cjs/utilities/internal/isDeferredFragment.d.cts +1 -1
  251. package/node_modules/@apollo/client/__cjs/utilities/internal/isStreamField.cjs +24 -20
  252. package/node_modules/@apollo/client/__cjs/utilities/internal/isStreamField.cjs.map +1 -1
  253. package/node_modules/@apollo/client/__cjs/utilities/internal/isStreamField.d.cts +1 -1
  254. package/node_modules/@apollo/client/__cjs/version.cjs +1 -1
  255. package/node_modules/@apollo/client/cache/core/cache.d.ts +4 -1
  256. package/node_modules/@apollo/client/cache/core/cache.js +1 -1
  257. package/node_modules/@apollo/client/cache/core/cache.js.map +1 -1
  258. package/node_modules/@apollo/client/cache/core/types/Cache.d.ts +5 -0
  259. package/node_modules/@apollo/client/cache/core/types/Cache.js.map +1 -1
  260. package/node_modules/@apollo/client/cache/inmemory/entityStore.js +4 -4
  261. package/node_modules/@apollo/client/cache/inmemory/helpers.js +5 -0
  262. package/node_modules/@apollo/client/cache/inmemory/helpers.js.map +1 -1
  263. package/node_modules/@apollo/client/cache/inmemory/inMemoryCache.d.ts +3 -1
  264. package/node_modules/@apollo/client/cache/inmemory/inMemoryCache.js +17 -6
  265. package/node_modules/@apollo/client/cache/inmemory/inMemoryCache.js.map +1 -1
  266. package/node_modules/@apollo/client/cache/inmemory/key-extractor.js +15 -3
  267. package/node_modules/@apollo/client/cache/inmemory/key-extractor.js.map +1 -1
  268. package/node_modules/@apollo/client/cache/inmemory/policies.d.ts +2 -0
  269. package/node_modules/@apollo/client/cache/inmemory/policies.js +22 -6
  270. package/node_modules/@apollo/client/cache/inmemory/policies.js.map +1 -1
  271. package/node_modules/@apollo/client/cache/inmemory/readFromStore.js +28 -10
  272. package/node_modules/@apollo/client/cache/inmemory/readFromStore.js.map +1 -1
  273. package/node_modules/@apollo/client/cache/inmemory/types.d.ts +7 -2
  274. package/node_modules/@apollo/client/cache/inmemory/types.js.map +1 -1
  275. package/node_modules/@apollo/client/cache/inmemory/writeToStore.d.ts +5 -2
  276. package/node_modules/@apollo/client/cache/inmemory/writeToStore.js +33 -17
  277. package/node_modules/@apollo/client/cache/inmemory/writeToStore.js.map +1 -1
  278. package/node_modules/@apollo/client/core/ApolloClient.js +14 -14
  279. package/node_modules/@apollo/client/core/ObservableQuery.js +8 -8
  280. package/node_modules/@apollo/client/core/QueryInfo.d.ts +1 -1
  281. package/node_modules/@apollo/client/core/QueryInfo.js +23 -34
  282. package/node_modules/@apollo/client/core/QueryInfo.js.map +1 -1
  283. package/node_modules/@apollo/client/core/QueryManager.js +22 -15
  284. package/node_modules/@apollo/client/core/QueryManager.js.map +1 -1
  285. package/node_modules/@apollo/client/core/RefetchEventManager.js +3 -3
  286. package/node_modules/@apollo/client/incremental/handlers/defer20220824.d.ts +5 -1
  287. package/node_modules/@apollo/client/incremental/handlers/defer20220824.js +15 -2
  288. package/node_modules/@apollo/client/incremental/handlers/defer20220824.js.map +1 -1
  289. package/node_modules/@apollo/client/incremental/handlers/graphql17Alpha9.d.ts +23 -12
  290. package/node_modules/@apollo/client/incremental/handlers/graphql17Alpha9.js +58 -14
  291. package/node_modules/@apollo/client/incremental/handlers/graphql17Alpha9.js.map +1 -1
  292. package/node_modules/@apollo/client/incremental/handlers/notImplemented.js +1 -1
  293. package/node_modules/@apollo/client/incremental/types.d.ts +19 -1
  294. package/node_modules/@apollo/client/incremental/types.js.map +1 -1
  295. package/node_modules/@apollo/client/invariantErrorCodes.js +64 -58
  296. package/node_modules/@apollo/client/link/http/parseAndCheckHttpResponse.js +1 -1
  297. package/node_modules/@apollo/client/link/http/parseAndCheckHttpResponse.js.map +1 -1
  298. package/node_modules/@apollo/client/package.json +1 -1
  299. package/node_modules/@apollo/client/react/hooks/useFragment.d.ts +42 -43
  300. package/node_modules/@apollo/client/react/hooks/useFragment.js.map +1 -1
  301. package/node_modules/@apollo/client/react/hooks-compiled/useFragment.d.ts +42 -43
  302. package/node_modules/@apollo/client/react/hooks-compiled/useFragment.js.map +1 -1
  303. package/node_modules/@apollo/client/utilities/internal/index.d.ts +0 -1
  304. package/node_modules/@apollo/client/utilities/internal/index.js.map +1 -1
  305. package/node_modules/@apollo/client/utilities/internal/isDeferredFragment.d.ts +1 -1
  306. package/node_modules/@apollo/client/utilities/internal/isDeferredFragment.js +23 -25
  307. package/node_modules/@apollo/client/utilities/internal/isDeferredFragment.js.map +1 -1
  308. package/node_modules/@apollo/client/utilities/internal/isStreamField.d.ts +1 -1
  309. package/node_modules/@apollo/client/utilities/internal/isStreamField.js +23 -19
  310. package/node_modules/@apollo/client/utilities/internal/isStreamField.js.map +1 -1
  311. package/node_modules/@apollo/client/version.js +1 -1
  312. package/node_modules/@automattic/vip-search-replace/README.md +6 -1
  313. package/node_modules/@automattic/vip-search-replace/lib/index.js +46 -14
  314. package/node_modules/@automattic/vip-search-replace/package.json +1 -1
  315. package/node_modules/@types/node/README.md +1 -1
  316. package/node_modules/@types/node/crypto.d.ts +2 -2
  317. package/node_modules/@types/node/dgram.d.ts +1 -1
  318. package/node_modules/@types/node/package.json +2 -2
  319. package/node_modules/@types/node/util.d.ts +6 -3
  320. package/node_modules/@types/node/zlib.d.ts +758 -0
  321. package/node_modules/axios/CHANGELOG.md +62 -0
  322. package/node_modules/axios/README.md +297 -5
  323. package/node_modules/axios/dist/axios.js +728 -170
  324. package/node_modules/axios/dist/axios.min.js +3 -3
  325. package/node_modules/axios/dist/axios.min.js.map +1 -1
  326. package/node_modules/axios/dist/browser/axios.cjs +871 -188
  327. package/node_modules/axios/dist/esm/axios.js +871 -188
  328. package/node_modules/axios/dist/esm/axios.min.js +2 -2
  329. package/node_modules/axios/dist/esm/axios.min.js.map +1 -1
  330. package/node_modules/axios/dist/node/axios.cjs +1037 -225
  331. package/node_modules/axios/index.d.cts +102 -74
  332. package/node_modules/axios/index.d.ts +100 -68
  333. package/node_modules/axios/lib/adapters/fetch.js +64 -11
  334. package/node_modules/axios/lib/adapters/http.js +140 -67
  335. package/node_modules/axios/lib/adapters/xhr.js +52 -3
  336. package/node_modules/axios/lib/core/Axios.js +43 -20
  337. package/node_modules/axios/lib/core/AxiosError.js +33 -2
  338. package/node_modules/axios/lib/core/AxiosHeaders.js +124 -1
  339. package/node_modules/axios/lib/core/InterceptorManager.js +107 -8
  340. package/node_modules/axios/lib/core/buildFullPath.js +41 -15
  341. package/node_modules/axios/lib/core/dispatchRequest.js +8 -2
  342. package/node_modules/axios/lib/core/mergeConfig.js +19 -4
  343. package/node_modules/axios/lib/core/methodList.js +17 -0
  344. package/node_modules/axios/lib/core/setFormDataHeaders.js +27 -0
  345. package/node_modules/axios/lib/defaults/index.js +2 -1
  346. package/node_modules/axios/lib/env/data.js +1 -1
  347. package/node_modules/axios/lib/helpers/Http2Sessions.js +2 -0
  348. package/node_modules/axios/lib/helpers/HttpStatusCode.js +12 -1
  349. package/node_modules/axios/lib/helpers/combineURLs.js +11 -3
  350. package/node_modules/axios/lib/helpers/composeSignals.js +12 -1
  351. package/node_modules/axios/lib/helpers/estimateDataURLDecodedBytes.js +115 -54
  352. package/node_modules/axios/lib/helpers/formDataToJSON.js +11 -5
  353. package/node_modules/axios/lib/helpers/fromDataURI.js +5 -4
  354. package/node_modules/axios/lib/helpers/normalizeURLForProtocolCheck.js +24 -0
  355. package/node_modules/axios/lib/helpers/parseHeaders.js +5 -3
  356. package/node_modules/axios/lib/helpers/progressEventReducer.js +4 -4
  357. package/node_modules/axios/lib/helpers/resolveConfig.js +5 -17
  358. package/node_modules/axios/lib/helpers/shouldBypassProxy.js +300 -5
  359. package/node_modules/axios/lib/helpers/throttle.js +3 -2
  360. package/node_modules/axios/lib/helpers/toFormData.js +17 -23
  361. package/node_modules/axios/lib/platform/node/classes/Buffer.js +11 -0
  362. package/node_modules/axios/lib/utils.js +151 -18
  363. package/node_modules/axios/package.json +21 -19
  364. package/node_modules/chalk/package.json +1 -1
  365. package/node_modules/chalk/source/index.js +2 -1
  366. package/node_modules/check-disk-space/README.md +92 -32
  367. package/node_modules/check-disk-space/dist/check-disk-space.d.mts +58 -0
  368. package/node_modules/check-disk-space/dist/check-disk-space.mjs +170 -190
  369. package/node_modules/check-disk-space/package.json +43 -71
  370. package/node_modules/cpu-features/build/Makefile +2 -2
  371. package/node_modules/cpu-features/build/Release/.deps/Release/obj.target/cpu_features/deps/cpu_features/src/filesystem.o.d +1 -1
  372. package/node_modules/cpu-features/build/Release/.deps/Release/obj.target/cpu_features/deps/cpu_features/src/impl_aarch64_linux_or_android.o.d +1 -1
  373. package/node_modules/cpu-features/build/Release/.deps/Release/obj.target/cpu_features/deps/cpu_features/src/impl_aarch64_macos_or_iphone.o.d +1 -1
  374. package/node_modules/cpu-features/build/Release/.deps/Release/obj.target/cpu_features/deps/cpu_features/src/impl_aarch64_windows.o.d +1 -1
  375. package/node_modules/cpu-features/build/Release/.deps/Release/obj.target/cpu_features/deps/cpu_features/src/impl_arm_linux_or_android.o.d +1 -1
  376. package/node_modules/cpu-features/build/Release/.deps/Release/obj.target/cpu_features/deps/cpu_features/src/impl_mips_linux_or_android.o.d +1 -1
  377. package/node_modules/cpu-features/build/Release/.deps/Release/obj.target/cpu_features/deps/cpu_features/src/impl_ppc_linux.o.d +1 -1
  378. package/node_modules/cpu-features/build/Release/.deps/Release/obj.target/cpu_features/deps/cpu_features/src/impl_x86_freebsd.o.d +1 -1
  379. package/node_modules/cpu-features/build/Release/.deps/Release/obj.target/cpu_features/deps/cpu_features/src/impl_x86_linux_or_android.o.d +1 -1
  380. package/node_modules/cpu-features/build/Release/.deps/Release/obj.target/cpu_features/deps/cpu_features/src/impl_x86_macos.o.d +1 -1
  381. package/node_modules/cpu-features/build/Release/.deps/Release/obj.target/cpu_features/deps/cpu_features/src/impl_x86_windows.o.d +1 -1
  382. package/node_modules/cpu-features/build/Release/.deps/Release/obj.target/cpu_features/deps/cpu_features/src/stack_line_reader.o.d +1 -1
  383. package/node_modules/cpu-features/build/Release/.deps/Release/obj.target/cpu_features/deps/cpu_features/src/string_view.o.d +1 -1
  384. package/node_modules/cpu-features/build/Release/.deps/Release/obj.target/cpufeatures/src/binding.o.d +157 -145
  385. package/node_modules/cpu-features/build/Release/cpufeatures.node +0 -0
  386. package/node_modules/cpu-features/build/Release/obj.target/cpufeatures/src/binding.o +0 -0
  387. package/node_modules/cpu-features/build/Release/obj.target/cpufeatures.node +0 -0
  388. package/node_modules/cpu-features/build/config.gypi +100 -31
  389. package/node_modules/cpu-features/build/cpufeatures.target.mk +14 -14
  390. package/node_modules/cpu-features/build/deps/cpu_features/cpu_features.target.mk +14 -14
  391. package/node_modules/ejs/README.md +64 -28
  392. package/node_modules/ejs/bin/cli.js +220 -158
  393. package/node_modules/ejs/ejs.js +64 -94
  394. package/node_modules/ejs/ejs.min.js +1 -1
  395. package/node_modules/ejs/jakefile.js +44 -0
  396. package/node_modules/ejs/lib/cjs/ejs.js +64 -63
  397. package/node_modules/ejs/lib/cjs/parseargs.js +129 -77
  398. package/node_modules/ejs/lib/cjs/utils.js +0 -31
  399. package/node_modules/ejs/lib/esm/ejs.js +66 -65
  400. package/node_modules/ejs/lib/esm/parseargs.js +136 -82
  401. package/node_modules/ejs/lib/esm/utils.js +0 -32
  402. package/node_modules/ejs/package.json +3 -2
  403. package/node_modules/ejs/usage.txt +9 -9
  404. package/node_modules/follow-redirects/index.js +10 -1
  405. package/node_modules/follow-redirects/package.json +1 -1
  406. package/node_modules/graphql-ws/dist/client.cjs +28 -13
  407. package/node_modules/graphql-ws/dist/client.js +28 -13
  408. package/node_modules/graphql-ws/dist/index.cjs +1 -1
  409. package/node_modules/graphql-ws/dist/index.d.cts +1 -1
  410. package/node_modules/graphql-ws/dist/index.d.ts +1 -1
  411. package/node_modules/graphql-ws/dist/index.js +1 -1
  412. package/node_modules/graphql-ws/dist/{server-B8ZBs9OC.d.ts → server-BzBeHlSW.d.ts} +26 -1
  413. package/node_modules/graphql-ws/dist/{server-DN5-9C2B.cjs → server-Ce-Z86Ys.cjs} +10 -4
  414. package/node_modules/graphql-ws/dist/{server-ChpuX357.d.cts → server-u6zrlwzL.d.cts} +26 -1
  415. package/node_modules/graphql-ws/dist/{server-DHPI7HHW.js → server-zBhvXJ_Z.js} +10 -4
  416. package/node_modules/graphql-ws/dist/use/@fastify/websocket.cjs +2 -2
  417. package/node_modules/graphql-ws/dist/use/@fastify/websocket.d.cts +8 -2
  418. package/node_modules/graphql-ws/dist/use/@fastify/websocket.d.ts +8 -2
  419. package/node_modules/graphql-ws/dist/use/@fastify/websocket.js +2 -2
  420. package/node_modules/graphql-ws/dist/use/bun.cjs +1 -1
  421. package/node_modules/graphql-ws/dist/use/bun.d.cts +2 -2
  422. package/node_modules/graphql-ws/dist/use/bun.d.ts +2 -2
  423. package/node_modules/graphql-ws/dist/use/bun.js +2 -2
  424. package/node_modules/graphql-ws/dist/use/crossws.cjs +16 -4
  425. package/node_modules/graphql-ws/dist/use/crossws.d.cts +6 -1
  426. package/node_modules/graphql-ws/dist/use/crossws.d.ts +6 -1
  427. package/node_modules/graphql-ws/dist/use/crossws.js +16 -4
  428. package/node_modules/graphql-ws/dist/use/deno.d.ts +1 -1
  429. package/node_modules/graphql-ws/dist/use/deno.js +1 -1
  430. package/node_modules/graphql-ws/dist/use/uWebSockets.cjs +2 -2
  431. package/node_modules/graphql-ws/dist/use/uWebSockets.d.cts +8 -2
  432. package/node_modules/graphql-ws/dist/use/uWebSockets.d.ts +8 -2
  433. package/node_modules/graphql-ws/dist/use/uWebSockets.js +2 -2
  434. package/node_modules/graphql-ws/dist/use/ws.cjs +2 -2
  435. package/node_modules/graphql-ws/dist/use/ws.d.cts +8 -2
  436. package/node_modules/graphql-ws/dist/use/ws.d.ts +8 -2
  437. package/node_modules/graphql-ws/dist/use/ws.js +2 -2
  438. package/node_modules/graphql-ws/package.json +3 -3
  439. package/node_modules/graphql-ws/umd/graphql-ws.js +28 -13
  440. package/node_modules/graphql-ws/umd/graphql-ws.min.js +1 -1
  441. package/node_modules/graphql-ws/umd/graphql-ws.min.js.gz +0 -0
  442. package/node_modules/js-yaml/dist/browser/js-yaml.esm.min.mjs +522 -495
  443. package/node_modules/js-yaml/dist/browser/js-yaml.esm.min.mjs.map +1 -1
  444. package/node_modules/js-yaml/dist/browser/js-yaml.umd.min.js +24 -24
  445. package/node_modules/js-yaml/dist/browser/js-yaml.umd.min.js.map +1 -1
  446. package/node_modules/js-yaml/dist/js-yaml.cjs.js +135 -78
  447. package/node_modules/js-yaml/dist/js-yaml.cjs.js.map +1 -1
  448. package/node_modules/js-yaml/dist/js-yaml.mjs +129 -72
  449. package/node_modules/js-yaml/dist/js-yaml.mjs.map +1 -1
  450. package/node_modules/js-yaml/node_modules/argparse/LICENSE +47 -0
  451. package/node_modules/js-yaml/node_modules/argparse/README.md +89 -0
  452. package/node_modules/js-yaml/node_modules/argparse/lib/_colorize.js +72 -0
  453. package/node_modules/js-yaml/node_modules/argparse/lib/argparse.d.ts +292 -0
  454. package/node_modules/{argparse → js-yaml/node_modules/argparse/lib}/argparse.js +1142 -1029
  455. package/node_modules/js-yaml/node_modules/argparse/lib/difflib.js +190 -0
  456. package/node_modules/{argparse → js-yaml/node_modules/argparse}/lib/sub.js +4 -4
  457. package/node_modules/{argparse → js-yaml/node_modules/argparse}/lib/textwrap.js +28 -28
  458. package/node_modules/js-yaml/node_modules/argparse/package.json +38 -0
  459. package/node_modules/js-yaml/package.json +12 -12
  460. package/node_modules/lando/.github/dependabot.yml +4 -0
  461. package/node_modules/lando/.github/workflows/build-util-images.yml +1 -1
  462. package/node_modules/lando/.github/workflows/pr-core-tests.yml +4 -2
  463. package/node_modules/lando/.github/workflows/pr-db-tools-tests.yml +4 -2
  464. package/node_modules/lando/.github/workflows/pr-django-tests.yml +4 -2
  465. package/node_modules/lando/.github/workflows/pr-linter.yml +2 -2
  466. package/node_modules/lando/.github/workflows/pr-unit-tests.yml +2 -2
  467. package/node_modules/lando/.node-version +1 -1
  468. package/node_modules/lando/bin/lando.js +3 -83
  469. package/node_modules/lando/config.yml +0 -1
  470. package/node_modules/lando/eslint.config.mjs +4 -0
  471. package/node_modules/lando/examples/django/.lando.yml +1 -1
  472. package/node_modules/lando/examples/django/README.md +1 -1
  473. package/node_modules/lando/examples/django/requirements.txt +1 -1
  474. package/node_modules/lando/examples/sql-export/README.md +5 -0
  475. package/node_modules/lando/lib/app.js +78 -84
  476. package/node_modules/lando/lib/art.js +86 -30
  477. package/node_modules/lando/lib/bootstrap.js +148 -45
  478. package/node_modules/lando/lib/cache.js +14 -15
  479. package/node_modules/lando/lib/cli.js +67 -63
  480. package/node_modules/lando/lib/compose.js +76 -45
  481. package/node_modules/lando/lib/config.js +51 -33
  482. package/node_modules/lando/lib/daemon.js +27 -10
  483. package/node_modules/lando/lib/docker.js +46 -19
  484. package/node_modules/lando/lib/engine.js +131 -144
  485. package/node_modules/lando/lib/env.js +25 -46
  486. package/node_modules/lando/lib/error.js +15 -6
  487. package/node_modules/lando/lib/esm/package.json +3 -0
  488. package/node_modules/lando/lib/esm/string-argv.js +2 -0
  489. package/node_modules/lando/lib/esm/yargs.js +2 -0
  490. package/node_modules/lando/lib/events.js +15 -15
  491. package/node_modules/lando/lib/factory.js +43 -14
  492. package/node_modules/lando/lib/formatters.js +19 -31
  493. package/node_modules/lando/lib/lando.js +59 -48
  494. package/node_modules/lando/lib/logger.js +12 -24
  495. package/node_modules/lando/lib/plugins.js +27 -15
  496. package/node_modules/lando/lib/promise.js +17 -17
  497. package/node_modules/lando/lib/router.js +75 -21
  498. package/node_modules/lando/lib/scan.js +29 -12
  499. package/node_modules/lando/lib/shell.js +44 -20
  500. package/node_modules/lando/lib/user.js +14 -20
  501. package/node_modules/lando/lib/utils.js +87 -44
  502. package/node_modules/lando/lib/yaml.js +11 -9
  503. package/node_modules/lando/node_modules/ansi-regex/index.d.ts +33 -0
  504. package/node_modules/lando/node_modules/ansi-regex/index.js +15 -0
  505. package/node_modules/lando/node_modules/ansi-regex/package.json +61 -0
  506. package/node_modules/lando/node_modules/ansi-regex/readme.md +66 -0
  507. package/node_modules/lando/node_modules/cliui/README.md +26 -6
  508. package/node_modules/lando/node_modules/cliui/build/lib/index.js +2 -2
  509. package/node_modules/lando/node_modules/cliui/build/tsconfig.tsbuildinfo +1 -0
  510. package/node_modules/lando/node_modules/cliui/index.mjs +7 -5
  511. package/node_modules/lando/node_modules/cliui/node_modules/string-width/index.d.ts +39 -0
  512. package/node_modules/lando/node_modules/cliui/node_modules/string-width/index.js +82 -0
  513. package/node_modules/lando/node_modules/cliui/node_modules/string-width/license +9 -0
  514. package/node_modules/lando/node_modules/cliui/node_modules/string-width/package.json +64 -0
  515. package/node_modules/lando/node_modules/cliui/node_modules/string-width/readme.md +66 -0
  516. package/node_modules/lando/node_modules/cliui/package.json +21 -32
  517. package/node_modules/lando/node_modules/emoji-regex/LICENSE-MIT.txt +20 -0
  518. package/node_modules/lando/node_modules/emoji-regex/README.md +107 -0
  519. package/node_modules/lando/node_modules/emoji-regex/index.d.ts +3 -0
  520. package/node_modules/lando/node_modules/emoji-regex/index.js +4 -0
  521. package/node_modules/lando/node_modules/emoji-regex/index.mjs +4 -0
  522. package/node_modules/lando/node_modules/emoji-regex/package.json +45 -0
  523. package/node_modules/lando/node_modules/string-width/index.d.ts +39 -0
  524. package/node_modules/lando/node_modules/string-width/index.js +203 -0
  525. package/node_modules/lando/node_modules/string-width/license +9 -0
  526. package/node_modules/lando/node_modules/string-width/package.json +65 -0
  527. package/node_modules/lando/node_modules/string-width/readme.md +66 -0
  528. package/node_modules/lando/node_modules/strip-ansi/index.d.ts +15 -0
  529. package/node_modules/lando/node_modules/strip-ansi/index.js +19 -0
  530. package/node_modules/lando/node_modules/strip-ansi/license +9 -0
  531. package/node_modules/lando/node_modules/strip-ansi/package.json +59 -0
  532. package/node_modules/lando/node_modules/strip-ansi/readme.md +37 -0
  533. package/node_modules/lando/node_modules/yargs/README.md +16 -36
  534. package/node_modules/lando/node_modules/yargs/browser.d.ts +5 -0
  535. package/node_modules/lando/node_modules/yargs/browser.mjs +2 -2
  536. package/node_modules/lando/node_modules/yargs/build/lib/command.js +308 -211
  537. package/node_modules/lando/node_modules/yargs/build/lib/completion-templates.js +28 -9
  538. package/node_modules/lando/node_modules/yargs/build/lib/completion.js +233 -91
  539. package/node_modules/lando/node_modules/yargs/build/lib/middleware.js +51 -16
  540. package/node_modules/lando/node_modules/yargs/build/lib/usage.js +88 -52
  541. package/node_modules/lando/node_modules/yargs/build/lib/utils/apply-extends.js +4 -2
  542. package/node_modules/lando/node_modules/yargs/build/lib/utils/levenshtein.js +9 -1
  543. package/node_modules/lando/node_modules/yargs/build/lib/utils/maybe-async-result.js +17 -0
  544. package/node_modules/lando/node_modules/yargs/build/lib/validation.js +51 -54
  545. package/node_modules/lando/node_modules/yargs/build/lib/yargs-factory.js +1261 -887
  546. package/node_modules/lando/node_modules/yargs/build/lib/yerror.js +3 -1
  547. package/node_modules/lando/node_modules/yargs/index.mjs +4 -2
  548. package/node_modules/lando/node_modules/yargs/lib/platform-shims/browser.mjs +9 -2
  549. package/node_modules/lando/node_modules/yargs/lib/platform-shims/esm.mjs +22 -22
  550. package/node_modules/lando/node_modules/yargs/locales/cs.json +51 -0
  551. package/node_modules/lando/node_modules/yargs/locales/de.json +1 -1
  552. package/node_modules/lando/node_modules/yargs/locales/en.json +4 -0
  553. package/node_modules/lando/node_modules/yargs/locales/fi.json +1 -1
  554. package/node_modules/lando/node_modules/yargs/locales/he.json +55 -0
  555. package/node_modules/lando/node_modules/yargs/locales/ka.json +55 -0
  556. package/node_modules/lando/node_modules/yargs/locales/ko.json +25 -25
  557. package/node_modules/lando/node_modules/yargs/locales/ru.json +6 -1
  558. package/node_modules/lando/node_modules/yargs/locales/uk_UA.json +51 -0
  559. package/node_modules/lando/node_modules/yargs/locales/uz.json +52 -0
  560. package/node_modules/lando/node_modules/yargs/locales/zh_TW.json +50 -46
  561. package/node_modules/lando/node_modules/yargs/package.json +41 -60
  562. package/node_modules/lando/node_modules/yargs-parser/build/lib/index.js +13 -8
  563. package/node_modules/lando/node_modules/yargs-parser/build/lib/yargs-parser.js +21 -12
  564. package/node_modules/lando/node_modules/yargs-parser/package.json +31 -40
  565. package/node_modules/lando/package.json +59 -22
  566. package/node_modules/lando/plugins/lando-compose/index.js +4 -0
  567. package/node_modules/lando/plugins/lando-compose/lib/utils.js +16 -7
  568. package/node_modules/lando/plugins/lando-core/index.js +1 -2
  569. package/node_modules/lando/plugins/lando-core/lib/utils.js +35 -15
  570. package/node_modules/lando/plugins/lando-core/lib/warnings.js +27 -0
  571. package/node_modules/lando/plugins/lando-core/tasks/destroy.js +1 -1
  572. package/node_modules/lando/plugins/lando-core/tasks/rebuild.js +1 -1
  573. package/node_modules/lando/plugins/lando-events/index.js +4 -0
  574. package/node_modules/lando/plugins/lando-events/lib/utils.js +27 -6
  575. package/node_modules/lando/plugins/lando-networking/app.js +2 -2
  576. package/node_modules/lando/plugins/lando-networking/index.js +9 -2
  577. package/node_modules/lando/plugins/lando-networking/test/app.spec.js +87 -0
  578. package/node_modules/lando/plugins/lando-proxy/index.js +6 -1
  579. package/node_modules/lando/plugins/lando-proxy/lib/utils.js +63 -28
  580. package/node_modules/lando/plugins/lando-proxy/lib/warnings.js +10 -0
  581. package/node_modules/lando/plugins/lando-recipes/index.js +4 -0
  582. package/node_modules/lando/plugins/lando-recipes/lib/build.js +22 -4
  583. package/node_modules/lando/plugins/lando-recipes/lib/options.js +42 -66
  584. package/node_modules/lando/plugins/lando-recipes/lib/utils.js +30 -13
  585. package/node_modules/lando/plugins/lando-recipes/lib/warnings.js +5 -0
  586. package/node_modules/lando/plugins/lando-recipes/sources/remote.js +0 -26
  587. package/node_modules/lando/plugins/lando-recipes/tasks/init.js +1 -1
  588. package/node_modules/lando/plugins/lando-services/index.js +4 -0
  589. package/node_modules/lando/plugins/lando-services/lib/utils.js +38 -15
  590. package/node_modules/lando/plugins/lando-sharing/index.js +4 -0
  591. package/node_modules/lando/plugins/lando-sharing/lib/utils.js +28 -5
  592. package/node_modules/lando/plugins/lando-tooling/index.js +5 -0
  593. package/node_modules/lando/plugins/lando-tooling/lib/build.js +5 -2
  594. package/node_modules/lando/plugins/lando-tooling/lib/utils.js +83 -47
  595. package/node_modules/lando/test/cli.spec.js +59 -21
  596. package/node_modules/lando/test/docker.spec.js +24 -28
  597. package/node_modules/lando/test/env.spec.js +8 -0
  598. package/node_modules/lando/test/error.spec.js +1 -1
  599. package/node_modules/lando/test/events.spec.js +6 -7
  600. package/node_modules/lando/test/lando.spec.js +1 -1
  601. package/node_modules/lando/test/plugins.spec.js +2 -3
  602. package/node_modules/lando/test/promise.spec.js +1 -1
  603. package/node_modules/lando/test/scan.spec.js +1 -1
  604. package/node_modules/lando/test/shell.spec.js +19 -2
  605. package/node_modules/lando/test/utils.spec.js +52 -0
  606. package/node_modules/open/index.js +3 -5
  607. package/node_modules/open/package.json +1 -1
  608. package/node_modules/ssh2/lib/protocol/crypto/build/Makefile +2 -2
  609. package/node_modules/ssh2/lib/protocol/crypto/build/Release/.deps/Release/obj.target/sshcrypto/src/binding.o.d.raw +136 -0
  610. package/node_modules/ssh2/lib/protocol/crypto/build/sshcrypto.target.mk +14 -14
  611. package/node_modules/string-argv/CHANGELOG.md +38 -0
  612. package/node_modules/string-argv/README.md +96 -50
  613. package/node_modules/string-argv/index.d.ts +2 -0
  614. package/node_modules/string-argv/index.js +55 -35
  615. package/node_modules/string-argv/package.json +50 -40
  616. package/node_modules/undici/README.md +25 -3
  617. package/node_modules/undici/docs/docs/api/CacheStore.md +24 -9
  618. package/node_modules/undici/docs/docs/api/Client.md +11 -6
  619. package/node_modules/undici/docs/docs/api/Dispatcher.md +3 -0
  620. package/node_modules/undici/docs/docs/api/Errors.md +76 -1
  621. package/node_modules/undici/docs/docs/api/H2CClient.md +3 -2
  622. package/node_modules/undici/docs/docs/api/Interceptors.md +28 -8
  623. package/node_modules/undici/docs/docs/api/RedirectHandler.md +13 -10
  624. package/node_modules/undici/docs/docs/index.md +12 -12
  625. package/node_modules/undici/docs/docs/type-map.json +66 -66
  626. package/node_modules/undici/lib/cache/memory-cache-store.js +48 -13
  627. package/node_modules/undici/lib/cache/sqlite-cache-store.js +83 -5
  628. package/node_modules/undici/lib/core/connect.js +10 -4
  629. package/node_modules/undici/lib/core/constants.js +12 -1
  630. package/node_modules/undici/lib/core/errors.js +38 -1
  631. package/node_modules/undici/lib/core/request.js +16 -1
  632. package/node_modules/undici/lib/core/symbols.js +2 -0
  633. package/node_modules/undici/lib/core/util.js +26 -1
  634. package/node_modules/undici/lib/dispatcher/agent.js +6 -2
  635. package/node_modules/undici/lib/dispatcher/client-h1.js +116 -80
  636. package/node_modules/undici/lib/dispatcher/client-h2.js +124 -17
  637. package/node_modules/undici/lib/dispatcher/client.js +4 -1
  638. package/node_modules/undici/lib/dispatcher/dispatcher-base.js +3 -2
  639. package/node_modules/undici/lib/dispatcher/dispatcher1-wrapper.js +20 -3
  640. package/node_modules/undici/lib/dispatcher/parser-h1.js +1064 -0
  641. package/node_modules/undici/lib/dispatcher/pool-base.js +85 -31
  642. package/node_modules/undici/lib/dispatcher/pool.js +11 -8
  643. package/node_modules/undici/lib/dispatcher/proxy-agent.js +18 -8
  644. package/node_modules/undici/lib/dispatcher/retry-agent.js +10 -0
  645. package/node_modules/undici/lib/dispatcher/round-robin-pool.js +15 -5
  646. package/node_modules/undici/lib/handler/cache-handler.js +153 -15
  647. package/node_modules/undici/lib/handler/deduplication-handler.js +112 -51
  648. package/node_modules/undici/lib/handler/redirect-handler.js +28 -8
  649. package/node_modules/undici/lib/handler/retry-handler.js +44 -11
  650. package/node_modules/undici/lib/interceptor/cache.js +11 -3
  651. package/node_modules/undici/lib/interceptor/decompress.js +22 -9
  652. package/node_modules/undici/lib/interceptor/dns.js +11 -0
  653. package/node_modules/undici/lib/interceptor/response-error.js +72 -28
  654. package/node_modules/undici/lib/milo/LICENSE.md +7 -0
  655. package/node_modules/undici/lib/milo/no-simd.js +1002 -0
  656. package/node_modules/undici/lib/milo/simd.js +1002 -0
  657. package/node_modules/undici/lib/mock/mock-agent.js +11 -0
  658. package/node_modules/undici/lib/mock/snapshot-recorder.js +3 -2
  659. package/node_modules/undici/lib/mock/snapshot-utils.js +3 -2
  660. package/node_modules/undici/lib/util/cache.js +11 -5
  661. package/node_modules/undici/lib/web/cookies/util.js +19 -2
  662. package/node_modules/undici/lib/web/eventsource/eventsource-stream.js +69 -15
  663. package/node_modules/undici/lib/web/eventsource/eventsource.js +25 -2
  664. package/node_modules/undici/lib/web/fetch/body.js +47 -38
  665. package/node_modules/undici/lib/web/fetch/formdata-parser.js +12 -4
  666. package/node_modules/undici/lib/web/fetch/headers.js +2 -2
  667. package/node_modules/undici/lib/web/fetch/index.js +8 -4
  668. package/node_modules/undici/lib/web/subresource-integrity/subresource-integrity.js +5 -5
  669. package/node_modules/undici/lib/web/websocket/receiver.js +25 -4
  670. package/node_modules/undici/package.json +9 -7
  671. package/node_modules/undici/types/api.d.ts +1 -1
  672. package/node_modules/undici/types/cache-interceptor.d.ts +10 -0
  673. package/node_modules/undici/types/client.d.ts +10 -4
  674. package/node_modules/undici/types/errors.d.ts +16 -1
  675. package/node_modules/undici/types/h2c-client.d.ts +1 -1
  676. package/node_modules/undici/types/interceptors.d.ts +6 -1
  677. package/node_modules/undici/types/utility.d.ts +4 -4
  678. package/node_modules/{fetch-retry → unicode-segmenter}/LICENSE +2 -2
  679. package/node_modules/unicode-segmenter/README.md +324 -0
  680. package/node_modules/unicode-segmenter/_emoji_data.cjs +24 -0
  681. package/node_modules/unicode-segmenter/_emoji_data.d.cts +1 -0
  682. package/node_modules/unicode-segmenter/_emoji_data.d.ts +12 -0
  683. package/node_modules/unicode-segmenter/_emoji_data.js +26 -0
  684. package/node_modules/unicode-segmenter/_general_data.cjs +30 -0
  685. package/node_modules/unicode-segmenter/_general_data.d.cts +1 -0
  686. package/node_modules/unicode-segmenter/_general_data.d.ts +16 -0
  687. package/node_modules/unicode-segmenter/_general_data.js +34 -0
  688. package/node_modules/unicode-segmenter/_grapheme_data.cjs +125 -0
  689. package/node_modules/unicode-segmenter/_grapheme_data.d.cts +1 -0
  690. package/node_modules/unicode-segmenter/_grapheme_data.d.ts +112 -0
  691. package/node_modules/unicode-segmenter/_grapheme_data.js +123 -0
  692. package/node_modules/unicode-segmenter/core.cjs +135 -0
  693. package/node_modules/unicode-segmenter/core.d.cts +1 -0
  694. package/node_modules/unicode-segmenter/core.d.ts +118 -0
  695. package/node_modules/unicode-segmenter/core.js +129 -0
  696. package/node_modules/unicode-segmenter/emoji.cjs +43 -0
  697. package/node_modules/unicode-segmenter/emoji.d.cts +1 -0
  698. package/node_modules/unicode-segmenter/emoji.d.ts +23 -0
  699. package/node_modules/unicode-segmenter/emoji.js +42 -0
  700. package/node_modules/unicode-segmenter/general.cjs +51 -0
  701. package/node_modules/unicode-segmenter/general.d.cts +1 -0
  702. package/node_modules/unicode-segmenter/general.d.ts +26 -0
  703. package/node_modules/unicode-segmenter/general.js +50 -0
  704. package/node_modules/unicode-segmenter/grapheme.cjs +405 -0
  705. package/node_modules/unicode-segmenter/grapheme.d.cts +1 -0
  706. package/node_modules/unicode-segmenter/grapheme.d.ts +64 -0
  707. package/node_modules/unicode-segmenter/grapheme.js +438 -0
  708. package/node_modules/unicode-segmenter/index.cjs +26 -0
  709. package/node_modules/unicode-segmenter/index.d.cts +1 -0
  710. package/node_modules/unicode-segmenter/index.d.ts +4 -0
  711. package/node_modules/unicode-segmenter/index.js +6 -0
  712. package/node_modules/unicode-segmenter/intl-adapter.cjs +124 -0
  713. package/node_modules/unicode-segmenter/intl-adapter.d.cts +1 -0
  714. package/node_modules/unicode-segmenter/intl-adapter.d.ts +62 -0
  715. package/node_modules/unicode-segmenter/intl-adapter.js +113 -0
  716. package/node_modules/unicode-segmenter/intl-polyfill.cjs +17 -0
  717. package/node_modules/unicode-segmenter/intl-polyfill.d.cts +1 -0
  718. package/node_modules/unicode-segmenter/intl-polyfill.d.ts +1 -0
  719. package/node_modules/unicode-segmenter/intl-polyfill.js +16 -0
  720. package/node_modules/unicode-segmenter/package.json +165 -0
  721. package/node_modules/unicode-segmenter/utils.cjs +99 -0
  722. package/node_modules/unicode-segmenter/utils.d.cts +1 -0
  723. package/node_modules/unicode-segmenter/utils.d.ts +64 -0
  724. package/node_modules/unicode-segmenter/utils.js +89 -0
  725. package/package.json +48 -17
  726. package/.buildkite/build-linux.sh +0 -68
  727. package/.buildkite/build-macos-installer.sh +0 -34
  728. package/.buildkite/build-macos.sh +0 -67
  729. package/.buildkite/build-windows-installer.ps1 +0 -65
  730. package/.buildkite/build-windows.ps1 +0 -59
  731. package/.buildkite/fetch-search-replace.sh +0 -65
  732. package/.buildkite/pack-release.sh +0 -26
  733. package/.buildkite/pipeline.yml +0 -81
  734. package/.buildkite/shared-pipeline-vars +0 -16
  735. package/.buildkite/sign-windows.ps1 +0 -21
  736. package/.buildkite/test-windows-installer-download.ps1 +0 -54
  737. package/.buildkite/test_pipeline.py +0 -69
  738. package/.bundle/config +0 -4
  739. package/.editorconfig +0 -11
  740. package/.prettierignore +0 -13
  741. package/.ruby-version +0 -1
  742. package/.sonarcloud.properties +0 -2
  743. package/.xcode-version +0 -1
  744. package/AGENTS.md +0 -101
  745. package/CLAUDE.md +0 -4
  746. package/Gemfile +0 -8
  747. package/Gemfile.lock +0 -377
  748. package/Makefile +0 -293
  749. package/cmd/installer-payload/main.go +0 -19
  750. package/cmd/installer-version/main.go +0 -22
  751. package/cmd/stamp-version/main.go +0 -25
  752. package/cmd/vip-next/auth_bootstrap.go +0 -139
  753. package/cmd/vip-next/auth_bootstrap_test.go +0 -379
  754. package/cmd/vip-next/auth_bypass_wiring_test.go +0 -162
  755. package/cmd/vip-next/cli_error_hook_test.go +0 -91
  756. package/cmd/vip-next/commands/app.go +0 -23
  757. package/cmd/vip-next/commands/app_debug_test.go +0 -89
  758. package/cmd/vip-next/commands/app_deploy.go +0 -217
  759. package/cmd/vip-next/commands/app_deploy_test.go +0 -297
  760. package/cmd/vip-next/commands/app_deploy_validate.go +0 -58
  761. package/cmd/vip-next/commands/app_get.go +0 -293
  762. package/cmd/vip-next/commands/app_get_test.go +0 -226
  763. package/cmd/vip-next/commands/app_list.go +0 -93
  764. package/cmd/vip-next/commands/app_list_test.go +0 -95
  765. package/cmd/vip-next/commands/backup.go +0 -16
  766. package/cmd/vip-next/commands/backup_db.go +0 -137
  767. package/cmd/vip-next/commands/backup_db_test.go +0 -187
  768. package/cmd/vip-next/commands/cache.go +0 -16
  769. package/cmd/vip-next/commands/cache_purge_url.go +0 -90
  770. package/cmd/vip-next/commands/cache_purge_url_test.go +0 -154
  771. package/cmd/vip-next/commands/config.go +0 -17
  772. package/cmd/vip-next/commands/config_debug_test.go +0 -137
  773. package/cmd/vip-next/commands/config_envvar.go +0 -16
  774. package/cmd/vip-next/commands/config_envvar_delete.go +0 -135
  775. package/cmd/vip-next/commands/config_envvar_delete_test.go +0 -140
  776. package/cmd/vip-next/commands/config_envvar_get.go +0 -72
  777. package/cmd/vip-next/commands/config_envvar_get_all.go +0 -58
  778. package/cmd/vip-next/commands/config_envvar_get_all_test.go +0 -83
  779. package/cmd/vip-next/commands/config_envvar_get_test.go +0 -79
  780. package/cmd/vip-next/commands/config_envvar_list.go +0 -70
  781. package/cmd/vip-next/commands/config_envvar_list_test.go +0 -134
  782. package/cmd/vip-next/commands/config_envvar_set.go +0 -162
  783. package/cmd/vip-next/commands/config_envvar_set_test.go +0 -251
  784. package/cmd/vip-next/commands/config_software.go +0 -229
  785. package/cmd/vip-next/commands/config_software_test.go +0 -161
  786. package/cmd/vip-next/commands/config_software_update.go +0 -270
  787. package/cmd/vip-next/commands/config_software_update_test.go +0 -334
  788. package/cmd/vip-next/commands/db.go +0 -16
  789. package/cmd/vip-next/commands/db_phpmyadmin.go +0 -122
  790. package/cmd/vip-next/commands/db_phpmyadmin_test.go +0 -277
  791. package/cmd/vip-next/commands/defensive_mode.go +0 -106
  792. package/cmd/vip-next/commands/defensive_mode_configure.go +0 -150
  793. package/cmd/vip-next/commands/defensive_mode_disable.go +0 -62
  794. package/cmd/vip-next/commands/defensive_mode_enable.go +0 -62
  795. package/cmd/vip-next/commands/defensive_mode_test.go +0 -389
  796. package/cmd/vip-next/commands/devenv.go +0 -49
  797. package/cmd/vip-next/commands/devenv_create_appinfo.go +0 -158
  798. package/cmd/vip-next/commands/devenv_create_appinfo_test.go +0 -29
  799. package/cmd/vip-next/commands/devenv_create_test.go +0 -269
  800. package/cmd/vip-next/commands/devenv_data.go +0 -86
  801. package/cmd/vip-next/commands/devenv_data_confirm_test.go +0 -49
  802. package/cmd/vip-next/commands/devenv_debug_test.go +0 -34
  803. package/cmd/vip-next/commands/devenv_e2e_gate_test.go +0 -17
  804. package/cmd/vip-next/commands/devenv_e2e_test.go +0 -34
  805. package/cmd/vip-next/commands/devenv_envvar.go +0 -186
  806. package/cmd/vip-next/commands/devenv_envvar_test.go +0 -183
  807. package/cmd/vip-next/commands/devenv_exec.go +0 -75
  808. package/cmd/vip-next/commands/devenv_exec_test.go +0 -39
  809. package/cmd/vip-next/commands/devenv_flag_grammar_test.go +0 -241
  810. package/cmd/vip-next/commands/devenv_lifecycle.go +0 -785
  811. package/cmd/vip-next/commands/devenv_logs.go +0 -29
  812. package/cmd/vip-next/commands/devenv_resolve.go +0 -118
  813. package/cmd/vip-next/commands/devenv_resolve_test.go +0 -221
  814. package/cmd/vip-next/commands/devenv_sync.go +0 -256
  815. package/cmd/vip-next/commands/devenv_sync_sites.go +0 -116
  816. package/cmd/vip-next/commands/devenv_sync_sites_test.go +0 -151
  817. package/cmd/vip-next/commands/devenv_sync_test.go +0 -63
  818. package/cmd/vip-next/commands/devenv_telemetry.go +0 -265
  819. package/cmd/vip-next/commands/devenv_telemetry_test.go +0 -322
  820. package/cmd/vip-next/commands/devenv_test.go +0 -60
  821. package/cmd/vip-next/commands/devenv_update.go +0 -207
  822. package/cmd/vip-next/commands/devenv_update_test.go +0 -109
  823. package/cmd/vip-next/commands/devenv_versions_proxy_test.go +0 -133
  824. package/cmd/vip-next/commands/edge_workers.go +0 -197
  825. package/cmd/vip-next/commands/edge_workers_flags.go +0 -56
  826. package/cmd/vip-next/commands/edge_workers_local.go +0 -127
  827. package/cmd/vip-next/commands/edge_workers_mutation.go +0 -130
  828. package/cmd/vip-next/commands/edge_workers_read.go +0 -103
  829. package/cmd/vip-next/commands/edge_workers_test.go +0 -272
  830. package/cmd/vip-next/commands/export.go +0 -16
  831. package/cmd/vip-next/commands/export_sql.go +0 -333
  832. package/cmd/vip-next/commands/export_sql_test.go +0 -321
  833. package/cmd/vip-next/commands/format_env.go +0 -17
  834. package/cmd/vip-next/commands/import.go +0 -19
  835. package/cmd/vip-next/commands/import_debug_test.go +0 -110
  836. package/cmd/vip-next/commands/import_media.go +0 -433
  837. package/cmd/vip-next/commands/import_media_abort.go +0 -76
  838. package/cmd/vip-next/commands/import_media_confirm.go +0 -83
  839. package/cmd/vip-next/commands/import_media_confirm_test.go +0 -249
  840. package/cmd/vip-next/commands/import_media_fetch_test.go +0 -98
  841. package/cmd/vip-next/commands/import_media_status.go +0 -58
  842. package/cmd/vip-next/commands/import_media_test.go +0 -370
  843. package/cmd/vip-next/commands/import_sql.go +0 -1161
  844. package/cmd/vip-next/commands/import_sql_status.go +0 -67
  845. package/cmd/vip-next/commands/import_sql_test.go +0 -746
  846. package/cmd/vip-next/commands/import_validate_files.go +0 -157
  847. package/cmd/vip-next/commands/import_validate_files_test.go +0 -157
  848. package/cmd/vip-next/commands/import_validate_sql.go +0 -207
  849. package/cmd/vip-next/commands/import_validate_sql_test.go +0 -293
  850. package/cmd/vip-next/commands/login.go +0 -53
  851. package/cmd/vip-next/commands/login_test.go +0 -25
  852. package/cmd/vip-next/commands/logout.go +0 -43
  853. package/cmd/vip-next/commands/logout_test.go +0 -158
  854. package/cmd/vip-next/commands/logs.go +0 -169
  855. package/cmd/vip-next/commands/logs_test.go +0 -174
  856. package/cmd/vip-next/commands/nodeflag_aliases.go +0 -59
  857. package/cmd/vip-next/commands/progress_renderer.go +0 -118
  858. package/cmd/vip-next/commands/progress_renderer_test.go +0 -28
  859. package/cmd/vip-next/commands/searchreplace.go +0 -75
  860. package/cmd/vip-next/commands/searchreplace_debug_test.go +0 -82
  861. package/cmd/vip-next/commands/searchreplace_test.go +0 -155
  862. package/cmd/vip-next/commands/slowlogs.go +0 -167
  863. package/cmd/vip-next/commands/slowlogs_test.go +0 -159
  864. package/cmd/vip-next/commands/sqlreport.go +0 -183
  865. package/cmd/vip-next/commands/sqlreport_test.go +0 -66
  866. package/cmd/vip-next/commands/sync.go +0 -189
  867. package/cmd/vip-next/commands/sync_confirm.go +0 -121
  868. package/cmd/vip-next/commands/sync_confirm_test.go +0 -202
  869. package/cmd/vip-next/commands/sync_render.go +0 -207
  870. package/cmd/vip-next/commands/sync_render_test.go +0 -101
  871. package/cmd/vip-next/commands/sync_test.go +0 -148
  872. package/cmd/vip-next/commands/update.go +0 -85
  873. package/cmd/vip-next/commands/update_test.go +0 -49
  874. package/cmd/vip-next/commands/whoami.go +0 -161
  875. package/cmd/vip-next/commands/whoami_debug_test.go +0 -79
  876. package/cmd/vip-next/commands/whoami_test.go +0 -85
  877. package/cmd/vip-next/commands/wp.go +0 -376
  878. package/cmd/vip-next/commands/wp_debug_test.go +0 -32
  879. package/cmd/vip-next/commands/wp_test.go +0 -276
  880. package/cmd/vip-next/debug_args.go +0 -63
  881. package/cmd/vip-next/debug_test.go +0 -122
  882. package/cmd/vip-next/edge_workers_test.go +0 -108
  883. package/cmd/vip-next/flags_node_parity_test.go +0 -434
  884. package/cmd/vip-next/main.go +0 -391
  885. package/cmd/vip-next/main_test.go +0 -202
  886. package/cmd/vip-next/pendo_wiring_test.go +0 -148
  887. package/cmd/vip-next/root.go +0 -211
  888. package/cmd/vip-next/update_bootstrap.go +0 -94
  889. package/cmd/vip-next/update_bootstrap_test.go +0 -85
  890. package/cmd/vip-next/update_integration_test.go +0 -137
  891. package/cmd/vip-next-prerelease/main.go +0 -108
  892. package/cmd/vip-next-prerelease/main_test.go +0 -46
  893. package/dist/lib/analytics/clients/client.js +0 -1
  894. package/dist/lib/analytics/clients/pendo.js +0 -78
  895. package/docs/ARCHITECTURE.md +0 -95
  896. package/docs/BUILD-SIGNING.md +0 -501
  897. package/docs/CHANGELOG.md +0 -1844
  898. package/docs/COMMANDER-MIGRATION.md +0 -45
  899. package/docs/CONTRIBUTING.md +0 -29
  900. package/docs/CUTOVER-BREAKING-CHANGES.md +0 -261
  901. package/docs/DEBUGGING.md +0 -94
  902. package/docs/EDGE-WORKERS.md +0 -256
  903. package/docs/GO-UPDATES.md +0 -97
  904. package/docs/NPM-RELEASE-RECOVERY.md +0 -47
  905. package/docs/RELEASING.md +0 -211
  906. package/docs/SECURITY.md +0 -9
  907. package/docs/SETUP.md +0 -154
  908. package/docs/TESTING.md +0 -67
  909. package/docs/decisions/0001-operation-scoped-elevated-token-reuse.md +0 -87
  910. package/docs/dev-env-windows-wsl-testing.md +0 -191
  911. package/docs/vip-next-vip-command-reference.md +0 -257
  912. package/docs/vip-wp-line-parse-dfa.dot +0 -31
  913. package/eslint.config.js +0 -35
  914. package/fastlane/Fastfile +0 -204
  915. package/fastlane/example.env +0 -8
  916. package/fastlane/test_signing.rb +0 -83
  917. package/go.mod +0 -39
  918. package/go.sum +0 -127
  919. package/helpers/check-version.js +0 -16
  920. package/internal/appctx/app_resolver.go +0 -202
  921. package/internal/appctx/app_resolver_test.go +0 -187
  922. package/internal/appctx/confirm.go +0 -180
  923. package/internal/appctx/confirm_payload_test.go +0 -201
  924. package/internal/appctx/confirm_test.go +0 -120
  925. package/internal/appctx/context.go +0 -94
  926. package/internal/appctx/context_test.go +0 -56
  927. package/internal/appctx/env_resolver.go +0 -110
  928. package/internal/appctx/env_resolver_test.go +0 -215
  929. package/internal/appctx/format.go +0 -72
  930. package/internal/appctx/format_test.go +0 -75
  931. package/internal/appctx/interactive.go +0 -50
  932. package/internal/appctx/interactive_test.go +0 -134
  933. package/internal/appctx/middleware.go +0 -56
  934. package/internal/appctx/middleware_test.go +0 -88
  935. package/internal/appctx/prompts.go +0 -70
  936. package/internal/appctx/prompts_test.go +0 -97
  937. package/internal/appctx/required_args.go +0 -24
  938. package/internal/appctx/required_args_test.go +0 -38
  939. package/internal/appctx/telemetry.go +0 -22
  940. package/internal/appctx/telemetry_test.go +0 -42
  941. package/internal/appctx/wildcard.go +0 -29
  942. package/internal/appctx/wildcard_test.go +0 -53
  943. package/internal/auth/bypass.go +0 -84
  944. package/internal/auth/bypass_test.go +0 -97
  945. package/internal/auth/login.go +0 -156
  946. package/internal/auth/login_test.go +0 -184
  947. package/internal/auth/logout.go +0 -44
  948. package/internal/auth/logout_test.go +0 -78
  949. package/internal/auth/store.go +0 -130
  950. package/internal/auth/store_test.go +0 -339
  951. package/internal/auth/token.go +0 -117
  952. package/internal/auth/token_test.go +0 -90
  953. package/internal/backup/backup.go +0 -194
  954. package/internal/backup/backup_test.go +0 -228
  955. package/internal/cachepurge/cachepurge.go +0 -38
  956. package/internal/cachepurge/cachepurge_test.go +0 -92
  957. package/internal/customdeploy/archive.go +0 -205
  958. package/internal/customdeploy/archive_test.go +0 -174
  959. package/internal/customdeploy/customdeploy.go +0 -91
  960. package/internal/customdeploy/customdeploy_test.go +0 -82
  961. package/internal/debuglog/debuglog.go +0 -85
  962. package/internal/debuglog/debuglog_test.go +0 -44
  963. package/internal/defensivemode/api.go +0 -89
  964. package/internal/defensivemode/api_test.go +0 -122
  965. package/internal/devenv/adapters.go +0 -168
  966. package/internal/devenv/adapters_test.go +0 -44
  967. package/internal/devenv/adopt.go +0 -20
  968. package/internal/devenv/adopt_setup_test.go +0 -30
  969. package/internal/devenv/compose/labels.go +0 -90
  970. package/internal/devenv/compose/labels_test.go +0 -136
  971. package/internal/devenv/compose/project.go +0 -88
  972. package/internal/devenv/compose/project_test.go +0 -148
  973. package/internal/devenv/compose/render.go +0 -54
  974. package/internal/devenv/compose/render_test.go +0 -90
  975. package/internal/devenv/compose/services.go +0 -337
  976. package/internal/devenv/compose/services_test.go +0 -258
  977. package/internal/devenv/compose/testdata/full.golden.yml +0 -265
  978. package/internal/devenv/compose/types.go +0 -97
  979. package/internal/devenv/compose/types_test.go +0 -61
  980. package/internal/devenv/compose/view.go +0 -205
  981. package/internal/devenv/compose/view_test.go +0 -120
  982. package/internal/devenv/configfile.go +0 -300
  983. package/internal/devenv/configfile_test.go +0 -246
  984. package/internal/devenv/create.go +0 -130
  985. package/internal/devenv/create_test.go +0 -98
  986. package/internal/devenv/debug.go +0 -4
  987. package/internal/devenv/debug_test.go +0 -103
  988. package/internal/devenv/devenv.go +0 -434
  989. package/internal/devenv/devenv_test.go +0 -77
  990. package/internal/devenv/devexec.go +0 -140
  991. package/internal/devenv/devexec_test.go +0 -91
  992. package/internal/devenv/devlog/devlog.go +0 -219
  993. package/internal/devenv/devlog/devlog_test.go +0 -112
  994. package/internal/devenv/devterm/devterm.go +0 -65
  995. package/internal/devenv/devterm/devterm_pty.go +0 -58
  996. package/internal/devenv/devterm/devterm_stub.go +0 -20
  997. package/internal/devenv/devterm/devterm_test.go +0 -78
  998. package/internal/devenv/dockercli/capture.go +0 -84
  999. package/internal/devenv/dockercli/capture_test.go +0 -33
  1000. package/internal/devenv/dockercli/compose.go +0 -30
  1001. package/internal/devenv/dockercli/compose_test.go +0 -35
  1002. package/internal/devenv/dockercli/runner.go +0 -214
  1003. package/internal/devenv/dockercli/runner_test.go +0 -157
  1004. package/internal/devenv/dockercli/socket.go +0 -56
  1005. package/internal/devenv/dockercli/socket_test.go +0 -52
  1006. package/internal/devenv/e2e_gate_test.go +0 -17
  1007. package/internal/devenv/e2e_test.go +0 -499
  1008. package/internal/devenv/e2esafety/gate_wiring_test.go +0 -90
  1009. package/internal/devenv/e2esafety/safety.go +0 -52
  1010. package/internal/devenv/e2esafety/safety_test.go +0 -71
  1011. package/internal/devenv/eachenv_test.go +0 -132
  1012. package/internal/devenv/editor.go +0 -82
  1013. package/internal/devenv/editor_test.go +0 -60
  1014. package/internal/devenv/envfile.go +0 -287
  1015. package/internal/devenv/envvar.go +0 -165
  1016. package/internal/devenv/envvar_test.go +0 -178
  1017. package/internal/devenv/hostops/context.go +0 -38
  1018. package/internal/devenv/hostops/context_test.go +0 -24
  1019. package/internal/devenv/hostops/e2e_gate_test.go +0 -17
  1020. package/internal/devenv/hostops/e2e_test.go +0 -429
  1021. package/internal/devenv/hostops/elevate.go +0 -248
  1022. package/internal/devenv/hostops/elevate_message_test.go +0 -35
  1023. package/internal/devenv/hostops/elevate_test.go +0 -111
  1024. package/internal/devenv/hostops/hosts.go +0 -255
  1025. package/internal/devenv/hostops/hosts_test.go +0 -178
  1026. package/internal/devenv/hostops/thumbprint_test.go +0 -57
  1027. package/internal/devenv/hostops/trust.go +0 -115
  1028. package/internal/devenv/hostops/trust_test.go +0 -90
  1029. package/internal/devenv/hostrefresh.go +0 -127
  1030. package/internal/devenv/hostrefresh_test.go +0 -123
  1031. package/internal/devenv/importdata.go +0 -491
  1032. package/internal/devenv/importdata_test.go +0 -142
  1033. package/internal/devenv/importdecompress_test.go +0 -90
  1034. package/internal/devenv/importgate_test.go +0 -166
  1035. package/internal/devenv/importvalidate.go +0 -437
  1036. package/internal/devenv/importvalidate_test.go +0 -293
  1037. package/internal/devenv/info_table.go +0 -165
  1038. package/internal/devenv/info_table_test.go +0 -111
  1039. package/internal/devenv/instancedata/instancedata.go +0 -239
  1040. package/internal/devenv/instancedata/instancedata_test.go +0 -281
  1041. package/internal/devenv/instancedata/testdata/legacy_keys.json +0 -16
  1042. package/internal/devenv/instancedata/testdata/unknown_keys.json +0 -19
  1043. package/internal/devenv/lifecycle/adopt.go +0 -24
  1044. package/internal/devenv/lifecycle/adopt_test.go +0 -43
  1045. package/internal/devenv/lifecycle/health.go +0 -28
  1046. package/internal/devenv/lifecycle/health_test.go +0 -34
  1047. package/internal/devenv/lifecycle/hosts.go +0 -42
  1048. package/internal/devenv/lifecycle/hosts_test.go +0 -41
  1049. package/internal/devenv/lifecycle/migrate.go +0 -44
  1050. package/internal/devenv/lifecycle/migrate_test.go +0 -78
  1051. package/internal/devenv/lifecycle/pull.go +0 -19
  1052. package/internal/devenv/lifecycle/pull_test.go +0 -29
  1053. package/internal/devenv/lifecycle/setup.go +0 -35
  1054. package/internal/devenv/lifecycle/setup_test.go +0 -46
  1055. package/internal/devenv/lifecycle/start.go +0 -132
  1056. package/internal/devenv/lifecycle/start_test.go +0 -350
  1057. package/internal/devenv/lifecycle/teardown.go +0 -32
  1058. package/internal/devenv/lifecycle/teardown_test.go +0 -83
  1059. package/internal/devenv/lifecycle/types.go +0 -86
  1060. package/internal/devenv/lifecycle/waiter.go +0 -49
  1061. package/internal/devenv/lifecycle/waiter_test.go +0 -98
  1062. package/internal/devenv/list.go +0 -49
  1063. package/internal/devenv/list_test.go +0 -24
  1064. package/internal/devenv/logs.go +0 -43
  1065. package/internal/devenv/logs_test.go +0 -28
  1066. package/internal/devenv/materialize.go +0 -44
  1067. package/internal/devenv/materialize_test.go +0 -112
  1068. package/internal/devenv/paths/paths.go +0 -42
  1069. package/internal/devenv/paths/paths_test.go +0 -39
  1070. package/internal/devenv/postimport.go +0 -134
  1071. package/internal/devenv/postimport_test.go +0 -389
  1072. package/internal/devenv/proxy/ca.go +0 -110
  1073. package/internal/devenv/proxy/ca_test.go +0 -111
  1074. package/internal/devenv/proxy/network.go +0 -28
  1075. package/internal/devenv/proxy/network_test.go +0 -68
  1076. package/internal/devenv/proxy/ports.go +0 -104
  1077. package/internal/devenv/proxy/ports_test.go +0 -76
  1078. package/internal/devenv/proxy/proxy.go +0 -143
  1079. package/internal/devenv/proxy/proxy_test.go +0 -149
  1080. package/internal/devenv/proxy/scripts/gen-certs.sh +0 -73
  1081. package/internal/devenv/proxy/spec.go +0 -60
  1082. package/internal/devenv/proxy/spec_test.go +0 -44
  1083. package/internal/devenv/proxy/testhelpers_test.go +0 -7
  1084. package/internal/devenv/proxy_policy_test.go +0 -155
  1085. package/internal/devenv/syncplan.go +0 -573
  1086. package/internal/devenv/syncplan_test.go +0 -256
  1087. package/internal/devenv/syncsql.go +0 -247
  1088. package/internal/devenv/syncsql_repair.go +0 -169
  1089. package/internal/devenv/syncsql_repair_test.go +0 -150
  1090. package/internal/devenv/syncsql_test.go +0 -220
  1091. package/internal/devenv/update.go +0 -87
  1092. package/internal/devenv/update_test.go +0 -47
  1093. package/internal/edgeworkers/api.go +0 -173
  1094. package/internal/edgeworkers/api_test.go +0 -256
  1095. package/internal/edgeworkers/build.go +0 -188
  1096. package/internal/edgeworkers/build_test.go +0 -175
  1097. package/internal/edgeworkers/confirmation.go +0 -72
  1098. package/internal/edgeworkers/deployment.go +0 -156
  1099. package/internal/edgeworkers/deployment_test.go +0 -165
  1100. package/internal/edgeworkers/output.go +0 -131
  1101. package/internal/edgeworkers/output_test.go +0 -98
  1102. package/internal/edgeworkers/project.go +0 -264
  1103. package/internal/edgeworkers/project_test.go +0 -167
  1104. package/internal/edgeworkers/scaffold.go +0 -88
  1105. package/internal/edgeworkers/templates/README.md +0 -25
  1106. package/internal/edgeworkers/templates/edge-workers.json +0 -4
  1107. package/internal/edgeworkers/templates/gitignore +0 -2
  1108. package/internal/edgeworkers/templates/package.json +0 -16
  1109. package/internal/edgeworkers/templates/tsconfig.json +0 -6
  1110. package/internal/edgeworkers/templates/worker.ts +0 -19
  1111. package/internal/edgeworkers/types.go +0 -37
  1112. package/internal/edgeworkers/validation.go +0 -177
  1113. package/internal/envalias/envalias.go +0 -50
  1114. package/internal/envalias/envalias_test.go +0 -147
  1115. package/internal/envvar/envvar.go +0 -253
  1116. package/internal/envvar/envvar_test.go +0 -274
  1117. package/internal/envvar/reload_manifest.go +0 -99
  1118. package/internal/envvar/reload_manifest_test.go +0 -44
  1119. package/internal/envvar/value_confirm.go +0 -26
  1120. package/internal/envvar/value_confirm_test.go +0 -22
  1121. package/internal/exit/exit.go +0 -94
  1122. package/internal/exit/exit_test.go +0 -119
  1123. package/internal/gql/SCHEMA.md +0 -21
  1124. package/internal/gql/client.go +0 -54
  1125. package/internal/gql/client_test.go +0 -71
  1126. package/internal/gql/debug_test.go +0 -79
  1127. package/internal/gql/decoder_compat_helpers_test.go +0 -35
  1128. package/internal/gql/decoder_compat_test.go +0 -78
  1129. package/internal/gql/doc.go +0 -13
  1130. package/internal/gql/edgeworkerinput/input.go +0 -58
  1131. package/internal/gql/edgeworkerinput/input_test.go +0 -52
  1132. package/internal/gql/error.go +0 -163
  1133. package/internal/gql/error_test.go +0 -203
  1134. package/internal/gql/generated.go +0 -10425
  1135. package/internal/gql/genqlient.yaml +0 -26
  1136. package/internal/gql/import_sql_marshal_test.go +0 -69
  1137. package/internal/gql/operation.go +0 -67
  1138. package/internal/gql/operation_test.go +0 -60
  1139. package/internal/gql/operations/app_get.graphql +0 -43
  1140. package/internal/gql/operations/app_list.graphql +0 -9
  1141. package/internal/gql/operations/app_resolve.graphql +0 -37
  1142. package/internal/gql/operations/backup_export_deploy.graphql +0 -123
  1143. package/internal/gql/operations/cachepurge.graphql +0 -6
  1144. package/internal/gql/operations/defensive_mode.graphql +0 -13
  1145. package/internal/gql/operations/dev_env_create.graphql +0 -38
  1146. package/internal/gql/operations/dev_env_sync.graphql +0 -15
  1147. package/internal/gql/operations/edge_workers.graphql +0 -53
  1148. package/internal/gql/operations/envvar.graphql +0 -52
  1149. package/internal/gql/operations/fragments.graphql +0 -5
  1150. package/internal/gql/operations/import_media.graphql +0 -61
  1151. package/internal/gql/operations/import_sql.graphql +0 -135
  1152. package/internal/gql/operations/logs.graphql +0 -22
  1153. package/internal/gql/operations/me.graphql +0 -13
  1154. package/internal/gql/operations/phpmyadmin.graphql +0 -21
  1155. package/internal/gql/operations/slowlogs.graphql +0 -25
  1156. package/internal/gql/operations/software.graphql +0 -53
  1157. package/internal/gql/operations/sync.graphql +0 -51
  1158. package/internal/gql/operations/wp.graphql +0 -37
  1159. package/internal/gql/proxy_test.go +0 -62
  1160. package/internal/gql/rechallenge.go +0 -218
  1161. package/internal/gql/rechallenge_test.go +0 -471
  1162. package/internal/gql/retry.go +0 -130
  1163. package/internal/gql/retry_test.go +0 -230
  1164. package/internal/gql/schema.gql +0 -9337
  1165. package/internal/gql/transport.go +0 -65
  1166. package/internal/gql/transport_helper.go +0 -24
  1167. package/internal/httpproxy/callers_test.go +0 -211
  1168. package/internal/httpproxy/debug_test.go +0 -32
  1169. package/internal/httpproxy/httpproxy.go +0 -315
  1170. package/internal/httpproxy/httpproxy_test.go +0 -435
  1171. package/internal/installer/version.go +0 -41
  1172. package/internal/installer/version_test.go +0 -33
  1173. package/internal/keychain/fallback.go +0 -93
  1174. package/internal/keychain/keychain.go +0 -197
  1175. package/internal/keychain/keychain_select_test.go +0 -34
  1176. package/internal/keychain/keychain_test.go +0 -112
  1177. package/internal/logsapi/logsapi.go +0 -165
  1178. package/internal/logsapi/logsapi_test.go +0 -82
  1179. package/internal/mediaimport/mediaimport.go +0 -26
  1180. package/internal/mediaimport/mediaimport_test.go +0 -46
  1181. package/internal/mediaimport/status.go +0 -162
  1182. package/internal/mediaimport/status_test.go +0 -159
  1183. package/internal/mediaimport/tracker.go +0 -116
  1184. package/internal/mediaimport/tracker_test.go +0 -62
  1185. package/internal/nodeflags/nodeflags.go +0 -130
  1186. package/internal/nodeflags/nodeflags_test.go +0 -138
  1187. package/internal/nodeflags/optionalvalue.go +0 -123
  1188. package/internal/nodeflags/optionalvalue_test.go +0 -158
  1189. package/internal/output/csv.go +0 -178
  1190. package/internal/output/fields.go +0 -22
  1191. package/internal/output/fields_test.go +0 -21
  1192. package/internal/output/ids.go +0 -26
  1193. package/internal/output/ids_test.go +0 -32
  1194. package/internal/output/json.go +0 -113
  1195. package/internal/output/keyvalue.go +0 -35
  1196. package/internal/output/keyvalue_block.go +0 -77
  1197. package/internal/output/keyvalue_block_test.go +0 -95
  1198. package/internal/output/keyvalue_test.go +0 -35
  1199. package/internal/output/ordered.go +0 -44
  1200. package/internal/output/ordered_test.go +0 -42
  1201. package/internal/output/output.go +0 -62
  1202. package/internal/output/output_test.go +0 -400
  1203. package/internal/output/table.go +0 -231
  1204. package/internal/output/table_layout.go +0 -472
  1205. package/internal/output/table_layout_test.go +0 -107
  1206. package/internal/output/table_layout_tty_test.go +0 -63
  1207. package/internal/output/text.go +0 -24
  1208. package/internal/output/text_test.go +0 -31
  1209. package/internal/output/typename.go +0 -35
  1210. package/internal/output/typename_test.go +0 -48
  1211. package/internal/parity/backup_export_deploy_scenario_test.go +0 -285
  1212. package/internal/parity/cache_scenario_test.go +0 -173
  1213. package/internal/parity/command_surface_scenario_test.go +0 -530
  1214. package/internal/parity/defensive_mode_scenario_test.go +0 -133
  1215. package/internal/parity/diff.go +0 -128
  1216. package/internal/parity/diff_test.go +0 -155
  1217. package/internal/parity/differential_test.go +0 -166
  1218. package/internal/parity/edge_workers_build_smoke_test.go +0 -69
  1219. package/internal/parity/edge_workers_cases_test.go +0 -77
  1220. package/internal/parity/edge_workers_debug_test.go +0 -87
  1221. package/internal/parity/edge_workers_differential_test.go +0 -483
  1222. package/internal/parity/edge_workers_prompt_test.go +0 -151
  1223. package/internal/parity/env.go +0 -176
  1224. package/internal/parity/env_test.go +0 -211
  1225. package/internal/parity/envvar_mutation_scenario_test.go +0 -188
  1226. package/internal/parity/harness.go +0 -28
  1227. package/internal/parity/harness_test.go +0 -62
  1228. package/internal/parity/import_media_scenario_test.go +0 -207
  1229. package/internal/parity/import_sql_scenario_test.go +0 -198
  1230. package/internal/parity/import_validate_sql_scenario_test.go +0 -68
  1231. package/internal/parity/keychain.go +0 -538
  1232. package/internal/parity/keychain_test.go +0 -201
  1233. package/internal/parity/m5_differential_test.go +0 -185
  1234. package/internal/parity/m5_scenarios_test.go +0 -225
  1235. package/internal/parity/nodebin.go +0 -120
  1236. package/internal/parity/nodebin_test.go +0 -148
  1237. package/internal/parity/parker.go +0 -491
  1238. package/internal/parity/parker_discovery.go +0 -373
  1239. package/internal/parity/parker_discovery_test.go +0 -267
  1240. package/internal/parity/parker_live_test.go +0 -164
  1241. package/internal/parity/parker_test.go +0 -480
  1242. package/internal/parity/pendo_test.go +0 -122
  1243. package/internal/parity/phpmyadmin_scenario_test.go +0 -214
  1244. package/internal/parity/runner.go +0 -56
  1245. package/internal/parity/runner_test.go +0 -67
  1246. package/internal/parity/scenario.go +0 -82
  1247. package/internal/parity/scenario_test.go +0 -52
  1248. package/internal/parity/surface_differential_test.go +0 -494
  1249. package/internal/parity/sync_scenario_test.go +0 -172
  1250. package/internal/parity/vendored_src_test.go +0 -84
  1251. package/internal/parity/whoami_scenario_test.go +0 -69
  1252. package/internal/parity/wp_scenario_test.go +0 -428
  1253. package/internal/phpmyadmin/client.go +0 -221
  1254. package/internal/phpmyadmin/client_test.go +0 -418
  1255. package/internal/poll/poll.go +0 -85
  1256. package/internal/poll/poll_test.go +0 -136
  1257. package/internal/polling/polling.go +0 -97
  1258. package/internal/polling/polling_test.go +0 -59
  1259. package/internal/rechallenge/browser.go +0 -16
  1260. package/internal/rechallenge/client.go +0 -198
  1261. package/internal/rechallenge/client_test.go +0 -169
  1262. package/internal/rechallenge/errors.go +0 -137
  1263. package/internal/rechallenge/errors_test.go +0 -81
  1264. package/internal/rechallenge/flow.go +0 -232
  1265. package/internal/rechallenge/flow_noninteractive_test.go +0 -285
  1266. package/internal/rechallenge/flow_test.go +0 -217
  1267. package/internal/rechallenge/interactive.go +0 -90
  1268. package/internal/rechallenge/interactive_test.go +0 -106
  1269. package/internal/rechallenge/redact.go +0 -36
  1270. package/internal/rechallenge/redact_test.go +0 -142
  1271. package/internal/rechallenge/tokencache.go +0 -148
  1272. package/internal/rechallenge/tokencache_test.go +0 -139
  1273. package/internal/rechallenge/types.go +0 -100
  1274. package/internal/rechallenge/types_test.go +0 -56
  1275. package/internal/redact/redact.go +0 -99
  1276. package/internal/redact/redact_test.go +0 -80
  1277. package/internal/releasepromotion/buildkite.go +0 -233
  1278. package/internal/releasepromotion/buildkite_test.go +0 -284
  1279. package/internal/releasepromotion/contract.go +0 -165
  1280. package/internal/releasepromotion/contract_test.go +0 -211
  1281. package/internal/releasepromotion/github.go +0 -378
  1282. package/internal/releasepromotion/github_test.go +0 -399
  1283. package/internal/releasepromotion/optional_installers_test.go +0 -87
  1284. package/internal/releasepromotion/promoter.go +0 -134
  1285. package/internal/releasepromotion/promoter_test.go +0 -147
  1286. package/internal/releasepromotion/verify.go +0 -239
  1287. package/internal/releasepromotion/verify_test.go +0 -296
  1288. package/internal/searchreplace/debug_test.go +0 -71
  1289. package/internal/searchreplace/dumpdetails.go +0 -104
  1290. package/internal/searchreplace/dumpdetails_test.go +0 -86
  1291. package/internal/searchreplace/searchreplace.go +0 -261
  1292. package/internal/searchreplace/searchreplace_test.go +0 -250
  1293. package/internal/siteimport/debug_test.go +0 -34
  1294. package/internal/siteimport/siteimport.go +0 -18
  1295. package/internal/siteimport/siteimport_test.go +0 -19
  1296. package/internal/siteimport/sitetype.go +0 -74
  1297. package/internal/siteimport/sitetype_test.go +0 -62
  1298. package/internal/siteimport/status.go +0 -282
  1299. package/internal/siteimport/status_test.go +0 -234
  1300. package/internal/slowlogsapi/slowlogsapi.go +0 -176
  1301. package/internal/slowlogsapi/slowlogsapi_test.go +0 -93
  1302. package/internal/softwaresettings/format.go +0 -192
  1303. package/internal/softwaresettings/format_test.go +0 -123
  1304. package/internal/sqlexport/diskspace.go +0 -36
  1305. package/internal/sqlexport/diskspace_unix.go +0 -24
  1306. package/internal/sqlexport/diskspace_windows.go +0 -26
  1307. package/internal/sqlexport/download.go +0 -75
  1308. package/internal/sqlexport/download_test.go +0 -103
  1309. package/internal/sqlexport/export.go +0 -321
  1310. package/internal/sqlexport/export_test.go +0 -313
  1311. package/internal/sqlexport/format.go +0 -44
  1312. package/internal/sqlexport/livecopy.go +0 -150
  1313. package/internal/sqlexport/livecopy_test.go +0 -273
  1314. package/internal/sqlvalidation/devenv_checks_test.go +0 -134
  1315. package/internal/sqlvalidation/filename.go +0 -30
  1316. package/internal/sqlvalidation/line_by_line.go +0 -91
  1317. package/internal/sqlvalidation/line_by_line_test.go +0 -165
  1318. package/internal/sqlvalidation/multisite.go +0 -31
  1319. package/internal/sqlvalidation/multisite_test.go +0 -34
  1320. package/internal/sqlvalidation/sql.go +0 -510
  1321. package/internal/sqlvalidation/sql_test.go +0 -206
  1322. package/internal/sync/sync.go +0 -246
  1323. package/internal/sync/sync_test.go +0 -253
  1324. package/internal/telemetry/config.go +0 -34
  1325. package/internal/telemetry/default.go +0 -67
  1326. package/internal/telemetry/default_endpoint_test.go +0 -111
  1327. package/internal/telemetry/pendo.go +0 -185
  1328. package/internal/telemetry/pendo_auth_test.go +0 -92
  1329. package/internal/telemetry/pendo_test.go +0 -252
  1330. package/internal/telemetry/scrub.go +0 -90
  1331. package/internal/telemetry/scrub_test.go +0 -131
  1332. package/internal/telemetry/tracker.go +0 -102
  1333. package/internal/telemetry/tracker_test.go +0 -76
  1334. package/internal/telemetry/tracks.go +0 -82
  1335. package/internal/telemetry/tracks_test.go +0 -129
  1336. package/internal/telemetry/uuid.go +0 -50
  1337. package/internal/telemetry/uuid_test.go +0 -90
  1338. package/internal/tui/progress.go +0 -153
  1339. package/internal/tui/progress_test.go +0 -89
  1340. package/internal/tui/progress_tracker.go +0 -299
  1341. package/internal/tui/progress_tracker_test.go +0 -155
  1342. package/internal/update/archive.go +0 -134
  1343. package/internal/update/archive_test.go +0 -132
  1344. package/internal/update/download.go +0 -138
  1345. package/internal/update/download_test.go +0 -32
  1346. package/internal/update/github.go +0 -121
  1347. package/internal/update/install.go +0 -265
  1348. package/internal/update/install_test.go +0 -151
  1349. package/internal/update/lock_unix.go +0 -23
  1350. package/internal/update/lock_windows.go +0 -22
  1351. package/internal/update/native_test.go +0 -70
  1352. package/internal/update/notify.go +0 -91
  1353. package/internal/update/ownership.go +0 -117
  1354. package/internal/update/ownership_test.go +0 -102
  1355. package/internal/update/release.go +0 -120
  1356. package/internal/update/release_test.go +0 -168
  1357. package/internal/update/service.go +0 -197
  1358. package/internal/update/service_test.go +0 -118
  1359. package/internal/update/state.go +0 -116
  1360. package/internal/update/state_test.go +0 -132
  1361. package/internal/upload/debug_test.go +0 -76
  1362. package/internal/upload/filemeta.go +0 -112
  1363. package/internal/upload/filemeta_test.go +0 -94
  1364. package/internal/upload/multipart.go +0 -215
  1365. package/internal/upload/multipart_test.go +0 -210
  1366. package/internal/upload/orchestrate.go +0 -81
  1367. package/internal/upload/parts.go +0 -39
  1368. package/internal/upload/parts_test.go +0 -39
  1369. package/internal/upload/presign.go +0 -103
  1370. package/internal/upload/presign_test.go +0 -128
  1371. package/internal/upload/proxy_test.go +0 -55
  1372. package/internal/upload/putobject.go +0 -92
  1373. package/internal/upload/putobject_test.go +0 -79
  1374. package/internal/upload/retry.go +0 -45
  1375. package/internal/upload/upload.go +0 -22
  1376. package/internal/upload/xmlerror.go +0 -28
  1377. package/internal/validatefiles/files.go +0 -105
  1378. package/internal/validatefiles/files_test.go +0 -143
  1379. package/internal/validatefiles/report.go +0 -172
  1380. package/internal/validatefiles/validatefiles.go +0 -271
  1381. package/internal/validatefiles/validatefiles_test.go +0 -127
  1382. package/internal/version/stamp.go +0 -15
  1383. package/internal/version/stamp_test.go +0 -25
  1384. package/internal/version/version.go +0 -14
  1385. package/internal/version/version_test.go +0 -25
  1386. package/internal/wpshell/parser.go +0 -68
  1387. package/internal/wpshell/parser_test.go +0 -58
  1388. package/internal/wpshell/repl.go +0 -81
  1389. package/internal/wpshell/repl_test.go +0 -71
  1390. package/internal/wpshell/requote.go +0 -13
  1391. package/internal/wpshell/requote_test.go +0 -15
  1392. package/internal/wpssh/debug_test.go +0 -67
  1393. package/internal/wpssh/wpssh.go +0 -124
  1394. package/internal/wpssh/wpssh_test.go +0 -203
  1395. package/internal/wpstream/debug_test.go +0 -116
  1396. package/internal/wpstream/e2e_test.go +0 -178
  1397. package/internal/wpstream/engineio.go +0 -291
  1398. package/internal/wpstream/engineio_test.go +0 -82
  1399. package/internal/wpstream/iostream.go +0 -391
  1400. package/internal/wpstream/iostream_test.go +0 -138
  1401. package/internal/wpstream/run.go +0 -364
  1402. package/internal/wpstream/run_test.go +0 -184
  1403. package/internal/wpstream/socketio.go +0 -435
  1404. package/internal/wpstream/socketio_test.go +0 -402
  1405. package/internal/wpstream/testdata/fixture-server.js +0 -54
  1406. package/make.ps1 +0 -155
  1407. package/node_modules/@apollo/client/__cjs/utilities/internal/types/DeferInfo.cjs +0 -3
  1408. package/node_modules/@apollo/client/__cjs/utilities/internal/types/DeferInfo.cjs.map +0 -1
  1409. package/node_modules/@apollo/client/__cjs/utilities/internal/types/DeferInfo.d.cts +0 -10
  1410. package/node_modules/@apollo/client/utilities/internal/types/DeferInfo.d.ts +0 -10
  1411. package/node_modules/@apollo/client/utilities/internal/types/DeferInfo.js +0 -2
  1412. package/node_modules/@apollo/client/utilities/internal/types/DeferInfo.js.map +0 -1
  1413. package/node_modules/argparse/LICENSE +0 -254
  1414. package/node_modules/argparse/README.md +0 -84
  1415. package/node_modules/argparse/package.json +0 -31
  1416. package/node_modules/check-disk-space/dist/check-disk-space.cjs +0 -210
  1417. package/node_modules/check-disk-space/dist/check-disk-space.d.ts +0 -53
  1418. package/node_modules/fetch-retry/.eslintignore +0 -1
  1419. package/node_modules/fetch-retry/.eslintrc.yml +0 -20
  1420. package/node_modules/fetch-retry/.github/workflows/node.js.yml +0 -32
  1421. package/node_modules/fetch-retry/.husky/pre-commit +0 -6
  1422. package/node_modules/fetch-retry/.nycrc.json +0 -24
  1423. package/node_modules/fetch-retry/.travis.yml +0 -3
  1424. package/node_modules/fetch-retry/README.md +0 -128
  1425. package/node_modules/fetch-retry/dist/fetch-retry.umd.js +0 -151
  1426. package/node_modules/fetch-retry/index.d.ts +0 -29
  1427. package/node_modules/fetch-retry/index.js +0 -143
  1428. package/node_modules/fetch-retry/package.json +0 -41
  1429. package/node_modules/fetch-retry/rollup.config.js +0 -12
  1430. package/node_modules/fetch-retry/test/.eslintrc.yml +0 -7
  1431. package/node_modules/fetch-retry/test/integration/index.js +0 -212
  1432. package/node_modules/fetch-retry/test/integration/mock-api/index.js +0 -42
  1433. package/node_modules/fetch-retry/test/unit/index.js +0 -1169
  1434. package/node_modules/lando/node_modules/cliui/build/index.cjs +0 -302
  1435. package/node_modules/lando/node_modules/cliui/build/lib/string-utils.js +0 -27
  1436. package/node_modules/lando/node_modules/js-yaml/LICENSE +0 -21
  1437. package/node_modules/lando/node_modules/js-yaml/README.md +0 -233
  1438. package/node_modules/lando/node_modules/js-yaml/bin/js-yaml.js +0 -117
  1439. package/node_modules/lando/node_modules/js-yaml/dist/js-yaml.js +0 -3022
  1440. package/node_modules/lando/node_modules/js-yaml/dist/js-yaml.js.map +0 -1
  1441. package/node_modules/lando/node_modules/js-yaml/dist/js-yaml.min.js +0 -2
  1442. package/node_modules/lando/node_modules/js-yaml/dist/js-yaml.min.js.map +0 -1
  1443. package/node_modules/lando/node_modules/js-yaml/dist/js-yaml.mjs +0 -3082
  1444. package/node_modules/lando/node_modules/js-yaml/dist/js-yaml.mjs.map +0 -1
  1445. package/node_modules/lando/node_modules/js-yaml/index.js +0 -44
  1446. package/node_modules/lando/node_modules/js-yaml/lib/common.js +0 -50
  1447. package/node_modules/lando/node_modules/js-yaml/lib/dumper.js +0 -937
  1448. package/node_modules/lando/node_modules/js-yaml/lib/exception.js +0 -51
  1449. package/node_modules/lando/node_modules/js-yaml/lib/index_vite_proxy.tmp.mjs +0 -37
  1450. package/node_modules/lando/node_modules/js-yaml/lib/loader.js +0 -1803
  1451. package/node_modules/lando/node_modules/js-yaml/lib/schema/core.js +0 -9
  1452. package/node_modules/lando/node_modules/js-yaml/lib/schema/default.js +0 -20
  1453. package/node_modules/lando/node_modules/js-yaml/lib/schema/failsafe.js +0 -14
  1454. package/node_modules/lando/node_modules/js-yaml/lib/schema/json.js +0 -17
  1455. package/node_modules/lando/node_modules/js-yaml/lib/schema.js +0 -109
  1456. package/node_modules/lando/node_modules/js-yaml/lib/snippet.js +0 -96
  1457. package/node_modules/lando/node_modules/js-yaml/lib/type/binary.js +0 -122
  1458. package/node_modules/lando/node_modules/js-yaml/lib/type/bool.js +0 -35
  1459. package/node_modules/lando/node_modules/js-yaml/lib/type/float.js +0 -99
  1460. package/node_modules/lando/node_modules/js-yaml/lib/type/int.js +0 -142
  1461. package/node_modules/lando/node_modules/js-yaml/lib/type/map.js +0 -8
  1462. package/node_modules/lando/node_modules/js-yaml/lib/type/merge.js +0 -12
  1463. package/node_modules/lando/node_modules/js-yaml/lib/type/null.js +0 -35
  1464. package/node_modules/lando/node_modules/js-yaml/lib/type/omap.js +0 -45
  1465. package/node_modules/lando/node_modules/js-yaml/lib/type/pairs.js +0 -50
  1466. package/node_modules/lando/node_modules/js-yaml/lib/type/seq.js +0 -8
  1467. package/node_modules/lando/node_modules/js-yaml/lib/type/set.js +0 -29
  1468. package/node_modules/lando/node_modules/js-yaml/lib/type/str.js +0 -8
  1469. package/node_modules/lando/node_modules/js-yaml/lib/type/timestamp.js +0 -88
  1470. package/node_modules/lando/node_modules/js-yaml/lib/type.js +0 -66
  1471. package/node_modules/lando/node_modules/js-yaml/package.json +0 -83
  1472. package/node_modules/lando/node_modules/wrap-ansi/index.js +0 -216
  1473. package/node_modules/lando/node_modules/wrap-ansi/package.json +0 -62
  1474. package/node_modules/lando/node_modules/wrap-ansi/readme.md +0 -91
  1475. package/node_modules/lando/node_modules/yargs/build/index.cjs +0 -2920
  1476. package/node_modules/lando/node_modules/yargs/helpers/index.js +0 -14
  1477. package/node_modules/lando/node_modules/yargs/index.cjs +0 -39
  1478. package/node_modules/lando/node_modules/yargs/yargs +0 -9
  1479. package/node_modules/lando/node_modules/yargs-parser/build/index.cjs +0 -1042
  1480. package/node_modules/lando/plugins/lando-test/index.js +0 -3
  1481. package/node_modules/lando/plugins/lando-test/plugin.yml +0 -2
  1482. package/node_modules/ssh2/lib/protocol/crypto/build/Release/.deps/Release/obj.target/sshcrypto/src/binding.o.d +0 -265
  1483. package/node_modules/ssh2/lib/protocol/crypto/build/Release/.deps/Release/obj.target/sshcrypto.node.d +0 -1
  1484. package/node_modules/ssh2/lib/protocol/crypto/build/Release/.deps/Release/sshcrypto.node.d +0 -1
  1485. package/node_modules/ssh2/lib/protocol/crypto/build/Release/obj.target/sshcrypto/src/binding.o +0 -0
  1486. package/node_modules/ssh2/lib/protocol/crypto/build/Release/obj.target/sshcrypto.node +0 -0
  1487. package/node_modules/ssh2/lib/protocol/crypto/build/Release/sshcrypto.node +0 -0
  1488. package/packaging/macos/build-pkg.sh +0 -53
  1489. package/packaging/macos/preinstall +0 -33
  1490. package/packaging/macos/test-install.sh +0 -51
  1491. package/packaging/macos/test_package.py +0 -74
  1492. package/packaging/macos/uninstall.sh +0 -24
  1493. package/packaging/macos/verify-pkg.py +0 -61
  1494. package/packaging/windows/build-msi.ps1 +0 -153
  1495. package/packaging/windows/test-msi.ps1 +0 -225
  1496. package/packaging/windows/verify-msi.ps1 +0 -74
  1497. package/packaging/windows/vip-next.wxs +0 -79
  1498. package/scripts/catalog_script_test.go +0 -123
  1499. package/scripts/vip-next-command-catalog.sh +0 -506
  1500. package/test-utils/undici-mock.js +0 -25
  1501. package/testdata/installer-fixture/main.go +0 -40
  1502. package/testdata/parity/app-deploy-completed.yaml +0 -14
  1503. package/testdata/parity/app-deploy-missing-token.yaml +0 -21
  1504. package/testdata/parity/app-deploy-validate-clean.yaml +0 -11
  1505. package/testdata/parity/app-deploy-validate-missing-themes.yaml +0 -21
  1506. package/testdata/parity/app-get-baseline.yaml +0 -14
  1507. package/testdata/parity/app-get-custom-deploy.yaml +0 -14
  1508. package/testdata/parity/app-get-json.yaml +0 -14
  1509. package/testdata/parity/app-get-not-found.yaml +0 -13
  1510. package/testdata/parity/app-list-baseline.yaml +0 -14
  1511. package/testdata/parity/app-list-csv.yaml +0 -13
  1512. package/testdata/parity/app-list-empty.yaml +0 -13
  1513. package/testdata/parity/app-list-ids.yaml +0 -26
  1514. package/testdata/parity/app-list-json.yaml +0 -13
  1515. package/testdata/parity/app-list-unknown-format.yaml +0 -29
  1516. package/testdata/parity/backup-db-already-in-progress.yaml +0 -15
  1517. package/testdata/parity/backup-db-completed.yaml +0 -14
  1518. package/testdata/parity/backup-db-help.yaml +0 -10
  1519. package/testdata/parity/cache-purge-url-empty.yaml +0 -26
  1520. package/testdata/parity/cache-purge-url-from-file.yaml +0 -21
  1521. package/testdata/parity/cache-purge-url-multi.yaml +0 -19
  1522. package/testdata/parity/cache-purge-url-single.yaml +0 -18
  1523. package/testdata/parity/defensive-mode-enable-with-rechallenge.yaml +0 -20
  1524. package/testdata/parity/edge-workers-artifact-symlink.yaml +0 -8
  1525. package/testdata/parity/edge-workers-bare-location.yaml +0 -8
  1526. package/testdata/parity/edge-workers-bare-path.yaml +0 -8
  1527. package/testdata/parity/edge-workers-bare-type.yaml +0 -8
  1528. package/testdata/parity/edge-workers-build-all.yaml +0 -8
  1529. package/testdata/parity/edge-workers-build-compiler-error.yaml +0 -8
  1530. package/testdata/parity/edge-workers-build-empty.yaml +0 -8
  1531. package/testdata/parity/edge-workers-build-missing-compiler.yaml +0 -8
  1532. package/testdata/parity/edge-workers-build-name-all.yaml +0 -8
  1533. package/testdata/parity/edge-workers-build-one.yaml +0 -8
  1534. package/testdata/parity/edge-workers-delete-force.yaml +0 -8
  1535. package/testdata/parity/edge-workers-delete-rejected.yaml +0 -8
  1536. package/testdata/parity/edge-workers-deploy-active-update-enable.yaml +0 -8
  1537. package/testdata/parity/edge-workers-deploy-active-update.yaml +0 -8
  1538. package/testdata/parity/edge-workers-deploy-all-preparation-failure.yaml +0 -8
  1539. package/testdata/parity/edge-workers-deploy-create-enable.yaml +0 -8
  1540. package/testdata/parity/edge-workers-deploy-create.yaml +0 -8
  1541. package/testdata/parity/edge-workers-deploy-enable-failure.yaml +0 -8
  1542. package/testdata/parity/edge-workers-deploy-inactive-update-enable.yaml +0 -8
  1543. package/testdata/parity/edge-workers-deploy-inactive-update.yaml +0 -8
  1544. package/testdata/parity/edge-workers-deploy-location-clear.yaml +0 -8
  1545. package/testdata/parity/edge-workers-deploy-location-preserve.yaml +0 -8
  1546. package/testdata/parity/edge-workers-deploy-location-replace.yaml +0 -8
  1547. package/testdata/parity/edge-workers-deploy-name-all.yaml +0 -8
  1548. package/testdata/parity/edge-workers-deploy-production-refused.yaml +0 -8
  1549. package/testdata/parity/edge-workers-deploy-production-skip.yaml +0 -8
  1550. package/testdata/parity/edge-workers-deploy-skip-source-create.yaml +0 -8
  1551. package/testdata/parity/edge-workers-deploy-skip-source.yaml +0 -8
  1552. package/testdata/parity/edge-workers-deploy-skip-validate.yaml +0 -8
  1553. package/testdata/parity/edge-workers-deploy-source-empty.yaml +0 -8
  1554. package/testdata/parity/edge-workers-deploy-upload-failure.yaml +0 -8
  1555. package/testdata/parity/edge-workers-disable.yaml +0 -8
  1556. package/testdata/parity/edge-workers-double-dash.yaml +0 -8
  1557. package/testdata/parity/edge-workers-duplicate-names.yaml +0 -8
  1558. package/testdata/parity/edge-workers-enable-production-refused.yaml +0 -8
  1559. package/testdata/parity/edge-workers-enable.yaml +0 -8
  1560. package/testdata/parity/edge-workers-entry-escape.yaml +0 -8
  1561. package/testdata/parity/edge-workers-get-empty-source.yaml +0 -8
  1562. package/testdata/parity/edge-workers-get-missing.yaml +0 -8
  1563. package/testdata/parity/edge-workers-get-no-source.yaml +0 -8
  1564. package/testdata/parity/edge-workers-get-source.yaml +0 -8
  1565. package/testdata/parity/edge-workers-get.yaml +0 -8
  1566. package/testdata/parity/edge-workers-init-invalid-type.yaml +0 -8
  1567. package/testdata/parity/edge-workers-init-nonempty.yaml +0 -8
  1568. package/testdata/parity/edge-workers-init.yaml +0 -8
  1569. package/testdata/parity/edge-workers-json-control-name.yaml +0 -8
  1570. package/testdata/parity/edge-workers-list-csv.yaml +0 -8
  1571. package/testdata/parity/edge-workers-list-empty-json.yaml +0 -8
  1572. package/testdata/parity/edge-workers-list-empty.yaml +0 -8
  1573. package/testdata/parity/edge-workers-list-json.yaml +0 -8
  1574. package/testdata/parity/edge-workers-list-table.yaml +0 -8
  1575. package/testdata/parity/edge-workers-mutation-graphql-error.yaml +0 -8
  1576. package/testdata/parity/edge-workers-mutation-null.yaml +0 -8
  1577. package/testdata/parity/edge-workers-new-invalid-location.yaml +0 -8
  1578. package/testdata/parity/edge-workers-new-invalid-name.yaml +0 -8
  1579. package/testdata/parity/edge-workers-new-location.yaml +0 -8
  1580. package/testdata/parity/edge-workers-new.yaml +0 -8
  1581. package/testdata/parity/edge-workers-read-null.yaml +0 -8
  1582. package/testdata/parity/edge-workers-repeated-path.yaml +0 -8
  1583. package/testdata/parity/edge-workers-repeated-type.yaml +0 -8
  1584. package/testdata/parity/edge-workers-short-equals.yaml +0 -8
  1585. package/testdata/parity/edge-workers-table-control-name.yaml +0 -8
  1586. package/testdata/parity/edge-workers-unicode-order.yaml +0 -8
  1587. package/testdata/parity/edge-workers-validate-all.yaml +0 -8
  1588. package/testdata/parity/edge-workers-validate-invalid.yaml +0 -8
  1589. package/testdata/parity/edge-workers-validate-name-all.yaml +0 -8
  1590. package/testdata/parity/edge-workers-validate-no-artifact.yaml +0 -8
  1591. package/testdata/parity/edge-workers-validate-no-name.yaml +0 -8
  1592. package/testdata/parity/edge-workers-validate-null.yaml +0 -8
  1593. package/testdata/parity/edge-workers-validate.yaml +0 -8
  1594. package/testdata/parity/envvar-delete-baseline.yaml +0 -19
  1595. package/testdata/parity/envvar-delete-prod-cancel.yaml +0 -41
  1596. package/testdata/parity/envvar-delete-typed-mismatch.yaml +0 -44
  1597. package/testdata/parity/envvar-get-baseline.yaml +0 -14
  1598. package/testdata/parity/envvar-get-lowercase-input.yaml +0 -14
  1599. package/testdata/parity/envvar-get-named-help.yaml +0 -24
  1600. package/testdata/parity/envvar-get-not-found.yaml +0 -17
  1601. package/testdata/parity/envvar-getall-baseline.yaml +0 -14
  1602. package/testdata/parity/envvar-getall-empty.yaml +0 -15
  1603. package/testdata/parity/envvar-getall-keyvalue.yaml +0 -22
  1604. package/testdata/parity/envvar-list-baseline.yaml +0 -15
  1605. package/testdata/parity/envvar-list-empty.yaml +0 -15
  1606. package/testdata/parity/envvar-list-ids.yaml +0 -14
  1607. package/testdata/parity/envvar-list-json.yaml +0 -14
  1608. package/testdata/parity/envvar-list-keyvalue.yaml +0 -22
  1609. package/testdata/parity/envvar-set-baseline.yaml +0 -21
  1610. package/testdata/parity/envvar-set-invalid-name.yaml +0 -20
  1611. package/testdata/parity/envvar-set-newrelic-blocked.yaml +0 -21
  1612. package/testdata/parity/envvar-set-prod-cancel.yaml +0 -42
  1613. package/testdata/parity/envvar-set-prod-confirm-skipped.yaml +0 -20
  1614. package/testdata/parity/export-sql-completed.yaml +0 -14
  1615. package/testdata/parity/export-sql-config-conflict.yaml +0 -21
  1616. package/testdata/parity/export-sql-help.yaml +0 -11
  1617. package/testdata/parity/import-media-abort-noninteractive.yaml +0 -19
  1618. package/testdata/parity/import-media-help.yaml +0 -12
  1619. package/testdata/parity/import-media-invalid-archive.yaml +0 -18
  1620. package/testdata/parity/import-media-status-completed.yaml +0 -19
  1621. package/testdata/parity/import-media-status-failed.yaml +0 -18
  1622. package/testdata/parity/import-media-url-completed.yaml +0 -18
  1623. package/testdata/parity/import-sql-bad-extension.yaml +0 -26
  1624. package/testdata/parity/import-sql-help.yaml +0 -12
  1625. package/testdata/parity/import-sql-in-progress.yaml +0 -26
  1626. package/testdata/parity/import-sql-invalid-md5.yaml +0 -27
  1627. package/testdata/parity/import-sql-noninteractive-abort.yaml +0 -20
  1628. package/testdata/parity/import-sql-status-completed.yaml +0 -17
  1629. package/testdata/parity/import-sql-status-no-job.yaml +0 -17
  1630. package/testdata/parity/import-sql-validation-failure.yaml +0 -18
  1631. package/testdata/parity/import-validate-files-clean.yaml +0 -18
  1632. package/testdata/parity/import-validate-files-not-dir.yaml +0 -16
  1633. package/testdata/parity/import-validate-sql-clean.yaml +0 -23
  1634. package/testdata/parity/import-validate-sql-dangerous-stmt.yaml +0 -27
  1635. package/testdata/parity/import-validate-sql-multisite-warn.yaml +0 -23
  1636. package/testdata/parity/logs-baseline.yaml +0 -24
  1637. package/testdata/parity/logs-batch.yaml +0 -24
  1638. package/testdata/parity/logs-empty.yaml +0 -15
  1639. package/testdata/parity/logs-format-json.yaml +0 -15
  1640. package/testdata/parity/logs-limit-100.yaml +0 -24
  1641. package/testdata/parity/phpmyadmin-error.yaml +0 -24
  1642. package/testdata/parity/phpmyadmin-print.yaml +0 -22
  1643. package/testdata/parity/phpmyadmin-silent.yaml +0 -16
  1644. package/testdata/parity/recordings/app-get-baseline/app.json +0 -11
  1645. package/testdata/parity/recordings/app-get-custom-deploy/app.json +0 -8
  1646. package/testdata/parity/recordings/app-get-json/app.json +0 -11
  1647. package/testdata/parity/recordings/app-get-not-found/app.json +0 -1
  1648. package/testdata/parity/recordings/app-list-baseline/apps.json +0 -1
  1649. package/testdata/parity/recordings/app-list-csv/apps.json +0 -1
  1650. package/testdata/parity/recordings/app-list-empty/apps.json +0 -1
  1651. package/testdata/parity/recordings/app-list-json/apps.json +0 -1
  1652. package/testdata/parity/recordings/backup-db-already-in-progress/backup-status-1.json +0 -1
  1653. package/testdata/parity/recordings/backup-db-already-in-progress/backup-status-2.json +0 -1
  1654. package/testdata/parity/recordings/backup-db-completed/backup-status-1.json +0 -1
  1655. package/testdata/parity/recordings/backup-db-completed/backup-status-2.json +0 -1
  1656. package/testdata/parity/recordings/backup-db-completed/backup-status-3.json +0 -1
  1657. package/testdata/parity/recordings/cache-purge-url-empty/resolve-app.json +0 -1
  1658. package/testdata/parity/recordings/cache-purge-url-from-file/purge.json +0 -1
  1659. package/testdata/parity/recordings/cache-purge-url-from-file/resolve-app.json +0 -1
  1660. package/testdata/parity/recordings/cache-purge-url-from-file/urls.txt +0 -2
  1661. package/testdata/parity/recordings/cache-purge-url-multi/purge.json +0 -1
  1662. package/testdata/parity/recordings/cache-purge-url-multi/resolve-app.json +0 -1
  1663. package/testdata/parity/recordings/cache-purge-url-single/purge.json +0 -1
  1664. package/testdata/parity/recordings/cache-purge-url-single/resolve-app.json +0 -1
  1665. package/testdata/parity/recordings/config-software-get/resolve-app.json +0 -1
  1666. package/testdata/parity/recordings/config-software-update/resolve-app.json +0 -1
  1667. package/testdata/parity/recordings/defensive-mode-enable-rechallenge/mutation-elevated.json +0 -1
  1668. package/testdata/parity/recordings/defensive-mode-enable-rechallenge/mutation-success.json +0 -1
  1669. package/testdata/parity/recordings/defensive-mode-enable-rechallenge/parker-create-session.json +0 -1
  1670. package/testdata/parity/recordings/defensive-mode-enable-rechallenge/parker-exchange.json +0 -1
  1671. package/testdata/parity/recordings/defensive-mode-enable-rechallenge/parker-status-verified.json +0 -1
  1672. package/testdata/parity/recordings/envvar-delete-baseline/delete.json +0 -1
  1673. package/testdata/parity/recordings/envvar-delete-baseline/resolve-app.json +0 -1
  1674. package/testdata/parity/recordings/envvar-delete-prod-cancel/resolve-app.json +0 -1
  1675. package/testdata/parity/recordings/envvar-delete-typed-mismatch/resolve-app.json +0 -1
  1676. package/testdata/parity/recordings/envvar-get-baseline/envvars.json +0 -1
  1677. package/testdata/parity/recordings/envvar-get-baseline/resolve-app.json +0 -1
  1678. package/testdata/parity/recordings/envvar-get-lowercase-input/envvars.json +0 -1
  1679. package/testdata/parity/recordings/envvar-get-lowercase-input/resolve-app.json +0 -1
  1680. package/testdata/parity/recordings/envvar-get-named-help/envvars.json +0 -1
  1681. package/testdata/parity/recordings/envvar-get-named-help/resolve-app.json +0 -1
  1682. package/testdata/parity/recordings/envvar-get-not-found/envvars.json +0 -1
  1683. package/testdata/parity/recordings/envvar-get-not-found/resolve-app.json +0 -1
  1684. package/testdata/parity/recordings/envvar-getall-baseline/envvars.json +0 -1
  1685. package/testdata/parity/recordings/envvar-getall-baseline/resolve-app.json +0 -1
  1686. package/testdata/parity/recordings/envvar-getall-empty/envvars.json +0 -1
  1687. package/testdata/parity/recordings/envvar-getall-empty/resolve-app.json +0 -1
  1688. package/testdata/parity/recordings/envvar-getall-keyvalue/envvars.json +0 -1
  1689. package/testdata/parity/recordings/envvar-getall-keyvalue/resolve-app.json +0 -1
  1690. package/testdata/parity/recordings/envvar-list-baseline/envvars.json +0 -1
  1691. package/testdata/parity/recordings/envvar-list-baseline/resolve-app.json +0 -1
  1692. package/testdata/parity/recordings/envvar-list-empty/envvars.json +0 -1
  1693. package/testdata/parity/recordings/envvar-list-empty/resolve-app.json +0 -1
  1694. package/testdata/parity/recordings/envvar-list-ids/envvars.json +0 -1
  1695. package/testdata/parity/recordings/envvar-list-ids/resolve-app.json +0 -1
  1696. package/testdata/parity/recordings/envvar-list-json/envvars.json +0 -1
  1697. package/testdata/parity/recordings/envvar-list-json/resolve-app.json +0 -1
  1698. package/testdata/parity/recordings/envvar-list-keyvalue/envvars.json +0 -1
  1699. package/testdata/parity/recordings/envvar-list-keyvalue/resolve-app.json +0 -1
  1700. package/testdata/parity/recordings/envvar-set-baseline/add.json +0 -1
  1701. package/testdata/parity/recordings/envvar-set-baseline/resolve-app.json +0 -1
  1702. package/testdata/parity/recordings/envvar-set-baseline/value.txt +0 -1
  1703. package/testdata/parity/recordings/envvar-set-invalid-name/resolve-app.json +0 -1
  1704. package/testdata/parity/recordings/envvar-set-invalid-name/value.txt +0 -1
  1705. package/testdata/parity/recordings/envvar-set-newrelic-blocked/resolve-app.json +0 -1
  1706. package/testdata/parity/recordings/envvar-set-newrelic-blocked/value.txt +0 -1
  1707. package/testdata/parity/recordings/envvar-set-prod-cancel/resolve-app.json +0 -1
  1708. package/testdata/parity/recordings/envvar-set-prod-cancel/value.txt +0 -1
  1709. package/testdata/parity/recordings/envvar-set-prod-confirm-skipped/add.json +0 -1
  1710. package/testdata/parity/recordings/envvar-set-prod-confirm-skipped/resolve-app.json +0 -1
  1711. package/testdata/parity/recordings/envvar-set-prod-confirm-skipped/value.txt +0 -1
  1712. package/testdata/parity/recordings/export-sql-completed/export-status-1.json +0 -1
  1713. package/testdata/parity/recordings/export-sql-completed/export-status-2.json +0 -1
  1714. package/testdata/parity/recordings/import-media-invalid-archive/file.sql +0 -1
  1715. package/testdata/parity/recordings/import-media-shared/abort-media-import.json +0 -1
  1716. package/testdata/parity/recordings/import-media-shared/env-info.json +0 -1
  1717. package/testdata/parity/recordings/import-media-shared/resolve-app.json +0 -1
  1718. package/testdata/parity/recordings/import-media-shared/start-media-import.json +0 -1
  1719. package/testdata/parity/recordings/import-media-status-completed/progress.json +0 -1
  1720. package/testdata/parity/recordings/import-media-status-failed/progress.json +0 -1
  1721. package/testdata/parity/recordings/import-media-url-completed/progress.json +0 -1
  1722. package/testdata/parity/recordings/import-sql-bad-extension/file.txt +0 -1
  1723. package/testdata/parity/recordings/import-sql-in-progress/env-info.json +0 -1
  1724. package/testdata/parity/recordings/import-sql-in-progress/resolve-app.json +0 -1
  1725. package/testdata/parity/recordings/import-sql-noninteractive-abort/clean.sql +0 -5
  1726. package/testdata/parity/recordings/import-sql-shared/env-info.json +0 -1
  1727. package/testdata/parity/recordings/import-sql-shared/multisite.json +0 -1
  1728. package/testdata/parity/recordings/import-sql-shared/resolve-app.json +0 -1
  1729. package/testdata/parity/recordings/import-sql-status-completed/progress.json +0 -1
  1730. package/testdata/parity/recordings/import-sql-status-no-job/progress.json +0 -1
  1731. package/testdata/parity/recordings/import-sql-validation-failure/dirty.sql +0 -6
  1732. package/testdata/parity/recordings/import-validate-files-clean/config.json +0 -1
  1733. package/testdata/parity/recordings/import-validate-files-clean/uploads/2020/06/a.jpg +0 -1
  1734. package/testdata/parity/recordings/import-validate-files-clean/uploads/2020/06/b.png +0 -1
  1735. package/testdata/parity/recordings/import-validate-sql-clean/clean.sql +0 -17
  1736. package/testdata/parity/recordings/import-validate-sql-dangerous-stmt/dangerous.sql +0 -11
  1737. package/testdata/parity/recordings/import-validate-sql-multisite-warn/multisite.sql +0 -12
  1738. package/testdata/parity/recordings/logs-baseline/logs.json +0 -1
  1739. package/testdata/parity/recordings/logs-baseline/resolve-app.json +0 -1
  1740. package/testdata/parity/recordings/logs-batch/logs.json +0 -1
  1741. package/testdata/parity/recordings/logs-batch/resolve-app.json +0 -1
  1742. package/testdata/parity/recordings/logs-empty/logs.json +0 -1
  1743. package/testdata/parity/recordings/logs-empty/resolve-app.json +0 -1
  1744. package/testdata/parity/recordings/logs-format-json/logs.json +0 -1
  1745. package/testdata/parity/recordings/logs-format-json/resolve-app.json +0 -1
  1746. package/testdata/parity/recordings/logs-limit-100/logs.json +0 -1
  1747. package/testdata/parity/recordings/logs-limit-100/resolve-app.json +0 -1
  1748. package/testdata/parity/recordings/m7c-shared/resolve-app.json +0 -1
  1749. package/testdata/parity/recordings/phpmyadmin-error/enable.json +0 -1
  1750. package/testdata/parity/recordings/phpmyadmin-error/resolve-app.json +0 -1
  1751. package/testdata/parity/recordings/phpmyadmin-print/enable.json +0 -1
  1752. package/testdata/parity/recordings/phpmyadmin-print/generate.json +0 -1
  1753. package/testdata/parity/recordings/phpmyadmin-print/resolve-app.json +0 -1
  1754. package/testdata/parity/recordings/phpmyadmin-print/status.json +0 -1
  1755. package/testdata/parity/recordings/phpmyadmin-silent/enable.json +0 -1
  1756. package/testdata/parity/recordings/phpmyadmin-silent/generate.json +0 -1
  1757. package/testdata/parity/recordings/phpmyadmin-silent/resolve-app.json +0 -1
  1758. package/testdata/parity/recordings/phpmyadmin-silent/status.json +0 -1
  1759. package/testdata/parity/recordings/slowlogs-baseline/resolve-app.json +0 -1
  1760. package/testdata/parity/recordings/slowlogs-baseline/slowlogs.json +0 -1
  1761. package/testdata/parity/recordings/slowlogs-csv/resolve-app.json +0 -1
  1762. package/testdata/parity/recordings/slowlogs-csv/slowlogs.json +0 -1
  1763. package/testdata/parity/recordings/slowlogs-empty/resolve-app.json +0 -1
  1764. package/testdata/parity/recordings/slowlogs-empty/slowlogs.json +0 -1
  1765. package/testdata/parity/recordings/slowlogs-limit-50/resolve-app.json +0 -1
  1766. package/testdata/parity/recordings/slowlogs-limit-50/slowlogs.json +0 -1
  1767. package/testdata/parity/recordings/sync-already-syncing/resolve-app.json +0 -1
  1768. package/testdata/parity/recordings/sync-already-syncing/sync-start.json +0 -1
  1769. package/testdata/parity/recordings/sync-already-syncing/sync-status-1.json +0 -1
  1770. package/testdata/parity/recordings/sync-already-syncing/sync-status-2.json +0 -1
  1771. package/testdata/parity/recordings/sync-baseline/resolve-app.json +0 -1
  1772. package/testdata/parity/recordings/sync-baseline/sync-start.json +0 -1
  1773. package/testdata/parity/recordings/sync-baseline/sync-status-1.json +0 -1
  1774. package/testdata/parity/recordings/sync-baseline/sync-status-2.json +0 -1
  1775. package/testdata/parity/recordings/whoami-baseline/me-response.json +0 -1
  1776. package/testdata/parity/recordings/wp-nodejs-rejected/resolve-app.json +0 -1
  1777. package/testdata/parity/recordings/wp-production-confirm-decline/resolve-app.json +0 -1
  1778. package/testdata/parity/recordings/wp-ssh-happy/resolve-app.json +0 -1
  1779. package/testdata/parity/recordings/wp-websocket-redirect/resolve-app.json +0 -1
  1780. package/testdata/parity/slowlogs-baseline.yaml +0 -18
  1781. package/testdata/parity/slowlogs-csv.yaml +0 -16
  1782. package/testdata/parity/slowlogs-empty.yaml +0 -17
  1783. package/testdata/parity/slowlogs-limit-50.yaml +0 -16
  1784. package/testdata/parity/sync-already-syncing.yaml +0 -20
  1785. package/testdata/parity/sync-baseline.yaml +0 -19
  1786. package/testdata/parity/version-smoke.yaml +0 -14
  1787. package/testdata/parity/whoami-baseline.yaml +0 -14
  1788. package/testdata/parity/wp-help.yaml +0 -12
  1789. package/testdata/parity/wp-nodejs-rejected.yaml +0 -13
  1790. package/testdata/parity/wp-production-confirm-decline.yaml +0 -14
  1791. package/testdata/parity/wp-ssh-happy.yaml +0 -15
  1792. package/testdata/parity/wp-websocket-redirect.yaml +0 -14
  1793. package/testdata/parity-local/app-get-csv.yaml +0 -8
  1794. package/testdata/parity-local/app-get-json.yaml +0 -8
  1795. package/testdata/parity-local/app-get-table.yaml +0 -8
  1796. package/testdata/parity-local/app-list-csv.yaml +0 -8
  1797. package/testdata/parity-local/app-list-json.yaml +0 -8
  1798. package/testdata/parity-local/app-list-table.yaml +0 -8
  1799. package/testdata/parity-local/edge-workers/basic/edge-workers.json +0 -1
  1800. package/testdata/parity-local/edge-workers/basic/workers/headers/assembly/index.ts +0 -1
  1801. package/testdata/parity-local/edge-workers/basic/workers/headers/worker.json +0 -1
  1802. package/testdata/parity-local/edge-workers/two-workers/edge-workers.json +0 -1
  1803. package/testdata/parity-local/edge-workers/two-workers/workers/a/assembly/index.ts +0 -1
  1804. package/testdata/parity-local/edge-workers/two-workers/workers/a/worker.json +0 -1
  1805. package/testdata/parity-local/edge-workers/two-workers/workers/b/assembly/index.ts +0 -1
  1806. package/testdata/parity-local/edge-workers/two-workers/workers/b/worker.json +0 -1
  1807. package/testdata/parity-local/envvar-list-csv.yaml +0 -8
  1808. package/testdata/parity-local/envvar-list-ids.yaml +0 -8
  1809. package/testdata/parity-local/envvar-list-json.yaml +0 -8
  1810. package/testdata/parity-local/envvar-list-keyvalue.yaml +0 -8
  1811. package/testdata/parity-local/envvar-list-table.yaml +0 -8
  1812. package/testdata/parity-local/software-get-csv.yaml +0 -8
  1813. package/testdata/parity-local/software-get-json.yaml +0 -8
  1814. package/testdata/parity-local/software-get-table.yaml +0 -8
  1815. package/testdata/parity-local/whoami.yaml +0 -8
  1816. package/testdata/update-fixture/main.go +0 -62
  1817. package/third_party/go-search-replace/MANIFEST +0 -33
  1818. package/tsconfig.json +0 -25
  1819. /package/node_modules/lando/node_modules/{wrap-ansi → ansi-regex}/license +0 -0
@@ -1,4 +1,4 @@
1
- /*! Axios v1.18.1 Copyright (c) 2026 Matt Zabriskie and contributors */
1
+ /*! Axios v1.20.0 Copyright (c) 2026 Matt Zabriskie and contributors */
2
2
  'use strict';
3
3
 
4
4
  var FormData$1 = require('form-data');
@@ -45,13 +45,57 @@ const {
45
45
  const hasOwnProperty = (({
46
46
  hasOwnProperty
47
47
  }) => (obj, prop) => hasOwnProperty.call(obj, prop))(Object.prototype);
48
+ const isUnsafeObjectKey = prop => typeof prop === 'string' && (prop === '__proto__' || prop === 'constructor' || prop === 'prototype');
48
49
 
49
50
  /**
50
- * Walk the prototype chain (excluding the shared Object.prototype) looking for
51
- * an own `prop`. This distinguishes genuine own/inherited members — including
52
- * class accessors and template prototypes — from members injected via
53
- * Object.prototype pollution (e.g. `Object.prototype.username = '...'`), which
54
- * live on Object.prototype itself and are therefore never matched.
51
+ * Determine whether an inherited object must be treated as a shared-prototype
52
+ * boundary. Cross-realm Object.prototype objects cannot be distinguished
53
+ * reliably from application-created null-prototype objects because their
54
+ * properties are mutable, so all inherited terminal prototypes are excluded
55
+ * as a fail-closed boundary. A null-prototype source still keeps its own
56
+ * properties, as produced by mergeConfig and other safe materialization paths.
57
+ *
58
+ * @param {*} obj The object to inspect
59
+ * @param {*} prototype The object's prototype
60
+ * @param {boolean} source Whether obj is the original traversal source
61
+ *
62
+ * @returns {boolean} True when obj is a safe prototype traversal boundary
63
+ */
64
+ const isPrototypeBoundary = (obj, prototype, source) => obj === Object.prototype || !source && prototype === null;
65
+
66
+ /**
67
+ * Determine whether an object can retain its identity through code paths that
68
+ * add, replace, and remove config properties without bypassing unsafe-key
69
+ * filtering. Immutable objects, unsafe-key-bearing objects, and objects with
70
+ * accessor or restricted data properties must be materialized instead.
71
+ *
72
+ * @param {*} obj The object to inspect
73
+ *
74
+ * @returns {boolean} True when every own property is safe and fully mutable
75
+ */
76
+ const isSafeAndFullyMutable = obj => {
77
+ if (!Object.isExtensible(obj)) {
78
+ return false;
79
+ }
80
+ const props = Object.getOwnPropertyNames(obj);
81
+ if (Object.getOwnPropertySymbols) {
82
+ props.push(...Object.getOwnPropertySymbols(obj));
83
+ }
84
+ return props.every(prop => {
85
+ if (isUnsafeObjectKey(prop)) {
86
+ return false;
87
+ }
88
+ const descriptor = Object.getOwnPropertyDescriptor(obj, prop);
89
+ return !!descriptor && descriptor.configurable && descriptor.writable === true;
90
+ });
91
+ };
92
+
93
+ /**
94
+ * Walk the prototype chain (excluding the source realm's Object.prototype)
95
+ * looking for an own `prop`. This distinguishes genuine own/inherited members
96
+ * — including class accessors and template prototypes — from members injected
97
+ * via Object.prototype pollution (e.g. `Object.prototype.username = '...'`),
98
+ * which live on Object.prototype itself and are therefore never matched.
55
99
  *
56
100
  * @param {*} thing The value whose chain to inspect
57
101
  * @param {string|symbol} prop The property key to look for
@@ -61,15 +105,19 @@ const hasOwnProperty = (({
61
105
  const hasOwnInPrototypeChain = (thing, prop) => {
62
106
  let obj = thing;
63
107
  const seen = [];
64
- while (obj != null && obj !== Object.prototype) {
108
+ while (obj != null) {
65
109
  if (seen.indexOf(obj) !== -1) {
66
110
  return false;
67
111
  }
68
112
  seen.push(obj);
113
+ const prototype = getPrototypeOf(obj);
114
+ if (isPrototypeBoundary(obj, prototype, obj === thing)) {
115
+ return false;
116
+ }
69
117
  if (hasOwnProperty(obj, prop)) {
70
118
  return true;
71
119
  }
72
- obj = getPrototypeOf(obj);
120
+ obj = prototype;
73
121
  }
74
122
  return false;
75
123
  };
@@ -86,6 +134,56 @@ const hasOwnInPrototypeChain = (thing, prop) => {
86
134
  * @returns {*} The resolved value, or undefined when unsafe/absent
87
135
  */
88
136
  const getSafeProp = (obj, prop) => obj != null && hasOwnInPrototypeChain(obj, prop) ? obj[prop] : undefined;
137
+
138
+ /**
139
+ * Flatten an object and its application-defined prototype chain into a
140
+ * null-prototype object. Members inherited only from the source realm's
141
+ * Object.prototype are deliberately excluded, while class/template members
142
+ * below that boundary are preserved.
143
+ *
144
+ * @param {*} thing The value to flatten
145
+ *
146
+ * @returns {*} A null-prototype copy, or the original value when it is already
147
+ * structurally safe or is not an object
148
+ */
149
+ const toSafeFlatObject = thing => {
150
+ if (thing == null || typeof thing !== 'object' && typeof thing !== 'function') {
151
+ return thing;
152
+ }
153
+ const sourcePrototype = getPrototypeOf(thing);
154
+ if (sourcePrototype === null && isSafeAndFullyMutable(thing)) {
155
+ return thing;
156
+ }
157
+ const result = Object.create(null);
158
+ const merged = Object.create(null);
159
+ const seen = [];
160
+ let current = thing;
161
+ while (current != null) {
162
+ if (seen.indexOf(current) !== -1) {
163
+ break;
164
+ }
165
+ seen.push(current);
166
+ const prototype = current === thing ? sourcePrototype : getPrototypeOf(current);
167
+ if (isPrototypeBoundary(current, prototype, current === thing)) {
168
+ break;
169
+ }
170
+ const props = Object.getOwnPropertyNames(current);
171
+ if (Object.getOwnPropertySymbols) {
172
+ props.push(...Object.getOwnPropertySymbols(current));
173
+ }
174
+ for (const prop of props) {
175
+ if (isUnsafeObjectKey(prop)) {
176
+ continue;
177
+ }
178
+ if (!hasOwnProperty(merged, prop)) {
179
+ result[prop] = thing[prop];
180
+ merged[prop] = true;
181
+ }
182
+ }
183
+ current = prototype;
184
+ }
185
+ return result;
186
+ };
89
187
  const kindOf = (cache => thing => {
90
188
  const str = toString.call(thing);
91
189
  return cache[str] || (cache[str] = str.slice(8, -1).toLowerCase());
@@ -209,9 +307,9 @@ const isPlainObject = val => {
209
307
  }
210
308
  const prototype = getPrototypeOf(val);
211
309
  return (prototype === null || prototype === Object.prototype || getPrototypeOf(prototype) === null) &&
212
- // Treat any genuine (non-Object.prototype-polluted) Symbol.toStringTag or
213
- // Symbol.iterator as evidence the value is a tagged/iterable type rather
214
- // than a plain object, while ignoring keys injected onto Object.prototype.
310
+ // Treat safe own/inherited Symbol.toStringTag or Symbol.iterator members as
311
+ // evidence the value is tagged/iterable, while ignoring members reachable
312
+ // only through shared or terminal prototype boundaries.
215
313
  !hasOwnInPrototypeChain(val, toStringTag) && !hasOwnInPrototypeChain(val, iterator);
216
314
  };
217
315
 
@@ -295,6 +393,7 @@ const isBlob = kindOfTest('Blob');
295
393
  * @returns {boolean} True if value is a FileList, otherwise false
296
394
  */
297
395
  const isFileList = kindOfTest('FileList');
396
+ const isSet = kindOfTest('Set');
298
397
 
299
398
  /**
300
399
  * Determine if a value is a Stream
@@ -817,11 +916,20 @@ const toJSONObject = obj => {
817
916
  if (!('toJSON' in source)) {
818
917
  // add-on descent / delete-on-ascent: preserves path semantics, so DAG nodes serialise at every occurrence (see #7230).
819
918
  visited.add(source);
820
- const target = isArray(source) ? [] : {};
821
- forEach(source, (value, key) => {
822
- const reducedValue = visit(value);
823
- !isUndefined(reducedValue) && (target[key] = reducedValue);
824
- });
919
+ let target;
920
+ if (isSet(source)) {
921
+ target = [];
922
+ for (const value of source) {
923
+ const reducedValue = visit(value);
924
+ !isUndefined(reducedValue) && target.push(reducedValue);
925
+ }
926
+ } else {
927
+ target = isArray(source) ? [] : {};
928
+ forEach(source, (value, key) => {
929
+ const reducedValue = visit(value);
930
+ !isUndefined(reducedValue) && (target[key] = reducedValue);
931
+ });
932
+ }
825
933
  visited.delete(source);
826
934
  return target;
827
935
  }
@@ -949,6 +1057,7 @@ var utils$1 = {
949
1057
  // an alias to avoid ESLint no-prototype-builtins detection
950
1058
  hasOwnInPrototypeChain,
951
1059
  getSafeProp,
1060
+ toSafeFlatObject,
952
1061
  reduceDescriptors,
953
1062
  freezeMethods,
954
1063
  toObjectSet,
@@ -995,17 +1104,18 @@ var parseHeaders = rawHeaders => {
995
1104
  i = line.indexOf(':');
996
1105
  key = line.substring(0, i).trim().toLowerCase();
997
1106
  val = line.substring(i + 1).trim();
998
- if (!key || parsed[key] && ignoreDuplicateOf[key]) {
1107
+ const hasKey = utils$1.hasOwnProp(parsed, key);
1108
+ if (!key || hasKey && utils$1.hasOwnProp(ignoreDuplicateOf, key)) {
999
1109
  return;
1000
1110
  }
1001
1111
  if (key === 'set-cookie') {
1002
- if (parsed[key]) {
1112
+ if (hasKey) {
1003
1113
  parsed[key].push(val);
1004
1114
  } else {
1005
1115
  parsed[key] = [val];
1006
1116
  }
1007
1117
  } else {
1008
- parsed[key] = parsed[key] ? parsed[key] + ', ' + val : val;
1118
+ parsed[key] = hasKey ? parsed[key] + ', ' + val : val;
1009
1119
  }
1010
1120
  });
1011
1121
  return parsed;
@@ -1052,7 +1162,7 @@ function toByteStringHeaderObject(headers) {
1052
1162
  return byteStringHeaders;
1053
1163
  }
1054
1164
 
1055
- const $internals = Symbol('internals');
1165
+ const $internals$1 = Symbol('internals');
1056
1166
  function normalizeHeader(header) {
1057
1167
  return header && String(header).trim().toLowerCase();
1058
1168
  }
@@ -1071,6 +1181,90 @@ function parseTokens(str) {
1071
1181
  }
1072
1182
  return tokens;
1073
1183
  }
1184
+ const parameterNameRE = /^[!#$%&'*+\-.^_`|~0-9A-Za-z]+$/;
1185
+ function trimOWS(value) {
1186
+ let start = 0;
1187
+ let end = value.length;
1188
+ while (start < end) {
1189
+ const code = value.charCodeAt(start);
1190
+ if (code !== 0x09 && code !== 0x20) {
1191
+ break;
1192
+ }
1193
+ start += 1;
1194
+ }
1195
+ while (end > start) {
1196
+ const code = value.charCodeAt(end - 1);
1197
+ if (code !== 0x09 && code !== 0x20) {
1198
+ break;
1199
+ }
1200
+ end -= 1;
1201
+ }
1202
+ return start === 0 && end === value.length ? value : value.slice(start, end);
1203
+ }
1204
+ function decodeQuotedString(value) {
1205
+ const last = value.length - 1;
1206
+ if (last < 1 || value.charCodeAt(0) !== 0x22 || value.charCodeAt(last) !== 0x22) {
1207
+ return value;
1208
+ }
1209
+ let decoded = '';
1210
+ for (let i = 1; i < last; i++) {
1211
+ const code = value.charCodeAt(i);
1212
+ if (code === 0x22) {
1213
+ return value;
1214
+ }
1215
+ if (code === 0x5c) {
1216
+ i += 1;
1217
+ if (i >= last) {
1218
+ return value;
1219
+ }
1220
+ }
1221
+ decoded += value[i];
1222
+ }
1223
+ return decoded;
1224
+ }
1225
+ function parseParameters(value) {
1226
+ const parameters = Object.create(null);
1227
+ const str = String(value);
1228
+ let start = 0;
1229
+ let quoted = false;
1230
+ let escaped = false;
1231
+ function parseParameter(end) {
1232
+ const part = trimOWS(str.slice(start, end));
1233
+ const equals = part.indexOf('=');
1234
+ if (equals < 1) {
1235
+ return;
1236
+ }
1237
+ const name = trimOWS(part.slice(0, equals));
1238
+ if (!parameterNameRE.test(name)) {
1239
+ return;
1240
+ }
1241
+ const normalizedName = name.toLowerCase();
1242
+ if (normalizedName === '__proto__' || normalizedName === 'constructor' || normalizedName === 'prototype') {
1243
+ return;
1244
+ }
1245
+ const parameterValue = trimOWS(part.slice(equals + 1));
1246
+ parameters[normalizedName] = decodeQuotedString(parameterValue);
1247
+ }
1248
+ for (let i = 0; i < str.length; i++) {
1249
+ const code = str.charCodeAt(i);
1250
+ if (quoted) {
1251
+ if (escaped) {
1252
+ escaped = false;
1253
+ } else if (code === 0x5c) {
1254
+ escaped = true;
1255
+ } else if (code === 0x22) {
1256
+ quoted = false;
1257
+ }
1258
+ } else if (code === 0x22) {
1259
+ quoted = true;
1260
+ } else if (code === 0x2c || code === 0x3b) {
1261
+ parseParameter(i);
1262
+ start = i + 1;
1263
+ }
1264
+ }
1265
+ parseParameter(str.length);
1266
+ return parameters;
1267
+ }
1074
1268
  const isValidHeaderName = str => /^[-_a-zA-Z0-9^`|~,!#$%&'*+.]+$/.test(str.trim());
1075
1269
  function matchHeaderValue(context, value, header, filter, isHeaderNameFilter) {
1076
1270
  if (utils$1.isFunction(filter)) {
@@ -1248,7 +1442,8 @@ class AxiosHeaders {
1248
1442
  return Object.entries(this.toJSON()).map(([header, value]) => header + ': ' + value).join('\n');
1249
1443
  }
1250
1444
  getSetCookie() {
1251
- return this.get('set-cookie') || [];
1445
+ const value = this.get('set-cookie');
1446
+ return utils$1.isArray(value) ? value : value == null || value === false ? [] : [value];
1252
1447
  }
1253
1448
  get [Symbol.toStringTag]() {
1254
1449
  return 'AxiosHeaders';
@@ -1256,13 +1451,16 @@ class AxiosHeaders {
1256
1451
  static from(thing) {
1257
1452
  return thing instanceof this ? thing : new this(thing);
1258
1453
  }
1454
+ static parseParameters(value) {
1455
+ return parseParameters(value);
1456
+ }
1259
1457
  static concat(first, ...targets) {
1260
1458
  const computed = new this(first);
1261
1459
  targets.forEach(target => computed.set(target));
1262
1460
  return computed;
1263
1461
  }
1264
1462
  static accessor(header) {
1265
- const internals = this[$internals] = this[$internals] = {
1463
+ const internals = this[$internals$1] = this[$internals$1] = {
1266
1464
  accessors: {}
1267
1465
  };
1268
1466
  const accessors = internals.accessors;
@@ -1350,9 +1548,33 @@ function redactConfig(config, redactKeys) {
1350
1548
  };
1351
1549
  return visit(config);
1352
1550
  }
1551
+ function stringifySafely$1(value) {
1552
+ try {
1553
+ return String(value);
1554
+ } catch (err) {
1555
+ return '';
1556
+ }
1557
+ }
1558
+ function aggregateErrorMessage(error) {
1559
+ const message = error.errors.map(entry => {
1560
+ try {
1561
+ return entry && entry.message ? stringifySafely$1(entry.message) : stringifySafely$1(entry);
1562
+ } catch (err) {
1563
+ return '';
1564
+ }
1565
+ }).filter(Boolean).join('; ');
1566
+ return message || error.name || 'AggregateError';
1567
+ }
1353
1568
  class AxiosError extends Error {
1354
1569
  static from(error, code, config, request, response, customProps) {
1355
- const axiosError = new AxiosError(error.message, code || error.code, config, request, response);
1570
+ // `AggregateError` (thrown by Node on dual-stack/Happy-Eyeballs connection
1571
+ // failures) has an empty `message`; its detail lives in `errors[]`. Without
1572
+ // this, the wrapped error surfaces with a blank message (see #6721).
1573
+ let message = error.message;
1574
+ if (!message && utils$1.isArray(error.errors) && error.errors.length) {
1575
+ message = aggregateErrorMessage(error);
1576
+ }
1577
+ const axiosError = new AxiosError(message, code || error.code, config, request, response);
1356
1578
  // Match native `Error` `cause` semantics: non-enumerable. The wrapped
1357
1579
  // error often carries circular internals (sockets, requests, agents), so
1358
1580
  // an enumerable `cause` makes structured loggers (pino/winston) and any
@@ -1456,6 +1678,15 @@ AxiosError.ERR_NOT_SUPPORT = 'ERR_NOT_SUPPORT';
1456
1678
  AxiosError.ERR_INVALID_URL = 'ERR_INVALID_URL';
1457
1679
  AxiosError.ERR_FORM_DATA_DEPTH_EXCEEDED = 'ERR_FORM_DATA_DEPTH_EXCEEDED';
1458
1680
 
1681
+ var PlatformBuffer = {
1682
+ isBufferAvailable() {
1683
+ return typeof Buffer !== 'undefined';
1684
+ },
1685
+ from(value) {
1686
+ return Buffer.from(value);
1687
+ }
1688
+ };
1689
+
1459
1690
  // Default nesting limit shared with the inverse transform (formDataToJSON) so
1460
1691
  // the FormData <-> JSON round-trip stays symmetric.
1461
1692
  const DEFAULT_FORM_DATA_MAX_DEPTH = 100;
@@ -1544,23 +1775,17 @@ function toFormData(obj, formData, options) {
1544
1775
 
1545
1776
  // eslint-disable-next-line no-param-reassign
1546
1777
  formData = formData || new (FormData$1 || FormData)();
1547
-
1548
- // eslint-disable-next-line no-param-reassign
1549
- options = utils$1.toFlatObject(options, {
1550
- metaTokens: true,
1551
- dots: false,
1552
- indexes: false
1553
- }, false, function defined(option, source) {
1554
- // eslint-disable-next-line no-eq-null,eqeqeq
1555
- return !utils$1.isUndefined(source[option]);
1556
- });
1557
- const metaTokens = options.metaTokens;
1778
+ const option = (name, fallback) => {
1779
+ const value = utils$1.getSafeProp(options, name);
1780
+ return utils$1.isUndefined(value) ? fallback : value;
1781
+ };
1782
+ const metaTokens = option('metaTokens', true);
1558
1783
  // eslint-disable-next-line no-use-before-define
1559
- const visitor = options.visitor || defaultVisitor;
1560
- const dots = options.dots;
1561
- const indexes = options.indexes;
1562
- const _Blob = options.Blob || typeof Blob !== 'undefined' && Blob;
1563
- const maxDepth = options.maxDepth === undefined ? DEFAULT_FORM_DATA_MAX_DEPTH : options.maxDepth;
1784
+ const visitor = option('visitor') || defaultVisitor;
1785
+ const dots = option('dots', false);
1786
+ const indexes = option('indexes', false);
1787
+ const _Blob = option('Blob') || typeof Blob !== 'undefined' && Blob;
1788
+ const maxDepth = option('maxDepth', DEFAULT_FORM_DATA_MAX_DEPTH);
1564
1789
  const useBlob = _Blob && utils$1.isSpecCompliantForm(formData);
1565
1790
  const stack = [];
1566
1791
  if (!utils$1.isFunction(visitor)) {
@@ -1581,8 +1806,8 @@ function toFormData(obj, formData, options) {
1581
1806
  if (useBlob && typeof _Blob === 'function') {
1582
1807
  return new _Blob([value]);
1583
1808
  }
1584
- if (typeof Buffer !== 'undefined') {
1585
- return Buffer.from(value);
1809
+ if (PlatformBuffer && PlatformBuffer.isBufferAvailable()) {
1810
+ return PlatformBuffer.from(value);
1586
1811
  }
1587
1812
  throw new AxiosError('Blob is not supported. Use a Buffer instead.', AxiosError.ERR_NOT_SUPPORT);
1588
1813
  }
@@ -1773,9 +1998,51 @@ function buildURL(url, params, options) {
1773
1998
  return url;
1774
1999
  }
1775
2000
 
2001
+ const $internals = Symbol('internals');
2002
+
2003
+ // `handlers` is public and may be replaced with a nullish value by user code;
2004
+ // `clear()` has always tolerated that. Treat it as an empty stack rather than
2005
+ // dereferencing it.
2006
+ function countHandlers(handlers) {
2007
+ return handlers ? handlers.length : 0;
2008
+ }
2009
+ function trimHandlers(handlers) {
2010
+ if (!handlers) {
2011
+ return;
2012
+ }
2013
+ while (handlers.length && handlers[handlers.length - 1] === null) {
2014
+ handlers.pop();
2015
+ }
2016
+ }
2017
+ function syncHandlerEntries(manager, internals) {
2018
+ const handlers = manager.handlers;
2019
+ const length = countHandlers(handlers);
2020
+ if (handlers !== internals.handlersRef) {
2021
+ internals.handlersRef = handlers;
2022
+ internals.handlerEntries.clear();
2023
+ } else if (length !== internals.handlersLength) {
2024
+ if (!length) {
2025
+ internals.handlerEntries.clear();
2026
+ } else {
2027
+ internals.handlerEntries.forEach(function removeStaleEntry(entry, id) {
2028
+ if (handlers[entry.index] !== entry.handler) {
2029
+ internals.handlerEntries.delete(id);
2030
+ }
2031
+ });
2032
+ }
2033
+ }
2034
+ internals.handlersLength = length;
2035
+ }
1776
2036
  class InterceptorManager {
1777
2037
  constructor() {
1778
2038
  this.handlers = [];
2039
+ this[$internals] = {
2040
+ handlersRef: this.handlers,
2041
+ handlersLength: this.handlers.length,
2042
+ handlerEntries: new Map(),
2043
+ iterationDepth: 0,
2044
+ nextId: 0
2045
+ };
1779
2046
  }
1780
2047
 
1781
2048
  /**
@@ -1788,13 +2055,25 @@ class InterceptorManager {
1788
2055
  * @return {Number} An ID used to remove interceptor later
1789
2056
  */
1790
2057
  use(fulfilled, rejected, options) {
1791
- this.handlers.push({
2058
+ const handler = {
1792
2059
  fulfilled,
1793
2060
  rejected,
1794
2061
  synchronous: options ? options.synchronous : false,
1795
2062
  runWhen: options ? options.runWhen : null
2063
+ };
2064
+ const internals = this[$internals];
2065
+ if (this.handlers == null) {
2066
+ this.handlers = [];
2067
+ }
2068
+ syncHandlerEntries(this, internals);
2069
+ const id = internals.nextId++;
2070
+ this.handlers.push(handler);
2071
+ internals.handlerEntries.set(id, {
2072
+ handler,
2073
+ index: this.handlers.length - 1
1796
2074
  });
1797
- return this.handlers.length - 1;
2075
+ internals.handlersLength = this.handlers.length;
2076
+ return id;
1798
2077
  }
1799
2078
 
1800
2079
  /**
@@ -1805,8 +2084,23 @@ class InterceptorManager {
1805
2084
  * @returns {void}
1806
2085
  */
1807
2086
  eject(id) {
1808
- if (this.handlers[id]) {
1809
- this.handlers[id] = null;
2087
+ const internals = this[$internals];
2088
+ syncHandlerEntries(this, internals);
2089
+ const entry = internals.handlerEntries.get(id);
2090
+ if (entry) {
2091
+ internals.handlerEntries.delete(id);
2092
+
2093
+ // Ignore IDs invalidated by clear or direct replacement of handlers.
2094
+ if (this.handlers[entry.index] !== entry.handler) {
2095
+ return;
2096
+ }
2097
+ this.handlers[entry.index] = null;
2098
+
2099
+ // Do not reuse an index while forEach is walking its length snapshot.
2100
+ if (!internals.iterationDepth) {
2101
+ trimHandlers(this.handlers);
2102
+ internals.handlersLength = this.handlers.length;
2103
+ }
1810
2104
  }
1811
2105
  }
1812
2106
 
@@ -1818,6 +2112,7 @@ class InterceptorManager {
1818
2112
  clear() {
1819
2113
  if (this.handlers) {
1820
2114
  this.handlers = [];
2115
+ syncHandlerEntries(this, this[$internals]);
1821
2116
  }
1822
2117
  }
1823
2118
 
@@ -1832,11 +2127,22 @@ class InterceptorManager {
1832
2127
  * @returns {void}
1833
2128
  */
1834
2129
  forEach(fn) {
1835
- utils$1.forEach(this.handlers, function forEachHandler(h) {
1836
- if (h !== null) {
1837
- fn(h);
2130
+ const internals = this[$internals];
2131
+ syncHandlerEntries(this, internals);
2132
+ internals.iterationDepth++;
2133
+ try {
2134
+ utils$1.forEach(this.handlers, function forEachHandler(h) {
2135
+ if (h !== null) {
2136
+ fn(h);
2137
+ }
2138
+ });
2139
+ } finally {
2140
+ if (! --internals.iterationDepth) {
2141
+ syncHandlerEntries(this, internals);
2142
+ trimHandlers(this.handlers);
2143
+ internals.handlersLength = countHandlers(this.handlers);
1838
2144
  }
1839
- });
2145
+ }
1840
2146
  }
1841
2147
  }
1842
2148
 
@@ -1962,12 +2268,18 @@ function throwIfDepthExceeded(index) {
1962
2268
  * @returns An array of strings.
1963
2269
  */
1964
2270
  function parsePropPath(name) {
1965
- // foo[x][y][z]
1966
- // foo.x.y.z
1967
- // foo-x-y-z
1968
- // foo x y z
2271
+ // foo[x][y][z] -> ['foo', 'x', 'y', 'z']
2272
+ // foo.x.y.z -> ['foo', 'x', 'y', 'z']
2273
+ // A path is split on `.` and on `[...]` groups. A segment — whether written
2274
+ // in dot notation or captured inside brackets — may contain any character
2275
+ // except `.`, `[` and `]`, so a key like `user-name` or `user name` is kept
2276
+ // literal instead of being split (#5402). `.`, `[` and `]` keep their existing
2277
+ // meaning, e.g. `foo[bar.baz]` -> ['foo', 'bar', 'baz'] and `[]` is an array push.
2278
+ // Excluding `[` from the bracket group also makes the match fail fast at the
2279
+ // next `[`, so a malformed name cannot rescan to the end of the string from
2280
+ // every unmatched `[` — parsing stays linear in the length of the name.
1969
2281
  const path = [];
1970
- const pattern = /\w+|\[(\w*)]/g;
2282
+ const pattern = /[^.[\]]+|\[([^.[\]]*)]/g;
1971
2283
  let match;
1972
2284
  while ((match = pattern.exec(name)) !== null) {
1973
2285
  throwIfDepthExceeded(path.length);
@@ -2038,6 +2350,8 @@ function formDataToJSON(formData) {
2038
2350
  return null;
2039
2351
  }
2040
2352
 
2353
+ const methodList = Object.freeze(['get', 'delete', 'head', 'options', 'post', 'put', 'patch', 'purge', 'link', 'unlink', 'query']);
2354
+
2041
2355
  const own = (obj, key) => obj != null && utils$1.hasOwnProp(obj, key) ? obj[key] : undefined;
2042
2356
 
2043
2357
  /**
@@ -2154,7 +2468,7 @@ const defaults = {
2154
2468
  }
2155
2469
  }
2156
2470
  };
2157
- utils$1.forEach(['delete', 'get', 'head', 'post', 'put', 'patch', 'query'], method => {
2471
+ utils$1.forEach(methodList, method => {
2158
2472
  defaults.headers[method] = {};
2159
2473
  });
2160
2474
 
@@ -2243,24 +2557,70 @@ function isAbsoluteURL(url) {
2243
2557
  * @returns {string} The combined URL
2244
2558
  */
2245
2559
  function combineURLs(baseURL, relativeURL) {
2246
- return relativeURL ? baseURL.replace(/\/?\/$/, '') + '/' + relativeURL.replace(/^\/+/, '') : baseURL;
2560
+ if (!relativeURL) {
2561
+ return baseURL;
2562
+ }
2563
+ let end = baseURL.length;
2564
+ while (end > 0 && baseURL.charCodeAt(end - 1) === 47) {
2565
+ end--;
2566
+ }
2567
+ return baseURL.slice(0, end) + '/' + relativeURL.replace(/^\/+/, '');
2247
2568
  }
2248
2569
 
2249
- const malformedHttpProtocol = /^https?:(?!\/\/)/i;
2250
- const httpProtocolControlCharacters = /[\t\n\r]/g;
2251
- function stripLeadingC0ControlOrSpace(url) {
2252
- let i = 0;
2253
- while (i < url.length && url.charCodeAt(i) <= 0x20) {
2254
- i++;
2570
+ const urlParserControlCharacters = /[\t\n\r]/g;
2571
+
2572
+ /**
2573
+ * Match WHATWG URL preprocessing before checking a URL's protocol.
2574
+ *
2575
+ * @param {string} url
2576
+ *
2577
+ * @returns {string}
2578
+ */
2579
+ function normalizeURLForProtocolCheck(url) {
2580
+ if (typeof url !== 'string') {
2581
+ return url;
2582
+ }
2583
+ let start = 0;
2584
+ while (start < url.length && url.charCodeAt(start) <= 0x20) {
2585
+ start++;
2255
2586
  }
2256
- return url.slice(i);
2587
+ return url.slice(start).replace(urlParserControlCharacters, '');
2257
2588
  }
2258
- function normalizeURLForProtocolCheck(url) {
2259
- return stripLeadingC0ControlOrSpace(url).replace(httpProtocolControlCharacters, '');
2589
+
2590
+ const malformedHttpProtocol = /^https?:(?!\/\/)/i;
2591
+
2592
+ // Redact the parts of a URL that can carry secrets before it is embedded in an
2593
+ // error message. AxiosError.toJSON() serializes `message` verbatim and errors
2594
+ // are commonly logged, while the opt-in `config.redact` model only cleans
2595
+ // config keys — it cannot reach the message. Redact only the genuinely
2596
+ // sensitive substrings — userinfo (credentials), query parameter values and
2597
+ // fragment contents — with the same REDACTED marker the config redaction uses,
2598
+ // while keeping the scheme, host, path and parameter names so the offending
2599
+ // request stays accurately identifiable.
2600
+ function redactFragment(fragment) {
2601
+ if (!fragment) {
2602
+ return fragment;
2603
+ }
2604
+ return fragment.replace(/(^|&)([^=&]*=)?[^&]+/g, (match, separator, parameterName = '') => {
2605
+ return `${separator}${parameterName}${REDACTED}`;
2606
+ });
2607
+ }
2608
+ function redactSensitiveURLParts(url) {
2609
+ const redactedURL = url.replace(/^(https?:\/{0,2})[^/?#]*@/i, `$1${REDACTED}@`);
2610
+ const fragmentIndex = redactedURL.indexOf('#');
2611
+ const urlWithoutFragment = fragmentIndex === -1 ? redactedURL : redactedURL.slice(0, fragmentIndex);
2612
+ const redactedURLWithoutFragment = urlWithoutFragment.replace(/([?&][^=&#]*=)[^&#]*/g, `$1${REDACTED}`);
2613
+ if (fragmentIndex === -1) {
2614
+ return redactedURLWithoutFragment;
2615
+ }
2616
+ return `${redactedURLWithoutFragment}#${redactFragment(redactedURL.slice(fragmentIndex + 1))}`;
2260
2617
  }
2261
2618
  function assertValidHttpProtocolURL(url, config) {
2262
- if (typeof url === 'string' && malformedHttpProtocol.test(normalizeURLForProtocolCheck(url))) {
2263
- throw new AxiosError('Invalid URL: missing "//" after protocol', AxiosError.ERR_INVALID_URL, config);
2619
+ if (typeof url === 'string') {
2620
+ const normalizedURL = normalizeURLForProtocolCheck(url);
2621
+ if (malformedHttpProtocol.test(normalizedURL)) {
2622
+ throw new AxiosError(`Invalid URL ${JSON.stringify(redactSensitiveURLParts(normalizedURL))}: missing "//" after protocol`, AxiosError.ERR_INVALID_URL, config);
2623
+ }
2264
2624
  }
2265
2625
  }
2266
2626
 
@@ -2380,7 +2740,7 @@ function getEnv(key) {
2380
2740
  return process.env[key.toLowerCase()] || process.env[key.toUpperCase()] || '';
2381
2741
  }
2382
2742
 
2383
- const VERSION = "1.18.1";
2743
+ const VERSION = "1.20.0";
2384
2744
 
2385
2745
  function parseProtocol(url) {
2386
2746
  const match = /^([-+\w]{1,25}):(?:\/\/)?/.exec(url);
@@ -2389,7 +2749,7 @@ function parseProtocol(url) {
2389
2749
 
2390
2750
  // RFC 2397: data:[<mediatype>][;base64],<data>
2391
2751
  // mediatype = type/subtype followed by optional ;name=value parameters
2392
- const DATA_URL_PATTERN = /^([^,;]+\/[^,;]+)?((?:;[^,;=]+=[^,;]+)*)(;base64)?,([\s\S]*)$/;
2752
+ const DATA_URL_PATTERN = /^([^,;/]+\/[^,;/]+)?((?:;[^,;=]+=[^,;]+)*)(;base64)?,([\s\S]*)$/;
2393
2753
 
2394
2754
  /**
2395
2755
  * Parse data uri to a Buffer or Blob
@@ -2440,6 +2800,31 @@ function fromDataURI(uri, asBlob, options) {
2440
2800
  throw new AxiosError('Unsupported protocol ' + protocol, AxiosError.ERR_NOT_SUPPORT);
2441
2801
  }
2442
2802
 
2803
+ const FORM_DATA_CONTENT_HEADERS = ['content-type', 'content-length'];
2804
+
2805
+ /**
2806
+ * Apply the headers generated by a FormData implementation to the request headers,
2807
+ * honoring the `formDataHeaderPolicy` option: with 'content-only', copy only the
2808
+ * content-* headers; otherwise merge all of them.
2809
+ *
2810
+ * @param {AxiosHeaders} headers - the request headers to mutate
2811
+ * @param {Object | null | undefined} formHeaders - headers produced by the FormData implementation
2812
+ * @param {String} [policy] - the resolved `formDataHeaderPolicy` config value
2813
+ *
2814
+ * @returns {void}
2815
+ */
2816
+ function setFormDataHeaders(headers, formHeaders, policy) {
2817
+ if (policy !== 'content-only') {
2818
+ headers.set(formHeaders);
2819
+ return;
2820
+ }
2821
+ Object.entries(formHeaders || {}).forEach(([key, val]) => {
2822
+ if (FORM_DATA_CONTENT_HEADERS.includes(key.toLowerCase())) {
2823
+ headers.set(key, val);
2824
+ }
2825
+ });
2826
+ }
2827
+
2443
2828
  const kInternals = Symbol('internals');
2444
2829
  class AxiosTransformStream extends stream.Transform {
2445
2830
  constructor(options) {
@@ -2677,7 +3062,7 @@ class Http2Sessions {
2677
3062
  this.sessions = Object.create(null);
2678
3063
  }
2679
3064
  getSession(authority, options) {
2680
- options = Object.assign({
3065
+ options = Object.assign(Object.create(null), {
2681
3066
  sessionTimeout: 1000
2682
3067
  }, options);
2683
3068
  let authoritySessions = this.sessions[authority];
@@ -2744,6 +3129,7 @@ class Http2Sessions {
2744
3129
  };
2745
3130
  }
2746
3131
  session.once('close', removeSession);
3132
+ session.once('error', removeSession);
2747
3133
  let entry = [session, options];
2748
3134
  authoritySessions ? authoritySessions.push(entry) : authoritySessions = this.sessions[authority] = [entry];
2749
3135
  return session;
@@ -2764,12 +3150,117 @@ const callbackify = (fn, reducer) => {
2764
3150
  };
2765
3151
 
2766
3152
  const LOOPBACK_HOSTNAMES = new Set(['localhost', '0.0.0.0']);
3153
+ const trimTrailingDots = value => {
3154
+ let end = value.length;
3155
+ while (end && value.charCodeAt(end - 1) === 46) {
3156
+ end--;
3157
+ }
3158
+ return end === value.length ? value : value.slice(0, end);
3159
+ };
2767
3160
  const isIPv4Loopback = host => {
2768
3161
  const parts = host.split('.');
2769
3162
  if (parts.length !== 4) return false;
2770
3163
  if (parts[0] !== '127') return false;
2771
3164
  return parts.every(p => /^\d+$/.test(p) && Number(p) >= 0 && Number(p) <= 255);
2772
3165
  };
3166
+
3167
+ /**
3168
+ * Canonicalize an IPv4 address written in shorthand, octal, or hex form into
3169
+ * dotted-decimal. IPv6 addresses and non-IP strings are returned unchanged so
3170
+ * the existing IPv4-mapped IPv6 unmap path and the isLoopback path can still
3171
+ * see them.
3172
+ *
3173
+ * Shorthand expansion mirrors Node's URL parser: literal parts fill from the
3174
+ * left, the final part fills the remaining octets from the right with
3175
+ * zero-padding on the left.
3176
+ * 127.1 -> 127.0.0.1
3177
+ * 127.0.1 -> 127.0.0.1
3178
+ * 1.2.3 -> 1.2.0.3
3179
+ *
3180
+ * Each octet is parsed with an explicit base: 16 for `0x`/`0X` prefix, 8 for
3181
+ * zero-prefixed multi-digit all-`0-7` parts, 10 otherwise. Zero-prefixed
3182
+ * decimal-looking parts that contain `8` or `9` are rejected to match Node's
3183
+ * URL parser, and the comparison layer falls through to non-bypass if either
3184
+ * side rejects the form (fail-safe).
3185
+ *
3186
+ * Returns the input unchanged on any parse failure, out-of-range octet, or
3187
+ * unusual shape (1-part, 5+ parts) so the comparison layer fails closed.
3188
+ */
3189
+ const parseIPv4Octet = text => {
3190
+ if (/^0[xX][0-9a-fA-F]+$/.test(text)) {
3191
+ const n = parseInt(text.slice(2), 16);
3192
+ return Number.isFinite(n) ? n : null;
3193
+ }
3194
+ if (text.length > 1 && /^0[0-7]+$/.test(text)) {
3195
+ const n = parseInt(text, 8);
3196
+ return Number.isFinite(n) ? n : null;
3197
+ }
3198
+ if (text.length > 1 && /^0[0-9]+$/.test(text)) {
3199
+ return null;
3200
+ }
3201
+ if (/^[0-9]+$/.test(text)) {
3202
+ const n = parseInt(text, 10);
3203
+ return Number.isFinite(n) ? n : null;
3204
+ }
3205
+ return null;
3206
+ };
3207
+ const normalizeIPAddress = host => {
3208
+ if (typeof host !== 'string' || !host || host.indexOf(':') !== -1) {
3209
+ return host;
3210
+ }
3211
+ let h = host;
3212
+ if (h.charAt(0) === '[' && h.charAt(h.length - 1) === ']') {
3213
+ h = h.slice(1, -1);
3214
+ }
3215
+ h = trimTrailingDots(h);
3216
+
3217
+ // Allowed characters for any IPv4 shape: digits, dot, 'x', 'X', hex digits.
3218
+ if (!/^[0-9.xXa-fA-F]+$/.test(h)) return host;
3219
+ const parts = h.split('.');
3220
+
3221
+ // No part may be empty (e.g. "127..0.1" or "127.0.0."). Trailing dots are
3222
+ // already stripped above; this guards against the empty-middle case.
3223
+ if (parts.some(p => p === '')) return host;
3224
+ if (parts.length === 4) {
3225
+ // Full IPv4 form: each part is an octet.
3226
+ const octets = parts.map(parseIPv4Octet);
3227
+ if (octets.some(n => n === null || n < 0 || n > 255)) return host;
3228
+ return octets.join('.');
3229
+ }
3230
+ if (parts.length > 4) {
3231
+ return host;
3232
+ }
3233
+
3234
+ // Shorthand: 1..3 parts. Node's URL parser treats a 1-part input as a 32-bit
3235
+ // integer split into octets, which has surprising semantics (e.g. "127" ->
3236
+ // "0.0.0.127"). Reject 1-part inputs to keep the helper predictable: the
3237
+ // fail-safe returns the input unchanged and the comparison layer falls
3238
+ // through to non-bypass.
3239
+ if (parts.length === 1) return host;
3240
+
3241
+ // 2..3 parts: literal parts fill from the left, tail fills remaining octets
3242
+ // from the right with zero-padding.
3243
+ const literalOctets = parts.slice(0, -1);
3244
+ const tail = parts[parts.length - 1];
3245
+ const tailSlots = 4 - literalOctets.length;
3246
+
3247
+ // Tail is parsed as a full IPv4 number (hex/octal/decimal) and packed
3248
+ // low-byte-right into the remaining octets, matching Node's URL parser.
3249
+ // e.g. 127.65535 (tail 0xFFFF into 3 slots) -> 127.0.255.255;
3250
+ // 127.0x00ff (tail 0xFF into 3 slots) -> 127.0.0.255;
3251
+ // 127.0.65535 (tail 0xFFFF into 2 slots) -> 127.0.255.255.
3252
+ const tailValue = parseIPv4Octet(tail);
3253
+ if (tailValue === null) return host;
3254
+ const maxTail = (1 << 8 * tailSlots) - 1;
3255
+ if (tailValue < 0 || tailValue > maxTail) return host;
3256
+ const tailOctets = new Array(tailSlots).fill(0);
3257
+ for (let i = tailSlots - 1, v = tailValue; i >= 0; i--, v >>= 8) {
3258
+ tailOctets[i] = v & 0xff;
3259
+ }
3260
+ const literal = literalOctets.map(parseIPv4Octet);
3261
+ if (literal.some(n => n === null || n < 0 || n > 255)) return host;
3262
+ return [...literal, ...tailOctets].join('.');
3263
+ };
2773
3264
  const isIPv6ZeroGroup = group => /^0{1,4}$/.test(group);
2774
3265
 
2775
3266
  // The unspecified address (IPv4 0.0.0.0 / IPv6 ::) resolves to the local host
@@ -2876,6 +3367,40 @@ const unmapIPv4MappedIPv6 = host => {
2876
3367
  }
2877
3368
  return host;
2878
3369
  };
3370
+ const IPV4_OCTET_RE = /^(?:0|[1-9]\d{0,2})$/;
3371
+ const ipv4ToBytes = host => {
3372
+ const parts = host.split('.');
3373
+ return parts.length === 4 && parts.every(part => IPV4_OCTET_RE.test(part) && Number(part) <= 255) ? parts.map(Number) : null;
3374
+ };
3375
+ const IPV6_GROUP_RE = /^[0-9a-f]{1,4}$/i;
3376
+ const ipv6ToBytes = host => {
3377
+ const halves = host.split('::');
3378
+ if (halves.length > 2) {
3379
+ return null;
3380
+ }
3381
+ const groups = halves[0] ? halves[0].split(':') : [];
3382
+ if (halves.length === 2) {
3383
+ const rear = halves[1] ? halves[1].split(':') : [];
3384
+ const missing = 8 - groups.length - rear.length;
3385
+ if (missing < 1) {
3386
+ return null;
3387
+ }
3388
+ groups.push(...new Array(missing).fill('0'), ...rear);
3389
+ }
3390
+ if (groups.length !== 8 || groups.some(group => !IPV6_GROUP_RE.test(group))) {
3391
+ return null;
3392
+ }
3393
+ return groups.flatMap(group => {
3394
+ const value = Number.parseInt(group, 16);
3395
+ return [value >> 8 & 0xff, value & 0xff];
3396
+ });
3397
+ };
3398
+ const ipToBytes = host => {
3399
+ if (typeof host !== 'string' || !host) {
3400
+ return null;
3401
+ }
3402
+ return host.indexOf(':') !== -1 ? ipv6ToBytes(host) : ipv4ToBytes(host);
3403
+ };
2879
3404
  const normalizeNoProxyHost = hostname => {
2880
3405
  if (!hostname) {
2881
3406
  return hostname;
@@ -2883,7 +3408,101 @@ const normalizeNoProxyHost = hostname => {
2883
3408
  if (hostname.charAt(0) === '[' && hostname.charAt(hostname.length - 1) === ']') {
2884
3409
  hostname = hostname.slice(1, -1);
2885
3410
  }
2886
- return unmapIPv4MappedIPv6(hostname.replace(/\.+$/, ''));
3411
+ const trimmed = trimTrailingDots(hostname);
3412
+
3413
+ // IPv4 shorthand/octal/hex → dotted-decimal; helper is a no-op for inputs
3414
+ // containing ':' (IPv6 and IPv4-mapped IPv6) so we fall through to unmap.
3415
+ const ipv4 = normalizeIPAddress(trimmed);
3416
+ if (ipv4 !== trimmed) {
3417
+ return ipv4;
3418
+ }
3419
+ return unmapIPv4MappedIPv6(trimmed);
3420
+ };
3421
+ const normalizeCidrBase = input => {
3422
+ let base = input;
3423
+ const startsBracket = base.charAt(0) === '[';
3424
+ const endsBracket = base.charAt(base.length - 1) === ']';
3425
+ const hasBracket = base.includes('[') || base.includes(']');
3426
+ if (startsBracket || endsBracket) {
3427
+ if (!startsBracket || !endsBracket) {
3428
+ return null;
3429
+ }
3430
+ base = base.slice(1, -1);
3431
+ if (base.indexOf(':') === -1 || base.includes('[') || base.includes(']')) {
3432
+ return null;
3433
+ }
3434
+ } else if (hasBracket) {
3435
+ return null;
3436
+ }
3437
+ if (!base || base.charAt(base.length - 1) === '.') {
3438
+ return null;
3439
+ }
3440
+ const wasIPv6 = base.indexOf(':') !== -1;
3441
+ if (wasIPv6) {
3442
+ try {
3443
+ base = new URL(`http://[${base}]/`).hostname.slice(1, -1);
3444
+ } catch (_err) {
3445
+ return null;
3446
+ }
3447
+ } else {
3448
+ base = normalizeIPAddress(base);
3449
+ if (!ipv4ToBytes(base)) {
3450
+ return null;
3451
+ }
3452
+ }
3453
+ return {
3454
+ normalized: unmapIPv4MappedIPv6(base),
3455
+ wasIPv6
3456
+ };
3457
+ };
3458
+ const CIDR_ENTRY_RE = /^(.+)\/(0|[1-9]\d{0,2})$/;
3459
+ const parseCidrEntry = entry => {
3460
+ if (entry.indexOf('/') === -1) {
3461
+ return undefined;
3462
+ }
3463
+ const match = CIDR_ENTRY_RE.exec(entry);
3464
+ if (!match) {
3465
+ return null;
3466
+ }
3467
+ let prefix = Number(match[2]);
3468
+ const parsedBase = normalizeCidrBase(match[1]);
3469
+ if (!parsedBase) {
3470
+ return null;
3471
+ }
3472
+ const {
3473
+ normalized,
3474
+ wasIPv6
3475
+ } = parsedBase;
3476
+ if (wasIPv6 && normalized.indexOf(':') === -1) {
3477
+ if (prefix < 96) {
3478
+ return null;
3479
+ }
3480
+ prefix -= 96;
3481
+ }
3482
+ const bytes = ipToBytes(normalized);
3483
+ if (!bytes || prefix > bytes.length * 8) {
3484
+ return null;
3485
+ }
3486
+ return {
3487
+ bytes,
3488
+ prefix
3489
+ };
3490
+ };
3491
+ const isInSubnet = (addressBytes, networkBytes, prefix) => {
3492
+ const fullBytes = prefix >> 3;
3493
+ for (let i = 0; i < fullBytes; i++) {
3494
+ if (addressBytes[i] !== networkBytes[i]) {
3495
+ return false;
3496
+ }
3497
+ }
3498
+ const remainingBits = prefix & 7;
3499
+ if (remainingBits) {
3500
+ const mask = 0xff << 8 - remainingBits & 0xff;
3501
+ if ((addressBytes[fullBytes] & mask) !== (networkBytes[fullBytes] & mask)) {
3502
+ return false;
3503
+ }
3504
+ }
3505
+ return true;
2887
3506
  };
2888
3507
  function shouldBypassProxy(location) {
2889
3508
  let parsed;
@@ -2901,10 +3520,18 @@ function shouldBypassProxy(location) {
2901
3520
  }
2902
3521
  const port = Number.parseInt(parsed.port, 10) || DEFAULT_PORTS[parsed.protocol.split(':', 1)[0]] || 0;
2903
3522
  const hostname = normalizeNoProxyHost(parsed.hostname.toLowerCase());
3523
+ const hostnameBytes = ipToBytes(hostname);
2904
3524
  return noProxy.split(/[\s,]+/).some(entry => {
2905
3525
  if (!entry) {
2906
3526
  return false;
2907
3527
  }
3528
+ if (entry === '*') {
3529
+ return true;
3530
+ }
3531
+ const cidr = parseCidrEntry(entry);
3532
+ if (cidr !== undefined) {
3533
+ return cidr !== null && !!hostnameBytes && hostnameBytes.length === cidr.bytes.length && isInSubnet(hostnameBytes, cidr.bytes, cidr.prefix);
3534
+ }
2908
3535
  let [entryHost, entryPort] = parseNoProxyEntry(entry);
2909
3536
  entryHost = normalizeNoProxyHost(entryHost);
2910
3537
  if (!entryHost) {
@@ -2967,7 +3594,7 @@ function speedometer(samplesCount, min) {
2967
3594
  * Throttle decorator
2968
3595
  * @param {Function} fn
2969
3596
  * @param {Number} freq
2970
- * @return {Function}
3597
+ * @return {Array<Function>}
2971
3598
  */
2972
3599
  function throttle(fn, freq) {
2973
3600
  let timestamp = 0;
@@ -2999,19 +3626,20 @@ function throttle(fn, freq) {
2999
3626
  }
3000
3627
  };
3001
3628
  const flush = () => lastArgs && invoke(lastArgs);
3002
- return [throttled, flush];
3629
+ const flushWith = (...args) => invoke(args);
3630
+ return [throttled, flush, flushWith];
3003
3631
  }
3004
3632
 
3005
3633
  const progressEventReducer = (listener, isDownloadStream, freq = 3) => {
3006
3634
  let bytesNotified = 0;
3007
3635
  const _speedometer = speedometer(50, 250);
3008
3636
  return throttle(e => {
3009
- if (!e || typeof e.loaded !== 'number') {
3637
+ if (!e || !utils$1.isNumber(e.loaded)) {
3010
3638
  return;
3011
3639
  }
3012
3640
  const rawLoaded = e.loaded;
3013
3641
  const total = e.lengthComputable ? e.total : undefined;
3014
- const loaded = total != null ? Math.min(rawLoaded, total) : rawLoaded;
3642
+ const loaded = Math.max(0, total != null ? Math.min(rawLoaded, total) : rawLoaded);
3015
3643
  const progressBytes = Math.max(0, loaded - bytesNotified);
3016
3644
  const rate = _speedometer(progressBytes);
3017
3645
  bytesNotified = Math.max(bytesNotified, loaded);
@@ -3037,20 +3665,85 @@ const progressEventDecorator = (total, throttled) => {
3037
3665
  loaded
3038
3666
  }), throttled[1]];
3039
3667
  };
3040
- const asyncDecorator = fn => (...args) => utils$1.asap(() => fn(...args));
3668
+ const asyncDecorator = (fn, scheduler = utils$1.asap) => (...args) => scheduler(() => fn(...args));
3041
3669
 
3042
3670
  /**
3043
- * Estimate decoded byte length of a data:// URL *without* allocating large buffers.
3044
- * - For base64: compute exact decoded size using length and padding;
3045
- * handle %XX at the character-count level (no string allocation).
3046
- * - For non-base64: compute the exact percent-decoded UTF-8 byte length.
3047
- *
3048
- * @param {string} url
3049
- * @returns {number}
3671
+ * Estimate data: URL byte lengths *without* allocating large buffers.
3672
+ * - Fetch percent-decodes a base64 body before decoding it.
3673
+ * - Node's Buffer.from(body, 'base64') sizes its backing allocation from the
3674
+ * raw body, including ignored characters and content after padding.
3675
+ * - Non-base64 data is percent-decoded and then encoded as UTF-8.
3050
3676
  */
3051
3677
  const isHexDigit = charCode => charCode >= 48 && charCode <= 57 || charCode >= 65 && charCode <= 70 || charCode >= 97 && charCode <= 102;
3052
3678
  const isPercentEncodedByte = (str, i, len) => i + 2 < len && isHexDigit(str.charCodeAt(i + 1)) && isHexDigit(str.charCodeAt(i + 2));
3053
- function estimateDataURLDecodedBytes(url) {
3679
+ const hexValue = charCode => charCode <= 57 ? charCode - 48 : (charCode & 0xdf) - 55;
3680
+ const isBase64Char = charCode => charCode >= 65 && charCode <= 90 ||
3681
+ // A-Z
3682
+ charCode >= 97 && charCode <= 122 ||
3683
+ // a-z
3684
+ charCode >= 48 && charCode <= 57 ||
3685
+ // 0-9
3686
+ charCode === 43 ||
3687
+ // +
3688
+ charCode === 47 ||
3689
+ // /
3690
+ charCode === 45 ||
3691
+ // - (base64url)
3692
+ charCode === 95; // _ (base64url)
3693
+
3694
+ const isBase64Whitespace = charCode => charCode === 9 || charCode === 10 || charCode === 12 || charCode === 13 || charCode === 32;
3695
+ const base64Bytes = significant => {
3696
+ const groups = Math.floor(significant / 4);
3697
+ const remainder = significant % 4;
3698
+ return groups * 3 + (remainder === 2 ? 1 : remainder === 3 ? 2 : 0);
3699
+ };
3700
+
3701
+ // Buffer.byteLength(body, 'base64') uses the raw string length as an allocation
3702
+ // upper bound even when Buffer.from later ignores characters or stops at '='.
3703
+ const estimateBase64BufferAllocation = body => {
3704
+ const len = body.length;
3705
+ let padding = 0;
3706
+ if (len > 0 && body.charCodeAt(len - 1) === 61 /* '=' */) {
3707
+ padding++;
3708
+ if (len > 1 && body.charCodeAt(len - 2) === 61 /* '=' */) {
3709
+ padding++;
3710
+ }
3711
+ }
3712
+ return Math.floor((len - padding) * 3 / 4);
3713
+ };
3714
+ const estimatePercentDecodedBase64Bytes = body => {
3715
+ const len = body.length;
3716
+ let significant = 0;
3717
+ let padding = 0;
3718
+ let invalid = false;
3719
+ for (let i = 0; i < len; i++) {
3720
+ let code = body.charCodeAt(i);
3721
+ if (code === 37 /* '%' */ && isPercentEncodedByte(body, i, len)) {
3722
+ code = hexValue(body.charCodeAt(i + 1)) * 16 + hexValue(body.charCodeAt(i + 2));
3723
+ i += 2;
3724
+ }
3725
+ if (isBase64Whitespace(code)) {
3726
+ continue;
3727
+ }
3728
+ if (code === 61 /* '=' */) {
3729
+ padding++;
3730
+ continue;
3731
+ }
3732
+ if (!isBase64Char(code) || padding > 0) {
3733
+ invalid = true;
3734
+ continue;
3735
+ }
3736
+ significant++;
3737
+ }
3738
+
3739
+ // Fetch rejects malformed forgiving-base64 input. Returning the raw-size
3740
+ // allocation bound keeps that invalid input from becoming a pre-check bypass.
3741
+ if (invalid || padding > 2 || padding > 0 && (significant + padding) % 4 !== 0 || significant % 4 === 1) {
3742
+ return estimateBase64BufferAllocation(body);
3743
+ }
3744
+ return base64Bytes(significant);
3745
+ };
3746
+ const estimateDataURLBytes = (url, estimateBase64) => {
3054
3747
  if (!url || typeof url !== 'string') return 0;
3055
3748
  if (!url.startsWith('data:')) return 0;
3056
3749
  const comma = url.indexOf(',');
@@ -3059,47 +3752,7 @@ function estimateDataURLDecodedBytes(url) {
3059
3752
  const body = url.slice(comma + 1);
3060
3753
  const isBase64 = /;base64/i.test(meta);
3061
3754
  if (isBase64) {
3062
- let effectiveLen = body.length;
3063
- const len = body.length; // cache length
3064
-
3065
- for (let i = 0; i < len; i++) {
3066
- if (body.charCodeAt(i) === 37 /* '%' */ && i + 2 < len) {
3067
- const a = body.charCodeAt(i + 1);
3068
- const b = body.charCodeAt(i + 2);
3069
- const isHex = isHexDigit(a) && isHexDigit(b);
3070
- if (isHex) {
3071
- effectiveLen -= 2;
3072
- i += 2;
3073
- }
3074
- }
3075
- }
3076
- let pad = 0;
3077
- let idx = len - 1;
3078
- const tailIsPct3D = j => j >= 2 && body.charCodeAt(j - 2) === 37 &&
3079
- // '%'
3080
- body.charCodeAt(j - 1) === 51 && (
3081
- // '3'
3082
- body.charCodeAt(j) === 68 || body.charCodeAt(j) === 100); // 'D' or 'd'
3083
-
3084
- if (idx >= 0) {
3085
- if (body.charCodeAt(idx) === 61 /* '=' */) {
3086
- pad++;
3087
- idx--;
3088
- } else if (tailIsPct3D(idx)) {
3089
- pad++;
3090
- idx -= 3;
3091
- }
3092
- }
3093
- if (pad === 1 && idx >= 0) {
3094
- if (body.charCodeAt(idx) === 61 /* '=' */) {
3095
- pad++;
3096
- } else if (tailIsPct3D(idx)) {
3097
- pad++;
3098
- }
3099
- }
3100
- const groups = Math.floor(effectiveLen / 4);
3101
- const bytes = groups * 3 - (pad || 0);
3102
- return bytes > 0 ? bytes : 0;
3755
+ return estimateBase64(body);
3103
3756
  }
3104
3757
 
3105
3758
  // Compute UTF-8 byte length directly from UTF-16 code units without allocating
@@ -3129,6 +3782,28 @@ function estimateDataURLDecodedBytes(url) {
3129
3782
  }
3130
3783
  }
3131
3784
  return bytes;
3785
+ };
3786
+
3787
+ /**
3788
+ * Estimate the percent-decoded payload size used by Fetch data: URLs.
3789
+ *
3790
+ * @param {string} url
3791
+ * @returns {number}
3792
+ */
3793
+ function estimateDataURLDecodedBytes(url) {
3794
+ // Fetch removes URL fragments before processing a data: URL.
3795
+ const fragmentIndex = typeof url === 'string' ? url.indexOf('#') : -1;
3796
+ return estimateDataURLBytes(fragmentIndex === -1 ? url : url.slice(0, fragmentIndex), estimatePercentDecodedBase64Bytes);
3797
+ }
3798
+
3799
+ /**
3800
+ * Estimate the Buffer backing allocation used by Node's raw base64 decoder.
3801
+ *
3802
+ * @param {string} url
3803
+ * @returns {number}
3804
+ */
3805
+ function estimateDataURLBufferAllocation(url) {
3806
+ return estimateDataURLBytes(url, estimateBase64BufferAllocation);
3132
3807
  }
3133
3808
 
3134
3809
  const zlibOptions = {
@@ -3147,29 +3822,27 @@ const isBrotliSupported = utils$1.isFunction(zlib.createBrotliDecompress);
3147
3822
  const isZstdSupported = utils$1.isFunction(zlib.createZstdDecompress);
3148
3823
  const ACCEPT_ENCODING = 'gzip, compress, deflate' + (isBrotliSupported ? ', br' : '');
3149
3824
  const ACCEPT_ENCODING_WITH_ZSTD = ACCEPT_ENCODING + (isZstdSupported ? ', zstd' : '');
3825
+ const scheduleProgress = typeof process !== 'undefined' && process.nextTick ? process.nextTick.bind(process) : utils$1.asap;
3150
3826
  const {
3151
3827
  http: httpFollow,
3152
3828
  https: httpsFollow
3153
3829
  } = followRedirects;
3154
3830
  const isHttps = /https:?/;
3155
- const FORM_DATA_CONTENT_HEADERS$1 = ['content-type', 'content-length'];
3156
- function setFormDataHeaders$1(headers, formHeaders, policy) {
3157
- if (policy !== 'content-only') {
3158
- headers.set(formHeaders);
3159
- return;
3160
- }
3161
- Object.entries(formHeaders).forEach(([key, val]) => {
3162
- if (FORM_DATA_CONTENT_HEADERS$1.includes(key.toLowerCase())) {
3163
- headers.set(key, val);
3164
- }
3165
- });
3166
- }
3167
3831
 
3168
3832
  // Symbols used to bind a single 'error' listener to a pooled socket and track
3169
3833
  // the request currently owning that socket across keep-alive reuse (issue #10780).
3170
3834
  const kAxiosSocketListener = Symbol('axios.http.socketListener');
3171
3835
  const kAxiosCurrentReq = Symbol('axios.http.currentReq');
3172
3836
 
3837
+ // A shared listener avoids retaining an adapter context for the lifetime of a
3838
+ // pooled socket. EventEmitter invokes listeners with `this` set to the emitter.
3839
+ function handleSocketError(err) {
3840
+ const current = this[kAxiosCurrentReq];
3841
+ if (current && !current.destroyed) {
3842
+ current.destroy(err);
3843
+ }
3844
+ }
3845
+
3173
3846
  // Tags HttpsProxyAgent instances installed by setProxy() so the redirect path
3174
3847
  // can strip them without clobbering a user-supplied agent that happens to be
3175
3848
  // an HttpsProxyAgent.
@@ -3315,13 +3988,14 @@ function isSameOriginRedirect(redirectOptions, requestDetails) {
3315
3988
  * @param {http.ClientRequestArgs} options
3316
3989
  * @param {AxiosProxyConfig} configProxy configuration from Axios options object
3317
3990
  * @param {string} location
3991
+ * @param {boolean} [allowEnvProxy=true] whether environment proxy configuration can be used
3318
3992
  *
3319
- * @returns {http.ClientRequestArgs}
3993
+ * @returns {boolean} whether a proxy applies to the selected transport
3320
3994
  */
3321
- function setProxy(options, configProxy, location, isRedirect, configHttpsAgent, configHttpAgent) {
3995
+ function setProxy(options, configProxy, location, isRedirect, configHttpsAgent, configHttpAgent, allowEnvProxy = true) {
3322
3996
  let proxy = configProxy;
3323
3997
  const proxyEnvAgent = getProxyEnvAgent(options, configHttpAgent, configHttpsAgent);
3324
- if (!proxy && proxy !== false && !isNodeEnvProxyEnabled(proxyEnvAgent)) {
3998
+ if (!proxy && proxy !== false && allowEnvProxy && !isNodeEnvProxyEnabled(proxyEnvAgent)) {
3325
3999
  const proxyUrl = getProxyForUrl(location);
3326
4000
  if (proxyUrl) {
3327
4001
  if (!shouldBypassProxy(location)) {
@@ -3456,8 +4130,9 @@ function setProxy(options, configProxy, location, isRedirect, configHttpsAgent,
3456
4130
  options.beforeRedirects.proxy = function beforeRedirect(redirectOptions) {
3457
4131
  // Configure proxy for redirected request, passing the original config proxy to apply
3458
4132
  // the exact same logic as if the redirected request was performed by axios directly.
3459
- setProxy(redirectOptions, configProxy, redirectOptions.href, true, configHttpsAgent, configHttpAgent);
4133
+ setProxy(redirectOptions, configProxy, redirectOptions.href, true, configHttpsAgent, configHttpAgent, allowEnvProxy);
3460
4134
  };
4135
+ return Boolean(proxy || configProxy !== false && allowEnvProxy && isNodeEnvProxyEnabled(proxyEnvAgent));
3461
4136
  }
3462
4137
  const isHttpAdapterSupported = typeof process !== 'undefined' && utils$1.kindOf(process) === 'process';
3463
4138
 
@@ -3488,7 +4163,7 @@ const resolveFamily = ({
3488
4163
  family
3489
4164
  }) => {
3490
4165
  if (!utils$1.isString(address)) {
3491
- throw TypeError('address must be a string');
4166
+ throw new AxiosError('address must be a string', AxiosError.ERR_BAD_OPTION_VALUE);
3492
4167
  }
3493
4168
  return {
3494
4169
  address,
@@ -3499,6 +4174,32 @@ const buildAddressEntry = (address, family) => resolveFamily(utils$1.isObject(ad
3499
4174
  address,
3500
4175
  family
3501
4176
  });
4177
+ const normalizedLookupCache = new WeakMap();
4178
+ const normalizeLookup = lookup => {
4179
+ let normalized = normalizedLookupCache.get(lookup);
4180
+ if (normalized) {
4181
+ return normalized;
4182
+ }
4183
+ const callbackLookup = callbackify(lookup, value => utils$1.isArray(value) ? value : [value]);
4184
+
4185
+ // Support opt.all, which is required by current Node.js releases.
4186
+ normalized = (hostname, opt, cb) => {
4187
+ callbackLookup(hostname, opt, (err, arg0, arg1) => {
4188
+ if (err) {
4189
+ return cb(err);
4190
+ }
4191
+ let addresses;
4192
+ try {
4193
+ addresses = utils$1.isArray(arg0) ? arg0.map(addr => buildAddressEntry(addr)) : [buildAddressEntry(arg0, arg1)];
4194
+ } catch (error) {
4195
+ return cb(error);
4196
+ }
4197
+ opt.all ? cb(err, addresses) : cb(err, addresses[0].address, addresses[0].family);
4198
+ });
4199
+ };
4200
+ normalizedLookupCache.set(lookup, normalized);
4201
+ return normalized;
4202
+ };
3502
4203
  const http2Transport = {
3503
4204
  request(options, cb) {
3504
4205
  const authority = options.protocol + '//' + options.hostname + ':' + (options.port || (options.protocol === 'https:' ? 443 : 80));
@@ -3551,6 +4252,7 @@ var httpAdapter = isHttpAdapterSupported && function httpAdapter(config) {
3551
4252
  let family = own('family');
3552
4253
  let httpVersion = own('httpVersion');
3553
4254
  if (httpVersion === undefined) httpVersion = 1;
4255
+ const rawHttpVersion = httpVersion;
3554
4256
  let http2Options = own('http2Options');
3555
4257
  const httpAgent = own('httpAgent');
3556
4258
  const httpsAgent = own('httpsAgent');
@@ -3567,26 +4269,20 @@ var httpAdapter = isHttpAdapterSupported && function httpAdapter(config) {
3567
4269
  let rejected = false;
3568
4270
  let req;
3569
4271
  let connectPhaseTimer;
3570
- httpVersion = +httpVersion;
4272
+ try {
4273
+ httpVersion = +httpVersion;
4274
+ } catch (err) {
4275
+ throw new AxiosError('Invalid protocol version: value is not a number', AxiosError.ERR_BAD_OPTION_VALUE, config);
4276
+ }
3571
4277
  if (Number.isNaN(httpVersion)) {
3572
- throw TypeError(`Invalid protocol version: '${config.httpVersion}' is not a number`);
4278
+ throw new AxiosError(`Invalid protocol version: '${rawHttpVersion}' is not a number`, AxiosError.ERR_BAD_OPTION_VALUE, config);
3573
4279
  }
3574
4280
  if (httpVersion !== 1 && httpVersion !== 2) {
3575
- throw TypeError(`Unsupported protocol version '${httpVersion}'`);
4281
+ throw new AxiosError(`Unsupported protocol version '${httpVersion}'`, AxiosError.ERR_BAD_OPTION_VALUE, config);
3576
4282
  }
3577
4283
  const isHttp2 = httpVersion === 2;
3578
4284
  if (lookup) {
3579
- const _lookup = callbackify(lookup, value => utils$1.isArray(value) ? value : [value]);
3580
- // hotfix to support opt.all option which is required for node 20.x
3581
- lookup = (hostname, opt, cb) => {
3582
- _lookup(hostname, opt, (err, arg0, arg1) => {
3583
- if (err) {
3584
- return cb(err);
3585
- }
3586
- const addresses = utils$1.isArray(arg0) ? arg0.map(addr => buildAddressEntry(addr)) : [buildAddressEntry(arg0, arg1)];
3587
- opt.all ? cb(err, addresses) : cb(err, addresses[0].address, addresses[0].family);
3588
- });
3589
- };
4285
+ lookup = normalizeLookup(lookup);
3590
4286
  }
3591
4287
  const abortEmitter = new events.EventEmitter();
3592
4288
  function abort(reason) {
@@ -3663,7 +4359,7 @@ var httpAdapter = isHttpAdapterSupported && function httpAdapter(config) {
3663
4359
  if (maxContentLength > -1) {
3664
4360
  // Use the exact string passed to fromDataURI (the configured url); fall back to fullPath if needed.
3665
4361
  const dataUrl = String(own('url') || fullPath || '');
3666
- const estimated = estimateDataURLDecodedBytes(dataUrl);
4362
+ const estimated = estimateDataURLBufferAllocation(dataUrl);
3667
4363
  if (estimated > maxContentLength) {
3668
4364
  return reject(new AxiosError('maxContentLength size of ' + maxContentLength + ' exceeded', AxiosError.ERR_BAD_RESPONSE, config));
3669
4365
  }
@@ -3729,7 +4425,7 @@ var httpAdapter = isHttpAdapterSupported && function httpAdapter(config) {
3729
4425
  });
3730
4426
  // support for https://www.npmjs.com/package/form-data api
3731
4427
  } else if (utils$1.isFormData(data) && utils$1.isFunction(data.getHeaders) && data.getHeaders !== Object.prototype.getHeaders) {
3732
- setFormDataHeaders$1(headers, data.getHeaders(), own('formDataHeaderPolicy'));
4428
+ setFormDataHeaders(headers, data.getHeaders(), own('formDataHeaderPolicy'));
3733
4429
  if (!headers.hasContentLength()) {
3734
4430
  try {
3735
4431
  const knownLength = await util.promisify(data.getLength).call(data);
@@ -3772,7 +4468,7 @@ var httpAdapter = isHttpAdapterSupported && function httpAdapter(config) {
3772
4468
  data = stream.pipeline([data, new AxiosTransformStream({
3773
4469
  maxRate: utils$1.toFiniteNumber(maxUploadRate)
3774
4470
  })], utils$1.noop);
3775
- onUploadProgress && data.on('progress', flushOnFinish(data, progressEventDecorator(contentLength, progressEventReducer(asyncDecorator(onUploadProgress), false, 3))));
4471
+ onUploadProgress && data.on('progress', flushOnFinish(data, progressEventDecorator(contentLength, progressEventReducer(asyncDecorator(onUploadProgress, scheduleProgress), false, 3))));
3776
4472
  }
3777
4473
 
3778
4474
  // HTTP basic authentication
@@ -3799,6 +4495,11 @@ var httpAdapter = isHttpAdapterSupported && function httpAdapter(config) {
3799
4495
  }));
3800
4496
  }
3801
4497
  headers.set('Accept-Encoding', utils$1.hasOwnProp(transitional, 'advertiseZstdAcceptEncoding') && transitional.advertiseZstdAcceptEncoding === true ? ACCEPT_ENCODING_WITH_ZSTD : ACCEPT_ENCODING, false);
4498
+ if (isHttp2 && lookup) {
4499
+ http2Options = Object.assign(Object.create(null), http2Options, {
4500
+ lookup
4501
+ });
4502
+ }
3802
4503
 
3803
4504
  // Null-prototype to block prototype pollution gadgets on properties read
3804
4505
  // directly by Node's http.request (e.g. insecureHTTPParser, lookup).
@@ -3815,11 +4516,13 @@ var httpAdapter = isHttpAdapterSupported && function httpAdapter(config) {
3815
4516
  family,
3816
4517
  beforeRedirect: dispatchBeforeRedirect,
3817
4518
  beforeRedirects: Object.create(null),
3818
- http2Options
4519
+ http2Options,
4520
+ createConnection: undefined
3819
4521
  });
3820
4522
 
3821
4523
  // cacheable-lookup integration hotfix
3822
4524
  !utils$1.isUndefined(lookup) && (options.lookup = lookup);
4525
+ let proxyApplied = false;
3823
4526
  if (socketPath) {
3824
4527
  if (typeof socketPath !== 'string') {
3825
4528
  return reject(new AxiosError('socketPath must be a string', AxiosError.ERR_BAD_OPTION_VALUE, config));
@@ -3837,7 +4540,11 @@ var httpAdapter = isHttpAdapterSupported && function httpAdapter(config) {
3837
4540
  } else {
3838
4541
  options.hostname = parsed.hostname.startsWith('[') ? parsed.hostname.slice(1, -1) : parsed.hostname;
3839
4542
  options.port = parsed.port;
3840
- setProxy(options, configProxy, protocol + '//' + parsed.hostname + (parsed.port ? ':' + parsed.port : '') + options.path, false, httpsAgent, httpAgent);
4543
+ proxyApplied = setProxy(options, configProxy, protocol + '//' + parsed.hostname + (parsed.port ? ':' + parsed.port : '') + options.path, false, httpsAgent, httpAgent,
4544
+ // The HTTP/2 transport connects independently of HTTP/1 agents, so it
4545
+ // cannot apply either axios-resolved or agent-local environment proxies.
4546
+ // Explicit proxy config is still processed and rejected below.
4547
+ !isHttp2);
3841
4548
  }
3842
4549
  let transport;
3843
4550
  let isNativeTransport = false;
@@ -3853,6 +4560,9 @@ var httpAdapter = isHttpAdapterSupported && function httpAdapter(config) {
3853
4560
  options.agent = isHttpsRequest ? httpsAgent : httpAgent;
3854
4561
  }
3855
4562
  if (isHttp2) {
4563
+ if (proxyApplied) {
4564
+ return reject(new AxiosError('HTTP/2 requests with a proxy are not supported', AxiosError.ERR_NOT_SUPPORT, config));
4565
+ }
3856
4566
  transport = http2Transport;
3857
4567
  } else {
3858
4568
  const configTransport = own('transport');
@@ -3937,7 +4647,7 @@ var httpAdapter = isHttpAdapterSupported && function httpAdapter(config) {
3937
4647
  const transformStream = new AxiosTransformStream({
3938
4648
  maxRate: utils$1.toFiniteNumber(maxDownloadRate)
3939
4649
  });
3940
- onDownloadProgress && transformStream.on('progress', flushOnFinish(transformStream, progressEventDecorator(responseLength, progressEventReducer(asyncDecorator(onDownloadProgress), true, 3))));
4650
+ onDownloadProgress && transformStream.on('progress', flushOnFinish(transformStream, progressEventDecorator(responseLength, progressEventReducer(asyncDecorator(onDownloadProgress, scheduleProgress), true, 3))));
3941
4651
  streams.push(transformStream);
3942
4652
  }
3943
4653
 
@@ -4100,18 +4810,10 @@ var httpAdapter = isHttpAdapterSupported && function httpAdapter(config) {
4100
4810
  socket.setKeepAlive(true, 1000 * 60);
4101
4811
  }
4102
4812
 
4103
- // Install a single 'error' listener per socket (not per request) to avoid
4104
- // accumulating listeners on pooled keep-alive sockets that get reassigned
4105
- // to new requests before the previous request's 'close' fires (issue #10780).
4106
- // The listener is bound to the socket's currently-active request via a
4107
- // symbol, which is swapped as the socket is reassigned.
4813
+ // Install one shared 'error' listener per socket. The symbol follows the
4814
+ // currently-active request as pooled sockets are reassigned (issue #10780).
4108
4815
  if (!socket[kAxiosSocketListener]) {
4109
- socket.on('error', function handleSocketError(err) {
4110
- const current = socket[kAxiosCurrentReq];
4111
- if (current && !current.destroyed) {
4112
- current.destroy(err);
4113
- }
4114
- });
4816
+ socket.on('error', handleSocketError);
4115
4817
  socket[kAxiosSocketListener] = true;
4116
4818
  }
4117
4819
  socket[kAxiosCurrentReq] = req;
@@ -4268,6 +4970,12 @@ var cookies = platform.hasStandardBrowserEnv ?
4268
4970
  const headersToObject = thing => thing instanceof AxiosHeaders ? {
4269
4971
  ...thing
4270
4972
  } : thing;
4973
+ const ownEnumerableKeys = thing => {
4974
+ if (Object.getOwnPropertySymbols && Object.getOwnPropertyDescriptor) {
4975
+ return Object.keys(thing).concat(Object.getOwnPropertySymbols(thing).filter(symbol => Object.getOwnPropertyDescriptor(thing, symbol).enumerable));
4976
+ }
4977
+ return Object.keys(thing);
4978
+ };
4271
4979
 
4272
4980
  /**
4273
4981
  * Config-specific merge-function which creates a new config-object
@@ -4367,7 +5075,7 @@ function mergeConfig(config1, config2) {
4367
5075
  transformResponse: defaultToConfig2,
4368
5076
  paramsSerializer: defaultToConfig2,
4369
5077
  timeout: defaultToConfig2,
4370
- timeoutMessage: defaultToConfig2,
5078
+ timeoutErrorMessage: defaultToConfig2,
4371
5079
  withCredentials: defaultToConfig2,
4372
5080
  withXSRFToken: defaultToConfig2,
4373
5081
  adapter: defaultToConfig2,
@@ -4390,7 +5098,7 @@ function mergeConfig(config1, config2) {
4390
5098
  validateStatus: mergeDirectKeys,
4391
5099
  headers: (a, b, prop) => mergeDeepProperties(headersToObject(a), headersToObject(b), prop, true)
4392
5100
  };
4393
- utils$1.forEach(Object.keys({
5101
+ utils$1.forEach(ownEnumerableKeys({
4394
5102
  ...config1,
4395
5103
  ...config2
4396
5104
  }), function computeConfigValue(prop) {
@@ -4411,19 +5119,6 @@ function mergeConfig(config1, config2) {
4411
5119
  return config;
4412
5120
  }
4413
5121
 
4414
- const FORM_DATA_CONTENT_HEADERS = ['content-type', 'content-length'];
4415
- function setFormDataHeaders(headers, formHeaders, policy) {
4416
- if (policy !== 'content-only') {
4417
- headers.set(formHeaders);
4418
- return;
4419
- }
4420
- Object.entries(formHeaders || {}).forEach(([key, val]) => {
4421
- if (FORM_DATA_CONTENT_HEADERS.includes(key.toLowerCase())) {
4422
- headers.set(key, val);
4423
- }
4424
- });
4425
- }
4426
-
4427
5122
  /**
4428
5123
  * Encode a UTF-8 string to a Latin-1 byte string for use with btoa().
4429
5124
  * This is a modern replacement for the deprecated unescape(encodeURIComponent(str)) pattern.
@@ -4462,11 +5157,12 @@ function resolveConfig(config) {
4462
5157
  }
4463
5158
  }
4464
5159
  if (utils$1.isFormData(data)) {
5160
+ const getHeaders = utils$1.getSafeProp(data, 'getHeaders');
4465
5161
  if (platform.hasStandardBrowserEnv || platform.hasStandardBrowserWebWorkerEnv || utils$1.isReactNative(data)) {
4466
5162
  headers.setContentType(undefined); // browser/web worker/RN handles it
4467
- } else if (utils$1.isFunction(data.getHeaders)) {
5163
+ } else if (utils$1.isFunction(getHeaders)) {
4468
5164
  // Node.js FormData (like form-data package)
4469
- setFormDataHeaders(headers, data.getHeaders(), own('formDataHeaderPolicy'));
5165
+ setFormDataHeaders(headers, getHeaders.call(data), own('formDataHeaderPolicy'));
4470
5166
  }
4471
5167
  }
4472
5168
 
@@ -4506,7 +5202,7 @@ var xhrAdapter = isXHRAdapterSupported && function (config) {
4506
5202
  } = _config;
4507
5203
  let onCanceled;
4508
5204
  let uploadThrottled, downloadThrottled;
4509
- let flushUpload, flushDownload;
5205
+ let flushUpload, flushDownload, flushDownloadWithEvent;
4510
5206
  function done() {
4511
5207
  flushUpload && flushUpload(); // flush events
4512
5208
  flushDownload && flushDownload(); // flush events
@@ -4519,10 +5215,50 @@ var xhrAdapter = isXHRAdapterSupported && function (config) {
4519
5215
 
4520
5216
  // Set the request timeout in MS
4521
5217
  request.timeout = _config.timeout;
4522
- function onloadend() {
5218
+ function onloadend(event) {
5219
+ if (!request) {
5220
+ return;
5221
+ }
5222
+
5223
+ // Status 0 means no response was received, which onerror and onabort normally
5224
+ // reject before this runs. Firefox 152 fires only readystatechange and loadend for
5225
+ // navigation-canceled requests (https://bugzilla.mozilla.org/show_bug.cgi?id=1505389),
5226
+ // leaving settle() to resolve them as an empty success. ECONNABORTED is the error
5227
+ // onabort raised on Firefox 151. Reads over file:, which some environments report as
5228
+ // status 0 on success, are excluded by the request URL's scheme after browser-style
5229
+ // preprocessing, by the page origin's scheme for relative URLs (which inherit it), or
5230
+ // by responseURL where implemented.
5231
+ if (request.status === 0 && (parseProtocol(normalizeURLForProtocolCheck(_config.url)) || parseProtocol(platform.origin)) !== 'file' && !(request.responseURL && request.responseURL.startsWith('file:'))) {
5232
+ reject(new AxiosError('Request aborted', AxiosError.ECONNABORTED, config, request));
5233
+ done();
5234
+
5235
+ // Clean up request
5236
+ request = null;
5237
+ return;
5238
+ }
5239
+
5240
+ // When loadend is still dispatching, flushing with it gives progress
5241
+ // listeners a final delivery whose event has a live target. The legacy
5242
+ // ready-state fallback has no event, so replay its pending progress.
5243
+ // A throwing listener must not block settlement; rethrow asynchronously,
5244
+ // matching how listener errors surface on the throttle timer path.
5245
+ try {
5246
+ if (event) {
5247
+ flushDownloadWithEvent && flushDownloadWithEvent(event);
5248
+ } else {
5249
+ flushDownload && flushDownload();
5250
+ }
5251
+ } catch (err) {
5252
+ setTimeout(() => {
5253
+ throw err;
5254
+ });
5255
+ }
5256
+
5257
+ // A final progress callback can cancel the request synchronously.
4523
5258
  if (!request) {
4524
5259
  return;
4525
5260
  }
5261
+
4526
5262
  // Prepare the response
4527
5263
  const responseHeaders = AxiosHeaders.from('getAllResponseHeaders' in request && request.getAllResponseHeaders());
4528
5264
  const responseData = !responseType || responseType === 'text' || responseType === 'json' ? request.responseText : request.response;
@@ -4630,7 +5366,7 @@ var xhrAdapter = isXHRAdapterSupported && function (config) {
4630
5366
 
4631
5367
  // Handle progress if needed
4632
5368
  if (onDownloadProgress) {
4633
- [downloadThrottled, flushDownload] = progressEventReducer(onDownloadProgress, true);
5369
+ [downloadThrottled, flushDownload, flushDownloadWithEvent] = progressEventReducer(onDownloadProgress, true);
4634
5370
  request.addEventListener('progress', downloadThrottled);
4635
5371
  }
4636
5372
 
@@ -4699,9 +5435,18 @@ const composeSignals = (signals, timeout) => {
4699
5435
  });
4700
5436
  signals = null;
4701
5437
  };
4702
- signals.forEach(signal => signal.addEventListener('abort', onabort, {
4703
- once: true
4704
- }));
5438
+ signals.forEach(signal => {
5439
+ if (aborted) {
5440
+ return;
5441
+ }
5442
+ if (signal.aborted) {
5443
+ onabort.call(signal);
5444
+ return;
5445
+ }
5446
+ signal.addEventListener('abort', onabort, {
5447
+ once: true
5448
+ });
5449
+ });
4705
5450
  const {
4706
5451
  signal
4707
5452
  } = controller;
@@ -4792,6 +5537,17 @@ const trackStream = (stream, chunkSize, onProgress, onFinish) => {
4792
5537
  };
4793
5538
 
4794
5539
  const DEFAULT_CHUNK_SIZE = 64 * 1024;
5540
+ const DEFAULT_REQUEST_OPTIONS = {
5541
+ cache: 'default',
5542
+ redirect: 'follow',
5543
+ referrer: 'about:client',
5544
+ referrerPolicy: '',
5545
+ mode: 'cors',
5546
+ integrity: '',
5547
+ keepalive: false,
5548
+ priority: 'auto',
5549
+ window: null
5550
+ };
4795
5551
  const {
4796
5552
  isFunction
4797
5553
  } = utils$1;
@@ -4934,7 +5690,8 @@ const factory = env => {
4934
5690
  withCredentials = 'same-origin',
4935
5691
  fetchOptions,
4936
5692
  maxContentLength,
4937
- maxBodyLength
5693
+ maxBodyLength,
5694
+ maxRedirects
4938
5695
  } = resolveConfig(config);
4939
5696
  const hasMaxContentLength = utils$1.isNumber(maxContentLength) && maxContentLength > -1;
4940
5697
  const hasMaxBodyLength = utils$1.isNumber(maxBodyLength) && maxBodyLength > -1;
@@ -5065,17 +5822,46 @@ const factory = env => {
5065
5822
 
5066
5823
  // Set User-Agent header if not already set (fetch defaults to 'node' in Node.js)
5067
5824
  headers.set('User-Agent', 'axios/' + VERSION, false);
5068
- const resolvedOptions = {
5069
- ...fetchOptions,
5825
+ const safeFetchOptions = fetchOptions == null ? fetchOptions : Object.assign(Object.create(null), fetchOptions);
5826
+ if (safeFetchOptions) {
5827
+ // These options are owned by Axios and are already reflected in the
5828
+ // resolved Request passed to fetch.
5829
+ delete safeFetchOptions.body;
5830
+ delete safeFetchOptions.headers;
5831
+ delete safeFetchOptions.method;
5832
+ delete safeFetchOptions.signal;
5833
+ delete safeFetchOptions.duplex;
5834
+ delete safeFetchOptions.credentials;
5835
+ }
5836
+ const resolvedOptions = Object.assign(Object.create(null), safeFetchOptions, {
5070
5837
  signal: composedSignal,
5071
5838
  method: method.toUpperCase(),
5072
5839
  headers: toByteStringHeaderObject(headers.normalize()),
5073
5840
  body: data,
5074
5841
  duplex: 'half',
5075
5842
  credentials: isCredentialsSupported ? withCredentials : undefined
5076
- };
5843
+ });
5844
+ if (isRequestSupported) {
5845
+ utils$1.forEach(DEFAULT_REQUEST_OPTIONS, (value, key) => {
5846
+ if (resolvedOptions[key] === undefined) {
5847
+ resolvedOptions[key] = value;
5848
+ }
5849
+ });
5850
+ if (resolvedOptions.signal === undefined) {
5851
+ resolvedOptions.signal = null;
5852
+ }
5853
+ if (resolvedOptions.body === undefined) {
5854
+ resolvedOptions.body = null;
5855
+ }
5856
+ }
5857
+ if (maxRedirects === 0) {
5858
+ resolvedOptions.redirect = 'manual';
5859
+ if (safeFetchOptions) {
5860
+ safeFetchOptions.redirect = 'manual';
5861
+ }
5862
+ }
5077
5863
  request = isRequestSupported && new Request(url, resolvedOptions);
5078
- let response = await (isRequestSupported ? _fetch(request, fetchOptions) : _fetch(url, resolvedOptions));
5864
+ let response = await (isRequestSupported ? _fetch(request, safeFetchOptions) : _fetch(url, resolvedOptions));
5079
5865
  const responseHeaders = AxiosHeaders.from(response.headers);
5080
5866
 
5081
5867
  // Cheap pre-check: if the server honestly declares a content-length that
@@ -5355,9 +6141,13 @@ function throwIfCancellationRequested(config) {
5355
6141
  *
5356
6142
  * @returns {Promise} The Promise to be fulfilled
5357
6143
  */
5358
- function dispatchRequest(config) {
6144
+ function dispatchRequest(_config) {
6145
+ // Interceptors may replace the merged config with an ordinary object. Flatten
6146
+ // it at the dispatch boundary so shared prototype members cannot become
6147
+ // request behavior, while preserving intentional template/class members.
6148
+ const config = utils$1.toSafeFlatObject(_config);
5359
6149
  throwIfCancellationRequested(config);
5360
- config.headers = AxiosHeaders.from(config.headers);
6150
+ config.headers = AxiosHeaders.from(utils$1.getSafeProp(config, 'headers'));
5361
6151
 
5362
6152
  // Transform request data
5363
6153
  config.data = transformData.call(config, config.transformRequest);
@@ -5513,18 +6303,17 @@ class Axios {
5513
6303
  return await this._request(configOrUrl, config);
5514
6304
  } catch (err) {
5515
6305
  if (err instanceof Error) {
5516
- let dummy = {};
5517
- Error.captureStackTrace ? Error.captureStackTrace(dummy) : dummy = new Error();
5518
-
5519
- // slice off the Error: ... line
5520
- const stack = (() => {
5521
- if (!dummy.stack) {
5522
- return '';
5523
- }
5524
- const firstNewlineIndex = dummy.stack.indexOf('\n');
5525
- return firstNewlineIndex === -1 ? '' : dummy.stack.slice(firstNewlineIndex + 1);
5526
- })();
5527
6306
  try {
6307
+ let dummy = {};
6308
+ Error.captureStackTrace ? Error.captureStackTrace(dummy) : dummy = new Error();
6309
+ const dummyStack = dummy.stack;
6310
+ let stack = '';
6311
+
6312
+ // slice off the Error: ... line
6313
+ if (typeof dummyStack === 'string') {
6314
+ const firstNewlineIndex = dummyStack.indexOf('\n');
6315
+ stack = firstNewlineIndex === -1 ? '' : dummyStack.slice(firstNewlineIndex + 1);
6316
+ }
5528
6317
  if (!err.stack) {
5529
6318
  err.stack = stack;
5530
6319
  // match without the 2 top stack lines
@@ -5537,7 +6326,7 @@ class Axios {
5537
6326
  }
5538
6327
  }
5539
6328
  } catch (e) {
5540
- // ignore the case where "stack" is an un-writable property
6329
+ // Ignore failures from custom stack hooks or un-writable stack properties.
5541
6330
  }
5542
6331
  }
5543
6332
  throw err;
@@ -5593,11 +6382,11 @@ class Axios {
5593
6382
  }, true);
5594
6383
 
5595
6384
  // Set config.method
5596
- config.method = (config.method || this.defaults.method || 'get').toLowerCase();
6385
+ config.method = (utils$1.getSafeProp(config, 'method') || utils$1.getSafeProp(this.defaults, 'method') || 'get').toLowerCase();
5597
6386
 
5598
6387
  // Flatten headers
5599
6388
  let contextHeaders = headers && utils$1.merge(headers.common, headers[config.method]);
5600
- headers && utils$1.forEach(['delete', 'get', 'head', 'post', 'put', 'patch', 'query', 'common'], method => {
6389
+ headers && utils$1.forEach(methodList.concat('common'), method => {
5601
6390
  delete headers[method];
5602
6391
  });
5603
6392
  config.headers = AxiosHeaders.concat(contextHeaders, headers);
@@ -5642,16 +6431,29 @@ class Axios {
5642
6431
  const onFulfilled = requestInterceptorChain[i++];
5643
6432
  const onRejected = requestInterceptorChain[i++];
5644
6433
  try {
5645
- newConfig = onFulfilled(newConfig);
6434
+ newConfig = onFulfilled ? onFulfilled(newConfig) : newConfig;
5646
6435
  } catch (error) {
5647
- onRejected.call(this, error);
6436
+ if (!onRejected) {
6437
+ promise = Promise.reject(error);
6438
+ break;
6439
+ }
6440
+ try {
6441
+ const rejectedResult = onRejected.call(this, error);
6442
+ if (utils$1.isThenable(rejectedResult)) {
6443
+ promise = Promise.resolve(rejectedResult).then(() => dispatchRequest.call(this, newConfig));
6444
+ }
6445
+ } catch (rejectedError) {
6446
+ promise = Promise.reject(rejectedError);
6447
+ }
5648
6448
  break;
5649
6449
  }
5650
6450
  }
5651
- try {
5652
- promise = dispatchRequest.call(this, newConfig);
5653
- } catch (error) {
5654
- return Promise.reject(error);
6451
+ if (!promise) {
6452
+ try {
6453
+ promise = dispatchRequest.call(this, newConfig);
6454
+ } catch (error) {
6455
+ promise = Promise.reject(error);
6456
+ }
5655
6457
  }
5656
6458
  i = 0;
5657
6459
  len = responseInterceptorChain.length;
@@ -5890,14 +6692,22 @@ const HttpStatusCode = {
5890
6692
  Gone: 410,
5891
6693
  LengthRequired: 411,
5892
6694
  PreconditionFailed: 412,
6695
+ /**
6696
+ * @deprecated Use `ContentTooLarge` instead.
6697
+ */
5893
6698
  PayloadTooLarge: 413,
6699
+ ContentTooLarge: 413,
5894
6700
  UriTooLong: 414,
5895
6701
  UnsupportedMediaType: 415,
5896
6702
  RangeNotSatisfiable: 416,
5897
6703
  ExpectationFailed: 417,
5898
6704
  ImATeapot: 418,
5899
6705
  MisdirectedRequest: 421,
6706
+ /**
6707
+ * @deprecated Use `UnprocessableContent` instead.
6708
+ */
5900
6709
  UnprocessableEntity: 422,
6710
+ UnprocessableContent: 422,
5901
6711
  Locked: 423,
5902
6712
  FailedDependency: 424,
5903
6713
  TooEarly: 425,
@@ -5917,6 +6727,7 @@ const HttpStatusCode = {
5917
6727
  LoopDetected: 508,
5918
6728
  NotExtended: 510,
5919
6729
  NetworkAuthenticationRequired: 511,
6730
+ WebServerReturnsAnUnknownError: 520,
5920
6731
  WebServerIsDown: 521,
5921
6732
  ConnectionTimedOut: 522,
5922
6733
  OriginIsUnreachable: 523,
@@ -5925,7 +6736,9 @@ const HttpStatusCode = {
5925
6736
  InvalidSslCertificate: 526
5926
6737
  };
5927
6738
  Object.entries(HttpStatusCode).forEach(([key, value]) => {
5928
- HttpStatusCode[value] = key;
6739
+ if (HttpStatusCode[value] === undefined) {
6740
+ HttpStatusCode[value] = key;
6741
+ }
5929
6742
  });
5930
6743
 
5931
6744
  /**
@@ -5993,4 +6806,3 @@ axios.HttpStatusCode = HttpStatusCode;
5993
6806
  axios.default = axios;
5994
6807
 
5995
6808
  module.exports = axios;
5996
- //# sourceMappingURL=axios.cjs.map