cloudstructs 0.12.8 → 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.
- package/.jsii +6 -6
- package/API.md +308 -0
- package/assets/slack-textract/detect.lambda/index.js +1107 -1006
- package/assets/ssl-server-test/analyze.lambda/index.js +103 -68
- package/assets/toolkit-cleaner/clean.lambda/index.js +103 -68
- package/lib/codecommit-mirror/index.js +2 -2
- package/lib/dmarc/index.js +1 -1
- package/lib/ecs-service-roller/index.js +2 -2
- package/lib/email-receiver/receiver.js +1 -1
- package/lib/mjml-template/index.js +1 -1
- package/lib/saml-identity-provider/index.js +2 -2
- package/lib/slack-app/manifest.js +1 -1
- package/lib/slack-app/slack-app.js +2 -2
- package/lib/slack-events/index.js +1 -1
- package/lib/slack-textract/index.js +1 -1
- package/lib/ssl-server-test/index.js +1 -1
- package/lib/state-machine-cr-provider/index.js +1 -1
- package/lib/static-website/index.js +1 -1
- package/lib/toolkit-cleaner/index.js +1 -1
- package/lib/url-shortener/index.js +1 -1
- package/node_modules/@aws/durable-execution-sdk-js/README.md +25 -5
- package/node_modules/@aws/durable-execution-sdk-js/dist/index.mjs +192 -70
- package/node_modules/@aws/durable-execution-sdk-js/dist/index.mjs.map +1 -1
- package/node_modules/@aws/durable-execution-sdk-js/dist-cjs/index.js +192 -70
- package/node_modules/@aws/durable-execution-sdk-js/dist-cjs/index.js.map +1 -1
- package/node_modules/@aws/durable-execution-sdk-js/dist-types/context/durable-context/durable-context.d.ts +5 -2
- package/node_modules/@aws/durable-execution-sdk-js/dist-types/context/durable-context/durable-context.d.ts.map +1 -1
- package/node_modules/@aws/durable-execution-sdk-js/dist-types/context/durable-context/durable-context.test.d.ts +2 -0
- package/node_modules/@aws/durable-execution-sdk-js/dist-types/context/durable-context/durable-context.test.d.ts.map +1 -0
- package/node_modules/@aws/durable-execution-sdk-js/dist-types/durable-execution-api-client/durable-execution-api-client.d.ts.map +1 -1
- package/node_modules/@aws/durable-execution-sdk-js/dist-types/handlers/concurrent-execution-handler/batch-result.d.ts.map +1 -1
- package/node_modules/@aws/durable-execution-sdk-js/dist-types/handlers/concurrent-execution-handler/concurrent-execution-handler.d.ts.map +1 -1
- package/node_modules/@aws/durable-execution-sdk-js/dist-types/handlers/invoke-handler/invoke-handler.d.ts.map +1 -1
- package/node_modules/@aws/durable-execution-sdk-js/dist-types/index.d.ts +1 -1
- package/node_modules/@aws/durable-execution-sdk-js/dist-types/index.d.ts.map +1 -1
- package/node_modules/@aws/durable-execution-sdk-js/dist-types/types/durable-context.d.ts +9 -0
- package/node_modules/@aws/durable-execution-sdk-js/dist-types/types/durable-context.d.ts.map +1 -1
- package/node_modules/@aws/durable-execution-sdk-js/dist-types/types/invoke.d.ts +2 -0
- package/node_modules/@aws/durable-execution-sdk-js/dist-types/types/invoke.d.ts.map +1 -1
- package/node_modules/@aws/durable-execution-sdk-js/dist-types/types/step.d.ts +45 -0
- package/node_modules/@aws/durable-execution-sdk-js/dist-types/types/step.d.ts.map +1 -1
- package/node_modules/@aws/durable-execution-sdk-js/dist-types/utils/checkpoint/checkpoint-manager.d.ts +6 -1
- package/node_modules/@aws/durable-execution-sdk-js/dist-types/utils/checkpoint/checkpoint-manager.d.ts.map +1 -1
- package/node_modules/@aws/durable-execution-sdk-js/dist-types/utils/constants/constants.d.ts +12 -0
- package/node_modules/@aws/durable-execution-sdk-js/dist-types/utils/constants/constants.d.ts.map +1 -1
- package/node_modules/@aws/durable-execution-sdk-js/dist-types/utils/constants/version.d.ts +14 -0
- package/node_modules/@aws/durable-execution-sdk-js/dist-types/utils/constants/version.d.ts.map +1 -0
- package/node_modules/@aws/durable-execution-sdk-js/dist-types/utils/logger/default-logger.d.ts.map +1 -1
- package/node_modules/@aws/durable-execution-sdk-js/dist-types/with-durable-execution.d.ts.map +1 -1
- package/node_modules/@aws/durable-execution-sdk-js/package.json +1 -2
- package/node_modules/@aws/lambda-invoke-store/dist-cjs/invoke-store.js +2 -2
- package/node_modules/@aws/lambda-invoke-store/dist-es/invoke-store.js +2 -2
- package/node_modules/@aws/lambda-invoke-store/dist-types/invoke-store.d.ts +1 -1
- package/node_modules/@aws/lambda-invoke-store/package.json +1 -1
- package/node_modules/@aws-sdk/client-lambda/README.md +26 -46
- package/node_modules/@aws-sdk/client-lambda/dist-cjs/index.js +294 -3996
- package/node_modules/@aws-sdk/client-lambda/dist-cjs/models/LambdaServiceException.js +12 -0
- package/node_modules/@aws-sdk/client-lambda/dist-cjs/models/errors.js +730 -0
- package/node_modules/@aws-sdk/client-lambda/dist-cjs/runtimeConfig.shared.js +2 -0
- package/node_modules/@aws-sdk/client-lambda/dist-cjs/schemas/schemas_0.js +2680 -0
- package/node_modules/@aws-sdk/client-lambda/dist-es/Lambda.js +49 -1
- package/node_modules/@aws-sdk/client-lambda/dist-es/models/enums.js +7 -0
- package/node_modules/@aws-sdk/client-lambda/dist-es/runtimeConfig.shared.js +2 -0
- package/node_modules/@aws-sdk/client-lambda/dist-es/schemas/schemas_0.js +320 -308
- package/node_modules/@aws-sdk/client-lambda/dist-types/Lambda.d.ts +150 -1
- package/node_modules/@aws-sdk/client-lambda/dist-types/commands/CreateEventSourceMappingCommand.d.ts +8 -2
- package/node_modules/@aws-sdk/client-lambda/dist-types/commands/DeleteEventSourceMappingCommand.d.ts +4 -1
- package/node_modules/@aws-sdk/client-lambda/dist-types/commands/GetEventSourceMappingCommand.d.ts +4 -1
- package/node_modules/@aws-sdk/client-lambda/dist-types/commands/GetProvisionedConcurrencyConfigCommand.d.ts +4 -4
- package/node_modules/@aws-sdk/client-lambda/dist-types/commands/InvokeAsyncCommand.d.ts +1 -1
- package/node_modules/@aws-sdk/client-lambda/dist-types/commands/ListEventSourceMappingsCommand.d.ts +4 -1
- package/node_modules/@aws-sdk/client-lambda/dist-types/commands/UpdateEventSourceMappingCommand.d.ts +8 -2
- package/node_modules/@aws-sdk/client-lambda/dist-types/models/enums.d.ts +15 -0
- package/node_modules/@aws-sdk/client-lambda/dist-types/models/models_0.d.ts +30 -3
- package/node_modules/@aws-sdk/client-lambda/dist-types/schemas/schemas_0.d.ts +53 -45
- package/node_modules/@aws-sdk/client-lambda/dist-types/ts3.4/Lambda.d.ts +173 -1
- package/node_modules/@aws-sdk/client-lambda/dist-types/ts3.4/models/enums.d.ts +9 -0
- package/node_modules/@aws-sdk/client-lambda/dist-types/ts3.4/models/models_0.d.ts +7 -0
- package/node_modules/@aws-sdk/client-lambda/dist-types/ts3.4/schemas/schemas_0.d.ts +48 -45
- package/node_modules/@aws-sdk/client-lambda/package.json +43 -43
- package/node_modules/@aws-sdk/core/account-id-endpoint.js +0 -1
- package/node_modules/@aws-sdk/core/dist-cjs/index.js +45 -69
- package/node_modules/@aws-sdk/core/dist-cjs/submodules/protocols/index.js +45 -69
- package/node_modules/@aws-sdk/core/dist-es/submodules/account-id-endpoint/AccountIdEndpointModeConfigResolver.js +1 -1
- package/node_modules/@aws-sdk/core/dist-es/submodules/account-id-endpoint/NodeAccountIdEndpointModeConfigOptions.js +1 -1
- package/node_modules/@aws-sdk/core/dist-es/submodules/protocols/ProtocolLib.js +3 -3
- package/node_modules/@aws-sdk/core/dist-es/submodules/protocols/index.js +2 -0
- package/node_modules/@aws-sdk/core/dist-es/submodules/protocols/json/JsonShapeDeserializer.js +3 -10
- package/node_modules/@aws-sdk/core/dist-es/submodules/protocols/json/JsonShapeSerializer.js +1 -2
- package/node_modules/@aws-sdk/core/dist-es/submodules/protocols/json/experimental/SinglePassJsonShapeSerializer.js +1 -2
- package/node_modules/@aws-sdk/core/dist-es/submodules/protocols/query/AwsEc2QueryProtocol.js +4 -0
- package/node_modules/@aws-sdk/core/dist-es/submodules/protocols/query/AwsQueryProtocol.js +1 -1
- package/node_modules/@aws-sdk/core/dist-es/submodules/protocols/query/QueryShapeSerializer.js +15 -8
- package/node_modules/@aws-sdk/core/dist-es/submodules/protocols/xml/AwsRestXmlProtocol.js +11 -0
- package/node_modules/@aws-sdk/core/dist-es/submodules/protocols/xml/XmlShapeDeserializer.js +5 -7
- package/node_modules/@aws-sdk/core/dist-es/submodules/protocols/xml/XmlShapeSerializer.js +1 -2
- package/node_modules/@aws-sdk/core/dist-types/submodules/account-id-endpoint/AccountIdEndpointModeConfigResolver.d.ts +1 -1
- package/node_modules/@aws-sdk/core/dist-types/submodules/account-id-endpoint/NodeAccountIdEndpointModeConfigOptions.d.ts +2 -2
- package/node_modules/@aws-sdk/core/dist-types/submodules/httpAuthSchemes/aws_sdk/AwsSdkSigV4Signer.d.ts +1 -1
- package/node_modules/@aws-sdk/core/dist-types/submodules/httpAuthSchemes/aws_sdk/NODE_AUTH_SCHEME_PREFERENCE_OPTIONS.d.ts +1 -1
- package/node_modules/@aws-sdk/core/dist-types/submodules/httpAuthSchemes/aws_sdk/resolveAwsSdkSigV4AConfig.d.ts +1 -1
- package/node_modules/@aws-sdk/core/dist-types/submodules/httpAuthSchemes/aws_sdk/resolveAwsSdkSigV4Config.d.ts +1 -1
- package/node_modules/@aws-sdk/core/dist-types/submodules/protocols/ProtocolLib.d.ts +1 -1
- package/node_modules/@aws-sdk/core/dist-types/submodules/protocols/index.d.ts +2 -0
- package/node_modules/@aws-sdk/core/dist-types/submodules/protocols/json/JsonShapeDeserializer.d.ts +1 -1
- package/node_modules/@aws-sdk/core/dist-types/submodules/protocols/query/AwsEc2QueryProtocol.d.ts +4 -0
- package/node_modules/@aws-sdk/core/dist-types/submodules/protocols/query/QuerySerializerSettings.d.ts +7 -0
- package/node_modules/@aws-sdk/core/dist-types/submodules/protocols/query/QueryShapeSerializer.d.ts +1 -1
- package/node_modules/@aws-sdk/core/dist-types/submodules/protocols/xml/XmlShapeSerializer.d.ts +1 -1
- package/node_modules/@aws-sdk/core/dist-types/ts3.4/submodules/protocols/index.d.ts +2 -0
- package/node_modules/@aws-sdk/core/dist-types/ts3.4/submodules/protocols/query/AwsEc2QueryProtocol.d.ts +1 -0
- package/node_modules/@aws-sdk/core/dist-types/ts3.4/submodules/protocols/query/QuerySerializerSettings.d.ts +1 -0
- package/node_modules/@aws-sdk/core/dist-types/ts3.4/submodules/protocols/query/QueryShapeSerializer.d.ts +6 -1
- package/node_modules/@aws-sdk/core/package.json +16 -16
- package/node_modules/@aws-sdk/credential-provider-env/dist-types/fromEnv.d.ts +1 -1
- package/node_modules/@aws-sdk/credential-provider-env/package.json +8 -8
- package/node_modules/@aws-sdk/credential-provider-http/dist-cjs/fromHttp/fromHttp.js +1 -1
- package/node_modules/@aws-sdk/credential-provider-http/dist-es/fromHttp/fromHttp.js +1 -1
- package/node_modules/@aws-sdk/credential-provider-http/dist-types/fromHttp/checkUrl.d.ts +1 -1
- package/node_modules/@aws-sdk/credential-provider-http/dist-types/fromHttp/fromHttp.browser.d.ts +1 -1
- package/node_modules/@aws-sdk/credential-provider-http/dist-types/fromHttp/fromHttp.d.ts +1 -1
- package/node_modules/@aws-sdk/credential-provider-http/dist-types/fromHttp/requestHelpers.d.ts +2 -2
- package/node_modules/@aws-sdk/credential-provider-http/package.json +13 -13
- package/node_modules/@aws-sdk/credential-provider-ini/dist-types/fromIni.d.ts +2 -2
- package/node_modules/@aws-sdk/credential-provider-ini/dist-types/resolveAssumeRoleCredentials.d.ts +2 -2
- package/node_modules/@aws-sdk/credential-provider-ini/dist-types/resolveCredentialSource.d.ts +1 -1
- package/node_modules/@aws-sdk/credential-provider-ini/dist-types/resolveProcessCredentials.d.ts +2 -2
- package/node_modules/@aws-sdk/credential-provider-ini/dist-types/resolveProfileData.d.ts +1 -1
- package/node_modules/@aws-sdk/credential-provider-ini/dist-types/resolveStaticCredentials.d.ts +2 -2
- package/node_modules/@aws-sdk/credential-provider-ini/dist-types/resolveWebIdentityCredentials.d.ts +2 -2
- package/node_modules/@aws-sdk/credential-provider-ini/package.json +17 -17
- package/node_modules/@aws-sdk/credential-provider-login/package.json +11 -11
- package/node_modules/@aws-sdk/credential-provider-node/README.md +3 -3
- package/node_modules/@aws-sdk/credential-provider-node/dist-cjs/index.js +8 -2
- package/node_modules/@aws-sdk/credential-provider-node/dist-es/runtime/memoize-chain.js +8 -2
- package/node_modules/@aws-sdk/credential-provider-node/package.json +15 -15
- package/node_modules/@aws-sdk/credential-provider-process/dist-cjs/index.js +3 -3
- package/node_modules/@aws-sdk/credential-provider-process/dist-es/resolveProcessCredentials.js +2 -2
- package/node_modules/@aws-sdk/credential-provider-process/dist-types/fromProcess.d.ts +1 -1
- package/node_modules/@aws-sdk/credential-provider-process/dist-types/getValidatedProcessCredentials.d.ts +2 -2
- package/node_modules/@aws-sdk/credential-provider-process/dist-types/resolveProcessCredentials.d.ts +1 -1
- package/node_modules/@aws-sdk/credential-provider-process/package.json +9 -9
- package/node_modules/@aws-sdk/credential-provider-sso/dist-cjs/index.js +1 -1
- package/node_modules/@aws-sdk/credential-provider-sso/dist-cjs/loadSso-BKDNrsal.js +8 -0
- package/node_modules/@aws-sdk/credential-provider-sso/dist-es/loadSso.js +1 -1
- package/node_modules/@aws-sdk/credential-provider-sso/dist-types/fromSSO.d.ts +1 -1
- package/node_modules/@aws-sdk/credential-provider-sso/dist-types/isSsoProfile.d.ts +2 -2
- package/node_modules/@aws-sdk/credential-provider-sso/dist-types/loadSso.d.ts +2 -2
- package/node_modules/@aws-sdk/credential-provider-sso/dist-types/resolveSSOCredentials.d.ts +2 -2
- package/node_modules/@aws-sdk/credential-provider-sso/dist-types/ts3.4/loadSso.d.ts +5 -2
- package/node_modules/@aws-sdk/credential-provider-sso/dist-types/types.d.ts +1 -1
- package/node_modules/@aws-sdk/credential-provider-sso/dist-types/validateSsoProfile.d.ts +2 -2
- package/node_modules/@aws-sdk/credential-provider-sso/package.json +11 -11
- package/node_modules/@aws-sdk/credential-provider-web-identity/dist-cjs/fromTokenFile.js +2 -2
- package/node_modules/@aws-sdk/credential-provider-web-identity/dist-cjs/index.js +14 -6
- package/node_modules/@aws-sdk/credential-provider-web-identity/dist-es/fromTokenFile.js +1 -1
- package/node_modules/@aws-sdk/credential-provider-web-identity/dist-types/fromTokenFile.d.ts +1 -1
- package/node_modules/@aws-sdk/credential-provider-web-identity/package.json +10 -10
- package/node_modules/@aws-sdk/middleware-host-header/dist-types/index.d.ts +1 -1
- package/node_modules/@aws-sdk/middleware-host-header/package.json +7 -7
- package/node_modules/@aws-sdk/middleware-logger/package.json +6 -6
- package/node_modules/@aws-sdk/middleware-recursion-detection/dist-cjs/index.js +7 -3
- package/node_modules/@aws-sdk/middleware-recursion-detection/dist-types/configuration.d.ts +1 -1
- package/node_modules/@aws-sdk/middleware-recursion-detection/dist-types/getRecursionDetectionPlugin.d.ts +1 -1
- package/node_modules/@aws-sdk/middleware-recursion-detection/dist-types/recursionDetectionMiddleware.browser.d.ts +1 -1
- package/node_modules/@aws-sdk/middleware-recursion-detection/dist-types/recursionDetectionMiddleware.d.ts +1 -1
- package/node_modules/@aws-sdk/middleware-recursion-detection/dist-types/recursionDetectionMiddleware.native.d.ts +1 -1
- package/node_modules/@aws-sdk/middleware-recursion-detection/package.json +7 -7
- package/node_modules/@aws-sdk/middleware-user-agent/dist-cjs/index.js +9 -9
- package/node_modules/@aws-sdk/middleware-user-agent/dist-es/check-features.js +9 -9
- package/node_modules/@aws-sdk/middleware-user-agent/dist-types/check-features.d.ts +4 -2
- package/node_modules/@aws-sdk/middleware-user-agent/dist-types/configurations.d.ts +1 -1
- package/node_modules/@aws-sdk/middleware-user-agent/dist-types/ts3.4/check-features.d.ts +3 -3
- package/node_modules/@aws-sdk/middleware-user-agent/dist-types/user-agent-middleware.d.ts +2 -2
- package/node_modules/@aws-sdk/middleware-user-agent/package.json +11 -10
- package/node_modules/@aws-sdk/nested-clients/cognito-identity.d.ts +7 -0
- package/node_modules/@aws-sdk/nested-clients/cognito-identity.js +5 -0
- package/node_modules/@aws-sdk/nested-clients/dist-cjs/submodules/cognito-identity/auth/httpAuthSchemeProvider.js +60 -0
- package/node_modules/@aws-sdk/nested-clients/dist-cjs/submodules/cognito-identity/endpoint/ruleset.js +146 -0
- package/node_modules/@aws-sdk/nested-clients/dist-cjs/submodules/cognito-identity/index.js +174 -0
- package/node_modules/@aws-sdk/nested-clients/dist-cjs/submodules/cognito-identity/models/CognitoIdentityServiceException.js +12 -0
- package/node_modules/@aws-sdk/nested-clients/dist-cjs/submodules/cognito-identity/models/errors.js +121 -0
- package/node_modules/@aws-sdk/{client-sso/dist-cjs → nested-clients/dist-cjs/submodules/cognito-identity}/runtimeConfig.browser.js +3 -2
- package/node_modules/@aws-sdk/{client-sso/dist-cjs → nested-clients/dist-cjs/submodules/cognito-identity}/runtimeConfig.js +5 -3
- package/node_modules/@aws-sdk/nested-clients/dist-cjs/submodules/cognito-identity/runtimeConfig.shared.js +50 -0
- package/node_modules/@aws-sdk/nested-clients/dist-cjs/submodules/cognito-identity/schemas/schemas_0.js +110 -0
- package/node_modules/@aws-sdk/nested-clients/dist-cjs/submodules/signin/endpoint/ruleset.js +128 -2
- package/node_modules/@aws-sdk/nested-clients/dist-cjs/submodules/signin/index.js +27 -206
- package/node_modules/@aws-sdk/nested-clients/dist-cjs/submodules/signin/models/SigninServiceException.js +12 -0
- package/node_modules/@aws-sdk/nested-clients/dist-cjs/submodules/signin/models/errors.js +64 -0
- package/node_modules/@aws-sdk/nested-clients/dist-cjs/submodules/signin/runtimeConfig.shared.js +2 -0
- package/node_modules/@aws-sdk/nested-clients/dist-cjs/submodules/signin/schemas/schemas_0.js +125 -0
- package/node_modules/@aws-sdk/{client-sso/dist-cjs → nested-clients/dist-cjs/submodules/sso}/auth/httpAuthSchemeProvider.js +8 -27
- package/node_modules/@aws-sdk/nested-clients/dist-cjs/submodules/sso/endpoint/endpointResolver.js +18 -0
- package/node_modules/@aws-sdk/nested-clients/dist-cjs/submodules/sso/endpoint/ruleset.js +106 -0
- package/node_modules/@aws-sdk/nested-clients/dist-cjs/submodules/sso/index.js +160 -0
- package/node_modules/@aws-sdk/nested-clients/dist-cjs/submodules/sso/models/SSOServiceException.js +12 -0
- package/node_modules/@aws-sdk/nested-clients/dist-cjs/submodules/sso/models/errors.js +56 -0
- package/node_modules/@aws-sdk/nested-clients/dist-cjs/submodules/sso/runtimeConfig.browser.js +38 -0
- package/node_modules/@aws-sdk/nested-clients/dist-cjs/submodules/sso/runtimeConfig.js +53 -0
- package/node_modules/@aws-sdk/nested-clients/dist-cjs/submodules/sso/runtimeConfig.native.js +15 -0
- package/node_modules/@aws-sdk/{client-sso/dist-cjs → nested-clients/dist-cjs/submodules/sso}/runtimeConfig.shared.js +2 -0
- package/node_modules/@aws-sdk/nested-clients/dist-cjs/submodules/sso/schemas/schemas_0.js +90 -0
- package/node_modules/@aws-sdk/nested-clients/dist-cjs/submodules/sso-oidc/endpoint/ruleset.js +101 -2
- package/node_modules/@aws-sdk/nested-clients/dist-cjs/submodules/sso-oidc/index.js +27 -355
- package/node_modules/@aws-sdk/nested-clients/dist-cjs/submodules/sso-oidc/models/SSOOIDCServiceException.js +12 -0
- package/node_modules/@aws-sdk/nested-clients/dist-cjs/submodules/sso-oidc/models/errors.js +195 -0
- package/node_modules/@aws-sdk/nested-clients/dist-cjs/submodules/sso-oidc/runtimeConfig.shared.js +2 -0
- package/node_modules/@aws-sdk/nested-clients/dist-cjs/submodules/sso-oidc/schemas/schemas_0.js +140 -0
- package/node_modules/@aws-sdk/nested-clients/dist-cjs/submodules/sts/endpoint/ruleset.js +140 -2
- package/node_modules/@aws-sdk/nested-clients/dist-cjs/submodules/sts/index.js +33 -314
- package/node_modules/@aws-sdk/nested-clients/dist-cjs/submodules/sts/models/STSServiceException.js +12 -0
- package/node_modules/@aws-sdk/nested-clients/dist-cjs/submodules/sts/models/errors.js +95 -0
- package/node_modules/@aws-sdk/nested-clients/dist-cjs/submodules/sts/runtimeConfig.shared.js +2 -0
- package/node_modules/@aws-sdk/nested-clients/dist-cjs/submodules/sts/schemas/schemas_0.js +195 -0
- package/node_modules/@aws-sdk/nested-clients/dist-es/submodules/cognito-identity/CognitoIdentity.js +11 -0
- package/node_modules/@aws-sdk/nested-clients/dist-es/submodules/cognito-identity/CognitoIdentityClient.js +50 -0
- package/node_modules/@aws-sdk/nested-clients/dist-es/submodules/cognito-identity/auth/httpAuthSchemeProvider.js +54 -0
- package/node_modules/@aws-sdk/{client-sso/dist-es/commands/ListAccountsCommand.js → nested-clients/dist-es/submodules/cognito-identity/commands/GetCredentialsForIdentityCommand.js} +5 -5
- package/node_modules/@aws-sdk/{client-sso/dist-es/commands/LogoutCommand.js → nested-clients/dist-es/submodules/cognito-identity/commands/GetIdCommand.js} +5 -5
- package/node_modules/@aws-sdk/nested-clients/dist-es/submodules/cognito-identity/commands/index.js +2 -0
- package/node_modules/@aws-sdk/nested-clients/dist-es/submodules/cognito-identity/endpoint/EndpointParameters.js +13 -0
- package/node_modules/@aws-sdk/nested-clients/dist-es/submodules/cognito-identity/endpoint/ruleset.js +143 -0
- package/node_modules/@aws-sdk/nested-clients/dist-es/submodules/cognito-identity/index.js +7 -0
- package/node_modules/@aws-sdk/nested-clients/dist-es/submodules/cognito-identity/models/CognitoIdentityServiceException.js +8 -0
- package/node_modules/@aws-sdk/nested-clients/dist-es/submodules/cognito-identity/models/errors.js +109 -0
- package/node_modules/@aws-sdk/{client-sso/dist-es → nested-clients/dist-es/submodules/cognito-identity}/runtimeConfig.browser.js +3 -2
- package/node_modules/@aws-sdk/{client-sso/dist-es → nested-clients/dist-es/submodules/cognito-identity}/runtimeConfig.js +5 -3
- package/node_modules/@aws-sdk/nested-clients/dist-es/submodules/cognito-identity/runtimeConfig.shared.js +46 -0
- package/node_modules/@aws-sdk/nested-clients/dist-es/submodules/cognito-identity/schemas/schemas_0.js +107 -0
- package/node_modules/@aws-sdk/nested-clients/dist-es/submodules/signin/Signin.js +1 -1
- package/node_modules/@aws-sdk/nested-clients/dist-es/submodules/signin/SigninClient.js +1 -1
- package/node_modules/@aws-sdk/nested-clients/dist-es/submodules/signin/auth/httpAuthSchemeProvider.js +1 -1
- package/node_modules/@aws-sdk/nested-clients/dist-es/submodules/signin/endpoint/ruleset.js +128 -2
- package/node_modules/@aws-sdk/nested-clients/dist-es/submodules/signin/runtimeConfig.shared.js +2 -0
- package/node_modules/@aws-sdk/nested-clients/dist-es/submodules/signin/schemas/schemas_0.js +15 -12
- package/node_modules/@aws-sdk/nested-clients/dist-es/submodules/sso/SSO.js +9 -0
- package/node_modules/@aws-sdk/{client-sso/dist-es → nested-clients/dist-es/submodules/sso}/SSOClient.js +1 -1
- package/node_modules/@aws-sdk/nested-clients/dist-es/submodules/sso/auth/httpAuthExtensionConfiguration.js +38 -0
- package/node_modules/@aws-sdk/{client-sso/dist-es → nested-clients/dist-es/submodules/sso}/auth/httpAuthSchemeProvider.js +9 -28
- package/node_modules/@aws-sdk/nested-clients/dist-es/submodules/sso/commands/index.js +1 -0
- package/node_modules/@aws-sdk/nested-clients/dist-es/submodules/sso/endpoint/endpointResolver.js +14 -0
- package/node_modules/@aws-sdk/nested-clients/dist-es/submodules/sso/endpoint/ruleset.js +103 -0
- package/node_modules/@aws-sdk/{client-sso/dist-es → nested-clients/dist-es/submodules/sso}/index.js +0 -1
- package/node_modules/@aws-sdk/nested-clients/dist-es/submodules/sso/models/models_0.js +1 -0
- package/node_modules/@aws-sdk/nested-clients/dist-es/submodules/sso/runtimeConfig.browser.js +33 -0
- package/node_modules/@aws-sdk/nested-clients/dist-es/submodules/sso/runtimeConfig.js +48 -0
- package/node_modules/@aws-sdk/nested-clients/dist-es/submodules/sso/runtimeConfig.native.js +11 -0
- package/node_modules/@aws-sdk/{client-sso/dist-es → nested-clients/dist-es/submodules/sso}/runtimeConfig.shared.js +2 -0
- package/node_modules/@aws-sdk/nested-clients/dist-es/submodules/sso/runtimeExtensions.js +9 -0
- package/node_modules/@aws-sdk/nested-clients/dist-es/submodules/sso/schemas/schemas_0.js +87 -0
- package/node_modules/@aws-sdk/nested-clients/dist-es/submodules/sso-oidc/SSOOIDCClient.js +1 -1
- package/node_modules/@aws-sdk/nested-clients/dist-es/submodules/sso-oidc/auth/httpAuthSchemeProvider.js +1 -1
- package/node_modules/@aws-sdk/nested-clients/dist-es/submodules/sso-oidc/endpoint/ruleset.js +101 -2
- package/node_modules/@aws-sdk/nested-clients/dist-es/submodules/sso-oidc/runtimeConfig.shared.js +2 -0
- package/node_modules/@aws-sdk/nested-clients/dist-es/submodules/sso-oidc/schemas/schemas_0.js +40 -37
- package/node_modules/@aws-sdk/nested-clients/dist-es/submodules/sts/STS.js +1 -1
- package/node_modules/@aws-sdk/nested-clients/dist-es/submodules/sts/STSClient.js +1 -1
- package/node_modules/@aws-sdk/nested-clients/dist-es/submodules/sts/auth/httpAuthSchemeProvider.js +1 -1
- package/node_modules/@aws-sdk/nested-clients/dist-es/submodules/sts/defaultStsRoleAssumers.js +1 -1
- package/node_modules/@aws-sdk/nested-clients/dist-es/submodules/sts/endpoint/ruleset.js +140 -2
- package/node_modules/@aws-sdk/nested-clients/dist-es/submodules/sts/runtimeConfig.shared.js +2 -0
- package/node_modules/@aws-sdk/nested-clients/dist-es/submodules/sts/schemas/schemas_0.js +60 -57
- package/node_modules/@aws-sdk/nested-clients/dist-types/submodules/cognito-identity/CognitoIdentity.d.ts +38 -0
- package/node_modules/@aws-sdk/nested-clients/dist-types/submodules/cognito-identity/CognitoIdentityClient.d.ts +198 -0
- package/node_modules/@aws-sdk/nested-clients/dist-types/submodules/cognito-identity/auth/httpAuthExtensionConfiguration.d.ts +30 -0
- package/node_modules/@aws-sdk/nested-clients/dist-types/submodules/cognito-identity/auth/httpAuthSchemeProvider.d.ts +75 -0
- package/node_modules/@aws-sdk/nested-clients/dist-types/submodules/cognito-identity/commands/GetCredentialsForIdentityCommand.d.ts +120 -0
- package/node_modules/@aws-sdk/nested-clients/dist-types/submodules/cognito-identity/commands/GetIdCommand.d.ts +107 -0
- package/node_modules/@aws-sdk/nested-clients/dist-types/submodules/cognito-identity/commands/index.d.ts +2 -0
- package/node_modules/@aws-sdk/nested-clients/dist-types/submodules/cognito-identity/endpoint/ruleset.d.ts +2 -0
- package/node_modules/@aws-sdk/nested-clients/dist-types/submodules/cognito-identity/extensionConfiguration.d.ts +9 -0
- package/node_modules/@aws-sdk/nested-clients/dist-types/submodules/cognito-identity/index.d.ts +29 -0
- package/node_modules/@aws-sdk/nested-clients/dist-types/submodules/cognito-identity/models/CognitoIdentityServiceException.d.ts +14 -0
- package/node_modules/@aws-sdk/nested-clients/dist-types/submodules/cognito-identity/models/errors.d.ts +119 -0
- package/node_modules/@aws-sdk/nested-clients/dist-types/submodules/cognito-identity/models/models_0.d.ts +136 -0
- package/node_modules/@aws-sdk/nested-clients/dist-types/submodules/cognito-identity/runtimeConfig.browser.d.ts +62 -0
- package/node_modules/@aws-sdk/nested-clients/dist-types/submodules/cognito-identity/runtimeConfig.d.ts +62 -0
- package/node_modules/@aws-sdk/nested-clients/dist-types/submodules/cognito-identity/runtimeConfig.native.d.ts +61 -0
- package/node_modules/@aws-sdk/nested-clients/dist-types/submodules/cognito-identity/runtimeConfig.shared.d.ts +38 -0
- package/node_modules/@aws-sdk/nested-clients/dist-types/submodules/cognito-identity/runtimeExtensions.d.ts +17 -0
- package/node_modules/@aws-sdk/nested-clients/dist-types/submodules/cognito-identity/schemas/schemas_0.d.ts +25 -0
- package/node_modules/@aws-sdk/nested-clients/dist-types/submodules/signin/Signin.d.ts +1 -1
- package/node_modules/@aws-sdk/nested-clients/dist-types/submodules/signin/SigninClient.d.ts +4 -3
- package/node_modules/@aws-sdk/nested-clients/dist-types/submodules/signin/auth/httpAuthExtensionConfiguration.d.ts +2 -1
- package/node_modules/@aws-sdk/nested-clients/dist-types/submodules/signin/auth/httpAuthSchemeProvider.d.ts +1 -1
- package/node_modules/@aws-sdk/nested-clients/dist-types/submodules/signin/endpoint/ruleset.d.ts +1 -1
- package/node_modules/@aws-sdk/nested-clients/dist-types/submodules/signin/models/errors.d.ts +1 -1
- package/node_modules/@aws-sdk/nested-clients/dist-types/submodules/signin/schemas/schemas_0.d.ts +11 -4
- package/node_modules/@aws-sdk/{client-sso/dist-types → nested-clients/dist-types/submodules/sso}/SSO.d.ts +1 -22
- package/node_modules/@aws-sdk/{client-sso/dist-types → nested-clients/dist-types/submodules/sso}/SSOClient.d.ts +6 -8
- package/node_modules/@aws-sdk/{client-sso/dist-types → nested-clients/dist-types/submodules/sso}/auth/httpAuthExtensionConfiguration.d.ts +2 -1
- package/node_modules/@aws-sdk/{client-sso/dist-types → nested-clients/dist-types/submodules/sso}/auth/httpAuthSchemeProvider.d.ts +1 -1
- package/node_modules/@aws-sdk/{client-sso/dist-types → nested-clients/dist-types/submodules/sso}/commands/GetRoleCredentialsCommand.d.ts +3 -3
- package/node_modules/@aws-sdk/nested-clients/dist-types/submodules/sso/commands/index.d.ts +1 -0
- package/node_modules/@aws-sdk/nested-clients/dist-types/submodules/sso/endpoint/EndpointParameters.d.ts +50 -0
- package/node_modules/@aws-sdk/nested-clients/dist-types/submodules/sso/endpoint/endpointResolver.d.ts +8 -0
- package/node_modules/@aws-sdk/nested-clients/dist-types/submodules/sso/endpoint/ruleset.d.ts +2 -0
- package/node_modules/@aws-sdk/{client-sso/dist-types → nested-clients/dist-types/submodules/sso}/index.d.ts +0 -1
- package/node_modules/@aws-sdk/nested-clients/dist-types/submodules/sso/models/models_0.d.ts +61 -0
- package/node_modules/@aws-sdk/{client-sso/dist-types → nested-clients/dist-types/submodules/sso}/schemas/schemas_0.d.ts +11 -14
- package/node_modules/@aws-sdk/nested-clients/dist-types/submodules/sso-oidc/SSOOIDC.d.ts +1 -1
- package/node_modules/@aws-sdk/nested-clients/dist-types/submodules/sso-oidc/SSOOIDCClient.d.ts +4 -3
- package/node_modules/@aws-sdk/nested-clients/dist-types/submodules/sso-oidc/auth/httpAuthExtensionConfiguration.d.ts +2 -1
- package/node_modules/@aws-sdk/nested-clients/dist-types/submodules/sso-oidc/auth/httpAuthSchemeProvider.d.ts +1 -1
- package/node_modules/@aws-sdk/nested-clients/dist-types/submodules/sso-oidc/endpoint/ruleset.d.ts +1 -1
- package/node_modules/@aws-sdk/nested-clients/dist-types/submodules/sso-oidc/models/errors.d.ts +1 -1
- package/node_modules/@aws-sdk/nested-clients/dist-types/submodules/sso-oidc/schemas/schemas_0.d.ts +10 -3
- package/node_modules/@aws-sdk/nested-clients/dist-types/submodules/sts/STS.d.ts +2 -2
- package/node_modules/@aws-sdk/nested-clients/dist-types/submodules/sts/STSClient.d.ts +5 -4
- package/node_modules/@aws-sdk/nested-clients/dist-types/submodules/sts/auth/httpAuthExtensionConfiguration.d.ts +2 -1
- package/node_modules/@aws-sdk/nested-clients/dist-types/submodules/sts/auth/httpAuthSchemeProvider.d.ts +3 -2
- package/node_modules/@aws-sdk/nested-clients/dist-types/submodules/sts/defaultRoleAssumers.d.ts +3 -3
- package/node_modules/@aws-sdk/nested-clients/dist-types/submodules/sts/defaultStsRoleAssumers.d.ts +3 -3
- package/node_modules/@aws-sdk/nested-clients/dist-types/submodules/sts/endpoint/ruleset.d.ts +1 -1
- package/node_modules/@aws-sdk/nested-clients/dist-types/submodules/sts/schemas/schemas_0.d.ts +15 -8
- package/node_modules/@aws-sdk/nested-clients/dist-types/ts3.4/submodules/cognito-identity/CognitoIdentity.d.ts +38 -0
- package/node_modules/@aws-sdk/nested-clients/dist-types/ts3.4/submodules/cognito-identity/CognitoIdentityClient.d.ts +126 -0
- package/node_modules/@aws-sdk/nested-clients/dist-types/ts3.4/submodules/cognito-identity/auth/httpAuthExtensionConfiguration.d.ts +32 -0
- package/node_modules/@aws-sdk/nested-clients/dist-types/ts3.4/submodules/cognito-identity/auth/httpAuthSchemeProvider.d.ts +47 -0
- package/node_modules/@aws-sdk/nested-clients/dist-types/ts3.4/submodules/cognito-identity/commands/GetCredentialsForIdentityCommand.d.ts +51 -0
- package/node_modules/@aws-sdk/nested-clients/dist-types/ts3.4/submodules/cognito-identity/commands/GetIdCommand.d.ts +41 -0
- package/node_modules/@aws-sdk/nested-clients/dist-types/ts3.4/submodules/cognito-identity/commands/index.d.ts +2 -0
- package/node_modules/@aws-sdk/nested-clients/dist-types/ts3.4/submodules/cognito-identity/extensionConfiguration.d.ts +9 -0
- package/node_modules/@aws-sdk/nested-clients/dist-types/ts3.4/submodules/cognito-identity/index.d.ts +10 -0
- package/node_modules/@aws-sdk/nested-clients/dist-types/ts3.4/submodules/cognito-identity/models/CognitoIdentityServiceException.d.ts +9 -0
- package/node_modules/@aws-sdk/nested-clients/dist-types/ts3.4/submodules/cognito-identity/models/errors.d.ts +68 -0
- package/node_modules/@aws-sdk/nested-clients/dist-types/ts3.4/submodules/cognito-identity/models/models_0.d.ts +23 -0
- package/node_modules/@aws-sdk/nested-clients/dist-types/ts3.4/submodules/cognito-identity/runtimeConfig.browser.d.ts +122 -0
- package/node_modules/@aws-sdk/nested-clients/dist-types/ts3.4/submodules/cognito-identity/runtimeConfig.d.ts +117 -0
- package/node_modules/@aws-sdk/nested-clients/dist-types/ts3.4/submodules/cognito-identity/runtimeConfig.native.d.ts +126 -0
- package/node_modules/@aws-sdk/nested-clients/dist-types/ts3.4/submodules/cognito-identity/runtimeConfig.shared.d.ts +60 -0
- package/node_modules/@aws-sdk/nested-clients/dist-types/ts3.4/submodules/cognito-identity/runtimeExtensions.d.ts +13 -0
- package/node_modules/@aws-sdk/nested-clients/dist-types/ts3.4/submodules/cognito-identity/schemas/schemas_0.d.ts +24 -0
- package/node_modules/@aws-sdk/nested-clients/dist-types/ts3.4/submodules/signin/SigninClient.d.ts +5 -3
- package/node_modules/@aws-sdk/nested-clients/dist-types/ts3.4/submodules/signin/auth/httpAuthExtensionConfiguration.d.ts +1 -1
- package/node_modules/@aws-sdk/nested-clients/dist-types/ts3.4/submodules/signin/schemas/schemas_0.d.ts +6 -4
- package/node_modules/@aws-sdk/nested-clients/dist-types/ts3.4/submodules/sso/SSO.d.ts +22 -0
- package/node_modules/@aws-sdk/{client-sso/dist-types/ts3.4 → nested-clients/dist-types/ts3.4/submodules/sso}/SSOClient.d.ts +3 -24
- 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
- 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
- package/node_modules/@aws-sdk/nested-clients/dist-types/ts3.4/submodules/sso/commands/index.d.ts +1 -0
- package/node_modules/@aws-sdk/nested-clients/dist-types/ts3.4/submodules/sso/endpoint/EndpointParameters.d.ts +51 -0
- package/node_modules/@aws-sdk/nested-clients/dist-types/ts3.4/submodules/sso/endpoint/endpointResolver.d.ts +8 -0
- package/node_modules/@aws-sdk/{client-sso/dist-types/ts3.4 → nested-clients/dist-types/ts3.4/submodules/sso}/index.d.ts +0 -1
- package/node_modules/@aws-sdk/nested-clients/dist-types/ts3.4/submodules/sso/models/models_0.d.ts +14 -0
- package/node_modules/@aws-sdk/{client-sso/dist-types/ts3.4 → nested-clients/dist-types/ts3.4/submodules/sso}/schemas/schemas_0.d.ts +6 -14
- package/node_modules/@aws-sdk/nested-clients/dist-types/ts3.4/submodules/sso-oidc/SSOOIDCClient.d.ts +1 -2
- package/node_modules/@aws-sdk/nested-clients/dist-types/ts3.4/submodules/sso-oidc/auth/httpAuthExtensionConfiguration.d.ts +1 -1
- package/node_modules/@aws-sdk/nested-clients/dist-types/ts3.4/submodules/sso-oidc/schemas/schemas_0.d.ts +5 -3
- package/node_modules/@aws-sdk/nested-clients/dist-types/ts3.4/submodules/sts/STSClient.d.ts +5 -3
- package/node_modules/@aws-sdk/nested-clients/dist-types/ts3.4/submodules/sts/auth/httpAuthExtensionConfiguration.d.ts +1 -1
- package/node_modules/@aws-sdk/nested-clients/dist-types/ts3.4/submodules/sts/auth/httpAuthSchemeProvider.d.ts +1 -1
- package/node_modules/@aws-sdk/nested-clients/dist-types/ts3.4/submodules/sts/schemas/schemas_0.d.ts +10 -8
- package/node_modules/@aws-sdk/nested-clients/package.json +57 -37
- package/node_modules/@aws-sdk/nested-clients/sso.d.ts +7 -0
- package/node_modules/@aws-sdk/nested-clients/sso.js +5 -0
- package/node_modules/@aws-sdk/region-config-resolver/dist-cjs/index.js +12 -23
- package/node_modules/@aws-sdk/region-config-resolver/package.json +8 -8
- package/node_modules/@aws-sdk/token-providers/dist-cjs/index.js +2 -2
- package/node_modules/@aws-sdk/token-providers/dist-es/writeSSOTokenToFile.js +1 -1
- package/node_modules/@aws-sdk/token-providers/dist-types/fromSso.d.ts +2 -2
- package/node_modules/@aws-sdk/token-providers/dist-types/fromStatic.d.ts +1 -1
- package/node_modules/@aws-sdk/token-providers/dist-types/getNewSsoOidcToken.d.ts +2 -2
- package/node_modules/@aws-sdk/token-providers/dist-types/getSsoOidcClient.d.ts +1 -1
- package/node_modules/@aws-sdk/token-providers/dist-types/nodeProvider.d.ts +2 -2
- package/node_modules/@aws-sdk/token-providers/dist-types/validateTokenExpiry.d.ts +1 -1
- package/node_modules/@aws-sdk/token-providers/dist-types/writeSSOTokenToFile.d.ts +1 -1
- package/node_modules/@aws-sdk/token-providers/package.json +8 -8
- package/node_modules/@aws-sdk/types/dist-cjs/index.js +3 -12
- package/node_modules/@aws-sdk/types/dist-types/blob/blob-types.d.ts +1 -1
- package/node_modules/@aws-sdk/types/dist-types/credentials.d.ts +3 -3
- package/node_modules/@aws-sdk/types/dist-types/extensions/index.d.ts +1 -1
- package/node_modules/@aws-sdk/types/dist-types/http.d.ts +1 -1
- package/node_modules/@aws-sdk/types/dist-types/identity/AnonymousIdentity.d.ts +1 -1
- package/node_modules/@aws-sdk/types/dist-types/identity/LoginIdentity.d.ts +1 -1
- package/node_modules/@aws-sdk/types/dist-types/middleware.d.ts +2 -2
- package/node_modules/@aws-sdk/types/dist-types/token.d.ts +2 -2
- package/node_modules/@aws-sdk/types/package.json +5 -5
- package/node_modules/@aws-sdk/util-endpoints/dist-cjs/index.js +3 -12
- package/node_modules/@aws-sdk/util-endpoints/dist-types/aws.d.ts +1 -1
- package/node_modules/@aws-sdk/util-endpoints/dist-types/lib/aws/parseArn.d.ts +1 -1
- package/node_modules/@aws-sdk/util-endpoints/dist-types/lib/aws/partition.d.ts +1 -1
- package/node_modules/@aws-sdk/util-endpoints/package.json +6 -6
- package/node_modules/@aws-sdk/util-locate-window/package.json +4 -4
- package/node_modules/@aws-sdk/util-user-agent-browser/dist-types/index.d.ts +1 -1
- package/node_modules/@aws-sdk/util-user-agent-browser/dist-types/index.native.d.ts +2 -2
- package/node_modules/@aws-sdk/util-user-agent-browser/package.json +6 -6
- package/node_modules/@aws-sdk/util-user-agent-node/dist-cjs/index.js +133 -6
- package/node_modules/@aws-sdk/util-user-agent-node/dist-es/defaultUserAgent.js +10 -3
- package/node_modules/@aws-sdk/util-user-agent-node/dist-es/getNodeModulesParentDirs.js +15 -0
- package/node_modules/@aws-sdk/util-user-agent-node/dist-es/getRuntimeUserAgentPair.js +10 -0
- package/node_modules/@aws-sdk/util-user-agent-node/dist-es/getSanitizedDevTypeScriptVersion.js +14 -0
- package/node_modules/@aws-sdk/util-user-agent-node/dist-es/getSanitizedTypeScriptVersion.js +9 -0
- package/node_modules/@aws-sdk/util-user-agent-node/dist-es/getTypeScriptUserAgentPair.js +75 -0
- package/node_modules/@aws-sdk/util-user-agent-node/dist-types/defaultUserAgent.d.ts +1 -1
- package/node_modules/@aws-sdk/util-user-agent-node/dist-types/getNodeModulesParentDirs.d.ts +10 -0
- package/node_modules/@aws-sdk/util-user-agent-node/dist-types/getRuntimeUserAgentPair.d.ts +6 -0
- package/node_modules/@aws-sdk/util-user-agent-node/dist-types/getSanitizedDevTypeScriptVersion.d.ts +8 -0
- package/node_modules/@aws-sdk/util-user-agent-node/dist-types/getSanitizedTypeScriptVersion.d.ts +8 -0
- package/node_modules/@aws-sdk/util-user-agent-node/dist-types/getTypeScriptUserAgentPair.d.ts +6 -0
- package/node_modules/@aws-sdk/util-user-agent-node/dist-types/is-crt-available.d.ts +1 -1
- package/node_modules/@aws-sdk/util-user-agent-node/dist-types/nodeAppIdConfigOptions.d.ts +1 -1
- package/node_modules/@aws-sdk/util-user-agent-node/dist-types/ts3.4/getNodeModulesParentDirs.d.ts +1 -0
- package/node_modules/@aws-sdk/util-user-agent-node/dist-types/ts3.4/getRuntimeUserAgentPair.d.ts +2 -0
- package/node_modules/@aws-sdk/util-user-agent-node/dist-types/ts3.4/getSanitizedDevTypeScriptVersion.d.ts +3 -0
- package/node_modules/@aws-sdk/util-user-agent-node/dist-types/ts3.4/getSanitizedTypeScriptVersion.d.ts +3 -0
- package/node_modules/@aws-sdk/util-user-agent-node/dist-types/ts3.4/getTypeScriptUserAgentPair.d.ts +4 -0
- package/node_modules/@aws-sdk/util-user-agent-node/package.json +12 -9
- package/node_modules/@aws-sdk/xml-builder/dist-cjs/index.js +1 -4
- package/node_modules/@aws-sdk/xml-builder/dist-cjs/xml-parser.js +1 -0
- package/node_modules/@aws-sdk/xml-builder/dist-es/xml-parser.js +1 -0
- package/node_modules/@aws-sdk/xml-builder/dist-types/XmlNode.d.ts +1 -1
- package/node_modules/@aws-sdk/xml-builder/dist-types/XmlText.d.ts +1 -1
- package/node_modules/@aws-sdk/xml-builder/node_modules/fast-xml-parser/CHANGELOG.md +52 -0
- package/node_modules/@aws-sdk/xml-builder/node_modules/fast-xml-parser/README.md +7 -6
- package/node_modules/@aws-sdk/xml-builder/node_modules/fast-xml-parser/lib/fxbuilder.min.js +1 -1
- package/node_modules/@aws-sdk/xml-builder/node_modules/fast-xml-parser/lib/fxbuilder.min.js.map +1 -1
- package/node_modules/@aws-sdk/xml-builder/node_modules/fast-xml-parser/lib/fxp.cjs +1 -1
- package/node_modules/@aws-sdk/xml-builder/node_modules/fast-xml-parser/lib/fxp.d.cts +96 -13
- package/node_modules/@aws-sdk/xml-builder/node_modules/fast-xml-parser/lib/fxp.min.js +1 -1
- package/node_modules/@aws-sdk/xml-builder/node_modules/fast-xml-parser/lib/fxp.min.js.map +1 -1
- package/node_modules/@aws-sdk/xml-builder/node_modules/fast-xml-parser/lib/fxparser.min.js +1 -1
- package/node_modules/@aws-sdk/xml-builder/node_modules/fast-xml-parser/lib/fxparser.min.js.map +1 -1
- package/node_modules/@aws-sdk/xml-builder/node_modules/fast-xml-parser/lib/fxvalidator.min.js +1 -1
- package/node_modules/@aws-sdk/xml-builder/node_modules/fast-xml-parser/lib/fxvalidator.min.js.map +1 -1
- package/node_modules/@aws-sdk/xml-builder/node_modules/fast-xml-parser/package.json +9 -6
- package/node_modules/@aws-sdk/xml-builder/node_modules/fast-xml-parser/src/fxp.d.ts +92 -14
- package/node_modules/@aws-sdk/xml-builder/node_modules/fast-xml-parser/src/fxp.js +1 -1
- package/node_modules/@aws-sdk/xml-builder/node_modules/fast-xml-parser/src/util.js +1 -26
- package/node_modules/@aws-sdk/xml-builder/node_modules/fast-xml-parser/src/v6/EntitiesParser.js +89 -87
- package/node_modules/@aws-sdk/xml-builder/node_modules/fast-xml-parser/src/v6/OptionsBuilder.js +10 -10
- package/node_modules/@aws-sdk/xml-builder/node_modules/fast-xml-parser/src/v6/OutputBuilders/BaseOutputBuilder.js +23 -23
- package/node_modules/@aws-sdk/xml-builder/node_modules/fast-xml-parser/src/v6/OutputBuilders/JsArrBuilder.js +29 -29
- package/node_modules/@aws-sdk/xml-builder/node_modules/fast-xml-parser/src/v6/OutputBuilders/JsMinArrBuilder.js +1 -1
- package/node_modules/@aws-sdk/xml-builder/node_modules/fast-xml-parser/src/v6/OutputBuilders/JsObjBuilder.js +39 -39
- package/node_modules/@aws-sdk/xml-builder/node_modules/fast-xml-parser/src/v6/OutputBuilders/ParserOptionsBuilder.js +21 -21
- package/node_modules/@aws-sdk/xml-builder/node_modules/fast-xml-parser/src/v6/XMLParser.js +22 -22
- package/node_modules/@aws-sdk/xml-builder/node_modules/fast-xml-parser/src/v6/valueParsers/EntitiesParser.js +85 -85
- package/node_modules/@aws-sdk/xml-builder/node_modules/fast-xml-parser/src/validator.js +34 -34
- package/node_modules/@aws-sdk/xml-builder/node_modules/fast-xml-parser/src/xmlbuilder/json2xml.js +5 -284
- package/node_modules/@aws-sdk/xml-builder/node_modules/fast-xml-parser/src/xmlparser/DocTypeReader.js +315 -293
- package/node_modules/@aws-sdk/xml-builder/node_modules/fast-xml-parser/src/xmlparser/OptionsBuilder.js +86 -44
- package/node_modules/@aws-sdk/xml-builder/node_modules/fast-xml-parser/src/xmlparser/OrderedObjParser.js +309 -186
- package/node_modules/@aws-sdk/xml-builder/node_modules/fast-xml-parser/src/xmlparser/XMLParser.js +22 -22
- package/node_modules/@aws-sdk/xml-builder/node_modules/fast-xml-parser/src/xmlparser/node2json.js +38 -34
- package/node_modules/@aws-sdk/xml-builder/node_modules/fast-xml-parser/src/xmlparser/xmlNode.js +10 -10
- package/node_modules/@aws-sdk/xml-builder/package.json +7 -7
- package/node_modules/@babel/runtime/helpers/esm/wrapAsyncGenerator.js +18 -31
- package/node_modules/@babel/runtime/helpers/wrapAsyncGenerator.js +18 -31
- package/node_modules/@babel/runtime/package.json +1 -1
- package/node_modules/@isaacs/cliui/node_modules/strip-ansi/index.js +5 -0
- package/node_modules/@isaacs/cliui/node_modules/strip-ansi/package.json +5 -5
- package/node_modules/@slack/logger/LICENSE +23 -0
- package/node_modules/@slack/logger/README.md +36 -3
- package/node_modules/@slack/logger/dist/index.d.ts.map +1 -1
- package/node_modules/@slack/logger/dist/index.js +5 -6
- package/node_modules/@slack/logger/dist/index.js.map +1 -1
- package/node_modules/@slack/logger/node_modules/@types/node/README.md +1 -1
- package/node_modules/@slack/logger/node_modules/@types/node/assert.d.ts +2 -2
- package/node_modules/@slack/logger/node_modules/@types/node/child_process.d.ts +11 -6
- package/node_modules/@slack/logger/node_modules/@types/node/crypto.d.ts +4 -4
- package/node_modules/@slack/logger/node_modules/@types/node/events.d.ts +6 -13
- package/node_modules/@slack/logger/node_modules/@types/node/fs.d.ts +2 -0
- package/node_modules/@slack/logger/node_modules/@types/node/http.d.ts +57 -12
- package/node_modules/@slack/logger/node_modules/@types/node/https.d.ts +6 -0
- package/node_modules/@slack/logger/node_modules/@types/node/inspector.d.ts +45 -0
- package/node_modules/@slack/logger/node_modules/@types/node/inspector.generated.d.ts +579 -404
- package/node_modules/@slack/logger/node_modules/@types/node/module.d.ts +0 -62
- package/node_modules/@slack/logger/node_modules/@types/node/net.d.ts +5 -5
- package/node_modules/@slack/logger/node_modules/@types/node/package.json +3 -3
- package/node_modules/@slack/logger/node_modules/@types/node/perf_hooks.d.ts +111 -89
- package/node_modules/@slack/logger/node_modules/@types/node/process.d.ts +22 -8
- package/node_modules/@slack/logger/node_modules/@types/node/readline.d.ts +1 -0
- package/node_modules/@slack/logger/node_modules/@types/node/sqlite.d.ts +145 -17
- package/node_modules/@slack/logger/node_modules/@types/node/stream.d.ts +15 -5
- package/node_modules/@slack/logger/node_modules/@types/node/test.d.ts +56 -20
- package/node_modules/@slack/logger/node_modules/@types/node/tls.d.ts +14 -9
- package/node_modules/@slack/logger/node_modules/@types/node/url.d.ts +22 -0
- package/node_modules/@slack/logger/node_modules/@types/node/util.d.ts +37 -3
- package/node_modules/@slack/logger/node_modules/@types/node/v8.d.ts +12 -3
- package/node_modules/@slack/logger/node_modules/@types/node/vm.d.ts +42 -14
- package/node_modules/@slack/logger/node_modules/@types/node/web-globals/fetch.d.ts +15 -0
- package/node_modules/@slack/logger/node_modules/@types/node/worker_threads.d.ts +2 -2
- package/node_modules/@slack/logger/node_modules/@types/node/zlib.d.ts +68 -4
- package/node_modules/@slack/logger/node_modules/undici-types/agent.d.ts +1 -1
- package/node_modules/@slack/logger/node_modules/undici-types/api.d.ts +2 -2
- package/node_modules/@slack/logger/node_modules/undici-types/balanced-pool.d.ts +2 -1
- package/node_modules/@slack/logger/node_modules/undici-types/cache-interceptor.d.ts +1 -0
- package/node_modules/@slack/logger/node_modules/undici-types/client.d.ts +1 -1
- package/node_modules/@slack/logger/node_modules/undici-types/connector.d.ts +2 -2
- package/node_modules/@slack/logger/node_modules/undici-types/diagnostics-channel.d.ts +2 -2
- package/node_modules/@slack/logger/node_modules/undici-types/dispatcher.d.ts +12 -12
- package/node_modules/@slack/logger/node_modules/undici-types/fetch.d.ts +4 -4
- package/node_modules/@slack/logger/node_modules/undici-types/formdata.d.ts +1 -1
- package/node_modules/@slack/logger/node_modules/undici-types/h2c-client.d.ts +1 -1
- package/node_modules/@slack/logger/node_modules/undici-types/index.d.ts +9 -1
- package/node_modules/@slack/logger/node_modules/undici-types/interceptors.d.ts +36 -2
- package/node_modules/@slack/logger/node_modules/undici-types/package.json +1 -1
- package/node_modules/@slack/logger/node_modules/undici-types/pool.d.ts +1 -1
- package/node_modules/@slack/logger/node_modules/undici-types/readable.d.ts +2 -2
- package/node_modules/@slack/logger/node_modules/undici-types/round-robin-pool.d.ts +41 -0
- package/node_modules/@slack/logger/node_modules/undici-types/websocket.d.ts +9 -9
- package/node_modules/@slack/logger/package.json +13 -33
- package/node_modules/@slack/types/dist/block-kit/block-elements.d.ts +18 -0
- package/node_modules/@slack/types/dist/block-kit/block-elements.d.ts.map +1 -1
- package/node_modules/@slack/types/dist/block-kit/blocks.d.ts +54 -2
- package/node_modules/@slack/types/dist/block-kit/blocks.d.ts.map +1 -1
- package/node_modules/@slack/types/dist/chunk.d.ts +42 -0
- package/node_modules/@slack/types/dist/chunk.d.ts.map +1 -0
- package/node_modules/@slack/types/dist/chunk.js +3 -0
- package/node_modules/@slack/types/dist/chunk.js.map +1 -0
- package/node_modules/@slack/types/dist/events/app.d.ts +53 -0
- package/node_modules/@slack/types/dist/events/app.d.ts.map +1 -1
- package/node_modules/@slack/types/dist/events/member.d.ts +1 -0
- package/node_modules/@slack/types/dist/events/member.d.ts.map +1 -1
- package/node_modules/@slack/types/dist/events/user.d.ts +1 -0
- package/node_modules/@slack/types/dist/events/user.d.ts.map +1 -1
- package/node_modules/@slack/types/dist/index.d.ts +1 -0
- package/node_modules/@slack/types/dist/index.d.ts.map +1 -1
- package/node_modules/@slack/types/dist/index.js +1 -0
- package/node_modules/@slack/types/dist/index.js.map +1 -1
- package/node_modules/@slack/types/package.json +8 -12
- package/node_modules/@slack/web-api/dist/WebClient.d.ts.map +1 -1
- package/node_modules/@slack/web-api/dist/WebClient.js +241 -266
- package/node_modules/@slack/web-api/dist/WebClient.js.map +1 -1
- package/node_modules/@slack/web-api/dist/chat-stream.d.ts.map +1 -1
- package/node_modules/@slack/web-api/dist/chat-stream.js +85 -64
- package/node_modules/@slack/web-api/dist/chat-stream.js.map +1 -1
- package/node_modules/@slack/web-api/dist/file-upload.js +108 -125
- package/node_modules/@slack/web-api/dist/file-upload.js.map +1 -1
- package/node_modules/@slack/web-api/dist/index.d.ts +1 -0
- package/node_modules/@slack/web-api/dist/index.d.ts.map +1 -1
- package/node_modules/@slack/web-api/dist/index.js +3 -1
- package/node_modules/@slack/web-api/dist/index.js.map +1 -1
- package/node_modules/@slack/web-api/dist/methods.d.ts +11 -2
- package/node_modules/@slack/web-api/dist/methods.d.ts.map +1 -1
- package/node_modules/@slack/web-api/dist/methods.js +9 -0
- package/node_modules/@slack/web-api/dist/methods.js.map +1 -1
- package/node_modules/@slack/web-api/dist/types/request/apps.d.ts +6 -0
- package/node_modules/@slack/web-api/dist/types/request/apps.d.ts.map +1 -1
- package/node_modules/@slack/web-api/dist/types/request/canvas.d.ts +1 -1
- package/node_modules/@slack/web-api/dist/types/request/canvas.d.ts.map +1 -1
- package/node_modules/@slack/web-api/dist/types/request/chat.d.ts +21 -2
- package/node_modules/@slack/web-api/dist/types/request/chat.d.ts.map +1 -1
- package/node_modules/@slack/web-api/dist/types/request/index.d.ts +1 -1
- package/node_modules/@slack/web-api/dist/types/request/index.d.ts.map +1 -1
- package/node_modules/@slack/web-api/dist/types/response/AppsUserConnectionUpdateResponse.d.ts +9 -0
- package/node_modules/@slack/web-api/dist/types/response/AppsUserConnectionUpdateResponse.d.ts.map +1 -0
- package/node_modules/@slack/web-api/dist/types/response/AppsUserConnectionUpdateResponse.js +11 -0
- package/node_modules/@slack/web-api/dist/types/response/AppsUserConnectionUpdateResponse.js.map +1 -0
- package/node_modules/@slack/web-api/dist/types/response/index.d.ts +1 -0
- package/node_modules/@slack/web-api/dist/types/response/index.d.ts.map +1 -1
- package/node_modules/@slack/web-api/node_modules/@types/node/README.md +1 -1
- package/node_modules/@slack/web-api/node_modules/@types/node/assert.d.ts +2 -2
- package/node_modules/@slack/web-api/node_modules/@types/node/child_process.d.ts +11 -6
- package/node_modules/@slack/web-api/node_modules/@types/node/crypto.d.ts +4 -4
- package/node_modules/@slack/web-api/node_modules/@types/node/events.d.ts +6 -13
- package/node_modules/@slack/web-api/node_modules/@types/node/fs.d.ts +2 -0
- package/node_modules/@slack/web-api/node_modules/@types/node/http.d.ts +57 -12
- package/node_modules/@slack/web-api/node_modules/@types/node/https.d.ts +6 -0
- package/node_modules/@slack/web-api/node_modules/@types/node/inspector.d.ts +45 -0
- package/node_modules/@slack/web-api/node_modules/@types/node/inspector.generated.d.ts +579 -404
- package/node_modules/@slack/web-api/node_modules/@types/node/module.d.ts +0 -62
- package/node_modules/@slack/web-api/node_modules/@types/node/net.d.ts +5 -5
- package/node_modules/@slack/web-api/node_modules/@types/node/package.json +3 -3
- package/node_modules/@slack/web-api/node_modules/@types/node/perf_hooks.d.ts +111 -89
- package/node_modules/@slack/web-api/node_modules/@types/node/process.d.ts +22 -8
- package/node_modules/@slack/web-api/node_modules/@types/node/readline.d.ts +1 -0
- package/node_modules/@slack/web-api/node_modules/@types/node/sqlite.d.ts +145 -17
- package/node_modules/@slack/web-api/node_modules/@types/node/stream.d.ts +15 -5
- package/node_modules/@slack/web-api/node_modules/@types/node/test.d.ts +56 -20
- package/node_modules/@slack/web-api/node_modules/@types/node/tls.d.ts +14 -9
- package/node_modules/@slack/web-api/node_modules/@types/node/url.d.ts +22 -0
- package/node_modules/@slack/web-api/node_modules/@types/node/util.d.ts +37 -3
- package/node_modules/@slack/web-api/node_modules/@types/node/v8.d.ts +12 -3
- package/node_modules/@slack/web-api/node_modules/@types/node/vm.d.ts +42 -14
- package/node_modules/@slack/web-api/node_modules/@types/node/web-globals/fetch.d.ts +15 -0
- package/node_modules/@slack/web-api/node_modules/@types/node/worker_threads.d.ts +2 -2
- package/node_modules/@slack/web-api/node_modules/@types/node/zlib.d.ts +68 -4
- package/node_modules/@slack/web-api/node_modules/undici-types/agent.d.ts +1 -1
- package/node_modules/@slack/web-api/node_modules/undici-types/api.d.ts +2 -2
- package/node_modules/@slack/web-api/node_modules/undici-types/balanced-pool.d.ts +2 -1
- package/node_modules/@slack/web-api/node_modules/undici-types/cache-interceptor.d.ts +1 -0
- package/node_modules/@slack/web-api/node_modules/undici-types/client.d.ts +1 -1
- package/node_modules/@slack/web-api/node_modules/undici-types/connector.d.ts +2 -2
- package/node_modules/@slack/web-api/node_modules/undici-types/diagnostics-channel.d.ts +2 -2
- package/node_modules/@slack/web-api/node_modules/undici-types/dispatcher.d.ts +12 -12
- package/node_modules/@slack/web-api/node_modules/undici-types/fetch.d.ts +4 -4
- package/node_modules/@slack/web-api/node_modules/undici-types/formdata.d.ts +1 -1
- package/node_modules/@slack/web-api/node_modules/undici-types/h2c-client.d.ts +1 -1
- package/node_modules/@slack/web-api/node_modules/undici-types/index.d.ts +9 -1
- package/node_modules/@slack/web-api/node_modules/undici-types/interceptors.d.ts +36 -2
- package/node_modules/@slack/web-api/node_modules/undici-types/package.json +1 -1
- package/node_modules/@slack/web-api/node_modules/undici-types/pool.d.ts +1 -1
- package/node_modules/@slack/web-api/node_modules/undici-types/readable.d.ts +2 -2
- package/node_modules/@slack/web-api/node_modules/undici-types/round-robin-pool.d.ts +41 -0
- package/node_modules/@slack/web-api/node_modules/undici-types/websocket.d.ts +9 -9
- package/node_modules/@slack/web-api/package.json +15 -29
- package/node_modules/@smithy/abort-controller/package.json +7 -7
- package/node_modules/@smithy/config-resolver/package.json +11 -11
- package/node_modules/@smithy/core/dist-cjs/index.js +2 -6
- package/node_modules/@smithy/core/dist-cjs/submodules/cbor/index.js +22 -19
- package/node_modules/@smithy/core/dist-cjs/submodules/endpoints/index.js +22 -0
- package/node_modules/@smithy/core/dist-cjs/submodules/event-streams/index.js +9 -1
- package/node_modules/@smithy/core/dist-cjs/submodules/protocols/index.js +42 -5
- package/node_modules/@smithy/core/dist-cjs/submodules/schema/index.js +73 -11
- package/node_modules/@smithy/core/dist-cjs/submodules/serde/index.js +1 -4
- package/node_modules/@smithy/core/dist-es/middleware-http-auth-scheme/getHttpAuthSchemePlugin.js +1 -2
- package/node_modules/@smithy/core/dist-es/submodules/cbor/CborCodec.js +2 -8
- package/node_modules/@smithy/core/dist-es/submodules/cbor/SmithyRpcV2CborProtocol.js +15 -11
- package/node_modules/@smithy/core/dist-es/submodules/cbor/parseCborBody.js +7 -1
- package/node_modules/@smithy/core/dist-es/submodules/endpoints/index.js +1 -0
- package/node_modules/@smithy/core/dist-es/submodules/endpoints/toEndpointV1.js +17 -0
- package/node_modules/@smithy/core/dist-es/submodules/event-streams/EventStreamSerde.js +9 -1
- package/node_modules/@smithy/core/dist-es/submodules/protocols/HttpBindingProtocol.js +25 -3
- package/node_modules/@smithy/core/dist-es/submodules/protocols/HttpProtocol.js +16 -1
- package/node_modules/@smithy/core/dist-es/submodules/protocols/RpcProtocol.js +1 -1
- package/node_modules/@smithy/core/dist-es/submodules/protocols/resolve-path.js +1 -1
- package/node_modules/@smithy/core/dist-es/submodules/schema/TypeRegistry.js +24 -5
- package/node_modules/@smithy/core/dist-es/submodules/schema/middleware/schemaSerializationMiddleware.js +3 -2
- package/node_modules/@smithy/core/dist-es/submodules/schema/schemas/NormalizedSchema.js +38 -3
- package/node_modules/@smithy/core/dist-es/submodules/schema/schemas/translateTraits.js +5 -1
- package/node_modules/@smithy/core/dist-types/submodules/cbor/SmithyRpcV2CborProtocol.d.ts +7 -1
- package/node_modules/@smithy/core/dist-types/submodules/endpoints/index.d.ts +1 -0
- package/node_modules/@smithy/core/dist-types/submodules/endpoints/toEndpointV1.d.ts +6 -0
- package/node_modules/@smithy/core/dist-types/submodules/protocols/HttpBindingProtocol.d.ts +5 -1
- package/node_modules/@smithy/core/dist-types/submodules/protocols/HttpProtocol.d.ts +14 -1
- package/node_modules/@smithy/core/dist-types/submodules/protocols/RpcProtocol.d.ts +5 -0
- package/node_modules/@smithy/core/dist-types/submodules/schema/TypeRegistry.d.ts +8 -1
- package/node_modules/@smithy/core/dist-types/submodules/schema/schemas/NormalizedSchema.d.ts +11 -0
- package/node_modules/@smithy/core/dist-types/submodules/schema/schemas/translateTraits.d.ts +6 -0
- package/node_modules/@smithy/core/dist-types/ts3.4/submodules/cbor/SmithyRpcV2CborProtocol.d.ts +7 -1
- package/node_modules/@smithy/core/dist-types/ts3.4/submodules/endpoints/index.d.ts +1 -0
- package/node_modules/@smithy/core/dist-types/ts3.4/submodules/endpoints/toEndpointV1.d.ts +6 -0
- package/node_modules/@smithy/core/dist-types/ts3.4/submodules/protocols/HttpBindingProtocol.d.ts +5 -1
- package/node_modules/@smithy/core/dist-types/ts3.4/submodules/protocols/HttpProtocol.d.ts +14 -1
- package/node_modules/@smithy/core/dist-types/ts3.4/submodules/protocols/RpcProtocol.d.ts +5 -0
- package/node_modules/@smithy/core/dist-types/ts3.4/submodules/schema/TypeRegistry.d.ts +8 -1
- package/node_modules/@smithy/core/dist-types/ts3.4/submodules/schema/schemas/NormalizedSchema.d.ts +11 -0
- package/node_modules/@smithy/core/dist-types/ts3.4/submodules/schema/schemas/translateTraits.d.ts +6 -0
- package/node_modules/@smithy/core/endpoints.d.ts +7 -0
- package/node_modules/@smithy/core/endpoints.js +6 -0
- package/node_modules/@smithy/core/package.json +21 -12
- package/node_modules/@smithy/credential-provider-imds/package.json +10 -10
- package/node_modules/@smithy/eventstream-codec/package.json +9 -9
- package/node_modules/@smithy/eventstream-serde-browser/package.json +8 -8
- package/node_modules/@smithy/eventstream-serde-config-resolver/package.json +7 -7
- package/node_modules/@smithy/eventstream-serde-node/package.json +8 -8
- package/node_modules/@smithy/eventstream-serde-universal/package.json +9 -9
- package/node_modules/@smithy/fetch-http-handler/dist-cjs/index.js +21 -4
- package/node_modules/@smithy/fetch-http-handler/dist-es/fetch-http-handler.js +21 -4
- package/node_modules/@smithy/fetch-http-handler/package.json +11 -11
- package/node_modules/@smithy/hash-node/package.json +9 -9
- package/node_modules/@smithy/invalid-dependency/package.json +7 -7
- package/node_modules/@smithy/is-array-buffer/package.json +6 -6
- package/node_modules/@smithy/middleware-content-length/package.json +8 -8
- package/node_modules/@smithy/middleware-endpoint/dist-cjs/index.js +17 -1
- package/node_modules/@smithy/middleware-endpoint/dist-es/adaptors/getEndpointFromInstructions.js +9 -0
- package/node_modules/@smithy/middleware-endpoint/dist-es/adaptors/toEndpointV1.js +8 -1
- package/node_modules/@smithy/middleware-endpoint/dist-types/adaptors/toEndpointV1.d.ts +1 -0
- package/node_modules/@smithy/middleware-endpoint/dist-types/ts3.4/adaptors/toEndpointV1.d.ts +1 -0
- package/node_modules/@smithy/middleware-endpoint/package.json +9 -9
- package/node_modules/@smithy/middleware-retry/dist-cjs/index.js +9 -12
- package/node_modules/@smithy/middleware-retry/dist-es/configurations.js +9 -12
- package/node_modules/@smithy/middleware-retry/package.json +10 -10
- package/node_modules/@smithy/middleware-serde/dist-cjs/index.js +3 -2
- package/node_modules/@smithy/middleware-serde/dist-es/serializerMiddleware.js +3 -2
- package/node_modules/@smithy/middleware-serde/package.json +9 -8
- package/node_modules/@smithy/middleware-stack/package.json +7 -7
- package/node_modules/@smithy/node-config-provider/package.json +9 -9
- package/node_modules/@smithy/node-http-handler/dist-cjs/index.js +77 -47
- package/node_modules/@smithy/node-http-handler/dist-es/build-abort-error.js +19 -0
- package/node_modules/@smithy/node-http-handler/dist-es/node-http-handler.js +41 -35
- package/node_modules/@smithy/node-http-handler/dist-es/node-http2-connection-manager.js +1 -1
- package/node_modules/@smithy/node-http-handler/dist-es/node-http2-handler.js +4 -5
- package/node_modules/@smithy/node-http-handler/dist-es/readable.mock.js +1 -1
- package/node_modules/@smithy/node-http-handler/dist-es/server.mock.js +6 -6
- package/node_modules/@smithy/node-http-handler/dist-es/stream-collector/collector.js +1 -1
- package/node_modules/@smithy/node-http-handler/dist-es/stream-collector/readable.mock.js +1 -1
- package/node_modules/@smithy/node-http-handler/dist-es/write-request-body.js +10 -3
- package/node_modules/@smithy/node-http-handler/dist-types/build-abort-error.d.ts +10 -0
- package/node_modules/@smithy/node-http-handler/dist-types/get-transformed-headers.d.ts +1 -1
- package/node_modules/@smithy/node-http-handler/dist-types/node-http-handler.d.ts +4 -4
- package/node_modules/@smithy/node-http-handler/dist-types/node-http2-connection-manager.d.ts +1 -1
- package/node_modules/@smithy/node-http-handler/dist-types/node-http2-connection-pool.d.ts +1 -1
- package/node_modules/@smithy/node-http-handler/dist-types/readable.mock.d.ts +2 -2
- package/node_modules/@smithy/node-http-handler/dist-types/server.mock.d.ts +3 -3
- package/node_modules/@smithy/node-http-handler/dist-types/set-connection-timeout.d.ts +1 -1
- package/node_modules/@smithy/node-http-handler/dist-types/set-request-timeout.d.ts +1 -1
- package/node_modules/@smithy/node-http-handler/dist-types/set-socket-keep-alive.d.ts +1 -1
- package/node_modules/@smithy/node-http-handler/dist-types/set-socket-timeout.d.ts +1 -1
- package/node_modules/@smithy/node-http-handler/dist-types/stream-collector/collector.d.ts +1 -1
- package/node_modules/@smithy/node-http-handler/dist-types/stream-collector/readable.mock.d.ts +2 -2
- package/node_modules/@smithy/node-http-handler/dist-types/ts3.4/build-abort-error.d.ts +10 -0
- package/node_modules/@smithy/node-http-handler/dist-types/ts3.4/get-transformed-headers.d.ts +1 -1
- package/node_modules/@smithy/node-http-handler/dist-types/ts3.4/node-http-handler.d.ts +4 -4
- package/node_modules/@smithy/node-http-handler/dist-types/ts3.4/node-http2-connection-manager.d.ts +1 -1
- package/node_modules/@smithy/node-http-handler/dist-types/ts3.4/node-http2-connection-pool.d.ts +1 -1
- package/node_modules/@smithy/node-http-handler/dist-types/ts3.4/readable.mock.d.ts +2 -2
- package/node_modules/@smithy/node-http-handler/dist-types/ts3.4/server.mock.d.ts +3 -3
- package/node_modules/@smithy/node-http-handler/dist-types/ts3.4/set-connection-timeout.d.ts +1 -1
- package/node_modules/@smithy/node-http-handler/dist-types/ts3.4/set-request-timeout.d.ts +1 -1
- package/node_modules/@smithy/node-http-handler/dist-types/ts3.4/set-socket-keep-alive.d.ts +1 -1
- package/node_modules/@smithy/node-http-handler/dist-types/ts3.4/set-socket-timeout.d.ts +1 -1
- package/node_modules/@smithy/node-http-handler/dist-types/ts3.4/stream-collector/collector.d.ts +1 -1
- package/node_modules/@smithy/node-http-handler/dist-types/ts3.4/stream-collector/readable.mock.d.ts +2 -2
- package/node_modules/@smithy/node-http-handler/dist-types/ts3.4/write-request-body.d.ts +2 -2
- package/node_modules/@smithy/node-http-handler/dist-types/write-request-body.d.ts +2 -2
- package/node_modules/@smithy/node-http-handler/package.json +10 -10
- package/node_modules/@smithy/property-provider/package.json +7 -7
- package/node_modules/@smithy/protocol-http/package.json +7 -7
- package/node_modules/@smithy/querystring-builder/package.json +8 -8
- package/node_modules/@smithy/querystring-parser/package.json +7 -7
- package/node_modules/@smithy/service-error-classification/package.json +7 -7
- package/node_modules/@smithy/shared-ini-file-loader/dist-cjs/index.js +16 -14
- package/node_modules/@smithy/shared-ini-file-loader/package.json +7 -7
- package/node_modules/@smithy/signature-v4/package.json +13 -13
- package/node_modules/@smithy/smithy-client/dist-cjs/index.js +59 -19
- package/node_modules/@smithy/smithy-client/dist-es/create-aggregated-client.js +29 -3
- package/node_modules/@smithy/smithy-client/dist-es/extensions/checksum.js +20 -1
- package/node_modules/@smithy/smithy-client/dist-types/create-aggregated-client.d.ts +8 -1
- package/node_modules/@smithy/smithy-client/dist-types/extensions/checksum.d.ts +9 -7
- package/node_modules/@smithy/smithy-client/dist-types/ts3.4/create-aggregated-client.d.ts +8 -1
- package/node_modules/@smithy/smithy-client/dist-types/ts3.4/extensions/checksum.d.ts +9 -7
- package/node_modules/@smithy/smithy-client/package.json +11 -9
- package/node_modules/@smithy/types/dist-types/extensions/checksum.d.ts +1 -1
- package/node_modules/@smithy/types/dist-types/http.d.ts +1 -0
- package/node_modules/@smithy/types/dist-types/ts3.4/extensions/checksum.d.ts +1 -1
- package/node_modules/@smithy/types/dist-types/ts3.4/http.d.ts +1 -0
- package/node_modules/@smithy/types/package.json +5 -5
- package/node_modules/@smithy/url-parser/package.json +8 -8
- package/node_modules/@smithy/util-base64/dist-cjs/index.js +14 -6
- package/node_modules/@smithy/util-base64/package.json +8 -8
- package/node_modules/@smithy/util-body-length-browser/package.json +6 -6
- package/node_modules/@smithy/util-body-length-node/package.json +6 -6
- package/node_modules/@smithy/util-buffer-from/package.json +7 -7
- package/node_modules/@smithy/util-config-provider/package.json +6 -6
- package/node_modules/@smithy/util-defaults-mode-browser/dist-cjs/index.js +7 -3
- package/node_modules/@smithy/util-defaults-mode-browser/package.json +5 -5
- package/node_modules/@smithy/util-defaults-mode-node/package.json +8 -8
- package/node_modules/@smithy/util-endpoints/dist-cjs/index.js +1 -1
- package/node_modules/@smithy/util-endpoints/dist-es/lib/substring.js +1 -1
- package/node_modules/@smithy/util-endpoints/package.json +8 -8
- package/node_modules/@smithy/util-hex-encoding/package.json +6 -6
- package/node_modules/@smithy/util-middleware/package.json +7 -7
- package/node_modules/@smithy/util-retry/package.json +8 -8
- package/node_modules/@smithy/util-stream/dist-cjs/checksum/ChecksumStream.js +13 -2
- package/node_modules/@smithy/util-stream/dist-cjs/index.js +51 -29
- package/node_modules/@smithy/util-stream/dist-es/checksum/ChecksumStream.js +13 -2
- package/node_modules/@smithy/util-stream/dist-types/checksum/ChecksumStream.d.ts +1 -0
- package/node_modules/@smithy/util-stream/dist-types/ts3.4/checksum/ChecksumStream.d.ts +1 -0
- package/node_modules/@smithy/util-stream/package.json +13 -13
- package/node_modules/@smithy/util-uri-escape/package.json +6 -6
- package/node_modules/@smithy/util-utf8/package.json +7 -7
- package/node_modules/@smithy/util-waiter/dist-cjs/index.js +1 -1
- package/node_modules/@smithy/util-waiter/dist-es/poller.js +1 -1
- package/node_modules/@smithy/util-waiter/package.json +8 -8
- package/node_modules/@smithy/uuid/package.json +6 -6
- package/node_modules/@types/cacheable-request/node_modules/@types/node/README.md +1 -1
- package/node_modules/@types/cacheable-request/node_modules/@types/node/assert.d.ts +2 -2
- package/node_modules/@types/cacheable-request/node_modules/@types/node/child_process.d.ts +11 -6
- package/node_modules/@types/cacheable-request/node_modules/@types/node/crypto.d.ts +4 -4
- package/node_modules/@types/cacheable-request/node_modules/@types/node/events.d.ts +6 -13
- package/node_modules/@types/cacheable-request/node_modules/@types/node/fs.d.ts +2 -0
- package/node_modules/@types/cacheable-request/node_modules/@types/node/http.d.ts +57 -12
- package/node_modules/@types/cacheable-request/node_modules/@types/node/https.d.ts +6 -0
- package/node_modules/@types/cacheable-request/node_modules/@types/node/inspector.d.ts +45 -0
- package/node_modules/@types/cacheable-request/node_modules/@types/node/inspector.generated.d.ts +579 -404
- package/node_modules/@types/cacheable-request/node_modules/@types/node/module.d.ts +0 -62
- package/node_modules/@types/cacheable-request/node_modules/@types/node/net.d.ts +5 -5
- package/node_modules/@types/cacheable-request/node_modules/@types/node/package.json +3 -3
- package/node_modules/@types/cacheable-request/node_modules/@types/node/perf_hooks.d.ts +111 -89
- package/node_modules/@types/cacheable-request/node_modules/@types/node/process.d.ts +22 -8
- package/node_modules/@types/cacheable-request/node_modules/@types/node/readline.d.ts +1 -0
- package/node_modules/@types/cacheable-request/node_modules/@types/node/sqlite.d.ts +145 -17
- package/node_modules/@types/cacheable-request/node_modules/@types/node/stream.d.ts +15 -5
- package/node_modules/@types/cacheable-request/node_modules/@types/node/test.d.ts +56 -20
- package/node_modules/@types/cacheable-request/node_modules/@types/node/tls.d.ts +14 -9
- package/node_modules/@types/cacheable-request/node_modules/@types/node/url.d.ts +22 -0
- package/node_modules/@types/cacheable-request/node_modules/@types/node/util.d.ts +37 -3
- package/node_modules/@types/cacheable-request/node_modules/@types/node/v8.d.ts +12 -3
- package/node_modules/@types/cacheable-request/node_modules/@types/node/vm.d.ts +42 -14
- package/node_modules/@types/cacheable-request/node_modules/@types/node/web-globals/fetch.d.ts +15 -0
- package/node_modules/@types/cacheable-request/node_modules/@types/node/worker_threads.d.ts +2 -2
- package/node_modules/@types/cacheable-request/node_modules/@types/node/zlib.d.ts +68 -4
- package/node_modules/@types/cacheable-request/node_modules/undici-types/agent.d.ts +1 -1
- package/node_modules/@types/cacheable-request/node_modules/undici-types/api.d.ts +2 -2
- package/node_modules/@types/cacheable-request/node_modules/undici-types/balanced-pool.d.ts +2 -1
- package/node_modules/@types/cacheable-request/node_modules/undici-types/cache-interceptor.d.ts +1 -0
- package/node_modules/@types/cacheable-request/node_modules/undici-types/client.d.ts +1 -1
- package/node_modules/@types/cacheable-request/node_modules/undici-types/connector.d.ts +2 -2
- package/node_modules/@types/cacheable-request/node_modules/undici-types/diagnostics-channel.d.ts +2 -2
- package/node_modules/@types/cacheable-request/node_modules/undici-types/dispatcher.d.ts +12 -12
- package/node_modules/@types/cacheable-request/node_modules/undici-types/fetch.d.ts +4 -4
- package/node_modules/@types/cacheable-request/node_modules/undici-types/formdata.d.ts +1 -1
- package/node_modules/@types/cacheable-request/node_modules/undici-types/h2c-client.d.ts +1 -1
- package/node_modules/@types/cacheable-request/node_modules/undici-types/index.d.ts +9 -1
- package/node_modules/@types/cacheable-request/node_modules/undici-types/interceptors.d.ts +36 -2
- package/node_modules/@types/cacheable-request/node_modules/undici-types/package.json +1 -1
- package/node_modules/@types/cacheable-request/node_modules/undici-types/pool.d.ts +1 -1
- package/node_modules/@types/cacheable-request/node_modules/undici-types/readable.d.ts +2 -2
- package/node_modules/@types/cacheable-request/node_modules/undici-types/round-robin-pool.d.ts +41 -0
- package/node_modules/@types/cacheable-request/node_modules/undici-types/websocket.d.ts +9 -9
- package/node_modules/@types/http-cache-semantics/README.md +1 -1
- package/node_modules/@types/http-cache-semantics/index.d.ts +97 -11
- package/node_modules/@types/http-cache-semantics/package.json +4 -3
- package/node_modules/@types/keyv/node_modules/@types/node/README.md +1 -1
- package/node_modules/@types/keyv/node_modules/@types/node/assert.d.ts +2 -2
- package/node_modules/@types/keyv/node_modules/@types/node/child_process.d.ts +11 -6
- package/node_modules/@types/keyv/node_modules/@types/node/crypto.d.ts +4 -4
- package/node_modules/@types/keyv/node_modules/@types/node/events.d.ts +6 -13
- package/node_modules/@types/keyv/node_modules/@types/node/fs.d.ts +2 -0
- package/node_modules/@types/keyv/node_modules/@types/node/http.d.ts +57 -12
- package/node_modules/@types/keyv/node_modules/@types/node/https.d.ts +6 -0
- package/node_modules/@types/keyv/node_modules/@types/node/inspector.d.ts +45 -0
- package/node_modules/@types/keyv/node_modules/@types/node/inspector.generated.d.ts +579 -404
- package/node_modules/@types/keyv/node_modules/@types/node/module.d.ts +0 -62
- package/node_modules/@types/keyv/node_modules/@types/node/net.d.ts +5 -5
- package/node_modules/@types/keyv/node_modules/@types/node/package.json +3 -3
- package/node_modules/@types/keyv/node_modules/@types/node/perf_hooks.d.ts +111 -89
- package/node_modules/@types/keyv/node_modules/@types/node/process.d.ts +22 -8
- package/node_modules/@types/keyv/node_modules/@types/node/readline.d.ts +1 -0
- package/node_modules/@types/keyv/node_modules/@types/node/sqlite.d.ts +145 -17
- package/node_modules/@types/keyv/node_modules/@types/node/stream.d.ts +15 -5
- package/node_modules/@types/keyv/node_modules/@types/node/test.d.ts +56 -20
- package/node_modules/@types/keyv/node_modules/@types/node/tls.d.ts +14 -9
- package/node_modules/@types/keyv/node_modules/@types/node/url.d.ts +22 -0
- package/node_modules/@types/keyv/node_modules/@types/node/util.d.ts +37 -3
- package/node_modules/@types/keyv/node_modules/@types/node/v8.d.ts +12 -3
- package/node_modules/@types/keyv/node_modules/@types/node/vm.d.ts +42 -14
- package/node_modules/@types/keyv/node_modules/@types/node/web-globals/fetch.d.ts +15 -0
- package/node_modules/@types/keyv/node_modules/@types/node/worker_threads.d.ts +2 -2
- package/node_modules/@types/keyv/node_modules/@types/node/zlib.d.ts +68 -4
- package/node_modules/@types/keyv/node_modules/undici-types/agent.d.ts +1 -1
- package/node_modules/@types/keyv/node_modules/undici-types/api.d.ts +2 -2
- package/node_modules/@types/keyv/node_modules/undici-types/balanced-pool.d.ts +2 -1
- package/node_modules/@types/keyv/node_modules/undici-types/cache-interceptor.d.ts +1 -0
- package/node_modules/@types/keyv/node_modules/undici-types/client.d.ts +1 -1
- package/node_modules/@types/keyv/node_modules/undici-types/connector.d.ts +2 -2
- package/node_modules/@types/keyv/node_modules/undici-types/diagnostics-channel.d.ts +2 -2
- package/node_modules/@types/keyv/node_modules/undici-types/dispatcher.d.ts +12 -12
- package/node_modules/@types/keyv/node_modules/undici-types/fetch.d.ts +4 -4
- package/node_modules/@types/keyv/node_modules/undici-types/formdata.d.ts +1 -1
- package/node_modules/@types/keyv/node_modules/undici-types/h2c-client.d.ts +1 -1
- package/node_modules/@types/keyv/node_modules/undici-types/index.d.ts +9 -1
- package/node_modules/@types/keyv/node_modules/undici-types/interceptors.d.ts +36 -2
- package/node_modules/@types/keyv/node_modules/undici-types/package.json +1 -1
- package/node_modules/@types/keyv/node_modules/undici-types/pool.d.ts +1 -1
- package/node_modules/@types/keyv/node_modules/undici-types/readable.d.ts +2 -2
- package/node_modules/@types/keyv/node_modules/undici-types/round-robin-pool.d.ts +41 -0
- package/node_modules/@types/keyv/node_modules/undici-types/websocket.d.ts +9 -9
- package/node_modules/@types/responselike/node_modules/@types/node/README.md +1 -1
- package/node_modules/@types/responselike/node_modules/@types/node/assert.d.ts +2 -2
- package/node_modules/@types/responselike/node_modules/@types/node/child_process.d.ts +11 -6
- package/node_modules/@types/responselike/node_modules/@types/node/crypto.d.ts +4 -4
- package/node_modules/@types/responselike/node_modules/@types/node/events.d.ts +6 -13
- package/node_modules/@types/responselike/node_modules/@types/node/fs.d.ts +2 -0
- package/node_modules/@types/responselike/node_modules/@types/node/http.d.ts +57 -12
- package/node_modules/@types/responselike/node_modules/@types/node/https.d.ts +6 -0
- package/node_modules/@types/responselike/node_modules/@types/node/inspector.d.ts +45 -0
- package/node_modules/@types/responselike/node_modules/@types/node/inspector.generated.d.ts +579 -404
- package/node_modules/@types/responselike/node_modules/@types/node/module.d.ts +0 -62
- package/node_modules/@types/responselike/node_modules/@types/node/net.d.ts +5 -5
- package/node_modules/@types/responselike/node_modules/@types/node/package.json +3 -3
- package/node_modules/@types/responselike/node_modules/@types/node/perf_hooks.d.ts +111 -89
- package/node_modules/@types/responselike/node_modules/@types/node/process.d.ts +22 -8
- package/node_modules/@types/responselike/node_modules/@types/node/readline.d.ts +1 -0
- package/node_modules/@types/responselike/node_modules/@types/node/sqlite.d.ts +145 -17
- package/node_modules/@types/responselike/node_modules/@types/node/stream.d.ts +15 -5
- package/node_modules/@types/responselike/node_modules/@types/node/test.d.ts +56 -20
- package/node_modules/@types/responselike/node_modules/@types/node/tls.d.ts +14 -9
- package/node_modules/@types/responselike/node_modules/@types/node/url.d.ts +22 -0
- package/node_modules/@types/responselike/node_modules/@types/node/util.d.ts +37 -3
- package/node_modules/@types/responselike/node_modules/@types/node/v8.d.ts +12 -3
- package/node_modules/@types/responselike/node_modules/@types/node/vm.d.ts +42 -14
- package/node_modules/@types/responselike/node_modules/@types/node/web-globals/fetch.d.ts +15 -0
- package/node_modules/@types/responselike/node_modules/@types/node/worker_threads.d.ts +2 -2
- package/node_modules/@types/responselike/node_modules/@types/node/zlib.d.ts +68 -4
- package/node_modules/@types/responselike/node_modules/undici-types/agent.d.ts +1 -1
- package/node_modules/@types/responselike/node_modules/undici-types/api.d.ts +2 -2
- package/node_modules/@types/responselike/node_modules/undici-types/balanced-pool.d.ts +2 -1
- package/node_modules/@types/responselike/node_modules/undici-types/cache-interceptor.d.ts +1 -0
- package/node_modules/@types/responselike/node_modules/undici-types/client.d.ts +1 -1
- package/node_modules/@types/responselike/node_modules/undici-types/connector.d.ts +2 -2
- package/node_modules/@types/responselike/node_modules/undici-types/diagnostics-channel.d.ts +2 -2
- package/node_modules/@types/responselike/node_modules/undici-types/dispatcher.d.ts +12 -12
- package/node_modules/@types/responselike/node_modules/undici-types/fetch.d.ts +4 -4
- package/node_modules/@types/responselike/node_modules/undici-types/formdata.d.ts +1 -1
- package/node_modules/@types/responselike/node_modules/undici-types/h2c-client.d.ts +1 -1
- package/node_modules/@types/responselike/node_modules/undici-types/index.d.ts +9 -1
- package/node_modules/@types/responselike/node_modules/undici-types/interceptors.d.ts +36 -2
- package/node_modules/@types/responselike/node_modules/undici-types/package.json +1 -1
- package/node_modules/@types/responselike/node_modules/undici-types/pool.d.ts +1 -1
- package/node_modules/@types/responselike/node_modules/undici-types/readable.d.ts +2 -2
- package/node_modules/@types/responselike/node_modules/undici-types/round-robin-pool.d.ts +41 -0
- package/node_modules/@types/responselike/node_modules/undici-types/websocket.d.ts +9 -9
- package/node_modules/axios/CHANGELOG.md +460 -403
- package/node_modules/axios/MIGRATION_GUIDE.md +876 -2
- package/node_modules/axios/README.md +584 -447
- package/node_modules/axios/dist/axios.js +873 -881
- package/node_modules/axios/dist/axios.js.map +1 -1
- package/node_modules/axios/dist/axios.min.js +4 -2
- package/node_modules/axios/dist/axios.min.js.map +1 -1
- package/node_modules/axios/dist/browser/axios.cjs +1142 -812
- package/node_modules/axios/dist/browser/axios.cjs.map +1 -1
- package/node_modules/axios/dist/esm/axios.js +1143 -813
- package/node_modules/axios/dist/esm/axios.js.map +1 -1
- package/node_modules/axios/dist/esm/axios.min.js +2 -2
- package/node_modules/axios/dist/esm/axios.min.js.map +1 -1
- package/node_modules/axios/dist/node/axios.cjs +1816 -1415
- package/node_modules/axios/dist/node/axios.cjs.map +1 -1
- package/node_modules/axios/index.d.cts +256 -112
- package/node_modules/axios/index.d.ts +341 -116
- package/node_modules/axios/index.js +3 -3
- package/node_modules/axios/lib/adapters/README.md +5 -6
- package/node_modules/axios/lib/adapters/adapters.js +18 -14
- package/node_modules/axios/lib/adapters/fetch.js +138 -92
- package/node_modules/axios/lib/adapters/http.js +615 -561
- package/node_modules/axios/lib/adapters/xhr.js +189 -167
- package/node_modules/axios/lib/axios.js +6 -6
- package/node_modules/axios/lib/cancel/CancelToken.js +4 -4
- package/node_modules/axios/lib/cancel/CanceledError.js +15 -18
- package/node_modules/axios/lib/core/Axios.js +66 -43
- package/node_modules/axios/lib/core/AxiosError.js +64 -84
- package/node_modules/axios/lib/core/AxiosHeaders.js +54 -24
- package/node_modules/axios/lib/core/InterceptorManager.js +3 -2
- package/node_modules/axios/lib/core/dispatchRequest.js +25 -29
- package/node_modules/axios/lib/core/mergeConfig.js +8 -7
- package/node_modules/axios/lib/core/settle.js +11 -7
- package/node_modules/axios/lib/core/transformData.js +1 -1
- package/node_modules/axios/lib/defaults/index.js +85 -74
- package/node_modules/axios/lib/defaults/transitional.js +2 -1
- package/node_modules/axios/lib/env/data.js +1 -1
- package/node_modules/axios/lib/helpers/AxiosTransformStream.js +37 -24
- package/node_modules/axios/lib/helpers/AxiosURLSearchParams.js +12 -8
- package/node_modules/axios/lib/helpers/ZlibHeaderTransformStream.js +5 -4
- package/node_modules/axios/lib/helpers/buildURL.js +18 -19
- package/node_modules/axios/lib/helpers/callbackify.js +13 -11
- package/node_modules/axios/lib/helpers/composeSignals.js +22 -14
- package/node_modules/axios/lib/helpers/cookies.js +45 -50
- package/node_modules/axios/lib/helpers/deprecatedMethod.js +9 -4
- package/node_modules/axios/lib/helpers/formDataToJSON.js +1 -1
- package/node_modules/axios/lib/helpers/formDataToStream.js +32 -26
- package/node_modules/axios/lib/helpers/fromDataURI.js +2 -2
- package/node_modules/axios/lib/helpers/isAbsoluteURL.js +4 -0
- package/node_modules/axios/lib/helpers/isAxiosError.js +2 -2
- package/node_modules/axios/lib/helpers/isURLSameOrigin.js +13 -11
- package/node_modules/axios/lib/helpers/parseHeaders.js +35 -21
- package/node_modules/axios/lib/helpers/parseProtocol.js +1 -1
- package/node_modules/axios/lib/helpers/progressEventReducer.js +22 -15
- package/node_modules/axios/lib/helpers/readBlob.js +4 -4
- package/node_modules/axios/lib/helpers/resolveConfig.js +23 -14
- package/node_modules/axios/lib/helpers/speedometer.js +1 -1
- package/node_modules/axios/lib/helpers/spread.js +1 -1
- package/node_modules/axios/lib/helpers/throttle.js +4 -4
- package/node_modules/axios/lib/helpers/toFormData.js +43 -25
- package/node_modules/axios/lib/helpers/toURLEncodedForm.js +2 -2
- package/node_modules/axios/lib/helpers/trackStream.js +33 -31
- package/node_modules/axios/lib/helpers/validator.js +16 -5
- package/node_modules/axios/lib/platform/browser/classes/Blob.js +2 -2
- package/node_modules/axios/lib/platform/browser/index.js +5 -5
- package/node_modules/axios/lib/platform/common/utils.js +6 -5
- package/node_modules/axios/lib/platform/index.js +2 -2
- package/node_modules/axios/lib/platform/node/index.js +9 -10
- package/node_modules/axios/lib/utils.js +243 -106
- package/node_modules/axios/package.json +57 -70
- package/node_modules/bowser/README.md +72 -3
- package/node_modules/bowser/bundled.js +1 -1
- package/node_modules/bowser/es5.js +1 -1
- package/node_modules/bowser/index.d.ts +44 -6
- package/node_modules/bowser/package.json +10 -5
- package/node_modules/bowser/src/bowser.js +24 -8
- package/node_modules/bowser/src/constants.js +8 -0
- package/node_modules/bowser/src/parser-browsers.js +89 -0
- package/node_modules/bowser/src/parser-platforms.js +42 -0
- package/node_modules/bowser/src/parser.js +86 -5
- package/node_modules/editorconfig/lib/cli.js +18 -8
- package/node_modules/editorconfig/lib/index.d.ts +0 -1
- package/node_modules/editorconfig/lib/index.js +24 -15
- package/node_modules/editorconfig/node_modules/minimatch/README.md +39 -2
- package/node_modules/editorconfig/node_modules/minimatch/dist/commonjs/assert-valid-pattern.js.map +1 -0
- package/node_modules/editorconfig/node_modules/minimatch/dist/{cjs → commonjs}/ast.d.ts +2 -6
- package/node_modules/editorconfig/node_modules/minimatch/dist/{cjs → commonjs}/ast.d.ts.map +1 -1
- package/node_modules/editorconfig/node_modules/minimatch/dist/{cjs → commonjs}/ast.js +229 -48
- package/node_modules/editorconfig/node_modules/minimatch/dist/commonjs/ast.js.map +1 -0
- package/node_modules/editorconfig/node_modules/minimatch/dist/{cjs → commonjs}/brace-expressions.d.ts.map +1 -1
- package/node_modules/editorconfig/node_modules/minimatch/dist/commonjs/brace-expressions.js.map +1 -0
- package/node_modules/editorconfig/node_modules/minimatch/dist/{cjs → commonjs}/escape.d.ts +1 -1
- package/node_modules/editorconfig/node_modules/minimatch/dist/commonjs/escape.d.ts.map +1 -0
- package/node_modules/editorconfig/node_modules/minimatch/dist/{mjs → commonjs}/index.d.ts +4 -0
- package/node_modules/editorconfig/node_modules/minimatch/dist/commonjs/index.d.ts.map +1 -0
- package/node_modules/editorconfig/node_modules/minimatch/dist/{cjs → commonjs}/index.js +135 -123
- package/node_modules/editorconfig/node_modules/minimatch/dist/commonjs/index.js.map +1 -0
- package/node_modules/editorconfig/node_modules/minimatch/dist/{mjs → commonjs}/unescape.d.ts +1 -1
- package/node_modules/editorconfig/node_modules/minimatch/dist/{cjs → commonjs}/unescape.d.ts.map +1 -1
- package/node_modules/editorconfig/node_modules/minimatch/dist/esm/assert-valid-pattern.js.map +1 -0
- package/node_modules/editorconfig/node_modules/minimatch/dist/{mjs → esm}/ast.d.ts +2 -6
- package/node_modules/editorconfig/node_modules/minimatch/dist/{mjs → esm}/ast.d.ts.map +1 -1
- package/node_modules/editorconfig/node_modules/minimatch/dist/{mjs → esm}/ast.js +229 -48
- package/node_modules/editorconfig/node_modules/minimatch/dist/esm/ast.js.map +1 -0
- package/node_modules/editorconfig/node_modules/minimatch/dist/{mjs → esm}/brace-expressions.d.ts.map +1 -1
- package/node_modules/editorconfig/node_modules/minimatch/dist/esm/brace-expressions.js.map +1 -0
- package/node_modules/editorconfig/node_modules/minimatch/dist/{mjs → esm}/escape.d.ts +1 -1
- package/node_modules/editorconfig/node_modules/minimatch/dist/esm/escape.d.ts.map +1 -0
- package/node_modules/editorconfig/node_modules/minimatch/dist/{cjs → esm}/index.d.ts +4 -0
- package/node_modules/editorconfig/node_modules/minimatch/dist/esm/index.d.ts.map +1 -0
- package/node_modules/editorconfig/node_modules/minimatch/dist/{mjs → esm}/index.js +135 -123
- package/node_modules/editorconfig/node_modules/minimatch/dist/esm/index.js.map +1 -0
- package/node_modules/editorconfig/node_modules/minimatch/dist/{cjs → esm}/unescape.d.ts +1 -1
- package/node_modules/editorconfig/node_modules/minimatch/dist/{mjs → esm}/unescape.d.ts.map +1 -1
- package/node_modules/editorconfig/node_modules/minimatch/package.json +31 -35
- package/node_modules/editorconfig/package.json +4 -30
- package/node_modules/fast-xml-builder/CHANGELOG.md +16 -0
- package/node_modules/fast-xml-builder/LICENSE +21 -0
- package/node_modules/fast-xml-builder/README.md +23 -0
- package/node_modules/fast-xml-builder/lib/fxb.cjs +1 -0
- package/node_modules/fast-xml-builder/lib/fxb.d.cts +180 -0
- package/node_modules/fast-xml-builder/lib/fxb.min.js +2 -0
- package/node_modules/fast-xml-builder/lib/fxb.min.js.map +1 -0
- package/node_modules/fast-xml-builder/package.json +80 -0
- package/node_modules/fast-xml-builder/src/fxb.d.ts +180 -0
- package/node_modules/fast-xml-builder/src/fxb.js +529 -0
- package/node_modules/fast-xml-builder/src/ignoreAttributes.js +18 -0
- package/node_modules/fast-xml-builder/src/orderedJs2Xml.js +292 -0
- package/node_modules/js-beautify/node_modules/brace-expansion/.github/FUNDING.yml +2 -0
- package/node_modules/js-beautify/node_modules/brace-expansion/LICENSE +21 -0
- package/node_modules/js-beautify/node_modules/brace-expansion/README.md +135 -0
- package/node_modules/js-beautify/node_modules/brace-expansion/index.js +203 -0
- package/node_modules/js-beautify/node_modules/brace-expansion/package.json +49 -0
- package/node_modules/js-beautify/node_modules/minimatch/README.md +37 -0
- package/node_modules/js-beautify/node_modules/minimatch/dist/commonjs/assert-valid-pattern.js.map +1 -1
- package/node_modules/js-beautify/node_modules/minimatch/dist/commonjs/ast.d.ts.map +1 -1
- package/node_modules/js-beautify/node_modules/minimatch/dist/commonjs/ast.js +179 -24
- package/node_modules/js-beautify/node_modules/minimatch/dist/commonjs/ast.js.map +1 -1
- package/node_modules/js-beautify/node_modules/minimatch/dist/commonjs/brace-expressions.d.ts.map +1 -1
- package/node_modules/js-beautify/node_modules/minimatch/dist/commonjs/brace-expressions.js.map +1 -1
- package/node_modules/js-beautify/node_modules/minimatch/dist/commonjs/escape.d.ts +1 -1
- package/node_modules/js-beautify/node_modules/minimatch/dist/commonjs/escape.d.ts.map +1 -1
- package/node_modules/js-beautify/node_modules/minimatch/dist/commonjs/index.d.ts +4 -0
- package/node_modules/js-beautify/node_modules/minimatch/dist/commonjs/index.d.ts.map +1 -1
- package/node_modules/js-beautify/node_modules/minimatch/dist/commonjs/index.js +124 -118
- package/node_modules/js-beautify/node_modules/minimatch/dist/commonjs/index.js.map +1 -1
- package/node_modules/js-beautify/node_modules/minimatch/dist/commonjs/unescape.d.ts +1 -1
- package/node_modules/js-beautify/node_modules/minimatch/dist/commonjs/unescape.d.ts.map +1 -1
- package/node_modules/js-beautify/node_modules/minimatch/dist/esm/assert-valid-pattern.js.map +1 -1
- package/node_modules/js-beautify/node_modules/minimatch/dist/esm/ast.d.ts.map +1 -1
- package/node_modules/js-beautify/node_modules/minimatch/dist/esm/ast.js +179 -24
- package/node_modules/js-beautify/node_modules/minimatch/dist/esm/ast.js.map +1 -1
- package/node_modules/js-beautify/node_modules/minimatch/dist/esm/brace-expressions.d.ts.map +1 -1
- package/node_modules/js-beautify/node_modules/minimatch/dist/esm/brace-expressions.js.map +1 -1
- package/node_modules/js-beautify/node_modules/minimatch/dist/esm/escape.d.ts +1 -1
- package/node_modules/js-beautify/node_modules/minimatch/dist/esm/escape.d.ts.map +1 -1
- package/node_modules/js-beautify/node_modules/minimatch/dist/esm/index.d.ts +4 -0
- package/node_modules/js-beautify/node_modules/minimatch/dist/esm/index.d.ts.map +1 -1
- package/node_modules/js-beautify/node_modules/minimatch/dist/esm/index.js +124 -118
- package/node_modules/js-beautify/node_modules/minimatch/dist/esm/index.js.map +1 -1
- package/node_modules/js-beautify/node_modules/minimatch/dist/esm/unescape.d.ts +1 -1
- package/node_modules/js-beautify/node_modules/minimatch/dist/esm/unescape.d.ts.map +1 -1
- package/node_modules/js-beautify/node_modules/minimatch/package.json +14 -14
- package/node_modules/minipass/LICENSE.md +55 -0
- package/node_modules/minipass/dist/commonjs/index.d.ts +12 -16
- package/node_modules/minipass/dist/commonjs/index.d.ts.map +1 -1
- package/node_modules/minipass/dist/commonjs/index.js +13 -3
- package/node_modules/minipass/dist/commonjs/index.js.map +1 -1
- package/node_modules/minipass/dist/esm/index.d.ts +12 -16
- package/node_modules/minipass/dist/esm/index.d.ts.map +1 -1
- package/node_modules/minipass/dist/esm/index.js +3 -1
- package/node_modules/minipass/dist/esm/index.js.map +1 -1
- package/node_modules/minipass/package.json +9 -14
- package/node_modules/mjml-cli/node_modules/brace-expansion/.github/FUNDING.yml +2 -0
- package/node_modules/mjml-cli/node_modules/brace-expansion/LICENSE +21 -0
- package/node_modules/mjml-cli/node_modules/brace-expansion/README.md +135 -0
- package/node_modules/mjml-cli/node_modules/brace-expansion/index.js +203 -0
- package/node_modules/mjml-cli/node_modules/brace-expansion/package.json +49 -0
- package/node_modules/mjml-cli/node_modules/minimatch/README.md +37 -0
- package/node_modules/mjml-cli/node_modules/minimatch/dist/commonjs/assert-valid-pattern.js.map +1 -1
- package/node_modules/mjml-cli/node_modules/minimatch/dist/commonjs/ast.d.ts.map +1 -1
- package/node_modules/mjml-cli/node_modules/minimatch/dist/commonjs/ast.js +179 -24
- package/node_modules/mjml-cli/node_modules/minimatch/dist/commonjs/ast.js.map +1 -1
- package/node_modules/mjml-cli/node_modules/minimatch/dist/commonjs/brace-expressions.d.ts.map +1 -1
- package/node_modules/mjml-cli/node_modules/minimatch/dist/commonjs/brace-expressions.js.map +1 -1
- package/node_modules/mjml-cli/node_modules/minimatch/dist/commonjs/escape.d.ts +1 -1
- package/node_modules/mjml-cli/node_modules/minimatch/dist/commonjs/escape.d.ts.map +1 -1
- package/node_modules/mjml-cli/node_modules/minimatch/dist/commonjs/index.d.ts +4 -0
- package/node_modules/mjml-cli/node_modules/minimatch/dist/commonjs/index.d.ts.map +1 -1
- package/node_modules/mjml-cli/node_modules/minimatch/dist/commonjs/index.js +124 -118
- package/node_modules/mjml-cli/node_modules/minimatch/dist/commonjs/index.js.map +1 -1
- package/node_modules/mjml-cli/node_modules/minimatch/dist/commonjs/unescape.d.ts +1 -1
- package/node_modules/mjml-cli/node_modules/minimatch/dist/commonjs/unescape.d.ts.map +1 -1
- package/node_modules/mjml-cli/node_modules/minimatch/dist/esm/assert-valid-pattern.js.map +1 -1
- package/node_modules/mjml-cli/node_modules/minimatch/dist/esm/ast.d.ts.map +1 -1
- package/node_modules/mjml-cli/node_modules/minimatch/dist/esm/ast.js +179 -24
- package/node_modules/mjml-cli/node_modules/minimatch/dist/esm/ast.js.map +1 -1
- package/node_modules/mjml-cli/node_modules/minimatch/dist/esm/brace-expressions.d.ts.map +1 -1
- package/node_modules/mjml-cli/node_modules/minimatch/dist/esm/brace-expressions.js.map +1 -1
- package/node_modules/mjml-cli/node_modules/minimatch/dist/esm/escape.d.ts +1 -1
- package/node_modules/mjml-cli/node_modules/minimatch/dist/esm/escape.d.ts.map +1 -1
- package/node_modules/mjml-cli/node_modules/minimatch/dist/esm/index.d.ts +4 -0
- package/node_modules/mjml-cli/node_modules/minimatch/dist/esm/index.d.ts.map +1 -1
- package/node_modules/mjml-cli/node_modules/minimatch/dist/esm/index.js +124 -118
- package/node_modules/mjml-cli/node_modules/minimatch/dist/esm/index.js.map +1 -1
- package/node_modules/mjml-cli/node_modules/minimatch/dist/esm/unescape.d.ts +1 -1
- package/node_modules/mjml-cli/node_modules/minimatch/dist/esm/unescape.d.ts.map +1 -1
- package/node_modules/mjml-cli/node_modules/minimatch/package.json +14 -14
- package/node_modules/path-expression-matcher/LICENSE +21 -0
- package/node_modules/path-expression-matcher/README.md +635 -0
- package/node_modules/path-expression-matcher/lib/pem.cjs +1 -0
- package/node_modules/path-expression-matcher/lib/pem.d.cts +335 -0
- package/node_modules/path-expression-matcher/lib/pem.min.js +2 -0
- package/node_modules/path-expression-matcher/lib/pem.min.js.map +1 -0
- package/node_modules/path-expression-matcher/package.json +78 -0
- package/node_modules/path-expression-matcher/src/Expression.js +232 -0
- package/node_modules/path-expression-matcher/src/Matcher.js +414 -0
- package/node_modules/path-expression-matcher/src/index.d.ts +366 -0
- package/node_modules/path-expression-matcher/src/index.js +28 -0
- package/node_modules/pump/empty.js +1 -0
- package/node_modules/pump/package.json +7 -1
- package/node_modules/semver/README.md +3 -2
- package/node_modules/semver/bin/semver.js +1 -1
- package/node_modules/semver/functions/diff.js +1 -1
- package/node_modules/semver/internal/re.js +2 -2
- package/node_modules/semver/package.json +4 -4
- package/node_modules/semver/ranges/subset.js +1 -1
- package/node_modules/strnum/README.md +1 -0
- package/node_modules/strnum/package.json +3 -3
- package/node_modules/strnum/strnum.js +85 -59
- package/node_modules/strnum/tests/infinity_test.js +18 -0
- package/node_modules/strnum/{strnum.test.js → tests/strnum_test.js} +67 -68
- package/package.json +23 -23
- package/node_modules/@aws-sdk/client-sso/LICENSE +0 -201
- package/node_modules/@aws-sdk/client-sso/README.md +0 -244
- package/node_modules/@aws-sdk/client-sso/dist-cjs/endpoint/ruleset.js +0 -7
- package/node_modules/@aws-sdk/client-sso/dist-cjs/index.js +0 -420
- package/node_modules/@aws-sdk/client-sso/dist-es/SSO.js +0 -15
- package/node_modules/@aws-sdk/client-sso/dist-es/commands/ListAccountRolesCommand.js +0 -16
- package/node_modules/@aws-sdk/client-sso/dist-es/commands/index.js +0 -4
- package/node_modules/@aws-sdk/client-sso/dist-es/endpoint/ruleset.js +0 -4
- package/node_modules/@aws-sdk/client-sso/dist-es/pagination/ListAccountRolesPaginator.js +0 -4
- package/node_modules/@aws-sdk/client-sso/dist-es/pagination/ListAccountsPaginator.js +0 -4
- package/node_modules/@aws-sdk/client-sso/dist-es/pagination/index.js +0 -3
- package/node_modules/@aws-sdk/client-sso/dist-es/schemas/schemas_0.js +0 -152
- package/node_modules/@aws-sdk/client-sso/dist-types/commands/ListAccountRolesCommand.d.ts +0 -98
- package/node_modules/@aws-sdk/client-sso/dist-types/commands/ListAccountsCommand.d.ts +0 -100
- package/node_modules/@aws-sdk/client-sso/dist-types/commands/LogoutCommand.d.ts +0 -97
- package/node_modules/@aws-sdk/client-sso/dist-types/commands/index.d.ts +0 -4
- package/node_modules/@aws-sdk/client-sso/dist-types/models/models_0.d.ts +0 -189
- package/node_modules/@aws-sdk/client-sso/dist-types/pagination/Interfaces.d.ts +0 -8
- package/node_modules/@aws-sdk/client-sso/dist-types/pagination/ListAccountRolesPaginator.d.ts +0 -7
- package/node_modules/@aws-sdk/client-sso/dist-types/pagination/ListAccountsPaginator.d.ts +0 -7
- package/node_modules/@aws-sdk/client-sso/dist-types/pagination/index.d.ts +0 -3
- package/node_modules/@aws-sdk/client-sso/dist-types/ts3.4/SSO.d.ts +0 -73
- package/node_modules/@aws-sdk/client-sso/dist-types/ts3.4/commands/ListAccountRolesCommand.d.ts +0 -50
- package/node_modules/@aws-sdk/client-sso/dist-types/ts3.4/commands/ListAccountsCommand.d.ts +0 -47
- package/node_modules/@aws-sdk/client-sso/dist-types/ts3.4/commands/LogoutCommand.d.ts +0 -41
- package/node_modules/@aws-sdk/client-sso/dist-types/ts3.4/commands/index.d.ts +0 -4
- package/node_modules/@aws-sdk/client-sso/dist-types/ts3.4/models/models_0.d.ts +0 -45
- package/node_modules/@aws-sdk/client-sso/dist-types/ts3.4/pagination/Interfaces.d.ts +0 -5
- package/node_modules/@aws-sdk/client-sso/dist-types/ts3.4/pagination/ListAccountRolesPaginator.d.ts +0 -11
- package/node_modules/@aws-sdk/client-sso/dist-types/ts3.4/pagination/ListAccountsPaginator.d.ts +0 -11
- package/node_modules/@aws-sdk/client-sso/dist-types/ts3.4/pagination/index.d.ts +0 -3
- package/node_modules/@aws-sdk/client-sso/package.json +0 -99
- package/node_modules/@aws-sdk/core/dist-es/submodules/protocols/structIterator.js +0 -40
- package/node_modules/@aws-sdk/core/dist-types/submodules/protocols/structIterator.d.ts +0 -27
- package/node_modules/@aws-sdk/core/dist-types/ts3.4/submodules/protocols/structIterator.d.ts +0 -12
- package/node_modules/@aws-sdk/credential-provider-sso/dist-cjs/loadSso-CVy8iqsZ.js +0 -14
- package/node_modules/@aws-sdk/xml-builder/node_modules/fast-xml-parser/src/xmlbuilder/orderedJs2Xml.js +0 -134
- package/node_modules/bowser/CHANGELOG.md +0 -218
- package/node_modules/editorconfig/node_modules/minimatch/dist/cjs/assert-valid-pattern.js.map +0 -1
- package/node_modules/editorconfig/node_modules/minimatch/dist/cjs/ast.js.map +0 -1
- package/node_modules/editorconfig/node_modules/minimatch/dist/cjs/brace-expressions.js.map +0 -1
- package/node_modules/editorconfig/node_modules/minimatch/dist/cjs/escape.d.ts.map +0 -1
- package/node_modules/editorconfig/node_modules/minimatch/dist/cjs/index.d.ts.map +0 -1
- package/node_modules/editorconfig/node_modules/minimatch/dist/cjs/index.js.map +0 -1
- package/node_modules/editorconfig/node_modules/minimatch/dist/mjs/assert-valid-pattern.js.map +0 -1
- package/node_modules/editorconfig/node_modules/minimatch/dist/mjs/ast.js.map +0 -1
- package/node_modules/editorconfig/node_modules/minimatch/dist/mjs/brace-expressions.js.map +0 -1
- package/node_modules/editorconfig/node_modules/minimatch/dist/mjs/escape.d.ts.map +0 -1
- package/node_modules/editorconfig/node_modules/minimatch/dist/mjs/index.d.ts.map +0 -1
- package/node_modules/editorconfig/node_modules/minimatch/dist/mjs/index.js.map +0 -1
- package/node_modules/minipass/LICENSE +0 -15
- package/node_modules/strnum/test.js +0 -9
- /package/node_modules/@aws-sdk/{client-sso/dist-cjs → nested-clients/dist-cjs/submodules/cognito-identity}/endpoint/endpointResolver.js +0 -0
- /package/node_modules/@aws-sdk/{client-sso/dist-cjs → nested-clients/dist-cjs/submodules/cognito-identity}/runtimeConfig.native.js +0 -0
- /package/node_modules/@aws-sdk/{client-sso/dist-es → nested-clients/dist-es/submodules/cognito-identity}/auth/httpAuthExtensionConfiguration.js +0 -0
- /package/node_modules/@aws-sdk/{client-sso/dist-es → nested-clients/dist-es/submodules/cognito-identity}/endpoint/endpointResolver.js +0 -0
- /package/node_modules/@aws-sdk/{client-sso/dist-es → nested-clients/dist-es/submodules/cognito-identity}/extensionConfiguration.js +0 -0
- /package/node_modules/@aws-sdk/{client-sso/dist-es → nested-clients/dist-es/submodules/cognito-identity}/models/models_0.js +0 -0
- /package/node_modules/@aws-sdk/{client-sso/dist-es → nested-clients/dist-es/submodules/cognito-identity}/runtimeConfig.native.js +0 -0
- /package/node_modules/@aws-sdk/{client-sso/dist-es → nested-clients/dist-es/submodules/cognito-identity}/runtimeExtensions.js +0 -0
- /package/node_modules/@aws-sdk/{client-sso/dist-es → nested-clients/dist-es/submodules/sso}/commands/GetRoleCredentialsCommand.js +0 -0
- /package/node_modules/@aws-sdk/{client-sso/dist-es → nested-clients/dist-es/submodules/sso}/endpoint/EndpointParameters.js +0 -0
- /package/node_modules/@aws-sdk/{client-sso/dist-es/pagination/Interfaces.js → nested-clients/dist-es/submodules/sso/extensionConfiguration.js} +0 -0
- /package/node_modules/@aws-sdk/{client-sso/dist-es → nested-clients/dist-es/submodules/sso}/models/SSOServiceException.js +0 -0
- /package/node_modules/@aws-sdk/{client-sso/dist-es → nested-clients/dist-es/submodules/sso}/models/errors.js +0 -0
- /package/node_modules/@aws-sdk/{client-sso/dist-types → nested-clients/dist-types/submodules/cognito-identity}/endpoint/EndpointParameters.d.ts +0 -0
- /package/node_modules/@aws-sdk/{client-sso/dist-types → nested-clients/dist-types/submodules/cognito-identity}/endpoint/endpointResolver.d.ts +0 -0
- /package/node_modules/@aws-sdk/{client-sso/dist-types → nested-clients/dist-types/submodules/sso}/extensionConfiguration.d.ts +0 -0
- /package/node_modules/@aws-sdk/{client-sso/dist-types → nested-clients/dist-types/submodules/sso}/models/SSOServiceException.d.ts +0 -0
- /package/node_modules/@aws-sdk/{client-sso/dist-types → nested-clients/dist-types/submodules/sso}/models/errors.d.ts +0 -0
- /package/node_modules/@aws-sdk/{client-sso/dist-types → nested-clients/dist-types/submodules/sso}/runtimeConfig.browser.d.ts +0 -0
- /package/node_modules/@aws-sdk/{client-sso/dist-types → nested-clients/dist-types/submodules/sso}/runtimeConfig.d.ts +0 -0
- /package/node_modules/@aws-sdk/{client-sso/dist-types → nested-clients/dist-types/submodules/sso}/runtimeConfig.native.d.ts +0 -0
- /package/node_modules/@aws-sdk/{client-sso/dist-types → nested-clients/dist-types/submodules/sso}/runtimeConfig.shared.d.ts +0 -0
- /package/node_modules/@aws-sdk/{client-sso/dist-types → nested-clients/dist-types/submodules/sso}/runtimeExtensions.d.ts +0 -0
- /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
- /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
- /package/node_modules/@aws-sdk/{client-sso/dist-types → nested-clients/dist-types/ts3.4/submodules/cognito-identity}/endpoint/ruleset.d.ts +0 -0
- /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
- /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
- /package/node_modules/@aws-sdk/{client-sso/dist-types/ts3.4 → nested-clients/dist-types/ts3.4/submodules/sso}/extensionConfiguration.d.ts +0 -0
- /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
- /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
- /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
- /package/node_modules/@aws-sdk/{client-sso/dist-types/ts3.4 → nested-clients/dist-types/ts3.4/submodules/sso}/runtimeConfig.d.ts +0 -0
- /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
- /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
- /package/node_modules/@aws-sdk/{client-sso/dist-types/ts3.4 → nested-clients/dist-types/ts3.4/submodules/sso}/runtimeExtensions.d.ts +0 -0
- /package/node_modules/{brace-expansion → editorconfig/node_modules/brace-expansion}/.github/FUNDING.yml +0 -0
- /package/node_modules/{brace-expansion → editorconfig/node_modules/brace-expansion}/LICENSE +0 -0
- /package/node_modules/{brace-expansion → editorconfig/node_modules/brace-expansion}/README.md +0 -0
- /package/node_modules/{brace-expansion → editorconfig/node_modules/brace-expansion}/index.js +0 -0
- /package/node_modules/{brace-expansion → editorconfig/node_modules/brace-expansion}/package.json +0 -0
- /package/node_modules/editorconfig/node_modules/minimatch/dist/{cjs → commonjs}/assert-valid-pattern.d.ts +0 -0
- /package/node_modules/editorconfig/node_modules/minimatch/dist/{cjs → commonjs}/assert-valid-pattern.d.ts.map +0 -0
- /package/node_modules/editorconfig/node_modules/minimatch/dist/{cjs → commonjs}/assert-valid-pattern.js +0 -0
- /package/node_modules/editorconfig/node_modules/minimatch/dist/{cjs → commonjs}/brace-expressions.d.ts +0 -0
- /package/node_modules/editorconfig/node_modules/minimatch/dist/{cjs → commonjs}/brace-expressions.js +0 -0
- /package/node_modules/editorconfig/node_modules/minimatch/dist/{cjs → commonjs}/escape.js +0 -0
- /package/node_modules/editorconfig/node_modules/minimatch/dist/{cjs → commonjs}/escape.js.map +0 -0
- /package/node_modules/editorconfig/node_modules/minimatch/dist/{cjs → commonjs}/package.json +0 -0
- /package/node_modules/editorconfig/node_modules/minimatch/dist/{cjs → commonjs}/unescape.js +0 -0
- /package/node_modules/editorconfig/node_modules/minimatch/dist/{cjs → commonjs}/unescape.js.map +0 -0
- /package/node_modules/editorconfig/node_modules/minimatch/dist/{mjs → esm}/assert-valid-pattern.d.ts +0 -0
- /package/node_modules/editorconfig/node_modules/minimatch/dist/{mjs → esm}/assert-valid-pattern.d.ts.map +0 -0
- /package/node_modules/editorconfig/node_modules/minimatch/dist/{mjs → esm}/assert-valid-pattern.js +0 -0
- /package/node_modules/editorconfig/node_modules/minimatch/dist/{mjs → esm}/brace-expressions.d.ts +0 -0
- /package/node_modules/editorconfig/node_modules/minimatch/dist/{mjs → esm}/brace-expressions.js +0 -0
- /package/node_modules/editorconfig/node_modules/minimatch/dist/{mjs → esm}/escape.js +0 -0
- /package/node_modules/editorconfig/node_modules/minimatch/dist/{mjs → esm}/escape.js.map +0 -0
- /package/node_modules/editorconfig/node_modules/minimatch/dist/{mjs → esm}/package.json +0 -0
- /package/node_modules/editorconfig/node_modules/minimatch/dist/{mjs → esm}/unescape.js +0 -0
- /package/node_modules/editorconfig/node_modules/minimatch/dist/{mjs → esm}/unescape.js.map +0 -0
- /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.
|
|
1
|
+
/*! Axios v1.13.6 Copyright (c) 2026 Matt Zabriskie and contributors */
|
|
2
2
|
'use strict';
|
|
3
3
|
|
|
4
4
|
/**
|
|
@@ -16,30 +16,30 @@ function bind(fn, thisArg) {
|
|
|
16
16
|
|
|
17
17
|
// utils is a library of generic helper functions non-specific to axios
|
|
18
18
|
|
|
19
|
-
const {toString} = Object.prototype;
|
|
20
|
-
const {getPrototypeOf} = Object;
|
|
21
|
-
const {iterator, toStringTag} = Symbol;
|
|
19
|
+
const { toString } = Object.prototype;
|
|
20
|
+
const { getPrototypeOf } = Object;
|
|
21
|
+
const { iterator, toStringTag } = Symbol;
|
|
22
22
|
|
|
23
|
-
const kindOf = (cache => thing => {
|
|
24
|
-
|
|
25
|
-
|
|
23
|
+
const kindOf = ((cache) => (thing) => {
|
|
24
|
+
const str = toString.call(thing);
|
|
25
|
+
return cache[str] || (cache[str] = str.slice(8, -1).toLowerCase());
|
|
26
26
|
})(Object.create(null));
|
|
27
27
|
|
|
28
28
|
const kindOfTest = (type) => {
|
|
29
29
|
type = type.toLowerCase();
|
|
30
|
-
return (thing) => kindOf(thing) === type
|
|
30
|
+
return (thing) => kindOf(thing) === type;
|
|
31
31
|
};
|
|
32
32
|
|
|
33
|
-
const typeOfTest = type => thing => typeof thing === type;
|
|
33
|
+
const typeOfTest = (type) => (thing) => typeof thing === type;
|
|
34
34
|
|
|
35
35
|
/**
|
|
36
|
-
* Determine if a value is
|
|
36
|
+
* Determine if a value is a non-null object
|
|
37
37
|
*
|
|
38
38
|
* @param {Object} val The value to test
|
|
39
39
|
*
|
|
40
40
|
* @returns {boolean} True if value is an Array, otherwise false
|
|
41
41
|
*/
|
|
42
|
-
const {isArray} = Array;
|
|
42
|
+
const { isArray } = Array;
|
|
43
43
|
|
|
44
44
|
/**
|
|
45
45
|
* Determine if a value is undefined
|
|
@@ -58,8 +58,14 @@ const isUndefined = typeOfTest('undefined');
|
|
|
58
58
|
* @returns {boolean} True if value is a Buffer, otherwise false
|
|
59
59
|
*/
|
|
60
60
|
function isBuffer(val) {
|
|
61
|
-
return
|
|
62
|
-
|
|
61
|
+
return (
|
|
62
|
+
val !== null &&
|
|
63
|
+
!isUndefined(val) &&
|
|
64
|
+
val.constructor !== null &&
|
|
65
|
+
!isUndefined(val.constructor) &&
|
|
66
|
+
isFunction$1(val.constructor.isBuffer) &&
|
|
67
|
+
val.constructor.isBuffer(val)
|
|
68
|
+
);
|
|
63
69
|
}
|
|
64
70
|
|
|
65
71
|
/**
|
|
@@ -71,7 +77,6 @@ function isBuffer(val) {
|
|
|
71
77
|
*/
|
|
72
78
|
const isArrayBuffer = kindOfTest('ArrayBuffer');
|
|
73
79
|
|
|
74
|
-
|
|
75
80
|
/**
|
|
76
81
|
* Determine if a value is a view on an ArrayBuffer
|
|
77
82
|
*
|
|
@@ -81,10 +86,10 @@ const isArrayBuffer = kindOfTest('ArrayBuffer');
|
|
|
81
86
|
*/
|
|
82
87
|
function isArrayBufferView(val) {
|
|
83
88
|
let result;
|
|
84
|
-
if (
|
|
89
|
+
if (typeof ArrayBuffer !== 'undefined' && ArrayBuffer.isView) {
|
|
85
90
|
result = ArrayBuffer.isView(val);
|
|
86
91
|
} else {
|
|
87
|
-
result =
|
|
92
|
+
result = val && val.buffer && isArrayBuffer(val.buffer);
|
|
88
93
|
}
|
|
89
94
|
return result;
|
|
90
95
|
}
|
|
@@ -130,7 +135,7 @@ const isObject = (thing) => thing !== null && typeof thing === 'object';
|
|
|
130
135
|
* @param {*} thing The value to test
|
|
131
136
|
* @returns {boolean} True if value is a Boolean, otherwise false
|
|
132
137
|
*/
|
|
133
|
-
const isBoolean = thing => thing === true || thing === false;
|
|
138
|
+
const isBoolean = (thing) => thing === true || thing === false;
|
|
134
139
|
|
|
135
140
|
/**
|
|
136
141
|
* Determine if a value is a plain Object
|
|
@@ -145,7 +150,13 @@ const isPlainObject = (val) => {
|
|
|
145
150
|
}
|
|
146
151
|
|
|
147
152
|
const prototype = getPrototypeOf(val);
|
|
148
|
-
return (
|
|
153
|
+
return (
|
|
154
|
+
(prototype === null ||
|
|
155
|
+
prototype === Object.prototype ||
|
|
156
|
+
Object.getPrototypeOf(prototype) === null) &&
|
|
157
|
+
!(toStringTag in val) &&
|
|
158
|
+
!(iterator in val)
|
|
159
|
+
);
|
|
149
160
|
};
|
|
150
161
|
|
|
151
162
|
/**
|
|
@@ -187,6 +198,31 @@ const isDate = kindOfTest('Date');
|
|
|
187
198
|
*/
|
|
188
199
|
const isFile = kindOfTest('File');
|
|
189
200
|
|
|
201
|
+
/**
|
|
202
|
+
* Determine if a value is a React Native Blob
|
|
203
|
+
* React Native "blob": an object with a `uri` attribute. Optionally, it can
|
|
204
|
+
* also have a `name` and `type` attribute to specify filename and content type
|
|
205
|
+
*
|
|
206
|
+
* @see https://github.com/facebook/react-native/blob/26684cf3adf4094eb6c405d345a75bf8c7c0bf88/Libraries/Network/FormData.js#L68-L71
|
|
207
|
+
*
|
|
208
|
+
* @param {*} value The value to test
|
|
209
|
+
*
|
|
210
|
+
* @returns {boolean} True if value is a React Native Blob, otherwise false
|
|
211
|
+
*/
|
|
212
|
+
const isReactNativeBlob = (value) => {
|
|
213
|
+
return !!(value && typeof value.uri !== 'undefined');
|
|
214
|
+
};
|
|
215
|
+
|
|
216
|
+
/**
|
|
217
|
+
* Determine if environment is React Native
|
|
218
|
+
* ReactNative `FormData` has a non-standard `getParts()` method
|
|
219
|
+
*
|
|
220
|
+
* @param {*} formData The formData to test
|
|
221
|
+
*
|
|
222
|
+
* @returns {boolean} True if environment is React Native, otherwise false
|
|
223
|
+
*/
|
|
224
|
+
const isReactNative = (formData) => formData && typeof formData.getParts !== 'undefined';
|
|
225
|
+
|
|
190
226
|
/**
|
|
191
227
|
* Determine if a value is a Blob
|
|
192
228
|
*
|
|
@@ -221,17 +257,28 @@ const isStream = (val) => isObject(val) && isFunction$1(val.pipe);
|
|
|
221
257
|
*
|
|
222
258
|
* @returns {boolean} True if value is an FormData, otherwise false
|
|
223
259
|
*/
|
|
260
|
+
function getGlobal() {
|
|
261
|
+
if (typeof globalThis !== 'undefined') return globalThis;
|
|
262
|
+
if (typeof self !== 'undefined') return self;
|
|
263
|
+
if (typeof window !== 'undefined') return window;
|
|
264
|
+
if (typeof global !== 'undefined') return global;
|
|
265
|
+
return {};
|
|
266
|
+
}
|
|
267
|
+
|
|
268
|
+
const G = getGlobal();
|
|
269
|
+
const FormDataCtor = typeof G.FormData !== 'undefined' ? G.FormData : undefined;
|
|
270
|
+
|
|
224
271
|
const isFormData = (thing) => {
|
|
225
272
|
let kind;
|
|
226
273
|
return thing && (
|
|
227
|
-
(
|
|
274
|
+
(FormDataCtor && thing instanceof FormDataCtor) || (
|
|
228
275
|
isFunction$1(thing.append) && (
|
|
229
276
|
(kind = kindOf(thing)) === 'formdata' ||
|
|
230
277
|
// detect form-data instance
|
|
231
278
|
(kind === 'object' && isFunction$1(thing.toString) && thing.toString() === '[object FormData]')
|
|
232
279
|
)
|
|
233
280
|
)
|
|
234
|
-
)
|
|
281
|
+
);
|
|
235
282
|
};
|
|
236
283
|
|
|
237
284
|
/**
|
|
@@ -243,7 +290,12 @@ const isFormData = (thing) => {
|
|
|
243
290
|
*/
|
|
244
291
|
const isURLSearchParams = kindOfTest('URLSearchParams');
|
|
245
292
|
|
|
246
|
-
const [isReadableStream, isRequest, isResponse, isHeaders] = [
|
|
293
|
+
const [isReadableStream, isRequest, isResponse, isHeaders] = [
|
|
294
|
+
'ReadableStream',
|
|
295
|
+
'Request',
|
|
296
|
+
'Response',
|
|
297
|
+
'Headers',
|
|
298
|
+
].map(kindOfTest);
|
|
247
299
|
|
|
248
300
|
/**
|
|
249
301
|
* Trim excess whitespace off the beginning and end of a string
|
|
@@ -252,9 +304,9 @@ const [isReadableStream, isRequest, isResponse, isHeaders] = ['ReadableStream',
|
|
|
252
304
|
*
|
|
253
305
|
* @returns {String} The String freed of excess whitespace
|
|
254
306
|
*/
|
|
255
|
-
const trim = (str) =>
|
|
256
|
-
str.trim() : str.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g, '');
|
|
257
|
-
|
|
307
|
+
const trim = (str) => {
|
|
308
|
+
return str.trim ? str.trim() : str.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g, '');
|
|
309
|
+
};
|
|
258
310
|
/**
|
|
259
311
|
* Iterate over an Array or an Object invoking a function for each item.
|
|
260
312
|
*
|
|
@@ -264,13 +316,14 @@ const trim = (str) => str.trim ?
|
|
|
264
316
|
* If 'obj' is an Object callback will be called passing
|
|
265
317
|
* the value, key, and complete object for each property.
|
|
266
318
|
*
|
|
267
|
-
* @param {Object|Array} obj The object to iterate
|
|
319
|
+
* @param {Object|Array<unknown>} obj The object to iterate
|
|
268
320
|
* @param {Function} fn The callback to invoke for each item
|
|
269
321
|
*
|
|
270
|
-
* @param {
|
|
322
|
+
* @param {Object} [options]
|
|
323
|
+
* @param {Boolean} [options.allOwnKeys = false]
|
|
271
324
|
* @returns {any}
|
|
272
325
|
*/
|
|
273
|
-
function forEach(obj, fn, {allOwnKeys = false} = {}) {
|
|
326
|
+
function forEach(obj, fn, { allOwnKeys = false } = {}) {
|
|
274
327
|
// Don't bother if no value provided
|
|
275
328
|
if (obj === null || typeof obj === 'undefined') {
|
|
276
329
|
return;
|
|
@@ -308,8 +361,16 @@ function forEach(obj, fn, {allOwnKeys = false} = {}) {
|
|
|
308
361
|
}
|
|
309
362
|
}
|
|
310
363
|
|
|
364
|
+
/**
|
|
365
|
+
* Finds a key in an object, case-insensitive, returning the actual key name.
|
|
366
|
+
* Returns null if the object is a Buffer or if no match is found.
|
|
367
|
+
*
|
|
368
|
+
* @param {Object} obj - The object to search.
|
|
369
|
+
* @param {string} key - The key to find (case-insensitive).
|
|
370
|
+
* @returns {?string} The actual key name if found, otherwise null.
|
|
371
|
+
*/
|
|
311
372
|
function findKey(obj, key) {
|
|
312
|
-
if (isBuffer(obj)){
|
|
373
|
+
if (isBuffer(obj)) {
|
|
313
374
|
return null;
|
|
314
375
|
}
|
|
315
376
|
|
|
@@ -328,8 +389,8 @@ function findKey(obj, key) {
|
|
|
328
389
|
|
|
329
390
|
const _global = (() => {
|
|
330
391
|
/*eslint no-undef:0*/
|
|
331
|
-
if (typeof globalThis !==
|
|
332
|
-
return typeof self !==
|
|
392
|
+
if (typeof globalThis !== 'undefined') return globalThis;
|
|
393
|
+
return typeof self !== 'undefined' ? self : typeof window !== 'undefined' ? window : global;
|
|
333
394
|
})();
|
|
334
395
|
|
|
335
396
|
const isContextDefined = (context) => !isUndefined(context) && context !== _global;
|
|
@@ -344,7 +405,7 @@ const isContextDefined = (context) => !isUndefined(context) && context !== _glob
|
|
|
344
405
|
* Example:
|
|
345
406
|
*
|
|
346
407
|
* ```js
|
|
347
|
-
*
|
|
408
|
+
* const result = merge({foo: 123}, {foo: 456});
|
|
348
409
|
* console.log(result.foo); // outputs 456
|
|
349
410
|
* ```
|
|
350
411
|
*
|
|
@@ -353,10 +414,15 @@ const isContextDefined = (context) => !isUndefined(context) && context !== _glob
|
|
|
353
414
|
* @returns {Object} Result of all merge properties
|
|
354
415
|
*/
|
|
355
416
|
function merge(/* obj1, obj2, obj3, ... */) {
|
|
356
|
-
const {caseless, skipUndefined} = isContextDefined(this) && this || {};
|
|
417
|
+
const { caseless, skipUndefined } = (isContextDefined(this) && this) || {};
|
|
357
418
|
const result = {};
|
|
358
419
|
const assignValue = (val, key) => {
|
|
359
|
-
|
|
420
|
+
// Skip dangerous property names to prevent prototype pollution
|
|
421
|
+
if (key === '__proto__' || key === 'constructor' || key === 'prototype') {
|
|
422
|
+
return;
|
|
423
|
+
}
|
|
424
|
+
|
|
425
|
+
const targetKey = (caseless && findKey(result, key)) || key;
|
|
360
426
|
if (isPlainObject(result[targetKey]) && isPlainObject(val)) {
|
|
361
427
|
result[targetKey] = merge(result[targetKey], val);
|
|
362
428
|
} else if (isPlainObject(val)) {
|
|
@@ -381,17 +447,32 @@ function merge(/* obj1, obj2, obj3, ... */) {
|
|
|
381
447
|
* @param {Object} b The object to copy properties from
|
|
382
448
|
* @param {Object} thisArg The object to bind function to
|
|
383
449
|
*
|
|
384
|
-
* @param {
|
|
450
|
+
* @param {Object} [options]
|
|
451
|
+
* @param {Boolean} [options.allOwnKeys]
|
|
385
452
|
* @returns {Object} The resulting value of object a
|
|
386
453
|
*/
|
|
387
|
-
const extend = (a, b, thisArg, {allOwnKeys}= {}) => {
|
|
388
|
-
forEach(
|
|
389
|
-
|
|
390
|
-
|
|
391
|
-
|
|
392
|
-
|
|
393
|
-
|
|
394
|
-
|
|
454
|
+
const extend = (a, b, thisArg, { allOwnKeys } = {}) => {
|
|
455
|
+
forEach(
|
|
456
|
+
b,
|
|
457
|
+
(val, key) => {
|
|
458
|
+
if (thisArg && isFunction$1(val)) {
|
|
459
|
+
Object.defineProperty(a, key, {
|
|
460
|
+
value: bind(val, thisArg),
|
|
461
|
+
writable: true,
|
|
462
|
+
enumerable: true,
|
|
463
|
+
configurable: true,
|
|
464
|
+
});
|
|
465
|
+
} else {
|
|
466
|
+
Object.defineProperty(a, key, {
|
|
467
|
+
value: val,
|
|
468
|
+
writable: true,
|
|
469
|
+
enumerable: true,
|
|
470
|
+
configurable: true,
|
|
471
|
+
});
|
|
472
|
+
}
|
|
473
|
+
},
|
|
474
|
+
{ allOwnKeys }
|
|
475
|
+
);
|
|
395
476
|
return a;
|
|
396
477
|
};
|
|
397
478
|
|
|
@@ -403,7 +484,7 @@ const extend = (a, b, thisArg, {allOwnKeys}= {}) => {
|
|
|
403
484
|
* @returns {string} content value without BOM
|
|
404
485
|
*/
|
|
405
486
|
const stripBOM = (content) => {
|
|
406
|
-
if (content.charCodeAt(0) ===
|
|
487
|
+
if (content.charCodeAt(0) === 0xfeff) {
|
|
407
488
|
content = content.slice(1);
|
|
408
489
|
}
|
|
409
490
|
return content;
|
|
@@ -420,9 +501,14 @@ const stripBOM = (content) => {
|
|
|
420
501
|
*/
|
|
421
502
|
const inherits = (constructor, superConstructor, props, descriptors) => {
|
|
422
503
|
constructor.prototype = Object.create(superConstructor.prototype, descriptors);
|
|
423
|
-
constructor.prototype
|
|
504
|
+
Object.defineProperty(constructor.prototype, 'constructor', {
|
|
505
|
+
value: constructor,
|
|
506
|
+
writable: true,
|
|
507
|
+
enumerable: false,
|
|
508
|
+
configurable: true,
|
|
509
|
+
});
|
|
424
510
|
Object.defineProperty(constructor, 'super', {
|
|
425
|
-
value: superConstructor.prototype
|
|
511
|
+
value: superConstructor.prototype,
|
|
426
512
|
});
|
|
427
513
|
props && Object.assign(constructor.prototype, props);
|
|
428
514
|
};
|
|
@@ -481,7 +567,6 @@ const endsWith = (str, searchString, position) => {
|
|
|
481
567
|
return lastIndex !== -1 && lastIndex === position;
|
|
482
568
|
};
|
|
483
569
|
|
|
484
|
-
|
|
485
570
|
/**
|
|
486
571
|
* Returns new array from array like object or null if failed
|
|
487
572
|
*
|
|
@@ -510,9 +595,9 @@ const toArray = (thing) => {
|
|
|
510
595
|
* @returns {Array}
|
|
511
596
|
*/
|
|
512
597
|
// eslint-disable-next-line func-names
|
|
513
|
-
const isTypedArray = (TypedArray => {
|
|
598
|
+
const isTypedArray = ((TypedArray) => {
|
|
514
599
|
// eslint-disable-next-line func-names
|
|
515
|
-
return thing => {
|
|
600
|
+
return (thing) => {
|
|
516
601
|
return TypedArray && thing instanceof TypedArray;
|
|
517
602
|
};
|
|
518
603
|
})(typeof Uint8Array !== 'undefined' && getPrototypeOf(Uint8Array));
|
|
@@ -560,16 +645,18 @@ const matchAll = (regExp, str) => {
|
|
|
560
645
|
/* Checking if the kindOfTest function returns true when passed an HTMLFormElement. */
|
|
561
646
|
const isHTMLForm = kindOfTest('HTMLFormElement');
|
|
562
647
|
|
|
563
|
-
const toCamelCase = str => {
|
|
564
|
-
return str.toLowerCase().replace(/[-_\s]([a-z\d])(\w*)/g,
|
|
565
|
-
|
|
566
|
-
|
|
567
|
-
}
|
|
568
|
-
);
|
|
648
|
+
const toCamelCase = (str) => {
|
|
649
|
+
return str.toLowerCase().replace(/[-_\s]([a-z\d])(\w*)/g, function replacer(m, p1, p2) {
|
|
650
|
+
return p1.toUpperCase() + p2;
|
|
651
|
+
});
|
|
569
652
|
};
|
|
570
653
|
|
|
571
654
|
/* Creating a function that will check if an object has a property. */
|
|
572
|
-
const hasOwnProperty = (
|
|
655
|
+
const hasOwnProperty = (
|
|
656
|
+
({ hasOwnProperty }) =>
|
|
657
|
+
(obj, prop) =>
|
|
658
|
+
hasOwnProperty.call(obj, prop)
|
|
659
|
+
)(Object.prototype);
|
|
573
660
|
|
|
574
661
|
/**
|
|
575
662
|
* Determine if a value is a RegExp object
|
|
@@ -619,17 +706,25 @@ const freezeMethods = (obj) => {
|
|
|
619
706
|
|
|
620
707
|
if (!descriptor.set) {
|
|
621
708
|
descriptor.set = () => {
|
|
622
|
-
throw Error(
|
|
709
|
+
throw Error("Can not rewrite read-only method '" + name + "'");
|
|
623
710
|
};
|
|
624
711
|
}
|
|
625
712
|
});
|
|
626
713
|
};
|
|
627
714
|
|
|
715
|
+
/**
|
|
716
|
+
* Converts an array or a delimited string into an object set with values as keys and true as values.
|
|
717
|
+
* Useful for fast membership checks.
|
|
718
|
+
*
|
|
719
|
+
* @param {Array|string} arrayOrString - The array or string to convert.
|
|
720
|
+
* @param {string} delimiter - The delimiter to use if input is a string.
|
|
721
|
+
* @returns {Object} An object with keys from the array or string, values set to true.
|
|
722
|
+
*/
|
|
628
723
|
const toObjectSet = (arrayOrString, delimiter) => {
|
|
629
724
|
const obj = {};
|
|
630
725
|
|
|
631
726
|
const define = (arr) => {
|
|
632
|
-
arr.forEach(value => {
|
|
727
|
+
arr.forEach((value) => {
|
|
633
728
|
obj[value] = true;
|
|
634
729
|
});
|
|
635
730
|
};
|
|
@@ -642,11 +737,9 @@ const toObjectSet = (arrayOrString, delimiter) => {
|
|
|
642
737
|
const noop = () => {};
|
|
643
738
|
|
|
644
739
|
const toFiniteNumber = (value, defaultValue) => {
|
|
645
|
-
return value != null && Number.isFinite(value = +value) ? value : defaultValue;
|
|
740
|
+
return value != null && Number.isFinite((value = +value)) ? value : defaultValue;
|
|
646
741
|
};
|
|
647
742
|
|
|
648
|
-
|
|
649
|
-
|
|
650
743
|
/**
|
|
651
744
|
* If the thing is a FormData object, return true, otherwise return false.
|
|
652
745
|
*
|
|
@@ -655,14 +748,24 @@ const toFiniteNumber = (value, defaultValue) => {
|
|
|
655
748
|
* @returns {boolean}
|
|
656
749
|
*/
|
|
657
750
|
function isSpecCompliantForm(thing) {
|
|
658
|
-
return !!(
|
|
751
|
+
return !!(
|
|
752
|
+
thing &&
|
|
753
|
+
isFunction$1(thing.append) &&
|
|
754
|
+
thing[toStringTag] === 'FormData' &&
|
|
755
|
+
thing[iterator]
|
|
756
|
+
);
|
|
659
757
|
}
|
|
660
758
|
|
|
759
|
+
/**
|
|
760
|
+
* Recursively converts an object to a JSON-compatible object, handling circular references and Buffers.
|
|
761
|
+
*
|
|
762
|
+
* @param {Object} obj - The object to convert.
|
|
763
|
+
* @returns {Object} The JSON-compatible object.
|
|
764
|
+
*/
|
|
661
765
|
const toJSONObject = (obj) => {
|
|
662
766
|
const stack = new Array(10);
|
|
663
767
|
|
|
664
768
|
const visit = (source, i) => {
|
|
665
|
-
|
|
666
769
|
if (isObject(source)) {
|
|
667
770
|
if (stack.indexOf(source) >= 0) {
|
|
668
771
|
return;
|
|
@@ -673,7 +776,7 @@ const toJSONObject = (obj) => {
|
|
|
673
776
|
return source;
|
|
674
777
|
}
|
|
675
778
|
|
|
676
|
-
if(!('toJSON' in source)) {
|
|
779
|
+
if (!('toJSON' in source)) {
|
|
677
780
|
stack[i] = source;
|
|
678
781
|
const target = isArray(source) ? [] : {};
|
|
679
782
|
|
|
@@ -694,45 +797,77 @@ const toJSONObject = (obj) => {
|
|
|
694
797
|
return visit(obj, 0);
|
|
695
798
|
};
|
|
696
799
|
|
|
800
|
+
/**
|
|
801
|
+
* Determines if a value is an async function.
|
|
802
|
+
*
|
|
803
|
+
* @param {*} thing - The value to test.
|
|
804
|
+
* @returns {boolean} True if value is an async function, otherwise false.
|
|
805
|
+
*/
|
|
697
806
|
const isAsyncFn = kindOfTest('AsyncFunction');
|
|
698
807
|
|
|
808
|
+
/**
|
|
809
|
+
* Determines if a value is thenable (has then and catch methods).
|
|
810
|
+
*
|
|
811
|
+
* @param {*} thing - The value to test.
|
|
812
|
+
* @returns {boolean} True if value is thenable, otherwise false.
|
|
813
|
+
*/
|
|
699
814
|
const isThenable = (thing) =>
|
|
700
|
-
thing &&
|
|
815
|
+
thing &&
|
|
816
|
+
(isObject(thing) || isFunction$1(thing)) &&
|
|
817
|
+
isFunction$1(thing.then) &&
|
|
818
|
+
isFunction$1(thing.catch);
|
|
701
819
|
|
|
702
820
|
// original code
|
|
703
821
|
// https://github.com/DigitalBrainJS/AxiosPromise/blob/16deab13710ec09779922131f3fa5954320f83ab/lib/utils.js#L11-L34
|
|
704
822
|
|
|
823
|
+
/**
|
|
824
|
+
* Provides a cross-platform setImmediate implementation.
|
|
825
|
+
* Uses native setImmediate if available, otherwise falls back to postMessage or setTimeout.
|
|
826
|
+
*
|
|
827
|
+
* @param {boolean} setImmediateSupported - Whether setImmediate is supported.
|
|
828
|
+
* @param {boolean} postMessageSupported - Whether postMessage is supported.
|
|
829
|
+
* @returns {Function} A function to schedule a callback asynchronously.
|
|
830
|
+
*/
|
|
705
831
|
const _setImmediate = ((setImmediateSupported, postMessageSupported) => {
|
|
706
832
|
if (setImmediateSupported) {
|
|
707
833
|
return setImmediate;
|
|
708
834
|
}
|
|
709
835
|
|
|
710
|
-
return postMessageSupported
|
|
711
|
-
|
|
712
|
-
|
|
713
|
-
|
|
714
|
-
|
|
715
|
-
|
|
836
|
+
return postMessageSupported
|
|
837
|
+
? ((token, callbacks) => {
|
|
838
|
+
_global.addEventListener(
|
|
839
|
+
'message',
|
|
840
|
+
({ source, data }) => {
|
|
841
|
+
if (source === _global && data === token) {
|
|
842
|
+
callbacks.length && callbacks.shift()();
|
|
843
|
+
}
|
|
844
|
+
},
|
|
845
|
+
false
|
|
846
|
+
);
|
|
716
847
|
|
|
717
|
-
|
|
718
|
-
|
|
719
|
-
|
|
720
|
-
|
|
721
|
-
|
|
722
|
-
|
|
723
|
-
|
|
724
|
-
isFunction$1(_global.postMessage)
|
|
725
|
-
);
|
|
848
|
+
return (cb) => {
|
|
849
|
+
callbacks.push(cb);
|
|
850
|
+
_global.postMessage(token, '*');
|
|
851
|
+
};
|
|
852
|
+
})(`axios@${Math.random()}`, [])
|
|
853
|
+
: (cb) => setTimeout(cb);
|
|
854
|
+
})(typeof setImmediate === 'function', isFunction$1(_global.postMessage));
|
|
726
855
|
|
|
727
|
-
|
|
728
|
-
|
|
856
|
+
/**
|
|
857
|
+
* Schedules a microtask or asynchronous callback as soon as possible.
|
|
858
|
+
* Uses queueMicrotask if available, otherwise falls back to process.nextTick or _setImmediate.
|
|
859
|
+
*
|
|
860
|
+
* @type {Function}
|
|
861
|
+
*/
|
|
862
|
+
const asap =
|
|
863
|
+
typeof queueMicrotask !== 'undefined'
|
|
864
|
+
? queueMicrotask.bind(_global)
|
|
865
|
+
: (typeof process !== 'undefined' && process.nextTick) || _setImmediate;
|
|
729
866
|
|
|
730
867
|
// *********************
|
|
731
868
|
|
|
732
|
-
|
|
733
869
|
const isIterable = (thing) => thing != null && isFunction$1(thing[iterator]);
|
|
734
870
|
|
|
735
|
-
|
|
736
871
|
var utils$1 = {
|
|
737
872
|
isArray,
|
|
738
873
|
isArrayBuffer,
|
|
@@ -752,6 +887,8 @@ var utils$1 = {
|
|
|
752
887
|
isUndefined,
|
|
753
888
|
isDate,
|
|
754
889
|
isFile,
|
|
890
|
+
isReactNativeBlob,
|
|
891
|
+
isReactNative,
|
|
755
892
|
isBlob,
|
|
756
893
|
isRegExp,
|
|
757
894
|
isFunction: isFunction$1,
|
|
@@ -790,42 +927,60 @@ var utils$1 = {
|
|
|
790
927
|
isThenable,
|
|
791
928
|
setImmediate: _setImmediate,
|
|
792
929
|
asap,
|
|
793
|
-
isIterable
|
|
930
|
+
isIterable,
|
|
794
931
|
};
|
|
795
932
|
|
|
796
|
-
|
|
797
|
-
|
|
798
|
-
|
|
799
|
-
|
|
800
|
-
|
|
801
|
-
* @param {Object} [config] The config.
|
|
802
|
-
* @param {Object} [request] The request.
|
|
803
|
-
* @param {Object} [response] The response.
|
|
804
|
-
*
|
|
805
|
-
* @returns {Error} The created error.
|
|
806
|
-
*/
|
|
807
|
-
function AxiosError(message, code, config, request, response) {
|
|
808
|
-
Error.call(this);
|
|
933
|
+
class AxiosError extends Error {
|
|
934
|
+
static from(error, code, config, request, response, customProps) {
|
|
935
|
+
const axiosError = new AxiosError(error.message, code || error.code, config, request, response);
|
|
936
|
+
axiosError.cause = error;
|
|
937
|
+
axiosError.name = error.name;
|
|
809
938
|
|
|
810
|
-
|
|
811
|
-
|
|
812
|
-
|
|
813
|
-
|
|
814
|
-
}
|
|
939
|
+
// Preserve status from the original error if not already set from response
|
|
940
|
+
if (error.status != null && axiosError.status == null) {
|
|
941
|
+
axiosError.status = error.status;
|
|
942
|
+
}
|
|
815
943
|
|
|
816
|
-
|
|
817
|
-
|
|
818
|
-
code && (this.code = code);
|
|
819
|
-
config && (this.config = config);
|
|
820
|
-
request && (this.request = request);
|
|
821
|
-
if (response) {
|
|
822
|
-
this.response = response;
|
|
823
|
-
this.status = response.status ? response.status : null;
|
|
944
|
+
customProps && Object.assign(axiosError, customProps);
|
|
945
|
+
return axiosError;
|
|
824
946
|
}
|
|
825
|
-
}
|
|
826
947
|
|
|
827
|
-
|
|
828
|
-
|
|
948
|
+
/**
|
|
949
|
+
* Create an Error with the specified message, config, error code, request and response.
|
|
950
|
+
*
|
|
951
|
+
* @param {string} message The error message.
|
|
952
|
+
* @param {string} [code] The error code (for example, 'ECONNABORTED').
|
|
953
|
+
* @param {Object} [config] The config.
|
|
954
|
+
* @param {Object} [request] The request.
|
|
955
|
+
* @param {Object} [response] The response.
|
|
956
|
+
*
|
|
957
|
+
* @returns {Error} The created error.
|
|
958
|
+
*/
|
|
959
|
+
constructor(message, code, config, request, response) {
|
|
960
|
+
super(message);
|
|
961
|
+
|
|
962
|
+
// Make message enumerable to maintain backward compatibility
|
|
963
|
+
// The native Error constructor sets message as non-enumerable,
|
|
964
|
+
// but axios < v1.13.3 had it as enumerable
|
|
965
|
+
Object.defineProperty(this, 'message', {
|
|
966
|
+
value: message,
|
|
967
|
+
enumerable: true,
|
|
968
|
+
writable: true,
|
|
969
|
+
configurable: true
|
|
970
|
+
});
|
|
971
|
+
|
|
972
|
+
this.name = 'AxiosError';
|
|
973
|
+
this.isAxiosError = true;
|
|
974
|
+
code && (this.code = code);
|
|
975
|
+
config && (this.config = config);
|
|
976
|
+
request && (this.request = request);
|
|
977
|
+
if (response) {
|
|
978
|
+
this.response = response;
|
|
979
|
+
this.status = response.status;
|
|
980
|
+
}
|
|
981
|
+
}
|
|
982
|
+
|
|
983
|
+
toJSON() {
|
|
829
984
|
return {
|
|
830
985
|
// Standard
|
|
831
986
|
message: this.message,
|
|
@@ -841,62 +996,26 @@ utils$1.inherits(AxiosError, Error, {
|
|
|
841
996
|
// Axios
|
|
842
997
|
config: utils$1.toJSONObject(this.config),
|
|
843
998
|
code: this.code,
|
|
844
|
-
status: this.status
|
|
999
|
+
status: this.status,
|
|
845
1000
|
};
|
|
846
1001
|
}
|
|
847
|
-
}
|
|
848
|
-
|
|
849
|
-
const prototype$1 = AxiosError.prototype;
|
|
850
|
-
const descriptors = {};
|
|
851
|
-
|
|
852
|
-
[
|
|
853
|
-
'ERR_BAD_OPTION_VALUE',
|
|
854
|
-
'ERR_BAD_OPTION',
|
|
855
|
-
'ECONNABORTED',
|
|
856
|
-
'ETIMEDOUT',
|
|
857
|
-
'ERR_NETWORK',
|
|
858
|
-
'ERR_FR_TOO_MANY_REDIRECTS',
|
|
859
|
-
'ERR_DEPRECATED',
|
|
860
|
-
'ERR_BAD_RESPONSE',
|
|
861
|
-
'ERR_BAD_REQUEST',
|
|
862
|
-
'ERR_CANCELED',
|
|
863
|
-
'ERR_NOT_SUPPORT',
|
|
864
|
-
'ERR_INVALID_URL'
|
|
865
|
-
// eslint-disable-next-line func-names
|
|
866
|
-
].forEach(code => {
|
|
867
|
-
descriptors[code] = {value: code};
|
|
868
|
-
});
|
|
869
|
-
|
|
870
|
-
Object.defineProperties(AxiosError, descriptors);
|
|
871
|
-
Object.defineProperty(prototype$1, 'isAxiosError', {value: true});
|
|
872
|
-
|
|
873
|
-
// eslint-disable-next-line func-names
|
|
874
|
-
AxiosError.from = (error, code, config, request, response, customProps) => {
|
|
875
|
-
const axiosError = Object.create(prototype$1);
|
|
876
|
-
|
|
877
|
-
utils$1.toFlatObject(error, axiosError, function filter(obj) {
|
|
878
|
-
return obj !== Error.prototype;
|
|
879
|
-
}, prop => {
|
|
880
|
-
return prop !== 'isAxiosError';
|
|
881
|
-
});
|
|
882
|
-
|
|
883
|
-
const msg = error && error.message ? error.message : 'Error';
|
|
884
|
-
|
|
885
|
-
// Prefer explicit code; otherwise copy the low-level error's code (e.g. ECONNREFUSED)
|
|
886
|
-
const errCode = code == null && error ? error.code : code;
|
|
887
|
-
AxiosError.call(axiosError, msg, errCode, config, request, response);
|
|
888
|
-
|
|
889
|
-
// Chain the original error on the standard field; non-enumerable to avoid JSON noise
|
|
890
|
-
if (error && axiosError.cause == null) {
|
|
891
|
-
Object.defineProperty(axiosError, 'cause', { value: error, configurable: true });
|
|
892
|
-
}
|
|
893
|
-
|
|
894
|
-
axiosError.name = (error && error.name) || 'Error';
|
|
895
|
-
|
|
896
|
-
customProps && Object.assign(axiosError, customProps);
|
|
1002
|
+
}
|
|
897
1003
|
|
|
898
|
-
|
|
899
|
-
|
|
1004
|
+
// This can be changed to static properties as soon as the parser options in .eslint.cjs are updated.
|
|
1005
|
+
AxiosError.ERR_BAD_OPTION_VALUE = 'ERR_BAD_OPTION_VALUE';
|
|
1006
|
+
AxiosError.ERR_BAD_OPTION = 'ERR_BAD_OPTION';
|
|
1007
|
+
AxiosError.ECONNABORTED = 'ECONNABORTED';
|
|
1008
|
+
AxiosError.ETIMEDOUT = 'ETIMEDOUT';
|
|
1009
|
+
AxiosError.ERR_NETWORK = 'ERR_NETWORK';
|
|
1010
|
+
AxiosError.ERR_FR_TOO_MANY_REDIRECTS = 'ERR_FR_TOO_MANY_REDIRECTS';
|
|
1011
|
+
AxiosError.ERR_DEPRECATED = 'ERR_DEPRECATED';
|
|
1012
|
+
AxiosError.ERR_BAD_RESPONSE = 'ERR_BAD_RESPONSE';
|
|
1013
|
+
AxiosError.ERR_BAD_REQUEST = 'ERR_BAD_REQUEST';
|
|
1014
|
+
AxiosError.ERR_CANCELED = 'ERR_CANCELED';
|
|
1015
|
+
AxiosError.ERR_NOT_SUPPORT = 'ERR_NOT_SUPPORT';
|
|
1016
|
+
AxiosError.ERR_INVALID_URL = 'ERR_INVALID_URL';
|
|
1017
|
+
|
|
1018
|
+
var AxiosError$1 = AxiosError;
|
|
900
1019
|
|
|
901
1020
|
// eslint-disable-next-line strict
|
|
902
1021
|
var httpAdapter = null;
|
|
@@ -934,11 +1053,14 @@ function removeBrackets(key) {
|
|
|
934
1053
|
*/
|
|
935
1054
|
function renderKey(path, key, dots) {
|
|
936
1055
|
if (!path) return key;
|
|
937
|
-
return path
|
|
938
|
-
|
|
939
|
-
|
|
940
|
-
|
|
941
|
-
|
|
1056
|
+
return path
|
|
1057
|
+
.concat(key)
|
|
1058
|
+
.map(function each(token, i) {
|
|
1059
|
+
// eslint-disable-next-line no-param-reassign
|
|
1060
|
+
token = removeBrackets(token);
|
|
1061
|
+
return !dots && i ? '[' + token + ']' : token;
|
|
1062
|
+
})
|
|
1063
|
+
.join(dots ? '.' : '');
|
|
942
1064
|
}
|
|
943
1065
|
|
|
944
1066
|
/**
|
|
@@ -988,21 +1110,26 @@ function toFormData(obj, formData, options) {
|
|
|
988
1110
|
formData = formData || new (FormData)();
|
|
989
1111
|
|
|
990
1112
|
// eslint-disable-next-line no-param-reassign
|
|
991
|
-
options = utils$1.toFlatObject(
|
|
992
|
-
|
|
993
|
-
|
|
994
|
-
|
|
995
|
-
|
|
996
|
-
|
|
997
|
-
|
|
998
|
-
|
|
1113
|
+
options = utils$1.toFlatObject(
|
|
1114
|
+
options,
|
|
1115
|
+
{
|
|
1116
|
+
metaTokens: true,
|
|
1117
|
+
dots: false,
|
|
1118
|
+
indexes: false,
|
|
1119
|
+
},
|
|
1120
|
+
false,
|
|
1121
|
+
function defined(option, source) {
|
|
1122
|
+
// eslint-disable-next-line no-eq-null,eqeqeq
|
|
1123
|
+
return !utils$1.isUndefined(source[option]);
|
|
1124
|
+
}
|
|
1125
|
+
);
|
|
999
1126
|
|
|
1000
1127
|
const metaTokens = options.metaTokens;
|
|
1001
1128
|
// eslint-disable-next-line no-use-before-define
|
|
1002
1129
|
const visitor = options.visitor || defaultVisitor;
|
|
1003
1130
|
const dots = options.dots;
|
|
1004
1131
|
const indexes = options.indexes;
|
|
1005
|
-
const _Blob = options.Blob || typeof Blob !== 'undefined' && Blob;
|
|
1132
|
+
const _Blob = options.Blob || (typeof Blob !== 'undefined' && Blob);
|
|
1006
1133
|
const useBlob = _Blob && utils$1.isSpecCompliantForm(formData);
|
|
1007
1134
|
|
|
1008
1135
|
if (!utils$1.isFunction(visitor)) {
|
|
@@ -1021,7 +1148,7 @@ function toFormData(obj, formData, options) {
|
|
|
1021
1148
|
}
|
|
1022
1149
|
|
|
1023
1150
|
if (!useBlob && utils$1.isBlob(value)) {
|
|
1024
|
-
throw new AxiosError('Blob is not supported. Use a Buffer instead.');
|
|
1151
|
+
throw new AxiosError$1('Blob is not supported. Use a Buffer instead.');
|
|
1025
1152
|
}
|
|
1026
1153
|
|
|
1027
1154
|
if (utils$1.isArrayBuffer(value) || utils$1.isTypedArray(value)) {
|
|
@@ -1044,6 +1171,11 @@ function toFormData(obj, formData, options) {
|
|
|
1044
1171
|
function defaultVisitor(value, key, path) {
|
|
1045
1172
|
let arr = value;
|
|
1046
1173
|
|
|
1174
|
+
if (utils$1.isReactNative(formData) && utils$1.isReactNativeBlob(value)) {
|
|
1175
|
+
formData.append(renderKey(path, key, dots), convertValue(value));
|
|
1176
|
+
return false;
|
|
1177
|
+
}
|
|
1178
|
+
|
|
1047
1179
|
if (value && !path && typeof value === 'object') {
|
|
1048
1180
|
if (utils$1.endsWith(key, '{}')) {
|
|
1049
1181
|
// eslint-disable-next-line no-param-reassign
|
|
@@ -1052,17 +1184,22 @@ function toFormData(obj, formData, options) {
|
|
|
1052
1184
|
value = JSON.stringify(value);
|
|
1053
1185
|
} else if (
|
|
1054
1186
|
(utils$1.isArray(value) && isFlatArray(value)) ||
|
|
1055
|
-
((utils$1.isFileList(value) || utils$1.endsWith(key, '[]')) && (arr = utils$1.toArray(value))
|
|
1056
|
-
|
|
1187
|
+
((utils$1.isFileList(value) || utils$1.endsWith(key, '[]')) && (arr = utils$1.toArray(value)))
|
|
1188
|
+
) {
|
|
1057
1189
|
// eslint-disable-next-line no-param-reassign
|
|
1058
1190
|
key = removeBrackets(key);
|
|
1059
1191
|
|
|
1060
1192
|
arr.forEach(function each(el, index) {
|
|
1061
|
-
!(utils$1.isUndefined(el) || el === null) &&
|
|
1062
|
-
|
|
1063
|
-
|
|
1064
|
-
|
|
1065
|
-
|
|
1193
|
+
!(utils$1.isUndefined(el) || el === null) &&
|
|
1194
|
+
formData.append(
|
|
1195
|
+
// eslint-disable-next-line no-nested-ternary
|
|
1196
|
+
indexes === true
|
|
1197
|
+
? renderKey([key], index, dots)
|
|
1198
|
+
: indexes === null
|
|
1199
|
+
? key
|
|
1200
|
+
: key + '[]',
|
|
1201
|
+
convertValue(el)
|
|
1202
|
+
);
|
|
1066
1203
|
});
|
|
1067
1204
|
return false;
|
|
1068
1205
|
}
|
|
@@ -1082,7 +1219,7 @@ function toFormData(obj, formData, options) {
|
|
|
1082
1219
|
const exposedHelpers = Object.assign(predicates, {
|
|
1083
1220
|
defaultVisitor,
|
|
1084
1221
|
convertValue,
|
|
1085
|
-
isVisitable
|
|
1222
|
+
isVisitable,
|
|
1086
1223
|
});
|
|
1087
1224
|
|
|
1088
1225
|
function build(value, path) {
|
|
@@ -1095,9 +1232,9 @@ function toFormData(obj, formData, options) {
|
|
|
1095
1232
|
stack.push(value);
|
|
1096
1233
|
|
|
1097
1234
|
utils$1.forEach(value, function each(el, key) {
|
|
1098
|
-
const result =
|
|
1099
|
-
|
|
1100
|
-
|
|
1235
|
+
const result =
|
|
1236
|
+
!(utils$1.isUndefined(el) || el === null) &&
|
|
1237
|
+
visitor.call(formData, el, utils$1.isString(key) ? key.trim() : key, path, exposedHelpers);
|
|
1101
1238
|
|
|
1102
1239
|
if (result === true) {
|
|
1103
1240
|
build(el, path ? path.concat(key) : [key]);
|
|
@@ -1132,7 +1269,7 @@ function encode$1(str) {
|
|
|
1132
1269
|
')': '%29',
|
|
1133
1270
|
'~': '%7E',
|
|
1134
1271
|
'%20': '+',
|
|
1135
|
-
'%00': '\x00'
|
|
1272
|
+
'%00': '\x00',
|
|
1136
1273
|
};
|
|
1137
1274
|
return encodeURIComponent(str).replace(/[!'()~]|%20|%00/g, function replacer(match) {
|
|
1138
1275
|
return charMap[match];
|
|
@@ -1160,13 +1297,17 @@ prototype.append = function append(name, value) {
|
|
|
1160
1297
|
};
|
|
1161
1298
|
|
|
1162
1299
|
prototype.toString = function toString(encoder) {
|
|
1163
|
-
const _encode = encoder
|
|
1164
|
-
|
|
1165
|
-
|
|
1300
|
+
const _encode = encoder
|
|
1301
|
+
? function (value) {
|
|
1302
|
+
return encoder.call(this, value, encode$1);
|
|
1303
|
+
}
|
|
1304
|
+
: encode$1;
|
|
1166
1305
|
|
|
1167
|
-
return this._pairs
|
|
1168
|
-
|
|
1169
|
-
|
|
1306
|
+
return this._pairs
|
|
1307
|
+
.map(function each(pair) {
|
|
1308
|
+
return _encode(pair[0]) + '=' + _encode(pair[1]);
|
|
1309
|
+
}, '')
|
|
1310
|
+
.join('&');
|
|
1170
1311
|
};
|
|
1171
1312
|
|
|
1172
1313
|
/**
|
|
@@ -1178,11 +1319,11 @@ prototype.toString = function toString(encoder) {
|
|
|
1178
1319
|
* @returns {string} The encoded value.
|
|
1179
1320
|
*/
|
|
1180
1321
|
function encode(val) {
|
|
1181
|
-
return encodeURIComponent(val)
|
|
1182
|
-
replace(/%3A/gi, ':')
|
|
1183
|
-
replace(/%24/g, '$')
|
|
1184
|
-
replace(/%2C/gi, ',')
|
|
1185
|
-
replace(/%20/g, '+');
|
|
1322
|
+
return encodeURIComponent(val)
|
|
1323
|
+
.replace(/%3A/gi, ':')
|
|
1324
|
+
.replace(/%24/g, '$')
|
|
1325
|
+
.replace(/%2C/gi, ',')
|
|
1326
|
+
.replace(/%20/g, '+');
|
|
1186
1327
|
}
|
|
1187
1328
|
|
|
1188
1329
|
/**
|
|
@@ -1195,33 +1336,32 @@ function encode(val) {
|
|
|
1195
1336
|
* @returns {string} The formatted url
|
|
1196
1337
|
*/
|
|
1197
1338
|
function buildURL(url, params, options) {
|
|
1198
|
-
/*eslint no-param-reassign:0*/
|
|
1199
1339
|
if (!params) {
|
|
1200
1340
|
return url;
|
|
1201
1341
|
}
|
|
1202
|
-
|
|
1203
|
-
const _encode = options && options.encode || encode;
|
|
1204
1342
|
|
|
1205
|
-
|
|
1206
|
-
|
|
1207
|
-
|
|
1208
|
-
|
|
1209
|
-
|
|
1343
|
+
const _encode = (options && options.encode) || encode;
|
|
1344
|
+
|
|
1345
|
+
const _options = utils$1.isFunction(options)
|
|
1346
|
+
? {
|
|
1347
|
+
serialize: options,
|
|
1348
|
+
}
|
|
1349
|
+
: options;
|
|
1210
1350
|
|
|
1211
|
-
const serializeFn =
|
|
1351
|
+
const serializeFn = _options && _options.serialize;
|
|
1212
1352
|
|
|
1213
1353
|
let serializedParams;
|
|
1214
1354
|
|
|
1215
1355
|
if (serializeFn) {
|
|
1216
|
-
serializedParams = serializeFn(params,
|
|
1356
|
+
serializedParams = serializeFn(params, _options);
|
|
1217
1357
|
} else {
|
|
1218
|
-
serializedParams = utils$1.isURLSearchParams(params)
|
|
1219
|
-
params.toString()
|
|
1220
|
-
new AxiosURLSearchParams(params,
|
|
1358
|
+
serializedParams = utils$1.isURLSearchParams(params)
|
|
1359
|
+
? params.toString()
|
|
1360
|
+
: new AxiosURLSearchParams(params, _options).toString(_encode);
|
|
1221
1361
|
}
|
|
1222
1362
|
|
|
1223
1363
|
if (serializedParams) {
|
|
1224
|
-
const hashmarkIndex = url.indexOf(
|
|
1364
|
+
const hashmarkIndex = url.indexOf('#');
|
|
1225
1365
|
|
|
1226
1366
|
if (hashmarkIndex !== -1) {
|
|
1227
1367
|
url = url.slice(0, hashmarkIndex);
|
|
@@ -1242,6 +1382,7 @@ class InterceptorManager {
|
|
|
1242
1382
|
*
|
|
1243
1383
|
* @param {Function} fulfilled The function to handle `then` for a `Promise`
|
|
1244
1384
|
* @param {Function} rejected The function to handle `reject` for a `Promise`
|
|
1385
|
+
* @param {Object} options The options for the interceptor, synchronous and runWhen
|
|
1245
1386
|
*
|
|
1246
1387
|
* @return {Number} An ID used to remove interceptor later
|
|
1247
1388
|
*/
|
|
@@ -1250,7 +1391,7 @@ class InterceptorManager {
|
|
|
1250
1391
|
fulfilled,
|
|
1251
1392
|
rejected,
|
|
1252
1393
|
synchronous: options ? options.synchronous : false,
|
|
1253
|
-
runWhen: options ? options.runWhen : null
|
|
1394
|
+
runWhen: options ? options.runWhen : null,
|
|
1254
1395
|
});
|
|
1255
1396
|
return this.handlers.length - 1;
|
|
1256
1397
|
}
|
|
@@ -1303,7 +1444,8 @@ var InterceptorManager$1 = InterceptorManager;
|
|
|
1303
1444
|
var transitionalDefaults = {
|
|
1304
1445
|
silentJSONParsing: true,
|
|
1305
1446
|
forcedJSONParsing: true,
|
|
1306
|
-
clarifyTimeoutError: false
|
|
1447
|
+
clarifyTimeoutError: false,
|
|
1448
|
+
legacyInterceptorReqResOrdering: true,
|
|
1307
1449
|
};
|
|
1308
1450
|
|
|
1309
1451
|
var URLSearchParams$1 = typeof URLSearchParams !== 'undefined' ? URLSearchParams : AxiosURLSearchParams;
|
|
@@ -1317,14 +1459,14 @@ var platform$1 = {
|
|
|
1317
1459
|
classes: {
|
|
1318
1460
|
URLSearchParams: URLSearchParams$1,
|
|
1319
1461
|
FormData: FormData$1,
|
|
1320
|
-
Blob: Blob$1
|
|
1462
|
+
Blob: Blob$1,
|
|
1321
1463
|
},
|
|
1322
|
-
protocols: ['http', 'https', 'file', 'blob', 'url', 'data']
|
|
1464
|
+
protocols: ['http', 'https', 'file', 'blob', 'url', 'data'],
|
|
1323
1465
|
};
|
|
1324
1466
|
|
|
1325
1467
|
const hasBrowserEnv = typeof window !== 'undefined' && typeof document !== 'undefined';
|
|
1326
1468
|
|
|
1327
|
-
const _navigator = typeof navigator === 'object' && navigator || undefined;
|
|
1469
|
+
const _navigator = (typeof navigator === 'object' && navigator) || undefined;
|
|
1328
1470
|
|
|
1329
1471
|
/**
|
|
1330
1472
|
* Determine if we're running in a standard browser environment
|
|
@@ -1343,7 +1485,8 @@ const _navigator = typeof navigator === 'object' && navigator || undefined;
|
|
|
1343
1485
|
*
|
|
1344
1486
|
* @returns {boolean}
|
|
1345
1487
|
*/
|
|
1346
|
-
const hasStandardBrowserEnv =
|
|
1488
|
+
const hasStandardBrowserEnv =
|
|
1489
|
+
hasBrowserEnv &&
|
|
1347
1490
|
(!_navigator || ['ReactNative', 'NativeScript', 'NS'].indexOf(_navigator.product) < 0);
|
|
1348
1491
|
|
|
1349
1492
|
/**
|
|
@@ -1364,7 +1507,7 @@ const hasStandardBrowserWebWorkerEnv = (() => {
|
|
|
1364
1507
|
);
|
|
1365
1508
|
})();
|
|
1366
1509
|
|
|
1367
|
-
const origin = hasBrowserEnv && window.location.href || 'http://localhost';
|
|
1510
|
+
const origin = (hasBrowserEnv && window.location.href) || 'http://localhost';
|
|
1368
1511
|
|
|
1369
1512
|
var utils = /*#__PURE__*/Object.freeze({
|
|
1370
1513
|
__proto__: null,
|
|
@@ -1377,12 +1520,12 @@ var utils = /*#__PURE__*/Object.freeze({
|
|
|
1377
1520
|
|
|
1378
1521
|
var platform = {
|
|
1379
1522
|
...utils,
|
|
1380
|
-
...platform$1
|
|
1523
|
+
...platform$1,
|
|
1381
1524
|
};
|
|
1382
1525
|
|
|
1383
1526
|
function toURLEncodedForm(data, options) {
|
|
1384
1527
|
return toFormData(data, new platform.classes.URLSearchParams(), {
|
|
1385
|
-
visitor: function(value, key, path, helpers) {
|
|
1528
|
+
visitor: function (value, key, path, helpers) {
|
|
1386
1529
|
if (platform.isNode && utils$1.isBuffer(value)) {
|
|
1387
1530
|
this.append(key, value.toString('base64'));
|
|
1388
1531
|
return false;
|
|
@@ -1390,7 +1533,7 @@ function toURLEncodedForm(data, options) {
|
|
|
1390
1533
|
|
|
1391
1534
|
return helpers.defaultVisitor.apply(this, arguments);
|
|
1392
1535
|
},
|
|
1393
|
-
...options
|
|
1536
|
+
...options,
|
|
1394
1537
|
});
|
|
1395
1538
|
}
|
|
1396
1539
|
|
|
@@ -1406,7 +1549,7 @@ function parsePropPath(name) {
|
|
|
1406
1549
|
// foo.x.y.z
|
|
1407
1550
|
// foo-x-y-z
|
|
1408
1551
|
// foo x y z
|
|
1409
|
-
return utils$1.matchAll(/\w+|\[(\w*)]/g, name).map(match => {
|
|
1552
|
+
return utils$1.matchAll(/\w+|\[(\w*)]/g, name).map((match) => {
|
|
1410
1553
|
return match[0] === '[]' ? '' : match[1] || match[0];
|
|
1411
1554
|
});
|
|
1412
1555
|
}
|
|
@@ -1510,96 +1653,107 @@ function stringifySafely(rawValue, parser, encoder) {
|
|
|
1510
1653
|
}
|
|
1511
1654
|
|
|
1512
1655
|
const defaults = {
|
|
1513
|
-
|
|
1514
1656
|
transitional: transitionalDefaults,
|
|
1515
1657
|
|
|
1516
1658
|
adapter: ['xhr', 'http', 'fetch'],
|
|
1517
1659
|
|
|
1518
|
-
transformRequest: [
|
|
1519
|
-
|
|
1520
|
-
|
|
1521
|
-
|
|
1660
|
+
transformRequest: [
|
|
1661
|
+
function transformRequest(data, headers) {
|
|
1662
|
+
const contentType = headers.getContentType() || '';
|
|
1663
|
+
const hasJSONContentType = contentType.indexOf('application/json') > -1;
|
|
1664
|
+
const isObjectPayload = utils$1.isObject(data);
|
|
1522
1665
|
|
|
1523
|
-
|
|
1524
|
-
|
|
1525
|
-
|
|
1666
|
+
if (isObjectPayload && utils$1.isHTMLForm(data)) {
|
|
1667
|
+
data = new FormData(data);
|
|
1668
|
+
}
|
|
1526
1669
|
|
|
1527
|
-
|
|
1670
|
+
const isFormData = utils$1.isFormData(data);
|
|
1528
1671
|
|
|
1529
|
-
|
|
1530
|
-
|
|
1531
|
-
|
|
1672
|
+
if (isFormData) {
|
|
1673
|
+
return hasJSONContentType ? JSON.stringify(formDataToJSON(data)) : data;
|
|
1674
|
+
}
|
|
1532
1675
|
|
|
1533
|
-
|
|
1534
|
-
|
|
1535
|
-
|
|
1536
|
-
|
|
1537
|
-
|
|
1538
|
-
|
|
1539
|
-
|
|
1540
|
-
|
|
1541
|
-
|
|
1542
|
-
|
|
1543
|
-
|
|
1544
|
-
|
|
1545
|
-
|
|
1546
|
-
|
|
1547
|
-
|
|
1548
|
-
|
|
1676
|
+
if (
|
|
1677
|
+
utils$1.isArrayBuffer(data) ||
|
|
1678
|
+
utils$1.isBuffer(data) ||
|
|
1679
|
+
utils$1.isStream(data) ||
|
|
1680
|
+
utils$1.isFile(data) ||
|
|
1681
|
+
utils$1.isBlob(data) ||
|
|
1682
|
+
utils$1.isReadableStream(data)
|
|
1683
|
+
) {
|
|
1684
|
+
return data;
|
|
1685
|
+
}
|
|
1686
|
+
if (utils$1.isArrayBufferView(data)) {
|
|
1687
|
+
return data.buffer;
|
|
1688
|
+
}
|
|
1689
|
+
if (utils$1.isURLSearchParams(data)) {
|
|
1690
|
+
headers.setContentType('application/x-www-form-urlencoded;charset=utf-8', false);
|
|
1691
|
+
return data.toString();
|
|
1692
|
+
}
|
|
1549
1693
|
|
|
1550
|
-
|
|
1694
|
+
let isFileList;
|
|
1551
1695
|
|
|
1552
|
-
|
|
1553
|
-
|
|
1554
|
-
|
|
1555
|
-
|
|
1696
|
+
if (isObjectPayload) {
|
|
1697
|
+
if (contentType.indexOf('application/x-www-form-urlencoded') > -1) {
|
|
1698
|
+
return toURLEncodedForm(data, this.formSerializer).toString();
|
|
1699
|
+
}
|
|
1556
1700
|
|
|
1557
|
-
|
|
1558
|
-
|
|
1701
|
+
if (
|
|
1702
|
+
(isFileList = utils$1.isFileList(data)) ||
|
|
1703
|
+
contentType.indexOf('multipart/form-data') > -1
|
|
1704
|
+
) {
|
|
1705
|
+
const _FormData = this.env && this.env.FormData;
|
|
1559
1706
|
|
|
1560
|
-
|
|
1561
|
-
|
|
1562
|
-
|
|
1563
|
-
|
|
1564
|
-
|
|
1707
|
+
return toFormData(
|
|
1708
|
+
isFileList ? { 'files[]': data } : data,
|
|
1709
|
+
_FormData && new _FormData(),
|
|
1710
|
+
this.formSerializer
|
|
1711
|
+
);
|
|
1712
|
+
}
|
|
1565
1713
|
}
|
|
1566
|
-
}
|
|
1567
1714
|
|
|
1568
|
-
|
|
1569
|
-
|
|
1570
|
-
|
|
1571
|
-
|
|
1715
|
+
if (isObjectPayload || hasJSONContentType) {
|
|
1716
|
+
headers.setContentType('application/json', false);
|
|
1717
|
+
return stringifySafely(data);
|
|
1718
|
+
}
|
|
1572
1719
|
|
|
1573
|
-
|
|
1574
|
-
|
|
1720
|
+
return data;
|
|
1721
|
+
},
|
|
1722
|
+
],
|
|
1575
1723
|
|
|
1576
|
-
transformResponse: [
|
|
1577
|
-
|
|
1578
|
-
|
|
1579
|
-
|
|
1724
|
+
transformResponse: [
|
|
1725
|
+
function transformResponse(data) {
|
|
1726
|
+
const transitional = this.transitional || defaults.transitional;
|
|
1727
|
+
const forcedJSONParsing = transitional && transitional.forcedJSONParsing;
|
|
1728
|
+
const JSONRequested = this.responseType === 'json';
|
|
1580
1729
|
|
|
1581
|
-
|
|
1582
|
-
|
|
1583
|
-
|
|
1730
|
+
if (utils$1.isResponse(data) || utils$1.isReadableStream(data)) {
|
|
1731
|
+
return data;
|
|
1732
|
+
}
|
|
1584
1733
|
|
|
1585
|
-
|
|
1586
|
-
|
|
1587
|
-
|
|
1734
|
+
if (
|
|
1735
|
+
data &&
|
|
1736
|
+
utils$1.isString(data) &&
|
|
1737
|
+
((forcedJSONParsing && !this.responseType) || JSONRequested)
|
|
1738
|
+
) {
|
|
1739
|
+
const silentJSONParsing = transitional && transitional.silentJSONParsing;
|
|
1740
|
+
const strictJSONParsing = !silentJSONParsing && JSONRequested;
|
|
1588
1741
|
|
|
1589
|
-
|
|
1590
|
-
|
|
1591
|
-
|
|
1592
|
-
|
|
1593
|
-
|
|
1594
|
-
|
|
1742
|
+
try {
|
|
1743
|
+
return JSON.parse(data, this.parseReviver);
|
|
1744
|
+
} catch (e) {
|
|
1745
|
+
if (strictJSONParsing) {
|
|
1746
|
+
if (e.name === 'SyntaxError') {
|
|
1747
|
+
throw AxiosError$1.from(e, AxiosError$1.ERR_BAD_RESPONSE, this, null, this.response);
|
|
1748
|
+
}
|
|
1749
|
+
throw e;
|
|
1595
1750
|
}
|
|
1596
|
-
throw e;
|
|
1597
1751
|
}
|
|
1598
1752
|
}
|
|
1599
|
-
}
|
|
1600
1753
|
|
|
1601
|
-
|
|
1602
|
-
|
|
1754
|
+
return data;
|
|
1755
|
+
},
|
|
1756
|
+
],
|
|
1603
1757
|
|
|
1604
1758
|
/**
|
|
1605
1759
|
* A timeout in milliseconds to abort a request. If set to 0 (default) a
|
|
@@ -1615,7 +1769,7 @@ const defaults = {
|
|
|
1615
1769
|
|
|
1616
1770
|
env: {
|
|
1617
1771
|
FormData: platform.classes.FormData,
|
|
1618
|
-
Blob: platform.classes.Blob
|
|
1772
|
+
Blob: platform.classes.Blob,
|
|
1619
1773
|
},
|
|
1620
1774
|
|
|
1621
1775
|
validateStatus: function validateStatus(status) {
|
|
@@ -1624,10 +1778,10 @@ const defaults = {
|
|
|
1624
1778
|
|
|
1625
1779
|
headers: {
|
|
1626
1780
|
common: {
|
|
1627
|
-
|
|
1628
|
-
'Content-Type': undefined
|
|
1629
|
-
}
|
|
1630
|
-
}
|
|
1781
|
+
Accept: 'application/json, text/plain, */*',
|
|
1782
|
+
'Content-Type': undefined,
|
|
1783
|
+
},
|
|
1784
|
+
},
|
|
1631
1785
|
};
|
|
1632
1786
|
|
|
1633
1787
|
utils$1.forEach(['delete', 'get', 'head', 'post', 'put', 'patch'], (method) => {
|
|
@@ -1639,10 +1793,23 @@ var defaults$1 = defaults;
|
|
|
1639
1793
|
// RawAxiosHeaders whose duplicates are ignored by node
|
|
1640
1794
|
// c.f. https://nodejs.org/api/http.html#http_message_headers
|
|
1641
1795
|
const ignoreDuplicateOf = utils$1.toObjectSet([
|
|
1642
|
-
'age',
|
|
1643
|
-
'
|
|
1644
|
-
'
|
|
1645
|
-
'
|
|
1796
|
+
'age',
|
|
1797
|
+
'authorization',
|
|
1798
|
+
'content-length',
|
|
1799
|
+
'content-type',
|
|
1800
|
+
'etag',
|
|
1801
|
+
'expires',
|
|
1802
|
+
'from',
|
|
1803
|
+
'host',
|
|
1804
|
+
'if-modified-since',
|
|
1805
|
+
'if-unmodified-since',
|
|
1806
|
+
'last-modified',
|
|
1807
|
+
'location',
|
|
1808
|
+
'max-forwards',
|
|
1809
|
+
'proxy-authorization',
|
|
1810
|
+
'referer',
|
|
1811
|
+
'retry-after',
|
|
1812
|
+
'user-agent',
|
|
1646
1813
|
]);
|
|
1647
1814
|
|
|
1648
1815
|
/**
|
|
@@ -1659,31 +1826,32 @@ const ignoreDuplicateOf = utils$1.toObjectSet([
|
|
|
1659
1826
|
*
|
|
1660
1827
|
* @returns {Object} Headers parsed into an object
|
|
1661
1828
|
*/
|
|
1662
|
-
var parseHeaders = rawHeaders => {
|
|
1829
|
+
var parseHeaders = (rawHeaders) => {
|
|
1663
1830
|
const parsed = {};
|
|
1664
1831
|
let key;
|
|
1665
1832
|
let val;
|
|
1666
1833
|
let i;
|
|
1667
1834
|
|
|
1668
|
-
rawHeaders &&
|
|
1669
|
-
|
|
1670
|
-
|
|
1671
|
-
|
|
1835
|
+
rawHeaders &&
|
|
1836
|
+
rawHeaders.split('\n').forEach(function parser(line) {
|
|
1837
|
+
i = line.indexOf(':');
|
|
1838
|
+
key = line.substring(0, i).trim().toLowerCase();
|
|
1839
|
+
val = line.substring(i + 1).trim();
|
|
1672
1840
|
|
|
1673
|
-
|
|
1674
|
-
|
|
1675
|
-
|
|
1841
|
+
if (!key || (parsed[key] && ignoreDuplicateOf[key])) {
|
|
1842
|
+
return;
|
|
1843
|
+
}
|
|
1676
1844
|
|
|
1677
|
-
|
|
1678
|
-
|
|
1679
|
-
|
|
1845
|
+
if (key === 'set-cookie') {
|
|
1846
|
+
if (parsed[key]) {
|
|
1847
|
+
parsed[key].push(val);
|
|
1848
|
+
} else {
|
|
1849
|
+
parsed[key] = [val];
|
|
1850
|
+
}
|
|
1680
1851
|
} else {
|
|
1681
|
-
parsed[key] = [val
|
|
1852
|
+
parsed[key] = parsed[key] ? parsed[key] + ', ' + val : val;
|
|
1682
1853
|
}
|
|
1683
|
-
}
|
|
1684
|
-
parsed[key] = parsed[key] ? parsed[key] + ', ' + val : val;
|
|
1685
|
-
}
|
|
1686
|
-
});
|
|
1854
|
+
});
|
|
1687
1855
|
|
|
1688
1856
|
return parsed;
|
|
1689
1857
|
};
|
|
@@ -1737,8 +1905,10 @@ function matchHeaderValue(context, value, header, filter, isHeaderNameFilter) {
|
|
|
1737
1905
|
}
|
|
1738
1906
|
|
|
1739
1907
|
function formatHeader(header) {
|
|
1740
|
-
return header
|
|
1741
|
-
.
|
|
1908
|
+
return header
|
|
1909
|
+
.trim()
|
|
1910
|
+
.toLowerCase()
|
|
1911
|
+
.replace(/([a-z\d])(\w*)/g, (w, char, str) => {
|
|
1742
1912
|
return char.toUpperCase() + str;
|
|
1743
1913
|
});
|
|
1744
1914
|
}
|
|
@@ -1746,12 +1916,12 @@ function formatHeader(header) {
|
|
|
1746
1916
|
function buildAccessors(obj, header) {
|
|
1747
1917
|
const accessorName = utils$1.toCamelCase(' ' + header);
|
|
1748
1918
|
|
|
1749
|
-
['get', 'set', 'has'].forEach(methodName => {
|
|
1919
|
+
['get', 'set', 'has'].forEach((methodName) => {
|
|
1750
1920
|
Object.defineProperty(obj, methodName + accessorName, {
|
|
1751
|
-
value: function(arg1, arg2, arg3) {
|
|
1921
|
+
value: function (arg1, arg2, arg3) {
|
|
1752
1922
|
return this[methodName].call(this, header, arg1, arg2, arg3);
|
|
1753
1923
|
},
|
|
1754
|
-
configurable: true
|
|
1924
|
+
configurable: true,
|
|
1755
1925
|
});
|
|
1756
1926
|
});
|
|
1757
1927
|
}
|
|
@@ -1773,7 +1943,12 @@ class AxiosHeaders {
|
|
|
1773
1943
|
|
|
1774
1944
|
const key = utils$1.findKey(self, lHeader);
|
|
1775
1945
|
|
|
1776
|
-
if
|
|
1946
|
+
if (
|
|
1947
|
+
!key ||
|
|
1948
|
+
self[key] === undefined ||
|
|
1949
|
+
_rewrite === true ||
|
|
1950
|
+
(_rewrite === undefined && self[key] !== false)
|
|
1951
|
+
) {
|
|
1777
1952
|
self[key || _header] = normalizeValue(_value);
|
|
1778
1953
|
}
|
|
1779
1954
|
}
|
|
@@ -1783,17 +1958,22 @@ class AxiosHeaders {
|
|
|
1783
1958
|
|
|
1784
1959
|
if (utils$1.isPlainObject(header) || header instanceof this.constructor) {
|
|
1785
1960
|
setHeaders(header, valueOrRewrite);
|
|
1786
|
-
} else if(utils$1.isString(header) && (header = header.trim()) && !isValidHeaderName(header)) {
|
|
1961
|
+
} else if (utils$1.isString(header) && (header = header.trim()) && !isValidHeaderName(header)) {
|
|
1787
1962
|
setHeaders(parseHeaders(header), valueOrRewrite);
|
|
1788
1963
|
} else if (utils$1.isObject(header) && utils$1.isIterable(header)) {
|
|
1789
|
-
let obj = {},
|
|
1964
|
+
let obj = {},
|
|
1965
|
+
dest,
|
|
1966
|
+
key;
|
|
1790
1967
|
for (const entry of header) {
|
|
1791
1968
|
if (!utils$1.isArray(entry)) {
|
|
1792
1969
|
throw TypeError('Object iterator must return a key-value pair');
|
|
1793
1970
|
}
|
|
1794
1971
|
|
|
1795
|
-
obj[key = entry[0]] = (dest = obj[key])
|
|
1796
|
-
|
|
1972
|
+
obj[(key = entry[0])] = (dest = obj[key])
|
|
1973
|
+
? utils$1.isArray(dest)
|
|
1974
|
+
? [...dest, entry[1]]
|
|
1975
|
+
: [dest, entry[1]]
|
|
1976
|
+
: entry[1];
|
|
1797
1977
|
}
|
|
1798
1978
|
|
|
1799
1979
|
setHeaders(obj, valueOrRewrite);
|
|
@@ -1840,7 +2020,11 @@ class AxiosHeaders {
|
|
|
1840
2020
|
if (header) {
|
|
1841
2021
|
const key = utils$1.findKey(this, header);
|
|
1842
2022
|
|
|
1843
|
-
return !!(
|
|
2023
|
+
return !!(
|
|
2024
|
+
key &&
|
|
2025
|
+
this[key] !== undefined &&
|
|
2026
|
+
(!matcher || matchHeaderValue(this, this[key], key, matcher))
|
|
2027
|
+
);
|
|
1844
2028
|
}
|
|
1845
2029
|
|
|
1846
2030
|
return false;
|
|
@@ -1880,7 +2064,7 @@ class AxiosHeaders {
|
|
|
1880
2064
|
|
|
1881
2065
|
while (i--) {
|
|
1882
2066
|
const key = keys[i];
|
|
1883
|
-
if(!matcher || matchHeaderValue(this, this[key], key, matcher, true)) {
|
|
2067
|
+
if (!matcher || matchHeaderValue(this, this[key], key, matcher, true)) {
|
|
1884
2068
|
delete this[key];
|
|
1885
2069
|
deleted = true;
|
|
1886
2070
|
}
|
|
@@ -1924,7 +2108,9 @@ class AxiosHeaders {
|
|
|
1924
2108
|
const obj = Object.create(null);
|
|
1925
2109
|
|
|
1926
2110
|
utils$1.forEach(this, (value, header) => {
|
|
1927
|
-
value != null &&
|
|
2111
|
+
value != null &&
|
|
2112
|
+
value !== false &&
|
|
2113
|
+
(obj[header] = asStrings && utils$1.isArray(value) ? value.join(', ') : value);
|
|
1928
2114
|
});
|
|
1929
2115
|
|
|
1930
2116
|
return obj;
|
|
@@ -1935,11 +2121,13 @@ class AxiosHeaders {
|
|
|
1935
2121
|
}
|
|
1936
2122
|
|
|
1937
2123
|
toString() {
|
|
1938
|
-
return Object.entries(this.toJSON())
|
|
2124
|
+
return Object.entries(this.toJSON())
|
|
2125
|
+
.map(([header, value]) => header + ': ' + value)
|
|
2126
|
+
.join('\n');
|
|
1939
2127
|
}
|
|
1940
2128
|
|
|
1941
2129
|
getSetCookie() {
|
|
1942
|
-
return this.get(
|
|
2130
|
+
return this.get('set-cookie') || [];
|
|
1943
2131
|
}
|
|
1944
2132
|
|
|
1945
2133
|
get [Symbol.toStringTag]() {
|
|
@@ -1959,9 +2147,12 @@ class AxiosHeaders {
|
|
|
1959
2147
|
}
|
|
1960
2148
|
|
|
1961
2149
|
static accessor(header) {
|
|
1962
|
-
const internals =
|
|
1963
|
-
|
|
1964
|
-
|
|
2150
|
+
const internals =
|
|
2151
|
+
(this[$internals] =
|
|
2152
|
+
this[$internals] =
|
|
2153
|
+
{
|
|
2154
|
+
accessors: {},
|
|
2155
|
+
});
|
|
1965
2156
|
|
|
1966
2157
|
const accessors = internals.accessors;
|
|
1967
2158
|
const prototype = this.prototype;
|
|
@@ -1981,17 +2172,24 @@ class AxiosHeaders {
|
|
|
1981
2172
|
}
|
|
1982
2173
|
}
|
|
1983
2174
|
|
|
1984
|
-
AxiosHeaders.accessor([
|
|
2175
|
+
AxiosHeaders.accessor([
|
|
2176
|
+
'Content-Type',
|
|
2177
|
+
'Content-Length',
|
|
2178
|
+
'Accept',
|
|
2179
|
+
'Accept-Encoding',
|
|
2180
|
+
'User-Agent',
|
|
2181
|
+
'Authorization',
|
|
2182
|
+
]);
|
|
1985
2183
|
|
|
1986
2184
|
// reserved names hotfix
|
|
1987
|
-
utils$1.reduceDescriptors(AxiosHeaders.prototype, ({value}, key) => {
|
|
2185
|
+
utils$1.reduceDescriptors(AxiosHeaders.prototype, ({ value }, key) => {
|
|
1988
2186
|
let mapped = key[0].toUpperCase() + key.slice(1); // map `set` => `Set`
|
|
1989
2187
|
return {
|
|
1990
2188
|
get: () => value,
|
|
1991
2189
|
set(headerValue) {
|
|
1992
2190
|
this[mapped] = headerValue;
|
|
1993
|
-
}
|
|
1994
|
-
}
|
|
2191
|
+
},
|
|
2192
|
+
};
|
|
1995
2193
|
});
|
|
1996
2194
|
|
|
1997
2195
|
utils$1.freezeMethods(AxiosHeaders);
|
|
@@ -2025,24 +2223,24 @@ function isCancel(value) {
|
|
|
2025
2223
|
return !!(value && value.__CANCEL__);
|
|
2026
2224
|
}
|
|
2027
2225
|
|
|
2028
|
-
|
|
2029
|
-
|
|
2030
|
-
|
|
2031
|
-
|
|
2032
|
-
|
|
2033
|
-
|
|
2034
|
-
|
|
2035
|
-
|
|
2036
|
-
|
|
2037
|
-
|
|
2038
|
-
|
|
2039
|
-
|
|
2040
|
-
|
|
2226
|
+
class CanceledError extends AxiosError$1 {
|
|
2227
|
+
/**
|
|
2228
|
+
* A `CanceledError` is an object that is thrown when an operation is canceled.
|
|
2229
|
+
*
|
|
2230
|
+
* @param {string=} message The message.
|
|
2231
|
+
* @param {Object=} config The config.
|
|
2232
|
+
* @param {Object=} request The request.
|
|
2233
|
+
*
|
|
2234
|
+
* @returns {CanceledError} The created error.
|
|
2235
|
+
*/
|
|
2236
|
+
constructor(message, config, request) {
|
|
2237
|
+
super(message == null ? 'canceled' : message, AxiosError$1.ERR_CANCELED, config, request);
|
|
2238
|
+
this.name = 'CanceledError';
|
|
2239
|
+
this.__CANCEL__ = true;
|
|
2240
|
+
}
|
|
2041
2241
|
}
|
|
2042
2242
|
|
|
2043
|
-
|
|
2044
|
-
__CANCEL__: true
|
|
2045
|
-
});
|
|
2243
|
+
var CanceledError$1 = CanceledError;
|
|
2046
2244
|
|
|
2047
2245
|
/**
|
|
2048
2246
|
* Resolve or reject a Promise based on response status.
|
|
@@ -2058,19 +2256,23 @@ function settle(resolve, reject, response) {
|
|
|
2058
2256
|
if (!response.status || !validateStatus || validateStatus(response.status)) {
|
|
2059
2257
|
resolve(response);
|
|
2060
2258
|
} else {
|
|
2061
|
-
reject(
|
|
2062
|
-
|
|
2063
|
-
|
|
2064
|
-
|
|
2065
|
-
|
|
2066
|
-
|
|
2067
|
-
|
|
2259
|
+
reject(
|
|
2260
|
+
new AxiosError$1(
|
|
2261
|
+
'Request failed with status code ' + response.status,
|
|
2262
|
+
[AxiosError$1.ERR_BAD_REQUEST, AxiosError$1.ERR_BAD_RESPONSE][
|
|
2263
|
+
Math.floor(response.status / 100) - 4
|
|
2264
|
+
],
|
|
2265
|
+
response.config,
|
|
2266
|
+
response.request,
|
|
2267
|
+
response
|
|
2268
|
+
)
|
|
2269
|
+
);
|
|
2068
2270
|
}
|
|
2069
2271
|
}
|
|
2070
2272
|
|
|
2071
2273
|
function parseProtocol(url) {
|
|
2072
2274
|
const match = /^([-+\w]{1,25})(:?\/\/|:)/.exec(url);
|
|
2073
|
-
return match && match[1] || '';
|
|
2275
|
+
return (match && match[1]) || '';
|
|
2074
2276
|
}
|
|
2075
2277
|
|
|
2076
2278
|
/**
|
|
@@ -2121,7 +2323,7 @@ function speedometer(samplesCount, min) {
|
|
|
2121
2323
|
|
|
2122
2324
|
const passed = startedAt && now - startedAt;
|
|
2123
2325
|
|
|
2124
|
-
return passed ? Math.round(bytesCount * 1000 / passed) : undefined;
|
|
2326
|
+
return passed ? Math.round((bytesCount * 1000) / passed) : undefined;
|
|
2125
2327
|
};
|
|
2126
2328
|
}
|
|
2127
2329
|
|
|
@@ -2150,7 +2352,7 @@ function throttle(fn, freq) {
|
|
|
2150
2352
|
const throttled = (...args) => {
|
|
2151
2353
|
const now = Date.now();
|
|
2152
2354
|
const passed = now - timestamp;
|
|
2153
|
-
if (
|
|
2355
|
+
if (passed >= threshold) {
|
|
2154
2356
|
invoke(args, now);
|
|
2155
2357
|
} else {
|
|
2156
2358
|
lastArgs = args;
|
|
@@ -2172,7 +2374,7 @@ const progressEventReducer = (listener, isDownloadStream, freq = 3) => {
|
|
|
2172
2374
|
let bytesNotified = 0;
|
|
2173
2375
|
const _speedometer = speedometer(50, 250);
|
|
2174
2376
|
|
|
2175
|
-
return throttle(e => {
|
|
2377
|
+
return throttle((e) => {
|
|
2176
2378
|
const loaded = e.loaded;
|
|
2177
2379
|
const total = e.lengthComputable ? e.total : undefined;
|
|
2178
2380
|
const progressBytes = loaded - bytesNotified;
|
|
@@ -2184,13 +2386,13 @@ const progressEventReducer = (listener, isDownloadStream, freq = 3) => {
|
|
|
2184
2386
|
const data = {
|
|
2185
2387
|
loaded,
|
|
2186
2388
|
total,
|
|
2187
|
-
progress: total ?
|
|
2389
|
+
progress: total ? loaded / total : undefined,
|
|
2188
2390
|
bytes: progressBytes,
|
|
2189
2391
|
rate: rate ? rate : undefined,
|
|
2190
2392
|
estimated: rate && total && inRange ? (total - loaded) / rate : undefined,
|
|
2191
2393
|
event: e,
|
|
2192
2394
|
lengthComputable: total != null,
|
|
2193
|
-
[isDownloadStream ? 'download' : 'upload']: true
|
|
2395
|
+
[isDownloadStream ? 'download' : 'upload']: true,
|
|
2194
2396
|
};
|
|
2195
2397
|
|
|
2196
2398
|
listener(data);
|
|
@@ -2200,77 +2402,82 @@ const progressEventReducer = (listener, isDownloadStream, freq = 3) => {
|
|
|
2200
2402
|
const progressEventDecorator = (total, throttled) => {
|
|
2201
2403
|
const lengthComputable = total != null;
|
|
2202
2404
|
|
|
2203
|
-
return [
|
|
2204
|
-
|
|
2205
|
-
|
|
2206
|
-
|
|
2207
|
-
|
|
2405
|
+
return [
|
|
2406
|
+
(loaded) =>
|
|
2407
|
+
throttled[0]({
|
|
2408
|
+
lengthComputable,
|
|
2409
|
+
total,
|
|
2410
|
+
loaded,
|
|
2411
|
+
}),
|
|
2412
|
+
throttled[1],
|
|
2413
|
+
];
|
|
2208
2414
|
};
|
|
2209
2415
|
|
|
2210
|
-
const asyncDecorator =
|
|
2211
|
-
|
|
2212
|
-
|
|
2213
|
-
|
|
2416
|
+
const asyncDecorator =
|
|
2417
|
+
(fn) =>
|
|
2418
|
+
(...args) =>
|
|
2419
|
+
utils$1.asap(() => fn(...args));
|
|
2214
2420
|
|
|
2215
|
-
|
|
2216
|
-
|
|
2217
|
-
|
|
2218
|
-
(isMSIE || origin.port === url.port)
|
|
2219
|
-
);
|
|
2220
|
-
})(
|
|
2221
|
-
new URL(platform.origin),
|
|
2222
|
-
platform.navigator && /(msie|trident)/i.test(platform.navigator.userAgent)
|
|
2223
|
-
) : () => true;
|
|
2421
|
+
var isURLSameOrigin = platform.hasStandardBrowserEnv
|
|
2422
|
+
? ((origin, isMSIE) => (url) => {
|
|
2423
|
+
url = new URL(url, platform.origin);
|
|
2224
2424
|
|
|
2225
|
-
|
|
2425
|
+
return (
|
|
2426
|
+
origin.protocol === url.protocol &&
|
|
2427
|
+
origin.host === url.host &&
|
|
2428
|
+
(isMSIE || origin.port === url.port)
|
|
2429
|
+
);
|
|
2430
|
+
})(
|
|
2431
|
+
new URL(platform.origin),
|
|
2432
|
+
platform.navigator && /(msie|trident)/i.test(platform.navigator.userAgent)
|
|
2433
|
+
)
|
|
2434
|
+
: () => true;
|
|
2226
2435
|
|
|
2227
|
-
|
|
2228
|
-
|
|
2229
|
-
|
|
2230
|
-
|
|
2436
|
+
var cookies = platform.hasStandardBrowserEnv
|
|
2437
|
+
? // Standard browser envs support document.cookie
|
|
2438
|
+
{
|
|
2439
|
+
write(name, value, expires, path, domain, secure, sameSite) {
|
|
2440
|
+
if (typeof document === 'undefined') return;
|
|
2231
2441
|
|
|
2232
|
-
|
|
2442
|
+
const cookie = [`${name}=${encodeURIComponent(value)}`];
|
|
2233
2443
|
|
|
2234
|
-
|
|
2235
|
-
|
|
2236
|
-
|
|
2237
|
-
|
|
2238
|
-
|
|
2239
|
-
|
|
2240
|
-
|
|
2241
|
-
|
|
2242
|
-
|
|
2243
|
-
|
|
2244
|
-
|
|
2245
|
-
|
|
2246
|
-
|
|
2247
|
-
|
|
2248
|
-
|
|
2444
|
+
if (utils$1.isNumber(expires)) {
|
|
2445
|
+
cookie.push(`expires=${new Date(expires).toUTCString()}`);
|
|
2446
|
+
}
|
|
2447
|
+
if (utils$1.isString(path)) {
|
|
2448
|
+
cookie.push(`path=${path}`);
|
|
2449
|
+
}
|
|
2450
|
+
if (utils$1.isString(domain)) {
|
|
2451
|
+
cookie.push(`domain=${domain}`);
|
|
2452
|
+
}
|
|
2453
|
+
if (secure === true) {
|
|
2454
|
+
cookie.push('secure');
|
|
2455
|
+
}
|
|
2456
|
+
if (utils$1.isString(sameSite)) {
|
|
2457
|
+
cookie.push(`SameSite=${sameSite}`);
|
|
2458
|
+
}
|
|
2249
2459
|
|
|
2250
|
-
|
|
2251
|
-
|
|
2460
|
+
document.cookie = cookie.join('; ');
|
|
2461
|
+
},
|
|
2252
2462
|
|
|
2253
|
-
|
|
2254
|
-
|
|
2255
|
-
|
|
2256
|
-
|
|
2257
|
-
|
|
2463
|
+
read(name) {
|
|
2464
|
+
if (typeof document === 'undefined') return null;
|
|
2465
|
+
const match = document.cookie.match(new RegExp('(?:^|; )' + name + '=([^;]*)'));
|
|
2466
|
+
return match ? decodeURIComponent(match[1]) : null;
|
|
2467
|
+
},
|
|
2258
2468
|
|
|
2259
|
-
|
|
2260
|
-
|
|
2469
|
+
remove(name) {
|
|
2470
|
+
this.write(name, '', Date.now() - 86400000, '/');
|
|
2471
|
+
},
|
|
2261
2472
|
}
|
|
2262
|
-
|
|
2263
|
-
|
|
2264
|
-
|
|
2265
|
-
|
|
2266
|
-
|
|
2267
|
-
|
|
2268
|
-
|
|
2269
|
-
|
|
2270
|
-
return null;
|
|
2271
|
-
},
|
|
2272
|
-
remove() {}
|
|
2273
|
-
};
|
|
2473
|
+
: // Non-standard browser env (web workers, react-native) lack needed support.
|
|
2474
|
+
{
|
|
2475
|
+
write() {},
|
|
2476
|
+
read() {
|
|
2477
|
+
return null;
|
|
2478
|
+
},
|
|
2479
|
+
remove() {},
|
|
2480
|
+
};
|
|
2274
2481
|
|
|
2275
2482
|
/**
|
|
2276
2483
|
* Determines whether the specified URL is absolute
|
|
@@ -2283,6 +2490,10 @@ function isAbsoluteURL(url) {
|
|
|
2283
2490
|
// A URL is considered absolute if it begins with "<scheme>://" or "//" (protocol-relative URL).
|
|
2284
2491
|
// RFC 3986 defines scheme name as a sequence of characters beginning with a letter and followed
|
|
2285
2492
|
// by any combination of letters, digits, plus, period, or hyphen.
|
|
2493
|
+
if (typeof url !== 'string') {
|
|
2494
|
+
return false;
|
|
2495
|
+
}
|
|
2496
|
+
|
|
2286
2497
|
return /^([a-z][a-z\d+\-.]*:)?\/\//i.test(url);
|
|
2287
2498
|
}
|
|
2288
2499
|
|
|
@@ -2318,7 +2529,7 @@ function buildFullPath(baseURL, requestedURL, allowAbsoluteUrls) {
|
|
|
2318
2529
|
return requestedURL;
|
|
2319
2530
|
}
|
|
2320
2531
|
|
|
2321
|
-
const headersToObject = (thing) => thing instanceof AxiosHeaders$1 ? { ...thing } : thing;
|
|
2532
|
+
const headersToObject = (thing) => (thing instanceof AxiosHeaders$1 ? { ...thing } : thing);
|
|
2322
2533
|
|
|
2323
2534
|
/**
|
|
2324
2535
|
* Config-specific merge-function which creates a new config-object
|
|
@@ -2336,7 +2547,7 @@ function mergeConfig(config1, config2) {
|
|
|
2336
2547
|
|
|
2337
2548
|
function getMergedValue(target, source, prop, caseless) {
|
|
2338
2549
|
if (utils$1.isPlainObject(target) && utils$1.isPlainObject(source)) {
|
|
2339
|
-
return utils$1.merge.call({caseless}, target, source);
|
|
2550
|
+
return utils$1.merge.call({ caseless }, target, source);
|
|
2340
2551
|
} else if (utils$1.isPlainObject(source)) {
|
|
2341
2552
|
return utils$1.merge({}, source);
|
|
2342
2553
|
} else if (utils$1.isArray(source)) {
|
|
@@ -2345,7 +2556,6 @@ function mergeConfig(config1, config2) {
|
|
|
2345
2556
|
return source;
|
|
2346
2557
|
}
|
|
2347
2558
|
|
|
2348
|
-
// eslint-disable-next-line consistent-return
|
|
2349
2559
|
function mergeDeepProperties(a, b, prop, caseless) {
|
|
2350
2560
|
if (!utils$1.isUndefined(b)) {
|
|
2351
2561
|
return getMergedValue(a, b, prop, caseless);
|
|
@@ -2408,11 +2618,13 @@ function mergeConfig(config1, config2) {
|
|
|
2408
2618
|
socketPath: defaultToConfig2,
|
|
2409
2619
|
responseEncoding: defaultToConfig2,
|
|
2410
2620
|
validateStatus: mergeDirectKeys,
|
|
2411
|
-
headers: (a, b, prop) =>
|
|
2621
|
+
headers: (a, b, prop) =>
|
|
2622
|
+
mergeDeepProperties(headersToObject(a), headersToObject(b), prop, true),
|
|
2412
2623
|
};
|
|
2413
2624
|
|
|
2414
|
-
utils$1.forEach(Object.keys({...config1, ...config2}), function computeConfigValue(prop) {
|
|
2415
|
-
|
|
2625
|
+
utils$1.forEach(Object.keys({ ...config1, ...config2 }), function computeConfigValue(prop) {
|
|
2626
|
+
if (prop === '__proto__' || prop === 'constructor' || prop === 'prototype') return;
|
|
2627
|
+
const merge = utils$1.hasOwnProp(mergeMap, prop) ? mergeMap[prop] : mergeDeepProperties;
|
|
2416
2628
|
const configValue = merge(config1[prop], config2[prop], prop);
|
|
2417
2629
|
(utils$1.isUndefined(configValue) && merge !== mergeDirectKeys) || (config[prop] = configValue);
|
|
2418
2630
|
});
|
|
@@ -2427,12 +2639,22 @@ var resolveConfig = (config) => {
|
|
|
2427
2639
|
|
|
2428
2640
|
newConfig.headers = headers = AxiosHeaders$1.from(headers);
|
|
2429
2641
|
|
|
2430
|
-
newConfig.url = buildURL(
|
|
2642
|
+
newConfig.url = buildURL(
|
|
2643
|
+
buildFullPath(newConfig.baseURL, newConfig.url, newConfig.allowAbsoluteUrls),
|
|
2644
|
+
config.params,
|
|
2645
|
+
config.paramsSerializer
|
|
2646
|
+
);
|
|
2431
2647
|
|
|
2432
2648
|
// HTTP basic authentication
|
|
2433
2649
|
if (auth) {
|
|
2434
|
-
headers.set(
|
|
2435
|
-
|
|
2650
|
+
headers.set(
|
|
2651
|
+
'Authorization',
|
|
2652
|
+
'Basic ' +
|
|
2653
|
+
btoa(
|
|
2654
|
+
(auth.username || '') +
|
|
2655
|
+
':' +
|
|
2656
|
+
(auth.password ? unescape(encodeURIComponent(auth.password)) : '')
|
|
2657
|
+
)
|
|
2436
2658
|
);
|
|
2437
2659
|
}
|
|
2438
2660
|
|
|
@@ -2450,7 +2672,7 @@ var resolveConfig = (config) => {
|
|
|
2450
2672
|
}
|
|
2451
2673
|
});
|
|
2452
2674
|
}
|
|
2453
|
-
}
|
|
2675
|
+
}
|
|
2454
2676
|
|
|
2455
2677
|
// Add xsrf header
|
|
2456
2678
|
// This is only done if running in a standard browser environment.
|
|
@@ -2474,196 +2696,218 @@ var resolveConfig = (config) => {
|
|
|
2474
2696
|
|
|
2475
2697
|
const isXHRAdapterSupported = typeof XMLHttpRequest !== 'undefined';
|
|
2476
2698
|
|
|
2477
|
-
var xhrAdapter = isXHRAdapterSupported &&
|
|
2478
|
-
|
|
2479
|
-
|
|
2480
|
-
|
|
2481
|
-
|
|
2482
|
-
|
|
2483
|
-
|
|
2484
|
-
|
|
2485
|
-
|
|
2699
|
+
var xhrAdapter = isXHRAdapterSupported &&
|
|
2700
|
+
function (config) {
|
|
2701
|
+
return new Promise(function dispatchXhrRequest(resolve, reject) {
|
|
2702
|
+
const _config = resolveConfig(config);
|
|
2703
|
+
let requestData = _config.data;
|
|
2704
|
+
const requestHeaders = AxiosHeaders$1.from(_config.headers).normalize();
|
|
2705
|
+
let { responseType, onUploadProgress, onDownloadProgress } = _config;
|
|
2706
|
+
let onCanceled;
|
|
2707
|
+
let uploadThrottled, downloadThrottled;
|
|
2708
|
+
let flushUpload, flushDownload;
|
|
2486
2709
|
|
|
2487
|
-
|
|
2488
|
-
|
|
2489
|
-
|
|
2710
|
+
function done() {
|
|
2711
|
+
flushUpload && flushUpload(); // flush events
|
|
2712
|
+
flushDownload && flushDownload(); // flush events
|
|
2490
2713
|
|
|
2491
|
-
|
|
2714
|
+
_config.cancelToken && _config.cancelToken.unsubscribe(onCanceled);
|
|
2492
2715
|
|
|
2493
|
-
|
|
2494
|
-
|
|
2716
|
+
_config.signal && _config.signal.removeEventListener('abort', onCanceled);
|
|
2717
|
+
}
|
|
2495
2718
|
|
|
2496
|
-
|
|
2719
|
+
let request = new XMLHttpRequest();
|
|
2497
2720
|
|
|
2498
|
-
|
|
2721
|
+
request.open(_config.method.toUpperCase(), _config.url, true);
|
|
2499
2722
|
|
|
2500
|
-
|
|
2501
|
-
|
|
2723
|
+
// Set the request timeout in MS
|
|
2724
|
+
request.timeout = _config.timeout;
|
|
2502
2725
|
|
|
2503
|
-
|
|
2504
|
-
|
|
2505
|
-
|
|
2726
|
+
function onloadend() {
|
|
2727
|
+
if (!request) {
|
|
2728
|
+
return;
|
|
2729
|
+
}
|
|
2730
|
+
// Prepare the response
|
|
2731
|
+
const responseHeaders = AxiosHeaders$1.from(
|
|
2732
|
+
'getAllResponseHeaders' in request && request.getAllResponseHeaders()
|
|
2733
|
+
);
|
|
2734
|
+
const responseData =
|
|
2735
|
+
!responseType || responseType === 'text' || responseType === 'json'
|
|
2736
|
+
? request.responseText
|
|
2737
|
+
: request.response;
|
|
2738
|
+
const response = {
|
|
2739
|
+
data: responseData,
|
|
2740
|
+
status: request.status,
|
|
2741
|
+
statusText: request.statusText,
|
|
2742
|
+
headers: responseHeaders,
|
|
2743
|
+
config,
|
|
2744
|
+
request,
|
|
2745
|
+
};
|
|
2746
|
+
|
|
2747
|
+
settle(
|
|
2748
|
+
function _resolve(value) {
|
|
2749
|
+
resolve(value);
|
|
2750
|
+
done();
|
|
2751
|
+
},
|
|
2752
|
+
function _reject(err) {
|
|
2753
|
+
reject(err);
|
|
2754
|
+
done();
|
|
2755
|
+
},
|
|
2756
|
+
response
|
|
2757
|
+
);
|
|
2758
|
+
|
|
2759
|
+
// Clean up request
|
|
2760
|
+
request = null;
|
|
2506
2761
|
}
|
|
2507
|
-
// Prepare the response
|
|
2508
|
-
const responseHeaders = AxiosHeaders$1.from(
|
|
2509
|
-
'getAllResponseHeaders' in request && request.getAllResponseHeaders()
|
|
2510
|
-
);
|
|
2511
|
-
const responseData = !responseType || responseType === 'text' || responseType === 'json' ?
|
|
2512
|
-
request.responseText : request.response;
|
|
2513
|
-
const response = {
|
|
2514
|
-
data: responseData,
|
|
2515
|
-
status: request.status,
|
|
2516
|
-
statusText: request.statusText,
|
|
2517
|
-
headers: responseHeaders,
|
|
2518
|
-
config,
|
|
2519
|
-
request
|
|
2520
|
-
};
|
|
2521
2762
|
|
|
2522
|
-
|
|
2523
|
-
|
|
2524
|
-
|
|
2525
|
-
}
|
|
2526
|
-
|
|
2527
|
-
|
|
2528
|
-
|
|
2763
|
+
if ('onloadend' in request) {
|
|
2764
|
+
// Use onloadend if available
|
|
2765
|
+
request.onloadend = onloadend;
|
|
2766
|
+
} else {
|
|
2767
|
+
// Listen for ready state to emulate onloadend
|
|
2768
|
+
request.onreadystatechange = function handleLoad() {
|
|
2769
|
+
if (!request || request.readyState !== 4) {
|
|
2770
|
+
return;
|
|
2771
|
+
}
|
|
2529
2772
|
|
|
2530
|
-
|
|
2531
|
-
|
|
2532
|
-
|
|
2773
|
+
// The request errored out and we didn't get a response, this will be
|
|
2774
|
+
// handled by onerror instead
|
|
2775
|
+
// With one exception: request that using file: protocol, most browsers
|
|
2776
|
+
// will return status as 0 even though it's a successful request
|
|
2777
|
+
if (
|
|
2778
|
+
request.status === 0 &&
|
|
2779
|
+
!(request.responseURL && request.responseURL.indexOf('file:') === 0)
|
|
2780
|
+
) {
|
|
2781
|
+
return;
|
|
2782
|
+
}
|
|
2783
|
+
// readystate handler is calling before onerror or ontimeout handlers,
|
|
2784
|
+
// so we should call onloadend on the next 'tick'
|
|
2785
|
+
setTimeout(onloadend);
|
|
2786
|
+
};
|
|
2787
|
+
}
|
|
2533
2788
|
|
|
2534
|
-
|
|
2535
|
-
|
|
2536
|
-
|
|
2537
|
-
} else {
|
|
2538
|
-
// Listen for ready state to emulate onloadend
|
|
2539
|
-
request.onreadystatechange = function handleLoad() {
|
|
2540
|
-
if (!request || request.readyState !== 4) {
|
|
2789
|
+
// Handle browser request cancellation (as opposed to a manual cancellation)
|
|
2790
|
+
request.onabort = function handleAbort() {
|
|
2791
|
+
if (!request) {
|
|
2541
2792
|
return;
|
|
2542
2793
|
}
|
|
2543
2794
|
|
|
2544
|
-
|
|
2545
|
-
|
|
2546
|
-
//
|
|
2547
|
-
|
|
2548
|
-
if (request.status === 0 && !(request.responseURL && request.responseURL.indexOf('file:') === 0)) {
|
|
2549
|
-
return;
|
|
2550
|
-
}
|
|
2551
|
-
// readystate handler is calling before onerror or ontimeout handlers,
|
|
2552
|
-
// so we should call onloadend on the next 'tick'
|
|
2553
|
-
setTimeout(onloadend);
|
|
2795
|
+
reject(new AxiosError$1('Request aborted', AxiosError$1.ECONNABORTED, config, request));
|
|
2796
|
+
|
|
2797
|
+
// Clean up request
|
|
2798
|
+
request = null;
|
|
2554
2799
|
};
|
|
2555
|
-
}
|
|
2556
2800
|
|
|
2557
|
-
|
|
2558
|
-
|
|
2559
|
-
|
|
2560
|
-
|
|
2561
|
-
|
|
2801
|
+
// Handle low level network errors
|
|
2802
|
+
request.onerror = function handleError(event) {
|
|
2803
|
+
// Browsers deliver a ProgressEvent in XHR onerror
|
|
2804
|
+
// (message may be empty; when present, surface it)
|
|
2805
|
+
// See https://developer.mozilla.org/docs/Web/API/XMLHttpRequest/error_event
|
|
2806
|
+
const msg = event && event.message ? event.message : 'Network Error';
|
|
2807
|
+
const err = new AxiosError$1(msg, AxiosError$1.ERR_NETWORK, config, request);
|
|
2808
|
+
// attach the underlying event for consumers who want details
|
|
2809
|
+
err.event = event || null;
|
|
2810
|
+
reject(err);
|
|
2811
|
+
request = null;
|
|
2812
|
+
};
|
|
2562
2813
|
|
|
2563
|
-
|
|
2814
|
+
// Handle timeout
|
|
2815
|
+
request.ontimeout = function handleTimeout() {
|
|
2816
|
+
let timeoutErrorMessage = _config.timeout
|
|
2817
|
+
? 'timeout of ' + _config.timeout + 'ms exceeded'
|
|
2818
|
+
: 'timeout exceeded';
|
|
2819
|
+
const transitional = _config.transitional || transitionalDefaults;
|
|
2820
|
+
if (_config.timeoutErrorMessage) {
|
|
2821
|
+
timeoutErrorMessage = _config.timeoutErrorMessage;
|
|
2822
|
+
}
|
|
2823
|
+
reject(
|
|
2824
|
+
new AxiosError$1(
|
|
2825
|
+
timeoutErrorMessage,
|
|
2826
|
+
transitional.clarifyTimeoutError ? AxiosError$1.ETIMEDOUT : AxiosError$1.ECONNABORTED,
|
|
2827
|
+
config,
|
|
2828
|
+
request
|
|
2829
|
+
)
|
|
2830
|
+
);
|
|
2564
2831
|
|
|
2565
|
-
|
|
2566
|
-
|
|
2567
|
-
|
|
2832
|
+
// Clean up request
|
|
2833
|
+
request = null;
|
|
2834
|
+
};
|
|
2568
2835
|
|
|
2569
|
-
|
|
2570
|
-
|
|
2571
|
-
// Browsers deliver a ProgressEvent in XHR onerror
|
|
2572
|
-
// (message may be empty; when present, surface it)
|
|
2573
|
-
// See https://developer.mozilla.org/docs/Web/API/XMLHttpRequest/error_event
|
|
2574
|
-
const msg = event && event.message ? event.message : 'Network Error';
|
|
2575
|
-
const err = new AxiosError(msg, AxiosError.ERR_NETWORK, config, request);
|
|
2576
|
-
// attach the underlying event for consumers who want details
|
|
2577
|
-
err.event = event || null;
|
|
2578
|
-
reject(err);
|
|
2579
|
-
request = null;
|
|
2580
|
-
};
|
|
2581
|
-
|
|
2582
|
-
// Handle timeout
|
|
2583
|
-
request.ontimeout = function handleTimeout() {
|
|
2584
|
-
let timeoutErrorMessage = _config.timeout ? 'timeout of ' + _config.timeout + 'ms exceeded' : 'timeout exceeded';
|
|
2585
|
-
const transitional = _config.transitional || transitionalDefaults;
|
|
2586
|
-
if (_config.timeoutErrorMessage) {
|
|
2587
|
-
timeoutErrorMessage = _config.timeoutErrorMessage;
|
|
2588
|
-
}
|
|
2589
|
-
reject(new AxiosError(
|
|
2590
|
-
timeoutErrorMessage,
|
|
2591
|
-
transitional.clarifyTimeoutError ? AxiosError.ETIMEDOUT : AxiosError.ECONNABORTED,
|
|
2592
|
-
config,
|
|
2593
|
-
request));
|
|
2594
|
-
|
|
2595
|
-
// Clean up request
|
|
2596
|
-
request = null;
|
|
2597
|
-
};
|
|
2836
|
+
// Remove Content-Type if data is undefined
|
|
2837
|
+
requestData === undefined && requestHeaders.setContentType(null);
|
|
2598
2838
|
|
|
2599
|
-
|
|
2600
|
-
|
|
2839
|
+
// Add headers to the request
|
|
2840
|
+
if ('setRequestHeader' in request) {
|
|
2841
|
+
utils$1.forEach(requestHeaders.toJSON(), function setRequestHeader(val, key) {
|
|
2842
|
+
request.setRequestHeader(key, val);
|
|
2843
|
+
});
|
|
2844
|
+
}
|
|
2601
2845
|
|
|
2602
|
-
|
|
2603
|
-
|
|
2604
|
-
|
|
2605
|
-
|
|
2606
|
-
});
|
|
2607
|
-
}
|
|
2846
|
+
// Add withCredentials to request if needed
|
|
2847
|
+
if (!utils$1.isUndefined(_config.withCredentials)) {
|
|
2848
|
+
request.withCredentials = !!_config.withCredentials;
|
|
2849
|
+
}
|
|
2608
2850
|
|
|
2609
|
-
|
|
2610
|
-
|
|
2611
|
-
|
|
2612
|
-
|
|
2851
|
+
// Add responseType to request if needed
|
|
2852
|
+
if (responseType && responseType !== 'json') {
|
|
2853
|
+
request.responseType = _config.responseType;
|
|
2854
|
+
}
|
|
2613
2855
|
|
|
2614
|
-
|
|
2615
|
-
|
|
2616
|
-
|
|
2617
|
-
|
|
2856
|
+
// Handle progress if needed
|
|
2857
|
+
if (onDownloadProgress) {
|
|
2858
|
+
[downloadThrottled, flushDownload] = progressEventReducer(onDownloadProgress, true);
|
|
2859
|
+
request.addEventListener('progress', downloadThrottled);
|
|
2860
|
+
}
|
|
2618
2861
|
|
|
2619
|
-
|
|
2620
|
-
|
|
2621
|
-
|
|
2622
|
-
request.addEventListener('progress', downloadThrottled);
|
|
2623
|
-
}
|
|
2862
|
+
// Not all browsers support upload events
|
|
2863
|
+
if (onUploadProgress && request.upload) {
|
|
2864
|
+
[uploadThrottled, flushUpload] = progressEventReducer(onUploadProgress);
|
|
2624
2865
|
|
|
2625
|
-
|
|
2626
|
-
if (onUploadProgress && request.upload) {
|
|
2627
|
-
([uploadThrottled, flushUpload] = progressEventReducer(onUploadProgress));
|
|
2866
|
+
request.upload.addEventListener('progress', uploadThrottled);
|
|
2628
2867
|
|
|
2629
|
-
|
|
2868
|
+
request.upload.addEventListener('loadend', flushUpload);
|
|
2869
|
+
}
|
|
2630
2870
|
|
|
2631
|
-
|
|
2632
|
-
|
|
2871
|
+
if (_config.cancelToken || _config.signal) {
|
|
2872
|
+
// Handle cancellation
|
|
2873
|
+
// eslint-disable-next-line func-names
|
|
2874
|
+
onCanceled = (cancel) => {
|
|
2875
|
+
if (!request) {
|
|
2876
|
+
return;
|
|
2877
|
+
}
|
|
2878
|
+
reject(!cancel || cancel.type ? new CanceledError$1(null, config, request) : cancel);
|
|
2879
|
+
request.abort();
|
|
2880
|
+
request = null;
|
|
2881
|
+
};
|
|
2633
2882
|
|
|
2634
|
-
|
|
2635
|
-
|
|
2636
|
-
|
|
2637
|
-
|
|
2638
|
-
|
|
2639
|
-
return;
|
|
2883
|
+
_config.cancelToken && _config.cancelToken.subscribe(onCanceled);
|
|
2884
|
+
if (_config.signal) {
|
|
2885
|
+
_config.signal.aborted
|
|
2886
|
+
? onCanceled()
|
|
2887
|
+
: _config.signal.addEventListener('abort', onCanceled);
|
|
2640
2888
|
}
|
|
2641
|
-
reject(!cancel || cancel.type ? new CanceledError(null, config, request) : cancel);
|
|
2642
|
-
request.abort();
|
|
2643
|
-
request = null;
|
|
2644
|
-
};
|
|
2645
|
-
|
|
2646
|
-
_config.cancelToken && _config.cancelToken.subscribe(onCanceled);
|
|
2647
|
-
if (_config.signal) {
|
|
2648
|
-
_config.signal.aborted ? onCanceled() : _config.signal.addEventListener('abort', onCanceled);
|
|
2649
2889
|
}
|
|
2650
|
-
}
|
|
2651
|
-
|
|
2652
|
-
const protocol = parseProtocol(_config.url);
|
|
2653
2890
|
|
|
2654
|
-
|
|
2655
|
-
reject(new AxiosError('Unsupported protocol ' + protocol + ':', AxiosError.ERR_BAD_REQUEST, config));
|
|
2656
|
-
return;
|
|
2657
|
-
}
|
|
2891
|
+
const protocol = parseProtocol(_config.url);
|
|
2658
2892
|
|
|
2893
|
+
if (protocol && platform.protocols.indexOf(protocol) === -1) {
|
|
2894
|
+
reject(
|
|
2895
|
+
new AxiosError$1(
|
|
2896
|
+
'Unsupported protocol ' + protocol + ':',
|
|
2897
|
+
AxiosError$1.ERR_BAD_REQUEST,
|
|
2898
|
+
config
|
|
2899
|
+
)
|
|
2900
|
+
);
|
|
2901
|
+
return;
|
|
2902
|
+
}
|
|
2659
2903
|
|
|
2660
|
-
|
|
2661
|
-
|
|
2662
|
-
|
|
2663
|
-
};
|
|
2904
|
+
// Send the request
|
|
2905
|
+
request.send(requestData || null);
|
|
2906
|
+
});
|
|
2907
|
+
};
|
|
2664
2908
|
|
|
2665
2909
|
const composeSignals = (signals, timeout) => {
|
|
2666
|
-
const {length} = (signals = signals ? signals.filter(Boolean) : []);
|
|
2910
|
+
const { length } = (signals = signals ? signals.filter(Boolean) : []);
|
|
2667
2911
|
|
|
2668
2912
|
if (timeout || length) {
|
|
2669
2913
|
let controller = new AbortController();
|
|
@@ -2675,21 +2919,29 @@ const composeSignals = (signals, timeout) => {
|
|
|
2675
2919
|
aborted = true;
|
|
2676
2920
|
unsubscribe();
|
|
2677
2921
|
const err = reason instanceof Error ? reason : this.reason;
|
|
2678
|
-
controller.abort(
|
|
2922
|
+
controller.abort(
|
|
2923
|
+
err instanceof AxiosError$1
|
|
2924
|
+
? err
|
|
2925
|
+
: new CanceledError$1(err instanceof Error ? err.message : err)
|
|
2926
|
+
);
|
|
2679
2927
|
}
|
|
2680
2928
|
};
|
|
2681
2929
|
|
|
2682
|
-
let timer =
|
|
2683
|
-
|
|
2684
|
-
|
|
2685
|
-
|
|
2930
|
+
let timer =
|
|
2931
|
+
timeout &&
|
|
2932
|
+
setTimeout(() => {
|
|
2933
|
+
timer = null;
|
|
2934
|
+
onabort(new AxiosError$1(`timeout of ${timeout}ms exceeded`, AxiosError$1.ETIMEDOUT));
|
|
2935
|
+
}, timeout);
|
|
2686
2936
|
|
|
2687
2937
|
const unsubscribe = () => {
|
|
2688
2938
|
if (signals) {
|
|
2689
2939
|
timer && clearTimeout(timer);
|
|
2690
2940
|
timer = null;
|
|
2691
|
-
signals.forEach(signal => {
|
|
2692
|
-
signal.unsubscribe
|
|
2941
|
+
signals.forEach((signal) => {
|
|
2942
|
+
signal.unsubscribe
|
|
2943
|
+
? signal.unsubscribe(onabort)
|
|
2944
|
+
: signal.removeEventListener('abort', onabort);
|
|
2693
2945
|
});
|
|
2694
2946
|
signals = null;
|
|
2695
2947
|
}
|
|
@@ -2697,7 +2949,7 @@ const composeSignals = (signals, timeout) => {
|
|
|
2697
2949
|
|
|
2698
2950
|
signals.forEach((signal) => signal.addEventListener('abort', onabort));
|
|
2699
2951
|
|
|
2700
|
-
const {signal} = controller;
|
|
2952
|
+
const { signal } = controller;
|
|
2701
2953
|
|
|
2702
2954
|
signal.unsubscribe = () => utils$1.asap(unsubscribe);
|
|
2703
2955
|
|
|
@@ -2740,7 +2992,7 @@ const readStream = async function* (stream) {
|
|
|
2740
2992
|
const reader = stream.getReader();
|
|
2741
2993
|
try {
|
|
2742
2994
|
for (;;) {
|
|
2743
|
-
const {done, value} = await reader.read();
|
|
2995
|
+
const { done, value } = await reader.read();
|
|
2744
2996
|
if (done) {
|
|
2745
2997
|
break;
|
|
2746
2998
|
}
|
|
@@ -2763,64 +3015,69 @@ const trackStream = (stream, chunkSize, onProgress, onFinish) => {
|
|
|
2763
3015
|
}
|
|
2764
3016
|
};
|
|
2765
3017
|
|
|
2766
|
-
return new ReadableStream(
|
|
2767
|
-
|
|
2768
|
-
|
|
2769
|
-
|
|
3018
|
+
return new ReadableStream(
|
|
3019
|
+
{
|
|
3020
|
+
async pull(controller) {
|
|
3021
|
+
try {
|
|
3022
|
+
const { done, value } = await iterator.next();
|
|
2770
3023
|
|
|
2771
|
-
|
|
2772
|
-
|
|
2773
|
-
|
|
2774
|
-
|
|
2775
|
-
|
|
3024
|
+
if (done) {
|
|
3025
|
+
_onFinish();
|
|
3026
|
+
controller.close();
|
|
3027
|
+
return;
|
|
3028
|
+
}
|
|
2776
3029
|
|
|
2777
|
-
|
|
2778
|
-
|
|
2779
|
-
|
|
2780
|
-
|
|
3030
|
+
let len = value.byteLength;
|
|
3031
|
+
if (onProgress) {
|
|
3032
|
+
let loadedBytes = (bytes += len);
|
|
3033
|
+
onProgress(loadedBytes);
|
|
3034
|
+
}
|
|
3035
|
+
controller.enqueue(new Uint8Array(value));
|
|
3036
|
+
} catch (err) {
|
|
3037
|
+
_onFinish(err);
|
|
3038
|
+
throw err;
|
|
2781
3039
|
}
|
|
2782
|
-
|
|
2783
|
-
|
|
2784
|
-
_onFinish(
|
|
2785
|
-
|
|
2786
|
-
}
|
|
3040
|
+
},
|
|
3041
|
+
cancel(reason) {
|
|
3042
|
+
_onFinish(reason);
|
|
3043
|
+
return iterator.return();
|
|
3044
|
+
},
|
|
2787
3045
|
},
|
|
2788
|
-
|
|
2789
|
-
|
|
2790
|
-
return iterator.return();
|
|
3046
|
+
{
|
|
3047
|
+
highWaterMark: 2,
|
|
2791
3048
|
}
|
|
2792
|
-
|
|
2793
|
-
highWaterMark: 2
|
|
2794
|
-
})
|
|
3049
|
+
);
|
|
2795
3050
|
};
|
|
2796
3051
|
|
|
2797
3052
|
const DEFAULT_CHUNK_SIZE = 64 * 1024;
|
|
2798
3053
|
|
|
2799
|
-
const {isFunction} = utils$1;
|
|
3054
|
+
const { isFunction } = utils$1;
|
|
2800
3055
|
|
|
2801
|
-
const globalFetchAPI = (({Request, Response}) => ({
|
|
2802
|
-
Request,
|
|
3056
|
+
const globalFetchAPI = (({ Request, Response }) => ({
|
|
3057
|
+
Request,
|
|
3058
|
+
Response,
|
|
2803
3059
|
}))(utils$1.global);
|
|
2804
3060
|
|
|
2805
|
-
const {
|
|
2806
|
-
ReadableStream: ReadableStream$1, TextEncoder
|
|
2807
|
-
} = utils$1.global;
|
|
2808
|
-
|
|
3061
|
+
const { ReadableStream: ReadableStream$1, TextEncoder } = utils$1.global;
|
|
2809
3062
|
|
|
2810
3063
|
const test = (fn, ...args) => {
|
|
2811
3064
|
try {
|
|
2812
3065
|
return !!fn(...args);
|
|
2813
3066
|
} catch (e) {
|
|
2814
|
-
return false
|
|
3067
|
+
return false;
|
|
2815
3068
|
}
|
|
2816
3069
|
};
|
|
2817
3070
|
|
|
2818
3071
|
const factory = (env) => {
|
|
2819
|
-
env = utils$1.merge.call(
|
|
2820
|
-
|
|
2821
|
-
|
|
3072
|
+
env = utils$1.merge.call(
|
|
3073
|
+
{
|
|
3074
|
+
skipUndefined: true,
|
|
3075
|
+
},
|
|
3076
|
+
globalFetchAPI,
|
|
3077
|
+
env
|
|
3078
|
+
);
|
|
2822
3079
|
|
|
2823
|
-
const {fetch: envFetch, Request, Response} = env;
|
|
3080
|
+
const { fetch: envFetch, Request, Response } = env;
|
|
2824
3081
|
const isFetchSupported = envFetch ? isFunction(envFetch) : typeof fetch === 'function';
|
|
2825
3082
|
const isRequestSupported = isFunction(Request);
|
|
2826
3083
|
const isResponseSupported = isFunction(Response);
|
|
@@ -2831,46 +3088,61 @@ const factory = (env) => {
|
|
|
2831
3088
|
|
|
2832
3089
|
const isReadableStreamSupported = isFetchSupported && isFunction(ReadableStream$1);
|
|
2833
3090
|
|
|
2834
|
-
const encodeText =
|
|
2835
|
-
|
|
2836
|
-
|
|
2837
|
-
|
|
2838
|
-
|
|
2839
|
-
|
|
2840
|
-
|
|
2841
|
-
|
|
2842
|
-
|
|
2843
|
-
|
|
2844
|
-
|
|
2845
|
-
|
|
2846
|
-
|
|
2847
|
-
|
|
2848
|
-
|
|
2849
|
-
|
|
3091
|
+
const encodeText =
|
|
3092
|
+
isFetchSupported &&
|
|
3093
|
+
(typeof TextEncoder === 'function'
|
|
3094
|
+
? (
|
|
3095
|
+
(encoder) => (str) =>
|
|
3096
|
+
encoder.encode(str)
|
|
3097
|
+
)(new TextEncoder())
|
|
3098
|
+
: async (str) => new Uint8Array(await new Request(str).arrayBuffer()));
|
|
3099
|
+
|
|
3100
|
+
const supportsRequestStream =
|
|
3101
|
+
isRequestSupported &&
|
|
3102
|
+
isReadableStreamSupported &&
|
|
3103
|
+
test(() => {
|
|
3104
|
+
let duplexAccessed = false;
|
|
3105
|
+
|
|
3106
|
+
const hasContentType = new Request(platform.origin, {
|
|
3107
|
+
body: new ReadableStream$1(),
|
|
3108
|
+
method: 'POST',
|
|
3109
|
+
get duplex() {
|
|
3110
|
+
duplexAccessed = true;
|
|
3111
|
+
return 'half';
|
|
3112
|
+
},
|
|
3113
|
+
}).headers.has('Content-Type');
|
|
2850
3114
|
|
|
2851
|
-
|
|
2852
|
-
|
|
3115
|
+
return duplexAccessed && !hasContentType;
|
|
3116
|
+
});
|
|
2853
3117
|
|
|
2854
|
-
const supportsResponseStream =
|
|
3118
|
+
const supportsResponseStream =
|
|
3119
|
+
isResponseSupported &&
|
|
3120
|
+
isReadableStreamSupported &&
|
|
2855
3121
|
test(() => utils$1.isReadableStream(new Response('').body));
|
|
2856
3122
|
|
|
2857
3123
|
const resolvers = {
|
|
2858
|
-
stream: supportsResponseStream && ((res) => res.body)
|
|
3124
|
+
stream: supportsResponseStream && ((res) => res.body),
|
|
2859
3125
|
};
|
|
2860
3126
|
|
|
2861
|
-
isFetchSupported &&
|
|
2862
|
-
|
|
2863
|
-
|
|
2864
|
-
|
|
2865
|
-
|
|
2866
|
-
|
|
2867
|
-
|
|
2868
|
-
|
|
2869
|
-
|
|
2870
|
-
|
|
3127
|
+
isFetchSupported &&
|
|
3128
|
+
(() => {
|
|
3129
|
+
['text', 'arrayBuffer', 'blob', 'formData', 'stream'].forEach((type) => {
|
|
3130
|
+
!resolvers[type] &&
|
|
3131
|
+
(resolvers[type] = (res, config) => {
|
|
3132
|
+
let method = res && res[type];
|
|
3133
|
+
|
|
3134
|
+
if (method) {
|
|
3135
|
+
return method.call(res);
|
|
3136
|
+
}
|
|
3137
|
+
|
|
3138
|
+
throw new AxiosError$1(
|
|
3139
|
+
`Response type '${type}' is not supported`,
|
|
3140
|
+
AxiosError$1.ERR_NOT_SUPPORT,
|
|
3141
|
+
config
|
|
3142
|
+
);
|
|
3143
|
+
});
|
|
2871
3144
|
});
|
|
2872
|
-
});
|
|
2873
|
-
})());
|
|
3145
|
+
})();
|
|
2874
3146
|
|
|
2875
3147
|
const getBodyLength = async (body) => {
|
|
2876
3148
|
if (body == null) {
|
|
@@ -2921,32 +3193,41 @@ const factory = (env) => {
|
|
|
2921
3193
|
responseType,
|
|
2922
3194
|
headers,
|
|
2923
3195
|
withCredentials = 'same-origin',
|
|
2924
|
-
fetchOptions
|
|
3196
|
+
fetchOptions,
|
|
2925
3197
|
} = resolveConfig(config);
|
|
2926
3198
|
|
|
2927
3199
|
let _fetch = envFetch || fetch;
|
|
2928
3200
|
|
|
2929
3201
|
responseType = responseType ? (responseType + '').toLowerCase() : 'text';
|
|
2930
3202
|
|
|
2931
|
-
let composedSignal = composeSignals$1(
|
|
3203
|
+
let composedSignal = composeSignals$1(
|
|
3204
|
+
[signal, cancelToken && cancelToken.toAbortSignal()],
|
|
3205
|
+
timeout
|
|
3206
|
+
);
|
|
2932
3207
|
|
|
2933
3208
|
let request = null;
|
|
2934
3209
|
|
|
2935
|
-
const unsubscribe =
|
|
2936
|
-
composedSignal
|
|
2937
|
-
|
|
3210
|
+
const unsubscribe =
|
|
3211
|
+
composedSignal &&
|
|
3212
|
+
composedSignal.unsubscribe &&
|
|
3213
|
+
(() => {
|
|
3214
|
+
composedSignal.unsubscribe();
|
|
3215
|
+
});
|
|
2938
3216
|
|
|
2939
3217
|
let requestContentLength;
|
|
2940
3218
|
|
|
2941
3219
|
try {
|
|
2942
3220
|
if (
|
|
2943
|
-
onUploadProgress &&
|
|
3221
|
+
onUploadProgress &&
|
|
3222
|
+
supportsRequestStream &&
|
|
3223
|
+
method !== 'get' &&
|
|
3224
|
+
method !== 'head' &&
|
|
2944
3225
|
(requestContentLength = await resolveBodyLength(headers, data)) !== 0
|
|
2945
3226
|
) {
|
|
2946
3227
|
let _request = new Request(url, {
|
|
2947
3228
|
method: 'POST',
|
|
2948
3229
|
body: data,
|
|
2949
|
-
duplex:
|
|
3230
|
+
duplex: 'half',
|
|
2950
3231
|
});
|
|
2951
3232
|
|
|
2952
3233
|
let contentTypeHeader;
|
|
@@ -2971,7 +3252,7 @@ const factory = (env) => {
|
|
|
2971
3252
|
|
|
2972
3253
|
// Cloudflare Workers throws when credentials are defined
|
|
2973
3254
|
// see https://github.com/cloudflare/workerd/issues/902
|
|
2974
|
-
const isCredentialsSupported = isRequestSupported &&
|
|
3255
|
+
const isCredentialsSupported = isRequestSupported && 'credentials' in Request.prototype;
|
|
2975
3256
|
|
|
2976
3257
|
const resolvedOptions = {
|
|
2977
3258
|
...fetchOptions,
|
|
@@ -2979,29 +3260,35 @@ const factory = (env) => {
|
|
|
2979
3260
|
method: method.toUpperCase(),
|
|
2980
3261
|
headers: headers.normalize().toJSON(),
|
|
2981
3262
|
body: data,
|
|
2982
|
-
duplex:
|
|
2983
|
-
credentials: isCredentialsSupported ? withCredentials : undefined
|
|
3263
|
+
duplex: 'half',
|
|
3264
|
+
credentials: isCredentialsSupported ? withCredentials : undefined,
|
|
2984
3265
|
};
|
|
2985
3266
|
|
|
2986
3267
|
request = isRequestSupported && new Request(url, resolvedOptions);
|
|
2987
3268
|
|
|
2988
|
-
let response = await (isRequestSupported
|
|
3269
|
+
let response = await (isRequestSupported
|
|
3270
|
+
? _fetch(request, fetchOptions)
|
|
3271
|
+
: _fetch(url, resolvedOptions));
|
|
2989
3272
|
|
|
2990
|
-
const isStreamResponse =
|
|
3273
|
+
const isStreamResponse =
|
|
3274
|
+
supportsResponseStream && (responseType === 'stream' || responseType === 'response');
|
|
2991
3275
|
|
|
2992
3276
|
if (supportsResponseStream && (onDownloadProgress || (isStreamResponse && unsubscribe))) {
|
|
2993
3277
|
const options = {};
|
|
2994
3278
|
|
|
2995
|
-
['status', 'statusText', 'headers'].forEach(prop => {
|
|
3279
|
+
['status', 'statusText', 'headers'].forEach((prop) => {
|
|
2996
3280
|
options[prop] = response[prop];
|
|
2997
3281
|
});
|
|
2998
3282
|
|
|
2999
3283
|
const responseContentLength = utils$1.toFiniteNumber(response.headers.get('content-length'));
|
|
3000
3284
|
|
|
3001
|
-
const [onProgress, flush] =
|
|
3002
|
-
|
|
3003
|
-
|
|
3004
|
-
|
|
3285
|
+
const [onProgress, flush] =
|
|
3286
|
+
(onDownloadProgress &&
|
|
3287
|
+
progressEventDecorator(
|
|
3288
|
+
responseContentLength,
|
|
3289
|
+
progressEventReducer(asyncDecorator(onDownloadProgress), true)
|
|
3290
|
+
)) ||
|
|
3291
|
+
[];
|
|
3005
3292
|
|
|
3006
3293
|
response = new Response(
|
|
3007
3294
|
trackStream(response.body, DEFAULT_CHUNK_SIZE, onProgress, () => {
|
|
@@ -3014,7 +3301,10 @@ const factory = (env) => {
|
|
|
3014
3301
|
|
|
3015
3302
|
responseType = responseType || 'text';
|
|
3016
3303
|
|
|
3017
|
-
let responseData = await resolvers[utils$1.findKey(resolvers, responseType) || 'text'](
|
|
3304
|
+
let responseData = await resolvers[utils$1.findKey(resolvers, responseType) || 'text'](
|
|
3305
|
+
response,
|
|
3306
|
+
config
|
|
3307
|
+
);
|
|
3018
3308
|
|
|
3019
3309
|
!isStreamResponse && unsubscribe && unsubscribe();
|
|
3020
3310
|
|
|
@@ -3025,43 +3315,50 @@ const factory = (env) => {
|
|
|
3025
3315
|
status: response.status,
|
|
3026
3316
|
statusText: response.statusText,
|
|
3027
3317
|
config,
|
|
3028
|
-
request
|
|
3318
|
+
request,
|
|
3029
3319
|
});
|
|
3030
|
-
})
|
|
3320
|
+
});
|
|
3031
3321
|
} catch (err) {
|
|
3032
3322
|
unsubscribe && unsubscribe();
|
|
3033
3323
|
|
|
3034
3324
|
if (err && err.name === 'TypeError' && /Load failed|fetch/i.test(err.message)) {
|
|
3035
3325
|
throw Object.assign(
|
|
3036
|
-
new AxiosError(
|
|
3326
|
+
new AxiosError$1(
|
|
3327
|
+
'Network Error',
|
|
3328
|
+
AxiosError$1.ERR_NETWORK,
|
|
3329
|
+
config,
|
|
3330
|
+
request,
|
|
3331
|
+
err && err.response
|
|
3332
|
+
),
|
|
3037
3333
|
{
|
|
3038
|
-
cause: err.cause || err
|
|
3334
|
+
cause: err.cause || err,
|
|
3039
3335
|
}
|
|
3040
|
-
)
|
|
3336
|
+
);
|
|
3041
3337
|
}
|
|
3042
3338
|
|
|
3043
|
-
throw AxiosError.from(err, err && err.code, config, request);
|
|
3339
|
+
throw AxiosError$1.from(err, err && err.code, config, request, err && err.response);
|
|
3044
3340
|
}
|
|
3045
|
-
}
|
|
3341
|
+
};
|
|
3046
3342
|
};
|
|
3047
3343
|
|
|
3048
3344
|
const seedCache = new Map();
|
|
3049
3345
|
|
|
3050
3346
|
const getFetch = (config) => {
|
|
3051
3347
|
let env = (config && config.env) || {};
|
|
3052
|
-
const {fetch, Request, Response} = env;
|
|
3053
|
-
const seeds = [
|
|
3054
|
-
Request, Response, fetch
|
|
3055
|
-
];
|
|
3348
|
+
const { fetch, Request, Response } = env;
|
|
3349
|
+
const seeds = [Request, Response, fetch];
|
|
3056
3350
|
|
|
3057
|
-
let len = seeds.length,
|
|
3058
|
-
|
|
3351
|
+
let len = seeds.length,
|
|
3352
|
+
i = len,
|
|
3353
|
+
seed,
|
|
3354
|
+
target,
|
|
3355
|
+
map = seedCache;
|
|
3059
3356
|
|
|
3060
3357
|
while (i--) {
|
|
3061
3358
|
seed = seeds[i];
|
|
3062
3359
|
target = map.get(seed);
|
|
3063
3360
|
|
|
3064
|
-
target === undefined && map.set(seed, target =
|
|
3361
|
+
target === undefined && map.set(seed, (target = i ? new Map() : factory(env)));
|
|
3065
3362
|
|
|
3066
3363
|
map = target;
|
|
3067
3364
|
}
|
|
@@ -3077,7 +3374,7 @@ getFetch();
|
|
|
3077
3374
|
* - `http` for Node.js
|
|
3078
3375
|
* - `xhr` for browsers
|
|
3079
3376
|
* - `fetch` for fetch API-based requests
|
|
3080
|
-
*
|
|
3377
|
+
*
|
|
3081
3378
|
* @type {Object<string, Function|Object>}
|
|
3082
3379
|
*/
|
|
3083
3380
|
const knownAdapters = {
|
|
@@ -3085,7 +3382,7 @@ const knownAdapters = {
|
|
|
3085
3382
|
xhr: xhrAdapter,
|
|
3086
3383
|
fetch: {
|
|
3087
3384
|
get: getFetch,
|
|
3088
|
-
}
|
|
3385
|
+
},
|
|
3089
3386
|
};
|
|
3090
3387
|
|
|
3091
3388
|
// Assign adapter names for easier debugging and identification
|
|
@@ -3102,7 +3399,7 @@ utils$1.forEach(knownAdapters, (fn, value) => {
|
|
|
3102
3399
|
|
|
3103
3400
|
/**
|
|
3104
3401
|
* Render a rejection reason string for unknown or unsupported adapters
|
|
3105
|
-
*
|
|
3402
|
+
*
|
|
3106
3403
|
* @param {string} reason
|
|
3107
3404
|
* @returns {string}
|
|
3108
3405
|
*/
|
|
@@ -3110,17 +3407,18 @@ const renderReason = (reason) => `- ${reason}`;
|
|
|
3110
3407
|
|
|
3111
3408
|
/**
|
|
3112
3409
|
* Check if the adapter is resolved (function, null, or false)
|
|
3113
|
-
*
|
|
3410
|
+
*
|
|
3114
3411
|
* @param {Function|null|false} adapter
|
|
3115
3412
|
* @returns {boolean}
|
|
3116
3413
|
*/
|
|
3117
|
-
const isResolvedHandle = (adapter) =>
|
|
3414
|
+
const isResolvedHandle = (adapter) =>
|
|
3415
|
+
utils$1.isFunction(adapter) || adapter === null || adapter === false;
|
|
3118
3416
|
|
|
3119
3417
|
/**
|
|
3120
3418
|
* Get the first suitable adapter from the provided list.
|
|
3121
3419
|
* Tries each adapter in order until a supported one is found.
|
|
3122
3420
|
* Throws an AxiosError if no adapter is suitable.
|
|
3123
|
-
*
|
|
3421
|
+
*
|
|
3124
3422
|
* @param {Array<string|Function>|string|Function} adapters - Adapter(s) by name or function.
|
|
3125
3423
|
* @param {Object} config - Axios request configuration
|
|
3126
3424
|
* @throws {AxiosError} If no suitable adapter is available
|
|
@@ -3145,7 +3443,7 @@ function getAdapter(adapters, config) {
|
|
|
3145
3443
|
adapter = knownAdapters[(id = String(nameOrAdapter)).toLowerCase()];
|
|
3146
3444
|
|
|
3147
3445
|
if (adapter === undefined) {
|
|
3148
|
-
throw new AxiosError(`Unknown adapter '${id}'`);
|
|
3446
|
+
throw new AxiosError$1(`Unknown adapter '${id}'`);
|
|
3149
3447
|
}
|
|
3150
3448
|
}
|
|
3151
3449
|
|
|
@@ -3157,16 +3455,19 @@ function getAdapter(adapters, config) {
|
|
|
3157
3455
|
}
|
|
3158
3456
|
|
|
3159
3457
|
if (!adapter) {
|
|
3160
|
-
const reasons = Object.entries(rejectedReasons)
|
|
3161
|
-
|
|
3458
|
+
const reasons = Object.entries(rejectedReasons).map(
|
|
3459
|
+
([id, state]) =>
|
|
3460
|
+
`adapter ${id} ` +
|
|
3162
3461
|
(state === false ? 'is not supported by the environment' : 'is not available in the build')
|
|
3163
|
-
|
|
3462
|
+
);
|
|
3164
3463
|
|
|
3165
|
-
let s = length
|
|
3166
|
-
|
|
3167
|
-
|
|
3464
|
+
let s = length
|
|
3465
|
+
? reasons.length > 1
|
|
3466
|
+
? 'since :\n' + reasons.map(renderReason).join('\n')
|
|
3467
|
+
: ' ' + renderReason(reasons[0])
|
|
3468
|
+
: 'as no adapter specified';
|
|
3168
3469
|
|
|
3169
|
-
throw new AxiosError(
|
|
3470
|
+
throw new AxiosError$1(
|
|
3170
3471
|
`There is no suitable adapter to dispatch the request ` + s,
|
|
3171
3472
|
'ERR_NOT_SUPPORT'
|
|
3172
3473
|
);
|
|
@@ -3189,7 +3490,7 @@ var adapters = {
|
|
|
3189
3490
|
* Exposes all known adapters
|
|
3190
3491
|
* @type {Object<string, Function|Object>}
|
|
3191
3492
|
*/
|
|
3192
|
-
adapters: knownAdapters
|
|
3493
|
+
adapters: knownAdapters,
|
|
3193
3494
|
};
|
|
3194
3495
|
|
|
3195
3496
|
/**
|
|
@@ -3205,7 +3506,7 @@ function throwIfCancellationRequested(config) {
|
|
|
3205
3506
|
}
|
|
3206
3507
|
|
|
3207
3508
|
if (config.signal && config.signal.aborted) {
|
|
3208
|
-
throw new CanceledError(null, config);
|
|
3509
|
+
throw new CanceledError$1(null, config);
|
|
3209
3510
|
}
|
|
3210
3511
|
}
|
|
3211
3512
|
|
|
@@ -3222,10 +3523,7 @@ function dispatchRequest(config) {
|
|
|
3222
3523
|
config.headers = AxiosHeaders$1.from(config.headers);
|
|
3223
3524
|
|
|
3224
3525
|
// Transform request data
|
|
3225
|
-
config.data = transformData.call(
|
|
3226
|
-
config,
|
|
3227
|
-
config.transformRequest
|
|
3228
|
-
);
|
|
3526
|
+
config.data = transformData.call(config, config.transformRequest);
|
|
3229
3527
|
|
|
3230
3528
|
if (['post', 'put', 'patch'].indexOf(config.method) !== -1) {
|
|
3231
3529
|
config.headers.setContentType('application/x-www-form-urlencoded', false);
|
|
@@ -3233,39 +3531,38 @@ function dispatchRequest(config) {
|
|
|
3233
3531
|
|
|
3234
3532
|
const adapter = adapters.getAdapter(config.adapter || defaults$1.adapter, config);
|
|
3235
3533
|
|
|
3236
|
-
return adapter(config).then(
|
|
3237
|
-
|
|
3238
|
-
|
|
3239
|
-
// Transform response data
|
|
3240
|
-
response.data = transformData.call(
|
|
3241
|
-
config,
|
|
3242
|
-
config.transformResponse,
|
|
3243
|
-
response
|
|
3244
|
-
);
|
|
3245
|
-
|
|
3246
|
-
response.headers = AxiosHeaders$1.from(response.headers);
|
|
3247
|
-
|
|
3248
|
-
return response;
|
|
3249
|
-
}, function onAdapterRejection(reason) {
|
|
3250
|
-
if (!isCancel(reason)) {
|
|
3534
|
+
return adapter(config).then(
|
|
3535
|
+
function onAdapterResolution(response) {
|
|
3251
3536
|
throwIfCancellationRequested(config);
|
|
3252
3537
|
|
|
3253
3538
|
// Transform response data
|
|
3254
|
-
|
|
3255
|
-
|
|
3256
|
-
|
|
3257
|
-
|
|
3258
|
-
|
|
3259
|
-
|
|
3260
|
-
|
|
3539
|
+
response.data = transformData.call(config, config.transformResponse, response);
|
|
3540
|
+
|
|
3541
|
+
response.headers = AxiosHeaders$1.from(response.headers);
|
|
3542
|
+
|
|
3543
|
+
return response;
|
|
3544
|
+
},
|
|
3545
|
+
function onAdapterRejection(reason) {
|
|
3546
|
+
if (!isCancel(reason)) {
|
|
3547
|
+
throwIfCancellationRequested(config);
|
|
3548
|
+
|
|
3549
|
+
// Transform response data
|
|
3550
|
+
if (reason && reason.response) {
|
|
3551
|
+
reason.response.data = transformData.call(
|
|
3552
|
+
config,
|
|
3553
|
+
config.transformResponse,
|
|
3554
|
+
reason.response
|
|
3555
|
+
);
|
|
3556
|
+
reason.response.headers = AxiosHeaders$1.from(reason.response.headers);
|
|
3557
|
+
}
|
|
3261
3558
|
}
|
|
3262
|
-
}
|
|
3263
3559
|
|
|
3264
|
-
|
|
3265
|
-
|
|
3560
|
+
return Promise.reject(reason);
|
|
3561
|
+
}
|
|
3562
|
+
);
|
|
3266
3563
|
}
|
|
3267
3564
|
|
|
3268
|
-
const VERSION = "1.13.
|
|
3565
|
+
const VERSION = "1.13.6";
|
|
3269
3566
|
|
|
3270
3567
|
const validators$1 = {};
|
|
3271
3568
|
|
|
@@ -3289,15 +3586,23 @@ const deprecatedWarnings = {};
|
|
|
3289
3586
|
*/
|
|
3290
3587
|
validators$1.transitional = function transitional(validator, version, message) {
|
|
3291
3588
|
function formatMessage(opt, desc) {
|
|
3292
|
-
return
|
|
3589
|
+
return (
|
|
3590
|
+
'[Axios v' +
|
|
3591
|
+
VERSION +
|
|
3592
|
+
"] Transitional option '" +
|
|
3593
|
+
opt +
|
|
3594
|
+
"'" +
|
|
3595
|
+
desc +
|
|
3596
|
+
(message ? '. ' + message : '')
|
|
3597
|
+
);
|
|
3293
3598
|
}
|
|
3294
3599
|
|
|
3295
3600
|
// eslint-disable-next-line func-names
|
|
3296
3601
|
return (value, opt, opts) => {
|
|
3297
3602
|
if (validator === false) {
|
|
3298
|
-
throw new AxiosError(
|
|
3603
|
+
throw new AxiosError$1(
|
|
3299
3604
|
formatMessage(opt, ' has been removed' + (version ? ' in ' + version : '')),
|
|
3300
|
-
AxiosError.ERR_DEPRECATED
|
|
3605
|
+
AxiosError$1.ERR_DEPRECATED
|
|
3301
3606
|
);
|
|
3302
3607
|
}
|
|
3303
3608
|
|
|
@@ -3321,7 +3626,7 @@ validators$1.spelling = function spelling(correctSpelling) {
|
|
|
3321
3626
|
// eslint-disable-next-line no-console
|
|
3322
3627
|
console.warn(`${opt} is likely a misspelling of ${correctSpelling}`);
|
|
3323
3628
|
return true;
|
|
3324
|
-
}
|
|
3629
|
+
};
|
|
3325
3630
|
};
|
|
3326
3631
|
|
|
3327
3632
|
/**
|
|
@@ -3336,7 +3641,7 @@ validators$1.spelling = function spelling(correctSpelling) {
|
|
|
3336
3641
|
|
|
3337
3642
|
function assertOptions(options, schema, allowUnknown) {
|
|
3338
3643
|
if (typeof options !== 'object') {
|
|
3339
|
-
throw new AxiosError('options must be an object', AxiosError.ERR_BAD_OPTION_VALUE);
|
|
3644
|
+
throw new AxiosError$1('options must be an object', AxiosError$1.ERR_BAD_OPTION_VALUE);
|
|
3340
3645
|
}
|
|
3341
3646
|
const keys = Object.keys(options);
|
|
3342
3647
|
let i = keys.length;
|
|
@@ -3347,19 +3652,22 @@ function assertOptions(options, schema, allowUnknown) {
|
|
|
3347
3652
|
const value = options[opt];
|
|
3348
3653
|
const result = value === undefined || validator(value, opt, options);
|
|
3349
3654
|
if (result !== true) {
|
|
3350
|
-
throw new AxiosError(
|
|
3655
|
+
throw new AxiosError$1(
|
|
3656
|
+
'option ' + opt + ' must be ' + result,
|
|
3657
|
+
AxiosError$1.ERR_BAD_OPTION_VALUE
|
|
3658
|
+
);
|
|
3351
3659
|
}
|
|
3352
3660
|
continue;
|
|
3353
3661
|
}
|
|
3354
3662
|
if (allowUnknown !== true) {
|
|
3355
|
-
throw new AxiosError('Unknown option ' + opt, AxiosError.ERR_BAD_OPTION);
|
|
3663
|
+
throw new AxiosError$1('Unknown option ' + opt, AxiosError$1.ERR_BAD_OPTION);
|
|
3356
3664
|
}
|
|
3357
3665
|
}
|
|
3358
3666
|
}
|
|
3359
3667
|
|
|
3360
3668
|
var validator = {
|
|
3361
3669
|
assertOptions,
|
|
3362
|
-
validators: validators$1
|
|
3670
|
+
validators: validators$1,
|
|
3363
3671
|
};
|
|
3364
3672
|
|
|
3365
3673
|
const validators = validator.validators;
|
|
@@ -3376,7 +3684,7 @@ class Axios {
|
|
|
3376
3684
|
this.defaults = instanceConfig || {};
|
|
3377
3685
|
this.interceptors = {
|
|
3378
3686
|
request: new InterceptorManager$1(),
|
|
3379
|
-
response: new InterceptorManager$1()
|
|
3687
|
+
response: new InterceptorManager$1(),
|
|
3380
3688
|
};
|
|
3381
3689
|
}
|
|
3382
3690
|
|
|
@@ -3427,26 +3735,35 @@ class Axios {
|
|
|
3427
3735
|
|
|
3428
3736
|
config = mergeConfig(this.defaults, config);
|
|
3429
3737
|
|
|
3430
|
-
const {transitional, paramsSerializer, headers} = config;
|
|
3738
|
+
const { transitional, paramsSerializer, headers } = config;
|
|
3431
3739
|
|
|
3432
3740
|
if (transitional !== undefined) {
|
|
3433
|
-
validator.assertOptions(
|
|
3434
|
-
|
|
3435
|
-
|
|
3436
|
-
|
|
3437
|
-
|
|
3741
|
+
validator.assertOptions(
|
|
3742
|
+
transitional,
|
|
3743
|
+
{
|
|
3744
|
+
silentJSONParsing: validators.transitional(validators.boolean),
|
|
3745
|
+
forcedJSONParsing: validators.transitional(validators.boolean),
|
|
3746
|
+
clarifyTimeoutError: validators.transitional(validators.boolean),
|
|
3747
|
+
legacyInterceptorReqResOrdering: validators.transitional(validators.boolean),
|
|
3748
|
+
},
|
|
3749
|
+
false
|
|
3750
|
+
);
|
|
3438
3751
|
}
|
|
3439
3752
|
|
|
3440
3753
|
if (paramsSerializer != null) {
|
|
3441
3754
|
if (utils$1.isFunction(paramsSerializer)) {
|
|
3442
3755
|
config.paramsSerializer = {
|
|
3443
|
-
serialize: paramsSerializer
|
|
3756
|
+
serialize: paramsSerializer,
|
|
3444
3757
|
};
|
|
3445
3758
|
} else {
|
|
3446
|
-
validator.assertOptions(
|
|
3447
|
-
|
|
3448
|
-
|
|
3449
|
-
|
|
3759
|
+
validator.assertOptions(
|
|
3760
|
+
paramsSerializer,
|
|
3761
|
+
{
|
|
3762
|
+
encode: validators.function,
|
|
3763
|
+
serialize: validators.function,
|
|
3764
|
+
},
|
|
3765
|
+
true
|
|
3766
|
+
);
|
|
3450
3767
|
}
|
|
3451
3768
|
}
|
|
3452
3769
|
|
|
@@ -3457,26 +3774,25 @@ class Axios {
|
|
|
3457
3774
|
config.allowAbsoluteUrls = true;
|
|
3458
3775
|
}
|
|
3459
3776
|
|
|
3460
|
-
validator.assertOptions(
|
|
3461
|
-
|
|
3462
|
-
|
|
3463
|
-
|
|
3777
|
+
validator.assertOptions(
|
|
3778
|
+
config,
|
|
3779
|
+
{
|
|
3780
|
+
baseUrl: validators.spelling('baseURL'),
|
|
3781
|
+
withXsrfToken: validators.spelling('withXSRFToken'),
|
|
3782
|
+
},
|
|
3783
|
+
true
|
|
3784
|
+
);
|
|
3464
3785
|
|
|
3465
3786
|
// Set config.method
|
|
3466
3787
|
config.method = (config.method || this.defaults.method || 'get').toLowerCase();
|
|
3467
3788
|
|
|
3468
3789
|
// Flatten headers
|
|
3469
|
-
let contextHeaders = headers && utils$1.merge(
|
|
3470
|
-
headers.common,
|
|
3471
|
-
headers[config.method]
|
|
3472
|
-
);
|
|
3790
|
+
let contextHeaders = headers && utils$1.merge(headers.common, headers[config.method]);
|
|
3473
3791
|
|
|
3474
|
-
headers &&
|
|
3475
|
-
['delete', 'get', 'head', 'post', 'put', 'patch', 'common'],
|
|
3476
|
-
(method) => {
|
|
3792
|
+
headers &&
|
|
3793
|
+
utils$1.forEach(['delete', 'get', 'head', 'post', 'put', 'patch', 'common'], (method) => {
|
|
3477
3794
|
delete headers[method];
|
|
3478
|
-
}
|
|
3479
|
-
);
|
|
3795
|
+
});
|
|
3480
3796
|
|
|
3481
3797
|
config.headers = AxiosHeaders$1.concat(contextHeaders, headers);
|
|
3482
3798
|
|
|
@@ -3490,7 +3806,15 @@ class Axios {
|
|
|
3490
3806
|
|
|
3491
3807
|
synchronousRequestInterceptors = synchronousRequestInterceptors && interceptor.synchronous;
|
|
3492
3808
|
|
|
3493
|
-
|
|
3809
|
+
const transitional = config.transitional || transitionalDefaults;
|
|
3810
|
+
const legacyInterceptorReqResOrdering =
|
|
3811
|
+
transitional && transitional.legacyInterceptorReqResOrdering;
|
|
3812
|
+
|
|
3813
|
+
if (legacyInterceptorReqResOrdering) {
|
|
3814
|
+
requestInterceptorChain.unshift(interceptor.fulfilled, interceptor.rejected);
|
|
3815
|
+
} else {
|
|
3816
|
+
requestInterceptorChain.push(interceptor.fulfilled, interceptor.rejected);
|
|
3817
|
+
}
|
|
3494
3818
|
});
|
|
3495
3819
|
|
|
3496
3820
|
const responseInterceptorChain = [];
|
|
@@ -3558,12 +3882,14 @@ class Axios {
|
|
|
3558
3882
|
// Provide aliases for supported request methods
|
|
3559
3883
|
utils$1.forEach(['delete', 'get', 'head', 'options'], function forEachMethodNoData(method) {
|
|
3560
3884
|
/*eslint func-names:0*/
|
|
3561
|
-
Axios.prototype[method] = function(url, config) {
|
|
3562
|
-
return this.request(
|
|
3563
|
-
|
|
3564
|
-
|
|
3565
|
-
|
|
3566
|
-
|
|
3885
|
+
Axios.prototype[method] = function (url, config) {
|
|
3886
|
+
return this.request(
|
|
3887
|
+
mergeConfig(config || {}, {
|
|
3888
|
+
method,
|
|
3889
|
+
url,
|
|
3890
|
+
data: (config || {}).data,
|
|
3891
|
+
})
|
|
3892
|
+
);
|
|
3567
3893
|
};
|
|
3568
3894
|
});
|
|
3569
3895
|
|
|
@@ -3572,14 +3898,18 @@ utils$1.forEach(['post', 'put', 'patch'], function forEachMethodWithData(method)
|
|
|
3572
3898
|
|
|
3573
3899
|
function generateHTTPMethod(isForm) {
|
|
3574
3900
|
return function httpMethod(url, data, config) {
|
|
3575
|
-
return this.request(
|
|
3576
|
-
|
|
3577
|
-
|
|
3578
|
-
|
|
3579
|
-
|
|
3580
|
-
|
|
3581
|
-
|
|
3582
|
-
|
|
3901
|
+
return this.request(
|
|
3902
|
+
mergeConfig(config || {}, {
|
|
3903
|
+
method,
|
|
3904
|
+
headers: isForm
|
|
3905
|
+
? {
|
|
3906
|
+
'Content-Type': 'multipart/form-data',
|
|
3907
|
+
}
|
|
3908
|
+
: {},
|
|
3909
|
+
url,
|
|
3910
|
+
data,
|
|
3911
|
+
})
|
|
3912
|
+
);
|
|
3583
3913
|
};
|
|
3584
3914
|
}
|
|
3585
3915
|
|
|
@@ -3612,7 +3942,7 @@ class CancelToken {
|
|
|
3612
3942
|
const token = this;
|
|
3613
3943
|
|
|
3614
3944
|
// eslint-disable-next-line func-names
|
|
3615
|
-
this.promise.then(cancel => {
|
|
3945
|
+
this.promise.then((cancel) => {
|
|
3616
3946
|
if (!token._listeners) return;
|
|
3617
3947
|
|
|
3618
3948
|
let i = token._listeners.length;
|
|
@@ -3624,10 +3954,10 @@ class CancelToken {
|
|
|
3624
3954
|
});
|
|
3625
3955
|
|
|
3626
3956
|
// eslint-disable-next-line func-names
|
|
3627
|
-
this.promise.then = onfulfilled => {
|
|
3957
|
+
this.promise.then = (onfulfilled) => {
|
|
3628
3958
|
let _resolve;
|
|
3629
3959
|
// eslint-disable-next-line func-names
|
|
3630
|
-
const promise = new Promise(resolve => {
|
|
3960
|
+
const promise = new Promise((resolve) => {
|
|
3631
3961
|
token.subscribe(resolve);
|
|
3632
3962
|
_resolve = resolve;
|
|
3633
3963
|
}).then(onfulfilled);
|
|
@@ -3645,7 +3975,7 @@ class CancelToken {
|
|
|
3645
3975
|
return;
|
|
3646
3976
|
}
|
|
3647
3977
|
|
|
3648
|
-
token.reason = new CanceledError(message, config, request);
|
|
3978
|
+
token.reason = new CanceledError$1(message, config, request);
|
|
3649
3979
|
resolvePromise(token.reason);
|
|
3650
3980
|
});
|
|
3651
3981
|
}
|
|
@@ -3715,7 +4045,7 @@ class CancelToken {
|
|
|
3715
4045
|
});
|
|
3716
4046
|
return {
|
|
3717
4047
|
token,
|
|
3718
|
-
cancel
|
|
4048
|
+
cancel,
|
|
3719
4049
|
};
|
|
3720
4050
|
}
|
|
3721
4051
|
}
|
|
@@ -3729,7 +4059,7 @@ var CancelToken$1 = CancelToken;
|
|
|
3729
4059
|
*
|
|
3730
4060
|
* ```js
|
|
3731
4061
|
* function f(x, y, z) {}
|
|
3732
|
-
*
|
|
4062
|
+
* const args = [1, 2, 3];
|
|
3733
4063
|
* f.apply(null, args);
|
|
3734
4064
|
* ```
|
|
3735
4065
|
*
|
|
@@ -3757,7 +4087,7 @@ function spread(callback) {
|
|
|
3757
4087
|
* @returns {boolean} True if the payload is an error thrown by Axios, otherwise false
|
|
3758
4088
|
*/
|
|
3759
4089
|
function isAxiosError(payload) {
|
|
3760
|
-
return utils$1.isObject(payload) &&
|
|
4090
|
+
return utils$1.isObject(payload) && payload.isAxiosError === true;
|
|
3761
4091
|
}
|
|
3762
4092
|
|
|
3763
4093
|
const HttpStatusCode = {
|
|
@@ -3850,10 +4180,10 @@ function createInstance(defaultConfig) {
|
|
|
3850
4180
|
const instance = bind(Axios$1.prototype.request, context);
|
|
3851
4181
|
|
|
3852
4182
|
// Copy axios.prototype to instance
|
|
3853
|
-
utils$1.extend(instance, Axios$1.prototype, context, {allOwnKeys: true});
|
|
4183
|
+
utils$1.extend(instance, Axios$1.prototype, context, { allOwnKeys: true });
|
|
3854
4184
|
|
|
3855
4185
|
// Copy context to instance
|
|
3856
|
-
utils$1.extend(instance, context, null, {allOwnKeys: true});
|
|
4186
|
+
utils$1.extend(instance, context, null, { allOwnKeys: true });
|
|
3857
4187
|
|
|
3858
4188
|
// Factory for creating new instances
|
|
3859
4189
|
instance.create = function create(instanceConfig) {
|
|
@@ -3870,14 +4200,14 @@ const axios = createInstance(defaults$1);
|
|
|
3870
4200
|
axios.Axios = Axios$1;
|
|
3871
4201
|
|
|
3872
4202
|
// Expose Cancel & CancelToken
|
|
3873
|
-
axios.CanceledError = CanceledError;
|
|
4203
|
+
axios.CanceledError = CanceledError$1;
|
|
3874
4204
|
axios.CancelToken = CancelToken$1;
|
|
3875
4205
|
axios.isCancel = isCancel;
|
|
3876
4206
|
axios.VERSION = VERSION;
|
|
3877
4207
|
axios.toFormData = toFormData;
|
|
3878
4208
|
|
|
3879
4209
|
// Expose AxiosError class
|
|
3880
|
-
axios.AxiosError = AxiosError;
|
|
4210
|
+
axios.AxiosError = AxiosError$1;
|
|
3881
4211
|
|
|
3882
4212
|
// alias for CanceledError for backward compatibility
|
|
3883
4213
|
axios.Cancel = axios.CanceledError;
|
|
@@ -3897,7 +4227,7 @@ axios.mergeConfig = mergeConfig;
|
|
|
3897
4227
|
|
|
3898
4228
|
axios.AxiosHeaders = AxiosHeaders$1;
|
|
3899
4229
|
|
|
3900
|
-
axios.formToJSON = thing => formDataToJSON(utils$1.isHTMLForm(thing) ? new FormData(thing) : thing);
|
|
4230
|
+
axios.formToJSON = (thing) => formDataToJSON(utils$1.isHTMLForm(thing) ? new FormData(thing) : thing);
|
|
3901
4231
|
|
|
3902
4232
|
axios.getAdapter = adapters.getAdapter;
|
|
3903
4233
|
|