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