cloudstructs 0.12.9 → 0.12.10

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 (1224) hide show
  1. package/.jsii +6 -6
  2. package/API.md +308 -0
  3. package/assets/slack-textract/detect.lambda/index.js +831 -823
  4. package/assets/ssl-server-test/analyze.lambda/index.js +52 -37
  5. package/assets/toolkit-cleaner/clean.lambda/index.js +52 -37
  6. package/lib/codecommit-mirror/index.js +2 -2
  7. package/lib/dmarc/index.js +1 -1
  8. package/lib/ecs-service-roller/index.js +2 -2
  9. package/lib/email-receiver/receiver.js +1 -1
  10. package/lib/mjml-template/index.js +1 -1
  11. package/lib/saml-identity-provider/index.js +2 -2
  12. package/lib/slack-app/manifest.js +1 -1
  13. package/lib/slack-app/slack-app.js +2 -2
  14. package/lib/slack-events/index.js +1 -1
  15. package/lib/slack-textract/index.js +1 -1
  16. package/lib/ssl-server-test/index.js +1 -1
  17. package/lib/state-machine-cr-provider/index.js +1 -1
  18. package/lib/static-website/index.js +1 -1
  19. package/lib/toolkit-cleaner/index.js +1 -1
  20. package/lib/url-shortener/index.js +1 -1
  21. package/node_modules/@aws/durable-execution-sdk-js/dist/index.mjs +91 -37
  22. package/node_modules/@aws/durable-execution-sdk-js/dist/index.mjs.map +1 -1
  23. package/node_modules/@aws/durable-execution-sdk-js/dist-cjs/index.js +91 -37
  24. package/node_modules/@aws/durable-execution-sdk-js/dist-cjs/index.js.map +1 -1
  25. package/node_modules/@aws/durable-execution-sdk-js/dist-types/context/durable-context/durable-context.d.ts +5 -2
  26. package/node_modules/@aws/durable-execution-sdk-js/dist-types/context/durable-context/durable-context.d.ts.map +1 -1
  27. package/node_modules/@aws/durable-execution-sdk-js/dist-types/context/durable-context/durable-context.test.d.ts +2 -0
  28. package/node_modules/@aws/durable-execution-sdk-js/dist-types/context/durable-context/durable-context.test.d.ts.map +1 -0
  29. package/node_modules/@aws/durable-execution-sdk-js/dist-types/durable-execution-api-client/durable-execution-api-client.d.ts.map +1 -1
  30. package/node_modules/@aws/durable-execution-sdk-js/dist-types/handlers/concurrent-execution-handler/batch-result.d.ts.map +1 -1
  31. package/node_modules/@aws/durable-execution-sdk-js/dist-types/handlers/invoke-handler/invoke-handler.d.ts.map +1 -1
  32. package/node_modules/@aws/durable-execution-sdk-js/dist-types/types/durable-context.d.ts +9 -0
  33. package/node_modules/@aws/durable-execution-sdk-js/dist-types/types/durable-context.d.ts.map +1 -1
  34. package/node_modules/@aws/durable-execution-sdk-js/dist-types/types/invoke.d.ts +2 -0
  35. package/node_modules/@aws/durable-execution-sdk-js/dist-types/types/invoke.d.ts.map +1 -1
  36. package/node_modules/@aws/durable-execution-sdk-js/dist-types/utils/checkpoint/checkpoint-manager.d.ts +0 -1
  37. package/node_modules/@aws/durable-execution-sdk-js/dist-types/utils/checkpoint/checkpoint-manager.d.ts.map +1 -1
  38. package/node_modules/@aws/durable-execution-sdk-js/dist-types/utils/constants/constants.d.ts +12 -0
  39. package/node_modules/@aws/durable-execution-sdk-js/dist-types/utils/constants/constants.d.ts.map +1 -1
  40. package/node_modules/@aws/durable-execution-sdk-js/dist-types/utils/constants/version.d.ts +14 -0
  41. package/node_modules/@aws/durable-execution-sdk-js/dist-types/utils/constants/version.d.ts.map +1 -0
  42. package/node_modules/@aws/durable-execution-sdk-js/dist-types/utils/logger/default-logger.d.ts.map +1 -1
  43. package/node_modules/@aws/durable-execution-sdk-js/dist-types/with-durable-execution.d.ts.map +1 -1
  44. package/node_modules/@aws/durable-execution-sdk-js/package.json +1 -1
  45. package/node_modules/@aws/lambda-invoke-store/dist-cjs/invoke-store.js +2 -2
  46. package/node_modules/@aws/lambda-invoke-store/dist-es/invoke-store.js +2 -2
  47. package/node_modules/@aws/lambda-invoke-store/dist-types/invoke-store.d.ts +1 -1
  48. package/node_modules/@aws/lambda-invoke-store/package.json +1 -1
  49. package/node_modules/@aws-sdk/client-lambda/README.md +26 -46
  50. package/node_modules/@aws-sdk/client-lambda/dist-cjs/index.js +17 -18
  51. package/node_modules/@aws-sdk/client-lambda/dist-types/commands/InvokeAsyncCommand.d.ts +1 -1
  52. package/node_modules/@aws-sdk/client-lambda/dist-types/models/models_0.d.ts +2 -1
  53. package/node_modules/@aws-sdk/client-lambda/package.json +43 -43
  54. package/node_modules/@aws-sdk/core/dist-cjs/index.js +15 -19
  55. package/node_modules/@aws-sdk/core/dist-cjs/submodules/protocols/index.js +15 -19
  56. package/node_modules/@aws-sdk/core/dist-es/submodules/account-id-endpoint/AccountIdEndpointModeConfigResolver.js +1 -1
  57. package/node_modules/@aws-sdk/core/dist-es/submodules/account-id-endpoint/NodeAccountIdEndpointModeConfigOptions.js +1 -1
  58. package/node_modules/@aws-sdk/core/dist-es/submodules/protocols/ProtocolLib.js +3 -3
  59. package/node_modules/@aws-sdk/core/dist-es/submodules/protocols/index.js +2 -0
  60. package/node_modules/@aws-sdk/core/dist-es/submodules/protocols/json/JsonShapeDeserializer.js +2 -8
  61. package/node_modules/@aws-sdk/core/dist-es/submodules/protocols/query/AwsEc2QueryProtocol.js +3 -0
  62. package/node_modules/@aws-sdk/core/dist-es/submodules/protocols/query/AwsQueryProtocol.js +1 -1
  63. package/node_modules/@aws-sdk/core/dist-es/submodules/protocols/xml/XmlShapeDeserializer.js +5 -7
  64. package/node_modules/@aws-sdk/core/dist-types/submodules/account-id-endpoint/AccountIdEndpointModeConfigResolver.d.ts +1 -1
  65. package/node_modules/@aws-sdk/core/dist-types/submodules/account-id-endpoint/NodeAccountIdEndpointModeConfigOptions.d.ts +2 -2
  66. package/node_modules/@aws-sdk/core/dist-types/submodules/httpAuthSchemes/aws_sdk/AwsSdkSigV4Signer.d.ts +1 -1
  67. package/node_modules/@aws-sdk/core/dist-types/submodules/httpAuthSchemes/aws_sdk/NODE_AUTH_SCHEME_PREFERENCE_OPTIONS.d.ts +1 -1
  68. package/node_modules/@aws-sdk/core/dist-types/submodules/httpAuthSchemes/aws_sdk/resolveAwsSdkSigV4AConfig.d.ts +1 -1
  69. package/node_modules/@aws-sdk/core/dist-types/submodules/httpAuthSchemes/aws_sdk/resolveAwsSdkSigV4Config.d.ts +1 -1
  70. package/node_modules/@aws-sdk/core/dist-types/submodules/protocols/ProtocolLib.d.ts +1 -1
  71. package/node_modules/@aws-sdk/core/dist-types/submodules/protocols/index.d.ts +2 -0
  72. package/node_modules/@aws-sdk/core/dist-types/submodules/protocols/json/JsonShapeDeserializer.d.ts +1 -1
  73. package/node_modules/@aws-sdk/core/dist-types/submodules/protocols/query/AwsEc2QueryProtocol.d.ts +4 -0
  74. package/node_modules/@aws-sdk/core/dist-types/submodules/protocols/query/QuerySerializerSettings.d.ts +3 -0
  75. package/node_modules/@aws-sdk/core/dist-types/submodules/protocols/xml/XmlShapeSerializer.d.ts +1 -1
  76. package/node_modules/@aws-sdk/core/dist-types/ts3.4/submodules/protocols/index.d.ts +2 -0
  77. package/node_modules/@aws-sdk/core/dist-types/ts3.4/submodules/protocols/query/AwsEc2QueryProtocol.d.ts +1 -0
  78. package/node_modules/@aws-sdk/core/package.json +14 -14
  79. package/node_modules/@aws-sdk/credential-provider-env/dist-types/fromEnv.d.ts +1 -1
  80. package/node_modules/@aws-sdk/credential-provider-env/package.json +6 -6
  81. package/node_modules/@aws-sdk/credential-provider-http/dist-cjs/fromHttp/fromHttp.js +1 -1
  82. package/node_modules/@aws-sdk/credential-provider-http/dist-es/fromHttp/fromHttp.js +1 -1
  83. package/node_modules/@aws-sdk/credential-provider-http/dist-types/fromHttp/checkUrl.d.ts +1 -1
  84. package/node_modules/@aws-sdk/credential-provider-http/dist-types/fromHttp/fromHttp.browser.d.ts +1 -1
  85. package/node_modules/@aws-sdk/credential-provider-http/dist-types/fromHttp/fromHttp.d.ts +1 -1
  86. package/node_modules/@aws-sdk/credential-provider-http/dist-types/fromHttp/requestHelpers.d.ts +2 -2
  87. package/node_modules/@aws-sdk/credential-provider-http/package.json +11 -11
  88. package/node_modules/@aws-sdk/credential-provider-ini/dist-types/fromIni.d.ts +2 -2
  89. package/node_modules/@aws-sdk/credential-provider-ini/dist-types/resolveAssumeRoleCredentials.d.ts +2 -2
  90. package/node_modules/@aws-sdk/credential-provider-ini/dist-types/resolveCredentialSource.d.ts +1 -1
  91. package/node_modules/@aws-sdk/credential-provider-ini/dist-types/resolveProcessCredentials.d.ts +2 -2
  92. package/node_modules/@aws-sdk/credential-provider-ini/dist-types/resolveProfileData.d.ts +1 -1
  93. package/node_modules/@aws-sdk/credential-provider-ini/dist-types/resolveStaticCredentials.d.ts +2 -2
  94. package/node_modules/@aws-sdk/credential-provider-ini/dist-types/resolveWebIdentityCredentials.d.ts +2 -2
  95. package/node_modules/@aws-sdk/credential-provider-ini/package.json +15 -15
  96. package/node_modules/@aws-sdk/credential-provider-login/package.json +9 -9
  97. package/node_modules/@aws-sdk/credential-provider-node/package.json +13 -13
  98. package/node_modules/@aws-sdk/credential-provider-process/dist-cjs/index.js +3 -3
  99. package/node_modules/@aws-sdk/credential-provider-process/dist-es/resolveProcessCredentials.js +2 -2
  100. package/node_modules/@aws-sdk/credential-provider-process/dist-types/fromProcess.d.ts +1 -1
  101. package/node_modules/@aws-sdk/credential-provider-process/dist-types/getValidatedProcessCredentials.d.ts +2 -2
  102. package/node_modules/@aws-sdk/credential-provider-process/dist-types/resolveProcessCredentials.d.ts +1 -1
  103. package/node_modules/@aws-sdk/credential-provider-process/package.json +7 -7
  104. package/node_modules/@aws-sdk/credential-provider-sso/dist-cjs/index.js +1 -1
  105. package/node_modules/@aws-sdk/credential-provider-sso/dist-cjs/loadSso-BKDNrsal.js +8 -0
  106. package/node_modules/@aws-sdk/credential-provider-sso/dist-es/loadSso.js +1 -1
  107. package/node_modules/@aws-sdk/credential-provider-sso/dist-types/fromSSO.d.ts +1 -1
  108. package/node_modules/@aws-sdk/credential-provider-sso/dist-types/isSsoProfile.d.ts +2 -2
  109. package/node_modules/@aws-sdk/credential-provider-sso/dist-types/loadSso.d.ts +2 -2
  110. package/node_modules/@aws-sdk/credential-provider-sso/dist-types/resolveSSOCredentials.d.ts +2 -2
  111. package/node_modules/@aws-sdk/credential-provider-sso/dist-types/ts3.4/loadSso.d.ts +5 -2
  112. package/node_modules/@aws-sdk/credential-provider-sso/dist-types/types.d.ts +1 -1
  113. package/node_modules/@aws-sdk/credential-provider-sso/dist-types/validateSsoProfile.d.ts +2 -2
  114. package/node_modules/@aws-sdk/credential-provider-sso/package.json +9 -9
  115. package/node_modules/@aws-sdk/credential-provider-web-identity/dist-cjs/fromTokenFile.js +2 -2
  116. package/node_modules/@aws-sdk/credential-provider-web-identity/dist-cjs/index.js +14 -6
  117. package/node_modules/@aws-sdk/credential-provider-web-identity/dist-es/fromTokenFile.js +1 -1
  118. package/node_modules/@aws-sdk/credential-provider-web-identity/dist-types/fromTokenFile.d.ts +1 -1
  119. package/node_modules/@aws-sdk/credential-provider-web-identity/package.json +8 -8
  120. package/node_modules/@aws-sdk/middleware-host-header/dist-types/index.d.ts +1 -1
  121. package/node_modules/@aws-sdk/middleware-host-header/package.json +5 -5
  122. package/node_modules/@aws-sdk/middleware-logger/package.json +4 -4
  123. package/node_modules/@aws-sdk/middleware-recursion-detection/dist-cjs/index.js +7 -3
  124. package/node_modules/@aws-sdk/middleware-recursion-detection/dist-types/configuration.d.ts +1 -1
  125. package/node_modules/@aws-sdk/middleware-recursion-detection/dist-types/getRecursionDetectionPlugin.d.ts +1 -1
  126. package/node_modules/@aws-sdk/middleware-recursion-detection/dist-types/recursionDetectionMiddleware.browser.d.ts +1 -1
  127. package/node_modules/@aws-sdk/middleware-recursion-detection/dist-types/recursionDetectionMiddleware.d.ts +1 -1
  128. package/node_modules/@aws-sdk/middleware-recursion-detection/dist-types/recursionDetectionMiddleware.native.d.ts +1 -1
  129. package/node_modules/@aws-sdk/middleware-recursion-detection/package.json +5 -5
  130. package/node_modules/@aws-sdk/middleware-user-agent/dist-cjs/index.js +9 -9
  131. package/node_modules/@aws-sdk/middleware-user-agent/dist-es/check-features.js +9 -9
  132. package/node_modules/@aws-sdk/middleware-user-agent/dist-types/check-features.d.ts +4 -2
  133. package/node_modules/@aws-sdk/middleware-user-agent/dist-types/configurations.d.ts +1 -1
  134. package/node_modules/@aws-sdk/middleware-user-agent/dist-types/ts3.4/check-features.d.ts +3 -3
  135. package/node_modules/@aws-sdk/middleware-user-agent/dist-types/user-agent-middleware.d.ts +2 -2
  136. package/node_modules/@aws-sdk/middleware-user-agent/package.json +9 -8
  137. package/node_modules/@aws-sdk/nested-clients/cognito-identity.d.ts +7 -0
  138. package/node_modules/@aws-sdk/nested-clients/cognito-identity.js +5 -0
  139. package/node_modules/@aws-sdk/nested-clients/dist-cjs/submodules/cognito-identity/auth/httpAuthSchemeProvider.js +60 -0
  140. package/node_modules/@aws-sdk/nested-clients/dist-cjs/submodules/cognito-identity/endpoint/ruleset.js +146 -0
  141. package/node_modules/@aws-sdk/nested-clients/dist-cjs/submodules/cognito-identity/index.js +174 -0
  142. package/node_modules/@aws-sdk/nested-clients/dist-cjs/submodules/cognito-identity/models/CognitoIdentityServiceException.js +12 -0
  143. package/node_modules/@aws-sdk/nested-clients/dist-cjs/submodules/cognito-identity/models/errors.js +121 -0
  144. package/node_modules/@aws-sdk/{client-sso/dist-cjs → nested-clients/dist-cjs/submodules/cognito-identity}/runtimeConfig.browser.js +3 -2
  145. package/node_modules/@aws-sdk/{client-sso/dist-cjs → nested-clients/dist-cjs/submodules/cognito-identity}/runtimeConfig.js +5 -3
  146. package/node_modules/@aws-sdk/nested-clients/dist-cjs/submodules/cognito-identity/runtimeConfig.shared.js +50 -0
  147. package/node_modules/@aws-sdk/nested-clients/dist-cjs/submodules/cognito-identity/schemas/schemas_0.js +110 -0
  148. package/node_modules/@aws-sdk/nested-clients/dist-cjs/submodules/signin/endpoint/ruleset.js +128 -2
  149. package/node_modules/@aws-sdk/nested-clients/dist-cjs/submodules/signin/index.js +17 -18
  150. package/node_modules/@aws-sdk/{client-sso/dist-cjs → nested-clients/dist-cjs/submodules/sso}/auth/httpAuthSchemeProvider.js +8 -27
  151. package/node_modules/@aws-sdk/nested-clients/dist-cjs/submodules/sso/endpoint/endpointResolver.js +18 -0
  152. package/node_modules/@aws-sdk/nested-clients/dist-cjs/submodules/sso/endpoint/ruleset.js +106 -0
  153. package/node_modules/@aws-sdk/{client-sso/dist-cjs → nested-clients/dist-cjs/submodules/sso}/index.js +18 -71
  154. package/node_modules/@aws-sdk/nested-clients/dist-cjs/submodules/sso/runtimeConfig.browser.js +38 -0
  155. package/node_modules/@aws-sdk/nested-clients/dist-cjs/submodules/sso/runtimeConfig.js +53 -0
  156. package/node_modules/@aws-sdk/nested-clients/dist-cjs/submodules/sso/runtimeConfig.native.js +15 -0
  157. package/node_modules/@aws-sdk/nested-clients/dist-cjs/submodules/sso/schemas/schemas_0.js +90 -0
  158. package/node_modules/@aws-sdk/nested-clients/dist-cjs/submodules/sso-oidc/endpoint/ruleset.js +101 -2
  159. package/node_modules/@aws-sdk/nested-clients/dist-cjs/submodules/sso-oidc/index.js +17 -18
  160. package/node_modules/@aws-sdk/nested-clients/dist-cjs/submodules/sts/endpoint/ruleset.js +140 -2
  161. package/node_modules/@aws-sdk/nested-clients/dist-cjs/submodules/sts/index.js +23 -17
  162. package/node_modules/@aws-sdk/nested-clients/dist-es/submodules/cognito-identity/CognitoIdentity.js +11 -0
  163. package/node_modules/@aws-sdk/nested-clients/dist-es/submodules/cognito-identity/CognitoIdentityClient.js +50 -0
  164. package/node_modules/@aws-sdk/nested-clients/dist-es/submodules/cognito-identity/auth/httpAuthSchemeProvider.js +54 -0
  165. package/node_modules/@aws-sdk/{client-sso/dist-es/commands/ListAccountsCommand.js → nested-clients/dist-es/submodules/cognito-identity/commands/GetCredentialsForIdentityCommand.js} +5 -5
  166. package/node_modules/@aws-sdk/{client-sso/dist-es/commands/LogoutCommand.js → nested-clients/dist-es/submodules/cognito-identity/commands/GetIdCommand.js} +5 -5
  167. package/node_modules/@aws-sdk/nested-clients/dist-es/submodules/cognito-identity/commands/index.js +2 -0
  168. package/node_modules/@aws-sdk/nested-clients/dist-es/submodules/cognito-identity/endpoint/EndpointParameters.js +13 -0
  169. package/node_modules/@aws-sdk/nested-clients/dist-es/submodules/cognito-identity/endpoint/ruleset.js +143 -0
  170. package/node_modules/@aws-sdk/nested-clients/dist-es/submodules/cognito-identity/index.js +7 -0
  171. package/node_modules/@aws-sdk/nested-clients/dist-es/submodules/cognito-identity/models/CognitoIdentityServiceException.js +8 -0
  172. package/node_modules/@aws-sdk/nested-clients/dist-es/submodules/cognito-identity/models/errors.js +109 -0
  173. package/node_modules/@aws-sdk/{client-sso/dist-es → nested-clients/dist-es/submodules/cognito-identity}/runtimeConfig.browser.js +3 -2
  174. package/node_modules/@aws-sdk/{client-sso/dist-es → nested-clients/dist-es/submodules/cognito-identity}/runtimeConfig.js +5 -3
  175. package/node_modules/@aws-sdk/nested-clients/dist-es/submodules/cognito-identity/runtimeConfig.shared.js +46 -0
  176. package/node_modules/@aws-sdk/nested-clients/dist-es/submodules/cognito-identity/schemas/schemas_0.js +107 -0
  177. package/node_modules/@aws-sdk/nested-clients/dist-es/submodules/signin/Signin.js +1 -1
  178. package/node_modules/@aws-sdk/nested-clients/dist-es/submodules/signin/endpoint/ruleset.js +128 -2
  179. package/node_modules/@aws-sdk/nested-clients/dist-es/submodules/sso/SSO.js +9 -0
  180. package/node_modules/@aws-sdk/{client-sso/dist-es → nested-clients/dist-es/submodules/sso}/SSOClient.js +1 -1
  181. package/node_modules/@aws-sdk/nested-clients/dist-es/submodules/sso/auth/httpAuthExtensionConfiguration.js +38 -0
  182. package/node_modules/@aws-sdk/{client-sso/dist-es → nested-clients/dist-es/submodules/sso}/auth/httpAuthSchemeProvider.js +9 -28
  183. package/node_modules/@aws-sdk/nested-clients/dist-es/submodules/sso/commands/index.js +1 -0
  184. package/node_modules/@aws-sdk/nested-clients/dist-es/submodules/sso/endpoint/endpointResolver.js +14 -0
  185. package/node_modules/@aws-sdk/nested-clients/dist-es/submodules/sso/endpoint/ruleset.js +103 -0
  186. package/node_modules/@aws-sdk/{client-sso/dist-es → nested-clients/dist-es/submodules/sso}/index.js +0 -1
  187. package/node_modules/@aws-sdk/nested-clients/dist-es/submodules/sso/runtimeConfig.browser.js +33 -0
  188. package/node_modules/@aws-sdk/nested-clients/dist-es/submodules/sso/runtimeConfig.js +48 -0
  189. package/node_modules/@aws-sdk/nested-clients/dist-es/submodules/sso/runtimeConfig.native.js +11 -0
  190. package/node_modules/@aws-sdk/nested-clients/dist-es/submodules/sso/runtimeExtensions.js +9 -0
  191. package/node_modules/@aws-sdk/nested-clients/dist-es/submodules/sso/schemas/schemas_0.js +87 -0
  192. package/node_modules/@aws-sdk/nested-clients/dist-es/submodules/sso-oidc/endpoint/ruleset.js +101 -2
  193. package/node_modules/@aws-sdk/nested-clients/dist-es/submodules/sts/defaultStsRoleAssumers.js +1 -1
  194. package/node_modules/@aws-sdk/nested-clients/dist-es/submodules/sts/endpoint/ruleset.js +140 -2
  195. package/node_modules/@aws-sdk/nested-clients/dist-types/submodules/cognito-identity/CognitoIdentity.d.ts +38 -0
  196. package/node_modules/@aws-sdk/nested-clients/dist-types/submodules/cognito-identity/CognitoIdentityClient.d.ts +198 -0
  197. package/node_modules/@aws-sdk/nested-clients/dist-types/submodules/cognito-identity/auth/httpAuthExtensionConfiguration.d.ts +30 -0
  198. package/node_modules/@aws-sdk/nested-clients/dist-types/submodules/cognito-identity/auth/httpAuthSchemeProvider.d.ts +75 -0
  199. package/node_modules/@aws-sdk/nested-clients/dist-types/submodules/cognito-identity/commands/GetCredentialsForIdentityCommand.d.ts +120 -0
  200. package/node_modules/@aws-sdk/nested-clients/dist-types/submodules/cognito-identity/commands/GetIdCommand.d.ts +107 -0
  201. package/node_modules/@aws-sdk/nested-clients/dist-types/submodules/cognito-identity/commands/index.d.ts +2 -0
  202. package/node_modules/@aws-sdk/nested-clients/dist-types/submodules/cognito-identity/endpoint/ruleset.d.ts +2 -0
  203. package/node_modules/@aws-sdk/nested-clients/dist-types/submodules/cognito-identity/extensionConfiguration.d.ts +9 -0
  204. package/node_modules/@aws-sdk/nested-clients/dist-types/submodules/cognito-identity/index.d.ts +29 -0
  205. package/node_modules/@aws-sdk/nested-clients/dist-types/submodules/cognito-identity/models/CognitoIdentityServiceException.d.ts +14 -0
  206. package/node_modules/@aws-sdk/nested-clients/dist-types/submodules/cognito-identity/models/errors.d.ts +119 -0
  207. package/node_modules/@aws-sdk/nested-clients/dist-types/submodules/cognito-identity/models/models_0.d.ts +136 -0
  208. package/node_modules/@aws-sdk/nested-clients/dist-types/submodules/cognito-identity/runtimeConfig.browser.d.ts +62 -0
  209. package/node_modules/@aws-sdk/nested-clients/dist-types/submodules/cognito-identity/runtimeConfig.d.ts +62 -0
  210. package/node_modules/@aws-sdk/nested-clients/dist-types/submodules/cognito-identity/runtimeConfig.native.d.ts +61 -0
  211. package/node_modules/@aws-sdk/nested-clients/dist-types/submodules/cognito-identity/runtimeConfig.shared.d.ts +38 -0
  212. package/node_modules/@aws-sdk/nested-clients/dist-types/submodules/cognito-identity/runtimeExtensions.d.ts +17 -0
  213. package/node_modules/@aws-sdk/nested-clients/dist-types/submodules/cognito-identity/schemas/schemas_0.d.ts +25 -0
  214. package/node_modules/@aws-sdk/nested-clients/dist-types/submodules/signin/Signin.d.ts +1 -1
  215. package/node_modules/@aws-sdk/nested-clients/dist-types/submodules/signin/auth/httpAuthExtensionConfiguration.d.ts +2 -1
  216. package/node_modules/@aws-sdk/nested-clients/dist-types/submodules/signin/endpoint/ruleset.d.ts +1 -1
  217. package/node_modules/@aws-sdk/nested-clients/dist-types/submodules/signin/models/errors.d.ts +1 -1
  218. package/node_modules/@aws-sdk/nested-clients/dist-types/submodules/sso/SSO.d.ts +32 -0
  219. package/node_modules/@aws-sdk/{client-sso/dist-types → nested-clients/dist-types/submodules/sso}/SSOClient.d.ts +6 -8
  220. package/node_modules/@aws-sdk/{client-sso/dist-types → nested-clients/dist-types/submodules/sso}/auth/httpAuthExtensionConfiguration.d.ts +2 -1
  221. package/node_modules/@aws-sdk/{client-sso/dist-types → nested-clients/dist-types/submodules/sso}/auth/httpAuthSchemeProvider.d.ts +1 -1
  222. package/node_modules/@aws-sdk/{client-sso/dist-types → nested-clients/dist-types/submodules/sso}/commands/GetRoleCredentialsCommand.d.ts +3 -3
  223. package/node_modules/@aws-sdk/nested-clients/dist-types/submodules/sso/commands/index.d.ts +1 -0
  224. package/node_modules/@aws-sdk/nested-clients/dist-types/submodules/sso/endpoint/EndpointParameters.d.ts +50 -0
  225. package/node_modules/@aws-sdk/nested-clients/dist-types/submodules/sso/endpoint/endpointResolver.d.ts +8 -0
  226. package/node_modules/@aws-sdk/nested-clients/dist-types/submodules/sso/endpoint/ruleset.d.ts +2 -0
  227. package/node_modules/@aws-sdk/{client-sso/dist-types → nested-clients/dist-types/submodules/sso}/index.d.ts +0 -1
  228. package/node_modules/@aws-sdk/nested-clients/dist-types/submodules/sso/models/models_0.d.ts +61 -0
  229. package/node_modules/@aws-sdk/{client-sso/dist-types → nested-clients/dist-types/submodules/sso}/schemas/schemas_0.d.ts +0 -10
  230. package/node_modules/@aws-sdk/nested-clients/dist-types/submodules/sso-oidc/auth/httpAuthExtensionConfiguration.d.ts +2 -1
  231. package/node_modules/@aws-sdk/nested-clients/dist-types/submodules/sso-oidc/endpoint/ruleset.d.ts +1 -1
  232. package/node_modules/@aws-sdk/nested-clients/dist-types/submodules/sso-oidc/models/errors.d.ts +1 -1
  233. package/node_modules/@aws-sdk/nested-clients/dist-types/submodules/sts/auth/httpAuthExtensionConfiguration.d.ts +2 -1
  234. package/node_modules/@aws-sdk/nested-clients/dist-types/submodules/sts/defaultRoleAssumers.d.ts +3 -3
  235. package/node_modules/@aws-sdk/nested-clients/dist-types/submodules/sts/defaultStsRoleAssumers.d.ts +3 -3
  236. package/node_modules/@aws-sdk/nested-clients/dist-types/submodules/sts/endpoint/ruleset.d.ts +1 -1
  237. package/node_modules/@aws-sdk/nested-clients/dist-types/ts3.4/submodules/cognito-identity/CognitoIdentity.d.ts +38 -0
  238. package/node_modules/@aws-sdk/nested-clients/dist-types/ts3.4/submodules/cognito-identity/CognitoIdentityClient.d.ts +126 -0
  239. package/node_modules/@aws-sdk/nested-clients/dist-types/ts3.4/submodules/cognito-identity/auth/httpAuthExtensionConfiguration.d.ts +32 -0
  240. package/node_modules/@aws-sdk/nested-clients/dist-types/ts3.4/submodules/cognito-identity/auth/httpAuthSchemeProvider.d.ts +47 -0
  241. package/node_modules/@aws-sdk/nested-clients/dist-types/ts3.4/submodules/cognito-identity/commands/GetCredentialsForIdentityCommand.d.ts +51 -0
  242. package/node_modules/@aws-sdk/nested-clients/dist-types/ts3.4/submodules/cognito-identity/commands/GetIdCommand.d.ts +41 -0
  243. package/node_modules/@aws-sdk/nested-clients/dist-types/ts3.4/submodules/cognito-identity/commands/index.d.ts +2 -0
  244. package/node_modules/@aws-sdk/nested-clients/dist-types/ts3.4/submodules/cognito-identity/extensionConfiguration.d.ts +9 -0
  245. package/node_modules/@aws-sdk/nested-clients/dist-types/ts3.4/submodules/cognito-identity/index.d.ts +10 -0
  246. package/node_modules/@aws-sdk/nested-clients/dist-types/ts3.4/submodules/cognito-identity/models/CognitoIdentityServiceException.d.ts +9 -0
  247. package/node_modules/@aws-sdk/nested-clients/dist-types/ts3.4/submodules/cognito-identity/models/errors.d.ts +68 -0
  248. package/node_modules/@aws-sdk/nested-clients/dist-types/ts3.4/submodules/cognito-identity/models/models_0.d.ts +23 -0
  249. package/node_modules/@aws-sdk/nested-clients/dist-types/ts3.4/submodules/cognito-identity/runtimeConfig.browser.d.ts +122 -0
  250. package/node_modules/@aws-sdk/nested-clients/dist-types/ts3.4/submodules/cognito-identity/runtimeConfig.d.ts +117 -0
  251. package/node_modules/@aws-sdk/nested-clients/dist-types/ts3.4/submodules/cognito-identity/runtimeConfig.native.d.ts +126 -0
  252. package/node_modules/@aws-sdk/nested-clients/dist-types/ts3.4/submodules/cognito-identity/runtimeConfig.shared.d.ts +60 -0
  253. package/node_modules/@aws-sdk/nested-clients/dist-types/ts3.4/submodules/cognito-identity/runtimeExtensions.d.ts +13 -0
  254. package/node_modules/@aws-sdk/nested-clients/dist-types/ts3.4/submodules/cognito-identity/schemas/schemas_0.d.ts +24 -0
  255. package/node_modules/@aws-sdk/nested-clients/dist-types/ts3.4/submodules/signin/auth/httpAuthExtensionConfiguration.d.ts +1 -1
  256. package/node_modules/@aws-sdk/nested-clients/dist-types/ts3.4/submodules/sso/SSO.d.ts +22 -0
  257. package/node_modules/@aws-sdk/{client-sso/dist-types/ts3.4 → nested-clients/dist-types/ts3.4/submodules/sso}/SSOClient.d.ts +3 -24
  258. package/node_modules/@aws-sdk/{client-sso/dist-types/ts3.4 → nested-clients/dist-types/ts3.4/submodules/sso}/auth/httpAuthExtensionConfiguration.d.ts +1 -1
  259. package/node_modules/@aws-sdk/{client-sso/dist-types/ts3.4 → nested-clients/dist-types/ts3.4/submodules/sso}/commands/GetRoleCredentialsCommand.d.ts +5 -9
  260. package/node_modules/@aws-sdk/nested-clients/dist-types/ts3.4/submodules/sso/commands/index.d.ts +1 -0
  261. package/node_modules/@aws-sdk/nested-clients/dist-types/ts3.4/submodules/sso/endpoint/EndpointParameters.d.ts +51 -0
  262. package/node_modules/@aws-sdk/nested-clients/dist-types/ts3.4/submodules/sso/endpoint/endpointResolver.d.ts +8 -0
  263. package/node_modules/@aws-sdk/{client-sso/dist-types/ts3.4 → nested-clients/dist-types/ts3.4/submodules/sso}/index.d.ts +0 -1
  264. package/node_modules/@aws-sdk/nested-clients/dist-types/ts3.4/submodules/sso/models/models_0.d.ts +14 -0
  265. package/node_modules/@aws-sdk/{client-sso/dist-types/ts3.4 → nested-clients/dist-types/ts3.4/submodules/sso}/schemas/schemas_0.d.ts +0 -10
  266. package/node_modules/@aws-sdk/nested-clients/dist-types/ts3.4/submodules/sso-oidc/auth/httpAuthExtensionConfiguration.d.ts +1 -1
  267. package/node_modules/@aws-sdk/nested-clients/dist-types/ts3.4/submodules/sts/auth/httpAuthExtensionConfiguration.d.ts +1 -1
  268. package/node_modules/@aws-sdk/nested-clients/package.json +57 -37
  269. package/node_modules/@aws-sdk/nested-clients/sso.d.ts +7 -0
  270. package/node_modules/@aws-sdk/nested-clients/sso.js +5 -0
  271. package/node_modules/@aws-sdk/region-config-resolver/dist-cjs/index.js +12 -23
  272. package/node_modules/@aws-sdk/region-config-resolver/package.json +6 -6
  273. package/node_modules/@aws-sdk/token-providers/dist-cjs/index.js +2 -2
  274. package/node_modules/@aws-sdk/token-providers/dist-es/writeSSOTokenToFile.js +1 -1
  275. package/node_modules/@aws-sdk/token-providers/dist-types/fromSso.d.ts +2 -2
  276. package/node_modules/@aws-sdk/token-providers/dist-types/fromStatic.d.ts +1 -1
  277. package/node_modules/@aws-sdk/token-providers/dist-types/getNewSsoOidcToken.d.ts +2 -2
  278. package/node_modules/@aws-sdk/token-providers/dist-types/getSsoOidcClient.d.ts +1 -1
  279. package/node_modules/@aws-sdk/token-providers/dist-types/nodeProvider.d.ts +2 -2
  280. package/node_modules/@aws-sdk/token-providers/dist-types/validateTokenExpiry.d.ts +1 -1
  281. package/node_modules/@aws-sdk/token-providers/dist-types/writeSSOTokenToFile.d.ts +1 -1
  282. package/node_modules/@aws-sdk/token-providers/package.json +8 -8
  283. package/node_modules/@aws-sdk/types/dist-cjs/index.js +3 -12
  284. package/node_modules/@aws-sdk/types/dist-types/credentials.d.ts +3 -3
  285. package/node_modules/@aws-sdk/types/dist-types/extensions/index.d.ts +1 -1
  286. package/node_modules/@aws-sdk/types/dist-types/http.d.ts +1 -1
  287. package/node_modules/@aws-sdk/types/dist-types/identity/AnonymousIdentity.d.ts +1 -1
  288. package/node_modules/@aws-sdk/types/dist-types/identity/LoginIdentity.d.ts +1 -1
  289. package/node_modules/@aws-sdk/types/dist-types/middleware.d.ts +2 -2
  290. package/node_modules/@aws-sdk/types/dist-types/token.d.ts +2 -2
  291. package/node_modules/@aws-sdk/types/package.json +3 -3
  292. package/node_modules/@aws-sdk/util-endpoints/dist-cjs/index.js +3 -12
  293. package/node_modules/@aws-sdk/util-endpoints/dist-types/aws.d.ts +1 -1
  294. package/node_modules/@aws-sdk/util-endpoints/dist-types/lib/aws/parseArn.d.ts +1 -1
  295. package/node_modules/@aws-sdk/util-endpoints/dist-types/lib/aws/partition.d.ts +1 -1
  296. package/node_modules/@aws-sdk/util-endpoints/package.json +6 -6
  297. package/node_modules/@aws-sdk/util-locate-window/package.json +2 -2
  298. package/node_modules/@aws-sdk/util-user-agent-browser/dist-types/index.d.ts +1 -1
  299. package/node_modules/@aws-sdk/util-user-agent-browser/dist-types/index.native.d.ts +2 -2
  300. package/node_modules/@aws-sdk/util-user-agent-browser/package.json +4 -4
  301. package/node_modules/@aws-sdk/util-user-agent-node/dist-cjs/index.js +133 -6
  302. package/node_modules/@aws-sdk/util-user-agent-node/dist-es/defaultUserAgent.js +10 -3
  303. package/node_modules/@aws-sdk/util-user-agent-node/dist-es/getNodeModulesParentDirs.js +15 -0
  304. package/node_modules/@aws-sdk/util-user-agent-node/dist-es/getRuntimeUserAgentPair.js +10 -0
  305. package/node_modules/@aws-sdk/util-user-agent-node/dist-es/getSanitizedDevTypeScriptVersion.js +14 -0
  306. package/node_modules/@aws-sdk/util-user-agent-node/dist-es/getSanitizedTypeScriptVersion.js +9 -0
  307. package/node_modules/@aws-sdk/util-user-agent-node/dist-es/getTypeScriptUserAgentPair.js +75 -0
  308. package/node_modules/@aws-sdk/util-user-agent-node/dist-types/defaultUserAgent.d.ts +1 -1
  309. package/node_modules/@aws-sdk/util-user-agent-node/dist-types/getNodeModulesParentDirs.d.ts +10 -0
  310. package/node_modules/@aws-sdk/util-user-agent-node/dist-types/getRuntimeUserAgentPair.d.ts +6 -0
  311. package/node_modules/@aws-sdk/util-user-agent-node/dist-types/getSanitizedDevTypeScriptVersion.d.ts +8 -0
  312. package/node_modules/@aws-sdk/util-user-agent-node/dist-types/getSanitizedTypeScriptVersion.d.ts +8 -0
  313. package/node_modules/@aws-sdk/util-user-agent-node/dist-types/getTypeScriptUserAgentPair.d.ts +6 -0
  314. package/node_modules/@aws-sdk/util-user-agent-node/dist-types/is-crt-available.d.ts +1 -1
  315. package/node_modules/@aws-sdk/util-user-agent-node/dist-types/nodeAppIdConfigOptions.d.ts +1 -1
  316. package/node_modules/@aws-sdk/util-user-agent-node/dist-types/ts3.4/getNodeModulesParentDirs.d.ts +1 -0
  317. package/node_modules/@aws-sdk/util-user-agent-node/dist-types/ts3.4/getRuntimeUserAgentPair.d.ts +2 -0
  318. package/node_modules/@aws-sdk/util-user-agent-node/dist-types/ts3.4/getSanitizedDevTypeScriptVersion.d.ts +3 -0
  319. package/node_modules/@aws-sdk/util-user-agent-node/dist-types/ts3.4/getSanitizedTypeScriptVersion.d.ts +3 -0
  320. package/node_modules/@aws-sdk/util-user-agent-node/dist-types/ts3.4/getTypeScriptUserAgentPair.d.ts +4 -0
  321. package/node_modules/@aws-sdk/util-user-agent-node/package.json +10 -7
  322. package/node_modules/@aws-sdk/xml-builder/dist-cjs/index.js +1 -4
  323. package/node_modules/@aws-sdk/xml-builder/dist-cjs/xml-parser.js +1 -0
  324. package/node_modules/@aws-sdk/xml-builder/dist-es/xml-parser.js +1 -0
  325. package/node_modules/@aws-sdk/xml-builder/dist-types/XmlNode.d.ts +1 -1
  326. package/node_modules/@aws-sdk/xml-builder/dist-types/XmlText.d.ts +1 -1
  327. package/node_modules/@aws-sdk/xml-builder/node_modules/fast-xml-parser/CHANGELOG.md +36 -0
  328. package/node_modules/@aws-sdk/xml-builder/node_modules/fast-xml-parser/lib/fxbuilder.min.js +1 -1
  329. package/node_modules/@aws-sdk/xml-builder/node_modules/fast-xml-parser/lib/fxbuilder.min.js.map +1 -1
  330. package/node_modules/@aws-sdk/xml-builder/node_modules/fast-xml-parser/lib/fxp.cjs +1 -1
  331. package/node_modules/@aws-sdk/xml-builder/node_modules/fast-xml-parser/lib/fxp.d.cts +96 -13
  332. package/node_modules/@aws-sdk/xml-builder/node_modules/fast-xml-parser/lib/fxp.min.js +1 -1
  333. package/node_modules/@aws-sdk/xml-builder/node_modules/fast-xml-parser/lib/fxp.min.js.map +1 -1
  334. package/node_modules/@aws-sdk/xml-builder/node_modules/fast-xml-parser/lib/fxparser.min.js +1 -1
  335. package/node_modules/@aws-sdk/xml-builder/node_modules/fast-xml-parser/lib/fxparser.min.js.map +1 -1
  336. package/node_modules/@aws-sdk/xml-builder/node_modules/fast-xml-parser/lib/fxvalidator.min.js +1 -1
  337. package/node_modules/@aws-sdk/xml-builder/node_modules/fast-xml-parser/lib/fxvalidator.min.js.map +1 -1
  338. package/node_modules/@aws-sdk/xml-builder/node_modules/fast-xml-parser/package.json +6 -5
  339. package/node_modules/@aws-sdk/xml-builder/node_modules/fast-xml-parser/src/fxp.d.ts +90 -12
  340. package/node_modules/@aws-sdk/xml-builder/node_modules/fast-xml-parser/src/fxp.js +1 -1
  341. package/node_modules/@aws-sdk/xml-builder/node_modules/fast-xml-parser/src/util.js +1 -26
  342. package/node_modules/@aws-sdk/xml-builder/node_modules/fast-xml-parser/src/v6/EntitiesParser.js +89 -87
  343. package/node_modules/@aws-sdk/xml-builder/node_modules/fast-xml-parser/src/v6/OptionsBuilder.js +10 -10
  344. package/node_modules/@aws-sdk/xml-builder/node_modules/fast-xml-parser/src/v6/OutputBuilders/BaseOutputBuilder.js +23 -23
  345. package/node_modules/@aws-sdk/xml-builder/node_modules/fast-xml-parser/src/v6/OutputBuilders/JsArrBuilder.js +29 -29
  346. package/node_modules/@aws-sdk/xml-builder/node_modules/fast-xml-parser/src/v6/OutputBuilders/JsObjBuilder.js +39 -39
  347. package/node_modules/@aws-sdk/xml-builder/node_modules/fast-xml-parser/src/v6/OutputBuilders/ParserOptionsBuilder.js +17 -17
  348. package/node_modules/@aws-sdk/xml-builder/node_modules/fast-xml-parser/src/v6/XMLParser.js +22 -22
  349. package/node_modules/@aws-sdk/xml-builder/node_modules/fast-xml-parser/src/v6/valueParsers/EntitiesParser.js +85 -85
  350. package/node_modules/@aws-sdk/xml-builder/node_modules/fast-xml-parser/src/validator.js +34 -34
  351. package/node_modules/@aws-sdk/xml-builder/node_modules/fast-xml-parser/src/xmlbuilder/json2xml.js +5 -284
  352. package/node_modules/@aws-sdk/xml-builder/node_modules/fast-xml-parser/src/xmlparser/DocTypeReader.js +66 -54
  353. package/node_modules/@aws-sdk/xml-builder/node_modules/fast-xml-parser/src/xmlparser/OptionsBuilder.js +86 -44
  354. package/node_modules/@aws-sdk/xml-builder/node_modules/fast-xml-parser/src/xmlparser/OrderedObjParser.js +279 -189
  355. package/node_modules/@aws-sdk/xml-builder/node_modules/fast-xml-parser/src/xmlparser/XMLParser.js +21 -21
  356. package/node_modules/@aws-sdk/xml-builder/node_modules/fast-xml-parser/src/xmlparser/node2json.js +38 -34
  357. package/node_modules/@aws-sdk/xml-builder/node_modules/fast-xml-parser/src/xmlparser/xmlNode.js +10 -10
  358. package/node_modules/@aws-sdk/xml-builder/package.json +4 -4
  359. package/node_modules/@babel/runtime/helpers/esm/wrapAsyncGenerator.js +18 -31
  360. package/node_modules/@babel/runtime/helpers/wrapAsyncGenerator.js +18 -31
  361. package/node_modules/@babel/runtime/package.json +1 -1
  362. package/node_modules/@isaacs/cliui/node_modules/strip-ansi/index.js +5 -0
  363. package/node_modules/@isaacs/cliui/node_modules/strip-ansi/package.json +5 -5
  364. package/node_modules/@slack/logger/LICENSE +23 -0
  365. package/node_modules/@slack/logger/README.md +36 -3
  366. package/node_modules/@slack/logger/dist/index.d.ts.map +1 -1
  367. package/node_modules/@slack/logger/dist/index.js +5 -6
  368. package/node_modules/@slack/logger/dist/index.js.map +1 -1
  369. package/node_modules/@slack/logger/node_modules/@types/node/README.md +1 -1
  370. package/node_modules/@slack/logger/node_modules/@types/node/assert.d.ts +2 -2
  371. package/node_modules/@slack/logger/node_modules/@types/node/child_process.d.ts +5 -0
  372. package/node_modules/@slack/logger/node_modules/@types/node/events.d.ts +6 -13
  373. package/node_modules/@slack/logger/node_modules/@types/node/fs.d.ts +2 -0
  374. package/node_modules/@slack/logger/node_modules/@types/node/http.d.ts +22 -1
  375. package/node_modules/@slack/logger/node_modules/@types/node/inspector.d.ts +45 -0
  376. package/node_modules/@slack/logger/node_modules/@types/node/inspector.generated.d.ts +579 -404
  377. package/node_modules/@slack/logger/node_modules/@types/node/module.d.ts +0 -62
  378. package/node_modules/@slack/logger/node_modules/@types/node/net.d.ts +4 -4
  379. package/node_modules/@slack/logger/node_modules/@types/node/package.json +3 -3
  380. package/node_modules/@slack/logger/node_modules/@types/node/process.d.ts +21 -7
  381. package/node_modules/@slack/logger/node_modules/@types/node/readline.d.ts +1 -0
  382. package/node_modules/@slack/logger/node_modules/@types/node/sqlite.d.ts +128 -18
  383. package/node_modules/@slack/logger/node_modules/@types/node/stream.d.ts +15 -5
  384. package/node_modules/@slack/logger/node_modules/@types/node/test.d.ts +54 -19
  385. package/node_modules/@slack/logger/node_modules/@types/node/tls.d.ts +14 -9
  386. package/node_modules/@slack/logger/node_modules/@types/node/url.d.ts +22 -0
  387. package/node_modules/@slack/logger/node_modules/@types/node/util.d.ts +27 -2
  388. package/node_modules/@slack/logger/node_modules/@types/node/v8.d.ts +9 -4
  389. package/node_modules/@slack/logger/node_modules/@types/node/worker_threads.d.ts +2 -2
  390. package/node_modules/@slack/logger/node_modules/@types/node/zlib.d.ts +68 -4
  391. package/node_modules/@slack/logger/node_modules/undici-types/agent.d.ts +1 -1
  392. package/node_modules/@slack/logger/node_modules/undici-types/api.d.ts +2 -2
  393. package/node_modules/@slack/logger/node_modules/undici-types/balanced-pool.d.ts +2 -1
  394. package/node_modules/@slack/logger/node_modules/undici-types/cache-interceptor.d.ts +1 -0
  395. package/node_modules/@slack/logger/node_modules/undici-types/client.d.ts +1 -1
  396. package/node_modules/@slack/logger/node_modules/undici-types/connector.d.ts +2 -2
  397. package/node_modules/@slack/logger/node_modules/undici-types/diagnostics-channel.d.ts +2 -2
  398. package/node_modules/@slack/logger/node_modules/undici-types/dispatcher.d.ts +12 -12
  399. package/node_modules/@slack/logger/node_modules/undici-types/fetch.d.ts +4 -4
  400. package/node_modules/@slack/logger/node_modules/undici-types/formdata.d.ts +1 -1
  401. package/node_modules/@slack/logger/node_modules/undici-types/h2c-client.d.ts +1 -1
  402. package/node_modules/@slack/logger/node_modules/undici-types/index.d.ts +9 -1
  403. package/node_modules/@slack/logger/node_modules/undici-types/interceptors.d.ts +36 -2
  404. package/node_modules/@slack/logger/node_modules/undici-types/package.json +1 -1
  405. package/node_modules/@slack/logger/node_modules/undici-types/pool.d.ts +1 -1
  406. package/node_modules/@slack/logger/node_modules/undici-types/readable.d.ts +2 -2
  407. package/node_modules/@slack/logger/node_modules/undici-types/round-robin-pool.d.ts +41 -0
  408. package/node_modules/@slack/logger/node_modules/undici-types/websocket.d.ts +9 -9
  409. package/node_modules/@slack/logger/package.json +13 -33
  410. package/node_modules/@slack/types/package.json +2 -6
  411. package/node_modules/@slack/web-api/dist/WebClient.js +241 -266
  412. package/node_modules/@slack/web-api/dist/WebClient.js.map +1 -1
  413. package/node_modules/@slack/web-api/dist/chat-stream.js +75 -90
  414. package/node_modules/@slack/web-api/dist/chat-stream.js.map +1 -1
  415. package/node_modules/@slack/web-api/dist/file-upload.js +108 -125
  416. package/node_modules/@slack/web-api/dist/file-upload.js.map +1 -1
  417. package/node_modules/@slack/web-api/dist/methods.d.ts +11 -2
  418. package/node_modules/@slack/web-api/dist/methods.d.ts.map +1 -1
  419. package/node_modules/@slack/web-api/dist/methods.js +9 -0
  420. package/node_modules/@slack/web-api/dist/methods.js.map +1 -1
  421. package/node_modules/@slack/web-api/dist/types/request/apps.d.ts +6 -0
  422. package/node_modules/@slack/web-api/dist/types/request/apps.d.ts.map +1 -1
  423. package/node_modules/@slack/web-api/dist/types/request/index.d.ts +1 -1
  424. package/node_modules/@slack/web-api/dist/types/request/index.d.ts.map +1 -1
  425. package/node_modules/@slack/web-api/dist/types/response/AppsUserConnectionUpdateResponse.d.ts +9 -0
  426. package/node_modules/@slack/web-api/dist/types/response/AppsUserConnectionUpdateResponse.d.ts.map +1 -0
  427. package/node_modules/@slack/web-api/dist/types/response/AppsUserConnectionUpdateResponse.js +11 -0
  428. package/node_modules/@slack/web-api/dist/types/response/AppsUserConnectionUpdateResponse.js.map +1 -0
  429. package/node_modules/@slack/web-api/dist/types/response/index.d.ts +1 -0
  430. package/node_modules/@slack/web-api/dist/types/response/index.d.ts.map +1 -1
  431. package/node_modules/@slack/web-api/node_modules/@types/node/README.md +1 -1
  432. package/node_modules/@slack/web-api/node_modules/@types/node/assert.d.ts +2 -2
  433. package/node_modules/@slack/web-api/node_modules/@types/node/child_process.d.ts +5 -0
  434. package/node_modules/@slack/web-api/node_modules/@types/node/events.d.ts +6 -13
  435. package/node_modules/@slack/web-api/node_modules/@types/node/fs.d.ts +2 -0
  436. package/node_modules/@slack/web-api/node_modules/@types/node/http.d.ts +22 -1
  437. package/node_modules/@slack/web-api/node_modules/@types/node/inspector.d.ts +45 -0
  438. package/node_modules/@slack/web-api/node_modules/@types/node/inspector.generated.d.ts +579 -404
  439. package/node_modules/@slack/web-api/node_modules/@types/node/module.d.ts +0 -62
  440. package/node_modules/@slack/web-api/node_modules/@types/node/net.d.ts +4 -4
  441. package/node_modules/@slack/web-api/node_modules/@types/node/package.json +3 -3
  442. package/node_modules/@slack/web-api/node_modules/@types/node/process.d.ts +21 -7
  443. package/node_modules/@slack/web-api/node_modules/@types/node/readline.d.ts +1 -0
  444. package/node_modules/@slack/web-api/node_modules/@types/node/sqlite.d.ts +128 -18
  445. package/node_modules/@slack/web-api/node_modules/@types/node/stream.d.ts +15 -5
  446. package/node_modules/@slack/web-api/node_modules/@types/node/test.d.ts +54 -19
  447. package/node_modules/@slack/web-api/node_modules/@types/node/tls.d.ts +14 -9
  448. package/node_modules/@slack/web-api/node_modules/@types/node/url.d.ts +22 -0
  449. package/node_modules/@slack/web-api/node_modules/@types/node/util.d.ts +27 -2
  450. package/node_modules/@slack/web-api/node_modules/@types/node/v8.d.ts +9 -4
  451. package/node_modules/@slack/web-api/node_modules/@types/node/worker_threads.d.ts +2 -2
  452. package/node_modules/@slack/web-api/node_modules/@types/node/zlib.d.ts +68 -4
  453. package/node_modules/@slack/web-api/node_modules/undici-types/agent.d.ts +1 -1
  454. package/node_modules/@slack/web-api/node_modules/undici-types/api.d.ts +2 -2
  455. package/node_modules/@slack/web-api/node_modules/undici-types/balanced-pool.d.ts +2 -1
  456. package/node_modules/@slack/web-api/node_modules/undici-types/cache-interceptor.d.ts +1 -0
  457. package/node_modules/@slack/web-api/node_modules/undici-types/client.d.ts +1 -1
  458. package/node_modules/@slack/web-api/node_modules/undici-types/connector.d.ts +2 -2
  459. package/node_modules/@slack/web-api/node_modules/undici-types/diagnostics-channel.d.ts +2 -2
  460. package/node_modules/@slack/web-api/node_modules/undici-types/dispatcher.d.ts +12 -12
  461. package/node_modules/@slack/web-api/node_modules/undici-types/fetch.d.ts +4 -4
  462. package/node_modules/@slack/web-api/node_modules/undici-types/formdata.d.ts +1 -1
  463. package/node_modules/@slack/web-api/node_modules/undici-types/h2c-client.d.ts +1 -1
  464. package/node_modules/@slack/web-api/node_modules/undici-types/index.d.ts +9 -1
  465. package/node_modules/@slack/web-api/node_modules/undici-types/interceptors.d.ts +36 -2
  466. package/node_modules/@slack/web-api/node_modules/undici-types/package.json +1 -1
  467. package/node_modules/@slack/web-api/node_modules/undici-types/pool.d.ts +1 -1
  468. package/node_modules/@slack/web-api/node_modules/undici-types/readable.d.ts +2 -2
  469. package/node_modules/@slack/web-api/node_modules/undici-types/round-robin-pool.d.ts +41 -0
  470. package/node_modules/@slack/web-api/node_modules/undici-types/websocket.d.ts +9 -9
  471. package/node_modules/@slack/web-api/package.json +9 -23
  472. package/node_modules/@smithy/abort-controller/package.json +7 -7
  473. package/node_modules/@smithy/config-resolver/package.json +11 -11
  474. package/node_modules/@smithy/core/dist-cjs/index.js +2 -6
  475. package/node_modules/@smithy/core/dist-cjs/submodules/cbor/index.js +9 -9
  476. package/node_modules/@smithy/core/dist-cjs/submodules/endpoints/index.js +22 -0
  477. package/node_modules/@smithy/core/dist-cjs/submodules/event-streams/index.js +4 -1
  478. package/node_modules/@smithy/core/dist-cjs/submodules/protocols/index.js +37 -5
  479. package/node_modules/@smithy/core/dist-cjs/submodules/schema/index.js +42 -5
  480. package/node_modules/@smithy/core/dist-cjs/submodules/serde/index.js +1 -4
  481. package/node_modules/@smithy/core/dist-es/middleware-http-auth-scheme/getHttpAuthSchemePlugin.js +1 -2
  482. package/node_modules/@smithy/core/dist-es/submodules/cbor/CborCodec.js +2 -8
  483. package/node_modules/@smithy/core/dist-es/submodules/cbor/parseCborBody.js +7 -1
  484. package/node_modules/@smithy/core/dist-es/submodules/endpoints/index.js +1 -0
  485. package/node_modules/@smithy/core/dist-es/submodules/endpoints/toEndpointV1.js +17 -0
  486. package/node_modules/@smithy/core/dist-es/submodules/event-streams/EventStreamSerde.js +4 -1
  487. package/node_modules/@smithy/core/dist-es/submodules/protocols/HttpBindingProtocol.js +25 -3
  488. package/node_modules/@smithy/core/dist-es/submodules/protocols/HttpProtocol.js +10 -0
  489. package/node_modules/@smithy/core/dist-es/submodules/protocols/RpcProtocol.js +1 -1
  490. package/node_modules/@smithy/core/dist-es/submodules/protocols/resolve-path.js +1 -1
  491. package/node_modules/@smithy/core/dist-es/submodules/schema/middleware/schemaSerializationMiddleware.js +3 -2
  492. package/node_modules/@smithy/core/dist-es/submodules/schema/schemas/NormalizedSchema.js +31 -2
  493. package/node_modules/@smithy/core/dist-es/submodules/schema/schemas/translateTraits.js +5 -1
  494. package/node_modules/@smithy/core/dist-types/submodules/endpoints/index.d.ts +1 -0
  495. package/node_modules/@smithy/core/dist-types/submodules/endpoints/toEndpointV1.d.ts +6 -0
  496. package/node_modules/@smithy/core/dist-types/submodules/schema/schemas/NormalizedSchema.d.ts +11 -0
  497. package/node_modules/@smithy/core/dist-types/submodules/schema/schemas/translateTraits.d.ts +6 -0
  498. package/node_modules/@smithy/core/dist-types/ts3.4/submodules/endpoints/index.d.ts +1 -0
  499. package/node_modules/@smithy/core/dist-types/ts3.4/submodules/endpoints/toEndpointV1.d.ts +6 -0
  500. package/node_modules/@smithy/core/dist-types/ts3.4/submodules/schema/schemas/NormalizedSchema.d.ts +11 -0
  501. package/node_modules/@smithy/core/dist-types/ts3.4/submodules/schema/schemas/translateTraits.d.ts +6 -0
  502. package/node_modules/@smithy/core/endpoints.d.ts +7 -0
  503. package/node_modules/@smithy/core/endpoints.js +6 -0
  504. package/node_modules/@smithy/core/package.json +21 -12
  505. package/node_modules/@smithy/credential-provider-imds/package.json +10 -10
  506. package/node_modules/@smithy/eventstream-codec/package.json +9 -9
  507. package/node_modules/@smithy/eventstream-serde-browser/package.json +8 -8
  508. package/node_modules/@smithy/eventstream-serde-config-resolver/package.json +7 -7
  509. package/node_modules/@smithy/eventstream-serde-node/package.json +8 -8
  510. package/node_modules/@smithy/eventstream-serde-universal/package.json +9 -9
  511. package/node_modules/@smithy/fetch-http-handler/dist-cjs/index.js +21 -4
  512. package/node_modules/@smithy/fetch-http-handler/dist-es/fetch-http-handler.js +21 -4
  513. package/node_modules/@smithy/fetch-http-handler/package.json +11 -11
  514. package/node_modules/@smithy/hash-node/package.json +9 -9
  515. package/node_modules/@smithy/invalid-dependency/package.json +7 -7
  516. package/node_modules/@smithy/is-array-buffer/package.json +6 -6
  517. package/node_modules/@smithy/middleware-content-length/package.json +8 -8
  518. package/node_modules/@smithy/middleware-endpoint/dist-cjs/index.js +17 -1
  519. package/node_modules/@smithy/middleware-endpoint/dist-es/adaptors/getEndpointFromInstructions.js +9 -0
  520. package/node_modules/@smithy/middleware-endpoint/dist-es/adaptors/toEndpointV1.js +8 -1
  521. package/node_modules/@smithy/middleware-endpoint/dist-types/adaptors/toEndpointV1.d.ts +1 -0
  522. package/node_modules/@smithy/middleware-endpoint/dist-types/ts3.4/adaptors/toEndpointV1.d.ts +1 -0
  523. package/node_modules/@smithy/middleware-endpoint/package.json +9 -9
  524. package/node_modules/@smithy/middleware-retry/dist-cjs/index.js +9 -12
  525. package/node_modules/@smithy/middleware-retry/dist-es/configurations.js +9 -12
  526. package/node_modules/@smithy/middleware-retry/package.json +10 -10
  527. package/node_modules/@smithy/middleware-serde/dist-cjs/index.js +3 -2
  528. package/node_modules/@smithy/middleware-serde/dist-es/serializerMiddleware.js +3 -2
  529. package/node_modules/@smithy/middleware-serde/package.json +9 -8
  530. package/node_modules/@smithy/middleware-stack/package.json +7 -7
  531. package/node_modules/@smithy/node-config-provider/package.json +9 -9
  532. package/node_modules/@smithy/node-http-handler/dist-cjs/index.js +68 -45
  533. package/node_modules/@smithy/node-http-handler/dist-es/build-abort-error.js +19 -0
  534. package/node_modules/@smithy/node-http-handler/dist-es/node-http-handler.js +41 -35
  535. package/node_modules/@smithy/node-http-handler/dist-es/node-http2-connection-manager.js +1 -1
  536. package/node_modules/@smithy/node-http-handler/dist-es/node-http2-handler.js +4 -5
  537. package/node_modules/@smithy/node-http-handler/dist-es/readable.mock.js +1 -1
  538. package/node_modules/@smithy/node-http-handler/dist-es/server.mock.js +6 -6
  539. package/node_modules/@smithy/node-http-handler/dist-es/stream-collector/collector.js +1 -1
  540. package/node_modules/@smithy/node-http-handler/dist-es/stream-collector/readable.mock.js +1 -1
  541. package/node_modules/@smithy/node-http-handler/dist-es/write-request-body.js +1 -1
  542. package/node_modules/@smithy/node-http-handler/dist-types/build-abort-error.d.ts +10 -0
  543. package/node_modules/@smithy/node-http-handler/dist-types/get-transformed-headers.d.ts +1 -1
  544. package/node_modules/@smithy/node-http-handler/dist-types/node-http-handler.d.ts +4 -4
  545. package/node_modules/@smithy/node-http-handler/dist-types/node-http2-connection-manager.d.ts +1 -1
  546. package/node_modules/@smithy/node-http-handler/dist-types/node-http2-connection-pool.d.ts +1 -1
  547. package/node_modules/@smithy/node-http-handler/dist-types/readable.mock.d.ts +2 -2
  548. package/node_modules/@smithy/node-http-handler/dist-types/server.mock.d.ts +3 -3
  549. package/node_modules/@smithy/node-http-handler/dist-types/set-connection-timeout.d.ts +1 -1
  550. package/node_modules/@smithy/node-http-handler/dist-types/set-request-timeout.d.ts +1 -1
  551. package/node_modules/@smithy/node-http-handler/dist-types/set-socket-keep-alive.d.ts +1 -1
  552. package/node_modules/@smithy/node-http-handler/dist-types/set-socket-timeout.d.ts +1 -1
  553. package/node_modules/@smithy/node-http-handler/dist-types/stream-collector/collector.d.ts +1 -1
  554. package/node_modules/@smithy/node-http-handler/dist-types/stream-collector/readable.mock.d.ts +2 -2
  555. package/node_modules/@smithy/node-http-handler/dist-types/ts3.4/build-abort-error.d.ts +10 -0
  556. package/node_modules/@smithy/node-http-handler/dist-types/ts3.4/get-transformed-headers.d.ts +1 -1
  557. package/node_modules/@smithy/node-http-handler/dist-types/ts3.4/node-http-handler.d.ts +4 -4
  558. package/node_modules/@smithy/node-http-handler/dist-types/ts3.4/node-http2-connection-manager.d.ts +1 -1
  559. package/node_modules/@smithy/node-http-handler/dist-types/ts3.4/node-http2-connection-pool.d.ts +1 -1
  560. package/node_modules/@smithy/node-http-handler/dist-types/ts3.4/readable.mock.d.ts +2 -2
  561. package/node_modules/@smithy/node-http-handler/dist-types/ts3.4/server.mock.d.ts +3 -3
  562. package/node_modules/@smithy/node-http-handler/dist-types/ts3.4/set-connection-timeout.d.ts +1 -1
  563. package/node_modules/@smithy/node-http-handler/dist-types/ts3.4/set-request-timeout.d.ts +1 -1
  564. package/node_modules/@smithy/node-http-handler/dist-types/ts3.4/set-socket-keep-alive.d.ts +1 -1
  565. package/node_modules/@smithy/node-http-handler/dist-types/ts3.4/set-socket-timeout.d.ts +1 -1
  566. package/node_modules/@smithy/node-http-handler/dist-types/ts3.4/stream-collector/collector.d.ts +1 -1
  567. package/node_modules/@smithy/node-http-handler/dist-types/ts3.4/stream-collector/readable.mock.d.ts +2 -2
  568. package/node_modules/@smithy/node-http-handler/dist-types/ts3.4/write-request-body.d.ts +2 -2
  569. package/node_modules/@smithy/node-http-handler/dist-types/write-request-body.d.ts +2 -2
  570. package/node_modules/@smithy/node-http-handler/package.json +6 -6
  571. package/node_modules/@smithy/property-provider/package.json +7 -7
  572. package/node_modules/@smithy/protocol-http/package.json +7 -7
  573. package/node_modules/@smithy/querystring-builder/package.json +8 -8
  574. package/node_modules/@smithy/querystring-parser/package.json +7 -7
  575. package/node_modules/@smithy/service-error-classification/package.json +7 -7
  576. package/node_modules/@smithy/shared-ini-file-loader/dist-cjs/index.js +16 -14
  577. package/node_modules/@smithy/shared-ini-file-loader/package.json +7 -7
  578. package/node_modules/@smithy/signature-v4/package.json +13 -13
  579. package/node_modules/@smithy/smithy-client/dist-cjs/index.js +30 -16
  580. package/node_modules/@smithy/smithy-client/dist-es/extensions/checksum.js +20 -1
  581. package/node_modules/@smithy/smithy-client/dist-types/extensions/checksum.d.ts +9 -7
  582. package/node_modules/@smithy/smithy-client/dist-types/ts3.4/extensions/checksum.d.ts +9 -7
  583. package/node_modules/@smithy/smithy-client/package.json +11 -9
  584. package/node_modules/@smithy/types/dist-types/extensions/checksum.d.ts +1 -1
  585. package/node_modules/@smithy/types/dist-types/http.d.ts +1 -0
  586. package/node_modules/@smithy/types/dist-types/ts3.4/extensions/checksum.d.ts +1 -1
  587. package/node_modules/@smithy/types/dist-types/ts3.4/http.d.ts +1 -0
  588. package/node_modules/@smithy/types/package.json +5 -5
  589. package/node_modules/@smithy/url-parser/package.json +8 -8
  590. package/node_modules/@smithy/util-base64/dist-cjs/index.js +14 -6
  591. package/node_modules/@smithy/util-base64/package.json +8 -8
  592. package/node_modules/@smithy/util-body-length-browser/package.json +6 -6
  593. package/node_modules/@smithy/util-body-length-node/package.json +6 -6
  594. package/node_modules/@smithy/util-buffer-from/package.json +7 -7
  595. package/node_modules/@smithy/util-config-provider/package.json +6 -6
  596. package/node_modules/@smithy/util-defaults-mode-browser/dist-cjs/index.js +7 -3
  597. package/node_modules/@smithy/util-defaults-mode-browser/package.json +5 -5
  598. package/node_modules/@smithy/util-defaults-mode-node/package.json +8 -8
  599. package/node_modules/@smithy/util-endpoints/dist-cjs/index.js +1 -1
  600. package/node_modules/@smithy/util-endpoints/dist-es/lib/substring.js +1 -1
  601. package/node_modules/@smithy/util-endpoints/package.json +8 -8
  602. package/node_modules/@smithy/util-hex-encoding/package.json +6 -6
  603. package/node_modules/@smithy/util-middleware/package.json +7 -7
  604. package/node_modules/@smithy/util-retry/package.json +8 -8
  605. package/node_modules/@smithy/util-stream/dist-cjs/checksum/ChecksumStream.js +13 -2
  606. package/node_modules/@smithy/util-stream/dist-cjs/index.js +51 -29
  607. package/node_modules/@smithy/util-stream/dist-es/checksum/ChecksumStream.js +13 -2
  608. package/node_modules/@smithy/util-stream/dist-types/checksum/ChecksumStream.d.ts +1 -0
  609. package/node_modules/@smithy/util-stream/dist-types/ts3.4/checksum/ChecksumStream.d.ts +1 -0
  610. package/node_modules/@smithy/util-stream/package.json +9 -9
  611. package/node_modules/@smithy/util-uri-escape/package.json +6 -6
  612. package/node_modules/@smithy/util-utf8/package.json +7 -7
  613. package/node_modules/@smithy/util-waiter/dist-cjs/index.js +1 -1
  614. package/node_modules/@smithy/util-waiter/dist-es/poller.js +1 -1
  615. package/node_modules/@smithy/util-waiter/package.json +8 -8
  616. package/node_modules/@smithy/uuid/package.json +6 -6
  617. package/node_modules/@types/cacheable-request/node_modules/@types/node/README.md +1 -1
  618. package/node_modules/@types/cacheable-request/node_modules/@types/node/assert.d.ts +2 -2
  619. package/node_modules/@types/cacheable-request/node_modules/@types/node/child_process.d.ts +5 -0
  620. package/node_modules/@types/cacheable-request/node_modules/@types/node/events.d.ts +6 -13
  621. package/node_modules/@types/cacheable-request/node_modules/@types/node/fs.d.ts +2 -0
  622. package/node_modules/@types/cacheable-request/node_modules/@types/node/http.d.ts +22 -1
  623. package/node_modules/@types/cacheable-request/node_modules/@types/node/inspector.d.ts +45 -0
  624. package/node_modules/@types/cacheable-request/node_modules/@types/node/inspector.generated.d.ts +579 -404
  625. package/node_modules/@types/cacheable-request/node_modules/@types/node/module.d.ts +0 -62
  626. package/node_modules/@types/cacheable-request/node_modules/@types/node/net.d.ts +4 -4
  627. package/node_modules/@types/cacheable-request/node_modules/@types/node/package.json +3 -3
  628. package/node_modules/@types/cacheable-request/node_modules/@types/node/process.d.ts +21 -7
  629. package/node_modules/@types/cacheable-request/node_modules/@types/node/readline.d.ts +1 -0
  630. package/node_modules/@types/cacheable-request/node_modules/@types/node/sqlite.d.ts +128 -18
  631. package/node_modules/@types/cacheable-request/node_modules/@types/node/stream.d.ts +15 -5
  632. package/node_modules/@types/cacheable-request/node_modules/@types/node/test.d.ts +54 -19
  633. package/node_modules/@types/cacheable-request/node_modules/@types/node/tls.d.ts +14 -9
  634. package/node_modules/@types/cacheable-request/node_modules/@types/node/url.d.ts +22 -0
  635. package/node_modules/@types/cacheable-request/node_modules/@types/node/util.d.ts +27 -2
  636. package/node_modules/@types/cacheable-request/node_modules/@types/node/v8.d.ts +9 -4
  637. package/node_modules/@types/cacheable-request/node_modules/@types/node/worker_threads.d.ts +2 -2
  638. package/node_modules/@types/cacheable-request/node_modules/@types/node/zlib.d.ts +68 -4
  639. package/node_modules/@types/cacheable-request/node_modules/undici-types/agent.d.ts +1 -1
  640. package/node_modules/@types/cacheable-request/node_modules/undici-types/api.d.ts +2 -2
  641. package/node_modules/@types/cacheable-request/node_modules/undici-types/balanced-pool.d.ts +2 -1
  642. package/node_modules/@types/cacheable-request/node_modules/undici-types/cache-interceptor.d.ts +1 -0
  643. package/node_modules/@types/cacheable-request/node_modules/undici-types/client.d.ts +1 -1
  644. package/node_modules/@types/cacheable-request/node_modules/undici-types/connector.d.ts +2 -2
  645. package/node_modules/@types/cacheable-request/node_modules/undici-types/diagnostics-channel.d.ts +2 -2
  646. package/node_modules/@types/cacheable-request/node_modules/undici-types/dispatcher.d.ts +12 -12
  647. package/node_modules/@types/cacheable-request/node_modules/undici-types/fetch.d.ts +4 -4
  648. package/node_modules/@types/cacheable-request/node_modules/undici-types/formdata.d.ts +1 -1
  649. package/node_modules/@types/cacheable-request/node_modules/undici-types/h2c-client.d.ts +1 -1
  650. package/node_modules/@types/cacheable-request/node_modules/undici-types/index.d.ts +9 -1
  651. package/node_modules/@types/cacheable-request/node_modules/undici-types/interceptors.d.ts +36 -2
  652. package/node_modules/@types/cacheable-request/node_modules/undici-types/package.json +1 -1
  653. package/node_modules/@types/cacheable-request/node_modules/undici-types/pool.d.ts +1 -1
  654. package/node_modules/@types/cacheable-request/node_modules/undici-types/readable.d.ts +2 -2
  655. package/node_modules/@types/cacheable-request/node_modules/undici-types/round-robin-pool.d.ts +41 -0
  656. package/node_modules/@types/cacheable-request/node_modules/undici-types/websocket.d.ts +9 -9
  657. package/node_modules/@types/keyv/node_modules/@types/node/README.md +1 -1
  658. package/node_modules/@types/keyv/node_modules/@types/node/assert.d.ts +2 -2
  659. package/node_modules/@types/keyv/node_modules/@types/node/child_process.d.ts +5 -0
  660. package/node_modules/@types/keyv/node_modules/@types/node/events.d.ts +6 -13
  661. package/node_modules/@types/keyv/node_modules/@types/node/fs.d.ts +2 -0
  662. package/node_modules/@types/keyv/node_modules/@types/node/http.d.ts +22 -1
  663. package/node_modules/@types/keyv/node_modules/@types/node/inspector.d.ts +45 -0
  664. package/node_modules/@types/keyv/node_modules/@types/node/inspector.generated.d.ts +579 -404
  665. package/node_modules/@types/keyv/node_modules/@types/node/module.d.ts +0 -62
  666. package/node_modules/@types/keyv/node_modules/@types/node/net.d.ts +4 -4
  667. package/node_modules/@types/keyv/node_modules/@types/node/package.json +3 -3
  668. package/node_modules/@types/keyv/node_modules/@types/node/process.d.ts +21 -7
  669. package/node_modules/@types/keyv/node_modules/@types/node/readline.d.ts +1 -0
  670. package/node_modules/@types/keyv/node_modules/@types/node/sqlite.d.ts +128 -18
  671. package/node_modules/@types/keyv/node_modules/@types/node/stream.d.ts +15 -5
  672. package/node_modules/@types/keyv/node_modules/@types/node/test.d.ts +54 -19
  673. package/node_modules/@types/keyv/node_modules/@types/node/tls.d.ts +14 -9
  674. package/node_modules/@types/keyv/node_modules/@types/node/url.d.ts +22 -0
  675. package/node_modules/@types/keyv/node_modules/@types/node/util.d.ts +27 -2
  676. package/node_modules/@types/keyv/node_modules/@types/node/v8.d.ts +9 -4
  677. package/node_modules/@types/keyv/node_modules/@types/node/worker_threads.d.ts +2 -2
  678. package/node_modules/@types/keyv/node_modules/@types/node/zlib.d.ts +68 -4
  679. package/node_modules/@types/keyv/node_modules/undici-types/agent.d.ts +1 -1
  680. package/node_modules/@types/keyv/node_modules/undici-types/api.d.ts +2 -2
  681. package/node_modules/@types/keyv/node_modules/undici-types/balanced-pool.d.ts +2 -1
  682. package/node_modules/@types/keyv/node_modules/undici-types/cache-interceptor.d.ts +1 -0
  683. package/node_modules/@types/keyv/node_modules/undici-types/client.d.ts +1 -1
  684. package/node_modules/@types/keyv/node_modules/undici-types/connector.d.ts +2 -2
  685. package/node_modules/@types/keyv/node_modules/undici-types/diagnostics-channel.d.ts +2 -2
  686. package/node_modules/@types/keyv/node_modules/undici-types/dispatcher.d.ts +12 -12
  687. package/node_modules/@types/keyv/node_modules/undici-types/fetch.d.ts +4 -4
  688. package/node_modules/@types/keyv/node_modules/undici-types/formdata.d.ts +1 -1
  689. package/node_modules/@types/keyv/node_modules/undici-types/h2c-client.d.ts +1 -1
  690. package/node_modules/@types/keyv/node_modules/undici-types/index.d.ts +9 -1
  691. package/node_modules/@types/keyv/node_modules/undici-types/interceptors.d.ts +36 -2
  692. package/node_modules/@types/keyv/node_modules/undici-types/package.json +1 -1
  693. package/node_modules/@types/keyv/node_modules/undici-types/pool.d.ts +1 -1
  694. package/node_modules/@types/keyv/node_modules/undici-types/readable.d.ts +2 -2
  695. package/node_modules/@types/keyv/node_modules/undici-types/round-robin-pool.d.ts +41 -0
  696. package/node_modules/@types/keyv/node_modules/undici-types/websocket.d.ts +9 -9
  697. package/node_modules/@types/responselike/node_modules/@types/node/README.md +1 -1
  698. package/node_modules/@types/responselike/node_modules/@types/node/assert.d.ts +2 -2
  699. package/node_modules/@types/responselike/node_modules/@types/node/child_process.d.ts +5 -0
  700. package/node_modules/@types/responselike/node_modules/@types/node/events.d.ts +6 -13
  701. package/node_modules/@types/responselike/node_modules/@types/node/fs.d.ts +2 -0
  702. package/node_modules/@types/responselike/node_modules/@types/node/http.d.ts +22 -1
  703. package/node_modules/@types/responselike/node_modules/@types/node/inspector.d.ts +45 -0
  704. package/node_modules/@types/responselike/node_modules/@types/node/inspector.generated.d.ts +579 -404
  705. package/node_modules/@types/responselike/node_modules/@types/node/module.d.ts +0 -62
  706. package/node_modules/@types/responselike/node_modules/@types/node/net.d.ts +4 -4
  707. package/node_modules/@types/responselike/node_modules/@types/node/package.json +3 -3
  708. package/node_modules/@types/responselike/node_modules/@types/node/process.d.ts +21 -7
  709. package/node_modules/@types/responselike/node_modules/@types/node/readline.d.ts +1 -0
  710. package/node_modules/@types/responselike/node_modules/@types/node/sqlite.d.ts +128 -18
  711. package/node_modules/@types/responselike/node_modules/@types/node/stream.d.ts +15 -5
  712. package/node_modules/@types/responselike/node_modules/@types/node/test.d.ts +54 -19
  713. package/node_modules/@types/responselike/node_modules/@types/node/tls.d.ts +14 -9
  714. package/node_modules/@types/responselike/node_modules/@types/node/url.d.ts +22 -0
  715. package/node_modules/@types/responselike/node_modules/@types/node/util.d.ts +27 -2
  716. package/node_modules/@types/responselike/node_modules/@types/node/v8.d.ts +9 -4
  717. package/node_modules/@types/responselike/node_modules/@types/node/worker_threads.d.ts +2 -2
  718. package/node_modules/@types/responselike/node_modules/@types/node/zlib.d.ts +68 -4
  719. package/node_modules/@types/responselike/node_modules/undici-types/agent.d.ts +1 -1
  720. package/node_modules/@types/responselike/node_modules/undici-types/api.d.ts +2 -2
  721. package/node_modules/@types/responselike/node_modules/undici-types/balanced-pool.d.ts +2 -1
  722. package/node_modules/@types/responselike/node_modules/undici-types/cache-interceptor.d.ts +1 -0
  723. package/node_modules/@types/responselike/node_modules/undici-types/client.d.ts +1 -1
  724. package/node_modules/@types/responselike/node_modules/undici-types/connector.d.ts +2 -2
  725. package/node_modules/@types/responselike/node_modules/undici-types/diagnostics-channel.d.ts +2 -2
  726. package/node_modules/@types/responselike/node_modules/undici-types/dispatcher.d.ts +12 -12
  727. package/node_modules/@types/responselike/node_modules/undici-types/fetch.d.ts +4 -4
  728. package/node_modules/@types/responselike/node_modules/undici-types/formdata.d.ts +1 -1
  729. package/node_modules/@types/responselike/node_modules/undici-types/h2c-client.d.ts +1 -1
  730. package/node_modules/@types/responselike/node_modules/undici-types/index.d.ts +9 -1
  731. package/node_modules/@types/responselike/node_modules/undici-types/interceptors.d.ts +36 -2
  732. package/node_modules/@types/responselike/node_modules/undici-types/package.json +1 -1
  733. package/node_modules/@types/responselike/node_modules/undici-types/pool.d.ts +1 -1
  734. package/node_modules/@types/responselike/node_modules/undici-types/readable.d.ts +2 -2
  735. package/node_modules/@types/responselike/node_modules/undici-types/round-robin-pool.d.ts +41 -0
  736. package/node_modules/@types/responselike/node_modules/undici-types/websocket.d.ts +9 -9
  737. package/node_modules/axios/CHANGELOG.md +206 -206
  738. package/node_modules/axios/dist/axios.js +161 -51
  739. package/node_modules/axios/dist/axios.js.map +1 -1
  740. package/node_modules/axios/dist/axios.min.js +2 -2
  741. package/node_modules/axios/dist/axios.min.js.map +1 -1
  742. package/node_modules/axios/dist/browser/axios.cjs +1013 -753
  743. package/node_modules/axios/dist/browser/axios.cjs.map +1 -1
  744. package/node_modules/axios/dist/esm/axios.js +1014 -754
  745. package/node_modules/axios/dist/esm/axios.js.map +1 -1
  746. package/node_modules/axios/dist/esm/axios.min.js +2 -2
  747. package/node_modules/axios/dist/esm/axios.min.js.map +1 -1
  748. package/node_modules/axios/dist/node/axios.cjs +1675 -1347
  749. package/node_modules/axios/dist/node/axios.cjs.map +1 -1
  750. package/node_modules/axios/index.d.cts +234 -109
  751. package/node_modules/axios/index.js +3 -3
  752. package/node_modules/axios/lib/adapters/README.md +4 -5
  753. package/node_modules/axios/lib/adapters/adapters.js +18 -14
  754. package/node_modules/axios/lib/adapters/fetch.js +137 -91
  755. package/node_modules/axios/lib/adapters/http.js +604 -553
  756. package/node_modules/axios/lib/adapters/xhr.js +187 -165
  757. package/node_modules/axios/lib/axios.js +6 -6
  758. package/node_modules/axios/lib/cancel/CancelToken.js +4 -4
  759. package/node_modules/axios/lib/core/Axios.js +57 -43
  760. package/node_modules/axios/lib/core/AxiosError.js +52 -35
  761. package/node_modules/axios/lib/core/AxiosHeaders.js +54 -24
  762. package/node_modules/axios/lib/core/InterceptorManager.js +1 -1
  763. package/node_modules/axios/lib/core/dispatchRequest.js +25 -29
  764. package/node_modules/axios/lib/core/mergeConfig.js +10 -22
  765. package/node_modules/axios/lib/core/settle.js +11 -7
  766. package/node_modules/axios/lib/defaults/index.js +85 -74
  767. package/node_modules/axios/lib/defaults/transitional.js +1 -1
  768. package/node_modules/axios/lib/env/data.js +1 -1
  769. package/node_modules/axios/lib/helpers/AxiosTransformStream.js +37 -24
  770. package/node_modules/axios/lib/helpers/AxiosURLSearchParams.js +12 -8
  771. package/node_modules/axios/lib/helpers/ZlibHeaderTransformStream.js +5 -4
  772. package/node_modules/axios/lib/helpers/buildURL.js +15 -13
  773. package/node_modules/axios/lib/helpers/callbackify.js +13 -11
  774. package/node_modules/axios/lib/helpers/composeSignals.js +22 -14
  775. package/node_modules/axios/lib/helpers/cookies.js +44 -49
  776. package/node_modules/axios/lib/helpers/deprecatedMethod.js +9 -4
  777. package/node_modules/axios/lib/helpers/formDataToJSON.js +1 -1
  778. package/node_modules/axios/lib/helpers/formDataToStream.js +32 -26
  779. package/node_modules/axios/lib/helpers/fromDataURI.js +2 -2
  780. package/node_modules/axios/lib/helpers/isAbsoluteURL.js +0 -1
  781. package/node_modules/axios/lib/helpers/isAxiosError.js +1 -1
  782. package/node_modules/axios/lib/helpers/isURLSameOrigin.js +13 -11
  783. package/node_modules/axios/lib/helpers/parseHeaders.js +34 -20
  784. package/node_modules/axios/lib/helpers/parseProtocol.js +1 -1
  785. package/node_modules/axios/lib/helpers/progressEventReducer.js +22 -15
  786. package/node_modules/axios/lib/helpers/readBlob.js +4 -4
  787. package/node_modules/axios/lib/helpers/resolveConfig.js +23 -14
  788. package/node_modules/axios/lib/helpers/speedometer.js +1 -1
  789. package/node_modules/axios/lib/helpers/throttle.js +4 -4
  790. package/node_modules/axios/lib/helpers/toFormData.js +43 -25
  791. package/node_modules/axios/lib/helpers/toURLEncodedForm.js +2 -2
  792. package/node_modules/axios/lib/helpers/trackStream.js +33 -31
  793. package/node_modules/axios/lib/helpers/validator.js +16 -5
  794. package/node_modules/axios/lib/platform/browser/classes/Blob.js +2 -2
  795. package/node_modules/axios/lib/platform/browser/index.js +5 -5
  796. package/node_modules/axios/lib/platform/common/utils.js +6 -5
  797. package/node_modules/axios/lib/platform/index.js +2 -2
  798. package/node_modules/axios/lib/platform/node/index.js +9 -10
  799. package/node_modules/axios/lib/utils.js +149 -93
  800. package/node_modules/axios/package.json +10 -4
  801. package/node_modules/editorconfig/lib/cli.js +18 -8
  802. package/node_modules/editorconfig/lib/index.d.ts +0 -1
  803. package/node_modules/editorconfig/lib/index.js +24 -15
  804. package/node_modules/editorconfig/node_modules/minimatch/README.md +39 -2
  805. package/node_modules/editorconfig/node_modules/minimatch/dist/commonjs/assert-valid-pattern.js.map +1 -0
  806. package/node_modules/editorconfig/node_modules/minimatch/dist/{cjs → commonjs}/ast.d.ts +2 -6
  807. package/node_modules/editorconfig/node_modules/minimatch/dist/{cjs → commonjs}/ast.d.ts.map +1 -1
  808. package/node_modules/editorconfig/node_modules/minimatch/dist/{cjs → commonjs}/ast.js +229 -48
  809. package/node_modules/editorconfig/node_modules/minimatch/dist/commonjs/ast.js.map +1 -0
  810. package/node_modules/editorconfig/node_modules/minimatch/dist/{cjs → commonjs}/brace-expressions.d.ts.map +1 -1
  811. package/node_modules/editorconfig/node_modules/minimatch/dist/commonjs/brace-expressions.js.map +1 -0
  812. package/node_modules/editorconfig/node_modules/minimatch/dist/{cjs → commonjs}/escape.d.ts +1 -1
  813. package/node_modules/editorconfig/node_modules/minimatch/dist/commonjs/escape.d.ts.map +1 -0
  814. package/node_modules/editorconfig/node_modules/minimatch/dist/{mjs → commonjs}/index.d.ts +4 -0
  815. package/node_modules/editorconfig/node_modules/minimatch/dist/commonjs/index.d.ts.map +1 -0
  816. package/node_modules/editorconfig/node_modules/minimatch/dist/{cjs → commonjs}/index.js +135 -123
  817. package/node_modules/editorconfig/node_modules/minimatch/dist/commonjs/index.js.map +1 -0
  818. package/node_modules/editorconfig/node_modules/minimatch/dist/{mjs → commonjs}/unescape.d.ts +1 -1
  819. package/node_modules/editorconfig/node_modules/minimatch/dist/{cjs → commonjs}/unescape.d.ts.map +1 -1
  820. package/node_modules/editorconfig/node_modules/minimatch/dist/esm/assert-valid-pattern.js.map +1 -0
  821. package/node_modules/editorconfig/node_modules/minimatch/dist/{mjs → esm}/ast.d.ts +2 -6
  822. package/node_modules/editorconfig/node_modules/minimatch/dist/{mjs → esm}/ast.d.ts.map +1 -1
  823. package/node_modules/editorconfig/node_modules/minimatch/dist/{mjs → esm}/ast.js +229 -48
  824. package/node_modules/editorconfig/node_modules/minimatch/dist/esm/ast.js.map +1 -0
  825. package/node_modules/editorconfig/node_modules/minimatch/dist/{mjs → esm}/brace-expressions.d.ts.map +1 -1
  826. package/node_modules/editorconfig/node_modules/minimatch/dist/esm/brace-expressions.js.map +1 -0
  827. package/node_modules/editorconfig/node_modules/minimatch/dist/{mjs → esm}/escape.d.ts +1 -1
  828. package/node_modules/editorconfig/node_modules/minimatch/dist/esm/escape.d.ts.map +1 -0
  829. package/node_modules/editorconfig/node_modules/minimatch/dist/{cjs → esm}/index.d.ts +4 -0
  830. package/node_modules/editorconfig/node_modules/minimatch/dist/esm/index.d.ts.map +1 -0
  831. package/node_modules/editorconfig/node_modules/minimatch/dist/{mjs → esm}/index.js +135 -123
  832. package/node_modules/editorconfig/node_modules/minimatch/dist/esm/index.js.map +1 -0
  833. package/node_modules/editorconfig/node_modules/minimatch/dist/{cjs → esm}/unescape.d.ts +1 -1
  834. package/node_modules/editorconfig/node_modules/minimatch/dist/{mjs → esm}/unescape.d.ts.map +1 -1
  835. package/node_modules/editorconfig/node_modules/minimatch/package.json +31 -35
  836. package/node_modules/editorconfig/package.json +4 -30
  837. package/node_modules/fast-xml-builder/CHANGELOG.md +16 -0
  838. package/node_modules/fast-xml-builder/LICENSE +21 -0
  839. package/node_modules/fast-xml-builder/README.md +23 -0
  840. package/node_modules/fast-xml-builder/lib/fxb.cjs +1 -0
  841. package/node_modules/fast-xml-builder/lib/fxb.d.cts +180 -0
  842. package/node_modules/fast-xml-builder/lib/fxb.min.js +2 -0
  843. package/node_modules/fast-xml-builder/lib/fxb.min.js.map +1 -0
  844. package/node_modules/fast-xml-builder/package.json +80 -0
  845. package/node_modules/fast-xml-builder/src/fxb.d.ts +180 -0
  846. package/node_modules/fast-xml-builder/src/fxb.js +529 -0
  847. package/node_modules/fast-xml-builder/src/ignoreAttributes.js +18 -0
  848. package/node_modules/fast-xml-builder/src/orderedJs2Xml.js +292 -0
  849. package/node_modules/js-beautify/node_modules/brace-expansion/.github/FUNDING.yml +2 -0
  850. package/node_modules/js-beautify/node_modules/brace-expansion/LICENSE +21 -0
  851. package/node_modules/js-beautify/node_modules/brace-expansion/README.md +135 -0
  852. package/node_modules/js-beautify/node_modules/brace-expansion/index.js +203 -0
  853. package/node_modules/js-beautify/node_modules/brace-expansion/package.json +49 -0
  854. package/node_modules/js-beautify/node_modules/minimatch/README.md +37 -0
  855. package/node_modules/js-beautify/node_modules/minimatch/dist/commonjs/assert-valid-pattern.js.map +1 -1
  856. package/node_modules/js-beautify/node_modules/minimatch/dist/commonjs/ast.d.ts.map +1 -1
  857. package/node_modules/js-beautify/node_modules/minimatch/dist/commonjs/ast.js +179 -24
  858. package/node_modules/js-beautify/node_modules/minimatch/dist/commonjs/ast.js.map +1 -1
  859. package/node_modules/js-beautify/node_modules/minimatch/dist/commonjs/brace-expressions.d.ts.map +1 -1
  860. package/node_modules/js-beautify/node_modules/minimatch/dist/commonjs/brace-expressions.js.map +1 -1
  861. package/node_modules/js-beautify/node_modules/minimatch/dist/commonjs/escape.d.ts +1 -1
  862. package/node_modules/js-beautify/node_modules/minimatch/dist/commonjs/escape.d.ts.map +1 -1
  863. package/node_modules/js-beautify/node_modules/minimatch/dist/commonjs/index.d.ts +4 -0
  864. package/node_modules/js-beautify/node_modules/minimatch/dist/commonjs/index.d.ts.map +1 -1
  865. package/node_modules/js-beautify/node_modules/minimatch/dist/commonjs/index.js +124 -118
  866. package/node_modules/js-beautify/node_modules/minimatch/dist/commonjs/index.js.map +1 -1
  867. package/node_modules/js-beautify/node_modules/minimatch/dist/commonjs/unescape.d.ts +1 -1
  868. package/node_modules/js-beautify/node_modules/minimatch/dist/commonjs/unescape.d.ts.map +1 -1
  869. package/node_modules/js-beautify/node_modules/minimatch/dist/esm/assert-valid-pattern.js.map +1 -1
  870. package/node_modules/js-beautify/node_modules/minimatch/dist/esm/ast.d.ts.map +1 -1
  871. package/node_modules/js-beautify/node_modules/minimatch/dist/esm/ast.js +179 -24
  872. package/node_modules/js-beautify/node_modules/minimatch/dist/esm/ast.js.map +1 -1
  873. package/node_modules/js-beautify/node_modules/minimatch/dist/esm/brace-expressions.d.ts.map +1 -1
  874. package/node_modules/js-beautify/node_modules/minimatch/dist/esm/brace-expressions.js.map +1 -1
  875. package/node_modules/js-beautify/node_modules/minimatch/dist/esm/escape.d.ts +1 -1
  876. package/node_modules/js-beautify/node_modules/minimatch/dist/esm/escape.d.ts.map +1 -1
  877. package/node_modules/js-beautify/node_modules/minimatch/dist/esm/index.d.ts +4 -0
  878. package/node_modules/js-beautify/node_modules/minimatch/dist/esm/index.d.ts.map +1 -1
  879. package/node_modules/js-beautify/node_modules/minimatch/dist/esm/index.js +124 -118
  880. package/node_modules/js-beautify/node_modules/minimatch/dist/esm/index.js.map +1 -1
  881. package/node_modules/js-beautify/node_modules/minimatch/dist/esm/unescape.d.ts +1 -1
  882. package/node_modules/js-beautify/node_modules/minimatch/dist/esm/unescape.d.ts.map +1 -1
  883. package/node_modules/js-beautify/node_modules/minimatch/package.json +14 -14
  884. package/node_modules/minipass/LICENSE.md +55 -0
  885. package/node_modules/minipass/dist/commonjs/index.d.ts +12 -16
  886. package/node_modules/minipass/dist/commonjs/index.d.ts.map +1 -1
  887. package/node_modules/minipass/dist/commonjs/index.js +13 -3
  888. package/node_modules/minipass/dist/commonjs/index.js.map +1 -1
  889. package/node_modules/minipass/dist/esm/index.d.ts +12 -16
  890. package/node_modules/minipass/dist/esm/index.d.ts.map +1 -1
  891. package/node_modules/minipass/dist/esm/index.js +3 -1
  892. package/node_modules/minipass/dist/esm/index.js.map +1 -1
  893. package/node_modules/minipass/package.json +9 -14
  894. package/node_modules/mjml-cli/node_modules/brace-expansion/.github/FUNDING.yml +2 -0
  895. package/node_modules/mjml-cli/node_modules/brace-expansion/LICENSE +21 -0
  896. package/node_modules/mjml-cli/node_modules/brace-expansion/README.md +135 -0
  897. package/node_modules/mjml-cli/node_modules/brace-expansion/index.js +203 -0
  898. package/node_modules/mjml-cli/node_modules/brace-expansion/package.json +49 -0
  899. package/node_modules/mjml-cli/node_modules/minimatch/README.md +37 -0
  900. package/node_modules/mjml-cli/node_modules/minimatch/dist/commonjs/assert-valid-pattern.js.map +1 -1
  901. package/node_modules/mjml-cli/node_modules/minimatch/dist/commonjs/ast.d.ts.map +1 -1
  902. package/node_modules/mjml-cli/node_modules/minimatch/dist/commonjs/ast.js +179 -24
  903. package/node_modules/mjml-cli/node_modules/minimatch/dist/commonjs/ast.js.map +1 -1
  904. package/node_modules/mjml-cli/node_modules/minimatch/dist/commonjs/brace-expressions.d.ts.map +1 -1
  905. package/node_modules/mjml-cli/node_modules/minimatch/dist/commonjs/brace-expressions.js.map +1 -1
  906. package/node_modules/mjml-cli/node_modules/minimatch/dist/commonjs/escape.d.ts +1 -1
  907. package/node_modules/mjml-cli/node_modules/minimatch/dist/commonjs/escape.d.ts.map +1 -1
  908. package/node_modules/mjml-cli/node_modules/minimatch/dist/commonjs/index.d.ts +4 -0
  909. package/node_modules/mjml-cli/node_modules/minimatch/dist/commonjs/index.d.ts.map +1 -1
  910. package/node_modules/mjml-cli/node_modules/minimatch/dist/commonjs/index.js +124 -118
  911. package/node_modules/mjml-cli/node_modules/minimatch/dist/commonjs/index.js.map +1 -1
  912. package/node_modules/mjml-cli/node_modules/minimatch/dist/commonjs/unescape.d.ts +1 -1
  913. package/node_modules/mjml-cli/node_modules/minimatch/dist/commonjs/unescape.d.ts.map +1 -1
  914. package/node_modules/mjml-cli/node_modules/minimatch/dist/esm/assert-valid-pattern.js.map +1 -1
  915. package/node_modules/mjml-cli/node_modules/minimatch/dist/esm/ast.d.ts.map +1 -1
  916. package/node_modules/mjml-cli/node_modules/minimatch/dist/esm/ast.js +179 -24
  917. package/node_modules/mjml-cli/node_modules/minimatch/dist/esm/ast.js.map +1 -1
  918. package/node_modules/mjml-cli/node_modules/minimatch/dist/esm/brace-expressions.d.ts.map +1 -1
  919. package/node_modules/mjml-cli/node_modules/minimatch/dist/esm/brace-expressions.js.map +1 -1
  920. package/node_modules/mjml-cli/node_modules/minimatch/dist/esm/escape.d.ts +1 -1
  921. package/node_modules/mjml-cli/node_modules/minimatch/dist/esm/escape.d.ts.map +1 -1
  922. package/node_modules/mjml-cli/node_modules/minimatch/dist/esm/index.d.ts +4 -0
  923. package/node_modules/mjml-cli/node_modules/minimatch/dist/esm/index.d.ts.map +1 -1
  924. package/node_modules/mjml-cli/node_modules/minimatch/dist/esm/index.js +124 -118
  925. package/node_modules/mjml-cli/node_modules/minimatch/dist/esm/index.js.map +1 -1
  926. package/node_modules/mjml-cli/node_modules/minimatch/dist/esm/unescape.d.ts +1 -1
  927. package/node_modules/mjml-cli/node_modules/minimatch/dist/esm/unescape.d.ts.map +1 -1
  928. package/node_modules/mjml-cli/node_modules/minimatch/package.json +14 -14
  929. package/node_modules/path-expression-matcher/LICENSE +21 -0
  930. package/node_modules/path-expression-matcher/README.md +635 -0
  931. package/node_modules/path-expression-matcher/lib/pem.cjs +1 -0
  932. package/node_modules/path-expression-matcher/lib/pem.d.cts +335 -0
  933. package/node_modules/path-expression-matcher/lib/pem.min.js +2 -0
  934. package/node_modules/path-expression-matcher/lib/pem.min.js.map +1 -0
  935. package/node_modules/path-expression-matcher/package.json +78 -0
  936. package/node_modules/path-expression-matcher/src/Expression.js +232 -0
  937. package/node_modules/path-expression-matcher/src/Matcher.js +414 -0
  938. package/node_modules/path-expression-matcher/src/index.d.ts +366 -0
  939. package/node_modules/path-expression-matcher/src/index.js +28 -0
  940. package/node_modules/pump/empty.js +1 -0
  941. package/node_modules/pump/package.json +7 -1
  942. package/node_modules/strnum/README.md +1 -0
  943. package/node_modules/strnum/package.json +3 -3
  944. package/node_modules/strnum/strnum.js +85 -59
  945. package/node_modules/strnum/tests/infinity_test.js +18 -0
  946. package/node_modules/strnum/{strnum.test.js → tests/strnum_test.js} +67 -68
  947. package/package.json +22 -22
  948. package/node_modules/@aws-sdk/client-sso/LICENSE +0 -201
  949. package/node_modules/@aws-sdk/client-sso/README.md +0 -244
  950. package/node_modules/@aws-sdk/client-sso/dist-cjs/endpoint/ruleset.js +0 -7
  951. package/node_modules/@aws-sdk/client-sso/dist-cjs/schemas/schemas_0.js +0 -161
  952. package/node_modules/@aws-sdk/client-sso/dist-es/SSO.js +0 -21
  953. package/node_modules/@aws-sdk/client-sso/dist-es/commands/ListAccountRolesCommand.js +0 -16
  954. package/node_modules/@aws-sdk/client-sso/dist-es/commands/index.js +0 -4
  955. package/node_modules/@aws-sdk/client-sso/dist-es/endpoint/ruleset.js +0 -4
  956. package/node_modules/@aws-sdk/client-sso/dist-es/pagination/ListAccountRolesPaginator.js +0 -4
  957. package/node_modules/@aws-sdk/client-sso/dist-es/pagination/ListAccountsPaginator.js +0 -4
  958. package/node_modules/@aws-sdk/client-sso/dist-es/pagination/index.js +0 -3
  959. package/node_modules/@aws-sdk/client-sso/dist-es/schemas/schemas_0.js +0 -158
  960. package/node_modules/@aws-sdk/client-sso/dist-types/SSO.d.ts +0 -67
  961. package/node_modules/@aws-sdk/client-sso/dist-types/commands/ListAccountRolesCommand.d.ts +0 -98
  962. package/node_modules/@aws-sdk/client-sso/dist-types/commands/ListAccountsCommand.d.ts +0 -100
  963. package/node_modules/@aws-sdk/client-sso/dist-types/commands/LogoutCommand.d.ts +0 -97
  964. package/node_modules/@aws-sdk/client-sso/dist-types/commands/index.d.ts +0 -4
  965. package/node_modules/@aws-sdk/client-sso/dist-types/models/models_0.d.ts +0 -189
  966. package/node_modules/@aws-sdk/client-sso/dist-types/pagination/Interfaces.d.ts +0 -8
  967. package/node_modules/@aws-sdk/client-sso/dist-types/pagination/ListAccountRolesPaginator.d.ts +0 -7
  968. package/node_modules/@aws-sdk/client-sso/dist-types/pagination/ListAccountsPaginator.d.ts +0 -7
  969. package/node_modules/@aws-sdk/client-sso/dist-types/pagination/index.d.ts +0 -3
  970. package/node_modules/@aws-sdk/client-sso/dist-types/ts3.4/SSO.d.ts +0 -91
  971. package/node_modules/@aws-sdk/client-sso/dist-types/ts3.4/commands/ListAccountRolesCommand.d.ts +0 -50
  972. package/node_modules/@aws-sdk/client-sso/dist-types/ts3.4/commands/ListAccountsCommand.d.ts +0 -47
  973. package/node_modules/@aws-sdk/client-sso/dist-types/ts3.4/commands/LogoutCommand.d.ts +0 -41
  974. package/node_modules/@aws-sdk/client-sso/dist-types/ts3.4/commands/index.d.ts +0 -4
  975. package/node_modules/@aws-sdk/client-sso/dist-types/ts3.4/models/models_0.d.ts +0 -45
  976. package/node_modules/@aws-sdk/client-sso/dist-types/ts3.4/pagination/Interfaces.d.ts +0 -5
  977. package/node_modules/@aws-sdk/client-sso/dist-types/ts3.4/pagination/ListAccountRolesPaginator.d.ts +0 -11
  978. package/node_modules/@aws-sdk/client-sso/dist-types/ts3.4/pagination/ListAccountsPaginator.d.ts +0 -11
  979. package/node_modules/@aws-sdk/client-sso/dist-types/ts3.4/pagination/index.d.ts +0 -3
  980. package/node_modules/@aws-sdk/client-sso/node_modules/@aws-sdk/util-endpoints/LICENSE +0 -201
  981. package/node_modules/@aws-sdk/client-sso/node_modules/@aws-sdk/util-endpoints/README.md +0 -6
  982. package/node_modules/@aws-sdk/client-sso/node_modules/@aws-sdk/util-endpoints/dist-cjs/index.js +0 -415
  983. package/node_modules/@aws-sdk/client-sso/node_modules/@aws-sdk/util-endpoints/dist-cjs/lib/aws/partitions.json +0 -267
  984. package/node_modules/@aws-sdk/client-sso/node_modules/@aws-sdk/util-endpoints/dist-es/aws.js +0 -10
  985. package/node_modules/@aws-sdk/client-sso/node_modules/@aws-sdk/util-endpoints/dist-es/index.js +0 -6
  986. package/node_modules/@aws-sdk/client-sso/node_modules/@aws-sdk/util-endpoints/dist-es/lib/aws/index.js +0 -3
  987. package/node_modules/@aws-sdk/client-sso/node_modules/@aws-sdk/util-endpoints/dist-es/lib/aws/isVirtualHostableS3Bucket.js +0 -25
  988. package/node_modules/@aws-sdk/client-sso/node_modules/@aws-sdk/util-endpoints/dist-es/lib/aws/parseArn.js +0 -18
  989. package/node_modules/@aws-sdk/client-sso/node_modules/@aws-sdk/util-endpoints/dist-es/lib/aws/partition.js +0 -41
  990. package/node_modules/@aws-sdk/client-sso/node_modules/@aws-sdk/util-endpoints/dist-es/lib/aws/partitions.json +0 -267
  991. package/node_modules/@aws-sdk/client-sso/node_modules/@aws-sdk/util-endpoints/dist-es/lib/isIpAddress.js +0 -1
  992. package/node_modules/@aws-sdk/client-sso/node_modules/@aws-sdk/util-endpoints/dist-es/resolveDefaultAwsRegionalEndpointsConfig.js +0 -21
  993. package/node_modules/@aws-sdk/client-sso/node_modules/@aws-sdk/util-endpoints/dist-es/resolveEndpoint.js +0 -1
  994. package/node_modules/@aws-sdk/client-sso/node_modules/@aws-sdk/util-endpoints/dist-es/types/EndpointError.js +0 -1
  995. package/node_modules/@aws-sdk/client-sso/node_modules/@aws-sdk/util-endpoints/dist-es/types/ErrorRuleObject.js +0 -1
  996. package/node_modules/@aws-sdk/client-sso/node_modules/@aws-sdk/util-endpoints/dist-es/types/RuleSetObject.js +0 -1
  997. package/node_modules/@aws-sdk/client-sso/node_modules/@aws-sdk/util-endpoints/dist-es/types/TreeRuleObject.js +0 -1
  998. package/node_modules/@aws-sdk/client-sso/node_modules/@aws-sdk/util-endpoints/dist-es/types/index.js +0 -6
  999. package/node_modules/@aws-sdk/client-sso/node_modules/@aws-sdk/util-endpoints/dist-es/types/shared.js +0 -1
  1000. package/node_modules/@aws-sdk/client-sso/node_modules/@aws-sdk/util-endpoints/dist-types/aws.d.ts +0 -2
  1001. package/node_modules/@aws-sdk/client-sso/node_modules/@aws-sdk/util-endpoints/dist-types/index.d.ts +0 -6
  1002. package/node_modules/@aws-sdk/client-sso/node_modules/@aws-sdk/util-endpoints/dist-types/lib/aws/index.d.ts +0 -3
  1003. package/node_modules/@aws-sdk/client-sso/node_modules/@aws-sdk/util-endpoints/dist-types/lib/aws/isVirtualHostableS3Bucket.d.ts +0 -5
  1004. package/node_modules/@aws-sdk/client-sso/node_modules/@aws-sdk/util-endpoints/dist-types/lib/aws/parseArn.d.ts +0 -7
  1005. package/node_modules/@aws-sdk/client-sso/node_modules/@aws-sdk/util-endpoints/dist-types/lib/aws/partition.d.ts +0 -38
  1006. package/node_modules/@aws-sdk/client-sso/node_modules/@aws-sdk/util-endpoints/dist-types/lib/isIpAddress.d.ts +0 -1
  1007. package/node_modules/@aws-sdk/client-sso/node_modules/@aws-sdk/util-endpoints/dist-types/resolveDefaultAwsRegionalEndpointsConfig.d.ts +0 -56
  1008. package/node_modules/@aws-sdk/client-sso/node_modules/@aws-sdk/util-endpoints/dist-types/resolveEndpoint.d.ts +0 -1
  1009. package/node_modules/@aws-sdk/client-sso/node_modules/@aws-sdk/util-endpoints/dist-types/ts3.4/aws.d.ts +0 -2
  1010. package/node_modules/@aws-sdk/client-sso/node_modules/@aws-sdk/util-endpoints/dist-types/ts3.4/index.d.ts +0 -6
  1011. package/node_modules/@aws-sdk/client-sso/node_modules/@aws-sdk/util-endpoints/dist-types/ts3.4/lib/aws/index.d.ts +0 -3
  1012. package/node_modules/@aws-sdk/client-sso/node_modules/@aws-sdk/util-endpoints/dist-types/ts3.4/lib/aws/isVirtualHostableS3Bucket.d.ts +0 -4
  1013. package/node_modules/@aws-sdk/client-sso/node_modules/@aws-sdk/util-endpoints/dist-types/ts3.4/lib/aws/parseArn.d.ts +0 -2
  1014. package/node_modules/@aws-sdk/client-sso/node_modules/@aws-sdk/util-endpoints/dist-types/ts3.4/lib/aws/partition.d.ts +0 -28
  1015. package/node_modules/@aws-sdk/client-sso/node_modules/@aws-sdk/util-endpoints/dist-types/ts3.4/lib/isIpAddress.d.ts +0 -1
  1016. package/node_modules/@aws-sdk/client-sso/node_modules/@aws-sdk/util-endpoints/dist-types/ts3.4/resolveDefaultAwsRegionalEndpointsConfig.d.ts +0 -35
  1017. package/node_modules/@aws-sdk/client-sso/node_modules/@aws-sdk/util-endpoints/dist-types/ts3.4/resolveEndpoint.d.ts +0 -1
  1018. package/node_modules/@aws-sdk/client-sso/node_modules/@aws-sdk/util-endpoints/dist-types/ts3.4/types/EndpointError.d.ts +0 -1
  1019. package/node_modules/@aws-sdk/client-sso/node_modules/@aws-sdk/util-endpoints/dist-types/ts3.4/types/EndpointRuleObject.d.ts +0 -6
  1020. package/node_modules/@aws-sdk/client-sso/node_modules/@aws-sdk/util-endpoints/dist-types/ts3.4/types/ErrorRuleObject.d.ts +0 -1
  1021. package/node_modules/@aws-sdk/client-sso/node_modules/@aws-sdk/util-endpoints/dist-types/ts3.4/types/RuleSetObject.d.ts +0 -5
  1022. package/node_modules/@aws-sdk/client-sso/node_modules/@aws-sdk/util-endpoints/dist-types/ts3.4/types/TreeRuleObject.d.ts +0 -1
  1023. package/node_modules/@aws-sdk/client-sso/node_modules/@aws-sdk/util-endpoints/dist-types/ts3.4/types/index.d.ts +0 -6
  1024. package/node_modules/@aws-sdk/client-sso/node_modules/@aws-sdk/util-endpoints/dist-types/ts3.4/types/shared.d.ts +0 -12
  1025. package/node_modules/@aws-sdk/client-sso/node_modules/@aws-sdk/util-endpoints/dist-types/types/EndpointError.d.ts +0 -1
  1026. package/node_modules/@aws-sdk/client-sso/node_modules/@aws-sdk/util-endpoints/dist-types/types/EndpointRuleObject.d.ts +0 -1
  1027. package/node_modules/@aws-sdk/client-sso/node_modules/@aws-sdk/util-endpoints/dist-types/types/ErrorRuleObject.d.ts +0 -1
  1028. package/node_modules/@aws-sdk/client-sso/node_modules/@aws-sdk/util-endpoints/dist-types/types/RuleSetObject.d.ts +0 -1
  1029. package/node_modules/@aws-sdk/client-sso/node_modules/@aws-sdk/util-endpoints/dist-types/types/TreeRuleObject.d.ts +0 -1
  1030. package/node_modules/@aws-sdk/client-sso/node_modules/@aws-sdk/util-endpoints/dist-types/types/index.d.ts +0 -6
  1031. package/node_modules/@aws-sdk/client-sso/node_modules/@aws-sdk/util-endpoints/dist-types/types/shared.d.ts +0 -1
  1032. package/node_modules/@aws-sdk/client-sso/node_modules/@aws-sdk/util-endpoints/package.json +0 -60
  1033. package/node_modules/@aws-sdk/client-sso/package.json +0 -99
  1034. package/node_modules/@aws-sdk/credential-provider-sso/dist-cjs/loadSso-CVy8iqsZ.js +0 -14
  1035. package/node_modules/@aws-sdk/middleware-user-agent/node_modules/@aws-sdk/util-endpoints/LICENSE +0 -201
  1036. package/node_modules/@aws-sdk/middleware-user-agent/node_modules/@aws-sdk/util-endpoints/README.md +0 -6
  1037. package/node_modules/@aws-sdk/middleware-user-agent/node_modules/@aws-sdk/util-endpoints/dist-cjs/index.js +0 -415
  1038. package/node_modules/@aws-sdk/middleware-user-agent/node_modules/@aws-sdk/util-endpoints/dist-cjs/lib/aws/partitions.json +0 -267
  1039. package/node_modules/@aws-sdk/middleware-user-agent/node_modules/@aws-sdk/util-endpoints/dist-es/aws.js +0 -10
  1040. package/node_modules/@aws-sdk/middleware-user-agent/node_modules/@aws-sdk/util-endpoints/dist-es/index.js +0 -6
  1041. package/node_modules/@aws-sdk/middleware-user-agent/node_modules/@aws-sdk/util-endpoints/dist-es/lib/aws/index.js +0 -3
  1042. package/node_modules/@aws-sdk/middleware-user-agent/node_modules/@aws-sdk/util-endpoints/dist-es/lib/aws/isVirtualHostableS3Bucket.js +0 -25
  1043. package/node_modules/@aws-sdk/middleware-user-agent/node_modules/@aws-sdk/util-endpoints/dist-es/lib/aws/parseArn.js +0 -18
  1044. package/node_modules/@aws-sdk/middleware-user-agent/node_modules/@aws-sdk/util-endpoints/dist-es/lib/aws/partition.js +0 -41
  1045. package/node_modules/@aws-sdk/middleware-user-agent/node_modules/@aws-sdk/util-endpoints/dist-es/lib/aws/partitions.json +0 -267
  1046. package/node_modules/@aws-sdk/middleware-user-agent/node_modules/@aws-sdk/util-endpoints/dist-es/lib/isIpAddress.js +0 -1
  1047. package/node_modules/@aws-sdk/middleware-user-agent/node_modules/@aws-sdk/util-endpoints/dist-es/resolveDefaultAwsRegionalEndpointsConfig.js +0 -21
  1048. package/node_modules/@aws-sdk/middleware-user-agent/node_modules/@aws-sdk/util-endpoints/dist-es/resolveEndpoint.js +0 -1
  1049. package/node_modules/@aws-sdk/middleware-user-agent/node_modules/@aws-sdk/util-endpoints/dist-es/types/EndpointError.js +0 -1
  1050. package/node_modules/@aws-sdk/middleware-user-agent/node_modules/@aws-sdk/util-endpoints/dist-es/types/EndpointRuleObject.js +0 -1
  1051. package/node_modules/@aws-sdk/middleware-user-agent/node_modules/@aws-sdk/util-endpoints/dist-es/types/ErrorRuleObject.js +0 -1
  1052. package/node_modules/@aws-sdk/middleware-user-agent/node_modules/@aws-sdk/util-endpoints/dist-es/types/RuleSetObject.js +0 -1
  1053. package/node_modules/@aws-sdk/middleware-user-agent/node_modules/@aws-sdk/util-endpoints/dist-es/types/TreeRuleObject.js +0 -1
  1054. package/node_modules/@aws-sdk/middleware-user-agent/node_modules/@aws-sdk/util-endpoints/dist-es/types/index.js +0 -6
  1055. package/node_modules/@aws-sdk/middleware-user-agent/node_modules/@aws-sdk/util-endpoints/dist-es/types/shared.js +0 -1
  1056. package/node_modules/@aws-sdk/middleware-user-agent/node_modules/@aws-sdk/util-endpoints/dist-types/aws.d.ts +0 -2
  1057. package/node_modules/@aws-sdk/middleware-user-agent/node_modules/@aws-sdk/util-endpoints/dist-types/index.d.ts +0 -6
  1058. package/node_modules/@aws-sdk/middleware-user-agent/node_modules/@aws-sdk/util-endpoints/dist-types/lib/aws/index.d.ts +0 -3
  1059. package/node_modules/@aws-sdk/middleware-user-agent/node_modules/@aws-sdk/util-endpoints/dist-types/lib/aws/isVirtualHostableS3Bucket.d.ts +0 -5
  1060. package/node_modules/@aws-sdk/middleware-user-agent/node_modules/@aws-sdk/util-endpoints/dist-types/lib/aws/parseArn.d.ts +0 -7
  1061. package/node_modules/@aws-sdk/middleware-user-agent/node_modules/@aws-sdk/util-endpoints/dist-types/lib/aws/partition.d.ts +0 -38
  1062. package/node_modules/@aws-sdk/middleware-user-agent/node_modules/@aws-sdk/util-endpoints/dist-types/lib/isIpAddress.d.ts +0 -1
  1063. package/node_modules/@aws-sdk/middleware-user-agent/node_modules/@aws-sdk/util-endpoints/dist-types/resolveDefaultAwsRegionalEndpointsConfig.d.ts +0 -56
  1064. package/node_modules/@aws-sdk/middleware-user-agent/node_modules/@aws-sdk/util-endpoints/dist-types/resolveEndpoint.d.ts +0 -1
  1065. package/node_modules/@aws-sdk/middleware-user-agent/node_modules/@aws-sdk/util-endpoints/dist-types/ts3.4/aws.d.ts +0 -2
  1066. package/node_modules/@aws-sdk/middleware-user-agent/node_modules/@aws-sdk/util-endpoints/dist-types/ts3.4/index.d.ts +0 -6
  1067. package/node_modules/@aws-sdk/middleware-user-agent/node_modules/@aws-sdk/util-endpoints/dist-types/ts3.4/lib/aws/index.d.ts +0 -3
  1068. package/node_modules/@aws-sdk/middleware-user-agent/node_modules/@aws-sdk/util-endpoints/dist-types/ts3.4/lib/aws/isVirtualHostableS3Bucket.d.ts +0 -4
  1069. package/node_modules/@aws-sdk/middleware-user-agent/node_modules/@aws-sdk/util-endpoints/dist-types/ts3.4/lib/aws/parseArn.d.ts +0 -2
  1070. package/node_modules/@aws-sdk/middleware-user-agent/node_modules/@aws-sdk/util-endpoints/dist-types/ts3.4/lib/aws/partition.d.ts +0 -28
  1071. package/node_modules/@aws-sdk/middleware-user-agent/node_modules/@aws-sdk/util-endpoints/dist-types/ts3.4/lib/isIpAddress.d.ts +0 -1
  1072. package/node_modules/@aws-sdk/middleware-user-agent/node_modules/@aws-sdk/util-endpoints/dist-types/ts3.4/resolveDefaultAwsRegionalEndpointsConfig.d.ts +0 -35
  1073. package/node_modules/@aws-sdk/middleware-user-agent/node_modules/@aws-sdk/util-endpoints/dist-types/ts3.4/resolveEndpoint.d.ts +0 -1
  1074. package/node_modules/@aws-sdk/middleware-user-agent/node_modules/@aws-sdk/util-endpoints/dist-types/ts3.4/types/EndpointError.d.ts +0 -1
  1075. package/node_modules/@aws-sdk/middleware-user-agent/node_modules/@aws-sdk/util-endpoints/dist-types/ts3.4/types/EndpointRuleObject.d.ts +0 -6
  1076. package/node_modules/@aws-sdk/middleware-user-agent/node_modules/@aws-sdk/util-endpoints/dist-types/ts3.4/types/ErrorRuleObject.d.ts +0 -1
  1077. package/node_modules/@aws-sdk/middleware-user-agent/node_modules/@aws-sdk/util-endpoints/dist-types/ts3.4/types/RuleSetObject.d.ts +0 -5
  1078. package/node_modules/@aws-sdk/middleware-user-agent/node_modules/@aws-sdk/util-endpoints/dist-types/ts3.4/types/TreeRuleObject.d.ts +0 -1
  1079. package/node_modules/@aws-sdk/middleware-user-agent/node_modules/@aws-sdk/util-endpoints/dist-types/ts3.4/types/index.d.ts +0 -6
  1080. package/node_modules/@aws-sdk/middleware-user-agent/node_modules/@aws-sdk/util-endpoints/dist-types/ts3.4/types/shared.d.ts +0 -12
  1081. package/node_modules/@aws-sdk/middleware-user-agent/node_modules/@aws-sdk/util-endpoints/dist-types/types/EndpointError.d.ts +0 -1
  1082. package/node_modules/@aws-sdk/middleware-user-agent/node_modules/@aws-sdk/util-endpoints/dist-types/types/EndpointRuleObject.d.ts +0 -1
  1083. package/node_modules/@aws-sdk/middleware-user-agent/node_modules/@aws-sdk/util-endpoints/dist-types/types/ErrorRuleObject.d.ts +0 -1
  1084. package/node_modules/@aws-sdk/middleware-user-agent/node_modules/@aws-sdk/util-endpoints/dist-types/types/RuleSetObject.d.ts +0 -1
  1085. package/node_modules/@aws-sdk/middleware-user-agent/node_modules/@aws-sdk/util-endpoints/dist-types/types/TreeRuleObject.d.ts +0 -1
  1086. package/node_modules/@aws-sdk/middleware-user-agent/node_modules/@aws-sdk/util-endpoints/dist-types/types/index.d.ts +0 -6
  1087. package/node_modules/@aws-sdk/middleware-user-agent/node_modules/@aws-sdk/util-endpoints/dist-types/types/shared.d.ts +0 -1
  1088. package/node_modules/@aws-sdk/middleware-user-agent/node_modules/@aws-sdk/util-endpoints/package.json +0 -60
  1089. package/node_modules/@aws-sdk/nested-clients/node_modules/@aws-sdk/util-endpoints/LICENSE +0 -201
  1090. package/node_modules/@aws-sdk/nested-clients/node_modules/@aws-sdk/util-endpoints/README.md +0 -6
  1091. package/node_modules/@aws-sdk/nested-clients/node_modules/@aws-sdk/util-endpoints/dist-cjs/index.js +0 -415
  1092. package/node_modules/@aws-sdk/nested-clients/node_modules/@aws-sdk/util-endpoints/dist-cjs/lib/aws/partitions.json +0 -267
  1093. package/node_modules/@aws-sdk/nested-clients/node_modules/@aws-sdk/util-endpoints/dist-es/aws.js +0 -10
  1094. package/node_modules/@aws-sdk/nested-clients/node_modules/@aws-sdk/util-endpoints/dist-es/index.js +0 -6
  1095. package/node_modules/@aws-sdk/nested-clients/node_modules/@aws-sdk/util-endpoints/dist-es/lib/aws/index.js +0 -3
  1096. package/node_modules/@aws-sdk/nested-clients/node_modules/@aws-sdk/util-endpoints/dist-es/lib/aws/isVirtualHostableS3Bucket.js +0 -25
  1097. package/node_modules/@aws-sdk/nested-clients/node_modules/@aws-sdk/util-endpoints/dist-es/lib/aws/parseArn.js +0 -18
  1098. package/node_modules/@aws-sdk/nested-clients/node_modules/@aws-sdk/util-endpoints/dist-es/lib/aws/partition.js +0 -41
  1099. package/node_modules/@aws-sdk/nested-clients/node_modules/@aws-sdk/util-endpoints/dist-es/lib/aws/partitions.json +0 -267
  1100. package/node_modules/@aws-sdk/nested-clients/node_modules/@aws-sdk/util-endpoints/dist-es/lib/isIpAddress.js +0 -1
  1101. package/node_modules/@aws-sdk/nested-clients/node_modules/@aws-sdk/util-endpoints/dist-es/resolveDefaultAwsRegionalEndpointsConfig.js +0 -21
  1102. package/node_modules/@aws-sdk/nested-clients/node_modules/@aws-sdk/util-endpoints/dist-es/resolveEndpoint.js +0 -1
  1103. package/node_modules/@aws-sdk/nested-clients/node_modules/@aws-sdk/util-endpoints/dist-es/types/EndpointError.js +0 -1
  1104. package/node_modules/@aws-sdk/nested-clients/node_modules/@aws-sdk/util-endpoints/dist-es/types/EndpointRuleObject.js +0 -1
  1105. package/node_modules/@aws-sdk/nested-clients/node_modules/@aws-sdk/util-endpoints/dist-es/types/ErrorRuleObject.js +0 -1
  1106. package/node_modules/@aws-sdk/nested-clients/node_modules/@aws-sdk/util-endpoints/dist-es/types/RuleSetObject.js +0 -1
  1107. package/node_modules/@aws-sdk/nested-clients/node_modules/@aws-sdk/util-endpoints/dist-es/types/TreeRuleObject.js +0 -1
  1108. package/node_modules/@aws-sdk/nested-clients/node_modules/@aws-sdk/util-endpoints/dist-es/types/index.js +0 -6
  1109. package/node_modules/@aws-sdk/nested-clients/node_modules/@aws-sdk/util-endpoints/dist-es/types/shared.js +0 -1
  1110. package/node_modules/@aws-sdk/nested-clients/node_modules/@aws-sdk/util-endpoints/dist-types/aws.d.ts +0 -2
  1111. package/node_modules/@aws-sdk/nested-clients/node_modules/@aws-sdk/util-endpoints/dist-types/index.d.ts +0 -6
  1112. package/node_modules/@aws-sdk/nested-clients/node_modules/@aws-sdk/util-endpoints/dist-types/lib/aws/index.d.ts +0 -3
  1113. package/node_modules/@aws-sdk/nested-clients/node_modules/@aws-sdk/util-endpoints/dist-types/lib/aws/isVirtualHostableS3Bucket.d.ts +0 -5
  1114. package/node_modules/@aws-sdk/nested-clients/node_modules/@aws-sdk/util-endpoints/dist-types/lib/aws/parseArn.d.ts +0 -7
  1115. package/node_modules/@aws-sdk/nested-clients/node_modules/@aws-sdk/util-endpoints/dist-types/lib/aws/partition.d.ts +0 -38
  1116. package/node_modules/@aws-sdk/nested-clients/node_modules/@aws-sdk/util-endpoints/dist-types/lib/isIpAddress.d.ts +0 -1
  1117. package/node_modules/@aws-sdk/nested-clients/node_modules/@aws-sdk/util-endpoints/dist-types/resolveDefaultAwsRegionalEndpointsConfig.d.ts +0 -56
  1118. package/node_modules/@aws-sdk/nested-clients/node_modules/@aws-sdk/util-endpoints/dist-types/resolveEndpoint.d.ts +0 -1
  1119. package/node_modules/@aws-sdk/nested-clients/node_modules/@aws-sdk/util-endpoints/dist-types/ts3.4/aws.d.ts +0 -2
  1120. package/node_modules/@aws-sdk/nested-clients/node_modules/@aws-sdk/util-endpoints/dist-types/ts3.4/index.d.ts +0 -6
  1121. package/node_modules/@aws-sdk/nested-clients/node_modules/@aws-sdk/util-endpoints/dist-types/ts3.4/lib/aws/index.d.ts +0 -3
  1122. package/node_modules/@aws-sdk/nested-clients/node_modules/@aws-sdk/util-endpoints/dist-types/ts3.4/lib/aws/isVirtualHostableS3Bucket.d.ts +0 -4
  1123. package/node_modules/@aws-sdk/nested-clients/node_modules/@aws-sdk/util-endpoints/dist-types/ts3.4/lib/aws/parseArn.d.ts +0 -2
  1124. package/node_modules/@aws-sdk/nested-clients/node_modules/@aws-sdk/util-endpoints/dist-types/ts3.4/lib/aws/partition.d.ts +0 -28
  1125. package/node_modules/@aws-sdk/nested-clients/node_modules/@aws-sdk/util-endpoints/dist-types/ts3.4/lib/isIpAddress.d.ts +0 -1
  1126. package/node_modules/@aws-sdk/nested-clients/node_modules/@aws-sdk/util-endpoints/dist-types/ts3.4/resolveDefaultAwsRegionalEndpointsConfig.d.ts +0 -35
  1127. package/node_modules/@aws-sdk/nested-clients/node_modules/@aws-sdk/util-endpoints/dist-types/ts3.4/resolveEndpoint.d.ts +0 -1
  1128. package/node_modules/@aws-sdk/nested-clients/node_modules/@aws-sdk/util-endpoints/dist-types/ts3.4/types/EndpointError.d.ts +0 -1
  1129. package/node_modules/@aws-sdk/nested-clients/node_modules/@aws-sdk/util-endpoints/dist-types/ts3.4/types/EndpointRuleObject.d.ts +0 -6
  1130. package/node_modules/@aws-sdk/nested-clients/node_modules/@aws-sdk/util-endpoints/dist-types/ts3.4/types/ErrorRuleObject.d.ts +0 -1
  1131. package/node_modules/@aws-sdk/nested-clients/node_modules/@aws-sdk/util-endpoints/dist-types/ts3.4/types/RuleSetObject.d.ts +0 -5
  1132. package/node_modules/@aws-sdk/nested-clients/node_modules/@aws-sdk/util-endpoints/dist-types/ts3.4/types/TreeRuleObject.d.ts +0 -1
  1133. package/node_modules/@aws-sdk/nested-clients/node_modules/@aws-sdk/util-endpoints/dist-types/ts3.4/types/index.d.ts +0 -6
  1134. package/node_modules/@aws-sdk/nested-clients/node_modules/@aws-sdk/util-endpoints/dist-types/ts3.4/types/shared.d.ts +0 -12
  1135. package/node_modules/@aws-sdk/nested-clients/node_modules/@aws-sdk/util-endpoints/dist-types/types/EndpointError.d.ts +0 -1
  1136. package/node_modules/@aws-sdk/nested-clients/node_modules/@aws-sdk/util-endpoints/dist-types/types/EndpointRuleObject.d.ts +0 -1
  1137. package/node_modules/@aws-sdk/nested-clients/node_modules/@aws-sdk/util-endpoints/dist-types/types/ErrorRuleObject.d.ts +0 -1
  1138. package/node_modules/@aws-sdk/nested-clients/node_modules/@aws-sdk/util-endpoints/dist-types/types/RuleSetObject.d.ts +0 -1
  1139. package/node_modules/@aws-sdk/nested-clients/node_modules/@aws-sdk/util-endpoints/dist-types/types/TreeRuleObject.d.ts +0 -1
  1140. package/node_modules/@aws-sdk/nested-clients/node_modules/@aws-sdk/util-endpoints/dist-types/types/index.d.ts +0 -6
  1141. package/node_modules/@aws-sdk/nested-clients/node_modules/@aws-sdk/util-endpoints/dist-types/types/shared.d.ts +0 -1
  1142. package/node_modules/@aws-sdk/nested-clients/node_modules/@aws-sdk/util-endpoints/package.json +0 -60
  1143. package/node_modules/@aws-sdk/xml-builder/node_modules/fast-xml-parser/src/xmlbuilder/orderedJs2Xml.js +0 -134
  1144. package/node_modules/editorconfig/node_modules/minimatch/dist/cjs/assert-valid-pattern.js.map +0 -1
  1145. package/node_modules/editorconfig/node_modules/minimatch/dist/cjs/ast.js.map +0 -1
  1146. package/node_modules/editorconfig/node_modules/minimatch/dist/cjs/brace-expressions.js.map +0 -1
  1147. package/node_modules/editorconfig/node_modules/minimatch/dist/cjs/escape.d.ts.map +0 -1
  1148. package/node_modules/editorconfig/node_modules/minimatch/dist/cjs/index.d.ts.map +0 -1
  1149. package/node_modules/editorconfig/node_modules/minimatch/dist/cjs/index.js.map +0 -1
  1150. package/node_modules/editorconfig/node_modules/minimatch/dist/mjs/assert-valid-pattern.js.map +0 -1
  1151. package/node_modules/editorconfig/node_modules/minimatch/dist/mjs/ast.js.map +0 -1
  1152. package/node_modules/editorconfig/node_modules/minimatch/dist/mjs/brace-expressions.js.map +0 -1
  1153. package/node_modules/editorconfig/node_modules/minimatch/dist/mjs/escape.d.ts.map +0 -1
  1154. package/node_modules/editorconfig/node_modules/minimatch/dist/mjs/index.d.ts.map +0 -1
  1155. package/node_modules/editorconfig/node_modules/minimatch/dist/mjs/index.js.map +0 -1
  1156. package/node_modules/minipass/LICENSE +0 -15
  1157. package/node_modules/strnum/test.js +0 -9
  1158. /package/node_modules/@aws-sdk/{client-sso/dist-cjs → nested-clients/dist-cjs/submodules/cognito-identity}/endpoint/endpointResolver.js +0 -0
  1159. /package/node_modules/@aws-sdk/{client-sso/dist-cjs → nested-clients/dist-cjs/submodules/cognito-identity}/runtimeConfig.native.js +0 -0
  1160. /package/node_modules/@aws-sdk/{client-sso/dist-cjs → nested-clients/dist-cjs/submodules/sso}/models/SSOServiceException.js +0 -0
  1161. /package/node_modules/@aws-sdk/{client-sso/dist-cjs → nested-clients/dist-cjs/submodules/sso}/models/errors.js +0 -0
  1162. /package/node_modules/@aws-sdk/{client-sso/dist-cjs → nested-clients/dist-cjs/submodules/sso}/runtimeConfig.shared.js +0 -0
  1163. /package/node_modules/@aws-sdk/{client-sso/dist-es → nested-clients/dist-es/submodules/cognito-identity}/auth/httpAuthExtensionConfiguration.js +0 -0
  1164. /package/node_modules/@aws-sdk/{client-sso/dist-es → nested-clients/dist-es/submodules/cognito-identity}/endpoint/endpointResolver.js +0 -0
  1165. /package/node_modules/@aws-sdk/{client-sso/dist-es → nested-clients/dist-es/submodules/cognito-identity}/extensionConfiguration.js +0 -0
  1166. /package/node_modules/@aws-sdk/{client-sso/dist-es → nested-clients/dist-es/submodules/cognito-identity}/models/models_0.js +0 -0
  1167. /package/node_modules/@aws-sdk/{client-sso/dist-es → nested-clients/dist-es/submodules/cognito-identity}/runtimeConfig.native.js +0 -0
  1168. /package/node_modules/@aws-sdk/{client-sso/dist-es → nested-clients/dist-es/submodules/cognito-identity}/runtimeExtensions.js +0 -0
  1169. /package/node_modules/@aws-sdk/{client-sso/dist-es → nested-clients/dist-es/submodules/sso}/commands/GetRoleCredentialsCommand.js +0 -0
  1170. /package/node_modules/@aws-sdk/{client-sso/dist-es → nested-clients/dist-es/submodules/sso}/endpoint/EndpointParameters.js +0 -0
  1171. /package/node_modules/@aws-sdk/{client-sso/dist-es/pagination/Interfaces.js → nested-clients/dist-es/submodules/sso/extensionConfiguration.js} +0 -0
  1172. /package/node_modules/@aws-sdk/{client-sso/dist-es → nested-clients/dist-es/submodules/sso}/models/SSOServiceException.js +0 -0
  1173. /package/node_modules/@aws-sdk/{client-sso/dist-es → nested-clients/dist-es/submodules/sso}/models/errors.js +0 -0
  1174. /package/node_modules/@aws-sdk/{client-sso/node_modules/@aws-sdk/util-endpoints/dist-es/types/EndpointRuleObject.js → nested-clients/dist-es/submodules/sso/models/models_0.js} +0 -0
  1175. /package/node_modules/@aws-sdk/{client-sso/dist-es → nested-clients/dist-es/submodules/sso}/runtimeConfig.shared.js +0 -0
  1176. /package/node_modules/@aws-sdk/{client-sso/dist-types → nested-clients/dist-types/submodules/cognito-identity}/endpoint/EndpointParameters.d.ts +0 -0
  1177. /package/node_modules/@aws-sdk/{client-sso/dist-types → nested-clients/dist-types/submodules/cognito-identity}/endpoint/endpointResolver.d.ts +0 -0
  1178. /package/node_modules/@aws-sdk/{client-sso/dist-types → nested-clients/dist-types/submodules/sso}/extensionConfiguration.d.ts +0 -0
  1179. /package/node_modules/@aws-sdk/{client-sso/dist-types → nested-clients/dist-types/submodules/sso}/models/SSOServiceException.d.ts +0 -0
  1180. /package/node_modules/@aws-sdk/{client-sso/dist-types → nested-clients/dist-types/submodules/sso}/models/errors.d.ts +0 -0
  1181. /package/node_modules/@aws-sdk/{client-sso/dist-types → nested-clients/dist-types/submodules/sso}/runtimeConfig.browser.d.ts +0 -0
  1182. /package/node_modules/@aws-sdk/{client-sso/dist-types → nested-clients/dist-types/submodules/sso}/runtimeConfig.d.ts +0 -0
  1183. /package/node_modules/@aws-sdk/{client-sso/dist-types → nested-clients/dist-types/submodules/sso}/runtimeConfig.native.d.ts +0 -0
  1184. /package/node_modules/@aws-sdk/{client-sso/dist-types → nested-clients/dist-types/submodules/sso}/runtimeConfig.shared.d.ts +0 -0
  1185. /package/node_modules/@aws-sdk/{client-sso/dist-types → nested-clients/dist-types/submodules/sso}/runtimeExtensions.d.ts +0 -0
  1186. /package/node_modules/@aws-sdk/{client-sso/dist-types/ts3.4 → nested-clients/dist-types/ts3.4/submodules/cognito-identity}/endpoint/EndpointParameters.d.ts +0 -0
  1187. /package/node_modules/@aws-sdk/{client-sso/dist-types/ts3.4 → nested-clients/dist-types/ts3.4/submodules/cognito-identity}/endpoint/endpointResolver.d.ts +0 -0
  1188. /package/node_modules/@aws-sdk/{client-sso/dist-types → nested-clients/dist-types/ts3.4/submodules/cognito-identity}/endpoint/ruleset.d.ts +0 -0
  1189. /package/node_modules/@aws-sdk/{client-sso/dist-types/ts3.4 → nested-clients/dist-types/ts3.4/submodules/sso}/auth/httpAuthSchemeProvider.d.ts +0 -0
  1190. /package/node_modules/@aws-sdk/{client-sso/dist-types/ts3.4 → nested-clients/dist-types/ts3.4/submodules/sso}/endpoint/ruleset.d.ts +0 -0
  1191. /package/node_modules/@aws-sdk/{client-sso/dist-types/ts3.4 → nested-clients/dist-types/ts3.4/submodules/sso}/extensionConfiguration.d.ts +0 -0
  1192. /package/node_modules/@aws-sdk/{client-sso/dist-types/ts3.4 → nested-clients/dist-types/ts3.4/submodules/sso}/models/SSOServiceException.d.ts +0 -0
  1193. /package/node_modules/@aws-sdk/{client-sso/dist-types/ts3.4 → nested-clients/dist-types/ts3.4/submodules/sso}/models/errors.d.ts +0 -0
  1194. /package/node_modules/@aws-sdk/{client-sso/dist-types/ts3.4 → nested-clients/dist-types/ts3.4/submodules/sso}/runtimeConfig.browser.d.ts +0 -0
  1195. /package/node_modules/@aws-sdk/{client-sso/dist-types/ts3.4 → nested-clients/dist-types/ts3.4/submodules/sso}/runtimeConfig.d.ts +0 -0
  1196. /package/node_modules/@aws-sdk/{client-sso/dist-types/ts3.4 → nested-clients/dist-types/ts3.4/submodules/sso}/runtimeConfig.native.d.ts +0 -0
  1197. /package/node_modules/@aws-sdk/{client-sso/dist-types/ts3.4 → nested-clients/dist-types/ts3.4/submodules/sso}/runtimeConfig.shared.d.ts +0 -0
  1198. /package/node_modules/@aws-sdk/{client-sso/dist-types/ts3.4 → nested-clients/dist-types/ts3.4/submodules/sso}/runtimeExtensions.d.ts +0 -0
  1199. /package/node_modules/{brace-expansion → editorconfig/node_modules/brace-expansion}/.github/FUNDING.yml +0 -0
  1200. /package/node_modules/{brace-expansion → editorconfig/node_modules/brace-expansion}/LICENSE +0 -0
  1201. /package/node_modules/{brace-expansion → editorconfig/node_modules/brace-expansion}/README.md +0 -0
  1202. /package/node_modules/{brace-expansion → editorconfig/node_modules/brace-expansion}/index.js +0 -0
  1203. /package/node_modules/{brace-expansion → editorconfig/node_modules/brace-expansion}/package.json +0 -0
  1204. /package/node_modules/editorconfig/node_modules/minimatch/dist/{cjs → commonjs}/assert-valid-pattern.d.ts +0 -0
  1205. /package/node_modules/editorconfig/node_modules/minimatch/dist/{cjs → commonjs}/assert-valid-pattern.d.ts.map +0 -0
  1206. /package/node_modules/editorconfig/node_modules/minimatch/dist/{cjs → commonjs}/assert-valid-pattern.js +0 -0
  1207. /package/node_modules/editorconfig/node_modules/minimatch/dist/{cjs → commonjs}/brace-expressions.d.ts +0 -0
  1208. /package/node_modules/editorconfig/node_modules/minimatch/dist/{cjs → commonjs}/brace-expressions.js +0 -0
  1209. /package/node_modules/editorconfig/node_modules/minimatch/dist/{cjs → commonjs}/escape.js +0 -0
  1210. /package/node_modules/editorconfig/node_modules/minimatch/dist/{cjs → commonjs}/escape.js.map +0 -0
  1211. /package/node_modules/editorconfig/node_modules/minimatch/dist/{cjs → commonjs}/package.json +0 -0
  1212. /package/node_modules/editorconfig/node_modules/minimatch/dist/{cjs → commonjs}/unescape.js +0 -0
  1213. /package/node_modules/editorconfig/node_modules/minimatch/dist/{cjs → commonjs}/unescape.js.map +0 -0
  1214. /package/node_modules/editorconfig/node_modules/minimatch/dist/{mjs → esm}/assert-valid-pattern.d.ts +0 -0
  1215. /package/node_modules/editorconfig/node_modules/minimatch/dist/{mjs → esm}/assert-valid-pattern.d.ts.map +0 -0
  1216. /package/node_modules/editorconfig/node_modules/minimatch/dist/{mjs → esm}/assert-valid-pattern.js +0 -0
  1217. /package/node_modules/editorconfig/node_modules/minimatch/dist/{mjs → esm}/brace-expressions.d.ts +0 -0
  1218. /package/node_modules/editorconfig/node_modules/minimatch/dist/{mjs → esm}/brace-expressions.js +0 -0
  1219. /package/node_modules/editorconfig/node_modules/minimatch/dist/{mjs → esm}/escape.js +0 -0
  1220. /package/node_modules/editorconfig/node_modules/minimatch/dist/{mjs → esm}/escape.js.map +0 -0
  1221. /package/node_modules/editorconfig/node_modules/minimatch/dist/{mjs → esm}/package.json +0 -0
  1222. /package/node_modules/editorconfig/node_modules/minimatch/dist/{mjs → esm}/unescape.js +0 -0
  1223. /package/node_modules/editorconfig/node_modules/minimatch/dist/{mjs → esm}/unescape.js.map +0 -0
  1224. /package/node_modules/{@aws-sdk/xml-builder/node_modules/fast-xml-parser/src/xmlbuilder → fast-xml-builder/src}/prettifyJs2Xml.js +0 -0
@@ -1,4 +1,4 @@
1
- /*! Axios v1.13.5 Copyright (c) 2026 Matt Zabriskie and contributors */
1
+ /*! Axios v1.13.6 Copyright (c) 2026 Matt Zabriskie and contributors */
2
2
  'use strict';
3
3
 
4
4
  const FormData$1 = require('form-data');
@@ -75,7 +75,7 @@ const { isArray } = Array;
75
75
  *
76
76
  * @returns {boolean} True if the value is undefined, otherwise false
77
77
  */
78
- const isUndefined = typeOfTest("undefined");
78
+ const isUndefined = typeOfTest('undefined');
79
79
 
80
80
  /**
81
81
  * Determine if a value is a Buffer
@@ -102,7 +102,7 @@ function isBuffer(val) {
102
102
  *
103
103
  * @returns {boolean} True if value is an ArrayBuffer, otherwise false
104
104
  */
105
- const isArrayBuffer = kindOfTest("ArrayBuffer");
105
+ const isArrayBuffer = kindOfTest('ArrayBuffer');
106
106
 
107
107
  /**
108
108
  * Determine if a value is a view on an ArrayBuffer
@@ -113,7 +113,7 @@ const isArrayBuffer = kindOfTest("ArrayBuffer");
113
113
  */
114
114
  function isArrayBufferView(val) {
115
115
  let result;
116
- if (typeof ArrayBuffer !== "undefined" && ArrayBuffer.isView) {
116
+ if (typeof ArrayBuffer !== 'undefined' && ArrayBuffer.isView) {
117
117
  result = ArrayBuffer.isView(val);
118
118
  } else {
119
119
  result = val && val.buffer && isArrayBuffer(val.buffer);
@@ -128,7 +128,7 @@ function isArrayBufferView(val) {
128
128
  *
129
129
  * @returns {boolean} True if value is a String, otherwise false
130
130
  */
131
- const isString = typeOfTest("string");
131
+ const isString = typeOfTest('string');
132
132
 
133
133
  /**
134
134
  * Determine if a value is a Function
@@ -136,7 +136,7 @@ const isString = typeOfTest("string");
136
136
  * @param {*} val The value to test
137
137
  * @returns {boolean} True if value is a Function, otherwise false
138
138
  */
139
- const isFunction$1 = typeOfTest("function");
139
+ const isFunction$1 = typeOfTest('function');
140
140
 
141
141
  /**
142
142
  * Determine if a value is a Number
@@ -145,7 +145,7 @@ const isFunction$1 = typeOfTest("function");
145
145
  *
146
146
  * @returns {boolean} True if value is a Number, otherwise false
147
147
  */
148
- const isNumber = typeOfTest("number");
148
+ const isNumber = typeOfTest('number');
149
149
 
150
150
  /**
151
151
  * Determine if a value is an Object
@@ -154,7 +154,7 @@ const isNumber = typeOfTest("number");
154
154
  *
155
155
  * @returns {boolean} True if value is an Object, otherwise false
156
156
  */
157
- const isObject = (thing) => thing !== null && typeof thing === "object";
157
+ const isObject = (thing) => thing !== null && typeof thing === 'object';
158
158
 
159
159
  /**
160
160
  * Determine if a value is a Boolean
@@ -172,7 +172,7 @@ const isBoolean = (thing) => thing === true || thing === false;
172
172
  * @returns {boolean} True if value is a plain Object, otherwise false
173
173
  */
174
174
  const isPlainObject = (val) => {
175
- if (kindOf(val) !== "object") {
175
+ if (kindOf(val) !== 'object') {
176
176
  return false;
177
177
  }
178
178
 
@@ -200,10 +200,7 @@ const isEmptyObject = (val) => {
200
200
  }
201
201
 
202
202
  try {
203
- return (
204
- Object.keys(val).length === 0 &&
205
- Object.getPrototypeOf(val) === Object.prototype
206
- );
203
+ return Object.keys(val).length === 0 && Object.getPrototypeOf(val) === Object.prototype;
207
204
  } catch (e) {
208
205
  // Fallback for any other objects that might cause RangeError with Object.keys()
209
206
  return false;
@@ -217,7 +214,7 @@ const isEmptyObject = (val) => {
217
214
  *
218
215
  * @returns {boolean} True if value is a Date, otherwise false
219
216
  */
220
- const isDate = kindOfTest("Date");
217
+ const isDate = kindOfTest('Date');
221
218
 
222
219
  /**
223
220
  * Determine if a value is a File
@@ -226,7 +223,32 @@ const isDate = kindOfTest("Date");
226
223
  *
227
224
  * @returns {boolean} True if value is a File, otherwise false
228
225
  */
229
- const isFile = kindOfTest("File");
226
+ const isFile = kindOfTest('File');
227
+
228
+ /**
229
+ * Determine if a value is a React Native Blob
230
+ * React Native "blob": an object with a `uri` attribute. Optionally, it can
231
+ * also have a `name` and `type` attribute to specify filename and content type
232
+ *
233
+ * @see https://github.com/facebook/react-native/blob/26684cf3adf4094eb6c405d345a75bf8c7c0bf88/Libraries/Network/FormData.js#L68-L71
234
+ *
235
+ * @param {*} value The value to test
236
+ *
237
+ * @returns {boolean} True if value is a React Native Blob, otherwise false
238
+ */
239
+ const isReactNativeBlob = (value) => {
240
+ return !!(value && typeof value.uri !== 'undefined');
241
+ };
242
+
243
+ /**
244
+ * Determine if environment is React Native
245
+ * ReactNative `FormData` has a non-standard `getParts()` method
246
+ *
247
+ * @param {*} formData The formData to test
248
+ *
249
+ * @returns {boolean} True if environment is React Native, otherwise false
250
+ */
251
+ const isReactNative = (formData) => formData && typeof formData.getParts !== 'undefined';
230
252
 
231
253
  /**
232
254
  * Determine if a value is a Blob
@@ -235,7 +257,7 @@ const isFile = kindOfTest("File");
235
257
  *
236
258
  * @returns {boolean} True if value is a Blob, otherwise false
237
259
  */
238
- const isBlob = kindOfTest("Blob");
260
+ const isBlob = kindOfTest('Blob');
239
261
 
240
262
  /**
241
263
  * Determine if a value is a FileList
@@ -244,7 +266,7 @@ const isBlob = kindOfTest("Blob");
244
266
  *
245
267
  * @returns {boolean} True if value is a File, otherwise false
246
268
  */
247
- const isFileList = kindOfTest("FileList");
269
+ const isFileList = kindOfTest('FileList');
248
270
 
249
271
  /**
250
272
  * Determine if a value is a Stream
@@ -262,17 +284,27 @@ const isStream = (val) => isObject(val) && isFunction$1(val.pipe);
262
284
  *
263
285
  * @returns {boolean} True if value is an FormData, otherwise false
264
286
  */
287
+ function getGlobal() {
288
+ if (typeof globalThis !== 'undefined') return globalThis;
289
+ if (typeof self !== 'undefined') return self;
290
+ if (typeof window !== 'undefined') return window;
291
+ if (typeof global !== 'undefined') return global;
292
+ return {};
293
+ }
294
+
295
+ const G = getGlobal();
296
+ const FormDataCtor = typeof G.FormData !== 'undefined' ? G.FormData : undefined;
297
+
265
298
  const isFormData = (thing) => {
266
299
  let kind;
267
- return (
268
- thing &&
269
- ((typeof FormData === "function" && thing instanceof FormData) ||
270
- (isFunction$1(thing.append) &&
271
- ((kind = kindOf(thing)) === "formdata" ||
272
- // detect form-data instance
273
- (kind === "object" &&
274
- isFunction$1(thing.toString) &&
275
- thing.toString() === "[object FormData]"))))
300
+ return thing && (
301
+ (FormDataCtor && thing instanceof FormDataCtor) || (
302
+ isFunction$1(thing.append) && (
303
+ (kind = kindOf(thing)) === 'formdata' ||
304
+ // detect form-data instance
305
+ (kind === 'object' && isFunction$1(thing.toString) && thing.toString() === '[object FormData]')
306
+ )
307
+ )
276
308
  );
277
309
  };
278
310
 
@@ -283,13 +315,13 @@ const isFormData = (thing) => {
283
315
  *
284
316
  * @returns {boolean} True if value is a URLSearchParams object, otherwise false
285
317
  */
286
- const isURLSearchParams = kindOfTest("URLSearchParams");
318
+ const isURLSearchParams = kindOfTest('URLSearchParams');
287
319
 
288
320
  const [isReadableStream, isRequest, isResponse, isHeaders] = [
289
- "ReadableStream",
290
- "Request",
291
- "Response",
292
- "Headers",
321
+ 'ReadableStream',
322
+ 'Request',
323
+ 'Response',
324
+ 'Headers',
293
325
  ].map(kindOfTest);
294
326
 
295
327
  /**
@@ -299,9 +331,9 @@ const [isReadableStream, isRequest, isResponse, isHeaders] = [
299
331
  *
300
332
  * @returns {String} The String freed of excess whitespace
301
333
  */
302
- const trim = (str) =>
303
- str.trim ? str.trim() : str.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g, "");
304
-
334
+ const trim = (str) => {
335
+ return str.trim ? str.trim() : str.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g, '');
336
+ };
305
337
  /**
306
338
  * Iterate over an Array or an Object invoking a function for each item.
307
339
  *
@@ -320,7 +352,7 @@ const trim = (str) =>
320
352
  */
321
353
  function forEach(obj, fn, { allOwnKeys = false } = {}) {
322
354
  // Don't bother if no value provided
323
- if (obj === null || typeof obj === "undefined") {
355
+ if (obj === null || typeof obj === 'undefined') {
324
356
  return;
325
357
  }
326
358
 
@@ -328,7 +360,7 @@ function forEach(obj, fn, { allOwnKeys = false } = {}) {
328
360
  let l;
329
361
 
330
362
  // Force an array if not already something iterable
331
- if (typeof obj !== "object") {
363
+ if (typeof obj !== 'object') {
332
364
  /*eslint no-param-reassign:0*/
333
365
  obj = [obj];
334
366
  }
@@ -345,9 +377,7 @@ function forEach(obj, fn, { allOwnKeys = false } = {}) {
345
377
  }
346
378
 
347
379
  // Iterate over object keys
348
- const keys = allOwnKeys
349
- ? Object.getOwnPropertyNames(obj)
350
- : Object.keys(obj);
380
+ const keys = allOwnKeys ? Object.getOwnPropertyNames(obj) : Object.keys(obj);
351
381
  const len = keys.length;
352
382
  let key;
353
383
 
@@ -358,6 +388,14 @@ function forEach(obj, fn, { allOwnKeys = false } = {}) {
358
388
  }
359
389
  }
360
390
 
391
+ /**
392
+ * Finds a key in an object, case-insensitive, returning the actual key name.
393
+ * Returns null if the object is a Buffer or if no match is found.
394
+ *
395
+ * @param {Object} obj - The object to search.
396
+ * @param {string} key - The key to find (case-insensitive).
397
+ * @returns {?string} The actual key name if found, otherwise null.
398
+ */
361
399
  function findKey(obj, key) {
362
400
  if (isBuffer(obj)) {
363
401
  return null;
@@ -378,16 +416,11 @@ function findKey(obj, key) {
378
416
 
379
417
  const _global = (() => {
380
418
  /*eslint no-undef:0*/
381
- if (typeof globalThis !== "undefined") return globalThis;
382
- return typeof self !== "undefined"
383
- ? self
384
- : typeof window !== "undefined"
385
- ? window
386
- : global;
419
+ if (typeof globalThis !== 'undefined') return globalThis;
420
+ return typeof self !== 'undefined' ? self : typeof window !== 'undefined' ? window : global;
387
421
  })();
388
422
 
389
- const isContextDefined = (context) =>
390
- !isUndefined(context) && context !== _global;
423
+ const isContextDefined = (context) => !isUndefined(context) && context !== _global;
391
424
 
392
425
  /**
393
426
  * Accepts varargs expecting each argument to be an object, then
@@ -412,7 +445,7 @@ function merge(/* obj1, obj2, obj3, ... */) {
412
445
  const result = {};
413
446
  const assignValue = (val, key) => {
414
447
  // Skip dangerous property names to prevent prototype pollution
415
- if (key === "__proto__" || key === "constructor" || key === "prototype") {
448
+ if (key === '__proto__' || key === 'constructor' || key === 'prototype') {
416
449
  return;
417
450
  }
418
451
 
@@ -465,7 +498,7 @@ const extend = (a, b, thisArg, { allOwnKeys } = {}) => {
465
498
  });
466
499
  }
467
500
  },
468
- { allOwnKeys },
501
+ { allOwnKeys }
469
502
  );
470
503
  return a;
471
504
  };
@@ -494,17 +527,14 @@ const stripBOM = (content) => {
494
527
  * @returns {void}
495
528
  */
496
529
  const inherits = (constructor, superConstructor, props, descriptors) => {
497
- constructor.prototype = Object.create(
498
- superConstructor.prototype,
499
- descriptors,
500
- );
501
- Object.defineProperty(constructor.prototype, "constructor", {
530
+ constructor.prototype = Object.create(superConstructor.prototype, descriptors);
531
+ Object.defineProperty(constructor.prototype, 'constructor', {
502
532
  value: constructor,
503
533
  writable: true,
504
534
  enumerable: false,
505
535
  configurable: true,
506
536
  });
507
- Object.defineProperty(constructor, "super", {
537
+ Object.defineProperty(constructor, 'super', {
508
538
  value: superConstructor.prototype,
509
539
  });
510
540
  props && Object.assign(constructor.prototype, props);
@@ -534,20 +564,13 @@ const toFlatObject = (sourceObj, destObj, filter, propFilter) => {
534
564
  i = props.length;
535
565
  while (i-- > 0) {
536
566
  prop = props[i];
537
- if (
538
- (!propFilter || propFilter(prop, sourceObj, destObj)) &&
539
- !merged[prop]
540
- ) {
567
+ if ((!propFilter || propFilter(prop, sourceObj, destObj)) && !merged[prop]) {
541
568
  destObj[prop] = sourceObj[prop];
542
569
  merged[prop] = true;
543
570
  }
544
571
  }
545
572
  sourceObj = filter !== false && getPrototypeOf(sourceObj);
546
- } while (
547
- sourceObj &&
548
- (!filter || filter(sourceObj, destObj)) &&
549
- sourceObj !== Object.prototype
550
- );
573
+ } while (sourceObj && (!filter || filter(sourceObj, destObj)) && sourceObj !== Object.prototype);
551
574
 
552
575
  return destObj;
553
576
  };
@@ -604,7 +627,7 @@ const isTypedArray = ((TypedArray) => {
604
627
  return (thing) => {
605
628
  return TypedArray && thing instanceof TypedArray;
606
629
  };
607
- })(typeof Uint8Array !== "undefined" && getPrototypeOf(Uint8Array));
630
+ })(typeof Uint8Array !== 'undefined' && getPrototypeOf(Uint8Array));
608
631
 
609
632
  /**
610
633
  * For each entry in the object, call the function with the key and value.
@@ -647,14 +670,12 @@ const matchAll = (regExp, str) => {
647
670
  };
648
671
 
649
672
  /* Checking if the kindOfTest function returns true when passed an HTMLFormElement. */
650
- const isHTMLForm = kindOfTest("HTMLFormElement");
673
+ const isHTMLForm = kindOfTest('HTMLFormElement');
651
674
 
652
675
  const toCamelCase = (str) => {
653
- return str
654
- .toLowerCase()
655
- .replace(/[-_\s]([a-z\d])(\w*)/g, function replacer(m, p1, p2) {
656
- return p1.toUpperCase() + p2;
657
- });
676
+ return str.toLowerCase().replace(/[-_\s]([a-z\d])(\w*)/g, function replacer(m, p1, p2) {
677
+ return p1.toUpperCase() + p2;
678
+ });
658
679
  };
659
680
 
660
681
  /* Creating a function that will check if an object has a property. */
@@ -671,7 +692,7 @@ const hasOwnProperty = (
671
692
  *
672
693
  * @returns {boolean} True if value is a RegExp object, otherwise false
673
694
  */
674
- const isRegExp = kindOfTest("RegExp");
695
+ const isRegExp = kindOfTest('RegExp');
675
696
 
676
697
  const reduceDescriptors = (obj, reducer) => {
677
698
  const descriptors = Object.getOwnPropertyDescriptors(obj);
@@ -695,10 +716,7 @@ const reduceDescriptors = (obj, reducer) => {
695
716
  const freezeMethods = (obj) => {
696
717
  reduceDescriptors(obj, (descriptor, name) => {
697
718
  // skip restricted props in strict mode
698
- if (
699
- isFunction$1(obj) &&
700
- ["arguments", "caller", "callee"].indexOf(name) !== -1
701
- ) {
719
+ if (isFunction$1(obj) && ['arguments', 'caller', 'callee'].indexOf(name) !== -1) {
702
720
  return false;
703
721
  }
704
722
 
@@ -708,7 +726,7 @@ const freezeMethods = (obj) => {
708
726
 
709
727
  descriptor.enumerable = false;
710
728
 
711
- if ("writable" in descriptor) {
729
+ if ('writable' in descriptor) {
712
730
  descriptor.writable = false;
713
731
  return;
714
732
  }
@@ -721,6 +739,14 @@ const freezeMethods = (obj) => {
721
739
  });
722
740
  };
723
741
 
742
+ /**
743
+ * Converts an array or a delimited string into an object set with values as keys and true as values.
744
+ * Useful for fast membership checks.
745
+ *
746
+ * @param {Array|string} arrayOrString - The array or string to convert.
747
+ * @param {string} delimiter - The delimiter to use if input is a string.
748
+ * @returns {Object} An object with keys from the array or string, values set to true.
749
+ */
724
750
  const toObjectSet = (arrayOrString, delimiter) => {
725
751
  const obj = {};
726
752
 
@@ -730,9 +756,7 @@ const toObjectSet = (arrayOrString, delimiter) => {
730
756
  });
731
757
  };
732
758
 
733
- isArray(arrayOrString)
734
- ? define(arrayOrString)
735
- : define(String(arrayOrString).split(delimiter));
759
+ isArray(arrayOrString) ? define(arrayOrString) : define(String(arrayOrString).split(delimiter));
736
760
 
737
761
  return obj;
738
762
  };
@@ -740,9 +764,7 @@ const toObjectSet = (arrayOrString, delimiter) => {
740
764
  const noop = () => {};
741
765
 
742
766
  const toFiniteNumber = (value, defaultValue) => {
743
- return value != null && Number.isFinite((value = +value))
744
- ? value
745
- : defaultValue;
767
+ return value != null && Number.isFinite((value = +value)) ? value : defaultValue;
746
768
  };
747
769
 
748
770
  /**
@@ -756,11 +778,17 @@ function isSpecCompliantForm(thing) {
756
778
  return !!(
757
779
  thing &&
758
780
  isFunction$1(thing.append) &&
759
- thing[toStringTag] === "FormData" &&
781
+ thing[toStringTag] === 'FormData' &&
760
782
  thing[iterator]
761
783
  );
762
784
  }
763
785
 
786
+ /**
787
+ * Recursively converts an object to a JSON-compatible object, handling circular references and Buffers.
788
+ *
789
+ * @param {Object} obj - The object to convert.
790
+ * @returns {Object} The JSON-compatible object.
791
+ */
764
792
  const toJSONObject = (obj) => {
765
793
  const stack = new Array(10);
766
794
 
@@ -775,7 +803,7 @@ const toJSONObject = (obj) => {
775
803
  return source;
776
804
  }
777
805
 
778
- if (!("toJSON" in source)) {
806
+ if (!('toJSON' in source)) {
779
807
  stack[i] = source;
780
808
  const target = isArray(source) ? [] : {};
781
809
 
@@ -796,8 +824,20 @@ const toJSONObject = (obj) => {
796
824
  return visit(obj, 0);
797
825
  };
798
826
 
799
- const isAsyncFn = kindOfTest("AsyncFunction");
827
+ /**
828
+ * Determines if a value is an async function.
829
+ *
830
+ * @param {*} thing - The value to test.
831
+ * @returns {boolean} True if value is an async function, otherwise false.
832
+ */
833
+ const isAsyncFn = kindOfTest('AsyncFunction');
800
834
 
835
+ /**
836
+ * Determines if a value is thenable (has then and catch methods).
837
+ *
838
+ * @param {*} thing - The value to test.
839
+ * @returns {boolean} True if value is thenable, otherwise false.
840
+ */
801
841
  const isThenable = (thing) =>
802
842
  thing &&
803
843
  (isObject(thing) || isFunction$1(thing)) &&
@@ -807,6 +847,14 @@ const isThenable = (thing) =>
807
847
  // original code
808
848
  // https://github.com/DigitalBrainJS/AxiosPromise/blob/16deab13710ec09779922131f3fa5954320f83ab/lib/utils.js#L11-L34
809
849
 
850
+ /**
851
+ * Provides a cross-platform setImmediate implementation.
852
+ * Uses native setImmediate if available, otherwise falls back to postMessage or setTimeout.
853
+ *
854
+ * @param {boolean} setImmediateSupported - Whether setImmediate is supported.
855
+ * @param {boolean} postMessageSupported - Whether postMessage is supported.
856
+ * @returns {Function} A function to schedule a callback asynchronously.
857
+ */
810
858
  const _setImmediate = ((setImmediateSupported, postMessageSupported) => {
811
859
  if (setImmediateSupported) {
812
860
  return setImmediate;
@@ -815,27 +863,33 @@ const _setImmediate = ((setImmediateSupported, postMessageSupported) => {
815
863
  return postMessageSupported
816
864
  ? ((token, callbacks) => {
817
865
  _global.addEventListener(
818
- "message",
866
+ 'message',
819
867
  ({ source, data }) => {
820
868
  if (source === _global && data === token) {
821
869
  callbacks.length && callbacks.shift()();
822
870
  }
823
871
  },
824
- false,
872
+ false
825
873
  );
826
874
 
827
875
  return (cb) => {
828
876
  callbacks.push(cb);
829
- _global.postMessage(token, "*");
877
+ _global.postMessage(token, '*');
830
878
  };
831
879
  })(`axios@${Math.random()}`, [])
832
880
  : (cb) => setTimeout(cb);
833
- })(typeof setImmediate === "function", isFunction$1(_global.postMessage));
881
+ })(typeof setImmediate === 'function', isFunction$1(_global.postMessage));
834
882
 
883
+ /**
884
+ * Schedules a microtask or asynchronous callback as soon as possible.
885
+ * Uses queueMicrotask if available, otherwise falls back to process.nextTick or _setImmediate.
886
+ *
887
+ * @type {Function}
888
+ */
835
889
  const asap =
836
- typeof queueMicrotask !== "undefined"
890
+ typeof queueMicrotask !== 'undefined'
837
891
  ? queueMicrotask.bind(_global)
838
- : (typeof process !== "undefined" && process.nextTick) || _setImmediate;
892
+ : (typeof process !== 'undefined' && process.nextTick) || _setImmediate;
839
893
 
840
894
  // *********************
841
895
 
@@ -860,6 +914,8 @@ const utils$1 = {
860
914
  isUndefined,
861
915
  isDate,
862
916
  isFile,
917
+ isReactNativeBlob,
918
+ isReactNative,
863
919
  isBlob,
864
920
  isRegExp,
865
921
  isFunction: isFunction$1,
@@ -902,14 +958,20 @@ const utils$1 = {
902
958
  };
903
959
 
904
960
  class AxiosError extends Error {
905
- static from(error, code, config, request, response, customProps) {
906
- const axiosError = new AxiosError(error.message, code || error.code, config, request, response);
907
- axiosError.cause = error;
908
- axiosError.name = error.name;
909
- customProps && Object.assign(axiosError, customProps);
910
- return axiosError;
961
+ static from(error, code, config, request, response, customProps) {
962
+ const axiosError = new AxiosError(error.message, code || error.code, config, request, response);
963
+ axiosError.cause = error;
964
+ axiosError.name = error.name;
965
+
966
+ // Preserve status from the original error if not already set from response
967
+ if (error.status != null && axiosError.status == null) {
968
+ axiosError.status = error.status;
911
969
  }
912
970
 
971
+ customProps && Object.assign(axiosError, customProps);
972
+ return axiosError;
973
+ }
974
+
913
975
  /**
914
976
  * Create an Error with the specified message, config, error code, request and response.
915
977
  *
@@ -922,37 +984,48 @@ class AxiosError extends Error {
922
984
  * @returns {Error} The created error.
923
985
  */
924
986
  constructor(message, code, config, request, response) {
925
- super(message);
926
- this.name = 'AxiosError';
927
- this.isAxiosError = true;
928
- code && (this.code = code);
929
- config && (this.config = config);
930
- request && (this.request = request);
931
- if (response) {
932
- this.response = response;
933
- this.status = response.status;
934
- }
987
+ super(message);
988
+
989
+ // Make message enumerable to maintain backward compatibility
990
+ // The native Error constructor sets message as non-enumerable,
991
+ // but axios < v1.13.3 had it as enumerable
992
+ Object.defineProperty(this, 'message', {
993
+ value: message,
994
+ enumerable: true,
995
+ writable: true,
996
+ configurable: true
997
+ });
998
+
999
+ this.name = 'AxiosError';
1000
+ this.isAxiosError = true;
1001
+ code && (this.code = code);
1002
+ config && (this.config = config);
1003
+ request && (this.request = request);
1004
+ if (response) {
1005
+ this.response = response;
1006
+ this.status = response.status;
1007
+ }
935
1008
  }
936
1009
 
937
- toJSON() {
938
- return {
939
- // Standard
940
- message: this.message,
941
- name: this.name,
942
- // Microsoft
943
- description: this.description,
944
- number: this.number,
945
- // Mozilla
946
- fileName: this.fileName,
947
- lineNumber: this.lineNumber,
948
- columnNumber: this.columnNumber,
949
- stack: this.stack,
950
- // Axios
951
- config: utils$1.toJSONObject(this.config),
952
- code: this.code,
953
- status: this.status,
954
- };
955
- }
1010
+ toJSON() {
1011
+ return {
1012
+ // Standard
1013
+ message: this.message,
1014
+ name: this.name,
1015
+ // Microsoft
1016
+ description: this.description,
1017
+ number: this.number,
1018
+ // Mozilla
1019
+ fileName: this.fileName,
1020
+ lineNumber: this.lineNumber,
1021
+ columnNumber: this.columnNumber,
1022
+ stack: this.stack,
1023
+ // Axios
1024
+ config: utils$1.toJSONObject(this.config),
1025
+ code: this.code,
1026
+ status: this.status,
1027
+ };
1028
+ }
956
1029
  }
957
1030
 
958
1031
  // This can be changed to static properties as soon as the parser options in .eslint.cjs are updated.
@@ -1004,11 +1077,14 @@ function removeBrackets(key) {
1004
1077
  */
1005
1078
  function renderKey(path, key, dots) {
1006
1079
  if (!path) return key;
1007
- return path.concat(key).map(function each(token, i) {
1008
- // eslint-disable-next-line no-param-reassign
1009
- token = removeBrackets(token);
1010
- return !dots && i ? '[' + token + ']' : token;
1011
- }).join(dots ? '.' : '');
1080
+ return path
1081
+ .concat(key)
1082
+ .map(function each(token, i) {
1083
+ // eslint-disable-next-line no-param-reassign
1084
+ token = removeBrackets(token);
1085
+ return !dots && i ? '[' + token + ']' : token;
1086
+ })
1087
+ .join(dots ? '.' : '');
1012
1088
  }
1013
1089
 
1014
1090
  /**
@@ -1058,21 +1134,26 @@ function toFormData(obj, formData, options) {
1058
1134
  formData = formData || new (FormData__default["default"] || FormData)();
1059
1135
 
1060
1136
  // eslint-disable-next-line no-param-reassign
1061
- options = utils$1.toFlatObject(options, {
1062
- metaTokens: true,
1063
- dots: false,
1064
- indexes: false
1065
- }, false, function defined(option, source) {
1066
- // eslint-disable-next-line no-eq-null,eqeqeq
1067
- return !utils$1.isUndefined(source[option]);
1068
- });
1137
+ options = utils$1.toFlatObject(
1138
+ options,
1139
+ {
1140
+ metaTokens: true,
1141
+ dots: false,
1142
+ indexes: false,
1143
+ },
1144
+ false,
1145
+ function defined(option, source) {
1146
+ // eslint-disable-next-line no-eq-null,eqeqeq
1147
+ return !utils$1.isUndefined(source[option]);
1148
+ }
1149
+ );
1069
1150
 
1070
1151
  const metaTokens = options.metaTokens;
1071
1152
  // eslint-disable-next-line no-use-before-define
1072
1153
  const visitor = options.visitor || defaultVisitor;
1073
1154
  const dots = options.dots;
1074
1155
  const indexes = options.indexes;
1075
- const _Blob = options.Blob || typeof Blob !== 'undefined' && Blob;
1156
+ const _Blob = options.Blob || (typeof Blob !== 'undefined' && Blob);
1076
1157
  const useBlob = _Blob && utils$1.isSpecCompliantForm(formData);
1077
1158
 
1078
1159
  if (!utils$1.isFunction(visitor)) {
@@ -1114,6 +1195,11 @@ function toFormData(obj, formData, options) {
1114
1195
  function defaultVisitor(value, key, path) {
1115
1196
  let arr = value;
1116
1197
 
1198
+ if (utils$1.isReactNative(formData) && utils$1.isReactNativeBlob(value)) {
1199
+ formData.append(renderKey(path, key, dots), convertValue(value));
1200
+ return false;
1201
+ }
1202
+
1117
1203
  if (value && !path && typeof value === 'object') {
1118
1204
  if (utils$1.endsWith(key, '{}')) {
1119
1205
  // eslint-disable-next-line no-param-reassign
@@ -1122,17 +1208,22 @@ function toFormData(obj, formData, options) {
1122
1208
  value = JSON.stringify(value);
1123
1209
  } else if (
1124
1210
  (utils$1.isArray(value) && isFlatArray(value)) ||
1125
- ((utils$1.isFileList(value) || utils$1.endsWith(key, '[]')) && (arr = utils$1.toArray(value))
1126
- )) {
1211
+ ((utils$1.isFileList(value) || utils$1.endsWith(key, '[]')) && (arr = utils$1.toArray(value)))
1212
+ ) {
1127
1213
  // eslint-disable-next-line no-param-reassign
1128
1214
  key = removeBrackets(key);
1129
1215
 
1130
1216
  arr.forEach(function each(el, index) {
1131
- !(utils$1.isUndefined(el) || el === null) && formData.append(
1132
- // eslint-disable-next-line no-nested-ternary
1133
- indexes === true ? renderKey([key], index, dots) : (indexes === null ? key : key + '[]'),
1134
- convertValue(el)
1135
- );
1217
+ !(utils$1.isUndefined(el) || el === null) &&
1218
+ formData.append(
1219
+ // eslint-disable-next-line no-nested-ternary
1220
+ indexes === true
1221
+ ? renderKey([key], index, dots)
1222
+ : indexes === null
1223
+ ? key
1224
+ : key + '[]',
1225
+ convertValue(el)
1226
+ );
1136
1227
  });
1137
1228
  return false;
1138
1229
  }
@@ -1152,7 +1243,7 @@ function toFormData(obj, formData, options) {
1152
1243
  const exposedHelpers = Object.assign(predicates, {
1153
1244
  defaultVisitor,
1154
1245
  convertValue,
1155
- isVisitable
1246
+ isVisitable,
1156
1247
  });
1157
1248
 
1158
1249
  function build(value, path) {
@@ -1165,9 +1256,9 @@ function toFormData(obj, formData, options) {
1165
1256
  stack.push(value);
1166
1257
 
1167
1258
  utils$1.forEach(value, function each(el, key) {
1168
- const result = !(utils$1.isUndefined(el) || el === null) && visitor.call(
1169
- formData, el, utils$1.isString(key) ? key.trim() : key, path, exposedHelpers
1170
- );
1259
+ const result =
1260
+ !(utils$1.isUndefined(el) || el === null) &&
1261
+ visitor.call(formData, el, utils$1.isString(key) ? key.trim() : key, path, exposedHelpers);
1171
1262
 
1172
1263
  if (result === true) {
1173
1264
  build(el, path ? path.concat(key) : [key]);
@@ -1202,7 +1293,7 @@ function encode$1(str) {
1202
1293
  ')': '%29',
1203
1294
  '~': '%7E',
1204
1295
  '%20': '+',
1205
- '%00': '\x00'
1296
+ '%00': '\x00',
1206
1297
  };
1207
1298
  return encodeURIComponent(str).replace(/[!'()~]|%20|%00/g, function replacer(match) {
1208
1299
  return charMap[match];
@@ -1230,13 +1321,17 @@ prototype.append = function append(name, value) {
1230
1321
  };
1231
1322
 
1232
1323
  prototype.toString = function toString(encoder) {
1233
- const _encode = encoder ? function(value) {
1234
- return encoder.call(this, value, encode$1);
1235
- } : encode$1;
1324
+ const _encode = encoder
1325
+ ? function (value) {
1326
+ return encoder.call(this, value, encode$1);
1327
+ }
1328
+ : encode$1;
1236
1329
 
1237
- return this._pairs.map(function each(pair) {
1238
- return _encode(pair[0]) + '=' + _encode(pair[1]);
1239
- }, '').join('&');
1330
+ return this._pairs
1331
+ .map(function each(pair) {
1332
+ return _encode(pair[0]) + '=' + _encode(pair[1]);
1333
+ }, '')
1334
+ .join('&');
1240
1335
  };
1241
1336
 
1242
1337
  /**
@@ -1248,11 +1343,11 @@ prototype.toString = function toString(encoder) {
1248
1343
  * @returns {string} The encoded value.
1249
1344
  */
1250
1345
  function encode(val) {
1251
- return encodeURIComponent(val).
1252
- replace(/%3A/gi, ':').
1253
- replace(/%24/g, '$').
1254
- replace(/%2C/gi, ',').
1255
- replace(/%20/g, '+');
1346
+ return encodeURIComponent(val)
1347
+ .replace(/%3A/gi, ':')
1348
+ .replace(/%24/g, '$')
1349
+ .replace(/%2C/gi, ',')
1350
+ .replace(/%20/g, '+');
1256
1351
  }
1257
1352
 
1258
1353
  /**
@@ -1269,11 +1364,13 @@ function buildURL(url, params, options) {
1269
1364
  return url;
1270
1365
  }
1271
1366
 
1272
- const _encode = options && options.encode || encode;
1367
+ const _encode = (options && options.encode) || encode;
1273
1368
 
1274
- const _options = utils$1.isFunction(options) ? {
1275
- serialize: options
1276
- } : options;
1369
+ const _options = utils$1.isFunction(options)
1370
+ ? {
1371
+ serialize: options,
1372
+ }
1373
+ : options;
1277
1374
 
1278
1375
  const serializeFn = _options && _options.serialize;
1279
1376
 
@@ -1282,13 +1379,13 @@ function buildURL(url, params, options) {
1282
1379
  if (serializeFn) {
1283
1380
  serializedParams = serializeFn(params, _options);
1284
1381
  } else {
1285
- serializedParams = utils$1.isURLSearchParams(params) ?
1286
- params.toString() :
1287
- new AxiosURLSearchParams(params, _options).toString(_encode);
1382
+ serializedParams = utils$1.isURLSearchParams(params)
1383
+ ? params.toString()
1384
+ : new AxiosURLSearchParams(params, _options).toString(_encode);
1288
1385
  }
1289
1386
 
1290
1387
  if (serializedParams) {
1291
- const hashmarkIndex = url.indexOf("#");
1388
+ const hashmarkIndex = url.indexOf('#');
1292
1389
 
1293
1390
  if (hashmarkIndex !== -1) {
1294
1391
  url = url.slice(0, hashmarkIndex);
@@ -1318,7 +1415,7 @@ class InterceptorManager {
1318
1415
  fulfilled,
1319
1416
  rejected,
1320
1417
  synchronous: options ? options.synchronous : false,
1321
- runWhen: options ? options.runWhen : null
1418
+ runWhen: options ? options.runWhen : null,
1322
1419
  });
1323
1420
  return this.handlers.length - 1;
1324
1421
  }
@@ -1372,7 +1469,7 @@ const transitionalDefaults = {
1372
1469
  silentJSONParsing: true,
1373
1470
  forcedJSONParsing: true,
1374
1471
  clarifyTimeoutError: false,
1375
- legacyInterceptorReqResOrdering: true
1472
+ legacyInterceptorReqResOrdering: true,
1376
1473
  };
1377
1474
 
1378
1475
  const URLSearchParams = url__default["default"].URLSearchParams;
@@ -1384,12 +1481,12 @@ const DIGIT = '0123456789';
1384
1481
  const ALPHABET = {
1385
1482
  DIGIT,
1386
1483
  ALPHA,
1387
- ALPHA_DIGIT: ALPHA + ALPHA.toUpperCase() + DIGIT
1484
+ ALPHA_DIGIT: ALPHA + ALPHA.toUpperCase() + DIGIT,
1388
1485
  };
1389
1486
 
1390
1487
  const generateString = (size = 16, alphabet = ALPHABET.ALPHA_DIGIT) => {
1391
1488
  let str = '';
1392
- const {length} = alphabet;
1489
+ const { length } = alphabet;
1393
1490
  const randomValues = new Uint32Array(size);
1394
1491
  crypto__default["default"].randomFillSync(randomValues);
1395
1492
  for (let i = 0; i < size; i++) {
@@ -1399,22 +1496,21 @@ const generateString = (size = 16, alphabet = ALPHABET.ALPHA_DIGIT) => {
1399
1496
  return str;
1400
1497
  };
1401
1498
 
1402
-
1403
1499
  const platform$1 = {
1404
1500
  isNode: true,
1405
1501
  classes: {
1406
1502
  URLSearchParams,
1407
1503
  FormData: FormData__default["default"],
1408
- Blob: typeof Blob !== 'undefined' && Blob || null
1504
+ Blob: (typeof Blob !== 'undefined' && Blob) || null,
1409
1505
  },
1410
1506
  ALPHABET,
1411
1507
  generateString,
1412
- protocols: [ 'http', 'https', 'file', 'data' ]
1508
+ protocols: ['http', 'https', 'file', 'data'],
1413
1509
  };
1414
1510
 
1415
1511
  const hasBrowserEnv = typeof window !== 'undefined' && typeof document !== 'undefined';
1416
1512
 
1417
- const _navigator = typeof navigator === 'object' && navigator || undefined;
1513
+ const _navigator = (typeof navigator === 'object' && navigator) || undefined;
1418
1514
 
1419
1515
  /**
1420
1516
  * Determine if we're running in a standard browser environment
@@ -1433,7 +1529,8 @@ const _navigator = typeof navigator === 'object' && navigator || undefined;
1433
1529
  *
1434
1530
  * @returns {boolean}
1435
1531
  */
1436
- const hasStandardBrowserEnv = hasBrowserEnv &&
1532
+ const hasStandardBrowserEnv =
1533
+ hasBrowserEnv &&
1437
1534
  (!_navigator || ['ReactNative', 'NativeScript', 'NS'].indexOf(_navigator.product) < 0);
1438
1535
 
1439
1536
  /**
@@ -1454,7 +1551,7 @@ const hasStandardBrowserWebWorkerEnv = (() => {
1454
1551
  );
1455
1552
  })();
1456
1553
 
1457
- const origin = hasBrowserEnv && window.location.href || 'http://localhost';
1554
+ const origin = (hasBrowserEnv && window.location.href) || 'http://localhost';
1458
1555
 
1459
1556
  const utils = /*#__PURE__*/Object.freeze({
1460
1557
  __proto__: null,
@@ -1467,12 +1564,12 @@ const utils = /*#__PURE__*/Object.freeze({
1467
1564
 
1468
1565
  const platform = {
1469
1566
  ...utils,
1470
- ...platform$1
1567
+ ...platform$1,
1471
1568
  };
1472
1569
 
1473
1570
  function toURLEncodedForm(data, options) {
1474
1571
  return toFormData(data, new platform.classes.URLSearchParams(), {
1475
- visitor: function(value, key, path, helpers) {
1572
+ visitor: function (value, key, path, helpers) {
1476
1573
  if (platform.isNode && utils$1.isBuffer(value)) {
1477
1574
  this.append(key, value.toString('base64'));
1478
1575
  return false;
@@ -1480,7 +1577,7 @@ function toURLEncodedForm(data, options) {
1480
1577
 
1481
1578
  return helpers.defaultVisitor.apply(this, arguments);
1482
1579
  },
1483
- ...options
1580
+ ...options,
1484
1581
  });
1485
1582
  }
1486
1583
 
@@ -1496,7 +1593,7 @@ function parsePropPath(name) {
1496
1593
  // foo.x.y.z
1497
1594
  // foo-x-y-z
1498
1595
  // foo x y z
1499
- return utils$1.matchAll(/\w+|\[(\w*)]/g, name).map(match => {
1596
+ return utils$1.matchAll(/\w+|\[(\w*)]/g, name).map((match) => {
1500
1597
  return match[0] === '[]' ? '' : match[1] || match[0];
1501
1598
  });
1502
1599
  }
@@ -1600,96 +1697,107 @@ function stringifySafely(rawValue, parser, encoder) {
1600
1697
  }
1601
1698
 
1602
1699
  const defaults = {
1603
-
1604
1700
  transitional: transitionalDefaults,
1605
1701
 
1606
1702
  adapter: ['xhr', 'http', 'fetch'],
1607
1703
 
1608
- transformRequest: [function transformRequest(data, headers) {
1609
- const contentType = headers.getContentType() || '';
1610
- const hasJSONContentType = contentType.indexOf('application/json') > -1;
1611
- const isObjectPayload = utils$1.isObject(data);
1704
+ transformRequest: [
1705
+ function transformRequest(data, headers) {
1706
+ const contentType = headers.getContentType() || '';
1707
+ const hasJSONContentType = contentType.indexOf('application/json') > -1;
1708
+ const isObjectPayload = utils$1.isObject(data);
1612
1709
 
1613
- if (isObjectPayload && utils$1.isHTMLForm(data)) {
1614
- data = new FormData(data);
1615
- }
1710
+ if (isObjectPayload && utils$1.isHTMLForm(data)) {
1711
+ data = new FormData(data);
1712
+ }
1616
1713
 
1617
- const isFormData = utils$1.isFormData(data);
1714
+ const isFormData = utils$1.isFormData(data);
1618
1715
 
1619
- if (isFormData) {
1620
- return hasJSONContentType ? JSON.stringify(formDataToJSON(data)) : data;
1621
- }
1716
+ if (isFormData) {
1717
+ return hasJSONContentType ? JSON.stringify(formDataToJSON(data)) : data;
1718
+ }
1622
1719
 
1623
- if (utils$1.isArrayBuffer(data) ||
1624
- utils$1.isBuffer(data) ||
1625
- utils$1.isStream(data) ||
1626
- utils$1.isFile(data) ||
1627
- utils$1.isBlob(data) ||
1628
- utils$1.isReadableStream(data)
1629
- ) {
1630
- return data;
1631
- }
1632
- if (utils$1.isArrayBufferView(data)) {
1633
- return data.buffer;
1634
- }
1635
- if (utils$1.isURLSearchParams(data)) {
1636
- headers.setContentType('application/x-www-form-urlencoded;charset=utf-8', false);
1637
- return data.toString();
1638
- }
1720
+ if (
1721
+ utils$1.isArrayBuffer(data) ||
1722
+ utils$1.isBuffer(data) ||
1723
+ utils$1.isStream(data) ||
1724
+ utils$1.isFile(data) ||
1725
+ utils$1.isBlob(data) ||
1726
+ utils$1.isReadableStream(data)
1727
+ ) {
1728
+ return data;
1729
+ }
1730
+ if (utils$1.isArrayBufferView(data)) {
1731
+ return data.buffer;
1732
+ }
1733
+ if (utils$1.isURLSearchParams(data)) {
1734
+ headers.setContentType('application/x-www-form-urlencoded;charset=utf-8', false);
1735
+ return data.toString();
1736
+ }
1639
1737
 
1640
- let isFileList;
1738
+ let isFileList;
1641
1739
 
1642
- if (isObjectPayload) {
1643
- if (contentType.indexOf('application/x-www-form-urlencoded') > -1) {
1644
- return toURLEncodedForm(data, this.formSerializer).toString();
1645
- }
1740
+ if (isObjectPayload) {
1741
+ if (contentType.indexOf('application/x-www-form-urlencoded') > -1) {
1742
+ return toURLEncodedForm(data, this.formSerializer).toString();
1743
+ }
1646
1744
 
1647
- if ((isFileList = utils$1.isFileList(data)) || contentType.indexOf('multipart/form-data') > -1) {
1648
- const _FormData = this.env && this.env.FormData;
1745
+ if (
1746
+ (isFileList = utils$1.isFileList(data)) ||
1747
+ contentType.indexOf('multipart/form-data') > -1
1748
+ ) {
1749
+ const _FormData = this.env && this.env.FormData;
1649
1750
 
1650
- return toFormData(
1651
- isFileList ? {'files[]': data} : data,
1652
- _FormData && new _FormData(),
1653
- this.formSerializer
1654
- );
1751
+ return toFormData(
1752
+ isFileList ? { 'files[]': data } : data,
1753
+ _FormData && new _FormData(),
1754
+ this.formSerializer
1755
+ );
1756
+ }
1655
1757
  }
1656
- }
1657
1758
 
1658
- if (isObjectPayload || hasJSONContentType ) {
1659
- headers.setContentType('application/json', false);
1660
- return stringifySafely(data);
1661
- }
1759
+ if (isObjectPayload || hasJSONContentType) {
1760
+ headers.setContentType('application/json', false);
1761
+ return stringifySafely(data);
1762
+ }
1662
1763
 
1663
- return data;
1664
- }],
1764
+ return data;
1765
+ },
1766
+ ],
1665
1767
 
1666
- transformResponse: [function transformResponse(data) {
1667
- const transitional = this.transitional || defaults.transitional;
1668
- const forcedJSONParsing = transitional && transitional.forcedJSONParsing;
1669
- const JSONRequested = this.responseType === 'json';
1768
+ transformResponse: [
1769
+ function transformResponse(data) {
1770
+ const transitional = this.transitional || defaults.transitional;
1771
+ const forcedJSONParsing = transitional && transitional.forcedJSONParsing;
1772
+ const JSONRequested = this.responseType === 'json';
1670
1773
 
1671
- if (utils$1.isResponse(data) || utils$1.isReadableStream(data)) {
1672
- return data;
1673
- }
1774
+ if (utils$1.isResponse(data) || utils$1.isReadableStream(data)) {
1775
+ return data;
1776
+ }
1674
1777
 
1675
- if (data && utils$1.isString(data) && ((forcedJSONParsing && !this.responseType) || JSONRequested)) {
1676
- const silentJSONParsing = transitional && transitional.silentJSONParsing;
1677
- const strictJSONParsing = !silentJSONParsing && JSONRequested;
1778
+ if (
1779
+ data &&
1780
+ utils$1.isString(data) &&
1781
+ ((forcedJSONParsing && !this.responseType) || JSONRequested)
1782
+ ) {
1783
+ const silentJSONParsing = transitional && transitional.silentJSONParsing;
1784
+ const strictJSONParsing = !silentJSONParsing && JSONRequested;
1678
1785
 
1679
- try {
1680
- return JSON.parse(data, this.parseReviver);
1681
- } catch (e) {
1682
- if (strictJSONParsing) {
1683
- if (e.name === 'SyntaxError') {
1684
- throw AxiosError$1.from(e, AxiosError$1.ERR_BAD_RESPONSE, this, null, this.response);
1786
+ try {
1787
+ return JSON.parse(data, this.parseReviver);
1788
+ } catch (e) {
1789
+ if (strictJSONParsing) {
1790
+ if (e.name === 'SyntaxError') {
1791
+ throw AxiosError$1.from(e, AxiosError$1.ERR_BAD_RESPONSE, this, null, this.response);
1792
+ }
1793
+ throw e;
1685
1794
  }
1686
- throw e;
1687
1795
  }
1688
1796
  }
1689
- }
1690
1797
 
1691
- return data;
1692
- }],
1798
+ return data;
1799
+ },
1800
+ ],
1693
1801
 
1694
1802
  /**
1695
1803
  * A timeout in milliseconds to abort a request. If set to 0 (default) a
@@ -1705,7 +1813,7 @@ const defaults = {
1705
1813
 
1706
1814
  env: {
1707
1815
  FormData: platform.classes.FormData,
1708
- Blob: platform.classes.Blob
1816
+ Blob: platform.classes.Blob,
1709
1817
  },
1710
1818
 
1711
1819
  validateStatus: function validateStatus(status) {
@@ -1714,10 +1822,10 @@ const defaults = {
1714
1822
 
1715
1823
  headers: {
1716
1824
  common: {
1717
- 'Accept': 'application/json, text/plain, */*',
1718
- 'Content-Type': undefined
1719
- }
1720
- }
1825
+ Accept: 'application/json, text/plain, */*',
1826
+ 'Content-Type': undefined,
1827
+ },
1828
+ },
1721
1829
  };
1722
1830
 
1723
1831
  utils$1.forEach(['delete', 'get', 'head', 'post', 'put', 'patch'], (method) => {
@@ -1729,10 +1837,23 @@ const defaults$1 = defaults;
1729
1837
  // RawAxiosHeaders whose duplicates are ignored by node
1730
1838
  // c.f. https://nodejs.org/api/http.html#http_message_headers
1731
1839
  const ignoreDuplicateOf = utils$1.toObjectSet([
1732
- 'age', 'authorization', 'content-length', 'content-type', 'etag',
1733
- 'expires', 'from', 'host', 'if-modified-since', 'if-unmodified-since',
1734
- 'last-modified', 'location', 'max-forwards', 'proxy-authorization',
1735
- 'referer', 'retry-after', 'user-agent'
1840
+ 'age',
1841
+ 'authorization',
1842
+ 'content-length',
1843
+ 'content-type',
1844
+ 'etag',
1845
+ 'expires',
1846
+ 'from',
1847
+ 'host',
1848
+ 'if-modified-since',
1849
+ 'if-unmodified-since',
1850
+ 'last-modified',
1851
+ 'location',
1852
+ 'max-forwards',
1853
+ 'proxy-authorization',
1854
+ 'referer',
1855
+ 'retry-after',
1856
+ 'user-agent',
1736
1857
  ]);
1737
1858
 
1738
1859
  /**
@@ -1749,31 +1870,32 @@ const ignoreDuplicateOf = utils$1.toObjectSet([
1749
1870
  *
1750
1871
  * @returns {Object} Headers parsed into an object
1751
1872
  */
1752
- const parseHeaders = rawHeaders => {
1873
+ const parseHeaders = (rawHeaders) => {
1753
1874
  const parsed = {};
1754
1875
  let key;
1755
1876
  let val;
1756
1877
  let i;
1757
1878
 
1758
- rawHeaders && rawHeaders.split('\n').forEach(function parser(line) {
1759
- i = line.indexOf(':');
1760
- key = line.substring(0, i).trim().toLowerCase();
1761
- val = line.substring(i + 1).trim();
1879
+ rawHeaders &&
1880
+ rawHeaders.split('\n').forEach(function parser(line) {
1881
+ i = line.indexOf(':');
1882
+ key = line.substring(0, i).trim().toLowerCase();
1883
+ val = line.substring(i + 1).trim();
1762
1884
 
1763
- if (!key || (parsed[key] && ignoreDuplicateOf[key])) {
1764
- return;
1765
- }
1885
+ if (!key || (parsed[key] && ignoreDuplicateOf[key])) {
1886
+ return;
1887
+ }
1766
1888
 
1767
- if (key === 'set-cookie') {
1768
- if (parsed[key]) {
1769
- parsed[key].push(val);
1889
+ if (key === 'set-cookie') {
1890
+ if (parsed[key]) {
1891
+ parsed[key].push(val);
1892
+ } else {
1893
+ parsed[key] = [val];
1894
+ }
1770
1895
  } else {
1771
- parsed[key] = [val];
1896
+ parsed[key] = parsed[key] ? parsed[key] + ', ' + val : val;
1772
1897
  }
1773
- } else {
1774
- parsed[key] = parsed[key] ? parsed[key] + ', ' + val : val;
1775
- }
1776
- });
1898
+ });
1777
1899
 
1778
1900
  return parsed;
1779
1901
  };
@@ -1827,8 +1949,10 @@ function matchHeaderValue(context, value, header, filter, isHeaderNameFilter) {
1827
1949
  }
1828
1950
 
1829
1951
  function formatHeader(header) {
1830
- return header.trim()
1831
- .toLowerCase().replace(/([a-z\d])(\w*)/g, (w, char, str) => {
1952
+ return header
1953
+ .trim()
1954
+ .toLowerCase()
1955
+ .replace(/([a-z\d])(\w*)/g, (w, char, str) => {
1832
1956
  return char.toUpperCase() + str;
1833
1957
  });
1834
1958
  }
@@ -1836,12 +1960,12 @@ function formatHeader(header) {
1836
1960
  function buildAccessors(obj, header) {
1837
1961
  const accessorName = utils$1.toCamelCase(' ' + header);
1838
1962
 
1839
- ['get', 'set', 'has'].forEach(methodName => {
1963
+ ['get', 'set', 'has'].forEach((methodName) => {
1840
1964
  Object.defineProperty(obj, methodName + accessorName, {
1841
- value: function(arg1, arg2, arg3) {
1965
+ value: function (arg1, arg2, arg3) {
1842
1966
  return this[methodName].call(this, header, arg1, arg2, arg3);
1843
1967
  },
1844
- configurable: true
1968
+ configurable: true,
1845
1969
  });
1846
1970
  });
1847
1971
  }
@@ -1863,7 +1987,12 @@ class AxiosHeaders {
1863
1987
 
1864
1988
  const key = utils$1.findKey(self, lHeader);
1865
1989
 
1866
- if(!key || self[key] === undefined || _rewrite === true || (_rewrite === undefined && self[key] !== false)) {
1990
+ if (
1991
+ !key ||
1992
+ self[key] === undefined ||
1993
+ _rewrite === true ||
1994
+ (_rewrite === undefined && self[key] !== false)
1995
+ ) {
1867
1996
  self[key || _header] = normalizeValue(_value);
1868
1997
  }
1869
1998
  }
@@ -1873,17 +2002,22 @@ class AxiosHeaders {
1873
2002
 
1874
2003
  if (utils$1.isPlainObject(header) || header instanceof this.constructor) {
1875
2004
  setHeaders(header, valueOrRewrite);
1876
- } else if(utils$1.isString(header) && (header = header.trim()) && !isValidHeaderName(header)) {
2005
+ } else if (utils$1.isString(header) && (header = header.trim()) && !isValidHeaderName(header)) {
1877
2006
  setHeaders(parseHeaders(header), valueOrRewrite);
1878
2007
  } else if (utils$1.isObject(header) && utils$1.isIterable(header)) {
1879
- let obj = {}, dest, key;
2008
+ let obj = {},
2009
+ dest,
2010
+ key;
1880
2011
  for (const entry of header) {
1881
2012
  if (!utils$1.isArray(entry)) {
1882
2013
  throw TypeError('Object iterator must return a key-value pair');
1883
2014
  }
1884
2015
 
1885
- obj[key = entry[0]] = (dest = obj[key]) ?
1886
- (utils$1.isArray(dest) ? [...dest, entry[1]] : [dest, entry[1]]) : entry[1];
2016
+ obj[(key = entry[0])] = (dest = obj[key])
2017
+ ? utils$1.isArray(dest)
2018
+ ? [...dest, entry[1]]
2019
+ : [dest, entry[1]]
2020
+ : entry[1];
1887
2021
  }
1888
2022
 
1889
2023
  setHeaders(obj, valueOrRewrite);
@@ -1930,7 +2064,11 @@ class AxiosHeaders {
1930
2064
  if (header) {
1931
2065
  const key = utils$1.findKey(this, header);
1932
2066
 
1933
- return !!(key && this[key] !== undefined && (!matcher || matchHeaderValue(this, this[key], key, matcher)));
2067
+ return !!(
2068
+ key &&
2069
+ this[key] !== undefined &&
2070
+ (!matcher || matchHeaderValue(this, this[key], key, matcher))
2071
+ );
1934
2072
  }
1935
2073
 
1936
2074
  return false;
@@ -1970,7 +2108,7 @@ class AxiosHeaders {
1970
2108
 
1971
2109
  while (i--) {
1972
2110
  const key = keys[i];
1973
- if(!matcher || matchHeaderValue(this, this[key], key, matcher, true)) {
2111
+ if (!matcher || matchHeaderValue(this, this[key], key, matcher, true)) {
1974
2112
  delete this[key];
1975
2113
  deleted = true;
1976
2114
  }
@@ -2014,7 +2152,9 @@ class AxiosHeaders {
2014
2152
  const obj = Object.create(null);
2015
2153
 
2016
2154
  utils$1.forEach(this, (value, header) => {
2017
- value != null && value !== false && (obj[header] = asStrings && utils$1.isArray(value) ? value.join(', ') : value);
2155
+ value != null &&
2156
+ value !== false &&
2157
+ (obj[header] = asStrings && utils$1.isArray(value) ? value.join(', ') : value);
2018
2158
  });
2019
2159
 
2020
2160
  return obj;
@@ -2025,11 +2165,13 @@ class AxiosHeaders {
2025
2165
  }
2026
2166
 
2027
2167
  toString() {
2028
- return Object.entries(this.toJSON()).map(([header, value]) => header + ': ' + value).join('\n');
2168
+ return Object.entries(this.toJSON())
2169
+ .map(([header, value]) => header + ': ' + value)
2170
+ .join('\n');
2029
2171
  }
2030
2172
 
2031
2173
  getSetCookie() {
2032
- return this.get("set-cookie") || [];
2174
+ return this.get('set-cookie') || [];
2033
2175
  }
2034
2176
 
2035
2177
  get [Symbol.toStringTag]() {
@@ -2049,9 +2191,12 @@ class AxiosHeaders {
2049
2191
  }
2050
2192
 
2051
2193
  static accessor(header) {
2052
- const internals = this[$internals] = (this[$internals] = {
2053
- accessors: {}
2054
- });
2194
+ const internals =
2195
+ (this[$internals] =
2196
+ this[$internals] =
2197
+ {
2198
+ accessors: {},
2199
+ });
2055
2200
 
2056
2201
  const accessors = internals.accessors;
2057
2202
  const prototype = this.prototype;
@@ -2071,17 +2216,24 @@ class AxiosHeaders {
2071
2216
  }
2072
2217
  }
2073
2218
 
2074
- AxiosHeaders.accessor(['Content-Type', 'Content-Length', 'Accept', 'Accept-Encoding', 'User-Agent', 'Authorization']);
2219
+ AxiosHeaders.accessor([
2220
+ 'Content-Type',
2221
+ 'Content-Length',
2222
+ 'Accept',
2223
+ 'Accept-Encoding',
2224
+ 'User-Agent',
2225
+ 'Authorization',
2226
+ ]);
2075
2227
 
2076
2228
  // reserved names hotfix
2077
- utils$1.reduceDescriptors(AxiosHeaders.prototype, ({value}, key) => {
2229
+ utils$1.reduceDescriptors(AxiosHeaders.prototype, ({ value }, key) => {
2078
2230
  let mapped = key[0].toUpperCase() + key.slice(1); // map `set` => `Set`
2079
2231
  return {
2080
2232
  get: () => value,
2081
2233
  set(headerValue) {
2082
2234
  this[mapped] = headerValue;
2083
- }
2084
- }
2235
+ },
2236
+ };
2085
2237
  });
2086
2238
 
2087
2239
  utils$1.freezeMethods(AxiosHeaders);
@@ -2148,13 +2300,17 @@ function settle(resolve, reject, response) {
2148
2300
  if (!response.status || !validateStatus || validateStatus(response.status)) {
2149
2301
  resolve(response);
2150
2302
  } else {
2151
- reject(new AxiosError$1(
2152
- 'Request failed with status code ' + response.status,
2153
- [AxiosError$1.ERR_BAD_REQUEST, AxiosError$1.ERR_BAD_RESPONSE][Math.floor(response.status / 100) - 4],
2154
- response.config,
2155
- response.request,
2156
- response
2157
- ));
2303
+ reject(
2304
+ new AxiosError$1(
2305
+ 'Request failed with status code ' + response.status,
2306
+ [AxiosError$1.ERR_BAD_REQUEST, AxiosError$1.ERR_BAD_RESPONSE][
2307
+ Math.floor(response.status / 100) - 4
2308
+ ],
2309
+ response.config,
2310
+ response.request,
2311
+ response
2312
+ )
2313
+ );
2158
2314
  }
2159
2315
  }
2160
2316
 
@@ -2208,11 +2364,11 @@ function buildFullPath(baseURL, requestedURL, allowAbsoluteUrls) {
2208
2364
  return requestedURL;
2209
2365
  }
2210
2366
 
2211
- const VERSION = "1.13.5";
2367
+ const VERSION = "1.13.6";
2212
2368
 
2213
2369
  function parseProtocol(url) {
2214
2370
  const match = /^([-+\w]{1,25})(:?\/\/|:)/.exec(url);
2215
- return match && match[1] || '';
2371
+ return (match && match[1]) || '';
2216
2372
  }
2217
2373
 
2218
2374
  const DATA_URL_PATTERN = /^(?:([^;]+);)?(?:[^;]+;)?(base64|),([\s\S]*)$/;
@@ -2228,7 +2384,7 @@ const DATA_URL_PATTERN = /^(?:([^;]+);)?(?:[^;]+;)?(base64|),([\s\S]*)$/;
2228
2384
  * @returns {Buffer|Blob}
2229
2385
  */
2230
2386
  function fromDataURI(uri, asBlob, options) {
2231
- const _Blob = options && options.Blob || platform.classes.Blob;
2387
+ const _Blob = (options && options.Blob) || platform.classes.Blob;
2232
2388
  const protocol = parseProtocol(uri);
2233
2389
 
2234
2390
  if (asBlob === undefined && _Blob) {
@@ -2254,7 +2410,7 @@ function fromDataURI(uri, asBlob, options) {
2254
2410
  throw new AxiosError$1('Blob is not supported', AxiosError$1.ERR_NOT_SUPPORT);
2255
2411
  }
2256
2412
 
2257
- return new _Blob([buffer], {type: mime});
2413
+ return new _Blob([buffer], { type: mime });
2258
2414
  }
2259
2415
 
2260
2416
  return buffer;
@@ -2265,24 +2421,29 @@ function fromDataURI(uri, asBlob, options) {
2265
2421
 
2266
2422
  const kInternals = Symbol('internals');
2267
2423
 
2268
- class AxiosTransformStream extends stream__default["default"].Transform{
2424
+ class AxiosTransformStream extends stream__default["default"].Transform {
2269
2425
  constructor(options) {
2270
- options = utils$1.toFlatObject(options, {
2271
- maxRate: 0,
2272
- chunkSize: 64 * 1024,
2273
- minChunkSize: 100,
2274
- timeWindow: 500,
2275
- ticksRate: 2,
2276
- samplesCount: 15
2277
- }, null, (prop, source) => {
2278
- return !utils$1.isUndefined(source[prop]);
2279
- });
2426
+ options = utils$1.toFlatObject(
2427
+ options,
2428
+ {
2429
+ maxRate: 0,
2430
+ chunkSize: 64 * 1024,
2431
+ minChunkSize: 100,
2432
+ timeWindow: 500,
2433
+ ticksRate: 2,
2434
+ samplesCount: 15,
2435
+ },
2436
+ null,
2437
+ (prop, source) => {
2438
+ return !utils$1.isUndefined(source[prop]);
2439
+ }
2440
+ );
2280
2441
 
2281
2442
  super({
2282
- readableHighWaterMark: options.chunkSize
2443
+ readableHighWaterMark: options.chunkSize,
2283
2444
  });
2284
2445
 
2285
- const internals = this[kInternals] = {
2446
+ const internals = (this[kInternals] = {
2286
2447
  timeWindow: options.timeWindow,
2287
2448
  chunkSize: options.chunkSize,
2288
2449
  maxRate: options.maxRate,
@@ -2292,10 +2453,10 @@ class AxiosTransformStream extends stream__default["default"].Transform{
2292
2453
  notifiedBytesLoaded: 0,
2293
2454
  ts: Date.now(),
2294
2455
  bytes: 0,
2295
- onReadCallback: null
2296
- };
2456
+ onReadCallback: null,
2457
+ });
2297
2458
 
2298
- this.on('newListener', event => {
2459
+ this.on('newListener', (event) => {
2299
2460
  if (event === 'progress') {
2300
2461
  if (!internals.isCaptured) {
2301
2462
  internals.isCaptured = true;
@@ -2323,8 +2484,11 @@ class AxiosTransformStream extends stream__default["default"].Transform{
2323
2484
  const timeWindow = internals.timeWindow;
2324
2485
 
2325
2486
  const divider = 1000 / timeWindow;
2326
- const bytesThreshold = (maxRate / divider);
2327
- const minChunkSize = internals.minChunkSize !== false ? Math.max(internals.minChunkSize, bytesThreshold * 0.01) : 0;
2487
+ const bytesThreshold = maxRate / divider;
2488
+ const minChunkSize =
2489
+ internals.minChunkSize !== false
2490
+ ? Math.max(internals.minChunkSize, bytesThreshold * 0.01)
2491
+ : 0;
2328
2492
 
2329
2493
  const pushChunk = (_chunk, _callback) => {
2330
2494
  const bytes = Buffer.byteLength(_chunk);
@@ -2353,7 +2517,7 @@ class AxiosTransformStream extends stream__default["default"].Transform{
2353
2517
  if (maxRate) {
2354
2518
  const now = Date.now();
2355
2519
 
2356
- if (!internals.ts || (passed = (now - internals.ts)) >= timeWindow) {
2520
+ if (!internals.ts || (passed = now - internals.ts) >= timeWindow) {
2357
2521
  internals.ts = now;
2358
2522
  bytesLeft = bytesThreshold - internals.bytes;
2359
2523
  internals.bytes = bytesLeft < 0 ? -bytesLeft : 0;
@@ -2376,14 +2540,19 @@ class AxiosTransformStream extends stream__default["default"].Transform{
2376
2540
  }
2377
2541
  }
2378
2542
 
2379
- if (maxChunkSize && chunkSize > maxChunkSize && (chunkSize - maxChunkSize) > minChunkSize) {
2543
+ if (maxChunkSize && chunkSize > maxChunkSize && chunkSize - maxChunkSize > minChunkSize) {
2380
2544
  chunkRemainder = _chunk.subarray(maxChunkSize);
2381
2545
  _chunk = _chunk.subarray(0, maxChunkSize);
2382
2546
  }
2383
2547
 
2384
- pushChunk(_chunk, chunkRemainder ? () => {
2385
- process.nextTick(_callback, null, chunkRemainder);
2386
- } : _callback);
2548
+ pushChunk(
2549
+ _chunk,
2550
+ chunkRemainder
2551
+ ? () => {
2552
+ process.nextTick(_callback, null, chunkRemainder);
2553
+ }
2554
+ : _callback
2555
+ );
2387
2556
  };
2388
2557
 
2389
2558
  transformChunk(chunk, function transformNextChunk(err, _chunk) {
@@ -2402,7 +2571,7 @@ class AxiosTransformStream extends stream__default["default"].Transform{
2402
2571
 
2403
2572
  const AxiosTransformStream$1 = AxiosTransformStream;
2404
2573
 
2405
- const {asyncIterator} = Symbol;
2574
+ const { asyncIterator } = Symbol;
2406
2575
 
2407
2576
  const readBlob = async function* (blob) {
2408
2577
  if (blob.stream) {
@@ -2428,7 +2597,7 @@ const CRLF_BYTES_COUNT = 2;
2428
2597
 
2429
2598
  class FormDataPart {
2430
2599
  constructor(name, value) {
2431
- const {escapeName} = this.constructor;
2600
+ const { escapeName } = this.constructor;
2432
2601
  const isStringValue = utils$1.isString(value);
2433
2602
 
2434
2603
  let headers = `Content-Disposition: form-data; name="${escapeName(name)}"${
@@ -2438,7 +2607,7 @@ class FormDataPart {
2438
2607
  if (isStringValue) {
2439
2608
  value = textEncoder.encode(String(value).replace(/\r?\n|\r\n?/g, CRLF));
2440
2609
  } else {
2441
- headers += `Content-Type: ${value.type || "application/octet-stream"}${CRLF}`;
2610
+ headers += `Content-Type: ${value.type || 'application/octet-stream'}${CRLF}`;
2442
2611
  }
2443
2612
 
2444
2613
  this.headers = textEncoder.encode(headers + CRLF);
@@ -2451,12 +2620,12 @@ class FormDataPart {
2451
2620
  this.value = value;
2452
2621
  }
2453
2622
 
2454
- async *encode(){
2623
+ async *encode() {
2455
2624
  yield this.headers;
2456
2625
 
2457
- const {value} = this;
2626
+ const { value } = this;
2458
2627
 
2459
- if(utils$1.isTypedArray(value)) {
2628
+ if (utils$1.isTypedArray(value)) {
2460
2629
  yield value;
2461
2630
  } else {
2462
2631
  yield* readBlob$1(value);
@@ -2466,11 +2635,15 @@ class FormDataPart {
2466
2635
  }
2467
2636
 
2468
2637
  static escapeName(name) {
2469
- return String(name).replace(/[\r\n"]/g, (match) => ({
2470
- '\r' : '%0D',
2471
- '\n' : '%0A',
2472
- '"' : '%22',
2473
- }[match]));
2638
+ return String(name).replace(
2639
+ /[\r\n"]/g,
2640
+ (match) =>
2641
+ ({
2642
+ '\r': '%0D',
2643
+ '\n': '%0A',
2644
+ '"': '%22',
2645
+ })[match]
2646
+ );
2474
2647
  }
2475
2648
  }
2476
2649
 
@@ -2478,15 +2651,15 @@ const formDataToStream = (form, headersHandler, options) => {
2478
2651
  const {
2479
2652
  tag = 'form-data-boundary',
2480
2653
  size = 25,
2481
- boundary = tag + '-' + platform.generateString(size, BOUNDARY_ALPHABET)
2654
+ boundary = tag + '-' + platform.generateString(size, BOUNDARY_ALPHABET),
2482
2655
  } = options || {};
2483
2656
 
2484
- if(!utils$1.isFormData(form)) {
2657
+ if (!utils$1.isFormData(form)) {
2485
2658
  throw TypeError('FormData instance required');
2486
2659
  }
2487
2660
 
2488
2661
  if (boundary.length < 1 || boundary.length > 70) {
2489
- throw Error('boundary must be 10-70 characters long')
2662
+ throw Error('boundary must be 10-70 characters long');
2490
2663
  }
2491
2664
 
2492
2665
  const boundaryBytes = textEncoder.encode('--' + boundary + CRLF);
@@ -2504,7 +2677,7 @@ const formDataToStream = (form, headersHandler, options) => {
2504
2677
  contentLength = utils$1.toFiniteNumber(contentLength);
2505
2678
 
2506
2679
  const computedHeaders = {
2507
- 'Content-Type': `multipart/form-data; boundary=${boundary}`
2680
+ 'Content-Type': `multipart/form-data; boundary=${boundary}`,
2508
2681
  };
2509
2682
 
2510
2683
  if (Number.isFinite(contentLength)) {
@@ -2513,14 +2686,16 @@ const formDataToStream = (form, headersHandler, options) => {
2513
2686
 
2514
2687
  headersHandler && headersHandler(computedHeaders);
2515
2688
 
2516
- return stream.Readable.from((async function *() {
2517
- for(const part of parts) {
2518
- yield boundaryBytes;
2519
- yield* part.encode();
2520
- }
2689
+ return stream.Readable.from(
2690
+ (async function* () {
2691
+ for (const part of parts) {
2692
+ yield boundaryBytes;
2693
+ yield* part.encode();
2694
+ }
2521
2695
 
2522
- yield footerBytes;
2523
- })());
2696
+ yield footerBytes;
2697
+ })()
2698
+ );
2524
2699
  };
2525
2700
 
2526
2701
  const formDataToStream$1 = formDataToStream;
@@ -2536,10 +2711,11 @@ class ZlibHeaderTransformStream extends stream__default["default"].Transform {
2536
2711
  this._transform = this.__transform;
2537
2712
 
2538
2713
  // Add Default Compression headers if no zlib headers are present
2539
- if (chunk[0] !== 120) { // Hex: 78
2714
+ if (chunk[0] !== 120) {
2715
+ // Hex: 78
2540
2716
  const header = Buffer.alloc(2);
2541
2717
  header[0] = 120; // Hex: 78
2542
- header[1] = 156; // Hex: 9C
2718
+ header[1] = 156; // Hex: 9C
2543
2719
  this.push(header, encoding);
2544
2720
  }
2545
2721
  }
@@ -2551,16 +2727,18 @@ class ZlibHeaderTransformStream extends stream__default["default"].Transform {
2551
2727
  const ZlibHeaderTransformStream$1 = ZlibHeaderTransformStream;
2552
2728
 
2553
2729
  const callbackify = (fn, reducer) => {
2554
- return utils$1.isAsyncFn(fn) ? function (...args) {
2555
- const cb = args.pop();
2556
- fn.apply(this, args).then((value) => {
2557
- try {
2558
- reducer ? cb(null, ...reducer(value)) : cb(null, value);
2559
- } catch (err) {
2560
- cb(err);
2730
+ return utils$1.isAsyncFn(fn)
2731
+ ? function (...args) {
2732
+ const cb = args.pop();
2733
+ fn.apply(this, args).then((value) => {
2734
+ try {
2735
+ reducer ? cb(null, ...reducer(value)) : cb(null, value);
2736
+ } catch (err) {
2737
+ cb(err);
2738
+ }
2739
+ }, cb);
2561
2740
  }
2562
- }, cb);
2563
- } : fn;
2741
+ : fn;
2564
2742
  };
2565
2743
 
2566
2744
  const callbackify$1 = callbackify;
@@ -2613,7 +2791,7 @@ function speedometer(samplesCount, min) {
2613
2791
 
2614
2792
  const passed = startedAt && now - startedAt;
2615
2793
 
2616
- return passed ? Math.round(bytesCount * 1000 / passed) : undefined;
2794
+ return passed ? Math.round((bytesCount * 1000) / passed) : undefined;
2617
2795
  };
2618
2796
  }
2619
2797
 
@@ -2642,7 +2820,7 @@ function throttle(fn, freq) {
2642
2820
  const throttled = (...args) => {
2643
2821
  const now = Date.now();
2644
2822
  const passed = now - timestamp;
2645
- if ( passed >= threshold) {
2823
+ if (passed >= threshold) {
2646
2824
  invoke(args, now);
2647
2825
  } else {
2648
2826
  lastArgs = args;
@@ -2664,7 +2842,7 @@ const progressEventReducer = (listener, isDownloadStream, freq = 3) => {
2664
2842
  let bytesNotified = 0;
2665
2843
  const _speedometer = speedometer(50, 250);
2666
2844
 
2667
- return throttle(e => {
2845
+ return throttle((e) => {
2668
2846
  const loaded = e.loaded;
2669
2847
  const total = e.lengthComputable ? e.total : undefined;
2670
2848
  const progressBytes = loaded - bytesNotified;
@@ -2676,13 +2854,13 @@ const progressEventReducer = (listener, isDownloadStream, freq = 3) => {
2676
2854
  const data = {
2677
2855
  loaded,
2678
2856
  total,
2679
- progress: total ? (loaded / total) : undefined,
2857
+ progress: total ? loaded / total : undefined,
2680
2858
  bytes: progressBytes,
2681
2859
  rate: rate ? rate : undefined,
2682
2860
  estimated: rate && total && inRange ? (total - loaded) / rate : undefined,
2683
2861
  event: e,
2684
2862
  lengthComputable: total != null,
2685
- [isDownloadStream ? 'download' : 'upload']: true
2863
+ [isDownloadStream ? 'download' : 'upload']: true,
2686
2864
  };
2687
2865
 
2688
2866
  listener(data);
@@ -2692,14 +2870,21 @@ const progressEventReducer = (listener, isDownloadStream, freq = 3) => {
2692
2870
  const progressEventDecorator = (total, throttled) => {
2693
2871
  const lengthComputable = total != null;
2694
2872
 
2695
- return [(loaded) => throttled[0]({
2696
- lengthComputable,
2697
- total,
2698
- loaded
2699
- }), throttled[1]];
2873
+ return [
2874
+ (loaded) =>
2875
+ throttled[0]({
2876
+ lengthComputable,
2877
+ total,
2878
+ loaded,
2879
+ }),
2880
+ throttled[1],
2881
+ ];
2700
2882
  };
2701
2883
 
2702
- const asyncDecorator = (fn) => (...args) => utils$1.asap(() => fn(...args));
2884
+ const asyncDecorator =
2885
+ (fn) =>
2886
+ (...args) =>
2887
+ utils$1.asap(() => fn(...args));
2703
2888
 
2704
2889
  /**
2705
2890
  * Estimate decoded byte length of a data:// URL *without* allocating large buffers.
@@ -2777,29 +2962,26 @@ function estimateDataURLDecodedBytes(url) {
2777
2962
 
2778
2963
  const zlibOptions = {
2779
2964
  flush: zlib__default["default"].constants.Z_SYNC_FLUSH,
2780
- finishFlush: zlib__default["default"].constants.Z_SYNC_FLUSH
2965
+ finishFlush: zlib__default["default"].constants.Z_SYNC_FLUSH,
2781
2966
  };
2782
2967
 
2783
2968
  const brotliOptions = {
2784
2969
  flush: zlib__default["default"].constants.BROTLI_OPERATION_FLUSH,
2785
- finishFlush: zlib__default["default"].constants.BROTLI_OPERATION_FLUSH
2970
+ finishFlush: zlib__default["default"].constants.BROTLI_OPERATION_FLUSH,
2786
2971
  };
2787
2972
 
2788
2973
  const isBrotliSupported = utils$1.isFunction(zlib__default["default"].createBrotliDecompress);
2789
2974
 
2790
- const {http: httpFollow, https: httpsFollow} = followRedirects__default["default"];
2975
+ const { http: httpFollow, https: httpsFollow } = followRedirects__default["default"];
2791
2976
 
2792
2977
  const isHttps = /https:?/;
2793
2978
 
2794
- const supportedProtocols = platform.protocols.map(protocol => {
2979
+ const supportedProtocols = platform.protocols.map((protocol) => {
2795
2980
  return protocol + ':';
2796
2981
  });
2797
2982
 
2798
-
2799
2983
  const flushOnFinish = (stream, [throttled, flush]) => {
2800
- stream
2801
- .on('end', flush)
2802
- .on('error', flush);
2984
+ stream.on('end', flush).on('error', flush);
2803
2985
 
2804
2986
  return throttled;
2805
2987
  };
@@ -2810,9 +2992,12 @@ class Http2Sessions {
2810
2992
  }
2811
2993
 
2812
2994
  getSession(authority, options) {
2813
- options = Object.assign({
2814
- sessionTimeout: 1000
2815
- }, options);
2995
+ options = Object.assign(
2996
+ {
2997
+ sessionTimeout: 1000,
2998
+ },
2999
+ options
3000
+ );
2816
3001
 
2817
3002
  let authoritySessions = this.sessions[authority];
2818
3003
 
@@ -2821,7 +3006,11 @@ class Http2Sessions {
2821
3006
 
2822
3007
  for (let i = 0; i < len; i++) {
2823
3008
  const [sessionHandle, sessionOptions] = authoritySessions[i];
2824
- if (!sessionHandle.destroyed && !sessionHandle.closed && util__default["default"].isDeepStrictEqual(sessionOptions, options)) {
3009
+ if (
3010
+ !sessionHandle.destroyed &&
3011
+ !sessionHandle.closed &&
3012
+ util__default["default"].isDeepStrictEqual(sessionOptions, options)
3013
+ ) {
2825
3014
  return sessionHandle;
2826
3015
  }
2827
3016
  }
@@ -2838,7 +3027,9 @@ class Http2Sessions {
2838
3027
 
2839
3028
  removed = true;
2840
3029
 
2841
- let entries = authoritySessions, len = entries.length, i = len;
3030
+ let entries = authoritySessions,
3031
+ len = entries.length,
3032
+ i = len;
2842
3033
 
2843
3034
  while (i--) {
2844
3035
  if (entries[i][0] === session) {
@@ -2854,10 +3045,9 @@ class Http2Sessions {
2854
3045
 
2855
3046
  const originalRequestFn = session.request;
2856
3047
 
2857
- const {sessionTimeout} = options;
2858
-
2859
- if(sessionTimeout != null) {
3048
+ const { sessionTimeout } = options;
2860
3049
 
3050
+ if (sessionTimeout != null) {
2861
3051
  let timer;
2862
3052
  let streamsCount = 0;
2863
3053
 
@@ -2886,12 +3076,11 @@ class Http2Sessions {
2886
3076
 
2887
3077
  session.once('close', removeSession);
2888
3078
 
2889
- let entry = [
2890
- session,
2891
- options
2892
- ];
3079
+ let entry = [session, options];
2893
3080
 
2894
- authoritySessions ? authoritySessions.push(entry) : authoritySessions = this.sessions[authority] = [entry];
3081
+ authoritySessions
3082
+ ? authoritySessions.push(entry)
3083
+ : (authoritySessions = this.sessions[authority] = [entry]);
2895
3084
 
2896
3085
  return session;
2897
3086
  }
@@ -2899,7 +3088,6 @@ class Http2Sessions {
2899
3088
 
2900
3089
  const http2Sessions = new Http2Sessions();
2901
3090
 
2902
-
2903
3091
  /**
2904
3092
  * If the proxy or config beforeRedirects functions are defined, call them with the options
2905
3093
  * object.
@@ -2974,7 +3162,8 @@ function setProxy(options, configProxy, location) {
2974
3162
  };
2975
3163
  }
2976
3164
 
2977
- const isHttpAdapterSupported = typeof process !== 'undefined' && utils$1.kindOf(process) === 'process';
3165
+ const isHttpAdapterSupported =
3166
+ typeof process !== 'undefined' && utils$1.kindOf(process) === 'process';
2978
3167
 
2979
3168
  // temporary hotfix
2980
3169
 
@@ -3000,713 +3189,753 @@ const wrapAsync = (asyncExecutor) => {
3000
3189
  };
3001
3190
 
3002
3191
  asyncExecutor(_resolve, _reject, (onDoneHandler) => (onDone = onDoneHandler)).catch(_reject);
3003
- })
3192
+ });
3004
3193
  };
3005
3194
 
3006
- const resolveFamily = ({address, family}) => {
3195
+ const resolveFamily = ({ address, family }) => {
3007
3196
  if (!utils$1.isString(address)) {
3008
3197
  throw TypeError('address must be a string');
3009
3198
  }
3010
- return ({
3199
+ return {
3011
3200
  address,
3012
- family: family || (address.indexOf('.') < 0 ? 6 : 4)
3013
- });
3201
+ family: family || (address.indexOf('.') < 0 ? 6 : 4),
3202
+ };
3014
3203
  };
3015
3204
 
3016
- const buildAddressEntry = (address, family) => resolveFamily(utils$1.isObject(address) ? address : {address, family});
3205
+ const buildAddressEntry = (address, family) =>
3206
+ resolveFamily(utils$1.isObject(address) ? address : { address, family });
3017
3207
 
3018
3208
  const http2Transport = {
3019
3209
  request(options, cb) {
3020
- const authority = options.protocol + '//' + options.hostname + ':' + (options.port ||(options.protocol === 'https:' ? 443 : 80));
3021
-
3210
+ const authority =
3211
+ options.protocol +
3212
+ '//' +
3213
+ options.hostname +
3214
+ ':' +
3215
+ (options.port || (options.protocol === 'https:' ? 443 : 80));
3022
3216
 
3023
- const {http2Options, headers} = options;
3217
+ const { http2Options, headers } = options;
3024
3218
 
3025
- const session = http2Sessions.getSession(authority, http2Options);
3219
+ const session = http2Sessions.getSession(authority, http2Options);
3026
3220
 
3027
- const {
3028
- HTTP2_HEADER_SCHEME,
3029
- HTTP2_HEADER_METHOD,
3030
- HTTP2_HEADER_PATH,
3031
- HTTP2_HEADER_STATUS
3032
- } = http2__default["default"].constants;
3221
+ const { HTTP2_HEADER_SCHEME, HTTP2_HEADER_METHOD, HTTP2_HEADER_PATH, HTTP2_HEADER_STATUS } =
3222
+ http2__default["default"].constants;
3033
3223
 
3034
- const http2Headers = {
3035
- [HTTP2_HEADER_SCHEME]: options.protocol.replace(':', ''),
3036
- [HTTP2_HEADER_METHOD]: options.method,
3037
- [HTTP2_HEADER_PATH]: options.path,
3038
- };
3224
+ const http2Headers = {
3225
+ [HTTP2_HEADER_SCHEME]: options.protocol.replace(':', ''),
3226
+ [HTTP2_HEADER_METHOD]: options.method,
3227
+ [HTTP2_HEADER_PATH]: options.path,
3228
+ };
3039
3229
 
3040
- utils$1.forEach(headers, (header, name) => {
3041
- name.charAt(0) !== ':' && (http2Headers[name] = header);
3042
- });
3230
+ utils$1.forEach(headers, (header, name) => {
3231
+ name.charAt(0) !== ':' && (http2Headers[name] = header);
3232
+ });
3043
3233
 
3044
- const req = session.request(http2Headers);
3234
+ const req = session.request(http2Headers);
3045
3235
 
3046
- req.once('response', (responseHeaders) => {
3047
- const response = req; //duplex
3236
+ req.once('response', (responseHeaders) => {
3237
+ const response = req; //duplex
3048
3238
 
3049
- responseHeaders = Object.assign({}, responseHeaders);
3239
+ responseHeaders = Object.assign({}, responseHeaders);
3050
3240
 
3051
- const status = responseHeaders[HTTP2_HEADER_STATUS];
3241
+ const status = responseHeaders[HTTP2_HEADER_STATUS];
3052
3242
 
3053
- delete responseHeaders[HTTP2_HEADER_STATUS];
3243
+ delete responseHeaders[HTTP2_HEADER_STATUS];
3054
3244
 
3055
- response.headers = responseHeaders;
3245
+ response.headers = responseHeaders;
3056
3246
 
3057
- response.statusCode = +status;
3247
+ response.statusCode = +status;
3058
3248
 
3059
- cb(response);
3060
- });
3249
+ cb(response);
3250
+ });
3061
3251
 
3062
- return req;
3063
- }
3252
+ return req;
3253
+ },
3064
3254
  };
3065
3255
 
3066
3256
  /*eslint consistent-return:0*/
3067
- const httpAdapter = isHttpAdapterSupported && function httpAdapter(config) {
3068
- return wrapAsync(async function dispatchHttpRequest(resolve, reject, onDone) {
3069
- let {data, lookup, family, httpVersion = 1, http2Options} = config;
3070
- const {responseType, responseEncoding} = config;
3071
- const method = config.method.toUpperCase();
3072
- let isDone;
3073
- let rejected = false;
3074
- let req;
3075
-
3076
- httpVersion = +httpVersion;
3077
-
3078
- if (Number.isNaN(httpVersion)) {
3079
- throw TypeError(`Invalid protocol version: '${config.httpVersion}' is not a number`);
3080
- }
3081
-
3082
- if (httpVersion !== 1 && httpVersion !== 2) {
3083
- throw TypeError(`Unsupported protocol version '${httpVersion}'`);
3084
- }
3085
-
3086
- const isHttp2 = httpVersion === 2;
3257
+ const httpAdapter = isHttpAdapterSupported &&
3258
+ function httpAdapter(config) {
3259
+ return wrapAsync(async function dispatchHttpRequest(resolve, reject, onDone) {
3260
+ let { data, lookup, family, httpVersion = 1, http2Options } = config;
3261
+ const { responseType, responseEncoding } = config;
3262
+ const method = config.method.toUpperCase();
3263
+ let isDone;
3264
+ let rejected = false;
3265
+ let req;
3266
+
3267
+ httpVersion = +httpVersion;
3268
+
3269
+ if (Number.isNaN(httpVersion)) {
3270
+ throw TypeError(`Invalid protocol version: '${config.httpVersion}' is not a number`);
3271
+ }
3087
3272
 
3088
- if (lookup) {
3089
- const _lookup = callbackify$1(lookup, (value) => utils$1.isArray(value) ? value : [value]);
3090
- // hotfix to support opt.all option which is required for node 20.x
3091
- lookup = (hostname, opt, cb) => {
3092
- _lookup(hostname, opt, (err, arg0, arg1) => {
3093
- if (err) {
3094
- return cb(err);
3095
- }
3273
+ if (httpVersion !== 1 && httpVersion !== 2) {
3274
+ throw TypeError(`Unsupported protocol version '${httpVersion}'`);
3275
+ }
3096
3276
 
3097
- const addresses = utils$1.isArray(arg0) ? arg0.map(addr => buildAddressEntry(addr)) : [buildAddressEntry(arg0, arg1)];
3277
+ const isHttp2 = httpVersion === 2;
3098
3278
 
3099
- opt.all ? cb(err, addresses) : cb(err, addresses[0].address, addresses[0].family);
3100
- });
3101
- };
3102
- }
3279
+ if (lookup) {
3280
+ const _lookup = callbackify$1(lookup, (value) => (utils$1.isArray(value) ? value : [value]));
3281
+ // hotfix to support opt.all option which is required for node 20.x
3282
+ lookup = (hostname, opt, cb) => {
3283
+ _lookup(hostname, opt, (err, arg0, arg1) => {
3284
+ if (err) {
3285
+ return cb(err);
3286
+ }
3103
3287
 
3104
- const abortEmitter = new events.EventEmitter();
3288
+ const addresses = utils$1.isArray(arg0)
3289
+ ? arg0.map((addr) => buildAddressEntry(addr))
3290
+ : [buildAddressEntry(arg0, arg1)];
3105
3291
 
3106
- function abort(reason) {
3107
- try {
3108
- abortEmitter.emit('abort', !reason || reason.type ? new CanceledError$1(null, config, req) : reason);
3109
- } catch(err) {
3110
- console.warn('emit error', err);
3292
+ opt.all ? cb(err, addresses) : cb(err, addresses[0].address, addresses[0].family);
3293
+ });
3294
+ };
3111
3295
  }
3112
- }
3113
3296
 
3114
- abortEmitter.once('abort', reject);
3297
+ const abortEmitter = new events.EventEmitter();
3115
3298
 
3116
- const onFinished = () => {
3117
- if (config.cancelToken) {
3118
- config.cancelToken.unsubscribe(abort);
3299
+ function abort(reason) {
3300
+ try {
3301
+ abortEmitter.emit(
3302
+ 'abort',
3303
+ !reason || reason.type ? new CanceledError$1(null, config, req) : reason
3304
+ );
3305
+ } catch (err) {
3306
+ console.warn('emit error', err);
3307
+ }
3119
3308
  }
3120
3309
 
3121
- if (config.signal) {
3122
- config.signal.removeEventListener('abort', abort);
3123
- }
3310
+ abortEmitter.once('abort', reject);
3124
3311
 
3125
- abortEmitter.removeAllListeners();
3126
- };
3312
+ const onFinished = () => {
3313
+ if (config.cancelToken) {
3314
+ config.cancelToken.unsubscribe(abort);
3315
+ }
3127
3316
 
3128
- if (config.cancelToken || config.signal) {
3129
- config.cancelToken && config.cancelToken.subscribe(abort);
3130
- if (config.signal) {
3131
- config.signal.aborted ? abort() : config.signal.addEventListener('abort', abort);
3132
- }
3133
- }
3317
+ if (config.signal) {
3318
+ config.signal.removeEventListener('abort', abort);
3319
+ }
3134
3320
 
3135
- onDone((response, isRejected) => {
3136
- isDone = true;
3321
+ abortEmitter.removeAllListeners();
3322
+ };
3137
3323
 
3138
- if (isRejected) {
3139
- rejected = true;
3140
- onFinished();
3141
- return;
3324
+ if (config.cancelToken || config.signal) {
3325
+ config.cancelToken && config.cancelToken.subscribe(abort);
3326
+ if (config.signal) {
3327
+ config.signal.aborted ? abort() : config.signal.addEventListener('abort', abort);
3328
+ }
3142
3329
  }
3143
3330
 
3144
- const {data} = response;
3331
+ onDone((response, isRejected) => {
3332
+ isDone = true;
3145
3333
 
3146
- if (data instanceof stream__default["default"].Readable || data instanceof stream__default["default"].Duplex) {
3147
- const offListeners = stream__default["default"].finished(data, () => {
3148
- offListeners();
3334
+ if (isRejected) {
3335
+ rejected = true;
3149
3336
  onFinished();
3150
- });
3151
- } else {
3152
- onFinished();
3153
- }
3154
- });
3337
+ return;
3338
+ }
3155
3339
 
3340
+ const { data } = response;
3156
3341
 
3342
+ if (data instanceof stream__default["default"].Readable || data instanceof stream__default["default"].Duplex) {
3343
+ const offListeners = stream__default["default"].finished(data, () => {
3344
+ offListeners();
3345
+ onFinished();
3346
+ });
3347
+ } else {
3348
+ onFinished();
3349
+ }
3350
+ });
3157
3351
 
3352
+ // Parse url
3353
+ const fullPath = buildFullPath(config.baseURL, config.url, config.allowAbsoluteUrls);
3354
+ const parsed = new URL(fullPath, platform.hasBrowserEnv ? platform.origin : undefined);
3355
+ const protocol = parsed.protocol || supportedProtocols[0];
3356
+
3357
+ if (protocol === 'data:') {
3358
+ // Apply the same semantics as HTTP: only enforce if a finite, non-negative cap is set.
3359
+ if (config.maxContentLength > -1) {
3360
+ // Use the exact string passed to fromDataURI (config.url); fall back to fullPath if needed.
3361
+ const dataUrl = String(config.url || fullPath || '');
3362
+ const estimated = estimateDataURLDecodedBytes(dataUrl);
3363
+
3364
+ if (estimated > config.maxContentLength) {
3365
+ return reject(
3366
+ new AxiosError$1(
3367
+ 'maxContentLength size of ' + config.maxContentLength + ' exceeded',
3368
+ AxiosError$1.ERR_BAD_RESPONSE,
3369
+ config
3370
+ )
3371
+ );
3372
+ }
3373
+ }
3158
3374
 
3375
+ let convertedData;
3159
3376
 
3160
- // Parse url
3161
- const fullPath = buildFullPath(config.baseURL, config.url, config.allowAbsoluteUrls);
3162
- const parsed = new URL(fullPath, platform.hasBrowserEnv ? platform.origin : undefined);
3163
- const protocol = parsed.protocol || supportedProtocols[0];
3164
-
3165
- if (protocol === 'data:') {
3166
- // Apply the same semantics as HTTP: only enforce if a finite, non-negative cap is set.
3167
- if (config.maxContentLength > -1) {
3168
- // Use the exact string passed to fromDataURI (config.url); fall back to fullPath if needed.
3169
- const dataUrl = String(config.url || fullPath || '');
3170
- const estimated = estimateDataURLDecodedBytes(dataUrl);
3171
-
3172
- if (estimated > config.maxContentLength) {
3173
- return reject(new AxiosError$1(
3174
- 'maxContentLength size of ' + config.maxContentLength + ' exceeded',
3175
- AxiosError$1.ERR_BAD_RESPONSE,
3176
- config
3177
- ));
3377
+ if (method !== 'GET') {
3378
+ return settle(resolve, reject, {
3379
+ status: 405,
3380
+ statusText: 'method not allowed',
3381
+ headers: {},
3382
+ config,
3383
+ });
3178
3384
  }
3179
- }
3180
3385
 
3181
- let convertedData;
3386
+ try {
3387
+ convertedData = fromDataURI(config.url, responseType === 'blob', {
3388
+ Blob: config.env && config.env.Blob,
3389
+ });
3390
+ } catch (err) {
3391
+ throw AxiosError$1.from(err, AxiosError$1.ERR_BAD_REQUEST, config);
3392
+ }
3182
3393
 
3183
- if (method !== 'GET') {
3184
- return settle(resolve, reject, {
3185
- status: 405,
3186
- statusText: 'method not allowed',
3187
- headers: {},
3188
- config
3189
- });
3190
- }
3394
+ if (responseType === 'text') {
3395
+ convertedData = convertedData.toString(responseEncoding);
3191
3396
 
3192
- try {
3193
- convertedData = fromDataURI(config.url, responseType === 'blob', {
3194
- Blob: config.env && config.env.Blob
3397
+ if (!responseEncoding || responseEncoding === 'utf8') {
3398
+ convertedData = utils$1.stripBOM(convertedData);
3399
+ }
3400
+ } else if (responseType === 'stream') {
3401
+ convertedData = stream__default["default"].Readable.from(convertedData);
3402
+ }
3403
+
3404
+ return settle(resolve, reject, {
3405
+ data: convertedData,
3406
+ status: 200,
3407
+ statusText: 'OK',
3408
+ headers: new AxiosHeaders$1(),
3409
+ config,
3195
3410
  });
3196
- } catch (err) {
3197
- throw AxiosError$1.from(err, AxiosError$1.ERR_BAD_REQUEST, config);
3198
3411
  }
3199
3412
 
3200
- if (responseType === 'text') {
3201
- convertedData = convertedData.toString(responseEncoding);
3202
-
3203
- if (!responseEncoding || responseEncoding === 'utf8') {
3204
- convertedData = utils$1.stripBOM(convertedData);
3205
- }
3206
- } else if (responseType === 'stream') {
3207
- convertedData = stream__default["default"].Readable.from(convertedData);
3413
+ if (supportedProtocols.indexOf(protocol) === -1) {
3414
+ return reject(
3415
+ new AxiosError$1('Unsupported protocol ' + protocol, AxiosError$1.ERR_BAD_REQUEST, config)
3416
+ );
3208
3417
  }
3209
3418
 
3210
- return settle(resolve, reject, {
3211
- data: convertedData,
3212
- status: 200,
3213
- statusText: 'OK',
3214
- headers: new AxiosHeaders$1(),
3215
- config
3216
- });
3217
- }
3419
+ const headers = AxiosHeaders$1.from(config.headers).normalize();
3218
3420
 
3219
- if (supportedProtocols.indexOf(protocol) === -1) {
3220
- return reject(new AxiosError$1(
3221
- 'Unsupported protocol ' + protocol,
3222
- AxiosError$1.ERR_BAD_REQUEST,
3223
- config
3224
- ));
3225
- }
3421
+ // Set User-Agent (required by some servers)
3422
+ // See https://github.com/axios/axios/issues/69
3423
+ // User-Agent is specified; handle case where no UA header is desired
3424
+ // Only set header if it hasn't been set in config
3425
+ headers.set('User-Agent', 'axios/' + VERSION, false);
3226
3426
 
3227
- const headers = AxiosHeaders$1.from(config.headers).normalize();
3427
+ const { onUploadProgress, onDownloadProgress } = config;
3428
+ const maxRate = config.maxRate;
3429
+ let maxUploadRate = undefined;
3430
+ let maxDownloadRate = undefined;
3228
3431
 
3229
- // Set User-Agent (required by some servers)
3230
- // See https://github.com/axios/axios/issues/69
3231
- // User-Agent is specified; handle case where no UA header is desired
3232
- // Only set header if it hasn't been set in config
3233
- headers.set('User-Agent', 'axios/' + VERSION, false);
3432
+ // support for spec compliant FormData objects
3433
+ if (utils$1.isSpecCompliantForm(data)) {
3434
+ const userBoundary = headers.getContentType(/boundary=([-_\w\d]{10,70})/i);
3234
3435
 
3235
- const {onUploadProgress, onDownloadProgress} = config;
3236
- const maxRate = config.maxRate;
3237
- let maxUploadRate = undefined;
3238
- let maxDownloadRate = undefined;
3436
+ data = formDataToStream$1(
3437
+ data,
3438
+ (formHeaders) => {
3439
+ headers.set(formHeaders);
3440
+ },
3441
+ {
3442
+ tag: `axios-${VERSION}-boundary`,
3443
+ boundary: (userBoundary && userBoundary[1]) || undefined,
3444
+ }
3445
+ );
3446
+ // support for https://www.npmjs.com/package/form-data api
3447
+ } else if (utils$1.isFormData(data) && utils$1.isFunction(data.getHeaders)) {
3448
+ headers.set(data.getHeaders());
3239
3449
 
3240
- // support for spec compliant FormData objects
3241
- if (utils$1.isSpecCompliantForm(data)) {
3242
- const userBoundary = headers.getContentType(/boundary=([-_\w\d]{10,70})/i);
3450
+ if (!headers.hasContentLength()) {
3451
+ try {
3452
+ const knownLength = await util__default["default"].promisify(data.getLength).call(data);
3453
+ Number.isFinite(knownLength) &&
3454
+ knownLength >= 0 &&
3455
+ headers.setContentLength(knownLength);
3456
+ /*eslint no-empty:0*/
3457
+ } catch (e) {}
3458
+ }
3459
+ } else if (utils$1.isBlob(data) || utils$1.isFile(data)) {
3460
+ data.size && headers.setContentType(data.type || 'application/octet-stream');
3461
+ headers.setContentLength(data.size || 0);
3462
+ data = stream__default["default"].Readable.from(readBlob$1(data));
3463
+ } else if (data && !utils$1.isStream(data)) {
3464
+ if (Buffer.isBuffer(data)) ; else if (utils$1.isArrayBuffer(data)) {
3465
+ data = Buffer.from(new Uint8Array(data));
3466
+ } else if (utils$1.isString(data)) {
3467
+ data = Buffer.from(data, 'utf-8');
3468
+ } else {
3469
+ return reject(
3470
+ new AxiosError$1(
3471
+ 'Data after transformation must be a string, an ArrayBuffer, a Buffer, or a Stream',
3472
+ AxiosError$1.ERR_BAD_REQUEST,
3473
+ config
3474
+ )
3475
+ );
3476
+ }
3243
3477
 
3244
- data = formDataToStream$1(data, (formHeaders) => {
3245
- headers.set(formHeaders);
3246
- }, {
3247
- tag: `axios-${VERSION}-boundary`,
3248
- boundary: userBoundary && userBoundary[1] || undefined
3249
- });
3250
- // support for https://www.npmjs.com/package/form-data api
3251
- } else if (utils$1.isFormData(data) && utils$1.isFunction(data.getHeaders)) {
3252
- headers.set(data.getHeaders());
3478
+ // Add Content-Length header if data exists
3479
+ headers.setContentLength(data.length, false);
3253
3480
 
3254
- if (!headers.hasContentLength()) {
3255
- try {
3256
- const knownLength = await util__default["default"].promisify(data.getLength).call(data);
3257
- Number.isFinite(knownLength) && knownLength >= 0 && headers.setContentLength(knownLength);
3258
- /*eslint no-empty:0*/
3259
- } catch (e) {
3481
+ if (config.maxBodyLength > -1 && data.length > config.maxBodyLength) {
3482
+ return reject(
3483
+ new AxiosError$1(
3484
+ 'Request body larger than maxBodyLength limit',
3485
+ AxiosError$1.ERR_BAD_REQUEST,
3486
+ config
3487
+ )
3488
+ );
3260
3489
  }
3261
3490
  }
3262
- } else if (utils$1.isBlob(data) || utils$1.isFile(data)) {
3263
- data.size && headers.setContentType(data.type || 'application/octet-stream');
3264
- headers.setContentLength(data.size || 0);
3265
- data = stream__default["default"].Readable.from(readBlob$1(data));
3266
- } else if (data && !utils$1.isStream(data)) {
3267
- if (Buffer.isBuffer(data)) ; else if (utils$1.isArrayBuffer(data)) {
3268
- data = Buffer.from(new Uint8Array(data));
3269
- } else if (utils$1.isString(data)) {
3270
- data = Buffer.from(data, 'utf-8');
3271
- } else {
3272
- return reject(new AxiosError$1(
3273
- 'Data after transformation must be a string, an ArrayBuffer, a Buffer, or a Stream',
3274
- AxiosError$1.ERR_BAD_REQUEST,
3275
- config
3276
- ));
3277
- }
3278
3491
 
3279
- // Add Content-Length header if data exists
3280
- headers.setContentLength(data.length, false);
3492
+ const contentLength = utils$1.toFiniteNumber(headers.getContentLength());
3281
3493
 
3282
- if (config.maxBodyLength > -1 && data.length > config.maxBodyLength) {
3283
- return reject(new AxiosError$1(
3284
- 'Request body larger than maxBodyLength limit',
3285
- AxiosError$1.ERR_BAD_REQUEST,
3286
- config
3287
- ));
3494
+ if (utils$1.isArray(maxRate)) {
3495
+ maxUploadRate = maxRate[0];
3496
+ maxDownloadRate = maxRate[1];
3497
+ } else {
3498
+ maxUploadRate = maxDownloadRate = maxRate;
3288
3499
  }
3289
- }
3290
3500
 
3291
- const contentLength = utils$1.toFiniteNumber(headers.getContentLength());
3501
+ if (data && (onUploadProgress || maxUploadRate)) {
3502
+ if (!utils$1.isStream(data)) {
3503
+ data = stream__default["default"].Readable.from(data, { objectMode: false });
3504
+ }
3292
3505
 
3293
- if (utils$1.isArray(maxRate)) {
3294
- maxUploadRate = maxRate[0];
3295
- maxDownloadRate = maxRate[1];
3296
- } else {
3297
- maxUploadRate = maxDownloadRate = maxRate;
3298
- }
3506
+ data = stream__default["default"].pipeline(
3507
+ [
3508
+ data,
3509
+ new AxiosTransformStream$1({
3510
+ maxRate: utils$1.toFiniteNumber(maxUploadRate),
3511
+ }),
3512
+ ],
3513
+ utils$1.noop
3514
+ );
3299
3515
 
3300
- if (data && (onUploadProgress || maxUploadRate)) {
3301
- if (!utils$1.isStream(data)) {
3302
- data = stream__default["default"].Readable.from(data, {objectMode: false});
3516
+ onUploadProgress &&
3517
+ data.on(
3518
+ 'progress',
3519
+ flushOnFinish(
3520
+ data,
3521
+ progressEventDecorator(
3522
+ contentLength,
3523
+ progressEventReducer(asyncDecorator(onUploadProgress), false, 3)
3524
+ )
3525
+ )
3526
+ );
3303
3527
  }
3304
3528
 
3305
- data = stream__default["default"].pipeline([data, new AxiosTransformStream$1({
3306
- maxRate: utils$1.toFiniteNumber(maxUploadRate)
3307
- })], utils$1.noop);
3308
-
3309
- onUploadProgress && data.on('progress', flushOnFinish(
3310
- data,
3311
- progressEventDecorator(
3312
- contentLength,
3313
- progressEventReducer(asyncDecorator(onUploadProgress), false, 3)
3314
- )
3315
- ));
3316
- }
3317
-
3318
- // HTTP basic authentication
3319
- let auth = undefined;
3320
- if (config.auth) {
3321
- const username = config.auth.username || '';
3322
- const password = config.auth.password || '';
3323
- auth = username + ':' + password;
3324
- }
3529
+ // HTTP basic authentication
3530
+ let auth = undefined;
3531
+ if (config.auth) {
3532
+ const username = config.auth.username || '';
3533
+ const password = config.auth.password || '';
3534
+ auth = username + ':' + password;
3535
+ }
3325
3536
 
3326
- if (!auth && parsed.username) {
3327
- const urlUsername = parsed.username;
3328
- const urlPassword = parsed.password;
3329
- auth = urlUsername + ':' + urlPassword;
3330
- }
3537
+ if (!auth && parsed.username) {
3538
+ const urlUsername = parsed.username;
3539
+ const urlPassword = parsed.password;
3540
+ auth = urlUsername + ':' + urlPassword;
3541
+ }
3331
3542
 
3332
- auth && headers.delete('authorization');
3543
+ auth && headers.delete('authorization');
3333
3544
 
3334
- let path;
3545
+ let path;
3335
3546
 
3336
- try {
3337
- path = buildURL(
3338
- parsed.pathname + parsed.search,
3339
- config.params,
3340
- config.paramsSerializer
3341
- ).replace(/^\?/, '');
3342
- } catch (err) {
3343
- const customErr = new Error(err.message);
3344
- customErr.config = config;
3345
- customErr.url = config.url;
3346
- customErr.exists = true;
3347
- return reject(customErr);
3348
- }
3547
+ try {
3548
+ path = buildURL(
3549
+ parsed.pathname + parsed.search,
3550
+ config.params,
3551
+ config.paramsSerializer
3552
+ ).replace(/^\?/, '');
3553
+ } catch (err) {
3554
+ const customErr = new Error(err.message);
3555
+ customErr.config = config;
3556
+ customErr.url = config.url;
3557
+ customErr.exists = true;
3558
+ return reject(customErr);
3559
+ }
3349
3560
 
3350
- headers.set(
3351
- 'Accept-Encoding',
3352
- 'gzip, compress, deflate' + (isBrotliSupported ? ', br' : ''), false
3561
+ headers.set(
3562
+ 'Accept-Encoding',
3563
+ 'gzip, compress, deflate' + (isBrotliSupported ? ', br' : ''),
3564
+ false
3353
3565
  );
3354
3566
 
3355
- const options = {
3356
- path,
3357
- method: method,
3358
- headers: headers.toJSON(),
3359
- agents: { http: config.httpAgent, https: config.httpsAgent },
3360
- auth,
3361
- protocol,
3362
- family,
3363
- beforeRedirect: dispatchBeforeRedirect,
3364
- beforeRedirects: {},
3365
- http2Options
3366
- };
3567
+ const options = {
3568
+ path,
3569
+ method: method,
3570
+ headers: headers.toJSON(),
3571
+ agents: { http: config.httpAgent, https: config.httpsAgent },
3572
+ auth,
3573
+ protocol,
3574
+ family,
3575
+ beforeRedirect: dispatchBeforeRedirect,
3576
+ beforeRedirects: {},
3577
+ http2Options,
3578
+ };
3367
3579
 
3368
- // cacheable-lookup integration hotfix
3369
- !utils$1.isUndefined(lookup) && (options.lookup = lookup);
3580
+ // cacheable-lookup integration hotfix
3581
+ !utils$1.isUndefined(lookup) && (options.lookup = lookup);
3370
3582
 
3371
- if (config.socketPath) {
3372
- options.socketPath = config.socketPath;
3373
- } else {
3374
- options.hostname = parsed.hostname.startsWith("[") ? parsed.hostname.slice(1, -1) : parsed.hostname;
3375
- options.port = parsed.port;
3376
- setProxy(options, config.proxy, protocol + '//' + parsed.hostname + (parsed.port ? ':' + parsed.port : '') + options.path);
3377
- }
3583
+ if (config.socketPath) {
3584
+ options.socketPath = config.socketPath;
3585
+ } else {
3586
+ options.hostname = parsed.hostname.startsWith('[')
3587
+ ? parsed.hostname.slice(1, -1)
3588
+ : parsed.hostname;
3589
+ options.port = parsed.port;
3590
+ setProxy(
3591
+ options,
3592
+ config.proxy,
3593
+ protocol + '//' + parsed.hostname + (parsed.port ? ':' + parsed.port : '') + options.path
3594
+ );
3595
+ }
3378
3596
 
3379
- let transport;
3380
- const isHttpsRequest = isHttps.test(options.protocol);
3381
- options.agent = isHttpsRequest ? config.httpsAgent : config.httpAgent;
3597
+ let transport;
3598
+ const isHttpsRequest = isHttps.test(options.protocol);
3599
+ options.agent = isHttpsRequest ? config.httpsAgent : config.httpAgent;
3382
3600
 
3383
- if (isHttp2) {
3384
- transport = http2Transport;
3385
- } else {
3386
- if (config.transport) {
3387
- transport = config.transport;
3388
- } else if (config.maxRedirects === 0) {
3389
- transport = isHttpsRequest ? https__default["default"] : http__default["default"];
3601
+ if (isHttp2) {
3602
+ transport = http2Transport;
3390
3603
  } else {
3391
- if (config.maxRedirects) {
3392
- options.maxRedirects = config.maxRedirects;
3393
- }
3394
- if (config.beforeRedirect) {
3395
- options.beforeRedirects.config = config.beforeRedirect;
3604
+ if (config.transport) {
3605
+ transport = config.transport;
3606
+ } else if (config.maxRedirects === 0) {
3607
+ transport = isHttpsRequest ? https__default["default"] : http__default["default"];
3608
+ } else {
3609
+ if (config.maxRedirects) {
3610
+ options.maxRedirects = config.maxRedirects;
3611
+ }
3612
+ if (config.beforeRedirect) {
3613
+ options.beforeRedirects.config = config.beforeRedirect;
3614
+ }
3615
+ transport = isHttpsRequest ? httpsFollow : httpFollow;
3396
3616
  }
3397
- transport = isHttpsRequest ? httpsFollow : httpFollow;
3398
3617
  }
3399
- }
3400
3618
 
3401
- if (config.maxBodyLength > -1) {
3402
- options.maxBodyLength = config.maxBodyLength;
3403
- } else {
3404
- // follow-redirects does not skip comparison, so it should always succeed for axios -1 unlimited
3405
- options.maxBodyLength = Infinity;
3406
- }
3407
-
3408
- if (config.insecureHTTPParser) {
3409
- options.insecureHTTPParser = config.insecureHTTPParser;
3410
- }
3619
+ if (config.maxBodyLength > -1) {
3620
+ options.maxBodyLength = config.maxBodyLength;
3621
+ } else {
3622
+ // follow-redirects does not skip comparison, so it should always succeed for axios -1 unlimited
3623
+ options.maxBodyLength = Infinity;
3624
+ }
3411
3625
 
3412
- // Create the request
3413
- req = transport.request(options, function handleResponse(res) {
3414
- if (req.destroyed) return;
3626
+ if (config.insecureHTTPParser) {
3627
+ options.insecureHTTPParser = config.insecureHTTPParser;
3628
+ }
3415
3629
 
3416
- const streams = [res];
3630
+ // Create the request
3631
+ req = transport.request(options, function handleResponse(res) {
3632
+ if (req.destroyed) return;
3417
3633
 
3418
- const responseLength = utils$1.toFiniteNumber(res.headers['content-length']);
3634
+ const streams = [res];
3419
3635
 
3420
- if (onDownloadProgress || maxDownloadRate) {
3421
- const transformStream = new AxiosTransformStream$1({
3422
- maxRate: utils$1.toFiniteNumber(maxDownloadRate)
3423
- });
3636
+ const responseLength = utils$1.toFiniteNumber(res.headers['content-length']);
3424
3637
 
3425
- onDownloadProgress && transformStream.on('progress', flushOnFinish(
3426
- transformStream,
3427
- progressEventDecorator(
3428
- responseLength,
3429
- progressEventReducer(asyncDecorator(onDownloadProgress), true, 3)
3430
- )
3431
- ));
3638
+ if (onDownloadProgress || maxDownloadRate) {
3639
+ const transformStream = new AxiosTransformStream$1({
3640
+ maxRate: utils$1.toFiniteNumber(maxDownloadRate),
3641
+ });
3432
3642
 
3433
- streams.push(transformStream);
3434
- }
3643
+ onDownloadProgress &&
3644
+ transformStream.on(
3645
+ 'progress',
3646
+ flushOnFinish(
3647
+ transformStream,
3648
+ progressEventDecorator(
3649
+ responseLength,
3650
+ progressEventReducer(asyncDecorator(onDownloadProgress), true, 3)
3651
+ )
3652
+ )
3653
+ );
3435
3654
 
3436
- // decompress the response body transparently if required
3437
- let responseStream = res;
3655
+ streams.push(transformStream);
3656
+ }
3438
3657
 
3439
- // return the last request in case of redirects
3440
- const lastRequest = res.req || req;
3658
+ // decompress the response body transparently if required
3659
+ let responseStream = res;
3441
3660
 
3442
- // if decompress disabled we should not decompress
3443
- if (config.decompress !== false && res.headers['content-encoding']) {
3444
- // if no content, but headers still say that it is encoded,
3445
- // remove the header not confuse downstream operations
3446
- if (method === 'HEAD' || res.statusCode === 204) {
3447
- delete res.headers['content-encoding'];
3448
- }
3661
+ // return the last request in case of redirects
3662
+ const lastRequest = res.req || req;
3449
3663
 
3450
- switch ((res.headers['content-encoding'] || '').toLowerCase()) {
3451
- /*eslint default-case:0*/
3452
- case 'gzip':
3453
- case 'x-gzip':
3454
- case 'compress':
3455
- case 'x-compress':
3456
- // add the unzipper to the body stream processing pipeline
3457
- streams.push(zlib__default["default"].createUnzip(zlibOptions));
3458
-
3459
- // remove the content-encoding in order to not confuse downstream operations
3460
- delete res.headers['content-encoding'];
3461
- break;
3462
- case 'deflate':
3463
- streams.push(new ZlibHeaderTransformStream$1());
3464
-
3465
- // add the unzipper to the body stream processing pipeline
3466
- streams.push(zlib__default["default"].createUnzip(zlibOptions));
3467
-
3468
- // remove the content-encoding in order to not confuse downstream operations
3469
- delete res.headers['content-encoding'];
3470
- break;
3471
- case 'br':
3472
- if (isBrotliSupported) {
3473
- streams.push(zlib__default["default"].createBrotliDecompress(brotliOptions));
3664
+ // if decompress disabled we should not decompress
3665
+ if (config.decompress !== false && res.headers['content-encoding']) {
3666
+ // if no content, but headers still say that it is encoded,
3667
+ // remove the header not confuse downstream operations
3668
+ if (method === 'HEAD' || res.statusCode === 204) {
3474
3669
  delete res.headers['content-encoding'];
3475
3670
  }
3476
- }
3477
- }
3478
-
3479
- responseStream = streams.length > 1 ? stream__default["default"].pipeline(streams, utils$1.noop) : streams[0];
3480
-
3481
-
3482
-
3483
- const response = {
3484
- status: res.statusCode,
3485
- statusText: res.statusMessage,
3486
- headers: new AxiosHeaders$1(res.headers),
3487
- config,
3488
- request: lastRequest
3489
- };
3490
-
3491
- if (responseType === 'stream') {
3492
- response.data = responseStream;
3493
- settle(resolve, reject, response);
3494
- } else {
3495
- const responseBuffer = [];
3496
- let totalResponseBytes = 0;
3497
-
3498
- responseStream.on('data', function handleStreamData(chunk) {
3499
- responseBuffer.push(chunk);
3500
- totalResponseBytes += chunk.length;
3501
3671
 
3502
- // make sure the content length is not over the maxContentLength if specified
3503
- if (config.maxContentLength > -1 && totalResponseBytes > config.maxContentLength) {
3504
- // stream.destroy() emit aborted event before calling reject() on Node.js v16
3505
- rejected = true;
3506
- responseStream.destroy();
3507
- abort(new AxiosError$1('maxContentLength size of ' + config.maxContentLength + ' exceeded',
3508
- AxiosError$1.ERR_BAD_RESPONSE, config, lastRequest));
3672
+ switch ((res.headers['content-encoding'] || '').toLowerCase()) {
3673
+ /*eslint default-case:0*/
3674
+ case 'gzip':
3675
+ case 'x-gzip':
3676
+ case 'compress':
3677
+ case 'x-compress':
3678
+ // add the unzipper to the body stream processing pipeline
3679
+ streams.push(zlib__default["default"].createUnzip(zlibOptions));
3680
+
3681
+ // remove the content-encoding in order to not confuse downstream operations
3682
+ delete res.headers['content-encoding'];
3683
+ break;
3684
+ case 'deflate':
3685
+ streams.push(new ZlibHeaderTransformStream$1());
3686
+
3687
+ // add the unzipper to the body stream processing pipeline
3688
+ streams.push(zlib__default["default"].createUnzip(zlibOptions));
3689
+
3690
+ // remove the content-encoding in order to not confuse downstream operations
3691
+ delete res.headers['content-encoding'];
3692
+ break;
3693
+ case 'br':
3694
+ if (isBrotliSupported) {
3695
+ streams.push(zlib__default["default"].createBrotliDecompress(brotliOptions));
3696
+ delete res.headers['content-encoding'];
3697
+ }
3509
3698
  }
3510
- });
3699
+ }
3511
3700
 
3512
- responseStream.on('aborted', function handlerStreamAborted() {
3513
- if (rejected) {
3514
- return;
3515
- }
3701
+ responseStream = streams.length > 1 ? stream__default["default"].pipeline(streams, utils$1.noop) : streams[0];
3516
3702
 
3517
- const err = new AxiosError$1(
3518
- 'stream has been aborted',
3519
- AxiosError$1.ERR_BAD_RESPONSE,
3520
- config,
3521
- lastRequest
3522
- );
3523
- responseStream.destroy(err);
3524
- reject(err);
3525
- });
3703
+ const response = {
3704
+ status: res.statusCode,
3705
+ statusText: res.statusMessage,
3706
+ headers: new AxiosHeaders$1(res.headers),
3707
+ config,
3708
+ request: lastRequest,
3709
+ };
3526
3710
 
3527
- responseStream.on('error', function handleStreamError(err) {
3528
- if (req.destroyed) return;
3529
- reject(AxiosError$1.from(err, null, config, lastRequest));
3530
- });
3711
+ if (responseType === 'stream') {
3712
+ response.data = responseStream;
3713
+ settle(resolve, reject, response);
3714
+ } else {
3715
+ const responseBuffer = [];
3716
+ let totalResponseBytes = 0;
3717
+
3718
+ responseStream.on('data', function handleStreamData(chunk) {
3719
+ responseBuffer.push(chunk);
3720
+ totalResponseBytes += chunk.length;
3721
+
3722
+ // make sure the content length is not over the maxContentLength if specified
3723
+ if (config.maxContentLength > -1 && totalResponseBytes > config.maxContentLength) {
3724
+ // stream.destroy() emit aborted event before calling reject() on Node.js v16
3725
+ rejected = true;
3726
+ responseStream.destroy();
3727
+ abort(
3728
+ new AxiosError$1(
3729
+ 'maxContentLength size of ' + config.maxContentLength + ' exceeded',
3730
+ AxiosError$1.ERR_BAD_RESPONSE,
3731
+ config,
3732
+ lastRequest
3733
+ )
3734
+ );
3735
+ }
3736
+ });
3531
3737
 
3532
- responseStream.on('end', function handleStreamEnd() {
3533
- try {
3534
- let responseData = responseBuffer.length === 1 ? responseBuffer[0] : Buffer.concat(responseBuffer);
3535
- if (responseType !== 'arraybuffer') {
3536
- responseData = responseData.toString(responseEncoding);
3537
- if (!responseEncoding || responseEncoding === 'utf8') {
3538
- responseData = utils$1.stripBOM(responseData);
3738
+ responseStream.on('aborted', function handlerStreamAborted() {
3739
+ if (rejected) {
3740
+ return;
3741
+ }
3742
+
3743
+ const err = new AxiosError$1(
3744
+ 'stream has been aborted',
3745
+ AxiosError$1.ERR_BAD_RESPONSE,
3746
+ config,
3747
+ lastRequest
3748
+ );
3749
+ responseStream.destroy(err);
3750
+ reject(err);
3751
+ });
3752
+
3753
+ responseStream.on('error', function handleStreamError(err) {
3754
+ if (req.destroyed) return;
3755
+ reject(AxiosError$1.from(err, null, config, lastRequest));
3756
+ });
3757
+
3758
+ responseStream.on('end', function handleStreamEnd() {
3759
+ try {
3760
+ let responseData =
3761
+ responseBuffer.length === 1 ? responseBuffer[0] : Buffer.concat(responseBuffer);
3762
+ if (responseType !== 'arraybuffer') {
3763
+ responseData = responseData.toString(responseEncoding);
3764
+ if (!responseEncoding || responseEncoding === 'utf8') {
3765
+ responseData = utils$1.stripBOM(responseData);
3766
+ }
3539
3767
  }
3768
+ response.data = responseData;
3769
+ } catch (err) {
3770
+ return reject(AxiosError$1.from(err, null, config, response.request, response));
3540
3771
  }
3541
- response.data = responseData;
3542
- } catch (err) {
3543
- return reject(AxiosError$1.from(err, null, config, response.request, response));
3772
+ settle(resolve, reject, response);
3773
+ });
3774
+ }
3775
+
3776
+ abortEmitter.once('abort', (err) => {
3777
+ if (!responseStream.destroyed) {
3778
+ responseStream.emit('error', err);
3779
+ responseStream.destroy();
3544
3780
  }
3545
- settle(resolve, reject, response);
3546
3781
  });
3547
- }
3548
-
3549
- abortEmitter.once('abort', err => {
3550
- if (!responseStream.destroyed) {
3551
- responseStream.emit('error', err);
3552
- responseStream.destroy();
3553
- }
3554
3782
  });
3555
- });
3556
3783
 
3557
- abortEmitter.once('abort', err => {
3558
- if (req.close) {
3559
- req.close();
3560
- } else {
3561
- req.destroy(err);
3562
- }
3563
- });
3564
-
3565
- // Handle errors
3566
- req.on('error', function handleRequestError(err) {
3567
- reject(AxiosError$1.from(err, null, config, req));
3568
- });
3569
-
3570
- // set tcp keep alive to prevent drop connection by peer
3571
- req.on('socket', function handleRequestSocket(socket) {
3572
- // default interval of sending ack packet is 1 minute
3573
- socket.setKeepAlive(true, 1000 * 60);
3574
- });
3575
-
3576
- // Handle request timeout
3577
- if (config.timeout) {
3578
- // This is forcing a int timeout to avoid problems if the `req` interface doesn't handle other types.
3579
- const timeout = parseInt(config.timeout, 10);
3580
-
3581
- if (Number.isNaN(timeout)) {
3582
- abort(new AxiosError$1(
3583
- 'error trying to parse `config.timeout` to int',
3584
- AxiosError$1.ERR_BAD_OPTION_VALUE,
3585
- config,
3586
- req
3587
- ));
3588
-
3589
- return;
3590
- }
3591
-
3592
- // Sometime, the response will be very slow, and does not respond, the connect event will be block by event loop system.
3593
- // And timer callback will be fired, and abort() will be invoked before connection, then get "socket hang up" and code ECONNRESET.
3594
- // At this time, if we have a large number of request, nodejs will hang up some socket on background. and the number will up and up.
3595
- // And then these socket which be hang up will devouring CPU little by little.
3596
- // ClientRequest.setTimeout will be fired on the specify milliseconds, and can make sure that abort() will be fired after connect.
3597
- req.setTimeout(timeout, function handleRequestTimeout() {
3598
- if (isDone) return;
3599
- let timeoutErrorMessage = config.timeout ? 'timeout of ' + config.timeout + 'ms exceeded' : 'timeout exceeded';
3600
- const transitional = config.transitional || transitionalDefaults;
3601
- if (config.timeoutErrorMessage) {
3602
- timeoutErrorMessage = config.timeoutErrorMessage;
3784
+ abortEmitter.once('abort', (err) => {
3785
+ if (req.close) {
3786
+ req.close();
3787
+ } else {
3788
+ req.destroy(err);
3603
3789
  }
3604
- abort(new AxiosError$1(
3605
- timeoutErrorMessage,
3606
- transitional.clarifyTimeoutError ? AxiosError$1.ETIMEDOUT : AxiosError$1.ECONNABORTED,
3607
- config,
3608
- req
3609
- ));
3610
3790
  });
3611
- } else {
3612
- // explicitly reset the socket timeout value for a possible `keep-alive` request
3613
- req.setTimeout(0);
3614
- }
3615
-
3616
-
3617
- // Send the request
3618
- if (utils$1.isStream(data)) {
3619
- let ended = false;
3620
- let errored = false;
3621
3791
 
3622
- data.on('end', () => {
3623
- ended = true;
3792
+ // Handle errors
3793
+ req.on('error', function handleRequestError(err) {
3794
+ reject(AxiosError$1.from(err, null, config, req));
3624
3795
  });
3625
3796
 
3626
- data.once('error', err => {
3627
- errored = true;
3628
- req.destroy(err);
3797
+ // set tcp keep alive to prevent drop connection by peer
3798
+ req.on('socket', function handleRequestSocket(socket) {
3799
+ // default interval of sending ack packet is 1 minute
3800
+ socket.setKeepAlive(true, 1000 * 60);
3629
3801
  });
3630
3802
 
3631
- data.on('close', () => {
3632
- if (!ended && !errored) {
3633
- abort(new CanceledError$1('Request stream has been aborted', config, req));
3634
- }
3635
- });
3803
+ // Handle request timeout
3804
+ if (config.timeout) {
3805
+ // This is forcing a int timeout to avoid problems if the `req` interface doesn't handle other types.
3806
+ const timeout = parseInt(config.timeout, 10);
3807
+
3808
+ if (Number.isNaN(timeout)) {
3809
+ abort(
3810
+ new AxiosError$1(
3811
+ 'error trying to parse `config.timeout` to int',
3812
+ AxiosError$1.ERR_BAD_OPTION_VALUE,
3813
+ config,
3814
+ req
3815
+ )
3816
+ );
3636
3817
 
3637
- data.pipe(req);
3638
- } else {
3639
- data && req.write(data);
3640
- req.end();
3641
- }
3642
- });
3643
- };
3818
+ return;
3819
+ }
3644
3820
 
3645
- const isURLSameOrigin = platform.hasStandardBrowserEnv ? ((origin, isMSIE) => (url) => {
3646
- url = new URL(url, platform.origin);
3821
+ // Sometime, the response will be very slow, and does not respond, the connect event will be block by event loop system.
3822
+ // And timer callback will be fired, and abort() will be invoked before connection, then get "socket hang up" and code ECONNRESET.
3823
+ // At this time, if we have a large number of request, nodejs will hang up some socket on background. and the number will up and up.
3824
+ // And then these socket which be hang up will devouring CPU little by little.
3825
+ // ClientRequest.setTimeout will be fired on the specify milliseconds, and can make sure that abort() will be fired after connect.
3826
+ req.setTimeout(timeout, function handleRequestTimeout() {
3827
+ if (isDone) return;
3828
+ let timeoutErrorMessage = config.timeout
3829
+ ? 'timeout of ' + config.timeout + 'ms exceeded'
3830
+ : 'timeout exceeded';
3831
+ const transitional = config.transitional || transitionalDefaults;
3832
+ if (config.timeoutErrorMessage) {
3833
+ timeoutErrorMessage = config.timeoutErrorMessage;
3834
+ }
3835
+ abort(
3836
+ new AxiosError$1(
3837
+ timeoutErrorMessage,
3838
+ transitional.clarifyTimeoutError ? AxiosError$1.ETIMEDOUT : AxiosError$1.ECONNABORTED,
3839
+ config,
3840
+ req
3841
+ )
3842
+ );
3843
+ });
3844
+ } else {
3845
+ // explicitly reset the socket timeout value for a possible `keep-alive` request
3846
+ req.setTimeout(0);
3847
+ }
3647
3848
 
3648
- return (
3649
- origin.protocol === url.protocol &&
3650
- origin.host === url.host &&
3651
- (isMSIE || origin.port === url.port)
3652
- );
3653
- })(
3654
- new URL(platform.origin),
3655
- platform.navigator && /(msie|trident)/i.test(platform.navigator.userAgent)
3656
- ) : () => true;
3849
+ // Send the request
3850
+ if (utils$1.isStream(data)) {
3851
+ let ended = false;
3852
+ let errored = false;
3657
3853
 
3658
- const cookies = platform.hasStandardBrowserEnv ?
3854
+ data.on('end', () => {
3855
+ ended = true;
3856
+ });
3659
3857
 
3660
- // Standard browser envs support document.cookie
3661
- {
3662
- write(name, value, expires, path, domain, secure, sameSite) {
3663
- if (typeof document === 'undefined') return;
3858
+ data.once('error', (err) => {
3859
+ errored = true;
3860
+ req.destroy(err);
3861
+ });
3664
3862
 
3665
- const cookie = [`${name}=${encodeURIComponent(value)}`];
3863
+ data.on('close', () => {
3864
+ if (!ended && !errored) {
3865
+ abort(new CanceledError$1('Request stream has been aborted', config, req));
3866
+ }
3867
+ });
3666
3868
 
3667
- if (utils$1.isNumber(expires)) {
3668
- cookie.push(`expires=${new Date(expires).toUTCString()}`);
3669
- }
3670
- if (utils$1.isString(path)) {
3671
- cookie.push(`path=${path}`);
3672
- }
3673
- if (utils$1.isString(domain)) {
3674
- cookie.push(`domain=${domain}`);
3675
- }
3676
- if (secure === true) {
3677
- cookie.push('secure');
3678
- }
3679
- if (utils$1.isString(sameSite)) {
3680
- cookie.push(`SameSite=${sameSite}`);
3869
+ data.pipe(req);
3870
+ } else {
3871
+ data && req.write(data);
3872
+ req.end();
3681
3873
  }
3874
+ });
3875
+ };
3682
3876
 
3683
- document.cookie = cookie.join('; ');
3684
- },
3877
+ const isURLSameOrigin = platform.hasStandardBrowserEnv
3878
+ ? ((origin, isMSIE) => (url) => {
3879
+ url = new URL(url, platform.origin);
3685
3880
 
3686
- read(name) {
3687
- if (typeof document === 'undefined') return null;
3688
- const match = document.cookie.match(new RegExp('(?:^|; )' + name + '=([^;]*)'));
3689
- return match ? decodeURIComponent(match[1]) : null;
3690
- },
3881
+ return (
3882
+ origin.protocol === url.protocol &&
3883
+ origin.host === url.host &&
3884
+ (isMSIE || origin.port === url.port)
3885
+ );
3886
+ })(
3887
+ new URL(platform.origin),
3888
+ platform.navigator && /(msie|trident)/i.test(platform.navigator.userAgent)
3889
+ )
3890
+ : () => true;
3891
+
3892
+ const cookies = platform.hasStandardBrowserEnv
3893
+ ? // Standard browser envs support document.cookie
3894
+ {
3895
+ write(name, value, expires, path, domain, secure, sameSite) {
3896
+ if (typeof document === 'undefined') return;
3897
+
3898
+ const cookie = [`${name}=${encodeURIComponent(value)}`];
3899
+
3900
+ if (utils$1.isNumber(expires)) {
3901
+ cookie.push(`expires=${new Date(expires).toUTCString()}`);
3902
+ }
3903
+ if (utils$1.isString(path)) {
3904
+ cookie.push(`path=${path}`);
3905
+ }
3906
+ if (utils$1.isString(domain)) {
3907
+ cookie.push(`domain=${domain}`);
3908
+ }
3909
+ if (secure === true) {
3910
+ cookie.push('secure');
3911
+ }
3912
+ if (utils$1.isString(sameSite)) {
3913
+ cookie.push(`SameSite=${sameSite}`);
3914
+ }
3691
3915
 
3692
- remove(name) {
3693
- this.write(name, '', Date.now() - 86400000, '/');
3694
- }
3695
- }
3916
+ document.cookie = cookie.join('; ');
3917
+ },
3696
3918
 
3697
- :
3919
+ read(name) {
3920
+ if (typeof document === 'undefined') return null;
3921
+ const match = document.cookie.match(new RegExp('(?:^|; )' + name + '=([^;]*)'));
3922
+ return match ? decodeURIComponent(match[1]) : null;
3923
+ },
3698
3924
 
3699
- // Non-standard browser env (web workers, react-native) lack needed support.
3700
- {
3701
- write() {},
3702
- read() {
3703
- return null;
3704
- },
3705
- remove() {}
3706
- };
3925
+ remove(name) {
3926
+ this.write(name, '', Date.now() - 86400000, '/');
3927
+ },
3928
+ }
3929
+ : // Non-standard browser env (web workers, react-native) lack needed support.
3930
+ {
3931
+ write() {},
3932
+ read() {
3933
+ return null;
3934
+ },
3935
+ remove() {},
3936
+ };
3707
3937
 
3708
- const headersToObject = (thing) =>
3709
- thing instanceof AxiosHeaders$1 ? { ...thing } : thing;
3938
+ const headersToObject = (thing) => (thing instanceof AxiosHeaders$1 ? { ...thing } : thing);
3710
3939
 
3711
3940
  /**
3712
3941
  * Config-specific merge-function which creates a new config-object
@@ -3799,23 +4028,12 @@ function mergeConfig(config1, config2) {
3799
4028
  mergeDeepProperties(headersToObject(a), headersToObject(b), prop, true),
3800
4029
  };
3801
4030
 
3802
- utils$1.forEach(
3803
- Object.keys({ ...config1, ...config2 }),
3804
- function computeConfigValue(prop) {
3805
- if (
3806
- prop === "__proto__" ||
3807
- prop === "constructor" ||
3808
- prop === "prototype"
3809
- )
3810
- return;
3811
- const merge = utils$1.hasOwnProp(mergeMap, prop)
3812
- ? mergeMap[prop]
3813
- : mergeDeepProperties;
3814
- const configValue = merge(config1[prop], config2[prop], prop);
3815
- (utils$1.isUndefined(configValue) && merge !== mergeDirectKeys) ||
3816
- (config[prop] = configValue);
3817
- },
3818
- );
4031
+ utils$1.forEach(Object.keys({ ...config1, ...config2 }), function computeConfigValue(prop) {
4032
+ if (prop === '__proto__' || prop === 'constructor' || prop === 'prototype') return;
4033
+ const merge = utils$1.hasOwnProp(mergeMap, prop) ? mergeMap[prop] : mergeDeepProperties;
4034
+ const configValue = merge(config1[prop], config2[prop], prop);
4035
+ (utils$1.isUndefined(configValue) && merge !== mergeDirectKeys) || (config[prop] = configValue);
4036
+ });
3819
4037
 
3820
4038
  return config;
3821
4039
  }
@@ -3827,12 +4045,22 @@ const resolveConfig = (config) => {
3827
4045
 
3828
4046
  newConfig.headers = headers = AxiosHeaders$1.from(headers);
3829
4047
 
3830
- newConfig.url = buildURL(buildFullPath(newConfig.baseURL, newConfig.url, newConfig.allowAbsoluteUrls), config.params, config.paramsSerializer);
4048
+ newConfig.url = buildURL(
4049
+ buildFullPath(newConfig.baseURL, newConfig.url, newConfig.allowAbsoluteUrls),
4050
+ config.params,
4051
+ config.paramsSerializer
4052
+ );
3831
4053
 
3832
4054
  // HTTP basic authentication
3833
4055
  if (auth) {
3834
- headers.set('Authorization', 'Basic ' +
3835
- btoa((auth.username || '') + ':' + (auth.password ? unescape(encodeURIComponent(auth.password)) : ''))
4056
+ headers.set(
4057
+ 'Authorization',
4058
+ 'Basic ' +
4059
+ btoa(
4060
+ (auth.username || '') +
4061
+ ':' +
4062
+ (auth.password ? unescape(encodeURIComponent(auth.password)) : '')
4063
+ )
3836
4064
  );
3837
4065
  }
3838
4066
 
@@ -3850,7 +4078,7 @@ const resolveConfig = (config) => {
3850
4078
  }
3851
4079
  });
3852
4080
  }
3853
- }
4081
+ }
3854
4082
 
3855
4083
  // Add xsrf header
3856
4084
  // This is only done if running in a standard browser environment.
@@ -3874,196 +4102,218 @@ const resolveConfig = (config) => {
3874
4102
 
3875
4103
  const isXHRAdapterSupported = typeof XMLHttpRequest !== 'undefined';
3876
4104
 
3877
- const xhrAdapter = isXHRAdapterSupported && function (config) {
3878
- return new Promise(function dispatchXhrRequest(resolve, reject) {
3879
- const _config = resolveConfig(config);
3880
- let requestData = _config.data;
3881
- const requestHeaders = AxiosHeaders$1.from(_config.headers).normalize();
3882
- let {responseType, onUploadProgress, onDownloadProgress} = _config;
3883
- let onCanceled;
3884
- let uploadThrottled, downloadThrottled;
3885
- let flushUpload, flushDownload;
4105
+ const xhrAdapter = isXHRAdapterSupported &&
4106
+ function (config) {
4107
+ return new Promise(function dispatchXhrRequest(resolve, reject) {
4108
+ const _config = resolveConfig(config);
4109
+ let requestData = _config.data;
4110
+ const requestHeaders = AxiosHeaders$1.from(_config.headers).normalize();
4111
+ let { responseType, onUploadProgress, onDownloadProgress } = _config;
4112
+ let onCanceled;
4113
+ let uploadThrottled, downloadThrottled;
4114
+ let flushUpload, flushDownload;
3886
4115
 
3887
- function done() {
3888
- flushUpload && flushUpload(); // flush events
3889
- flushDownload && flushDownload(); // flush events
4116
+ function done() {
4117
+ flushUpload && flushUpload(); // flush events
4118
+ flushDownload && flushDownload(); // flush events
3890
4119
 
3891
- _config.cancelToken && _config.cancelToken.unsubscribe(onCanceled);
4120
+ _config.cancelToken && _config.cancelToken.unsubscribe(onCanceled);
3892
4121
 
3893
- _config.signal && _config.signal.removeEventListener('abort', onCanceled);
3894
- }
4122
+ _config.signal && _config.signal.removeEventListener('abort', onCanceled);
4123
+ }
3895
4124
 
3896
- let request = new XMLHttpRequest();
4125
+ let request = new XMLHttpRequest();
3897
4126
 
3898
- request.open(_config.method.toUpperCase(), _config.url, true);
4127
+ request.open(_config.method.toUpperCase(), _config.url, true);
3899
4128
 
3900
- // Set the request timeout in MS
3901
- request.timeout = _config.timeout;
4129
+ // Set the request timeout in MS
4130
+ request.timeout = _config.timeout;
3902
4131
 
3903
- function onloadend() {
3904
- if (!request) {
3905
- return;
4132
+ function onloadend() {
4133
+ if (!request) {
4134
+ return;
4135
+ }
4136
+ // Prepare the response
4137
+ const responseHeaders = AxiosHeaders$1.from(
4138
+ 'getAllResponseHeaders' in request && request.getAllResponseHeaders()
4139
+ );
4140
+ const responseData =
4141
+ !responseType || responseType === 'text' || responseType === 'json'
4142
+ ? request.responseText
4143
+ : request.response;
4144
+ const response = {
4145
+ data: responseData,
4146
+ status: request.status,
4147
+ statusText: request.statusText,
4148
+ headers: responseHeaders,
4149
+ config,
4150
+ request,
4151
+ };
4152
+
4153
+ settle(
4154
+ function _resolve(value) {
4155
+ resolve(value);
4156
+ done();
4157
+ },
4158
+ function _reject(err) {
4159
+ reject(err);
4160
+ done();
4161
+ },
4162
+ response
4163
+ );
4164
+
4165
+ // Clean up request
4166
+ request = null;
3906
4167
  }
3907
- // Prepare the response
3908
- const responseHeaders = AxiosHeaders$1.from(
3909
- 'getAllResponseHeaders' in request && request.getAllResponseHeaders()
3910
- );
3911
- const responseData = !responseType || responseType === 'text' || responseType === 'json' ?
3912
- request.responseText : request.response;
3913
- const response = {
3914
- data: responseData,
3915
- status: request.status,
3916
- statusText: request.statusText,
3917
- headers: responseHeaders,
3918
- config,
3919
- request
3920
- };
3921
4168
 
3922
- settle(function _resolve(value) {
3923
- resolve(value);
3924
- done();
3925
- }, function _reject(err) {
3926
- reject(err);
3927
- done();
3928
- }, response);
4169
+ if ('onloadend' in request) {
4170
+ // Use onloadend if available
4171
+ request.onloadend = onloadend;
4172
+ } else {
4173
+ // Listen for ready state to emulate onloadend
4174
+ request.onreadystatechange = function handleLoad() {
4175
+ if (!request || request.readyState !== 4) {
4176
+ return;
4177
+ }
3929
4178
 
3930
- // Clean up request
3931
- request = null;
3932
- }
4179
+ // The request errored out and we didn't get a response, this will be
4180
+ // handled by onerror instead
4181
+ // With one exception: request that using file: protocol, most browsers
4182
+ // will return status as 0 even though it's a successful request
4183
+ if (
4184
+ request.status === 0 &&
4185
+ !(request.responseURL && request.responseURL.indexOf('file:') === 0)
4186
+ ) {
4187
+ return;
4188
+ }
4189
+ // readystate handler is calling before onerror or ontimeout handlers,
4190
+ // so we should call onloadend on the next 'tick'
4191
+ setTimeout(onloadend);
4192
+ };
4193
+ }
3933
4194
 
3934
- if ('onloadend' in request) {
3935
- // Use onloadend if available
3936
- request.onloadend = onloadend;
3937
- } else {
3938
- // Listen for ready state to emulate onloadend
3939
- request.onreadystatechange = function handleLoad() {
3940
- if (!request || request.readyState !== 4) {
4195
+ // Handle browser request cancellation (as opposed to a manual cancellation)
4196
+ request.onabort = function handleAbort() {
4197
+ if (!request) {
3941
4198
  return;
3942
4199
  }
3943
4200
 
3944
- // The request errored out and we didn't get a response, this will be
3945
- // handled by onerror instead
3946
- // With one exception: request that using file: protocol, most browsers
3947
- // will return status as 0 even though it's a successful request
3948
- if (request.status === 0 && !(request.responseURL && request.responseURL.indexOf('file:') === 0)) {
3949
- return;
3950
- }
3951
- // readystate handler is calling before onerror or ontimeout handlers,
3952
- // so we should call onloadend on the next 'tick'
3953
- setTimeout(onloadend);
4201
+ reject(new AxiosError$1('Request aborted', AxiosError$1.ECONNABORTED, config, request));
4202
+
4203
+ // Clean up request
4204
+ request = null;
3954
4205
  };
3955
- }
3956
4206
 
3957
- // Handle browser request cancellation (as opposed to a manual cancellation)
3958
- request.onabort = function handleAbort() {
3959
- if (!request) {
3960
- return;
3961
- }
4207
+ // Handle low level network errors
4208
+ request.onerror = function handleError(event) {
4209
+ // Browsers deliver a ProgressEvent in XHR onerror
4210
+ // (message may be empty; when present, surface it)
4211
+ // See https://developer.mozilla.org/docs/Web/API/XMLHttpRequest/error_event
4212
+ const msg = event && event.message ? event.message : 'Network Error';
4213
+ const err = new AxiosError$1(msg, AxiosError$1.ERR_NETWORK, config, request);
4214
+ // attach the underlying event for consumers who want details
4215
+ err.event = event || null;
4216
+ reject(err);
4217
+ request = null;
4218
+ };
3962
4219
 
3963
- reject(new AxiosError$1('Request aborted', AxiosError$1.ECONNABORTED, config, request));
4220
+ // Handle timeout
4221
+ request.ontimeout = function handleTimeout() {
4222
+ let timeoutErrorMessage = _config.timeout
4223
+ ? 'timeout of ' + _config.timeout + 'ms exceeded'
4224
+ : 'timeout exceeded';
4225
+ const transitional = _config.transitional || transitionalDefaults;
4226
+ if (_config.timeoutErrorMessage) {
4227
+ timeoutErrorMessage = _config.timeoutErrorMessage;
4228
+ }
4229
+ reject(
4230
+ new AxiosError$1(
4231
+ timeoutErrorMessage,
4232
+ transitional.clarifyTimeoutError ? AxiosError$1.ETIMEDOUT : AxiosError$1.ECONNABORTED,
4233
+ config,
4234
+ request
4235
+ )
4236
+ );
3964
4237
 
3965
- // Clean up request
3966
- request = null;
3967
- };
4238
+ // Clean up request
4239
+ request = null;
4240
+ };
3968
4241
 
3969
- // Handle low level network errors
3970
- request.onerror = function handleError(event) {
3971
- // Browsers deliver a ProgressEvent in XHR onerror
3972
- // (message may be empty; when present, surface it)
3973
- // See https://developer.mozilla.org/docs/Web/API/XMLHttpRequest/error_event
3974
- const msg = event && event.message ? event.message : 'Network Error';
3975
- const err = new AxiosError$1(msg, AxiosError$1.ERR_NETWORK, config, request);
3976
- // attach the underlying event for consumers who want details
3977
- err.event = event || null;
3978
- reject(err);
3979
- request = null;
3980
- };
3981
-
3982
- // Handle timeout
3983
- request.ontimeout = function handleTimeout() {
3984
- let timeoutErrorMessage = _config.timeout ? 'timeout of ' + _config.timeout + 'ms exceeded' : 'timeout exceeded';
3985
- const transitional = _config.transitional || transitionalDefaults;
3986
- if (_config.timeoutErrorMessage) {
3987
- timeoutErrorMessage = _config.timeoutErrorMessage;
3988
- }
3989
- reject(new AxiosError$1(
3990
- timeoutErrorMessage,
3991
- transitional.clarifyTimeoutError ? AxiosError$1.ETIMEDOUT : AxiosError$1.ECONNABORTED,
3992
- config,
3993
- request));
3994
-
3995
- // Clean up request
3996
- request = null;
3997
- };
4242
+ // Remove Content-Type if data is undefined
4243
+ requestData === undefined && requestHeaders.setContentType(null);
3998
4244
 
3999
- // Remove Content-Type if data is undefined
4000
- requestData === undefined && requestHeaders.setContentType(null);
4245
+ // Add headers to the request
4246
+ if ('setRequestHeader' in request) {
4247
+ utils$1.forEach(requestHeaders.toJSON(), function setRequestHeader(val, key) {
4248
+ request.setRequestHeader(key, val);
4249
+ });
4250
+ }
4001
4251
 
4002
- // Add headers to the request
4003
- if ('setRequestHeader' in request) {
4004
- utils$1.forEach(requestHeaders.toJSON(), function setRequestHeader(val, key) {
4005
- request.setRequestHeader(key, val);
4006
- });
4007
- }
4252
+ // Add withCredentials to request if needed
4253
+ if (!utils$1.isUndefined(_config.withCredentials)) {
4254
+ request.withCredentials = !!_config.withCredentials;
4255
+ }
4008
4256
 
4009
- // Add withCredentials to request if needed
4010
- if (!utils$1.isUndefined(_config.withCredentials)) {
4011
- request.withCredentials = !!_config.withCredentials;
4012
- }
4257
+ // Add responseType to request if needed
4258
+ if (responseType && responseType !== 'json') {
4259
+ request.responseType = _config.responseType;
4260
+ }
4013
4261
 
4014
- // Add responseType to request if needed
4015
- if (responseType && responseType !== 'json') {
4016
- request.responseType = _config.responseType;
4017
- }
4262
+ // Handle progress if needed
4263
+ if (onDownloadProgress) {
4264
+ [downloadThrottled, flushDownload] = progressEventReducer(onDownloadProgress, true);
4265
+ request.addEventListener('progress', downloadThrottled);
4266
+ }
4018
4267
 
4019
- // Handle progress if needed
4020
- if (onDownloadProgress) {
4021
- ([downloadThrottled, flushDownload] = progressEventReducer(onDownloadProgress, true));
4022
- request.addEventListener('progress', downloadThrottled);
4023
- }
4268
+ // Not all browsers support upload events
4269
+ if (onUploadProgress && request.upload) {
4270
+ [uploadThrottled, flushUpload] = progressEventReducer(onUploadProgress);
4024
4271
 
4025
- // Not all browsers support upload events
4026
- if (onUploadProgress && request.upload) {
4027
- ([uploadThrottled, flushUpload] = progressEventReducer(onUploadProgress));
4272
+ request.upload.addEventListener('progress', uploadThrottled);
4028
4273
 
4029
- request.upload.addEventListener('progress', uploadThrottled);
4274
+ request.upload.addEventListener('loadend', flushUpload);
4275
+ }
4030
4276
 
4031
- request.upload.addEventListener('loadend', flushUpload);
4032
- }
4277
+ if (_config.cancelToken || _config.signal) {
4278
+ // Handle cancellation
4279
+ // eslint-disable-next-line func-names
4280
+ onCanceled = (cancel) => {
4281
+ if (!request) {
4282
+ return;
4283
+ }
4284
+ reject(!cancel || cancel.type ? new CanceledError$1(null, config, request) : cancel);
4285
+ request.abort();
4286
+ request = null;
4287
+ };
4033
4288
 
4034
- if (_config.cancelToken || _config.signal) {
4035
- // Handle cancellation
4036
- // eslint-disable-next-line func-names
4037
- onCanceled = cancel => {
4038
- if (!request) {
4039
- return;
4289
+ _config.cancelToken && _config.cancelToken.subscribe(onCanceled);
4290
+ if (_config.signal) {
4291
+ _config.signal.aborted
4292
+ ? onCanceled()
4293
+ : _config.signal.addEventListener('abort', onCanceled);
4040
4294
  }
4041
- reject(!cancel || cancel.type ? new CanceledError$1(null, config, request) : cancel);
4042
- request.abort();
4043
- request = null;
4044
- };
4045
-
4046
- _config.cancelToken && _config.cancelToken.subscribe(onCanceled);
4047
- if (_config.signal) {
4048
- _config.signal.aborted ? onCanceled() : _config.signal.addEventListener('abort', onCanceled);
4049
4295
  }
4050
- }
4051
-
4052
- const protocol = parseProtocol(_config.url);
4053
4296
 
4054
- if (protocol && platform.protocols.indexOf(protocol) === -1) {
4055
- reject(new AxiosError$1('Unsupported protocol ' + protocol + ':', AxiosError$1.ERR_BAD_REQUEST, config));
4056
- return;
4057
- }
4297
+ const protocol = parseProtocol(_config.url);
4058
4298
 
4299
+ if (protocol && platform.protocols.indexOf(protocol) === -1) {
4300
+ reject(
4301
+ new AxiosError$1(
4302
+ 'Unsupported protocol ' + protocol + ':',
4303
+ AxiosError$1.ERR_BAD_REQUEST,
4304
+ config
4305
+ )
4306
+ );
4307
+ return;
4308
+ }
4059
4309
 
4060
- // Send the request
4061
- request.send(requestData || null);
4062
- });
4063
- };
4310
+ // Send the request
4311
+ request.send(requestData || null);
4312
+ });
4313
+ };
4064
4314
 
4065
4315
  const composeSignals = (signals, timeout) => {
4066
- const {length} = (signals = signals ? signals.filter(Boolean) : []);
4316
+ const { length } = (signals = signals ? signals.filter(Boolean) : []);
4067
4317
 
4068
4318
  if (timeout || length) {
4069
4319
  let controller = new AbortController();
@@ -4075,21 +4325,29 @@ const composeSignals = (signals, timeout) => {
4075
4325
  aborted = true;
4076
4326
  unsubscribe();
4077
4327
  const err = reason instanceof Error ? reason : this.reason;
4078
- controller.abort(err instanceof AxiosError$1 ? err : new CanceledError$1(err instanceof Error ? err.message : err));
4328
+ controller.abort(
4329
+ err instanceof AxiosError$1
4330
+ ? err
4331
+ : new CanceledError$1(err instanceof Error ? err.message : err)
4332
+ );
4079
4333
  }
4080
4334
  };
4081
4335
 
4082
- let timer = timeout && setTimeout(() => {
4083
- timer = null;
4084
- onabort(new AxiosError$1(`timeout of ${timeout}ms exceeded`, AxiosError$1.ETIMEDOUT));
4085
- }, timeout);
4336
+ let timer =
4337
+ timeout &&
4338
+ setTimeout(() => {
4339
+ timer = null;
4340
+ onabort(new AxiosError$1(`timeout of ${timeout}ms exceeded`, AxiosError$1.ETIMEDOUT));
4341
+ }, timeout);
4086
4342
 
4087
4343
  const unsubscribe = () => {
4088
4344
  if (signals) {
4089
4345
  timer && clearTimeout(timer);
4090
4346
  timer = null;
4091
- signals.forEach(signal => {
4092
- signal.unsubscribe ? signal.unsubscribe(onabort) : signal.removeEventListener('abort', onabort);
4347
+ signals.forEach((signal) => {
4348
+ signal.unsubscribe
4349
+ ? signal.unsubscribe(onabort)
4350
+ : signal.removeEventListener('abort', onabort);
4093
4351
  });
4094
4352
  signals = null;
4095
4353
  }
@@ -4097,7 +4355,7 @@ const composeSignals = (signals, timeout) => {
4097
4355
 
4098
4356
  signals.forEach((signal) => signal.addEventListener('abort', onabort));
4099
4357
 
4100
- const {signal} = controller;
4358
+ const { signal } = controller;
4101
4359
 
4102
4360
  signal.unsubscribe = () => utils$1.asap(unsubscribe);
4103
4361
 
@@ -4140,7 +4398,7 @@ const readStream = async function* (stream) {
4140
4398
  const reader = stream.getReader();
4141
4399
  try {
4142
4400
  for (;;) {
4143
- const {done, value} = await reader.read();
4401
+ const { done, value } = await reader.read();
4144
4402
  if (done) {
4145
4403
  break;
4146
4404
  }
@@ -4163,64 +4421,69 @@ const trackStream = (stream, chunkSize, onProgress, onFinish) => {
4163
4421
  }
4164
4422
  };
4165
4423
 
4166
- return new ReadableStream({
4167
- async pull(controller) {
4168
- try {
4169
- const {done, value} = await iterator.next();
4424
+ return new ReadableStream(
4425
+ {
4426
+ async pull(controller) {
4427
+ try {
4428
+ const { done, value } = await iterator.next();
4170
4429
 
4171
- if (done) {
4172
- _onFinish();
4173
- controller.close();
4174
- return;
4175
- }
4430
+ if (done) {
4431
+ _onFinish();
4432
+ controller.close();
4433
+ return;
4434
+ }
4176
4435
 
4177
- let len = value.byteLength;
4178
- if (onProgress) {
4179
- let loadedBytes = bytes += len;
4180
- onProgress(loadedBytes);
4436
+ let len = value.byteLength;
4437
+ if (onProgress) {
4438
+ let loadedBytes = (bytes += len);
4439
+ onProgress(loadedBytes);
4440
+ }
4441
+ controller.enqueue(new Uint8Array(value));
4442
+ } catch (err) {
4443
+ _onFinish(err);
4444
+ throw err;
4181
4445
  }
4182
- controller.enqueue(new Uint8Array(value));
4183
- } catch (err) {
4184
- _onFinish(err);
4185
- throw err;
4186
- }
4446
+ },
4447
+ cancel(reason) {
4448
+ _onFinish(reason);
4449
+ return iterator.return();
4450
+ },
4187
4451
  },
4188
- cancel(reason) {
4189
- _onFinish(reason);
4190
- return iterator.return();
4452
+ {
4453
+ highWaterMark: 2,
4191
4454
  }
4192
- }, {
4193
- highWaterMark: 2
4194
- })
4455
+ );
4195
4456
  };
4196
4457
 
4197
4458
  const DEFAULT_CHUNK_SIZE = 64 * 1024;
4198
4459
 
4199
- const {isFunction} = utils$1;
4460
+ const { isFunction } = utils$1;
4200
4461
 
4201
- const globalFetchAPI = (({Request, Response}) => ({
4202
- Request, Response
4462
+ const globalFetchAPI = (({ Request, Response }) => ({
4463
+ Request,
4464
+ Response,
4203
4465
  }))(utils$1.global);
4204
4466
 
4205
- const {
4206
- ReadableStream: ReadableStream$1, TextEncoder: TextEncoder$1
4207
- } = utils$1.global;
4208
-
4467
+ const { ReadableStream: ReadableStream$1, TextEncoder: TextEncoder$1 } = utils$1.global;
4209
4468
 
4210
4469
  const test = (fn, ...args) => {
4211
4470
  try {
4212
4471
  return !!fn(...args);
4213
4472
  } catch (e) {
4214
- return false
4473
+ return false;
4215
4474
  }
4216
4475
  };
4217
4476
 
4218
4477
  const factory = (env) => {
4219
- env = utils$1.merge.call({
4220
- skipUndefined: true
4221
- }, globalFetchAPI, env);
4478
+ env = utils$1.merge.call(
4479
+ {
4480
+ skipUndefined: true,
4481
+ },
4482
+ globalFetchAPI,
4483
+ env
4484
+ );
4222
4485
 
4223
- const {fetch: envFetch, Request, Response} = env;
4486
+ const { fetch: envFetch, Request, Response } = env;
4224
4487
  const isFetchSupported = envFetch ? isFunction(envFetch) : typeof fetch === 'function';
4225
4488
  const isRequestSupported = isFunction(Request);
4226
4489
  const isResponseSupported = isFunction(Response);
@@ -4231,46 +4494,61 @@ const factory = (env) => {
4231
4494
 
4232
4495
  const isReadableStreamSupported = isFetchSupported && isFunction(ReadableStream$1);
4233
4496
 
4234
- const encodeText = isFetchSupported && (typeof TextEncoder$1 === 'function' ?
4235
- ((encoder) => (str) => encoder.encode(str))(new TextEncoder$1()) :
4236
- async (str) => new Uint8Array(await new Request(str).arrayBuffer())
4237
- );
4238
-
4239
- const supportsRequestStream = isRequestSupported && isReadableStreamSupported && test(() => {
4240
- let duplexAccessed = false;
4241
-
4242
- const hasContentType = new Request(platform.origin, {
4243
- body: new ReadableStream$1(),
4244
- method: 'POST',
4245
- get duplex() {
4246
- duplexAccessed = true;
4247
- return 'half';
4248
- },
4249
- }).headers.has('Content-Type');
4497
+ const encodeText =
4498
+ isFetchSupported &&
4499
+ (typeof TextEncoder$1 === 'function'
4500
+ ? (
4501
+ (encoder) => (str) =>
4502
+ encoder.encode(str)
4503
+ )(new TextEncoder$1())
4504
+ : async (str) => new Uint8Array(await new Request(str).arrayBuffer()));
4505
+
4506
+ const supportsRequestStream =
4507
+ isRequestSupported &&
4508
+ isReadableStreamSupported &&
4509
+ test(() => {
4510
+ let duplexAccessed = false;
4511
+
4512
+ const hasContentType = new Request(platform.origin, {
4513
+ body: new ReadableStream$1(),
4514
+ method: 'POST',
4515
+ get duplex() {
4516
+ duplexAccessed = true;
4517
+ return 'half';
4518
+ },
4519
+ }).headers.has('Content-Type');
4250
4520
 
4251
- return duplexAccessed && !hasContentType;
4252
- });
4521
+ return duplexAccessed && !hasContentType;
4522
+ });
4253
4523
 
4254
- const supportsResponseStream = isResponseSupported && isReadableStreamSupported &&
4524
+ const supportsResponseStream =
4525
+ isResponseSupported &&
4526
+ isReadableStreamSupported &&
4255
4527
  test(() => utils$1.isReadableStream(new Response('').body));
4256
4528
 
4257
4529
  const resolvers = {
4258
- stream: supportsResponseStream && ((res) => res.body)
4530
+ stream: supportsResponseStream && ((res) => res.body),
4259
4531
  };
4260
4532
 
4261
- isFetchSupported && ((() => {
4262
- ['text', 'arrayBuffer', 'blob', 'formData', 'stream'].forEach(type => {
4263
- !resolvers[type] && (resolvers[type] = (res, config) => {
4264
- let method = res && res[type];
4533
+ isFetchSupported &&
4534
+ (() => {
4535
+ ['text', 'arrayBuffer', 'blob', 'formData', 'stream'].forEach((type) => {
4536
+ !resolvers[type] &&
4537
+ (resolvers[type] = (res, config) => {
4538
+ let method = res && res[type];
4265
4539
 
4266
- if (method) {
4267
- return method.call(res);
4268
- }
4540
+ if (method) {
4541
+ return method.call(res);
4542
+ }
4269
4543
 
4270
- throw new AxiosError$1(`Response type '${type}' is not supported`, AxiosError$1.ERR_NOT_SUPPORT, config);
4544
+ throw new AxiosError$1(
4545
+ `Response type '${type}' is not supported`,
4546
+ AxiosError$1.ERR_NOT_SUPPORT,
4547
+ config
4548
+ );
4549
+ });
4271
4550
  });
4272
- });
4273
- })());
4551
+ })();
4274
4552
 
4275
4553
  const getBodyLength = async (body) => {
4276
4554
  if (body == null) {
@@ -4321,32 +4599,41 @@ const factory = (env) => {
4321
4599
  responseType,
4322
4600
  headers,
4323
4601
  withCredentials = 'same-origin',
4324
- fetchOptions
4602
+ fetchOptions,
4325
4603
  } = resolveConfig(config);
4326
4604
 
4327
4605
  let _fetch = envFetch || fetch;
4328
4606
 
4329
4607
  responseType = responseType ? (responseType + '').toLowerCase() : 'text';
4330
4608
 
4331
- let composedSignal = composeSignals$1([signal, cancelToken && cancelToken.toAbortSignal()], timeout);
4609
+ let composedSignal = composeSignals$1(
4610
+ [signal, cancelToken && cancelToken.toAbortSignal()],
4611
+ timeout
4612
+ );
4332
4613
 
4333
4614
  let request = null;
4334
4615
 
4335
- const unsubscribe = composedSignal && composedSignal.unsubscribe && (() => {
4336
- composedSignal.unsubscribe();
4337
- });
4616
+ const unsubscribe =
4617
+ composedSignal &&
4618
+ composedSignal.unsubscribe &&
4619
+ (() => {
4620
+ composedSignal.unsubscribe();
4621
+ });
4338
4622
 
4339
4623
  let requestContentLength;
4340
4624
 
4341
4625
  try {
4342
4626
  if (
4343
- onUploadProgress && supportsRequestStream && method !== 'get' && method !== 'head' &&
4627
+ onUploadProgress &&
4628
+ supportsRequestStream &&
4629
+ method !== 'get' &&
4630
+ method !== 'head' &&
4344
4631
  (requestContentLength = await resolveBodyLength(headers, data)) !== 0
4345
4632
  ) {
4346
4633
  let _request = new Request(url, {
4347
4634
  method: 'POST',
4348
4635
  body: data,
4349
- duplex: "half"
4636
+ duplex: 'half',
4350
4637
  });
4351
4638
 
4352
4639
  let contentTypeHeader;
@@ -4371,7 +4658,7 @@ const factory = (env) => {
4371
4658
 
4372
4659
  // Cloudflare Workers throws when credentials are defined
4373
4660
  // see https://github.com/cloudflare/workerd/issues/902
4374
- const isCredentialsSupported = isRequestSupported && "credentials" in Request.prototype;
4661
+ const isCredentialsSupported = isRequestSupported && 'credentials' in Request.prototype;
4375
4662
 
4376
4663
  const resolvedOptions = {
4377
4664
  ...fetchOptions,
@@ -4379,29 +4666,35 @@ const factory = (env) => {
4379
4666
  method: method.toUpperCase(),
4380
4667
  headers: headers.normalize().toJSON(),
4381
4668
  body: data,
4382
- duplex: "half",
4383
- credentials: isCredentialsSupported ? withCredentials : undefined
4669
+ duplex: 'half',
4670
+ credentials: isCredentialsSupported ? withCredentials : undefined,
4384
4671
  };
4385
4672
 
4386
4673
  request = isRequestSupported && new Request(url, resolvedOptions);
4387
4674
 
4388
- let response = await (isRequestSupported ? _fetch(request, fetchOptions) : _fetch(url, resolvedOptions));
4675
+ let response = await (isRequestSupported
4676
+ ? _fetch(request, fetchOptions)
4677
+ : _fetch(url, resolvedOptions));
4389
4678
 
4390
- const isStreamResponse = supportsResponseStream && (responseType === 'stream' || responseType === 'response');
4679
+ const isStreamResponse =
4680
+ supportsResponseStream && (responseType === 'stream' || responseType === 'response');
4391
4681
 
4392
4682
  if (supportsResponseStream && (onDownloadProgress || (isStreamResponse && unsubscribe))) {
4393
4683
  const options = {};
4394
4684
 
4395
- ['status', 'statusText', 'headers'].forEach(prop => {
4685
+ ['status', 'statusText', 'headers'].forEach((prop) => {
4396
4686
  options[prop] = response[prop];
4397
4687
  });
4398
4688
 
4399
4689
  const responseContentLength = utils$1.toFiniteNumber(response.headers.get('content-length'));
4400
4690
 
4401
- const [onProgress, flush] = onDownloadProgress && progressEventDecorator(
4402
- responseContentLength,
4403
- progressEventReducer(asyncDecorator(onDownloadProgress), true)
4404
- ) || [];
4691
+ const [onProgress, flush] =
4692
+ (onDownloadProgress &&
4693
+ progressEventDecorator(
4694
+ responseContentLength,
4695
+ progressEventReducer(asyncDecorator(onDownloadProgress), true)
4696
+ )) ||
4697
+ [];
4405
4698
 
4406
4699
  response = new Response(
4407
4700
  trackStream(response.body, DEFAULT_CHUNK_SIZE, onProgress, () => {
@@ -4414,7 +4707,10 @@ const factory = (env) => {
4414
4707
 
4415
4708
  responseType = responseType || 'text';
4416
4709
 
4417
- let responseData = await resolvers[utils$1.findKey(resolvers, responseType) || 'text'](response, config);
4710
+ let responseData = await resolvers[utils$1.findKey(resolvers, responseType) || 'text'](
4711
+ response,
4712
+ config
4713
+ );
4418
4714
 
4419
4715
  !isStreamResponse && unsubscribe && unsubscribe();
4420
4716
 
@@ -4425,43 +4721,50 @@ const factory = (env) => {
4425
4721
  status: response.status,
4426
4722
  statusText: response.statusText,
4427
4723
  config,
4428
- request
4724
+ request,
4429
4725
  });
4430
- })
4726
+ });
4431
4727
  } catch (err) {
4432
4728
  unsubscribe && unsubscribe();
4433
4729
 
4434
4730
  if (err && err.name === 'TypeError' && /Load failed|fetch/i.test(err.message)) {
4435
4731
  throw Object.assign(
4436
- new AxiosError$1('Network Error', AxiosError$1.ERR_NETWORK, config, request, err && err.response),
4732
+ new AxiosError$1(
4733
+ 'Network Error',
4734
+ AxiosError$1.ERR_NETWORK,
4735
+ config,
4736
+ request,
4737
+ err && err.response
4738
+ ),
4437
4739
  {
4438
- cause: err.cause || err
4740
+ cause: err.cause || err,
4439
4741
  }
4440
- )
4742
+ );
4441
4743
  }
4442
4744
 
4443
4745
  throw AxiosError$1.from(err, err && err.code, config, request, err && err.response);
4444
4746
  }
4445
- }
4747
+ };
4446
4748
  };
4447
4749
 
4448
4750
  const seedCache = new Map();
4449
4751
 
4450
4752
  const getFetch = (config) => {
4451
4753
  let env = (config && config.env) || {};
4452
- const {fetch, Request, Response} = env;
4453
- const seeds = [
4454
- Request, Response, fetch
4455
- ];
4754
+ const { fetch, Request, Response } = env;
4755
+ const seeds = [Request, Response, fetch];
4456
4756
 
4457
- let len = seeds.length, i = len,
4458
- seed, target, map = seedCache;
4757
+ let len = seeds.length,
4758
+ i = len,
4759
+ seed,
4760
+ target,
4761
+ map = seedCache;
4459
4762
 
4460
4763
  while (i--) {
4461
4764
  seed = seeds[i];
4462
4765
  target = map.get(seed);
4463
4766
 
4464
- target === undefined && map.set(seed, target = (i ? new Map() : factory(env)));
4767
+ target === undefined && map.set(seed, (target = i ? new Map() : factory(env)));
4465
4768
 
4466
4769
  map = target;
4467
4770
  }
@@ -4477,7 +4780,7 @@ getFetch();
4477
4780
  * - `http` for Node.js
4478
4781
  * - `xhr` for browsers
4479
4782
  * - `fetch` for fetch API-based requests
4480
- *
4783
+ *
4481
4784
  * @type {Object<string, Function|Object>}
4482
4785
  */
4483
4786
  const knownAdapters = {
@@ -4485,7 +4788,7 @@ const knownAdapters = {
4485
4788
  xhr: xhrAdapter,
4486
4789
  fetch: {
4487
4790
  get: getFetch,
4488
- }
4791
+ },
4489
4792
  };
4490
4793
 
4491
4794
  // Assign adapter names for easier debugging and identification
@@ -4502,7 +4805,7 @@ utils$1.forEach(knownAdapters, (fn, value) => {
4502
4805
 
4503
4806
  /**
4504
4807
  * Render a rejection reason string for unknown or unsupported adapters
4505
- *
4808
+ *
4506
4809
  * @param {string} reason
4507
4810
  * @returns {string}
4508
4811
  */
@@ -4510,17 +4813,18 @@ const renderReason = (reason) => `- ${reason}`;
4510
4813
 
4511
4814
  /**
4512
4815
  * Check if the adapter is resolved (function, null, or false)
4513
- *
4816
+ *
4514
4817
  * @param {Function|null|false} adapter
4515
4818
  * @returns {boolean}
4516
4819
  */
4517
- const isResolvedHandle = (adapter) => utils$1.isFunction(adapter) || adapter === null || adapter === false;
4820
+ const isResolvedHandle = (adapter) =>
4821
+ utils$1.isFunction(adapter) || adapter === null || adapter === false;
4518
4822
 
4519
4823
  /**
4520
4824
  * Get the first suitable adapter from the provided list.
4521
4825
  * Tries each adapter in order until a supported one is found.
4522
4826
  * Throws an AxiosError if no adapter is suitable.
4523
- *
4827
+ *
4524
4828
  * @param {Array<string|Function>|string|Function} adapters - Adapter(s) by name or function.
4525
4829
  * @param {Object} config - Axios request configuration
4526
4830
  * @throws {AxiosError} If no suitable adapter is available
@@ -4557,14 +4861,17 @@ function getAdapter(adapters, config) {
4557
4861
  }
4558
4862
 
4559
4863
  if (!adapter) {
4560
- const reasons = Object.entries(rejectedReasons)
4561
- .map(([id, state]) => `adapter ${id} ` +
4864
+ const reasons = Object.entries(rejectedReasons).map(
4865
+ ([id, state]) =>
4866
+ `adapter ${id} ` +
4562
4867
  (state === false ? 'is not supported by the environment' : 'is not available in the build')
4563
- );
4868
+ );
4564
4869
 
4565
- let s = length ?
4566
- (reasons.length > 1 ? 'since :\n' + reasons.map(renderReason).join('\n') : ' ' + renderReason(reasons[0])) :
4567
- 'as no adapter specified';
4870
+ let s = length
4871
+ ? reasons.length > 1
4872
+ ? 'since :\n' + reasons.map(renderReason).join('\n')
4873
+ : ' ' + renderReason(reasons[0])
4874
+ : 'as no adapter specified';
4568
4875
 
4569
4876
  throw new AxiosError$1(
4570
4877
  `There is no suitable adapter to dispatch the request ` + s,
@@ -4589,7 +4896,7 @@ const adapters = {
4589
4896
  * Exposes all known adapters
4590
4897
  * @type {Object<string, Function|Object>}
4591
4898
  */
4592
- adapters: knownAdapters
4899
+ adapters: knownAdapters,
4593
4900
  };
4594
4901
 
4595
4902
  /**
@@ -4622,10 +4929,7 @@ function dispatchRequest(config) {
4622
4929
  config.headers = AxiosHeaders$1.from(config.headers);
4623
4930
 
4624
4931
  // Transform request data
4625
- config.data = transformData.call(
4626
- config,
4627
- config.transformRequest
4628
- );
4932
+ config.data = transformData.call(config, config.transformRequest);
4629
4933
 
4630
4934
  if (['post', 'put', 'patch'].indexOf(config.method) !== -1) {
4631
4935
  config.headers.setContentType('application/x-www-form-urlencoded', false);
@@ -4633,36 +4937,35 @@ function dispatchRequest(config) {
4633
4937
 
4634
4938
  const adapter = adapters.getAdapter(config.adapter || defaults$1.adapter, config);
4635
4939
 
4636
- return adapter(config).then(function onAdapterResolution(response) {
4637
- throwIfCancellationRequested(config);
4940
+ return adapter(config).then(
4941
+ function onAdapterResolution(response) {
4942
+ throwIfCancellationRequested(config);
4638
4943
 
4639
- // Transform response data
4640
- response.data = transformData.call(
4641
- config,
4642
- config.transformResponse,
4643
- response
4644
- );
4944
+ // Transform response data
4945
+ response.data = transformData.call(config, config.transformResponse, response);
4645
4946
 
4646
- response.headers = AxiosHeaders$1.from(response.headers);
4947
+ response.headers = AxiosHeaders$1.from(response.headers);
4647
4948
 
4648
- return response;
4649
- }, function onAdapterRejection(reason) {
4650
- if (!isCancel(reason)) {
4651
- throwIfCancellationRequested(config);
4949
+ return response;
4950
+ },
4951
+ function onAdapterRejection(reason) {
4952
+ if (!isCancel(reason)) {
4953
+ throwIfCancellationRequested(config);
4652
4954
 
4653
- // Transform response data
4654
- if (reason && reason.response) {
4655
- reason.response.data = transformData.call(
4656
- config,
4657
- config.transformResponse,
4658
- reason.response
4659
- );
4660
- reason.response.headers = AxiosHeaders$1.from(reason.response.headers);
4955
+ // Transform response data
4956
+ if (reason && reason.response) {
4957
+ reason.response.data = transformData.call(
4958
+ config,
4959
+ config.transformResponse,
4960
+ reason.response
4961
+ );
4962
+ reason.response.headers = AxiosHeaders$1.from(reason.response.headers);
4963
+ }
4661
4964
  }
4662
- }
4663
4965
 
4664
- return Promise.reject(reason);
4665
- });
4966
+ return Promise.reject(reason);
4967
+ }
4968
+ );
4666
4969
  }
4667
4970
 
4668
4971
  const validators$1 = {};
@@ -4687,7 +4990,15 @@ const deprecatedWarnings = {};
4687
4990
  */
4688
4991
  validators$1.transitional = function transitional(validator, version, message) {
4689
4992
  function formatMessage(opt, desc) {
4690
- return '[Axios v' + VERSION + '] Transitional option \'' + opt + '\'' + desc + (message ? '. ' + message : '');
4993
+ return (
4994
+ '[Axios v' +
4995
+ VERSION +
4996
+ "] Transitional option '" +
4997
+ opt +
4998
+ "'" +
4999
+ desc +
5000
+ (message ? '. ' + message : '')
5001
+ );
4691
5002
  }
4692
5003
 
4693
5004
  // eslint-disable-next-line func-names
@@ -4719,7 +5030,7 @@ validators$1.spelling = function spelling(correctSpelling) {
4719
5030
  // eslint-disable-next-line no-console
4720
5031
  console.warn(`${opt} is likely a misspelling of ${correctSpelling}`);
4721
5032
  return true;
4722
- }
5033
+ };
4723
5034
  };
4724
5035
 
4725
5036
  /**
@@ -4745,7 +5056,10 @@ function assertOptions(options, schema, allowUnknown) {
4745
5056
  const value = options[opt];
4746
5057
  const result = value === undefined || validator(value, opt, options);
4747
5058
  if (result !== true) {
4748
- throw new AxiosError$1('option ' + opt + ' must be ' + result, AxiosError$1.ERR_BAD_OPTION_VALUE);
5059
+ throw new AxiosError$1(
5060
+ 'option ' + opt + ' must be ' + result,
5061
+ AxiosError$1.ERR_BAD_OPTION_VALUE
5062
+ );
4749
5063
  }
4750
5064
  continue;
4751
5065
  }
@@ -4757,7 +5071,7 @@ function assertOptions(options, schema, allowUnknown) {
4757
5071
 
4758
5072
  const validator = {
4759
5073
  assertOptions,
4760
- validators: validators$1
5074
+ validators: validators$1,
4761
5075
  };
4762
5076
 
4763
5077
  const validators = validator.validators;
@@ -4774,7 +5088,7 @@ class Axios {
4774
5088
  this.defaults = instanceConfig || {};
4775
5089
  this.interceptors = {
4776
5090
  request: new InterceptorManager$1(),
4777
- response: new InterceptorManager$1()
5091
+ response: new InterceptorManager$1(),
4778
5092
  };
4779
5093
  }
4780
5094
 
@@ -4825,27 +5139,35 @@ class Axios {
4825
5139
 
4826
5140
  config = mergeConfig(this.defaults, config);
4827
5141
 
4828
- const {transitional, paramsSerializer, headers} = config;
5142
+ const { transitional, paramsSerializer, headers } = config;
4829
5143
 
4830
5144
  if (transitional !== undefined) {
4831
- validator.assertOptions(transitional, {
4832
- silentJSONParsing: validators.transitional(validators.boolean),
4833
- forcedJSONParsing: validators.transitional(validators.boolean),
4834
- clarifyTimeoutError: validators.transitional(validators.boolean),
4835
- legacyInterceptorReqResOrdering: validators.transitional(validators.boolean)
4836
- }, false);
5145
+ validator.assertOptions(
5146
+ transitional,
5147
+ {
5148
+ silentJSONParsing: validators.transitional(validators.boolean),
5149
+ forcedJSONParsing: validators.transitional(validators.boolean),
5150
+ clarifyTimeoutError: validators.transitional(validators.boolean),
5151
+ legacyInterceptorReqResOrdering: validators.transitional(validators.boolean),
5152
+ },
5153
+ false
5154
+ );
4837
5155
  }
4838
5156
 
4839
5157
  if (paramsSerializer != null) {
4840
5158
  if (utils$1.isFunction(paramsSerializer)) {
4841
5159
  config.paramsSerializer = {
4842
- serialize: paramsSerializer
5160
+ serialize: paramsSerializer,
4843
5161
  };
4844
5162
  } else {
4845
- validator.assertOptions(paramsSerializer, {
4846
- encode: validators.function,
4847
- serialize: validators.function
4848
- }, true);
5163
+ validator.assertOptions(
5164
+ paramsSerializer,
5165
+ {
5166
+ encode: validators.function,
5167
+ serialize: validators.function,
5168
+ },
5169
+ true
5170
+ );
4849
5171
  }
4850
5172
  }
4851
5173
 
@@ -4856,26 +5178,25 @@ class Axios {
4856
5178
  config.allowAbsoluteUrls = true;
4857
5179
  }
4858
5180
 
4859
- validator.assertOptions(config, {
4860
- baseUrl: validators.spelling('baseURL'),
4861
- withXsrfToken: validators.spelling('withXSRFToken')
4862
- }, true);
5181
+ validator.assertOptions(
5182
+ config,
5183
+ {
5184
+ baseUrl: validators.spelling('baseURL'),
5185
+ withXsrfToken: validators.spelling('withXSRFToken'),
5186
+ },
5187
+ true
5188
+ );
4863
5189
 
4864
5190
  // Set config.method
4865
5191
  config.method = (config.method || this.defaults.method || 'get').toLowerCase();
4866
5192
 
4867
5193
  // Flatten headers
4868
- let contextHeaders = headers && utils$1.merge(
4869
- headers.common,
4870
- headers[config.method]
4871
- );
5194
+ let contextHeaders = headers && utils$1.merge(headers.common, headers[config.method]);
4872
5195
 
4873
- headers && utils$1.forEach(
4874
- ['delete', 'get', 'head', 'post', 'put', 'patch', 'common'],
4875
- (method) => {
5196
+ headers &&
5197
+ utils$1.forEach(['delete', 'get', 'head', 'post', 'put', 'patch', 'common'], (method) => {
4876
5198
  delete headers[method];
4877
- }
4878
- );
5199
+ });
4879
5200
 
4880
5201
  config.headers = AxiosHeaders$1.concat(contextHeaders, headers);
4881
5202
 
@@ -4890,7 +5211,8 @@ class Axios {
4890
5211
  synchronousRequestInterceptors = synchronousRequestInterceptors && interceptor.synchronous;
4891
5212
 
4892
5213
  const transitional = config.transitional || transitionalDefaults;
4893
- const legacyInterceptorReqResOrdering = transitional && transitional.legacyInterceptorReqResOrdering;
5214
+ const legacyInterceptorReqResOrdering =
5215
+ transitional && transitional.legacyInterceptorReqResOrdering;
4894
5216
 
4895
5217
  if (legacyInterceptorReqResOrdering) {
4896
5218
  requestInterceptorChain.unshift(interceptor.fulfilled, interceptor.rejected);
@@ -4964,12 +5286,14 @@ class Axios {
4964
5286
  // Provide aliases for supported request methods
4965
5287
  utils$1.forEach(['delete', 'get', 'head', 'options'], function forEachMethodNoData(method) {
4966
5288
  /*eslint func-names:0*/
4967
- Axios.prototype[method] = function(url, config) {
4968
- return this.request(mergeConfig(config || {}, {
4969
- method,
4970
- url,
4971
- data: (config || {}).data
4972
- }));
5289
+ Axios.prototype[method] = function (url, config) {
5290
+ return this.request(
5291
+ mergeConfig(config || {}, {
5292
+ method,
5293
+ url,
5294
+ data: (config || {}).data,
5295
+ })
5296
+ );
4973
5297
  };
4974
5298
  });
4975
5299
 
@@ -4978,14 +5302,18 @@ utils$1.forEach(['post', 'put', 'patch'], function forEachMethodWithData(method)
4978
5302
 
4979
5303
  function generateHTTPMethod(isForm) {
4980
5304
  return function httpMethod(url, data, config) {
4981
- return this.request(mergeConfig(config || {}, {
4982
- method,
4983
- headers: isForm ? {
4984
- 'Content-Type': 'multipart/form-data'
4985
- } : {},
4986
- url,
4987
- data
4988
- }));
5305
+ return this.request(
5306
+ mergeConfig(config || {}, {
5307
+ method,
5308
+ headers: isForm
5309
+ ? {
5310
+ 'Content-Type': 'multipart/form-data',
5311
+ }
5312
+ : {},
5313
+ url,
5314
+ data,
5315
+ })
5316
+ );
4989
5317
  };
4990
5318
  }
4991
5319
 
@@ -5018,7 +5346,7 @@ class CancelToken {
5018
5346
  const token = this;
5019
5347
 
5020
5348
  // eslint-disable-next-line func-names
5021
- this.promise.then(cancel => {
5349
+ this.promise.then((cancel) => {
5022
5350
  if (!token._listeners) return;
5023
5351
 
5024
5352
  let i = token._listeners.length;
@@ -5030,10 +5358,10 @@ class CancelToken {
5030
5358
  });
5031
5359
 
5032
5360
  // eslint-disable-next-line func-names
5033
- this.promise.then = onfulfilled => {
5361
+ this.promise.then = (onfulfilled) => {
5034
5362
  let _resolve;
5035
5363
  // eslint-disable-next-line func-names
5036
- const promise = new Promise(resolve => {
5364
+ const promise = new Promise((resolve) => {
5037
5365
  token.subscribe(resolve);
5038
5366
  _resolve = resolve;
5039
5367
  }).then(onfulfilled);
@@ -5121,7 +5449,7 @@ class CancelToken {
5121
5449
  });
5122
5450
  return {
5123
5451
  token,
5124
- cancel
5452
+ cancel,
5125
5453
  };
5126
5454
  }
5127
5455
  }
@@ -5163,7 +5491,7 @@ function spread(callback) {
5163
5491
  * @returns {boolean} True if the payload is an error thrown by Axios, otherwise false
5164
5492
  */
5165
5493
  function isAxiosError(payload) {
5166
- return utils$1.isObject(payload) && (payload.isAxiosError === true);
5494
+ return utils$1.isObject(payload) && payload.isAxiosError === true;
5167
5495
  }
5168
5496
 
5169
5497
  const HttpStatusCode = {
@@ -5256,10 +5584,10 @@ function createInstance(defaultConfig) {
5256
5584
  const instance = bind(Axios$1.prototype.request, context);
5257
5585
 
5258
5586
  // Copy axios.prototype to instance
5259
- utils$1.extend(instance, Axios$1.prototype, context, {allOwnKeys: true});
5587
+ utils$1.extend(instance, Axios$1.prototype, context, { allOwnKeys: true });
5260
5588
 
5261
5589
  // Copy context to instance
5262
- utils$1.extend(instance, context, null, {allOwnKeys: true});
5590
+ utils$1.extend(instance, context, null, { allOwnKeys: true });
5263
5591
 
5264
5592
  // Factory for creating new instances
5265
5593
  instance.create = function create(instanceConfig) {
@@ -5303,7 +5631,7 @@ axios.mergeConfig = mergeConfig;
5303
5631
 
5304
5632
  axios.AxiosHeaders = AxiosHeaders$1;
5305
5633
 
5306
- axios.formToJSON = thing => formDataToJSON(utils$1.isHTMLForm(thing) ? new FormData(thing) : thing);
5634
+ axios.formToJSON = (thing) => formDataToJSON(utils$1.isHTMLForm(thing) ? new FormData(thing) : thing);
5307
5635
 
5308
5636
  axios.getAdapter = adapters.getAdapter;
5309
5637