cloudstructs 0.12.8 → 0.12.9
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 +5 -5
- package/assets/slack-textract/detect.lambda/index.js +437 -344
- package/assets/ssl-server-test/analyze.lambda/index.js +51 -31
- package/assets/toolkit-cleaner/clean.lambda/index.js +51 -31
- 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 +101 -33
- 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 +101 -33
- 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/handlers/concurrent-execution-handler/concurrent-execution-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/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 -0
- 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/with-durable-execution.d.ts.map +1 -1
- package/node_modules/@aws/durable-execution-sdk-js/package.json +1 -2
- package/node_modules/@aws-sdk/client-lambda/dist-cjs/index.js +287 -3988
- 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/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 +28 -2
- 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 +20 -20
- package/node_modules/@aws-sdk/client-sso/dist-cjs/index.js +32 -239
- package/node_modules/@aws-sdk/client-sso/dist-cjs/models/SSOServiceException.js +12 -0
- package/node_modules/@aws-sdk/client-sso/dist-cjs/models/errors.js +56 -0
- package/node_modules/@aws-sdk/client-sso/dist-cjs/runtimeConfig.shared.js +2 -0
- package/node_modules/@aws-sdk/client-sso/dist-cjs/schemas/schemas_0.js +161 -0
- package/node_modules/@aws-sdk/client-sso/dist-es/SSO.js +7 -1
- package/node_modules/@aws-sdk/client-sso/dist-es/runtimeConfig.shared.js +2 -0
- package/node_modules/@aws-sdk/client-sso/dist-es/schemas/schemas_0.js +32 -26
- package/node_modules/@aws-sdk/client-sso/dist-types/SSO.d.ts +15 -1
- package/node_modules/@aws-sdk/client-sso/dist-types/schemas/schemas_0.d.ts +12 -5
- package/node_modules/@aws-sdk/client-sso/dist-types/ts3.4/SSO.d.ts +19 -1
- package/node_modules/@aws-sdk/client-sso/dist-types/ts3.4/schemas/schemas_0.d.ts +7 -5
- package/node_modules/@aws-sdk/client-sso/node_modules/@aws-sdk/util-endpoints/LICENSE +201 -0
- package/node_modules/@aws-sdk/client-sso/node_modules/@aws-sdk/util-endpoints/README.md +6 -0
- package/node_modules/@aws-sdk/client-sso/node_modules/@aws-sdk/util-endpoints/dist-cjs/index.js +415 -0
- package/node_modules/@aws-sdk/client-sso/node_modules/@aws-sdk/util-endpoints/dist-cjs/lib/aws/partitions.json +267 -0
- package/node_modules/@aws-sdk/client-sso/node_modules/@aws-sdk/util-endpoints/dist-es/aws.js +10 -0
- package/node_modules/@aws-sdk/client-sso/node_modules/@aws-sdk/util-endpoints/dist-es/index.js +6 -0
- package/node_modules/@aws-sdk/client-sso/node_modules/@aws-sdk/util-endpoints/dist-es/lib/aws/index.js +3 -0
- package/node_modules/@aws-sdk/client-sso/node_modules/@aws-sdk/util-endpoints/dist-es/lib/aws/isVirtualHostableS3Bucket.js +25 -0
- package/node_modules/@aws-sdk/client-sso/node_modules/@aws-sdk/util-endpoints/dist-es/lib/aws/parseArn.js +18 -0
- package/node_modules/@aws-sdk/client-sso/node_modules/@aws-sdk/util-endpoints/dist-es/lib/aws/partition.js +41 -0
- package/node_modules/@aws-sdk/client-sso/node_modules/@aws-sdk/util-endpoints/dist-es/lib/aws/partitions.json +267 -0
- package/node_modules/@aws-sdk/client-sso/node_modules/@aws-sdk/util-endpoints/dist-es/lib/isIpAddress.js +1 -0
- package/node_modules/@aws-sdk/client-sso/node_modules/@aws-sdk/util-endpoints/dist-es/resolveDefaultAwsRegionalEndpointsConfig.js +21 -0
- package/node_modules/@aws-sdk/client-sso/node_modules/@aws-sdk/util-endpoints/dist-es/resolveEndpoint.js +1 -0
- package/node_modules/@aws-sdk/client-sso/node_modules/@aws-sdk/util-endpoints/dist-es/types/EndpointError.js +1 -0
- package/node_modules/@aws-sdk/client-sso/node_modules/@aws-sdk/util-endpoints/dist-es/types/EndpointRuleObject.js +1 -0
- package/node_modules/@aws-sdk/client-sso/node_modules/@aws-sdk/util-endpoints/dist-es/types/ErrorRuleObject.js +1 -0
- package/node_modules/@aws-sdk/client-sso/node_modules/@aws-sdk/util-endpoints/dist-es/types/RuleSetObject.js +1 -0
- package/node_modules/@aws-sdk/client-sso/node_modules/@aws-sdk/util-endpoints/dist-es/types/TreeRuleObject.js +1 -0
- package/node_modules/@aws-sdk/client-sso/node_modules/@aws-sdk/util-endpoints/dist-es/types/index.js +6 -0
- package/node_modules/@aws-sdk/client-sso/node_modules/@aws-sdk/util-endpoints/dist-es/types/shared.js +1 -0
- package/node_modules/@aws-sdk/client-sso/node_modules/@aws-sdk/util-endpoints/dist-types/aws.d.ts +2 -0
- package/node_modules/@aws-sdk/client-sso/node_modules/@aws-sdk/util-endpoints/dist-types/index.d.ts +6 -0
- package/node_modules/@aws-sdk/client-sso/node_modules/@aws-sdk/util-endpoints/dist-types/lib/aws/index.d.ts +3 -0
- package/node_modules/@aws-sdk/client-sso/node_modules/@aws-sdk/util-endpoints/dist-types/lib/aws/isVirtualHostableS3Bucket.d.ts +5 -0
- package/node_modules/@aws-sdk/client-sso/node_modules/@aws-sdk/util-endpoints/dist-types/lib/aws/parseArn.d.ts +7 -0
- package/node_modules/@aws-sdk/client-sso/node_modules/@aws-sdk/util-endpoints/dist-types/lib/aws/partition.d.ts +38 -0
- package/node_modules/@aws-sdk/client-sso/node_modules/@aws-sdk/util-endpoints/dist-types/lib/isIpAddress.d.ts +1 -0
- package/node_modules/@aws-sdk/client-sso/node_modules/@aws-sdk/util-endpoints/dist-types/resolveDefaultAwsRegionalEndpointsConfig.d.ts +56 -0
- package/node_modules/@aws-sdk/client-sso/node_modules/@aws-sdk/util-endpoints/dist-types/resolveEndpoint.d.ts +1 -0
- package/node_modules/@aws-sdk/client-sso/node_modules/@aws-sdk/util-endpoints/dist-types/ts3.4/aws.d.ts +2 -0
- package/node_modules/@aws-sdk/client-sso/node_modules/@aws-sdk/util-endpoints/dist-types/ts3.4/index.d.ts +6 -0
- package/node_modules/@aws-sdk/client-sso/node_modules/@aws-sdk/util-endpoints/dist-types/ts3.4/lib/aws/index.d.ts +3 -0
- package/node_modules/@aws-sdk/client-sso/node_modules/@aws-sdk/util-endpoints/dist-types/ts3.4/lib/aws/isVirtualHostableS3Bucket.d.ts +4 -0
- package/node_modules/@aws-sdk/client-sso/node_modules/@aws-sdk/util-endpoints/dist-types/ts3.4/lib/aws/parseArn.d.ts +2 -0
- package/node_modules/@aws-sdk/client-sso/node_modules/@aws-sdk/util-endpoints/dist-types/ts3.4/lib/aws/partition.d.ts +28 -0
- package/node_modules/@aws-sdk/client-sso/node_modules/@aws-sdk/util-endpoints/dist-types/ts3.4/lib/isIpAddress.d.ts +1 -0
- package/node_modules/@aws-sdk/client-sso/node_modules/@aws-sdk/util-endpoints/dist-types/ts3.4/resolveDefaultAwsRegionalEndpointsConfig.d.ts +35 -0
- package/node_modules/@aws-sdk/client-sso/node_modules/@aws-sdk/util-endpoints/dist-types/ts3.4/resolveEndpoint.d.ts +1 -0
- package/node_modules/@aws-sdk/client-sso/node_modules/@aws-sdk/util-endpoints/dist-types/ts3.4/types/EndpointError.d.ts +1 -0
- package/node_modules/@aws-sdk/client-sso/node_modules/@aws-sdk/util-endpoints/dist-types/ts3.4/types/EndpointRuleObject.d.ts +6 -0
- package/node_modules/@aws-sdk/client-sso/node_modules/@aws-sdk/util-endpoints/dist-types/ts3.4/types/ErrorRuleObject.d.ts +1 -0
- package/node_modules/@aws-sdk/client-sso/node_modules/@aws-sdk/util-endpoints/dist-types/ts3.4/types/RuleSetObject.d.ts +5 -0
- package/node_modules/@aws-sdk/client-sso/node_modules/@aws-sdk/util-endpoints/dist-types/ts3.4/types/TreeRuleObject.d.ts +1 -0
- package/node_modules/@aws-sdk/client-sso/node_modules/@aws-sdk/util-endpoints/dist-types/ts3.4/types/index.d.ts +6 -0
- package/node_modules/@aws-sdk/client-sso/node_modules/@aws-sdk/util-endpoints/dist-types/ts3.4/types/shared.d.ts +12 -0
- package/node_modules/@aws-sdk/client-sso/node_modules/@aws-sdk/util-endpoints/dist-types/types/EndpointError.d.ts +1 -0
- package/node_modules/@aws-sdk/client-sso/node_modules/@aws-sdk/util-endpoints/dist-types/types/EndpointRuleObject.d.ts +1 -0
- package/node_modules/@aws-sdk/client-sso/node_modules/@aws-sdk/util-endpoints/dist-types/types/ErrorRuleObject.d.ts +1 -0
- package/node_modules/@aws-sdk/client-sso/node_modules/@aws-sdk/util-endpoints/dist-types/types/RuleSetObject.d.ts +1 -0
- package/node_modules/@aws-sdk/client-sso/node_modules/@aws-sdk/util-endpoints/dist-types/types/TreeRuleObject.d.ts +1 -0
- package/node_modules/@aws-sdk/client-sso/node_modules/@aws-sdk/util-endpoints/dist-types/types/index.d.ts +6 -0
- package/node_modules/@aws-sdk/client-sso/node_modules/@aws-sdk/util-endpoints/dist-types/types/shared.d.ts +1 -0
- package/node_modules/@aws-sdk/client-sso/node_modules/@aws-sdk/util-endpoints/package.json +60 -0
- package/node_modules/@aws-sdk/client-sso/package.json +18 -18
- package/node_modules/@aws-sdk/core/account-id-endpoint.js +0 -1
- package/node_modules/@aws-sdk/core/dist-cjs/index.js +30 -50
- package/node_modules/@aws-sdk/core/dist-cjs/submodules/protocols/index.js +30 -50
- package/node_modules/@aws-sdk/core/dist-es/submodules/protocols/json/JsonShapeDeserializer.js +1 -2
- 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 +1 -0
- 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/XmlShapeSerializer.js +1 -2
- package/node_modules/@aws-sdk/core/dist-types/submodules/protocols/query/QuerySerializerSettings.d.ts +4 -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/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 +7 -7
- package/node_modules/@aws-sdk/credential-provider-env/package.json +5 -5
- package/node_modules/@aws-sdk/credential-provider-http/package.json +8 -8
- package/node_modules/@aws-sdk/credential-provider-ini/package.json +12 -12
- package/node_modules/@aws-sdk/credential-provider-login/package.json +6 -6
- 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 +10 -10
- package/node_modules/@aws-sdk/credential-provider-process/package.json +5 -5
- package/node_modules/@aws-sdk/credential-provider-sso/package.json +7 -7
- package/node_modules/@aws-sdk/credential-provider-web-identity/package.json +6 -6
- package/node_modules/@aws-sdk/middleware-host-header/package.json +4 -4
- package/node_modules/@aws-sdk/middleware-logger/package.json +4 -4
- package/node_modules/@aws-sdk/middleware-recursion-detection/package.json +4 -4
- package/node_modules/@aws-sdk/middleware-user-agent/node_modules/@aws-sdk/util-endpoints/LICENSE +201 -0
- package/node_modules/@aws-sdk/middleware-user-agent/node_modules/@aws-sdk/util-endpoints/README.md +6 -0
- package/node_modules/@aws-sdk/middleware-user-agent/node_modules/@aws-sdk/util-endpoints/dist-cjs/index.js +415 -0
- package/node_modules/@aws-sdk/middleware-user-agent/node_modules/@aws-sdk/util-endpoints/dist-cjs/lib/aws/partitions.json +267 -0
- package/node_modules/@aws-sdk/middleware-user-agent/node_modules/@aws-sdk/util-endpoints/dist-es/aws.js +10 -0
- package/node_modules/@aws-sdk/middleware-user-agent/node_modules/@aws-sdk/util-endpoints/dist-es/index.js +6 -0
- package/node_modules/@aws-sdk/middleware-user-agent/node_modules/@aws-sdk/util-endpoints/dist-es/lib/aws/index.js +3 -0
- package/node_modules/@aws-sdk/middleware-user-agent/node_modules/@aws-sdk/util-endpoints/dist-es/lib/aws/isVirtualHostableS3Bucket.js +25 -0
- package/node_modules/@aws-sdk/middleware-user-agent/node_modules/@aws-sdk/util-endpoints/dist-es/lib/aws/parseArn.js +18 -0
- package/node_modules/@aws-sdk/middleware-user-agent/node_modules/@aws-sdk/util-endpoints/dist-es/lib/aws/partition.js +41 -0
- package/node_modules/@aws-sdk/middleware-user-agent/node_modules/@aws-sdk/util-endpoints/dist-es/lib/aws/partitions.json +267 -0
- package/node_modules/@aws-sdk/middleware-user-agent/node_modules/@aws-sdk/util-endpoints/dist-es/lib/isIpAddress.js +1 -0
- package/node_modules/@aws-sdk/middleware-user-agent/node_modules/@aws-sdk/util-endpoints/dist-es/resolveDefaultAwsRegionalEndpointsConfig.js +21 -0
- package/node_modules/@aws-sdk/middleware-user-agent/node_modules/@aws-sdk/util-endpoints/dist-es/resolveEndpoint.js +1 -0
- package/node_modules/@aws-sdk/middleware-user-agent/node_modules/@aws-sdk/util-endpoints/dist-es/types/EndpointError.js +1 -0
- package/node_modules/@aws-sdk/middleware-user-agent/node_modules/@aws-sdk/util-endpoints/dist-es/types/EndpointRuleObject.js +1 -0
- package/node_modules/@aws-sdk/middleware-user-agent/node_modules/@aws-sdk/util-endpoints/dist-es/types/ErrorRuleObject.js +1 -0
- package/node_modules/@aws-sdk/middleware-user-agent/node_modules/@aws-sdk/util-endpoints/dist-es/types/RuleSetObject.js +1 -0
- package/node_modules/@aws-sdk/middleware-user-agent/node_modules/@aws-sdk/util-endpoints/dist-es/types/TreeRuleObject.js +1 -0
- package/node_modules/@aws-sdk/middleware-user-agent/node_modules/@aws-sdk/util-endpoints/dist-es/types/index.js +6 -0
- package/node_modules/@aws-sdk/middleware-user-agent/node_modules/@aws-sdk/util-endpoints/dist-es/types/shared.js +1 -0
- package/node_modules/@aws-sdk/middleware-user-agent/node_modules/@aws-sdk/util-endpoints/dist-types/aws.d.ts +2 -0
- package/node_modules/@aws-sdk/middleware-user-agent/node_modules/@aws-sdk/util-endpoints/dist-types/index.d.ts +6 -0
- package/node_modules/@aws-sdk/middleware-user-agent/node_modules/@aws-sdk/util-endpoints/dist-types/lib/aws/index.d.ts +3 -0
- package/node_modules/@aws-sdk/middleware-user-agent/node_modules/@aws-sdk/util-endpoints/dist-types/lib/aws/isVirtualHostableS3Bucket.d.ts +5 -0
- package/node_modules/@aws-sdk/middleware-user-agent/node_modules/@aws-sdk/util-endpoints/dist-types/lib/aws/parseArn.d.ts +7 -0
- package/node_modules/@aws-sdk/middleware-user-agent/node_modules/@aws-sdk/util-endpoints/dist-types/lib/aws/partition.d.ts +38 -0
- package/node_modules/@aws-sdk/middleware-user-agent/node_modules/@aws-sdk/util-endpoints/dist-types/lib/isIpAddress.d.ts +1 -0
- package/node_modules/@aws-sdk/middleware-user-agent/node_modules/@aws-sdk/util-endpoints/dist-types/resolveDefaultAwsRegionalEndpointsConfig.d.ts +56 -0
- package/node_modules/@aws-sdk/middleware-user-agent/node_modules/@aws-sdk/util-endpoints/dist-types/resolveEndpoint.d.ts +1 -0
- package/node_modules/@aws-sdk/middleware-user-agent/node_modules/@aws-sdk/util-endpoints/dist-types/ts3.4/aws.d.ts +2 -0
- package/node_modules/@aws-sdk/middleware-user-agent/node_modules/@aws-sdk/util-endpoints/dist-types/ts3.4/index.d.ts +6 -0
- package/node_modules/@aws-sdk/middleware-user-agent/node_modules/@aws-sdk/util-endpoints/dist-types/ts3.4/lib/aws/index.d.ts +3 -0
- package/node_modules/@aws-sdk/middleware-user-agent/node_modules/@aws-sdk/util-endpoints/dist-types/ts3.4/lib/aws/isVirtualHostableS3Bucket.d.ts +4 -0
- package/node_modules/@aws-sdk/middleware-user-agent/node_modules/@aws-sdk/util-endpoints/dist-types/ts3.4/lib/aws/parseArn.d.ts +2 -0
- package/node_modules/@aws-sdk/middleware-user-agent/node_modules/@aws-sdk/util-endpoints/dist-types/ts3.4/lib/aws/partition.d.ts +28 -0
- package/node_modules/@aws-sdk/middleware-user-agent/node_modules/@aws-sdk/util-endpoints/dist-types/ts3.4/lib/isIpAddress.d.ts +1 -0
- package/node_modules/@aws-sdk/middleware-user-agent/node_modules/@aws-sdk/util-endpoints/dist-types/ts3.4/resolveDefaultAwsRegionalEndpointsConfig.d.ts +35 -0
- package/node_modules/@aws-sdk/middleware-user-agent/node_modules/@aws-sdk/util-endpoints/dist-types/ts3.4/resolveEndpoint.d.ts +1 -0
- package/node_modules/@aws-sdk/middleware-user-agent/node_modules/@aws-sdk/util-endpoints/dist-types/ts3.4/types/EndpointError.d.ts +1 -0
- package/node_modules/@aws-sdk/middleware-user-agent/node_modules/@aws-sdk/util-endpoints/dist-types/ts3.4/types/EndpointRuleObject.d.ts +6 -0
- package/node_modules/@aws-sdk/middleware-user-agent/node_modules/@aws-sdk/util-endpoints/dist-types/ts3.4/types/ErrorRuleObject.d.ts +1 -0
- package/node_modules/@aws-sdk/middleware-user-agent/node_modules/@aws-sdk/util-endpoints/dist-types/ts3.4/types/RuleSetObject.d.ts +5 -0
- package/node_modules/@aws-sdk/middleware-user-agent/node_modules/@aws-sdk/util-endpoints/dist-types/ts3.4/types/TreeRuleObject.d.ts +1 -0
- package/node_modules/@aws-sdk/middleware-user-agent/node_modules/@aws-sdk/util-endpoints/dist-types/ts3.4/types/index.d.ts +6 -0
- package/node_modules/@aws-sdk/middleware-user-agent/node_modules/@aws-sdk/util-endpoints/dist-types/ts3.4/types/shared.d.ts +12 -0
- package/node_modules/@aws-sdk/middleware-user-agent/node_modules/@aws-sdk/util-endpoints/dist-types/types/EndpointError.d.ts +1 -0
- package/node_modules/@aws-sdk/middleware-user-agent/node_modules/@aws-sdk/util-endpoints/dist-types/types/EndpointRuleObject.d.ts +1 -0
- package/node_modules/@aws-sdk/middleware-user-agent/node_modules/@aws-sdk/util-endpoints/dist-types/types/ErrorRuleObject.d.ts +1 -0
- package/node_modules/@aws-sdk/middleware-user-agent/node_modules/@aws-sdk/util-endpoints/dist-types/types/RuleSetObject.d.ts +1 -0
- package/node_modules/@aws-sdk/middleware-user-agent/node_modules/@aws-sdk/util-endpoints/dist-types/types/TreeRuleObject.d.ts +1 -0
- package/node_modules/@aws-sdk/middleware-user-agent/node_modules/@aws-sdk/util-endpoints/dist-types/types/index.d.ts +6 -0
- package/node_modules/@aws-sdk/middleware-user-agent/node_modules/@aws-sdk/util-endpoints/dist-types/types/shared.d.ts +1 -0
- package/node_modules/@aws-sdk/middleware-user-agent/node_modules/@aws-sdk/util-endpoints/package.json +60 -0
- package/node_modules/@aws-sdk/middleware-user-agent/package.json +7 -7
- package/node_modules/@aws-sdk/nested-clients/dist-cjs/submodules/signin/index.js +20 -198
- 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/nested-clients/dist-cjs/submodules/sso-oidc/index.js +20 -347
- 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/index.js +21 -308
- 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/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/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-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/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/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/signin/SigninClient.d.ts +4 -3
- 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/schemas/schemas_0.d.ts +11 -4
- 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/httpAuthSchemeProvider.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/httpAuthSchemeProvider.d.ts +3 -2
- 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/signin/SigninClient.d.ts +5 -3
- 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-oidc/SSOOIDCClient.d.ts +1 -2
- 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/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/node_modules/@aws-sdk/util-endpoints/LICENSE +201 -0
- package/node_modules/@aws-sdk/nested-clients/node_modules/@aws-sdk/util-endpoints/README.md +6 -0
- package/node_modules/@aws-sdk/nested-clients/node_modules/@aws-sdk/util-endpoints/dist-cjs/index.js +415 -0
- package/node_modules/@aws-sdk/nested-clients/node_modules/@aws-sdk/util-endpoints/dist-cjs/lib/aws/partitions.json +267 -0
- package/node_modules/@aws-sdk/nested-clients/node_modules/@aws-sdk/util-endpoints/dist-es/aws.js +10 -0
- package/node_modules/@aws-sdk/nested-clients/node_modules/@aws-sdk/util-endpoints/dist-es/index.js +6 -0
- package/node_modules/@aws-sdk/nested-clients/node_modules/@aws-sdk/util-endpoints/dist-es/lib/aws/index.js +3 -0
- package/node_modules/@aws-sdk/nested-clients/node_modules/@aws-sdk/util-endpoints/dist-es/lib/aws/isVirtualHostableS3Bucket.js +25 -0
- package/node_modules/@aws-sdk/nested-clients/node_modules/@aws-sdk/util-endpoints/dist-es/lib/aws/parseArn.js +18 -0
- package/node_modules/@aws-sdk/nested-clients/node_modules/@aws-sdk/util-endpoints/dist-es/lib/aws/partition.js +41 -0
- package/node_modules/@aws-sdk/nested-clients/node_modules/@aws-sdk/util-endpoints/dist-es/lib/aws/partitions.json +267 -0
- package/node_modules/@aws-sdk/nested-clients/node_modules/@aws-sdk/util-endpoints/dist-es/lib/isIpAddress.js +1 -0
- package/node_modules/@aws-sdk/nested-clients/node_modules/@aws-sdk/util-endpoints/dist-es/resolveDefaultAwsRegionalEndpointsConfig.js +21 -0
- package/node_modules/@aws-sdk/nested-clients/node_modules/@aws-sdk/util-endpoints/dist-es/resolveEndpoint.js +1 -0
- package/node_modules/@aws-sdk/nested-clients/node_modules/@aws-sdk/util-endpoints/dist-es/types/EndpointError.js +1 -0
- package/node_modules/@aws-sdk/nested-clients/node_modules/@aws-sdk/util-endpoints/dist-es/types/EndpointRuleObject.js +1 -0
- package/node_modules/@aws-sdk/nested-clients/node_modules/@aws-sdk/util-endpoints/dist-es/types/ErrorRuleObject.js +1 -0
- package/node_modules/@aws-sdk/nested-clients/node_modules/@aws-sdk/util-endpoints/dist-es/types/RuleSetObject.js +1 -0
- package/node_modules/@aws-sdk/nested-clients/node_modules/@aws-sdk/util-endpoints/dist-es/types/TreeRuleObject.js +1 -0
- package/node_modules/@aws-sdk/nested-clients/node_modules/@aws-sdk/util-endpoints/dist-es/types/index.js +6 -0
- package/node_modules/@aws-sdk/nested-clients/node_modules/@aws-sdk/util-endpoints/dist-es/types/shared.js +1 -0
- package/node_modules/@aws-sdk/nested-clients/node_modules/@aws-sdk/util-endpoints/dist-types/aws.d.ts +2 -0
- package/node_modules/@aws-sdk/nested-clients/node_modules/@aws-sdk/util-endpoints/dist-types/index.d.ts +6 -0
- package/node_modules/@aws-sdk/nested-clients/node_modules/@aws-sdk/util-endpoints/dist-types/lib/aws/index.d.ts +3 -0
- package/node_modules/@aws-sdk/nested-clients/node_modules/@aws-sdk/util-endpoints/dist-types/lib/aws/isVirtualHostableS3Bucket.d.ts +5 -0
- package/node_modules/@aws-sdk/nested-clients/node_modules/@aws-sdk/util-endpoints/dist-types/lib/aws/parseArn.d.ts +7 -0
- package/node_modules/@aws-sdk/nested-clients/node_modules/@aws-sdk/util-endpoints/dist-types/lib/aws/partition.d.ts +38 -0
- package/node_modules/@aws-sdk/nested-clients/node_modules/@aws-sdk/util-endpoints/dist-types/lib/isIpAddress.d.ts +1 -0
- package/node_modules/@aws-sdk/nested-clients/node_modules/@aws-sdk/util-endpoints/dist-types/resolveDefaultAwsRegionalEndpointsConfig.d.ts +56 -0
- package/node_modules/@aws-sdk/nested-clients/node_modules/@aws-sdk/util-endpoints/dist-types/resolveEndpoint.d.ts +1 -0
- package/node_modules/@aws-sdk/nested-clients/node_modules/@aws-sdk/util-endpoints/dist-types/ts3.4/aws.d.ts +2 -0
- package/node_modules/@aws-sdk/nested-clients/node_modules/@aws-sdk/util-endpoints/dist-types/ts3.4/index.d.ts +6 -0
- package/node_modules/@aws-sdk/nested-clients/node_modules/@aws-sdk/util-endpoints/dist-types/ts3.4/lib/aws/index.d.ts +3 -0
- package/node_modules/@aws-sdk/nested-clients/node_modules/@aws-sdk/util-endpoints/dist-types/ts3.4/lib/aws/isVirtualHostableS3Bucket.d.ts +4 -0
- package/node_modules/@aws-sdk/nested-clients/node_modules/@aws-sdk/util-endpoints/dist-types/ts3.4/lib/aws/parseArn.d.ts +2 -0
- package/node_modules/@aws-sdk/nested-clients/node_modules/@aws-sdk/util-endpoints/dist-types/ts3.4/lib/aws/partition.d.ts +28 -0
- package/node_modules/@aws-sdk/nested-clients/node_modules/@aws-sdk/util-endpoints/dist-types/ts3.4/lib/isIpAddress.d.ts +1 -0
- package/node_modules/@aws-sdk/nested-clients/node_modules/@aws-sdk/util-endpoints/dist-types/ts3.4/resolveDefaultAwsRegionalEndpointsConfig.d.ts +35 -0
- package/node_modules/@aws-sdk/nested-clients/node_modules/@aws-sdk/util-endpoints/dist-types/ts3.4/resolveEndpoint.d.ts +1 -0
- package/node_modules/@aws-sdk/nested-clients/node_modules/@aws-sdk/util-endpoints/dist-types/ts3.4/types/EndpointError.d.ts +1 -0
- package/node_modules/@aws-sdk/nested-clients/node_modules/@aws-sdk/util-endpoints/dist-types/ts3.4/types/EndpointRuleObject.d.ts +6 -0
- package/node_modules/@aws-sdk/nested-clients/node_modules/@aws-sdk/util-endpoints/dist-types/ts3.4/types/ErrorRuleObject.d.ts +1 -0
- package/node_modules/@aws-sdk/nested-clients/node_modules/@aws-sdk/util-endpoints/dist-types/ts3.4/types/RuleSetObject.d.ts +5 -0
- package/node_modules/@aws-sdk/nested-clients/node_modules/@aws-sdk/util-endpoints/dist-types/ts3.4/types/TreeRuleObject.d.ts +1 -0
- package/node_modules/@aws-sdk/nested-clients/node_modules/@aws-sdk/util-endpoints/dist-types/ts3.4/types/index.d.ts +6 -0
- package/node_modules/@aws-sdk/nested-clients/node_modules/@aws-sdk/util-endpoints/dist-types/ts3.4/types/shared.d.ts +12 -0
- package/node_modules/@aws-sdk/nested-clients/node_modules/@aws-sdk/util-endpoints/dist-types/types/EndpointError.d.ts +1 -0
- package/node_modules/@aws-sdk/nested-clients/node_modules/@aws-sdk/util-endpoints/dist-types/types/EndpointRuleObject.d.ts +1 -0
- package/node_modules/@aws-sdk/nested-clients/node_modules/@aws-sdk/util-endpoints/dist-types/types/ErrorRuleObject.d.ts +1 -0
- package/node_modules/@aws-sdk/nested-clients/node_modules/@aws-sdk/util-endpoints/dist-types/types/RuleSetObject.d.ts +1 -0
- package/node_modules/@aws-sdk/nested-clients/node_modules/@aws-sdk/util-endpoints/dist-types/types/TreeRuleObject.d.ts +1 -0
- package/node_modules/@aws-sdk/nested-clients/node_modules/@aws-sdk/util-endpoints/dist-types/types/index.d.ts +6 -0
- package/node_modules/@aws-sdk/nested-clients/node_modules/@aws-sdk/util-endpoints/dist-types/types/shared.d.ts +1 -0
- package/node_modules/@aws-sdk/nested-clients/node_modules/@aws-sdk/util-endpoints/package.json +60 -0
- package/node_modules/@aws-sdk/nested-clients/package.json +18 -18
- package/node_modules/@aws-sdk/region-config-resolver/package.json +4 -4
- package/node_modules/@aws-sdk/token-providers/package.json +4 -4
- package/node_modules/@aws-sdk/types/dist-types/blob/blob-types.d.ts +1 -1
- package/node_modules/@aws-sdk/types/package.json +3 -3
- package/node_modules/@aws-sdk/util-endpoints/package.json +2 -2
- package/node_modules/@aws-sdk/util-locate-window/package.json +3 -3
- package/node_modules/@aws-sdk/util-user-agent-browser/package.json +4 -4
- package/node_modules/@aws-sdk/util-user-agent-node/package.json +5 -5
- package/node_modules/@aws-sdk/xml-builder/node_modules/fast-xml-parser/CHANGELOG.md +16 -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/fxp.cjs +1 -1
- package/node_modules/@aws-sdk/xml-builder/node_modules/fast-xml-parser/lib/fxp.d.cts +1 -1
- 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/package.json +4 -2
- package/node_modules/@aws-sdk/xml-builder/node_modules/fast-xml-parser/src/fxp.d.ts +2 -2
- 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/ParserOptionsBuilder.js +4 -4
- package/node_modules/@aws-sdk/xml-builder/node_modules/fast-xml-parser/src/xmlparser/DocTypeReader.js +297 -287
- package/node_modules/@aws-sdk/xml-builder/node_modules/fast-xml-parser/src/xmlparser/OrderedObjParser.js +55 -22
- package/node_modules/@aws-sdk/xml-builder/node_modules/fast-xml-parser/src/xmlparser/XMLParser.js +4 -4
- package/node_modules/@aws-sdk/xml-builder/package.json +5 -5
- package/node_modules/@slack/logger/node_modules/@types/node/README.md +1 -1
- package/node_modules/@slack/logger/node_modules/@types/node/child_process.d.ts +6 -6
- package/node_modules/@slack/logger/node_modules/@types/node/crypto.d.ts +4 -4
- package/node_modules/@slack/logger/node_modules/@types/node/http.d.ts +35 -11
- package/node_modules/@slack/logger/node_modules/@types/node/https.d.ts +6 -0
- package/node_modules/@slack/logger/node_modules/@types/node/net.d.ts +1 -1
- package/node_modules/@slack/logger/node_modules/@types/node/package.json +2 -2
- 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 +1 -1
- package/node_modules/@slack/logger/node_modules/@types/node/sqlite.d.ts +18 -0
- package/node_modules/@slack/logger/node_modules/@types/node/test.d.ts +2 -1
- package/node_modules/@slack/logger/node_modules/@types/node/util.d.ts +10 -1
- package/node_modules/@slack/logger/node_modules/@types/node/v8.d.ts +4 -0
- 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/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 -8
- package/node_modules/@slack/web-api/dist/WebClient.d.ts.map +1 -1
- 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 +48 -12
- package/node_modules/@slack/web-api/dist/chat-stream.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/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/node_modules/@types/node/README.md +1 -1
- package/node_modules/@slack/web-api/node_modules/@types/node/child_process.d.ts +6 -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/http.d.ts +35 -11
- 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/net.d.ts +1 -1
- package/node_modules/@slack/web-api/node_modules/@types/node/package.json +2 -2
- 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 +1 -1
- package/node_modules/@slack/web-api/node_modules/@types/node/sqlite.d.ts +18 -0
- package/node_modules/@slack/web-api/node_modules/@types/node/test.d.ts +2 -1
- package/node_modules/@slack/web-api/node_modules/@types/node/util.d.ts +10 -1
- package/node_modules/@slack/web-api/node_modules/@types/node/v8.d.ts +4 -0
- 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/package.json +10 -10
- package/node_modules/@smithy/core/dist-cjs/submodules/cbor/index.js +13 -10
- package/node_modules/@smithy/core/dist-cjs/submodules/event-streams/index.js +5 -0
- package/node_modules/@smithy/core/dist-cjs/submodules/protocols/index.js +5 -0
- package/node_modules/@smithy/core/dist-cjs/submodules/schema/index.js +31 -6
- package/node_modules/@smithy/core/dist-es/submodules/cbor/SmithyRpcV2CborProtocol.js +15 -11
- package/node_modules/@smithy/core/dist-es/submodules/event-streams/EventStreamSerde.js +5 -0
- package/node_modules/@smithy/core/dist-es/submodules/protocols/HttpProtocol.js +6 -1
- package/node_modules/@smithy/core/dist-es/submodules/schema/TypeRegistry.js +24 -5
- package/node_modules/@smithy/core/dist-es/submodules/schema/schemas/NormalizedSchema.js +7 -1
- package/node_modules/@smithy/core/dist-types/submodules/cbor/SmithyRpcV2CborProtocol.d.ts +7 -1
- 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/ts3.4/submodules/cbor/SmithyRpcV2CborProtocol.d.ts +7 -1
- 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/package.json +2 -2
- package/node_modules/@smithy/middleware-endpoint/package.json +2 -2
- package/node_modules/@smithy/middleware-retry/package.json +2 -2
- package/node_modules/@smithy/node-http-handler/dist-cjs/index.js +11 -4
- package/node_modules/@smithy/node-http-handler/dist-es/node-http-handler.js +2 -2
- package/node_modules/@smithy/node-http-handler/dist-es/write-request-body.js +9 -2
- package/node_modules/@smithy/node-http-handler/package.json +5 -5
- package/node_modules/@smithy/smithy-client/dist-cjs/index.js +29 -3
- package/node_modules/@smithy/smithy-client/dist-es/create-aggregated-client.js +29 -3
- package/node_modules/@smithy/smithy-client/dist-types/create-aggregated-client.d.ts +8 -1
- package/node_modules/@smithy/smithy-client/dist-types/ts3.4/create-aggregated-client.d.ts +8 -1
- package/node_modules/@smithy/smithy-client/package.json +4 -4
- package/node_modules/@smithy/util-defaults-mode-browser/package.json +2 -2
- package/node_modules/@smithy/util-defaults-mode-node/package.json +2 -2
- package/node_modules/@smithy/util-stream/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/child_process.d.ts +6 -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/http.d.ts +35 -11
- 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/net.d.ts +1 -1
- package/node_modules/@types/cacheable-request/node_modules/@types/node/package.json +2 -2
- 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 +1 -1
- package/node_modules/@types/cacheable-request/node_modules/@types/node/sqlite.d.ts +18 -0
- package/node_modules/@types/cacheable-request/node_modules/@types/node/test.d.ts +2 -1
- package/node_modules/@types/cacheable-request/node_modules/@types/node/util.d.ts +10 -1
- package/node_modules/@types/cacheable-request/node_modules/@types/node/v8.d.ts +4 -0
- 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/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/child_process.d.ts +6 -6
- package/node_modules/@types/keyv/node_modules/@types/node/crypto.d.ts +4 -4
- package/node_modules/@types/keyv/node_modules/@types/node/http.d.ts +35 -11
- package/node_modules/@types/keyv/node_modules/@types/node/https.d.ts +6 -0
- package/node_modules/@types/keyv/node_modules/@types/node/net.d.ts +1 -1
- package/node_modules/@types/keyv/node_modules/@types/node/package.json +2 -2
- 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 +1 -1
- package/node_modules/@types/keyv/node_modules/@types/node/sqlite.d.ts +18 -0
- package/node_modules/@types/keyv/node_modules/@types/node/test.d.ts +2 -1
- package/node_modules/@types/keyv/node_modules/@types/node/util.d.ts +10 -1
- package/node_modules/@types/keyv/node_modules/@types/node/v8.d.ts +4 -0
- 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/responselike/node_modules/@types/node/README.md +1 -1
- package/node_modules/@types/responselike/node_modules/@types/node/child_process.d.ts +6 -6
- package/node_modules/@types/responselike/node_modules/@types/node/crypto.d.ts +4 -4
- package/node_modules/@types/responselike/node_modules/@types/node/http.d.ts +35 -11
- package/node_modules/@types/responselike/node_modules/@types/node/https.d.ts +6 -0
- package/node_modules/@types/responselike/node_modules/@types/node/net.d.ts +1 -1
- package/node_modules/@types/responselike/node_modules/@types/node/package.json +2 -2
- 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 +1 -1
- package/node_modules/@types/responselike/node_modules/@types/node/sqlite.d.ts +18 -0
- package/node_modules/@types/responselike/node_modules/@types/node/test.d.ts +2 -1
- package/node_modules/@types/responselike/node_modules/@types/node/util.d.ts +10 -1
- package/node_modules/@types/responselike/node_modules/@types/node/v8.d.ts +4 -0
- 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/axios/CHANGELOG.md +296 -239
- package/node_modules/axios/MIGRATION_GUIDE.md +876 -2
- package/node_modules/axios/README.md +584 -447
- package/node_modules/axios/dist/axios.js +779 -897
- 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 +353 -283
- package/node_modules/axios/dist/browser/axios.cjs.map +1 -1
- package/node_modules/axios/dist/esm/axios.js +353 -283
- 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 +388 -315
- package/node_modules/axios/dist/node/axios.cjs.map +1 -1
- package/node_modules/axios/index.d.cts +22 -3
- package/node_modules/axios/index.d.ts +341 -116
- package/node_modules/axios/lib/adapters/README.md +1 -1
- package/node_modules/axios/lib/adapters/fetch.js +2 -2
- package/node_modules/axios/lib/adapters/http.js +13 -10
- package/node_modules/axios/lib/adapters/xhr.js +2 -2
- package/node_modules/axios/lib/cancel/CanceledError.js +15 -18
- package/node_modules/axios/lib/core/Axios.js +12 -3
- package/node_modules/axios/lib/core/AxiosError.js +65 -102
- package/node_modules/axios/lib/core/InterceptorManager.js +2 -1
- package/node_modules/axios/lib/core/mergeConfig.js +24 -11
- package/node_modules/axios/lib/core/transformData.js +1 -1
- 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/buildURL.js +7 -10
- package/node_modules/axios/lib/helpers/composeSignals.js +1 -1
- package/node_modules/axios/lib/helpers/cookies.js +1 -1
- package/node_modules/axios/lib/helpers/isAbsoluteURL.js +5 -0
- package/node_modules/axios/lib/helpers/isAxiosError.js +1 -1
- package/node_modules/axios/lib/helpers/parseHeaders.js +1 -1
- package/node_modules/axios/lib/helpers/spread.js +1 -1
- package/node_modules/axios/lib/utils.js +221 -140
- package/node_modules/axios/package.json +49 -68
- 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/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/package.json +20 -20
- 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/bowser/CHANGELOG.md +0 -218
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/*! Axios v1.13.
|
|
1
|
+
/*! Axios v1.13.5 Copyright (c) 2026 Matt Zabriskie and contributors */
|
|
2
2
|
'use strict';
|
|
3
3
|
|
|
4
4
|
/**
|
|
@@ -16,30 +16,30 @@ function bind(fn, thisArg) {
|
|
|
16
16
|
|
|
17
17
|
// utils is a library of generic helper functions non-specific to axios
|
|
18
18
|
|
|
19
|
-
const {toString} = Object.prototype;
|
|
20
|
-
const {getPrototypeOf} = Object;
|
|
21
|
-
const {iterator, toStringTag} = Symbol;
|
|
19
|
+
const { toString } = Object.prototype;
|
|
20
|
+
const { getPrototypeOf } = Object;
|
|
21
|
+
const { iterator, toStringTag } = Symbol;
|
|
22
22
|
|
|
23
|
-
const kindOf = (cache => thing => {
|
|
24
|
-
|
|
25
|
-
|
|
23
|
+
const kindOf = ((cache) => (thing) => {
|
|
24
|
+
const str = toString.call(thing);
|
|
25
|
+
return cache[str] || (cache[str] = str.slice(8, -1).toLowerCase());
|
|
26
26
|
})(Object.create(null));
|
|
27
27
|
|
|
28
28
|
const kindOfTest = (type) => {
|
|
29
29
|
type = type.toLowerCase();
|
|
30
|
-
return (thing) => kindOf(thing) === type
|
|
30
|
+
return (thing) => kindOf(thing) === type;
|
|
31
31
|
};
|
|
32
32
|
|
|
33
|
-
const typeOfTest = type => thing => typeof thing === type;
|
|
33
|
+
const typeOfTest = (type) => (thing) => typeof thing === type;
|
|
34
34
|
|
|
35
35
|
/**
|
|
36
|
-
* Determine if a value is
|
|
36
|
+
* Determine if a value is a non-null object
|
|
37
37
|
*
|
|
38
38
|
* @param {Object} val The value to test
|
|
39
39
|
*
|
|
40
40
|
* @returns {boolean} True if value is an Array, otherwise false
|
|
41
41
|
*/
|
|
42
|
-
const {isArray} = Array;
|
|
42
|
+
const { isArray } = Array;
|
|
43
43
|
|
|
44
44
|
/**
|
|
45
45
|
* Determine if a value is undefined
|
|
@@ -48,7 +48,7 @@ const {isArray} = Array;
|
|
|
48
48
|
*
|
|
49
49
|
* @returns {boolean} True if the value is undefined, otherwise false
|
|
50
50
|
*/
|
|
51
|
-
const isUndefined = typeOfTest(
|
|
51
|
+
const isUndefined = typeOfTest("undefined");
|
|
52
52
|
|
|
53
53
|
/**
|
|
54
54
|
* Determine if a value is a Buffer
|
|
@@ -58,8 +58,14 @@ const isUndefined = typeOfTest('undefined');
|
|
|
58
58
|
* @returns {boolean} True if value is a Buffer, otherwise false
|
|
59
59
|
*/
|
|
60
60
|
function isBuffer(val) {
|
|
61
|
-
return
|
|
62
|
-
|
|
61
|
+
return (
|
|
62
|
+
val !== null &&
|
|
63
|
+
!isUndefined(val) &&
|
|
64
|
+
val.constructor !== null &&
|
|
65
|
+
!isUndefined(val.constructor) &&
|
|
66
|
+
isFunction$1(val.constructor.isBuffer) &&
|
|
67
|
+
val.constructor.isBuffer(val)
|
|
68
|
+
);
|
|
63
69
|
}
|
|
64
70
|
|
|
65
71
|
/**
|
|
@@ -69,8 +75,7 @@ function isBuffer(val) {
|
|
|
69
75
|
*
|
|
70
76
|
* @returns {boolean} True if value is an ArrayBuffer, otherwise false
|
|
71
77
|
*/
|
|
72
|
-
const isArrayBuffer = kindOfTest(
|
|
73
|
-
|
|
78
|
+
const isArrayBuffer = kindOfTest("ArrayBuffer");
|
|
74
79
|
|
|
75
80
|
/**
|
|
76
81
|
* Determine if a value is a view on an ArrayBuffer
|
|
@@ -81,10 +86,10 @@ const isArrayBuffer = kindOfTest('ArrayBuffer');
|
|
|
81
86
|
*/
|
|
82
87
|
function isArrayBufferView(val) {
|
|
83
88
|
let result;
|
|
84
|
-
if (
|
|
89
|
+
if (typeof ArrayBuffer !== "undefined" && ArrayBuffer.isView) {
|
|
85
90
|
result = ArrayBuffer.isView(val);
|
|
86
91
|
} else {
|
|
87
|
-
result =
|
|
92
|
+
result = val && val.buffer && isArrayBuffer(val.buffer);
|
|
88
93
|
}
|
|
89
94
|
return result;
|
|
90
95
|
}
|
|
@@ -96,7 +101,7 @@ function isArrayBufferView(val) {
|
|
|
96
101
|
*
|
|
97
102
|
* @returns {boolean} True if value is a String, otherwise false
|
|
98
103
|
*/
|
|
99
|
-
const isString = typeOfTest(
|
|
104
|
+
const isString = typeOfTest("string");
|
|
100
105
|
|
|
101
106
|
/**
|
|
102
107
|
* Determine if a value is a Function
|
|
@@ -104,7 +109,7 @@ const isString = typeOfTest('string');
|
|
|
104
109
|
* @param {*} val The value to test
|
|
105
110
|
* @returns {boolean} True if value is a Function, otherwise false
|
|
106
111
|
*/
|
|
107
|
-
const isFunction$1 = typeOfTest(
|
|
112
|
+
const isFunction$1 = typeOfTest("function");
|
|
108
113
|
|
|
109
114
|
/**
|
|
110
115
|
* Determine if a value is a Number
|
|
@@ -113,7 +118,7 @@ const isFunction$1 = typeOfTest('function');
|
|
|
113
118
|
*
|
|
114
119
|
* @returns {boolean} True if value is a Number, otherwise false
|
|
115
120
|
*/
|
|
116
|
-
const isNumber = typeOfTest(
|
|
121
|
+
const isNumber = typeOfTest("number");
|
|
117
122
|
|
|
118
123
|
/**
|
|
119
124
|
* Determine if a value is an Object
|
|
@@ -122,7 +127,7 @@ const isNumber = typeOfTest('number');
|
|
|
122
127
|
*
|
|
123
128
|
* @returns {boolean} True if value is an Object, otherwise false
|
|
124
129
|
*/
|
|
125
|
-
const isObject = (thing) => thing !== null && typeof thing ===
|
|
130
|
+
const isObject = (thing) => thing !== null && typeof thing === "object";
|
|
126
131
|
|
|
127
132
|
/**
|
|
128
133
|
* Determine if a value is a Boolean
|
|
@@ -130,7 +135,7 @@ const isObject = (thing) => thing !== null && typeof thing === 'object';
|
|
|
130
135
|
* @param {*} thing The value to test
|
|
131
136
|
* @returns {boolean} True if value is a Boolean, otherwise false
|
|
132
137
|
*/
|
|
133
|
-
const isBoolean = thing => thing === true || thing === false;
|
|
138
|
+
const isBoolean = (thing) => thing === true || thing === false;
|
|
134
139
|
|
|
135
140
|
/**
|
|
136
141
|
* Determine if a value is a plain Object
|
|
@@ -140,12 +145,18 @@ const isBoolean = thing => thing === true || thing === false;
|
|
|
140
145
|
* @returns {boolean} True if value is a plain Object, otherwise false
|
|
141
146
|
*/
|
|
142
147
|
const isPlainObject = (val) => {
|
|
143
|
-
if (kindOf(val) !==
|
|
148
|
+
if (kindOf(val) !== "object") {
|
|
144
149
|
return false;
|
|
145
150
|
}
|
|
146
151
|
|
|
147
152
|
const prototype = getPrototypeOf(val);
|
|
148
|
-
return (
|
|
153
|
+
return (
|
|
154
|
+
(prototype === null ||
|
|
155
|
+
prototype === Object.prototype ||
|
|
156
|
+
Object.getPrototypeOf(prototype) === null) &&
|
|
157
|
+
!(toStringTag in val) &&
|
|
158
|
+
!(iterator in val)
|
|
159
|
+
);
|
|
149
160
|
};
|
|
150
161
|
|
|
151
162
|
/**
|
|
@@ -162,7 +173,10 @@ const isEmptyObject = (val) => {
|
|
|
162
173
|
}
|
|
163
174
|
|
|
164
175
|
try {
|
|
165
|
-
return
|
|
176
|
+
return (
|
|
177
|
+
Object.keys(val).length === 0 &&
|
|
178
|
+
Object.getPrototypeOf(val) === Object.prototype
|
|
179
|
+
);
|
|
166
180
|
} catch (e) {
|
|
167
181
|
// Fallback for any other objects that might cause RangeError with Object.keys()
|
|
168
182
|
return false;
|
|
@@ -176,7 +190,7 @@ const isEmptyObject = (val) => {
|
|
|
176
190
|
*
|
|
177
191
|
* @returns {boolean} True if value is a Date, otherwise false
|
|
178
192
|
*/
|
|
179
|
-
const isDate = kindOfTest(
|
|
193
|
+
const isDate = kindOfTest("Date");
|
|
180
194
|
|
|
181
195
|
/**
|
|
182
196
|
* Determine if a value is a File
|
|
@@ -185,7 +199,7 @@ const isDate = kindOfTest('Date');
|
|
|
185
199
|
*
|
|
186
200
|
* @returns {boolean} True if value is a File, otherwise false
|
|
187
201
|
*/
|
|
188
|
-
const isFile = kindOfTest(
|
|
202
|
+
const isFile = kindOfTest("File");
|
|
189
203
|
|
|
190
204
|
/**
|
|
191
205
|
* Determine if a value is a Blob
|
|
@@ -194,7 +208,7 @@ const isFile = kindOfTest('File');
|
|
|
194
208
|
*
|
|
195
209
|
* @returns {boolean} True if value is a Blob, otherwise false
|
|
196
210
|
*/
|
|
197
|
-
const isBlob = kindOfTest(
|
|
211
|
+
const isBlob = kindOfTest("Blob");
|
|
198
212
|
|
|
199
213
|
/**
|
|
200
214
|
* Determine if a value is a FileList
|
|
@@ -203,7 +217,7 @@ const isBlob = kindOfTest('Blob');
|
|
|
203
217
|
*
|
|
204
218
|
* @returns {boolean} True if value is a File, otherwise false
|
|
205
219
|
*/
|
|
206
|
-
const isFileList = kindOfTest(
|
|
220
|
+
const isFileList = kindOfTest("FileList");
|
|
207
221
|
|
|
208
222
|
/**
|
|
209
223
|
* Determine if a value is a Stream
|
|
@@ -223,15 +237,16 @@ const isStream = (val) => isObject(val) && isFunction$1(val.pipe);
|
|
|
223
237
|
*/
|
|
224
238
|
const isFormData = (thing) => {
|
|
225
239
|
let kind;
|
|
226
|
-
return
|
|
227
|
-
|
|
228
|
-
|
|
229
|
-
|
|
230
|
-
|
|
231
|
-
|
|
232
|
-
|
|
233
|
-
|
|
234
|
-
|
|
240
|
+
return (
|
|
241
|
+
thing &&
|
|
242
|
+
((typeof FormData === "function" && thing instanceof FormData) ||
|
|
243
|
+
(isFunction$1(thing.append) &&
|
|
244
|
+
((kind = kindOf(thing)) === "formdata" ||
|
|
245
|
+
// detect form-data instance
|
|
246
|
+
(kind === "object" &&
|
|
247
|
+
isFunction$1(thing.toString) &&
|
|
248
|
+
thing.toString() === "[object FormData]"))))
|
|
249
|
+
);
|
|
235
250
|
};
|
|
236
251
|
|
|
237
252
|
/**
|
|
@@ -241,9 +256,14 @@ const isFormData = (thing) => {
|
|
|
241
256
|
*
|
|
242
257
|
* @returns {boolean} True if value is a URLSearchParams object, otherwise false
|
|
243
258
|
*/
|
|
244
|
-
const isURLSearchParams = kindOfTest(
|
|
259
|
+
const isURLSearchParams = kindOfTest("URLSearchParams");
|
|
245
260
|
|
|
246
|
-
const [isReadableStream, isRequest, isResponse, isHeaders] = [
|
|
261
|
+
const [isReadableStream, isRequest, isResponse, isHeaders] = [
|
|
262
|
+
"ReadableStream",
|
|
263
|
+
"Request",
|
|
264
|
+
"Response",
|
|
265
|
+
"Headers",
|
|
266
|
+
].map(kindOfTest);
|
|
247
267
|
|
|
248
268
|
/**
|
|
249
269
|
* Trim excess whitespace off the beginning and end of a string
|
|
@@ -252,8 +272,8 @@ const [isReadableStream, isRequest, isResponse, isHeaders] = ['ReadableStream',
|
|
|
252
272
|
*
|
|
253
273
|
* @returns {String} The String freed of excess whitespace
|
|
254
274
|
*/
|
|
255
|
-
const trim = (str) =>
|
|
256
|
-
str.trim() : str.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,
|
|
275
|
+
const trim = (str) =>
|
|
276
|
+
str.trim ? str.trim() : str.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g, "");
|
|
257
277
|
|
|
258
278
|
/**
|
|
259
279
|
* Iterate over an Array or an Object invoking a function for each item.
|
|
@@ -264,15 +284,16 @@ const trim = (str) => str.trim ?
|
|
|
264
284
|
* If 'obj' is an Object callback will be called passing
|
|
265
285
|
* the value, key, and complete object for each property.
|
|
266
286
|
*
|
|
267
|
-
* @param {Object|Array} obj The object to iterate
|
|
287
|
+
* @param {Object|Array<unknown>} obj The object to iterate
|
|
268
288
|
* @param {Function} fn The callback to invoke for each item
|
|
269
289
|
*
|
|
270
|
-
* @param {
|
|
290
|
+
* @param {Object} [options]
|
|
291
|
+
* @param {Boolean} [options.allOwnKeys = false]
|
|
271
292
|
* @returns {any}
|
|
272
293
|
*/
|
|
273
|
-
function forEach(obj, fn, {allOwnKeys = false} = {}) {
|
|
294
|
+
function forEach(obj, fn, { allOwnKeys = false } = {}) {
|
|
274
295
|
// Don't bother if no value provided
|
|
275
|
-
if (obj === null || typeof obj ===
|
|
296
|
+
if (obj === null || typeof obj === "undefined") {
|
|
276
297
|
return;
|
|
277
298
|
}
|
|
278
299
|
|
|
@@ -280,7 +301,7 @@ function forEach(obj, fn, {allOwnKeys = false} = {}) {
|
|
|
280
301
|
let l;
|
|
281
302
|
|
|
282
303
|
// Force an array if not already something iterable
|
|
283
|
-
if (typeof obj !==
|
|
304
|
+
if (typeof obj !== "object") {
|
|
284
305
|
/*eslint no-param-reassign:0*/
|
|
285
306
|
obj = [obj];
|
|
286
307
|
}
|
|
@@ -297,7 +318,9 @@ function forEach(obj, fn, {allOwnKeys = false} = {}) {
|
|
|
297
318
|
}
|
|
298
319
|
|
|
299
320
|
// Iterate over object keys
|
|
300
|
-
const keys = allOwnKeys
|
|
321
|
+
const keys = allOwnKeys
|
|
322
|
+
? Object.getOwnPropertyNames(obj)
|
|
323
|
+
: Object.keys(obj);
|
|
301
324
|
const len = keys.length;
|
|
302
325
|
let key;
|
|
303
326
|
|
|
@@ -309,7 +332,7 @@ function forEach(obj, fn, {allOwnKeys = false} = {}) {
|
|
|
309
332
|
}
|
|
310
333
|
|
|
311
334
|
function findKey(obj, key) {
|
|
312
|
-
if (isBuffer(obj)){
|
|
335
|
+
if (isBuffer(obj)) {
|
|
313
336
|
return null;
|
|
314
337
|
}
|
|
315
338
|
|
|
@@ -329,10 +352,15 @@ function findKey(obj, key) {
|
|
|
329
352
|
const _global = (() => {
|
|
330
353
|
/*eslint no-undef:0*/
|
|
331
354
|
if (typeof globalThis !== "undefined") return globalThis;
|
|
332
|
-
return typeof self !== "undefined"
|
|
355
|
+
return typeof self !== "undefined"
|
|
356
|
+
? self
|
|
357
|
+
: typeof window !== "undefined"
|
|
358
|
+
? window
|
|
359
|
+
: global;
|
|
333
360
|
})();
|
|
334
361
|
|
|
335
|
-
const isContextDefined = (context) =>
|
|
362
|
+
const isContextDefined = (context) =>
|
|
363
|
+
!isUndefined(context) && context !== _global;
|
|
336
364
|
|
|
337
365
|
/**
|
|
338
366
|
* Accepts varargs expecting each argument to be an object, then
|
|
@@ -344,7 +372,7 @@ const isContextDefined = (context) => !isUndefined(context) && context !== _glob
|
|
|
344
372
|
* Example:
|
|
345
373
|
*
|
|
346
374
|
* ```js
|
|
347
|
-
*
|
|
375
|
+
* const result = merge({foo: 123}, {foo: 456});
|
|
348
376
|
* console.log(result.foo); // outputs 456
|
|
349
377
|
* ```
|
|
350
378
|
*
|
|
@@ -353,10 +381,15 @@ const isContextDefined = (context) => !isUndefined(context) && context !== _glob
|
|
|
353
381
|
* @returns {Object} Result of all merge properties
|
|
354
382
|
*/
|
|
355
383
|
function merge(/* obj1, obj2, obj3, ... */) {
|
|
356
|
-
const {caseless, skipUndefined} = isContextDefined(this) && this || {};
|
|
384
|
+
const { caseless, skipUndefined } = (isContextDefined(this) && this) || {};
|
|
357
385
|
const result = {};
|
|
358
386
|
const assignValue = (val, key) => {
|
|
359
|
-
|
|
387
|
+
// Skip dangerous property names to prevent prototype pollution
|
|
388
|
+
if (key === "__proto__" || key === "constructor" || key === "prototype") {
|
|
389
|
+
return;
|
|
390
|
+
}
|
|
391
|
+
|
|
392
|
+
const targetKey = (caseless && findKey(result, key)) || key;
|
|
360
393
|
if (isPlainObject(result[targetKey]) && isPlainObject(val)) {
|
|
361
394
|
result[targetKey] = merge(result[targetKey], val);
|
|
362
395
|
} else if (isPlainObject(val)) {
|
|
@@ -381,17 +414,32 @@ function merge(/* obj1, obj2, obj3, ... */) {
|
|
|
381
414
|
* @param {Object} b The object to copy properties from
|
|
382
415
|
* @param {Object} thisArg The object to bind function to
|
|
383
416
|
*
|
|
384
|
-
* @param {
|
|
417
|
+
* @param {Object} [options]
|
|
418
|
+
* @param {Boolean} [options.allOwnKeys]
|
|
385
419
|
* @returns {Object} The resulting value of object a
|
|
386
420
|
*/
|
|
387
|
-
const extend = (a, b, thisArg, {allOwnKeys}= {}) => {
|
|
388
|
-
forEach(
|
|
389
|
-
|
|
390
|
-
|
|
391
|
-
|
|
392
|
-
|
|
393
|
-
|
|
394
|
-
|
|
421
|
+
const extend = (a, b, thisArg, { allOwnKeys } = {}) => {
|
|
422
|
+
forEach(
|
|
423
|
+
b,
|
|
424
|
+
(val, key) => {
|
|
425
|
+
if (thisArg && isFunction$1(val)) {
|
|
426
|
+
Object.defineProperty(a, key, {
|
|
427
|
+
value: bind(val, thisArg),
|
|
428
|
+
writable: true,
|
|
429
|
+
enumerable: true,
|
|
430
|
+
configurable: true,
|
|
431
|
+
});
|
|
432
|
+
} else {
|
|
433
|
+
Object.defineProperty(a, key, {
|
|
434
|
+
value: val,
|
|
435
|
+
writable: true,
|
|
436
|
+
enumerable: true,
|
|
437
|
+
configurable: true,
|
|
438
|
+
});
|
|
439
|
+
}
|
|
440
|
+
},
|
|
441
|
+
{ allOwnKeys },
|
|
442
|
+
);
|
|
395
443
|
return a;
|
|
396
444
|
};
|
|
397
445
|
|
|
@@ -403,7 +451,7 @@ const extend = (a, b, thisArg, {allOwnKeys}= {}) => {
|
|
|
403
451
|
* @returns {string} content value without BOM
|
|
404
452
|
*/
|
|
405
453
|
const stripBOM = (content) => {
|
|
406
|
-
if (content.charCodeAt(0) ===
|
|
454
|
+
if (content.charCodeAt(0) === 0xfeff) {
|
|
407
455
|
content = content.slice(1);
|
|
408
456
|
}
|
|
409
457
|
return content;
|
|
@@ -419,10 +467,18 @@ const stripBOM = (content) => {
|
|
|
419
467
|
* @returns {void}
|
|
420
468
|
*/
|
|
421
469
|
const inherits = (constructor, superConstructor, props, descriptors) => {
|
|
422
|
-
constructor.prototype = Object.create(
|
|
423
|
-
|
|
424
|
-
|
|
425
|
-
|
|
470
|
+
constructor.prototype = Object.create(
|
|
471
|
+
superConstructor.prototype,
|
|
472
|
+
descriptors,
|
|
473
|
+
);
|
|
474
|
+
Object.defineProperty(constructor.prototype, "constructor", {
|
|
475
|
+
value: constructor,
|
|
476
|
+
writable: true,
|
|
477
|
+
enumerable: false,
|
|
478
|
+
configurable: true,
|
|
479
|
+
});
|
|
480
|
+
Object.defineProperty(constructor, "super", {
|
|
481
|
+
value: superConstructor.prototype,
|
|
426
482
|
});
|
|
427
483
|
props && Object.assign(constructor.prototype, props);
|
|
428
484
|
};
|
|
@@ -451,13 +507,20 @@ const toFlatObject = (sourceObj, destObj, filter, propFilter) => {
|
|
|
451
507
|
i = props.length;
|
|
452
508
|
while (i-- > 0) {
|
|
453
509
|
prop = props[i];
|
|
454
|
-
if (
|
|
510
|
+
if (
|
|
511
|
+
(!propFilter || propFilter(prop, sourceObj, destObj)) &&
|
|
512
|
+
!merged[prop]
|
|
513
|
+
) {
|
|
455
514
|
destObj[prop] = sourceObj[prop];
|
|
456
515
|
merged[prop] = true;
|
|
457
516
|
}
|
|
458
517
|
}
|
|
459
518
|
sourceObj = filter !== false && getPrototypeOf(sourceObj);
|
|
460
|
-
} while (
|
|
519
|
+
} while (
|
|
520
|
+
sourceObj &&
|
|
521
|
+
(!filter || filter(sourceObj, destObj)) &&
|
|
522
|
+
sourceObj !== Object.prototype
|
|
523
|
+
);
|
|
461
524
|
|
|
462
525
|
return destObj;
|
|
463
526
|
};
|
|
@@ -481,7 +544,6 @@ const endsWith = (str, searchString, position) => {
|
|
|
481
544
|
return lastIndex !== -1 && lastIndex === position;
|
|
482
545
|
};
|
|
483
546
|
|
|
484
|
-
|
|
485
547
|
/**
|
|
486
548
|
* Returns new array from array like object or null if failed
|
|
487
549
|
*
|
|
@@ -510,12 +572,12 @@ const toArray = (thing) => {
|
|
|
510
572
|
* @returns {Array}
|
|
511
573
|
*/
|
|
512
574
|
// eslint-disable-next-line func-names
|
|
513
|
-
const isTypedArray = (TypedArray => {
|
|
575
|
+
const isTypedArray = ((TypedArray) => {
|
|
514
576
|
// eslint-disable-next-line func-names
|
|
515
|
-
return thing => {
|
|
577
|
+
return (thing) => {
|
|
516
578
|
return TypedArray && thing instanceof TypedArray;
|
|
517
579
|
};
|
|
518
|
-
})(typeof Uint8Array !==
|
|
580
|
+
})(typeof Uint8Array !== "undefined" && getPrototypeOf(Uint8Array));
|
|
519
581
|
|
|
520
582
|
/**
|
|
521
583
|
* For each entry in the object, call the function with the key and value.
|
|
@@ -558,18 +620,22 @@ const matchAll = (regExp, str) => {
|
|
|
558
620
|
};
|
|
559
621
|
|
|
560
622
|
/* Checking if the kindOfTest function returns true when passed an HTMLFormElement. */
|
|
561
|
-
const isHTMLForm = kindOfTest(
|
|
623
|
+
const isHTMLForm = kindOfTest("HTMLFormElement");
|
|
562
624
|
|
|
563
|
-
const toCamelCase = str => {
|
|
564
|
-
return str
|
|
565
|
-
|
|
625
|
+
const toCamelCase = (str) => {
|
|
626
|
+
return str
|
|
627
|
+
.toLowerCase()
|
|
628
|
+
.replace(/[-_\s]([a-z\d])(\w*)/g, function replacer(m, p1, p2) {
|
|
566
629
|
return p1.toUpperCase() + p2;
|
|
567
|
-
}
|
|
568
|
-
);
|
|
630
|
+
});
|
|
569
631
|
};
|
|
570
632
|
|
|
571
633
|
/* Creating a function that will check if an object has a property. */
|
|
572
|
-
const hasOwnProperty = (
|
|
634
|
+
const hasOwnProperty = (
|
|
635
|
+
({ hasOwnProperty }) =>
|
|
636
|
+
(obj, prop) =>
|
|
637
|
+
hasOwnProperty.call(obj, prop)
|
|
638
|
+
)(Object.prototype);
|
|
573
639
|
|
|
574
640
|
/**
|
|
575
641
|
* Determine if a value is a RegExp object
|
|
@@ -578,7 +644,7 @@ const hasOwnProperty = (({hasOwnProperty}) => (obj, prop) => hasOwnProperty.call
|
|
|
578
644
|
*
|
|
579
645
|
* @returns {boolean} True if value is a RegExp object, otherwise false
|
|
580
646
|
*/
|
|
581
|
-
const isRegExp = kindOfTest(
|
|
647
|
+
const isRegExp = kindOfTest("RegExp");
|
|
582
648
|
|
|
583
649
|
const reduceDescriptors = (obj, reducer) => {
|
|
584
650
|
const descriptors = Object.getOwnPropertyDescriptors(obj);
|
|
@@ -602,7 +668,10 @@ const reduceDescriptors = (obj, reducer) => {
|
|
|
602
668
|
const freezeMethods = (obj) => {
|
|
603
669
|
reduceDescriptors(obj, (descriptor, name) => {
|
|
604
670
|
// skip restricted props in strict mode
|
|
605
|
-
if (
|
|
671
|
+
if (
|
|
672
|
+
isFunction$1(obj) &&
|
|
673
|
+
["arguments", "caller", "callee"].indexOf(name) !== -1
|
|
674
|
+
) {
|
|
606
675
|
return false;
|
|
607
676
|
}
|
|
608
677
|
|
|
@@ -612,14 +681,14 @@ const freezeMethods = (obj) => {
|
|
|
612
681
|
|
|
613
682
|
descriptor.enumerable = false;
|
|
614
683
|
|
|
615
|
-
if (
|
|
684
|
+
if ("writable" in descriptor) {
|
|
616
685
|
descriptor.writable = false;
|
|
617
686
|
return;
|
|
618
687
|
}
|
|
619
688
|
|
|
620
689
|
if (!descriptor.set) {
|
|
621
690
|
descriptor.set = () => {
|
|
622
|
-
throw Error(
|
|
691
|
+
throw Error("Can not rewrite read-only method '" + name + "'");
|
|
623
692
|
};
|
|
624
693
|
}
|
|
625
694
|
});
|
|
@@ -629,12 +698,14 @@ const toObjectSet = (arrayOrString, delimiter) => {
|
|
|
629
698
|
const obj = {};
|
|
630
699
|
|
|
631
700
|
const define = (arr) => {
|
|
632
|
-
arr.forEach(value => {
|
|
701
|
+
arr.forEach((value) => {
|
|
633
702
|
obj[value] = true;
|
|
634
703
|
});
|
|
635
704
|
};
|
|
636
705
|
|
|
637
|
-
isArray(arrayOrString)
|
|
706
|
+
isArray(arrayOrString)
|
|
707
|
+
? define(arrayOrString)
|
|
708
|
+
: define(String(arrayOrString).split(delimiter));
|
|
638
709
|
|
|
639
710
|
return obj;
|
|
640
711
|
};
|
|
@@ -642,11 +713,11 @@ const toObjectSet = (arrayOrString, delimiter) => {
|
|
|
642
713
|
const noop = () => {};
|
|
643
714
|
|
|
644
715
|
const toFiniteNumber = (value, defaultValue) => {
|
|
645
|
-
return value != null && Number.isFinite(value = +value)
|
|
716
|
+
return value != null && Number.isFinite((value = +value))
|
|
717
|
+
? value
|
|
718
|
+
: defaultValue;
|
|
646
719
|
};
|
|
647
720
|
|
|
648
|
-
|
|
649
|
-
|
|
650
721
|
/**
|
|
651
722
|
* If the thing is a FormData object, return true, otherwise return false.
|
|
652
723
|
*
|
|
@@ -655,14 +726,18 @@ const toFiniteNumber = (value, defaultValue) => {
|
|
|
655
726
|
* @returns {boolean}
|
|
656
727
|
*/
|
|
657
728
|
function isSpecCompliantForm(thing) {
|
|
658
|
-
return !!(
|
|
729
|
+
return !!(
|
|
730
|
+
thing &&
|
|
731
|
+
isFunction$1(thing.append) &&
|
|
732
|
+
thing[toStringTag] === "FormData" &&
|
|
733
|
+
thing[iterator]
|
|
734
|
+
);
|
|
659
735
|
}
|
|
660
736
|
|
|
661
737
|
const toJSONObject = (obj) => {
|
|
662
738
|
const stack = new Array(10);
|
|
663
739
|
|
|
664
740
|
const visit = (source, i) => {
|
|
665
|
-
|
|
666
741
|
if (isObject(source)) {
|
|
667
742
|
if (stack.indexOf(source) >= 0) {
|
|
668
743
|
return;
|
|
@@ -673,7 +748,7 @@ const toJSONObject = (obj) => {
|
|
|
673
748
|
return source;
|
|
674
749
|
}
|
|
675
750
|
|
|
676
|
-
if(!(
|
|
751
|
+
if (!("toJSON" in source)) {
|
|
677
752
|
stack[i] = source;
|
|
678
753
|
const target = isArray(source) ? [] : {};
|
|
679
754
|
|
|
@@ -694,10 +769,13 @@ const toJSONObject = (obj) => {
|
|
|
694
769
|
return visit(obj, 0);
|
|
695
770
|
};
|
|
696
771
|
|
|
697
|
-
const isAsyncFn = kindOfTest(
|
|
772
|
+
const isAsyncFn = kindOfTest("AsyncFunction");
|
|
698
773
|
|
|
699
774
|
const isThenable = (thing) =>
|
|
700
|
-
thing &&
|
|
775
|
+
thing &&
|
|
776
|
+
(isObject(thing) || isFunction$1(thing)) &&
|
|
777
|
+
isFunction$1(thing.then) &&
|
|
778
|
+
isFunction$1(thing.catch);
|
|
701
779
|
|
|
702
780
|
// original code
|
|
703
781
|
// https://github.com/DigitalBrainJS/AxiosPromise/blob/16deab13710ec09779922131f3fa5954320f83ab/lib/utils.js#L11-L34
|
|
@@ -707,32 +785,35 @@ const _setImmediate = ((setImmediateSupported, postMessageSupported) => {
|
|
|
707
785
|
return setImmediate;
|
|
708
786
|
}
|
|
709
787
|
|
|
710
|
-
return postMessageSupported
|
|
711
|
-
|
|
712
|
-
|
|
713
|
-
|
|
714
|
-
|
|
715
|
-
|
|
788
|
+
return postMessageSupported
|
|
789
|
+
? ((token, callbacks) => {
|
|
790
|
+
_global.addEventListener(
|
|
791
|
+
"message",
|
|
792
|
+
({ source, data }) => {
|
|
793
|
+
if (source === _global && data === token) {
|
|
794
|
+
callbacks.length && callbacks.shift()();
|
|
795
|
+
}
|
|
796
|
+
},
|
|
797
|
+
false,
|
|
798
|
+
);
|
|
716
799
|
|
|
717
|
-
|
|
718
|
-
|
|
719
|
-
|
|
720
|
-
|
|
721
|
-
|
|
722
|
-
|
|
723
|
-
|
|
724
|
-
isFunction$1(_global.postMessage)
|
|
725
|
-
);
|
|
800
|
+
return (cb) => {
|
|
801
|
+
callbacks.push(cb);
|
|
802
|
+
_global.postMessage(token, "*");
|
|
803
|
+
};
|
|
804
|
+
})(`axios@${Math.random()}`, [])
|
|
805
|
+
: (cb) => setTimeout(cb);
|
|
806
|
+
})(typeof setImmediate === "function", isFunction$1(_global.postMessage));
|
|
726
807
|
|
|
727
|
-
const asap =
|
|
728
|
-
|
|
808
|
+
const asap =
|
|
809
|
+
typeof queueMicrotask !== "undefined"
|
|
810
|
+
? queueMicrotask.bind(_global)
|
|
811
|
+
: (typeof process !== "undefined" && process.nextTick) || _setImmediate;
|
|
729
812
|
|
|
730
813
|
// *********************
|
|
731
814
|
|
|
732
|
-
|
|
733
815
|
const isIterable = (thing) => thing != null && isFunction$1(thing[iterator]);
|
|
734
816
|
|
|
735
|
-
|
|
736
817
|
var utils$1 = {
|
|
737
818
|
isArray,
|
|
738
819
|
isArrayBuffer,
|
|
@@ -790,113 +871,78 @@ var utils$1 = {
|
|
|
790
871
|
isThenable,
|
|
791
872
|
setImmediate: _setImmediate,
|
|
792
873
|
asap,
|
|
793
|
-
isIterable
|
|
874
|
+
isIterable,
|
|
794
875
|
};
|
|
795
876
|
|
|
796
|
-
|
|
797
|
-
|
|
798
|
-
|
|
799
|
-
|
|
800
|
-
|
|
801
|
-
|
|
802
|
-
|
|
803
|
-
|
|
804
|
-
|
|
805
|
-
|
|
806
|
-
|
|
807
|
-
|
|
808
|
-
|
|
809
|
-
|
|
810
|
-
|
|
811
|
-
|
|
812
|
-
|
|
813
|
-
|
|
814
|
-
|
|
877
|
+
class AxiosError extends Error {
|
|
878
|
+
static from(error, code, config, request, response, customProps) {
|
|
879
|
+
const axiosError = new AxiosError(error.message, code || error.code, config, request, response);
|
|
880
|
+
axiosError.cause = error;
|
|
881
|
+
axiosError.name = error.name;
|
|
882
|
+
customProps && Object.assign(axiosError, customProps);
|
|
883
|
+
return axiosError;
|
|
884
|
+
}
|
|
885
|
+
|
|
886
|
+
/**
|
|
887
|
+
* Create an Error with the specified message, config, error code, request and response.
|
|
888
|
+
*
|
|
889
|
+
* @param {string} message The error message.
|
|
890
|
+
* @param {string} [code] The error code (for example, 'ECONNABORTED').
|
|
891
|
+
* @param {Object} [config] The config.
|
|
892
|
+
* @param {Object} [request] The request.
|
|
893
|
+
* @param {Object} [response] The response.
|
|
894
|
+
*
|
|
895
|
+
* @returns {Error} The created error.
|
|
896
|
+
*/
|
|
897
|
+
constructor(message, code, config, request, response) {
|
|
898
|
+
super(message);
|
|
899
|
+
this.name = 'AxiosError';
|
|
900
|
+
this.isAxiosError = true;
|
|
901
|
+
code && (this.code = code);
|
|
902
|
+
config && (this.config = config);
|
|
903
|
+
request && (this.request = request);
|
|
904
|
+
if (response) {
|
|
905
|
+
this.response = response;
|
|
906
|
+
this.status = response.status;
|
|
907
|
+
}
|
|
908
|
+
}
|
|
815
909
|
|
|
816
|
-
|
|
817
|
-
|
|
818
|
-
|
|
819
|
-
|
|
820
|
-
|
|
821
|
-
|
|
822
|
-
|
|
823
|
-
|
|
824
|
-
|
|
910
|
+
toJSON() {
|
|
911
|
+
return {
|
|
912
|
+
// Standard
|
|
913
|
+
message: this.message,
|
|
914
|
+
name: this.name,
|
|
915
|
+
// Microsoft
|
|
916
|
+
description: this.description,
|
|
917
|
+
number: this.number,
|
|
918
|
+
// Mozilla
|
|
919
|
+
fileName: this.fileName,
|
|
920
|
+
lineNumber: this.lineNumber,
|
|
921
|
+
columnNumber: this.columnNumber,
|
|
922
|
+
stack: this.stack,
|
|
923
|
+
// Axios
|
|
924
|
+
config: utils$1.toJSONObject(this.config),
|
|
925
|
+
code: this.code,
|
|
926
|
+
status: this.status,
|
|
927
|
+
};
|
|
928
|
+
}
|
|
825
929
|
}
|
|
826
930
|
|
|
827
|
-
|
|
828
|
-
|
|
829
|
-
|
|
830
|
-
|
|
831
|
-
|
|
832
|
-
|
|
833
|
-
|
|
834
|
-
|
|
835
|
-
|
|
836
|
-
|
|
837
|
-
|
|
838
|
-
|
|
839
|
-
|
|
840
|
-
|
|
841
|
-
|
|
842
|
-
config: utils$1.toJSONObject(this.config),
|
|
843
|
-
code: this.code,
|
|
844
|
-
status: this.status
|
|
845
|
-
};
|
|
846
|
-
}
|
|
847
|
-
});
|
|
848
|
-
|
|
849
|
-
const prototype$1 = AxiosError.prototype;
|
|
850
|
-
const descriptors = {};
|
|
851
|
-
|
|
852
|
-
[
|
|
853
|
-
'ERR_BAD_OPTION_VALUE',
|
|
854
|
-
'ERR_BAD_OPTION',
|
|
855
|
-
'ECONNABORTED',
|
|
856
|
-
'ETIMEDOUT',
|
|
857
|
-
'ERR_NETWORK',
|
|
858
|
-
'ERR_FR_TOO_MANY_REDIRECTS',
|
|
859
|
-
'ERR_DEPRECATED',
|
|
860
|
-
'ERR_BAD_RESPONSE',
|
|
861
|
-
'ERR_BAD_REQUEST',
|
|
862
|
-
'ERR_CANCELED',
|
|
863
|
-
'ERR_NOT_SUPPORT',
|
|
864
|
-
'ERR_INVALID_URL'
|
|
865
|
-
// eslint-disable-next-line func-names
|
|
866
|
-
].forEach(code => {
|
|
867
|
-
descriptors[code] = {value: code};
|
|
868
|
-
});
|
|
869
|
-
|
|
870
|
-
Object.defineProperties(AxiosError, descriptors);
|
|
871
|
-
Object.defineProperty(prototype$1, 'isAxiosError', {value: true});
|
|
872
|
-
|
|
873
|
-
// eslint-disable-next-line func-names
|
|
874
|
-
AxiosError.from = (error, code, config, request, response, customProps) => {
|
|
875
|
-
const axiosError = Object.create(prototype$1);
|
|
876
|
-
|
|
877
|
-
utils$1.toFlatObject(error, axiosError, function filter(obj) {
|
|
878
|
-
return obj !== Error.prototype;
|
|
879
|
-
}, prop => {
|
|
880
|
-
return prop !== 'isAxiosError';
|
|
881
|
-
});
|
|
882
|
-
|
|
883
|
-
const msg = error && error.message ? error.message : 'Error';
|
|
884
|
-
|
|
885
|
-
// Prefer explicit code; otherwise copy the low-level error's code (e.g. ECONNREFUSED)
|
|
886
|
-
const errCode = code == null && error ? error.code : code;
|
|
887
|
-
AxiosError.call(axiosError, msg, errCode, config, request, response);
|
|
888
|
-
|
|
889
|
-
// Chain the original error on the standard field; non-enumerable to avoid JSON noise
|
|
890
|
-
if (error && axiosError.cause == null) {
|
|
891
|
-
Object.defineProperty(axiosError, 'cause', { value: error, configurable: true });
|
|
892
|
-
}
|
|
893
|
-
|
|
894
|
-
axiosError.name = (error && error.name) || 'Error';
|
|
895
|
-
|
|
896
|
-
customProps && Object.assign(axiosError, customProps);
|
|
897
|
-
|
|
898
|
-
return axiosError;
|
|
899
|
-
};
|
|
931
|
+
// This can be changed to static properties as soon as the parser options in .eslint.cjs are updated.
|
|
932
|
+
AxiosError.ERR_BAD_OPTION_VALUE = 'ERR_BAD_OPTION_VALUE';
|
|
933
|
+
AxiosError.ERR_BAD_OPTION = 'ERR_BAD_OPTION';
|
|
934
|
+
AxiosError.ECONNABORTED = 'ECONNABORTED';
|
|
935
|
+
AxiosError.ETIMEDOUT = 'ETIMEDOUT';
|
|
936
|
+
AxiosError.ERR_NETWORK = 'ERR_NETWORK';
|
|
937
|
+
AxiosError.ERR_FR_TOO_MANY_REDIRECTS = 'ERR_FR_TOO_MANY_REDIRECTS';
|
|
938
|
+
AxiosError.ERR_DEPRECATED = 'ERR_DEPRECATED';
|
|
939
|
+
AxiosError.ERR_BAD_RESPONSE = 'ERR_BAD_RESPONSE';
|
|
940
|
+
AxiosError.ERR_BAD_REQUEST = 'ERR_BAD_REQUEST';
|
|
941
|
+
AxiosError.ERR_CANCELED = 'ERR_CANCELED';
|
|
942
|
+
AxiosError.ERR_NOT_SUPPORT = 'ERR_NOT_SUPPORT';
|
|
943
|
+
AxiosError.ERR_INVALID_URL = 'ERR_INVALID_URL';
|
|
944
|
+
|
|
945
|
+
var AxiosError$1 = AxiosError;
|
|
900
946
|
|
|
901
947
|
// eslint-disable-next-line strict
|
|
902
948
|
var httpAdapter = null;
|
|
@@ -1021,7 +1067,7 @@ function toFormData(obj, formData, options) {
|
|
|
1021
1067
|
}
|
|
1022
1068
|
|
|
1023
1069
|
if (!useBlob && utils$1.isBlob(value)) {
|
|
1024
|
-
throw new AxiosError('Blob is not supported. Use a Buffer instead.');
|
|
1070
|
+
throw new AxiosError$1('Blob is not supported. Use a Buffer instead.');
|
|
1025
1071
|
}
|
|
1026
1072
|
|
|
1027
1073
|
if (utils$1.isArrayBuffer(value) || utils$1.isTypedArray(value)) {
|
|
@@ -1195,29 +1241,26 @@ function encode(val) {
|
|
|
1195
1241
|
* @returns {string} The formatted url
|
|
1196
1242
|
*/
|
|
1197
1243
|
function buildURL(url, params, options) {
|
|
1198
|
-
/*eslint no-param-reassign:0*/
|
|
1199
1244
|
if (!params) {
|
|
1200
1245
|
return url;
|
|
1201
1246
|
}
|
|
1202
|
-
|
|
1247
|
+
|
|
1203
1248
|
const _encode = options && options.encode || encode;
|
|
1204
1249
|
|
|
1205
|
-
|
|
1206
|
-
options
|
|
1207
|
-
|
|
1208
|
-
};
|
|
1209
|
-
}
|
|
1250
|
+
const _options = utils$1.isFunction(options) ? {
|
|
1251
|
+
serialize: options
|
|
1252
|
+
} : options;
|
|
1210
1253
|
|
|
1211
|
-
const serializeFn =
|
|
1254
|
+
const serializeFn = _options && _options.serialize;
|
|
1212
1255
|
|
|
1213
1256
|
let serializedParams;
|
|
1214
1257
|
|
|
1215
1258
|
if (serializeFn) {
|
|
1216
|
-
serializedParams = serializeFn(params,
|
|
1259
|
+
serializedParams = serializeFn(params, _options);
|
|
1217
1260
|
} else {
|
|
1218
1261
|
serializedParams = utils$1.isURLSearchParams(params) ?
|
|
1219
1262
|
params.toString() :
|
|
1220
|
-
new AxiosURLSearchParams(params,
|
|
1263
|
+
new AxiosURLSearchParams(params, _options).toString(_encode);
|
|
1221
1264
|
}
|
|
1222
1265
|
|
|
1223
1266
|
if (serializedParams) {
|
|
@@ -1242,6 +1285,7 @@ class InterceptorManager {
|
|
|
1242
1285
|
*
|
|
1243
1286
|
* @param {Function} fulfilled The function to handle `then` for a `Promise`
|
|
1244
1287
|
* @param {Function} rejected The function to handle `reject` for a `Promise`
|
|
1288
|
+
* @param {Object} options The options for the interceptor, synchronous and runWhen
|
|
1245
1289
|
*
|
|
1246
1290
|
* @return {Number} An ID used to remove interceptor later
|
|
1247
1291
|
*/
|
|
@@ -1303,7 +1347,8 @@ var InterceptorManager$1 = InterceptorManager;
|
|
|
1303
1347
|
var transitionalDefaults = {
|
|
1304
1348
|
silentJSONParsing: true,
|
|
1305
1349
|
forcedJSONParsing: true,
|
|
1306
|
-
clarifyTimeoutError: false
|
|
1350
|
+
clarifyTimeoutError: false,
|
|
1351
|
+
legacyInterceptorReqResOrdering: true
|
|
1307
1352
|
};
|
|
1308
1353
|
|
|
1309
1354
|
var URLSearchParams$1 = typeof URLSearchParams !== 'undefined' ? URLSearchParams : AxiosURLSearchParams;
|
|
@@ -1591,7 +1636,7 @@ const defaults = {
|
|
|
1591
1636
|
} catch (e) {
|
|
1592
1637
|
if (strictJSONParsing) {
|
|
1593
1638
|
if (e.name === 'SyntaxError') {
|
|
1594
|
-
throw AxiosError.from(e, AxiosError.ERR_BAD_RESPONSE, this, null, this.response);
|
|
1639
|
+
throw AxiosError$1.from(e, AxiosError$1.ERR_BAD_RESPONSE, this, null, this.response);
|
|
1595
1640
|
}
|
|
1596
1641
|
throw e;
|
|
1597
1642
|
}
|
|
@@ -2025,24 +2070,24 @@ function isCancel(value) {
|
|
|
2025
2070
|
return !!(value && value.__CANCEL__);
|
|
2026
2071
|
}
|
|
2027
2072
|
|
|
2028
|
-
|
|
2029
|
-
|
|
2030
|
-
|
|
2031
|
-
|
|
2032
|
-
|
|
2033
|
-
|
|
2034
|
-
|
|
2035
|
-
|
|
2036
|
-
|
|
2037
|
-
|
|
2038
|
-
|
|
2039
|
-
|
|
2040
|
-
|
|
2073
|
+
class CanceledError extends AxiosError$1 {
|
|
2074
|
+
/**
|
|
2075
|
+
* A `CanceledError` is an object that is thrown when an operation is canceled.
|
|
2076
|
+
*
|
|
2077
|
+
* @param {string=} message The message.
|
|
2078
|
+
* @param {Object=} config The config.
|
|
2079
|
+
* @param {Object=} request The request.
|
|
2080
|
+
*
|
|
2081
|
+
* @returns {CanceledError} The created error.
|
|
2082
|
+
*/
|
|
2083
|
+
constructor(message, config, request) {
|
|
2084
|
+
super(message == null ? 'canceled' : message, AxiosError$1.ERR_CANCELED, config, request);
|
|
2085
|
+
this.name = 'CanceledError';
|
|
2086
|
+
this.__CANCEL__ = true;
|
|
2087
|
+
}
|
|
2041
2088
|
}
|
|
2042
2089
|
|
|
2043
|
-
|
|
2044
|
-
__CANCEL__: true
|
|
2045
|
-
});
|
|
2090
|
+
var CanceledError$1 = CanceledError;
|
|
2046
2091
|
|
|
2047
2092
|
/**
|
|
2048
2093
|
* Resolve or reject a Promise based on response status.
|
|
@@ -2058,9 +2103,9 @@ function settle(resolve, reject, response) {
|
|
|
2058
2103
|
if (!response.status || !validateStatus || validateStatus(response.status)) {
|
|
2059
2104
|
resolve(response);
|
|
2060
2105
|
} else {
|
|
2061
|
-
reject(new AxiosError(
|
|
2106
|
+
reject(new AxiosError$1(
|
|
2062
2107
|
'Request failed with status code ' + response.status,
|
|
2063
|
-
[AxiosError.ERR_BAD_REQUEST, AxiosError.ERR_BAD_RESPONSE][Math.floor(response.status / 100) - 4],
|
|
2108
|
+
[AxiosError$1.ERR_BAD_REQUEST, AxiosError$1.ERR_BAD_RESPONSE][Math.floor(response.status / 100) - 4],
|
|
2064
2109
|
response.config,
|
|
2065
2110
|
response.request,
|
|
2066
2111
|
response
|
|
@@ -2283,6 +2328,10 @@ function isAbsoluteURL(url) {
|
|
|
2283
2328
|
// A URL is considered absolute if it begins with "<scheme>://" or "//" (protocol-relative URL).
|
|
2284
2329
|
// RFC 3986 defines scheme name as a sequence of characters beginning with a letter and followed
|
|
2285
2330
|
// by any combination of letters, digits, plus, period, or hyphen.
|
|
2331
|
+
if (typeof url !== 'string') {
|
|
2332
|
+
return false;
|
|
2333
|
+
}
|
|
2334
|
+
|
|
2286
2335
|
return /^([a-z][a-z\d+\-.]*:)?\/\//i.test(url);
|
|
2287
2336
|
}
|
|
2288
2337
|
|
|
@@ -2318,7 +2367,8 @@ function buildFullPath(baseURL, requestedURL, allowAbsoluteUrls) {
|
|
|
2318
2367
|
return requestedURL;
|
|
2319
2368
|
}
|
|
2320
2369
|
|
|
2321
|
-
const headersToObject = (thing) =>
|
|
2370
|
+
const headersToObject = (thing) =>
|
|
2371
|
+
thing instanceof AxiosHeaders$1 ? { ...thing } : thing;
|
|
2322
2372
|
|
|
2323
2373
|
/**
|
|
2324
2374
|
* Config-specific merge-function which creates a new config-object
|
|
@@ -2336,7 +2386,7 @@ function mergeConfig(config1, config2) {
|
|
|
2336
2386
|
|
|
2337
2387
|
function getMergedValue(target, source, prop, caseless) {
|
|
2338
2388
|
if (utils$1.isPlainObject(target) && utils$1.isPlainObject(source)) {
|
|
2339
|
-
return utils$1.merge.call({caseless}, target, source);
|
|
2389
|
+
return utils$1.merge.call({ caseless }, target, source);
|
|
2340
2390
|
} else if (utils$1.isPlainObject(source)) {
|
|
2341
2391
|
return utils$1.merge({}, source);
|
|
2342
2392
|
} else if (utils$1.isArray(source)) {
|
|
@@ -2345,7 +2395,6 @@ function mergeConfig(config1, config2) {
|
|
|
2345
2395
|
return source;
|
|
2346
2396
|
}
|
|
2347
2397
|
|
|
2348
|
-
// eslint-disable-next-line consistent-return
|
|
2349
2398
|
function mergeDeepProperties(a, b, prop, caseless) {
|
|
2350
2399
|
if (!utils$1.isUndefined(b)) {
|
|
2351
2400
|
return getMergedValue(a, b, prop, caseless);
|
|
@@ -2408,14 +2457,27 @@ function mergeConfig(config1, config2) {
|
|
|
2408
2457
|
socketPath: defaultToConfig2,
|
|
2409
2458
|
responseEncoding: defaultToConfig2,
|
|
2410
2459
|
validateStatus: mergeDirectKeys,
|
|
2411
|
-
headers: (a, b, prop) =>
|
|
2460
|
+
headers: (a, b, prop) =>
|
|
2461
|
+
mergeDeepProperties(headersToObject(a), headersToObject(b), prop, true),
|
|
2412
2462
|
};
|
|
2413
2463
|
|
|
2414
|
-
utils$1.forEach(
|
|
2415
|
-
|
|
2416
|
-
|
|
2417
|
-
|
|
2418
|
-
|
|
2464
|
+
utils$1.forEach(
|
|
2465
|
+
Object.keys({ ...config1, ...config2 }),
|
|
2466
|
+
function computeConfigValue(prop) {
|
|
2467
|
+
if (
|
|
2468
|
+
prop === "__proto__" ||
|
|
2469
|
+
prop === "constructor" ||
|
|
2470
|
+
prop === "prototype"
|
|
2471
|
+
)
|
|
2472
|
+
return;
|
|
2473
|
+
const merge = utils$1.hasOwnProp(mergeMap, prop)
|
|
2474
|
+
? mergeMap[prop]
|
|
2475
|
+
: mergeDeepProperties;
|
|
2476
|
+
const configValue = merge(config1[prop], config2[prop], prop);
|
|
2477
|
+
(utils$1.isUndefined(configValue) && merge !== mergeDirectKeys) ||
|
|
2478
|
+
(config[prop] = configValue);
|
|
2479
|
+
},
|
|
2480
|
+
);
|
|
2419
2481
|
|
|
2420
2482
|
return config;
|
|
2421
2483
|
}
|
|
@@ -2560,7 +2622,7 @@ var xhrAdapter = isXHRAdapterSupported && function (config) {
|
|
|
2560
2622
|
return;
|
|
2561
2623
|
}
|
|
2562
2624
|
|
|
2563
|
-
reject(new AxiosError('Request aborted', AxiosError.ECONNABORTED, config, request));
|
|
2625
|
+
reject(new AxiosError$1('Request aborted', AxiosError$1.ECONNABORTED, config, request));
|
|
2564
2626
|
|
|
2565
2627
|
// Clean up request
|
|
2566
2628
|
request = null;
|
|
@@ -2572,7 +2634,7 @@ var xhrAdapter = isXHRAdapterSupported && function (config) {
|
|
|
2572
2634
|
// (message may be empty; when present, surface it)
|
|
2573
2635
|
// See https://developer.mozilla.org/docs/Web/API/XMLHttpRequest/error_event
|
|
2574
2636
|
const msg = event && event.message ? event.message : 'Network Error';
|
|
2575
|
-
const err = new AxiosError(msg, AxiosError.ERR_NETWORK, config, request);
|
|
2637
|
+
const err = new AxiosError$1(msg, AxiosError$1.ERR_NETWORK, config, request);
|
|
2576
2638
|
// attach the underlying event for consumers who want details
|
|
2577
2639
|
err.event = event || null;
|
|
2578
2640
|
reject(err);
|
|
@@ -2586,9 +2648,9 @@ var xhrAdapter = isXHRAdapterSupported && function (config) {
|
|
|
2586
2648
|
if (_config.timeoutErrorMessage) {
|
|
2587
2649
|
timeoutErrorMessage = _config.timeoutErrorMessage;
|
|
2588
2650
|
}
|
|
2589
|
-
reject(new AxiosError(
|
|
2651
|
+
reject(new AxiosError$1(
|
|
2590
2652
|
timeoutErrorMessage,
|
|
2591
|
-
transitional.clarifyTimeoutError ? AxiosError.ETIMEDOUT : AxiosError.ECONNABORTED,
|
|
2653
|
+
transitional.clarifyTimeoutError ? AxiosError$1.ETIMEDOUT : AxiosError$1.ECONNABORTED,
|
|
2592
2654
|
config,
|
|
2593
2655
|
request));
|
|
2594
2656
|
|
|
@@ -2638,7 +2700,7 @@ var xhrAdapter = isXHRAdapterSupported && function (config) {
|
|
|
2638
2700
|
if (!request) {
|
|
2639
2701
|
return;
|
|
2640
2702
|
}
|
|
2641
|
-
reject(!cancel || cancel.type ? new CanceledError(null, config, request) : cancel);
|
|
2703
|
+
reject(!cancel || cancel.type ? new CanceledError$1(null, config, request) : cancel);
|
|
2642
2704
|
request.abort();
|
|
2643
2705
|
request = null;
|
|
2644
2706
|
};
|
|
@@ -2652,7 +2714,7 @@ var xhrAdapter = isXHRAdapterSupported && function (config) {
|
|
|
2652
2714
|
const protocol = parseProtocol(_config.url);
|
|
2653
2715
|
|
|
2654
2716
|
if (protocol && platform.protocols.indexOf(protocol) === -1) {
|
|
2655
|
-
reject(new AxiosError('Unsupported protocol ' + protocol + ':', AxiosError.ERR_BAD_REQUEST, config));
|
|
2717
|
+
reject(new AxiosError$1('Unsupported protocol ' + protocol + ':', AxiosError$1.ERR_BAD_REQUEST, config));
|
|
2656
2718
|
return;
|
|
2657
2719
|
}
|
|
2658
2720
|
|
|
@@ -2675,13 +2737,13 @@ const composeSignals = (signals, timeout) => {
|
|
|
2675
2737
|
aborted = true;
|
|
2676
2738
|
unsubscribe();
|
|
2677
2739
|
const err = reason instanceof Error ? reason : this.reason;
|
|
2678
|
-
controller.abort(err instanceof AxiosError ? err : new CanceledError(err instanceof Error ? err.message : err));
|
|
2740
|
+
controller.abort(err instanceof AxiosError$1 ? err : new CanceledError$1(err instanceof Error ? err.message : err));
|
|
2679
2741
|
}
|
|
2680
2742
|
};
|
|
2681
2743
|
|
|
2682
2744
|
let timer = timeout && setTimeout(() => {
|
|
2683
2745
|
timer = null;
|
|
2684
|
-
onabort(new AxiosError(`timeout ${timeout}
|
|
2746
|
+
onabort(new AxiosError$1(`timeout of ${timeout}ms exceeded`, AxiosError$1.ETIMEDOUT));
|
|
2685
2747
|
}, timeout);
|
|
2686
2748
|
|
|
2687
2749
|
const unsubscribe = () => {
|
|
@@ -2867,7 +2929,7 @@ const factory = (env) => {
|
|
|
2867
2929
|
return method.call(res);
|
|
2868
2930
|
}
|
|
2869
2931
|
|
|
2870
|
-
throw new AxiosError(`Response type '${type}' is not supported`, AxiosError.ERR_NOT_SUPPORT, config);
|
|
2932
|
+
throw new AxiosError$1(`Response type '${type}' is not supported`, AxiosError$1.ERR_NOT_SUPPORT, config);
|
|
2871
2933
|
});
|
|
2872
2934
|
});
|
|
2873
2935
|
})());
|
|
@@ -3033,14 +3095,14 @@ const factory = (env) => {
|
|
|
3033
3095
|
|
|
3034
3096
|
if (err && err.name === 'TypeError' && /Load failed|fetch/i.test(err.message)) {
|
|
3035
3097
|
throw Object.assign(
|
|
3036
|
-
new AxiosError('Network Error', AxiosError.ERR_NETWORK, config, request),
|
|
3098
|
+
new AxiosError$1('Network Error', AxiosError$1.ERR_NETWORK, config, request, err && err.response),
|
|
3037
3099
|
{
|
|
3038
3100
|
cause: err.cause || err
|
|
3039
3101
|
}
|
|
3040
3102
|
)
|
|
3041
3103
|
}
|
|
3042
3104
|
|
|
3043
|
-
throw AxiosError.from(err, err && err.code, config, request);
|
|
3105
|
+
throw AxiosError$1.from(err, err && err.code, config, request, err && err.response);
|
|
3044
3106
|
}
|
|
3045
3107
|
}
|
|
3046
3108
|
};
|
|
@@ -3145,7 +3207,7 @@ function getAdapter(adapters, config) {
|
|
|
3145
3207
|
adapter = knownAdapters[(id = String(nameOrAdapter)).toLowerCase()];
|
|
3146
3208
|
|
|
3147
3209
|
if (adapter === undefined) {
|
|
3148
|
-
throw new AxiosError(`Unknown adapter '${id}'`);
|
|
3210
|
+
throw new AxiosError$1(`Unknown adapter '${id}'`);
|
|
3149
3211
|
}
|
|
3150
3212
|
}
|
|
3151
3213
|
|
|
@@ -3166,7 +3228,7 @@ function getAdapter(adapters, config) {
|
|
|
3166
3228
|
(reasons.length > 1 ? 'since :\n' + reasons.map(renderReason).join('\n') : ' ' + renderReason(reasons[0])) :
|
|
3167
3229
|
'as no adapter specified';
|
|
3168
3230
|
|
|
3169
|
-
throw new AxiosError(
|
|
3231
|
+
throw new AxiosError$1(
|
|
3170
3232
|
`There is no suitable adapter to dispatch the request ` + s,
|
|
3171
3233
|
'ERR_NOT_SUPPORT'
|
|
3172
3234
|
);
|
|
@@ -3205,7 +3267,7 @@ function throwIfCancellationRequested(config) {
|
|
|
3205
3267
|
}
|
|
3206
3268
|
|
|
3207
3269
|
if (config.signal && config.signal.aborted) {
|
|
3208
|
-
throw new CanceledError(null, config);
|
|
3270
|
+
throw new CanceledError$1(null, config);
|
|
3209
3271
|
}
|
|
3210
3272
|
}
|
|
3211
3273
|
|
|
@@ -3265,7 +3327,7 @@ function dispatchRequest(config) {
|
|
|
3265
3327
|
});
|
|
3266
3328
|
}
|
|
3267
3329
|
|
|
3268
|
-
const VERSION = "1.13.
|
|
3330
|
+
const VERSION = "1.13.5";
|
|
3269
3331
|
|
|
3270
3332
|
const validators$1 = {};
|
|
3271
3333
|
|
|
@@ -3295,9 +3357,9 @@ validators$1.transitional = function transitional(validator, version, message) {
|
|
|
3295
3357
|
// eslint-disable-next-line func-names
|
|
3296
3358
|
return (value, opt, opts) => {
|
|
3297
3359
|
if (validator === false) {
|
|
3298
|
-
throw new AxiosError(
|
|
3360
|
+
throw new AxiosError$1(
|
|
3299
3361
|
formatMessage(opt, ' has been removed' + (version ? ' in ' + version : '')),
|
|
3300
|
-
AxiosError.ERR_DEPRECATED
|
|
3362
|
+
AxiosError$1.ERR_DEPRECATED
|
|
3301
3363
|
);
|
|
3302
3364
|
}
|
|
3303
3365
|
|
|
@@ -3336,7 +3398,7 @@ validators$1.spelling = function spelling(correctSpelling) {
|
|
|
3336
3398
|
|
|
3337
3399
|
function assertOptions(options, schema, allowUnknown) {
|
|
3338
3400
|
if (typeof options !== 'object') {
|
|
3339
|
-
throw new AxiosError('options must be an object', AxiosError.ERR_BAD_OPTION_VALUE);
|
|
3401
|
+
throw new AxiosError$1('options must be an object', AxiosError$1.ERR_BAD_OPTION_VALUE);
|
|
3340
3402
|
}
|
|
3341
3403
|
const keys = Object.keys(options);
|
|
3342
3404
|
let i = keys.length;
|
|
@@ -3347,12 +3409,12 @@ function assertOptions(options, schema, allowUnknown) {
|
|
|
3347
3409
|
const value = options[opt];
|
|
3348
3410
|
const result = value === undefined || validator(value, opt, options);
|
|
3349
3411
|
if (result !== true) {
|
|
3350
|
-
throw new AxiosError('option ' + opt + ' must be ' + result, AxiosError.ERR_BAD_OPTION_VALUE);
|
|
3412
|
+
throw new AxiosError$1('option ' + opt + ' must be ' + result, AxiosError$1.ERR_BAD_OPTION_VALUE);
|
|
3351
3413
|
}
|
|
3352
3414
|
continue;
|
|
3353
3415
|
}
|
|
3354
3416
|
if (allowUnknown !== true) {
|
|
3355
|
-
throw new AxiosError('Unknown option ' + opt, AxiosError.ERR_BAD_OPTION);
|
|
3417
|
+
throw new AxiosError$1('Unknown option ' + opt, AxiosError$1.ERR_BAD_OPTION);
|
|
3356
3418
|
}
|
|
3357
3419
|
}
|
|
3358
3420
|
}
|
|
@@ -3433,7 +3495,8 @@ class Axios {
|
|
|
3433
3495
|
validator.assertOptions(transitional, {
|
|
3434
3496
|
silentJSONParsing: validators.transitional(validators.boolean),
|
|
3435
3497
|
forcedJSONParsing: validators.transitional(validators.boolean),
|
|
3436
|
-
clarifyTimeoutError: validators.transitional(validators.boolean)
|
|
3498
|
+
clarifyTimeoutError: validators.transitional(validators.boolean),
|
|
3499
|
+
legacyInterceptorReqResOrdering: validators.transitional(validators.boolean)
|
|
3437
3500
|
}, false);
|
|
3438
3501
|
}
|
|
3439
3502
|
|
|
@@ -3490,7 +3553,14 @@ class Axios {
|
|
|
3490
3553
|
|
|
3491
3554
|
synchronousRequestInterceptors = synchronousRequestInterceptors && interceptor.synchronous;
|
|
3492
3555
|
|
|
3493
|
-
|
|
3556
|
+
const transitional = config.transitional || transitionalDefaults;
|
|
3557
|
+
const legacyInterceptorReqResOrdering = transitional && transitional.legacyInterceptorReqResOrdering;
|
|
3558
|
+
|
|
3559
|
+
if (legacyInterceptorReqResOrdering) {
|
|
3560
|
+
requestInterceptorChain.unshift(interceptor.fulfilled, interceptor.rejected);
|
|
3561
|
+
} else {
|
|
3562
|
+
requestInterceptorChain.push(interceptor.fulfilled, interceptor.rejected);
|
|
3563
|
+
}
|
|
3494
3564
|
});
|
|
3495
3565
|
|
|
3496
3566
|
const responseInterceptorChain = [];
|
|
@@ -3645,7 +3715,7 @@ class CancelToken {
|
|
|
3645
3715
|
return;
|
|
3646
3716
|
}
|
|
3647
3717
|
|
|
3648
|
-
token.reason = new CanceledError(message, config, request);
|
|
3718
|
+
token.reason = new CanceledError$1(message, config, request);
|
|
3649
3719
|
resolvePromise(token.reason);
|
|
3650
3720
|
});
|
|
3651
3721
|
}
|
|
@@ -3729,7 +3799,7 @@ var CancelToken$1 = CancelToken;
|
|
|
3729
3799
|
*
|
|
3730
3800
|
* ```js
|
|
3731
3801
|
* function f(x, y, z) {}
|
|
3732
|
-
*
|
|
3802
|
+
* const args = [1, 2, 3];
|
|
3733
3803
|
* f.apply(null, args);
|
|
3734
3804
|
* ```
|
|
3735
3805
|
*
|
|
@@ -3870,14 +3940,14 @@ const axios = createInstance(defaults$1);
|
|
|
3870
3940
|
axios.Axios = Axios$1;
|
|
3871
3941
|
|
|
3872
3942
|
// Expose Cancel & CancelToken
|
|
3873
|
-
axios.CanceledError = CanceledError;
|
|
3943
|
+
axios.CanceledError = CanceledError$1;
|
|
3874
3944
|
axios.CancelToken = CancelToken$1;
|
|
3875
3945
|
axios.isCancel = isCancel;
|
|
3876
3946
|
axios.VERSION = VERSION;
|
|
3877
3947
|
axios.toFormData = toFormData;
|
|
3878
3948
|
|
|
3879
3949
|
// Expose AxiosError class
|
|
3880
|
-
axios.AxiosError = AxiosError;
|
|
3950
|
+
axios.AxiosError = AxiosError$1;
|
|
3881
3951
|
|
|
3882
3952
|
// alias for CanceledError for backward compatibility
|
|
3883
3953
|
axios.Cancel = axios.CanceledError;
|