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
|
const FormData$1 = require('form-data');
|
|
@@ -43,30 +43,30 @@ function bind(fn, thisArg) {
|
|
|
43
43
|
|
|
44
44
|
// utils is a library of generic helper functions non-specific to axios
|
|
45
45
|
|
|
46
|
-
const {toString} = Object.prototype;
|
|
47
|
-
const {getPrototypeOf} = Object;
|
|
48
|
-
const {iterator, toStringTag} = Symbol;
|
|
46
|
+
const { toString } = Object.prototype;
|
|
47
|
+
const { getPrototypeOf } = Object;
|
|
48
|
+
const { iterator, toStringTag } = Symbol;
|
|
49
49
|
|
|
50
|
-
const kindOf = (cache => thing => {
|
|
51
|
-
|
|
52
|
-
|
|
50
|
+
const kindOf = ((cache) => (thing) => {
|
|
51
|
+
const str = toString.call(thing);
|
|
52
|
+
return cache[str] || (cache[str] = str.slice(8, -1).toLowerCase());
|
|
53
53
|
})(Object.create(null));
|
|
54
54
|
|
|
55
55
|
const kindOfTest = (type) => {
|
|
56
56
|
type = type.toLowerCase();
|
|
57
|
-
return (thing) => kindOf(thing) === type
|
|
57
|
+
return (thing) => kindOf(thing) === type;
|
|
58
58
|
};
|
|
59
59
|
|
|
60
|
-
const typeOfTest = type => thing => typeof thing === type;
|
|
60
|
+
const typeOfTest = (type) => (thing) => typeof thing === type;
|
|
61
61
|
|
|
62
62
|
/**
|
|
63
|
-
* Determine if a value is
|
|
63
|
+
* Determine if a value is a non-null object
|
|
64
64
|
*
|
|
65
65
|
* @param {Object} val The value to test
|
|
66
66
|
*
|
|
67
67
|
* @returns {boolean} True if value is an Array, otherwise false
|
|
68
68
|
*/
|
|
69
|
-
const {isArray} = Array;
|
|
69
|
+
const { isArray } = Array;
|
|
70
70
|
|
|
71
71
|
/**
|
|
72
72
|
* Determine if a value is undefined
|
|
@@ -75,7 +75,7 @@ const {isArray} = Array;
|
|
|
75
75
|
*
|
|
76
76
|
* @returns {boolean} True if the value is undefined, otherwise false
|
|
77
77
|
*/
|
|
78
|
-
const isUndefined = typeOfTest(
|
|
78
|
+
const isUndefined = typeOfTest("undefined");
|
|
79
79
|
|
|
80
80
|
/**
|
|
81
81
|
* Determine if a value is a Buffer
|
|
@@ -85,8 +85,14 @@ const isUndefined = typeOfTest('undefined');
|
|
|
85
85
|
* @returns {boolean} True if value is a Buffer, otherwise false
|
|
86
86
|
*/
|
|
87
87
|
function isBuffer(val) {
|
|
88
|
-
return
|
|
89
|
-
|
|
88
|
+
return (
|
|
89
|
+
val !== null &&
|
|
90
|
+
!isUndefined(val) &&
|
|
91
|
+
val.constructor !== null &&
|
|
92
|
+
!isUndefined(val.constructor) &&
|
|
93
|
+
isFunction$1(val.constructor.isBuffer) &&
|
|
94
|
+
val.constructor.isBuffer(val)
|
|
95
|
+
);
|
|
90
96
|
}
|
|
91
97
|
|
|
92
98
|
/**
|
|
@@ -96,8 +102,7 @@ function isBuffer(val) {
|
|
|
96
102
|
*
|
|
97
103
|
* @returns {boolean} True if value is an ArrayBuffer, otherwise false
|
|
98
104
|
*/
|
|
99
|
-
const isArrayBuffer = kindOfTest(
|
|
100
|
-
|
|
105
|
+
const isArrayBuffer = kindOfTest("ArrayBuffer");
|
|
101
106
|
|
|
102
107
|
/**
|
|
103
108
|
* Determine if a value is a view on an ArrayBuffer
|
|
@@ -108,10 +113,10 @@ const isArrayBuffer = kindOfTest('ArrayBuffer');
|
|
|
108
113
|
*/
|
|
109
114
|
function isArrayBufferView(val) {
|
|
110
115
|
let result;
|
|
111
|
-
if (
|
|
116
|
+
if (typeof ArrayBuffer !== "undefined" && ArrayBuffer.isView) {
|
|
112
117
|
result = ArrayBuffer.isView(val);
|
|
113
118
|
} else {
|
|
114
|
-
result =
|
|
119
|
+
result = val && val.buffer && isArrayBuffer(val.buffer);
|
|
115
120
|
}
|
|
116
121
|
return result;
|
|
117
122
|
}
|
|
@@ -123,7 +128,7 @@ function isArrayBufferView(val) {
|
|
|
123
128
|
*
|
|
124
129
|
* @returns {boolean} True if value is a String, otherwise false
|
|
125
130
|
*/
|
|
126
|
-
const isString = typeOfTest(
|
|
131
|
+
const isString = typeOfTest("string");
|
|
127
132
|
|
|
128
133
|
/**
|
|
129
134
|
* Determine if a value is a Function
|
|
@@ -131,7 +136,7 @@ const isString = typeOfTest('string');
|
|
|
131
136
|
* @param {*} val The value to test
|
|
132
137
|
* @returns {boolean} True if value is a Function, otherwise false
|
|
133
138
|
*/
|
|
134
|
-
const isFunction$1 = typeOfTest(
|
|
139
|
+
const isFunction$1 = typeOfTest("function");
|
|
135
140
|
|
|
136
141
|
/**
|
|
137
142
|
* Determine if a value is a Number
|
|
@@ -140,7 +145,7 @@ const isFunction$1 = typeOfTest('function');
|
|
|
140
145
|
*
|
|
141
146
|
* @returns {boolean} True if value is a Number, otherwise false
|
|
142
147
|
*/
|
|
143
|
-
const isNumber = typeOfTest(
|
|
148
|
+
const isNumber = typeOfTest("number");
|
|
144
149
|
|
|
145
150
|
/**
|
|
146
151
|
* Determine if a value is an Object
|
|
@@ -149,7 +154,7 @@ const isNumber = typeOfTest('number');
|
|
|
149
154
|
*
|
|
150
155
|
* @returns {boolean} True if value is an Object, otherwise false
|
|
151
156
|
*/
|
|
152
|
-
const isObject = (thing) => thing !== null && typeof thing ===
|
|
157
|
+
const isObject = (thing) => thing !== null && typeof thing === "object";
|
|
153
158
|
|
|
154
159
|
/**
|
|
155
160
|
* Determine if a value is a Boolean
|
|
@@ -157,7 +162,7 @@ const isObject = (thing) => thing !== null && typeof thing === 'object';
|
|
|
157
162
|
* @param {*} thing The value to test
|
|
158
163
|
* @returns {boolean} True if value is a Boolean, otherwise false
|
|
159
164
|
*/
|
|
160
|
-
const isBoolean = thing => thing === true || thing === false;
|
|
165
|
+
const isBoolean = (thing) => thing === true || thing === false;
|
|
161
166
|
|
|
162
167
|
/**
|
|
163
168
|
* Determine if a value is a plain Object
|
|
@@ -167,12 +172,18 @@ const isBoolean = thing => thing === true || thing === false;
|
|
|
167
172
|
* @returns {boolean} True if value is a plain Object, otherwise false
|
|
168
173
|
*/
|
|
169
174
|
const isPlainObject = (val) => {
|
|
170
|
-
if (kindOf(val) !==
|
|
175
|
+
if (kindOf(val) !== "object") {
|
|
171
176
|
return false;
|
|
172
177
|
}
|
|
173
178
|
|
|
174
179
|
const prototype = getPrototypeOf(val);
|
|
175
|
-
return (
|
|
180
|
+
return (
|
|
181
|
+
(prototype === null ||
|
|
182
|
+
prototype === Object.prototype ||
|
|
183
|
+
Object.getPrototypeOf(prototype) === null) &&
|
|
184
|
+
!(toStringTag in val) &&
|
|
185
|
+
!(iterator in val)
|
|
186
|
+
);
|
|
176
187
|
};
|
|
177
188
|
|
|
178
189
|
/**
|
|
@@ -189,7 +200,10 @@ const isEmptyObject = (val) => {
|
|
|
189
200
|
}
|
|
190
201
|
|
|
191
202
|
try {
|
|
192
|
-
return
|
|
203
|
+
return (
|
|
204
|
+
Object.keys(val).length === 0 &&
|
|
205
|
+
Object.getPrototypeOf(val) === Object.prototype
|
|
206
|
+
);
|
|
193
207
|
} catch (e) {
|
|
194
208
|
// Fallback for any other objects that might cause RangeError with Object.keys()
|
|
195
209
|
return false;
|
|
@@ -203,7 +217,7 @@ const isEmptyObject = (val) => {
|
|
|
203
217
|
*
|
|
204
218
|
* @returns {boolean} True if value is a Date, otherwise false
|
|
205
219
|
*/
|
|
206
|
-
const isDate = kindOfTest(
|
|
220
|
+
const isDate = kindOfTest("Date");
|
|
207
221
|
|
|
208
222
|
/**
|
|
209
223
|
* Determine if a value is a File
|
|
@@ -212,7 +226,7 @@ const isDate = kindOfTest('Date');
|
|
|
212
226
|
*
|
|
213
227
|
* @returns {boolean} True if value is a File, otherwise false
|
|
214
228
|
*/
|
|
215
|
-
const isFile = kindOfTest(
|
|
229
|
+
const isFile = kindOfTest("File");
|
|
216
230
|
|
|
217
231
|
/**
|
|
218
232
|
* Determine if a value is a Blob
|
|
@@ -221,7 +235,7 @@ const isFile = kindOfTest('File');
|
|
|
221
235
|
*
|
|
222
236
|
* @returns {boolean} True if value is a Blob, otherwise false
|
|
223
237
|
*/
|
|
224
|
-
const isBlob = kindOfTest(
|
|
238
|
+
const isBlob = kindOfTest("Blob");
|
|
225
239
|
|
|
226
240
|
/**
|
|
227
241
|
* Determine if a value is a FileList
|
|
@@ -230,7 +244,7 @@ const isBlob = kindOfTest('Blob');
|
|
|
230
244
|
*
|
|
231
245
|
* @returns {boolean} True if value is a File, otherwise false
|
|
232
246
|
*/
|
|
233
|
-
const isFileList = kindOfTest(
|
|
247
|
+
const isFileList = kindOfTest("FileList");
|
|
234
248
|
|
|
235
249
|
/**
|
|
236
250
|
* Determine if a value is a Stream
|
|
@@ -250,15 +264,16 @@ const isStream = (val) => isObject(val) && isFunction$1(val.pipe);
|
|
|
250
264
|
*/
|
|
251
265
|
const isFormData = (thing) => {
|
|
252
266
|
let kind;
|
|
253
|
-
return
|
|
254
|
-
|
|
255
|
-
|
|
256
|
-
|
|
257
|
-
|
|
258
|
-
|
|
259
|
-
|
|
260
|
-
|
|
261
|
-
|
|
267
|
+
return (
|
|
268
|
+
thing &&
|
|
269
|
+
((typeof FormData === "function" && thing instanceof FormData) ||
|
|
270
|
+
(isFunction$1(thing.append) &&
|
|
271
|
+
((kind = kindOf(thing)) === "formdata" ||
|
|
272
|
+
// detect form-data instance
|
|
273
|
+
(kind === "object" &&
|
|
274
|
+
isFunction$1(thing.toString) &&
|
|
275
|
+
thing.toString() === "[object FormData]"))))
|
|
276
|
+
);
|
|
262
277
|
};
|
|
263
278
|
|
|
264
279
|
/**
|
|
@@ -268,9 +283,14 @@ const isFormData = (thing) => {
|
|
|
268
283
|
*
|
|
269
284
|
* @returns {boolean} True if value is a URLSearchParams object, otherwise false
|
|
270
285
|
*/
|
|
271
|
-
const isURLSearchParams = kindOfTest(
|
|
286
|
+
const isURLSearchParams = kindOfTest("URLSearchParams");
|
|
272
287
|
|
|
273
|
-
const [isReadableStream, isRequest, isResponse, isHeaders] = [
|
|
288
|
+
const [isReadableStream, isRequest, isResponse, isHeaders] = [
|
|
289
|
+
"ReadableStream",
|
|
290
|
+
"Request",
|
|
291
|
+
"Response",
|
|
292
|
+
"Headers",
|
|
293
|
+
].map(kindOfTest);
|
|
274
294
|
|
|
275
295
|
/**
|
|
276
296
|
* Trim excess whitespace off the beginning and end of a string
|
|
@@ -279,8 +299,8 @@ const [isReadableStream, isRequest, isResponse, isHeaders] = ['ReadableStream',
|
|
|
279
299
|
*
|
|
280
300
|
* @returns {String} The String freed of excess whitespace
|
|
281
301
|
*/
|
|
282
|
-
const trim = (str) =>
|
|
283
|
-
str.trim() : str.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,
|
|
302
|
+
const trim = (str) =>
|
|
303
|
+
str.trim ? str.trim() : str.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g, "");
|
|
284
304
|
|
|
285
305
|
/**
|
|
286
306
|
* Iterate over an Array or an Object invoking a function for each item.
|
|
@@ -291,15 +311,16 @@ const trim = (str) => str.trim ?
|
|
|
291
311
|
* If 'obj' is an Object callback will be called passing
|
|
292
312
|
* the value, key, and complete object for each property.
|
|
293
313
|
*
|
|
294
|
-
* @param {Object|Array} obj The object to iterate
|
|
314
|
+
* @param {Object|Array<unknown>} obj The object to iterate
|
|
295
315
|
* @param {Function} fn The callback to invoke for each item
|
|
296
316
|
*
|
|
297
|
-
* @param {
|
|
317
|
+
* @param {Object} [options]
|
|
318
|
+
* @param {Boolean} [options.allOwnKeys = false]
|
|
298
319
|
* @returns {any}
|
|
299
320
|
*/
|
|
300
|
-
function forEach(obj, fn, {allOwnKeys = false} = {}) {
|
|
321
|
+
function forEach(obj, fn, { allOwnKeys = false } = {}) {
|
|
301
322
|
// Don't bother if no value provided
|
|
302
|
-
if (obj === null || typeof obj ===
|
|
323
|
+
if (obj === null || typeof obj === "undefined") {
|
|
303
324
|
return;
|
|
304
325
|
}
|
|
305
326
|
|
|
@@ -307,7 +328,7 @@ function forEach(obj, fn, {allOwnKeys = false} = {}) {
|
|
|
307
328
|
let l;
|
|
308
329
|
|
|
309
330
|
// Force an array if not already something iterable
|
|
310
|
-
if (typeof obj !==
|
|
331
|
+
if (typeof obj !== "object") {
|
|
311
332
|
/*eslint no-param-reassign:0*/
|
|
312
333
|
obj = [obj];
|
|
313
334
|
}
|
|
@@ -324,7 +345,9 @@ function forEach(obj, fn, {allOwnKeys = false} = {}) {
|
|
|
324
345
|
}
|
|
325
346
|
|
|
326
347
|
// Iterate over object keys
|
|
327
|
-
const keys = allOwnKeys
|
|
348
|
+
const keys = allOwnKeys
|
|
349
|
+
? Object.getOwnPropertyNames(obj)
|
|
350
|
+
: Object.keys(obj);
|
|
328
351
|
const len = keys.length;
|
|
329
352
|
let key;
|
|
330
353
|
|
|
@@ -336,7 +359,7 @@ function forEach(obj, fn, {allOwnKeys = false} = {}) {
|
|
|
336
359
|
}
|
|
337
360
|
|
|
338
361
|
function findKey(obj, key) {
|
|
339
|
-
if (isBuffer(obj)){
|
|
362
|
+
if (isBuffer(obj)) {
|
|
340
363
|
return null;
|
|
341
364
|
}
|
|
342
365
|
|
|
@@ -356,10 +379,15 @@ function findKey(obj, key) {
|
|
|
356
379
|
const _global = (() => {
|
|
357
380
|
/*eslint no-undef:0*/
|
|
358
381
|
if (typeof globalThis !== "undefined") return globalThis;
|
|
359
|
-
return typeof self !== "undefined"
|
|
382
|
+
return typeof self !== "undefined"
|
|
383
|
+
? self
|
|
384
|
+
: typeof window !== "undefined"
|
|
385
|
+
? window
|
|
386
|
+
: global;
|
|
360
387
|
})();
|
|
361
388
|
|
|
362
|
-
const isContextDefined = (context) =>
|
|
389
|
+
const isContextDefined = (context) =>
|
|
390
|
+
!isUndefined(context) && context !== _global;
|
|
363
391
|
|
|
364
392
|
/**
|
|
365
393
|
* Accepts varargs expecting each argument to be an object, then
|
|
@@ -371,7 +399,7 @@ const isContextDefined = (context) => !isUndefined(context) && context !== _glob
|
|
|
371
399
|
* Example:
|
|
372
400
|
*
|
|
373
401
|
* ```js
|
|
374
|
-
*
|
|
402
|
+
* const result = merge({foo: 123}, {foo: 456});
|
|
375
403
|
* console.log(result.foo); // outputs 456
|
|
376
404
|
* ```
|
|
377
405
|
*
|
|
@@ -380,10 +408,15 @@ const isContextDefined = (context) => !isUndefined(context) && context !== _glob
|
|
|
380
408
|
* @returns {Object} Result of all merge properties
|
|
381
409
|
*/
|
|
382
410
|
function merge(/* obj1, obj2, obj3, ... */) {
|
|
383
|
-
const {caseless, skipUndefined} = isContextDefined(this) && this || {};
|
|
411
|
+
const { caseless, skipUndefined } = (isContextDefined(this) && this) || {};
|
|
384
412
|
const result = {};
|
|
385
413
|
const assignValue = (val, key) => {
|
|
386
|
-
|
|
414
|
+
// Skip dangerous property names to prevent prototype pollution
|
|
415
|
+
if (key === "__proto__" || key === "constructor" || key === "prototype") {
|
|
416
|
+
return;
|
|
417
|
+
}
|
|
418
|
+
|
|
419
|
+
const targetKey = (caseless && findKey(result, key)) || key;
|
|
387
420
|
if (isPlainObject(result[targetKey]) && isPlainObject(val)) {
|
|
388
421
|
result[targetKey] = merge(result[targetKey], val);
|
|
389
422
|
} else if (isPlainObject(val)) {
|
|
@@ -408,17 +441,32 @@ function merge(/* obj1, obj2, obj3, ... */) {
|
|
|
408
441
|
* @param {Object} b The object to copy properties from
|
|
409
442
|
* @param {Object} thisArg The object to bind function to
|
|
410
443
|
*
|
|
411
|
-
* @param {
|
|
444
|
+
* @param {Object} [options]
|
|
445
|
+
* @param {Boolean} [options.allOwnKeys]
|
|
412
446
|
* @returns {Object} The resulting value of object a
|
|
413
447
|
*/
|
|
414
|
-
const extend = (a, b, thisArg, {allOwnKeys}= {}) => {
|
|
415
|
-
forEach(
|
|
416
|
-
|
|
417
|
-
|
|
418
|
-
|
|
419
|
-
|
|
420
|
-
|
|
421
|
-
|
|
448
|
+
const extend = (a, b, thisArg, { allOwnKeys } = {}) => {
|
|
449
|
+
forEach(
|
|
450
|
+
b,
|
|
451
|
+
(val, key) => {
|
|
452
|
+
if (thisArg && isFunction$1(val)) {
|
|
453
|
+
Object.defineProperty(a, key, {
|
|
454
|
+
value: bind(val, thisArg),
|
|
455
|
+
writable: true,
|
|
456
|
+
enumerable: true,
|
|
457
|
+
configurable: true,
|
|
458
|
+
});
|
|
459
|
+
} else {
|
|
460
|
+
Object.defineProperty(a, key, {
|
|
461
|
+
value: val,
|
|
462
|
+
writable: true,
|
|
463
|
+
enumerable: true,
|
|
464
|
+
configurable: true,
|
|
465
|
+
});
|
|
466
|
+
}
|
|
467
|
+
},
|
|
468
|
+
{ allOwnKeys },
|
|
469
|
+
);
|
|
422
470
|
return a;
|
|
423
471
|
};
|
|
424
472
|
|
|
@@ -430,7 +478,7 @@ const extend = (a, b, thisArg, {allOwnKeys}= {}) => {
|
|
|
430
478
|
* @returns {string} content value without BOM
|
|
431
479
|
*/
|
|
432
480
|
const stripBOM = (content) => {
|
|
433
|
-
if (content.charCodeAt(0) ===
|
|
481
|
+
if (content.charCodeAt(0) === 0xfeff) {
|
|
434
482
|
content = content.slice(1);
|
|
435
483
|
}
|
|
436
484
|
return content;
|
|
@@ -446,10 +494,18 @@ const stripBOM = (content) => {
|
|
|
446
494
|
* @returns {void}
|
|
447
495
|
*/
|
|
448
496
|
const inherits = (constructor, superConstructor, props, descriptors) => {
|
|
449
|
-
constructor.prototype = Object.create(
|
|
450
|
-
|
|
451
|
-
|
|
452
|
-
|
|
497
|
+
constructor.prototype = Object.create(
|
|
498
|
+
superConstructor.prototype,
|
|
499
|
+
descriptors,
|
|
500
|
+
);
|
|
501
|
+
Object.defineProperty(constructor.prototype, "constructor", {
|
|
502
|
+
value: constructor,
|
|
503
|
+
writable: true,
|
|
504
|
+
enumerable: false,
|
|
505
|
+
configurable: true,
|
|
506
|
+
});
|
|
507
|
+
Object.defineProperty(constructor, "super", {
|
|
508
|
+
value: superConstructor.prototype,
|
|
453
509
|
});
|
|
454
510
|
props && Object.assign(constructor.prototype, props);
|
|
455
511
|
};
|
|
@@ -478,13 +534,20 @@ const toFlatObject = (sourceObj, destObj, filter, propFilter) => {
|
|
|
478
534
|
i = props.length;
|
|
479
535
|
while (i-- > 0) {
|
|
480
536
|
prop = props[i];
|
|
481
|
-
if (
|
|
537
|
+
if (
|
|
538
|
+
(!propFilter || propFilter(prop, sourceObj, destObj)) &&
|
|
539
|
+
!merged[prop]
|
|
540
|
+
) {
|
|
482
541
|
destObj[prop] = sourceObj[prop];
|
|
483
542
|
merged[prop] = true;
|
|
484
543
|
}
|
|
485
544
|
}
|
|
486
545
|
sourceObj = filter !== false && getPrototypeOf(sourceObj);
|
|
487
|
-
} while (
|
|
546
|
+
} while (
|
|
547
|
+
sourceObj &&
|
|
548
|
+
(!filter || filter(sourceObj, destObj)) &&
|
|
549
|
+
sourceObj !== Object.prototype
|
|
550
|
+
);
|
|
488
551
|
|
|
489
552
|
return destObj;
|
|
490
553
|
};
|
|
@@ -508,7 +571,6 @@ const endsWith = (str, searchString, position) => {
|
|
|
508
571
|
return lastIndex !== -1 && lastIndex === position;
|
|
509
572
|
};
|
|
510
573
|
|
|
511
|
-
|
|
512
574
|
/**
|
|
513
575
|
* Returns new array from array like object or null if failed
|
|
514
576
|
*
|
|
@@ -537,12 +599,12 @@ const toArray = (thing) => {
|
|
|
537
599
|
* @returns {Array}
|
|
538
600
|
*/
|
|
539
601
|
// eslint-disable-next-line func-names
|
|
540
|
-
const isTypedArray = (TypedArray => {
|
|
602
|
+
const isTypedArray = ((TypedArray) => {
|
|
541
603
|
// eslint-disable-next-line func-names
|
|
542
|
-
return thing => {
|
|
604
|
+
return (thing) => {
|
|
543
605
|
return TypedArray && thing instanceof TypedArray;
|
|
544
606
|
};
|
|
545
|
-
})(typeof Uint8Array !==
|
|
607
|
+
})(typeof Uint8Array !== "undefined" && getPrototypeOf(Uint8Array));
|
|
546
608
|
|
|
547
609
|
/**
|
|
548
610
|
* For each entry in the object, call the function with the key and value.
|
|
@@ -585,18 +647,22 @@ const matchAll = (regExp, str) => {
|
|
|
585
647
|
};
|
|
586
648
|
|
|
587
649
|
/* Checking if the kindOfTest function returns true when passed an HTMLFormElement. */
|
|
588
|
-
const isHTMLForm = kindOfTest(
|
|
650
|
+
const isHTMLForm = kindOfTest("HTMLFormElement");
|
|
589
651
|
|
|
590
|
-
const toCamelCase = str => {
|
|
591
|
-
return str
|
|
592
|
-
|
|
652
|
+
const toCamelCase = (str) => {
|
|
653
|
+
return str
|
|
654
|
+
.toLowerCase()
|
|
655
|
+
.replace(/[-_\s]([a-z\d])(\w*)/g, function replacer(m, p1, p2) {
|
|
593
656
|
return p1.toUpperCase() + p2;
|
|
594
|
-
}
|
|
595
|
-
);
|
|
657
|
+
});
|
|
596
658
|
};
|
|
597
659
|
|
|
598
660
|
/* Creating a function that will check if an object has a property. */
|
|
599
|
-
const hasOwnProperty = (
|
|
661
|
+
const hasOwnProperty = (
|
|
662
|
+
({ hasOwnProperty }) =>
|
|
663
|
+
(obj, prop) =>
|
|
664
|
+
hasOwnProperty.call(obj, prop)
|
|
665
|
+
)(Object.prototype);
|
|
600
666
|
|
|
601
667
|
/**
|
|
602
668
|
* Determine if a value is a RegExp object
|
|
@@ -605,7 +671,7 @@ const hasOwnProperty = (({hasOwnProperty}) => (obj, prop) => hasOwnProperty.call
|
|
|
605
671
|
*
|
|
606
672
|
* @returns {boolean} True if value is a RegExp object, otherwise false
|
|
607
673
|
*/
|
|
608
|
-
const isRegExp = kindOfTest(
|
|
674
|
+
const isRegExp = kindOfTest("RegExp");
|
|
609
675
|
|
|
610
676
|
const reduceDescriptors = (obj, reducer) => {
|
|
611
677
|
const descriptors = Object.getOwnPropertyDescriptors(obj);
|
|
@@ -629,7 +695,10 @@ const reduceDescriptors = (obj, reducer) => {
|
|
|
629
695
|
const freezeMethods = (obj) => {
|
|
630
696
|
reduceDescriptors(obj, (descriptor, name) => {
|
|
631
697
|
// skip restricted props in strict mode
|
|
632
|
-
if (
|
|
698
|
+
if (
|
|
699
|
+
isFunction$1(obj) &&
|
|
700
|
+
["arguments", "caller", "callee"].indexOf(name) !== -1
|
|
701
|
+
) {
|
|
633
702
|
return false;
|
|
634
703
|
}
|
|
635
704
|
|
|
@@ -639,14 +708,14 @@ const freezeMethods = (obj) => {
|
|
|
639
708
|
|
|
640
709
|
descriptor.enumerable = false;
|
|
641
710
|
|
|
642
|
-
if (
|
|
711
|
+
if ("writable" in descriptor) {
|
|
643
712
|
descriptor.writable = false;
|
|
644
713
|
return;
|
|
645
714
|
}
|
|
646
715
|
|
|
647
716
|
if (!descriptor.set) {
|
|
648
717
|
descriptor.set = () => {
|
|
649
|
-
throw Error(
|
|
718
|
+
throw Error("Can not rewrite read-only method '" + name + "'");
|
|
650
719
|
};
|
|
651
720
|
}
|
|
652
721
|
});
|
|
@@ -656,12 +725,14 @@ const toObjectSet = (arrayOrString, delimiter) => {
|
|
|
656
725
|
const obj = {};
|
|
657
726
|
|
|
658
727
|
const define = (arr) => {
|
|
659
|
-
arr.forEach(value => {
|
|
728
|
+
arr.forEach((value) => {
|
|
660
729
|
obj[value] = true;
|
|
661
730
|
});
|
|
662
731
|
};
|
|
663
732
|
|
|
664
|
-
isArray(arrayOrString)
|
|
733
|
+
isArray(arrayOrString)
|
|
734
|
+
? define(arrayOrString)
|
|
735
|
+
: define(String(arrayOrString).split(delimiter));
|
|
665
736
|
|
|
666
737
|
return obj;
|
|
667
738
|
};
|
|
@@ -669,11 +740,11 @@ const toObjectSet = (arrayOrString, delimiter) => {
|
|
|
669
740
|
const noop = () => {};
|
|
670
741
|
|
|
671
742
|
const toFiniteNumber = (value, defaultValue) => {
|
|
672
|
-
return value != null && Number.isFinite(value = +value)
|
|
743
|
+
return value != null && Number.isFinite((value = +value))
|
|
744
|
+
? value
|
|
745
|
+
: defaultValue;
|
|
673
746
|
};
|
|
674
747
|
|
|
675
|
-
|
|
676
|
-
|
|
677
748
|
/**
|
|
678
749
|
* If the thing is a FormData object, return true, otherwise return false.
|
|
679
750
|
*
|
|
@@ -682,14 +753,18 @@ const toFiniteNumber = (value, defaultValue) => {
|
|
|
682
753
|
* @returns {boolean}
|
|
683
754
|
*/
|
|
684
755
|
function isSpecCompliantForm(thing) {
|
|
685
|
-
return !!(
|
|
756
|
+
return !!(
|
|
757
|
+
thing &&
|
|
758
|
+
isFunction$1(thing.append) &&
|
|
759
|
+
thing[toStringTag] === "FormData" &&
|
|
760
|
+
thing[iterator]
|
|
761
|
+
);
|
|
686
762
|
}
|
|
687
763
|
|
|
688
764
|
const toJSONObject = (obj) => {
|
|
689
765
|
const stack = new Array(10);
|
|
690
766
|
|
|
691
767
|
const visit = (source, i) => {
|
|
692
|
-
|
|
693
768
|
if (isObject(source)) {
|
|
694
769
|
if (stack.indexOf(source) >= 0) {
|
|
695
770
|
return;
|
|
@@ -700,7 +775,7 @@ const toJSONObject = (obj) => {
|
|
|
700
775
|
return source;
|
|
701
776
|
}
|
|
702
777
|
|
|
703
|
-
if(!(
|
|
778
|
+
if (!("toJSON" in source)) {
|
|
704
779
|
stack[i] = source;
|
|
705
780
|
const target = isArray(source) ? [] : {};
|
|
706
781
|
|
|
@@ -721,10 +796,13 @@ const toJSONObject = (obj) => {
|
|
|
721
796
|
return visit(obj, 0);
|
|
722
797
|
};
|
|
723
798
|
|
|
724
|
-
const isAsyncFn = kindOfTest(
|
|
799
|
+
const isAsyncFn = kindOfTest("AsyncFunction");
|
|
725
800
|
|
|
726
801
|
const isThenable = (thing) =>
|
|
727
|
-
thing &&
|
|
802
|
+
thing &&
|
|
803
|
+
(isObject(thing) || isFunction$1(thing)) &&
|
|
804
|
+
isFunction$1(thing.then) &&
|
|
805
|
+
isFunction$1(thing.catch);
|
|
728
806
|
|
|
729
807
|
// original code
|
|
730
808
|
// https://github.com/DigitalBrainJS/AxiosPromise/blob/16deab13710ec09779922131f3fa5954320f83ab/lib/utils.js#L11-L34
|
|
@@ -734,32 +812,35 @@ const _setImmediate = ((setImmediateSupported, postMessageSupported) => {
|
|
|
734
812
|
return setImmediate;
|
|
735
813
|
}
|
|
736
814
|
|
|
737
|
-
return postMessageSupported
|
|
738
|
-
|
|
739
|
-
|
|
740
|
-
|
|
741
|
-
|
|
742
|
-
|
|
815
|
+
return postMessageSupported
|
|
816
|
+
? ((token, callbacks) => {
|
|
817
|
+
_global.addEventListener(
|
|
818
|
+
"message",
|
|
819
|
+
({ source, data }) => {
|
|
820
|
+
if (source === _global && data === token) {
|
|
821
|
+
callbacks.length && callbacks.shift()();
|
|
822
|
+
}
|
|
823
|
+
},
|
|
824
|
+
false,
|
|
825
|
+
);
|
|
743
826
|
|
|
744
|
-
|
|
745
|
-
|
|
746
|
-
|
|
747
|
-
|
|
748
|
-
|
|
749
|
-
|
|
750
|
-
|
|
751
|
-
isFunction$1(_global.postMessage)
|
|
752
|
-
);
|
|
827
|
+
return (cb) => {
|
|
828
|
+
callbacks.push(cb);
|
|
829
|
+
_global.postMessage(token, "*");
|
|
830
|
+
};
|
|
831
|
+
})(`axios@${Math.random()}`, [])
|
|
832
|
+
: (cb) => setTimeout(cb);
|
|
833
|
+
})(typeof setImmediate === "function", isFunction$1(_global.postMessage));
|
|
753
834
|
|
|
754
|
-
const asap =
|
|
755
|
-
|
|
835
|
+
const asap =
|
|
836
|
+
typeof queueMicrotask !== "undefined"
|
|
837
|
+
? queueMicrotask.bind(_global)
|
|
838
|
+
: (typeof process !== "undefined" && process.nextTick) || _setImmediate;
|
|
756
839
|
|
|
757
840
|
// *********************
|
|
758
841
|
|
|
759
|
-
|
|
760
842
|
const isIterable = (thing) => thing != null && isFunction$1(thing[iterator]);
|
|
761
843
|
|
|
762
|
-
|
|
763
844
|
const utils$1 = {
|
|
764
845
|
isArray,
|
|
765
846
|
isArrayBuffer,
|
|
@@ -817,113 +898,78 @@ const utils$1 = {
|
|
|
817
898
|
isThenable,
|
|
818
899
|
setImmediate: _setImmediate,
|
|
819
900
|
asap,
|
|
820
|
-
isIterable
|
|
901
|
+
isIterable,
|
|
821
902
|
};
|
|
822
903
|
|
|
823
|
-
|
|
824
|
-
|
|
825
|
-
|
|
826
|
-
|
|
827
|
-
|
|
828
|
-
|
|
829
|
-
|
|
830
|
-
|
|
831
|
-
|
|
832
|
-
|
|
833
|
-
|
|
834
|
-
|
|
835
|
-
|
|
836
|
-
|
|
837
|
-
|
|
838
|
-
|
|
839
|
-
|
|
840
|
-
|
|
841
|
-
|
|
904
|
+
class AxiosError extends Error {
|
|
905
|
+
static from(error, code, config, request, response, customProps) {
|
|
906
|
+
const axiosError = new AxiosError(error.message, code || error.code, config, request, response);
|
|
907
|
+
axiosError.cause = error;
|
|
908
|
+
axiosError.name = error.name;
|
|
909
|
+
customProps && Object.assign(axiosError, customProps);
|
|
910
|
+
return axiosError;
|
|
911
|
+
}
|
|
912
|
+
|
|
913
|
+
/**
|
|
914
|
+
* Create an Error with the specified message, config, error code, request and response.
|
|
915
|
+
*
|
|
916
|
+
* @param {string} message The error message.
|
|
917
|
+
* @param {string} [code] The error code (for example, 'ECONNABORTED').
|
|
918
|
+
* @param {Object} [config] The config.
|
|
919
|
+
* @param {Object} [request] The request.
|
|
920
|
+
* @param {Object} [response] The response.
|
|
921
|
+
*
|
|
922
|
+
* @returns {Error} The created error.
|
|
923
|
+
*/
|
|
924
|
+
constructor(message, code, config, request, response) {
|
|
925
|
+
super(message);
|
|
926
|
+
this.name = 'AxiosError';
|
|
927
|
+
this.isAxiosError = true;
|
|
928
|
+
code && (this.code = code);
|
|
929
|
+
config && (this.config = config);
|
|
930
|
+
request && (this.request = request);
|
|
931
|
+
if (response) {
|
|
932
|
+
this.response = response;
|
|
933
|
+
this.status = response.status;
|
|
934
|
+
}
|
|
935
|
+
}
|
|
842
936
|
|
|
843
|
-
|
|
844
|
-
|
|
845
|
-
|
|
846
|
-
|
|
847
|
-
|
|
848
|
-
|
|
849
|
-
|
|
850
|
-
|
|
851
|
-
|
|
937
|
+
toJSON() {
|
|
938
|
+
return {
|
|
939
|
+
// Standard
|
|
940
|
+
message: this.message,
|
|
941
|
+
name: this.name,
|
|
942
|
+
// Microsoft
|
|
943
|
+
description: this.description,
|
|
944
|
+
number: this.number,
|
|
945
|
+
// Mozilla
|
|
946
|
+
fileName: this.fileName,
|
|
947
|
+
lineNumber: this.lineNumber,
|
|
948
|
+
columnNumber: this.columnNumber,
|
|
949
|
+
stack: this.stack,
|
|
950
|
+
// Axios
|
|
951
|
+
config: utils$1.toJSONObject(this.config),
|
|
952
|
+
code: this.code,
|
|
953
|
+
status: this.status,
|
|
954
|
+
};
|
|
955
|
+
}
|
|
852
956
|
}
|
|
853
957
|
|
|
854
|
-
|
|
855
|
-
|
|
856
|
-
|
|
857
|
-
|
|
858
|
-
|
|
859
|
-
|
|
860
|
-
|
|
861
|
-
|
|
862
|
-
|
|
863
|
-
|
|
864
|
-
|
|
865
|
-
|
|
866
|
-
|
|
867
|
-
|
|
868
|
-
|
|
869
|
-
config: utils$1.toJSONObject(this.config),
|
|
870
|
-
code: this.code,
|
|
871
|
-
status: this.status
|
|
872
|
-
};
|
|
873
|
-
}
|
|
874
|
-
});
|
|
875
|
-
|
|
876
|
-
const prototype$1 = AxiosError.prototype;
|
|
877
|
-
const descriptors = {};
|
|
878
|
-
|
|
879
|
-
[
|
|
880
|
-
'ERR_BAD_OPTION_VALUE',
|
|
881
|
-
'ERR_BAD_OPTION',
|
|
882
|
-
'ECONNABORTED',
|
|
883
|
-
'ETIMEDOUT',
|
|
884
|
-
'ERR_NETWORK',
|
|
885
|
-
'ERR_FR_TOO_MANY_REDIRECTS',
|
|
886
|
-
'ERR_DEPRECATED',
|
|
887
|
-
'ERR_BAD_RESPONSE',
|
|
888
|
-
'ERR_BAD_REQUEST',
|
|
889
|
-
'ERR_CANCELED',
|
|
890
|
-
'ERR_NOT_SUPPORT',
|
|
891
|
-
'ERR_INVALID_URL'
|
|
892
|
-
// eslint-disable-next-line func-names
|
|
893
|
-
].forEach(code => {
|
|
894
|
-
descriptors[code] = {value: code};
|
|
895
|
-
});
|
|
896
|
-
|
|
897
|
-
Object.defineProperties(AxiosError, descriptors);
|
|
898
|
-
Object.defineProperty(prototype$1, 'isAxiosError', {value: true});
|
|
899
|
-
|
|
900
|
-
// eslint-disable-next-line func-names
|
|
901
|
-
AxiosError.from = (error, code, config, request, response, customProps) => {
|
|
902
|
-
const axiosError = Object.create(prototype$1);
|
|
903
|
-
|
|
904
|
-
utils$1.toFlatObject(error, axiosError, function filter(obj) {
|
|
905
|
-
return obj !== Error.prototype;
|
|
906
|
-
}, prop => {
|
|
907
|
-
return prop !== 'isAxiosError';
|
|
908
|
-
});
|
|
909
|
-
|
|
910
|
-
const msg = error && error.message ? error.message : 'Error';
|
|
911
|
-
|
|
912
|
-
// Prefer explicit code; otherwise copy the low-level error's code (e.g. ECONNREFUSED)
|
|
913
|
-
const errCode = code == null && error ? error.code : code;
|
|
914
|
-
AxiosError.call(axiosError, msg, errCode, config, request, response);
|
|
915
|
-
|
|
916
|
-
// Chain the original error on the standard field; non-enumerable to avoid JSON noise
|
|
917
|
-
if (error && axiosError.cause == null) {
|
|
918
|
-
Object.defineProperty(axiosError, 'cause', { value: error, configurable: true });
|
|
919
|
-
}
|
|
920
|
-
|
|
921
|
-
axiosError.name = (error && error.name) || 'Error';
|
|
922
|
-
|
|
923
|
-
customProps && Object.assign(axiosError, customProps);
|
|
924
|
-
|
|
925
|
-
return axiosError;
|
|
926
|
-
};
|
|
958
|
+
// This can be changed to static properties as soon as the parser options in .eslint.cjs are updated.
|
|
959
|
+
AxiosError.ERR_BAD_OPTION_VALUE = 'ERR_BAD_OPTION_VALUE';
|
|
960
|
+
AxiosError.ERR_BAD_OPTION = 'ERR_BAD_OPTION';
|
|
961
|
+
AxiosError.ECONNABORTED = 'ECONNABORTED';
|
|
962
|
+
AxiosError.ETIMEDOUT = 'ETIMEDOUT';
|
|
963
|
+
AxiosError.ERR_NETWORK = 'ERR_NETWORK';
|
|
964
|
+
AxiosError.ERR_FR_TOO_MANY_REDIRECTS = 'ERR_FR_TOO_MANY_REDIRECTS';
|
|
965
|
+
AxiosError.ERR_DEPRECATED = 'ERR_DEPRECATED';
|
|
966
|
+
AxiosError.ERR_BAD_RESPONSE = 'ERR_BAD_RESPONSE';
|
|
967
|
+
AxiosError.ERR_BAD_REQUEST = 'ERR_BAD_REQUEST';
|
|
968
|
+
AxiosError.ERR_CANCELED = 'ERR_CANCELED';
|
|
969
|
+
AxiosError.ERR_NOT_SUPPORT = 'ERR_NOT_SUPPORT';
|
|
970
|
+
AxiosError.ERR_INVALID_URL = 'ERR_INVALID_URL';
|
|
971
|
+
|
|
972
|
+
const AxiosError$1 = AxiosError;
|
|
927
973
|
|
|
928
974
|
/**
|
|
929
975
|
* Determines if the given thing is a array or js object.
|
|
@@ -1045,7 +1091,7 @@ function toFormData(obj, formData, options) {
|
|
|
1045
1091
|
}
|
|
1046
1092
|
|
|
1047
1093
|
if (!useBlob && utils$1.isBlob(value)) {
|
|
1048
|
-
throw new AxiosError('Blob is not supported. Use a Buffer instead.');
|
|
1094
|
+
throw new AxiosError$1('Blob is not supported. Use a Buffer instead.');
|
|
1049
1095
|
}
|
|
1050
1096
|
|
|
1051
1097
|
if (utils$1.isArrayBuffer(value) || utils$1.isTypedArray(value)) {
|
|
@@ -1219,29 +1265,26 @@ function encode(val) {
|
|
|
1219
1265
|
* @returns {string} The formatted url
|
|
1220
1266
|
*/
|
|
1221
1267
|
function buildURL(url, params, options) {
|
|
1222
|
-
/*eslint no-param-reassign:0*/
|
|
1223
1268
|
if (!params) {
|
|
1224
1269
|
return url;
|
|
1225
1270
|
}
|
|
1226
|
-
|
|
1271
|
+
|
|
1227
1272
|
const _encode = options && options.encode || encode;
|
|
1228
1273
|
|
|
1229
|
-
|
|
1230
|
-
options
|
|
1231
|
-
|
|
1232
|
-
};
|
|
1233
|
-
}
|
|
1274
|
+
const _options = utils$1.isFunction(options) ? {
|
|
1275
|
+
serialize: options
|
|
1276
|
+
} : options;
|
|
1234
1277
|
|
|
1235
|
-
const serializeFn =
|
|
1278
|
+
const serializeFn = _options && _options.serialize;
|
|
1236
1279
|
|
|
1237
1280
|
let serializedParams;
|
|
1238
1281
|
|
|
1239
1282
|
if (serializeFn) {
|
|
1240
|
-
serializedParams = serializeFn(params,
|
|
1283
|
+
serializedParams = serializeFn(params, _options);
|
|
1241
1284
|
} else {
|
|
1242
1285
|
serializedParams = utils$1.isURLSearchParams(params) ?
|
|
1243
1286
|
params.toString() :
|
|
1244
|
-
new AxiosURLSearchParams(params,
|
|
1287
|
+
new AxiosURLSearchParams(params, _options).toString(_encode);
|
|
1245
1288
|
}
|
|
1246
1289
|
|
|
1247
1290
|
if (serializedParams) {
|
|
@@ -1266,6 +1309,7 @@ class InterceptorManager {
|
|
|
1266
1309
|
*
|
|
1267
1310
|
* @param {Function} fulfilled The function to handle `then` for a `Promise`
|
|
1268
1311
|
* @param {Function} rejected The function to handle `reject` for a `Promise`
|
|
1312
|
+
* @param {Object} options The options for the interceptor, synchronous and runWhen
|
|
1269
1313
|
*
|
|
1270
1314
|
* @return {Number} An ID used to remove interceptor later
|
|
1271
1315
|
*/
|
|
@@ -1327,7 +1371,8 @@ const InterceptorManager$1 = InterceptorManager;
|
|
|
1327
1371
|
const transitionalDefaults = {
|
|
1328
1372
|
silentJSONParsing: true,
|
|
1329
1373
|
forcedJSONParsing: true,
|
|
1330
|
-
clarifyTimeoutError: false
|
|
1374
|
+
clarifyTimeoutError: false,
|
|
1375
|
+
legacyInterceptorReqResOrdering: true
|
|
1331
1376
|
};
|
|
1332
1377
|
|
|
1333
1378
|
const URLSearchParams = url__default["default"].URLSearchParams;
|
|
@@ -1636,7 +1681,7 @@ const defaults = {
|
|
|
1636
1681
|
} catch (e) {
|
|
1637
1682
|
if (strictJSONParsing) {
|
|
1638
1683
|
if (e.name === 'SyntaxError') {
|
|
1639
|
-
throw AxiosError.from(e, AxiosError.ERR_BAD_RESPONSE, this, null, this.response);
|
|
1684
|
+
throw AxiosError$1.from(e, AxiosError$1.ERR_BAD_RESPONSE, this, null, this.response);
|
|
1640
1685
|
}
|
|
1641
1686
|
throw e;
|
|
1642
1687
|
}
|
|
@@ -2070,24 +2115,24 @@ function isCancel(value) {
|
|
|
2070
2115
|
return !!(value && value.__CANCEL__);
|
|
2071
2116
|
}
|
|
2072
2117
|
|
|
2073
|
-
|
|
2074
|
-
|
|
2075
|
-
|
|
2076
|
-
|
|
2077
|
-
|
|
2078
|
-
|
|
2079
|
-
|
|
2080
|
-
|
|
2081
|
-
|
|
2082
|
-
|
|
2083
|
-
|
|
2084
|
-
|
|
2085
|
-
|
|
2118
|
+
class CanceledError extends AxiosError$1 {
|
|
2119
|
+
/**
|
|
2120
|
+
* A `CanceledError` is an object that is thrown when an operation is canceled.
|
|
2121
|
+
*
|
|
2122
|
+
* @param {string=} message The message.
|
|
2123
|
+
* @param {Object=} config The config.
|
|
2124
|
+
* @param {Object=} request The request.
|
|
2125
|
+
*
|
|
2126
|
+
* @returns {CanceledError} The created error.
|
|
2127
|
+
*/
|
|
2128
|
+
constructor(message, config, request) {
|
|
2129
|
+
super(message == null ? 'canceled' : message, AxiosError$1.ERR_CANCELED, config, request);
|
|
2130
|
+
this.name = 'CanceledError';
|
|
2131
|
+
this.__CANCEL__ = true;
|
|
2132
|
+
}
|
|
2086
2133
|
}
|
|
2087
2134
|
|
|
2088
|
-
|
|
2089
|
-
__CANCEL__: true
|
|
2090
|
-
});
|
|
2135
|
+
const CanceledError$1 = CanceledError;
|
|
2091
2136
|
|
|
2092
2137
|
/**
|
|
2093
2138
|
* Resolve or reject a Promise based on response status.
|
|
@@ -2103,9 +2148,9 @@ function settle(resolve, reject, response) {
|
|
|
2103
2148
|
if (!response.status || !validateStatus || validateStatus(response.status)) {
|
|
2104
2149
|
resolve(response);
|
|
2105
2150
|
} else {
|
|
2106
|
-
reject(new AxiosError(
|
|
2151
|
+
reject(new AxiosError$1(
|
|
2107
2152
|
'Request failed with status code ' + response.status,
|
|
2108
|
-
[AxiosError.ERR_BAD_REQUEST, AxiosError.ERR_BAD_RESPONSE][Math.floor(response.status / 100) - 4],
|
|
2153
|
+
[AxiosError$1.ERR_BAD_REQUEST, AxiosError$1.ERR_BAD_RESPONSE][Math.floor(response.status / 100) - 4],
|
|
2109
2154
|
response.config,
|
|
2110
2155
|
response.request,
|
|
2111
2156
|
response
|
|
@@ -2124,6 +2169,10 @@ function isAbsoluteURL(url) {
|
|
|
2124
2169
|
// A URL is considered absolute if it begins with "<scheme>://" or "//" (protocol-relative URL).
|
|
2125
2170
|
// RFC 3986 defines scheme name as a sequence of characters beginning with a letter and followed
|
|
2126
2171
|
// by any combination of letters, digits, plus, period, or hyphen.
|
|
2172
|
+
if (typeof url !== 'string') {
|
|
2173
|
+
return false;
|
|
2174
|
+
}
|
|
2175
|
+
|
|
2127
2176
|
return /^([a-z][a-z\d+\-.]*:)?\/\//i.test(url);
|
|
2128
2177
|
}
|
|
2129
2178
|
|
|
@@ -2159,7 +2208,7 @@ function buildFullPath(baseURL, requestedURL, allowAbsoluteUrls) {
|
|
|
2159
2208
|
return requestedURL;
|
|
2160
2209
|
}
|
|
2161
2210
|
|
|
2162
|
-
const VERSION = "1.13.
|
|
2211
|
+
const VERSION = "1.13.5";
|
|
2163
2212
|
|
|
2164
2213
|
function parseProtocol(url) {
|
|
2165
2214
|
const match = /^([-+\w]{1,25})(:?\/\/|:)/.exec(url);
|
|
@@ -2192,7 +2241,7 @@ function fromDataURI(uri, asBlob, options) {
|
|
|
2192
2241
|
const match = DATA_URL_PATTERN.exec(uri);
|
|
2193
2242
|
|
|
2194
2243
|
if (!match) {
|
|
2195
|
-
throw new AxiosError('Invalid URL', AxiosError.ERR_INVALID_URL);
|
|
2244
|
+
throw new AxiosError$1('Invalid URL', AxiosError$1.ERR_INVALID_URL);
|
|
2196
2245
|
}
|
|
2197
2246
|
|
|
2198
2247
|
const mime = match[1];
|
|
@@ -2202,7 +2251,7 @@ function fromDataURI(uri, asBlob, options) {
|
|
|
2202
2251
|
|
|
2203
2252
|
if (asBlob) {
|
|
2204
2253
|
if (!_Blob) {
|
|
2205
|
-
throw new AxiosError('Blob is not supported', AxiosError.ERR_NOT_SUPPORT);
|
|
2254
|
+
throw new AxiosError$1('Blob is not supported', AxiosError$1.ERR_NOT_SUPPORT);
|
|
2206
2255
|
}
|
|
2207
2256
|
|
|
2208
2257
|
return new _Blob([buffer], {type: mime});
|
|
@@ -2211,7 +2260,7 @@ function fromDataURI(uri, asBlob, options) {
|
|
|
2211
2260
|
return buffer;
|
|
2212
2261
|
}
|
|
2213
2262
|
|
|
2214
|
-
throw new AxiosError('Unsupported protocol ' + protocol, AxiosError.ERR_NOT_SUPPORT);
|
|
2263
|
+
throw new AxiosError$1('Unsupported protocol ' + protocol, AxiosError$1.ERR_NOT_SUPPORT);
|
|
2215
2264
|
}
|
|
2216
2265
|
|
|
2217
2266
|
const kInternals = Symbol('internals');
|
|
@@ -2893,12 +2942,16 @@ function setProxy(options, configProxy, location) {
|
|
|
2893
2942
|
|
|
2894
2943
|
if (proxy.auth) {
|
|
2895
2944
|
// Support proxy auth object form
|
|
2896
|
-
|
|
2945
|
+
const validProxyAuth = Boolean(proxy.auth.username || proxy.auth.password);
|
|
2946
|
+
|
|
2947
|
+
if (validProxyAuth) {
|
|
2897
2948
|
proxy.auth = (proxy.auth.username || '') + ':' + (proxy.auth.password || '');
|
|
2949
|
+
} else if (typeof proxy.auth === 'object') {
|
|
2950
|
+
throw new AxiosError$1('Invalid proxy authorization', AxiosError$1.ERR_BAD_OPTION, { proxy });
|
|
2898
2951
|
}
|
|
2899
|
-
|
|
2900
|
-
|
|
2901
|
-
|
|
2952
|
+
|
|
2953
|
+
const base64 = Buffer.from(proxy.auth, 'utf8').toString('base64');
|
|
2954
|
+
|
|
2902
2955
|
options.headers['Proxy-Authorization'] = 'Basic ' + base64;
|
|
2903
2956
|
}
|
|
2904
2957
|
|
|
@@ -2964,7 +3017,8 @@ const buildAddressEntry = (address, family) => resolveFamily(utils$1.isObject(ad
|
|
|
2964
3017
|
|
|
2965
3018
|
const http2Transport = {
|
|
2966
3019
|
request(options, cb) {
|
|
2967
|
-
const authority = options.protocol + '//' + options.hostname + ':' + (options.port || 80);
|
|
3020
|
+
const authority = options.protocol + '//' + options.hostname + ':' + (options.port ||(options.protocol === 'https:' ? 443 : 80));
|
|
3021
|
+
|
|
2968
3022
|
|
|
2969
3023
|
const {http2Options, headers} = options;
|
|
2970
3024
|
|
|
@@ -3051,7 +3105,7 @@ const httpAdapter = isHttpAdapterSupported && function httpAdapter(config) {
|
|
|
3051
3105
|
|
|
3052
3106
|
function abort(reason) {
|
|
3053
3107
|
try {
|
|
3054
|
-
abortEmitter.emit('abort', !reason || reason.type ? new CanceledError(null, config, req) : reason);
|
|
3108
|
+
abortEmitter.emit('abort', !reason || reason.type ? new CanceledError$1(null, config, req) : reason);
|
|
3055
3109
|
} catch(err) {
|
|
3056
3110
|
console.warn('emit error', err);
|
|
3057
3111
|
}
|
|
@@ -3116,9 +3170,9 @@ const httpAdapter = isHttpAdapterSupported && function httpAdapter(config) {
|
|
|
3116
3170
|
const estimated = estimateDataURLDecodedBytes(dataUrl);
|
|
3117
3171
|
|
|
3118
3172
|
if (estimated > config.maxContentLength) {
|
|
3119
|
-
return reject(new AxiosError(
|
|
3173
|
+
return reject(new AxiosError$1(
|
|
3120
3174
|
'maxContentLength size of ' + config.maxContentLength + ' exceeded',
|
|
3121
|
-
AxiosError.ERR_BAD_RESPONSE,
|
|
3175
|
+
AxiosError$1.ERR_BAD_RESPONSE,
|
|
3122
3176
|
config
|
|
3123
3177
|
));
|
|
3124
3178
|
}
|
|
@@ -3140,7 +3194,7 @@ const httpAdapter = isHttpAdapterSupported && function httpAdapter(config) {
|
|
|
3140
3194
|
Blob: config.env && config.env.Blob
|
|
3141
3195
|
});
|
|
3142
3196
|
} catch (err) {
|
|
3143
|
-
throw AxiosError.from(err, AxiosError.ERR_BAD_REQUEST, config);
|
|
3197
|
+
throw AxiosError$1.from(err, AxiosError$1.ERR_BAD_REQUEST, config);
|
|
3144
3198
|
}
|
|
3145
3199
|
|
|
3146
3200
|
if (responseType === 'text') {
|
|
@@ -3163,9 +3217,9 @@ const httpAdapter = isHttpAdapterSupported && function httpAdapter(config) {
|
|
|
3163
3217
|
}
|
|
3164
3218
|
|
|
3165
3219
|
if (supportedProtocols.indexOf(protocol) === -1) {
|
|
3166
|
-
return reject(new AxiosError(
|
|
3220
|
+
return reject(new AxiosError$1(
|
|
3167
3221
|
'Unsupported protocol ' + protocol,
|
|
3168
|
-
AxiosError.ERR_BAD_REQUEST,
|
|
3222
|
+
AxiosError$1.ERR_BAD_REQUEST,
|
|
3169
3223
|
config
|
|
3170
3224
|
));
|
|
3171
3225
|
}
|
|
@@ -3215,9 +3269,9 @@ const httpAdapter = isHttpAdapterSupported && function httpAdapter(config) {
|
|
|
3215
3269
|
} else if (utils$1.isString(data)) {
|
|
3216
3270
|
data = Buffer.from(data, 'utf-8');
|
|
3217
3271
|
} else {
|
|
3218
|
-
return reject(new AxiosError(
|
|
3272
|
+
return reject(new AxiosError$1(
|
|
3219
3273
|
'Data after transformation must be a string, an ArrayBuffer, a Buffer, or a Stream',
|
|
3220
|
-
AxiosError.ERR_BAD_REQUEST,
|
|
3274
|
+
AxiosError$1.ERR_BAD_REQUEST,
|
|
3221
3275
|
config
|
|
3222
3276
|
));
|
|
3223
3277
|
}
|
|
@@ -3226,9 +3280,9 @@ const httpAdapter = isHttpAdapterSupported && function httpAdapter(config) {
|
|
|
3226
3280
|
headers.setContentLength(data.length, false);
|
|
3227
3281
|
|
|
3228
3282
|
if (config.maxBodyLength > -1 && data.length > config.maxBodyLength) {
|
|
3229
|
-
return reject(new AxiosError(
|
|
3283
|
+
return reject(new AxiosError$1(
|
|
3230
3284
|
'Request body larger than maxBodyLength limit',
|
|
3231
|
-
AxiosError.ERR_BAD_REQUEST,
|
|
3285
|
+
AxiosError$1.ERR_BAD_REQUEST,
|
|
3232
3286
|
config
|
|
3233
3287
|
));
|
|
3234
3288
|
}
|
|
@@ -3450,8 +3504,8 @@ const httpAdapter = isHttpAdapterSupported && function httpAdapter(config) {
|
|
|
3450
3504
|
// stream.destroy() emit aborted event before calling reject() on Node.js v16
|
|
3451
3505
|
rejected = true;
|
|
3452
3506
|
responseStream.destroy();
|
|
3453
|
-
abort(new AxiosError('maxContentLength size of ' + config.maxContentLength + ' exceeded',
|
|
3454
|
-
AxiosError.ERR_BAD_RESPONSE, config, lastRequest));
|
|
3507
|
+
abort(new AxiosError$1('maxContentLength size of ' + config.maxContentLength + ' exceeded',
|
|
3508
|
+
AxiosError$1.ERR_BAD_RESPONSE, config, lastRequest));
|
|
3455
3509
|
}
|
|
3456
3510
|
});
|
|
3457
3511
|
|
|
@@ -3460,9 +3514,9 @@ const httpAdapter = isHttpAdapterSupported && function httpAdapter(config) {
|
|
|
3460
3514
|
return;
|
|
3461
3515
|
}
|
|
3462
3516
|
|
|
3463
|
-
const err = new AxiosError(
|
|
3517
|
+
const err = new AxiosError$1(
|
|
3464
3518
|
'stream has been aborted',
|
|
3465
|
-
AxiosError.ERR_BAD_RESPONSE,
|
|
3519
|
+
AxiosError$1.ERR_BAD_RESPONSE,
|
|
3466
3520
|
config,
|
|
3467
3521
|
lastRequest
|
|
3468
3522
|
);
|
|
@@ -3472,7 +3526,7 @@ const httpAdapter = isHttpAdapterSupported && function httpAdapter(config) {
|
|
|
3472
3526
|
|
|
3473
3527
|
responseStream.on('error', function handleStreamError(err) {
|
|
3474
3528
|
if (req.destroyed) return;
|
|
3475
|
-
reject(AxiosError.from(err, null, config, lastRequest));
|
|
3529
|
+
reject(AxiosError$1.from(err, null, config, lastRequest));
|
|
3476
3530
|
});
|
|
3477
3531
|
|
|
3478
3532
|
responseStream.on('end', function handleStreamEnd() {
|
|
@@ -3486,7 +3540,7 @@ const httpAdapter = isHttpAdapterSupported && function httpAdapter(config) {
|
|
|
3486
3540
|
}
|
|
3487
3541
|
response.data = responseData;
|
|
3488
3542
|
} catch (err) {
|
|
3489
|
-
return reject(AxiosError.from(err, null, config, response.request, response));
|
|
3543
|
+
return reject(AxiosError$1.from(err, null, config, response.request, response));
|
|
3490
3544
|
}
|
|
3491
3545
|
settle(resolve, reject, response);
|
|
3492
3546
|
});
|
|
@@ -3510,9 +3564,7 @@ const httpAdapter = isHttpAdapterSupported && function httpAdapter(config) {
|
|
|
3510
3564
|
|
|
3511
3565
|
// Handle errors
|
|
3512
3566
|
req.on('error', function handleRequestError(err) {
|
|
3513
|
-
|
|
3514
|
-
// if (req.aborted && err.code !== AxiosError.ERR_FR_TOO_MANY_REDIRECTS) return;
|
|
3515
|
-
reject(AxiosError.from(err, null, config, req));
|
|
3567
|
+
reject(AxiosError$1.from(err, null, config, req));
|
|
3516
3568
|
});
|
|
3517
3569
|
|
|
3518
3570
|
// set tcp keep alive to prevent drop connection by peer
|
|
@@ -3527,9 +3579,9 @@ const httpAdapter = isHttpAdapterSupported && function httpAdapter(config) {
|
|
|
3527
3579
|
const timeout = parseInt(config.timeout, 10);
|
|
3528
3580
|
|
|
3529
3581
|
if (Number.isNaN(timeout)) {
|
|
3530
|
-
abort(new AxiosError(
|
|
3582
|
+
abort(new AxiosError$1(
|
|
3531
3583
|
'error trying to parse `config.timeout` to int',
|
|
3532
|
-
AxiosError.ERR_BAD_OPTION_VALUE,
|
|
3584
|
+
AxiosError$1.ERR_BAD_OPTION_VALUE,
|
|
3533
3585
|
config,
|
|
3534
3586
|
req
|
|
3535
3587
|
));
|
|
@@ -3549,9 +3601,9 @@ const httpAdapter = isHttpAdapterSupported && function httpAdapter(config) {
|
|
|
3549
3601
|
if (config.timeoutErrorMessage) {
|
|
3550
3602
|
timeoutErrorMessage = config.timeoutErrorMessage;
|
|
3551
3603
|
}
|
|
3552
|
-
abort(new AxiosError(
|
|
3604
|
+
abort(new AxiosError$1(
|
|
3553
3605
|
timeoutErrorMessage,
|
|
3554
|
-
transitional.clarifyTimeoutError ? AxiosError.ETIMEDOUT : AxiosError.ECONNABORTED,
|
|
3606
|
+
transitional.clarifyTimeoutError ? AxiosError$1.ETIMEDOUT : AxiosError$1.ECONNABORTED,
|
|
3555
3607
|
config,
|
|
3556
3608
|
req
|
|
3557
3609
|
));
|
|
@@ -3578,7 +3630,7 @@ const httpAdapter = isHttpAdapterSupported && function httpAdapter(config) {
|
|
|
3578
3630
|
|
|
3579
3631
|
data.on('close', () => {
|
|
3580
3632
|
if (!ended && !errored) {
|
|
3581
|
-
abort(new CanceledError('Request stream has been aborted', config, req));
|
|
3633
|
+
abort(new CanceledError$1('Request stream has been aborted', config, req));
|
|
3582
3634
|
}
|
|
3583
3635
|
});
|
|
3584
3636
|
|
|
@@ -3653,7 +3705,8 @@ const cookies = platform.hasStandardBrowserEnv ?
|
|
|
3653
3705
|
remove() {}
|
|
3654
3706
|
};
|
|
3655
3707
|
|
|
3656
|
-
const headersToObject = (thing) =>
|
|
3708
|
+
const headersToObject = (thing) =>
|
|
3709
|
+
thing instanceof AxiosHeaders$1 ? { ...thing } : thing;
|
|
3657
3710
|
|
|
3658
3711
|
/**
|
|
3659
3712
|
* Config-specific merge-function which creates a new config-object
|
|
@@ -3671,7 +3724,7 @@ function mergeConfig(config1, config2) {
|
|
|
3671
3724
|
|
|
3672
3725
|
function getMergedValue(target, source, prop, caseless) {
|
|
3673
3726
|
if (utils$1.isPlainObject(target) && utils$1.isPlainObject(source)) {
|
|
3674
|
-
return utils$1.merge.call({caseless}, target, source);
|
|
3727
|
+
return utils$1.merge.call({ caseless }, target, source);
|
|
3675
3728
|
} else if (utils$1.isPlainObject(source)) {
|
|
3676
3729
|
return utils$1.merge({}, source);
|
|
3677
3730
|
} else if (utils$1.isArray(source)) {
|
|
@@ -3680,7 +3733,6 @@ function mergeConfig(config1, config2) {
|
|
|
3680
3733
|
return source;
|
|
3681
3734
|
}
|
|
3682
3735
|
|
|
3683
|
-
// eslint-disable-next-line consistent-return
|
|
3684
3736
|
function mergeDeepProperties(a, b, prop, caseless) {
|
|
3685
3737
|
if (!utils$1.isUndefined(b)) {
|
|
3686
3738
|
return getMergedValue(a, b, prop, caseless);
|
|
@@ -3743,14 +3795,27 @@ function mergeConfig(config1, config2) {
|
|
|
3743
3795
|
socketPath: defaultToConfig2,
|
|
3744
3796
|
responseEncoding: defaultToConfig2,
|
|
3745
3797
|
validateStatus: mergeDirectKeys,
|
|
3746
|
-
headers: (a, b, prop) =>
|
|
3798
|
+
headers: (a, b, prop) =>
|
|
3799
|
+
mergeDeepProperties(headersToObject(a), headersToObject(b), prop, true),
|
|
3747
3800
|
};
|
|
3748
3801
|
|
|
3749
|
-
utils$1.forEach(
|
|
3750
|
-
|
|
3751
|
-
|
|
3752
|
-
|
|
3753
|
-
|
|
3802
|
+
utils$1.forEach(
|
|
3803
|
+
Object.keys({ ...config1, ...config2 }),
|
|
3804
|
+
function computeConfigValue(prop) {
|
|
3805
|
+
if (
|
|
3806
|
+
prop === "__proto__" ||
|
|
3807
|
+
prop === "constructor" ||
|
|
3808
|
+
prop === "prototype"
|
|
3809
|
+
)
|
|
3810
|
+
return;
|
|
3811
|
+
const merge = utils$1.hasOwnProp(mergeMap, prop)
|
|
3812
|
+
? mergeMap[prop]
|
|
3813
|
+
: mergeDeepProperties;
|
|
3814
|
+
const configValue = merge(config1[prop], config2[prop], prop);
|
|
3815
|
+
(utils$1.isUndefined(configValue) && merge !== mergeDirectKeys) ||
|
|
3816
|
+
(config[prop] = configValue);
|
|
3817
|
+
},
|
|
3818
|
+
);
|
|
3754
3819
|
|
|
3755
3820
|
return config;
|
|
3756
3821
|
}
|
|
@@ -3895,7 +3960,7 @@ const xhrAdapter = isXHRAdapterSupported && function (config) {
|
|
|
3895
3960
|
return;
|
|
3896
3961
|
}
|
|
3897
3962
|
|
|
3898
|
-
reject(new AxiosError('Request aborted', AxiosError.ECONNABORTED, config, request));
|
|
3963
|
+
reject(new AxiosError$1('Request aborted', AxiosError$1.ECONNABORTED, config, request));
|
|
3899
3964
|
|
|
3900
3965
|
// Clean up request
|
|
3901
3966
|
request = null;
|
|
@@ -3907,7 +3972,7 @@ const xhrAdapter = isXHRAdapterSupported && function (config) {
|
|
|
3907
3972
|
// (message may be empty; when present, surface it)
|
|
3908
3973
|
// See https://developer.mozilla.org/docs/Web/API/XMLHttpRequest/error_event
|
|
3909
3974
|
const msg = event && event.message ? event.message : 'Network Error';
|
|
3910
|
-
const err = new AxiosError(msg, AxiosError.ERR_NETWORK, config, request);
|
|
3975
|
+
const err = new AxiosError$1(msg, AxiosError$1.ERR_NETWORK, config, request);
|
|
3911
3976
|
// attach the underlying event for consumers who want details
|
|
3912
3977
|
err.event = event || null;
|
|
3913
3978
|
reject(err);
|
|
@@ -3921,9 +3986,9 @@ const xhrAdapter = isXHRAdapterSupported && function (config) {
|
|
|
3921
3986
|
if (_config.timeoutErrorMessage) {
|
|
3922
3987
|
timeoutErrorMessage = _config.timeoutErrorMessage;
|
|
3923
3988
|
}
|
|
3924
|
-
reject(new AxiosError(
|
|
3989
|
+
reject(new AxiosError$1(
|
|
3925
3990
|
timeoutErrorMessage,
|
|
3926
|
-
transitional.clarifyTimeoutError ? AxiosError.ETIMEDOUT : AxiosError.ECONNABORTED,
|
|
3991
|
+
transitional.clarifyTimeoutError ? AxiosError$1.ETIMEDOUT : AxiosError$1.ECONNABORTED,
|
|
3927
3992
|
config,
|
|
3928
3993
|
request));
|
|
3929
3994
|
|
|
@@ -3973,7 +4038,7 @@ const xhrAdapter = isXHRAdapterSupported && function (config) {
|
|
|
3973
4038
|
if (!request) {
|
|
3974
4039
|
return;
|
|
3975
4040
|
}
|
|
3976
|
-
reject(!cancel || cancel.type ? new CanceledError(null, config, request) : cancel);
|
|
4041
|
+
reject(!cancel || cancel.type ? new CanceledError$1(null, config, request) : cancel);
|
|
3977
4042
|
request.abort();
|
|
3978
4043
|
request = null;
|
|
3979
4044
|
};
|
|
@@ -3987,7 +4052,7 @@ const xhrAdapter = isXHRAdapterSupported && function (config) {
|
|
|
3987
4052
|
const protocol = parseProtocol(_config.url);
|
|
3988
4053
|
|
|
3989
4054
|
if (protocol && platform.protocols.indexOf(protocol) === -1) {
|
|
3990
|
-
reject(new AxiosError('Unsupported protocol ' + protocol + ':', AxiosError.ERR_BAD_REQUEST, config));
|
|
4055
|
+
reject(new AxiosError$1('Unsupported protocol ' + protocol + ':', AxiosError$1.ERR_BAD_REQUEST, config));
|
|
3991
4056
|
return;
|
|
3992
4057
|
}
|
|
3993
4058
|
|
|
@@ -4010,13 +4075,13 @@ const composeSignals = (signals, timeout) => {
|
|
|
4010
4075
|
aborted = true;
|
|
4011
4076
|
unsubscribe();
|
|
4012
4077
|
const err = reason instanceof Error ? reason : this.reason;
|
|
4013
|
-
controller.abort(err instanceof AxiosError ? err : new CanceledError(err instanceof Error ? err.message : err));
|
|
4078
|
+
controller.abort(err instanceof AxiosError$1 ? err : new CanceledError$1(err instanceof Error ? err.message : err));
|
|
4014
4079
|
}
|
|
4015
4080
|
};
|
|
4016
4081
|
|
|
4017
4082
|
let timer = timeout && setTimeout(() => {
|
|
4018
4083
|
timer = null;
|
|
4019
|
-
onabort(new AxiosError(`timeout ${timeout}
|
|
4084
|
+
onabort(new AxiosError$1(`timeout of ${timeout}ms exceeded`, AxiosError$1.ETIMEDOUT));
|
|
4020
4085
|
}, timeout);
|
|
4021
4086
|
|
|
4022
4087
|
const unsubscribe = () => {
|
|
@@ -4202,7 +4267,7 @@ const factory = (env) => {
|
|
|
4202
4267
|
return method.call(res);
|
|
4203
4268
|
}
|
|
4204
4269
|
|
|
4205
|
-
throw new AxiosError(`Response type '${type}' is not supported`, AxiosError.ERR_NOT_SUPPORT, config);
|
|
4270
|
+
throw new AxiosError$1(`Response type '${type}' is not supported`, AxiosError$1.ERR_NOT_SUPPORT, config);
|
|
4206
4271
|
});
|
|
4207
4272
|
});
|
|
4208
4273
|
})());
|
|
@@ -4368,14 +4433,14 @@ const factory = (env) => {
|
|
|
4368
4433
|
|
|
4369
4434
|
if (err && err.name === 'TypeError' && /Load failed|fetch/i.test(err.message)) {
|
|
4370
4435
|
throw Object.assign(
|
|
4371
|
-
new AxiosError('Network Error', AxiosError.ERR_NETWORK, config, request),
|
|
4436
|
+
new AxiosError$1('Network Error', AxiosError$1.ERR_NETWORK, config, request, err && err.response),
|
|
4372
4437
|
{
|
|
4373
4438
|
cause: err.cause || err
|
|
4374
4439
|
}
|
|
4375
4440
|
)
|
|
4376
4441
|
}
|
|
4377
4442
|
|
|
4378
|
-
throw AxiosError.from(err, err && err.code, config, request);
|
|
4443
|
+
throw AxiosError$1.from(err, err && err.code, config, request, err && err.response);
|
|
4379
4444
|
}
|
|
4380
4445
|
}
|
|
4381
4446
|
};
|
|
@@ -4480,7 +4545,7 @@ function getAdapter(adapters, config) {
|
|
|
4480
4545
|
adapter = knownAdapters[(id = String(nameOrAdapter)).toLowerCase()];
|
|
4481
4546
|
|
|
4482
4547
|
if (adapter === undefined) {
|
|
4483
|
-
throw new AxiosError(`Unknown adapter '${id}'`);
|
|
4548
|
+
throw new AxiosError$1(`Unknown adapter '${id}'`);
|
|
4484
4549
|
}
|
|
4485
4550
|
}
|
|
4486
4551
|
|
|
@@ -4501,7 +4566,7 @@ function getAdapter(adapters, config) {
|
|
|
4501
4566
|
(reasons.length > 1 ? 'since :\n' + reasons.map(renderReason).join('\n') : ' ' + renderReason(reasons[0])) :
|
|
4502
4567
|
'as no adapter specified';
|
|
4503
4568
|
|
|
4504
|
-
throw new AxiosError(
|
|
4569
|
+
throw new AxiosError$1(
|
|
4505
4570
|
`There is no suitable adapter to dispatch the request ` + s,
|
|
4506
4571
|
'ERR_NOT_SUPPORT'
|
|
4507
4572
|
);
|
|
@@ -4540,7 +4605,7 @@ function throwIfCancellationRequested(config) {
|
|
|
4540
4605
|
}
|
|
4541
4606
|
|
|
4542
4607
|
if (config.signal && config.signal.aborted) {
|
|
4543
|
-
throw new CanceledError(null, config);
|
|
4608
|
+
throw new CanceledError$1(null, config);
|
|
4544
4609
|
}
|
|
4545
4610
|
}
|
|
4546
4611
|
|
|
@@ -4628,9 +4693,9 @@ validators$1.transitional = function transitional(validator, version, message) {
|
|
|
4628
4693
|
// eslint-disable-next-line func-names
|
|
4629
4694
|
return (value, opt, opts) => {
|
|
4630
4695
|
if (validator === false) {
|
|
4631
|
-
throw new AxiosError(
|
|
4696
|
+
throw new AxiosError$1(
|
|
4632
4697
|
formatMessage(opt, ' has been removed' + (version ? ' in ' + version : '')),
|
|
4633
|
-
AxiosError.ERR_DEPRECATED
|
|
4698
|
+
AxiosError$1.ERR_DEPRECATED
|
|
4634
4699
|
);
|
|
4635
4700
|
}
|
|
4636
4701
|
|
|
@@ -4669,7 +4734,7 @@ validators$1.spelling = function spelling(correctSpelling) {
|
|
|
4669
4734
|
|
|
4670
4735
|
function assertOptions(options, schema, allowUnknown) {
|
|
4671
4736
|
if (typeof options !== 'object') {
|
|
4672
|
-
throw new AxiosError('options must be an object', AxiosError.ERR_BAD_OPTION_VALUE);
|
|
4737
|
+
throw new AxiosError$1('options must be an object', AxiosError$1.ERR_BAD_OPTION_VALUE);
|
|
4673
4738
|
}
|
|
4674
4739
|
const keys = Object.keys(options);
|
|
4675
4740
|
let i = keys.length;
|
|
@@ -4680,12 +4745,12 @@ function assertOptions(options, schema, allowUnknown) {
|
|
|
4680
4745
|
const value = options[opt];
|
|
4681
4746
|
const result = value === undefined || validator(value, opt, options);
|
|
4682
4747
|
if (result !== true) {
|
|
4683
|
-
throw new AxiosError('option ' + opt + ' must be ' + result, AxiosError.ERR_BAD_OPTION_VALUE);
|
|
4748
|
+
throw new AxiosError$1('option ' + opt + ' must be ' + result, AxiosError$1.ERR_BAD_OPTION_VALUE);
|
|
4684
4749
|
}
|
|
4685
4750
|
continue;
|
|
4686
4751
|
}
|
|
4687
4752
|
if (allowUnknown !== true) {
|
|
4688
|
-
throw new AxiosError('Unknown option ' + opt, AxiosError.ERR_BAD_OPTION);
|
|
4753
|
+
throw new AxiosError$1('Unknown option ' + opt, AxiosError$1.ERR_BAD_OPTION);
|
|
4689
4754
|
}
|
|
4690
4755
|
}
|
|
4691
4756
|
}
|
|
@@ -4766,7 +4831,8 @@ class Axios {
|
|
|
4766
4831
|
validator.assertOptions(transitional, {
|
|
4767
4832
|
silentJSONParsing: validators.transitional(validators.boolean),
|
|
4768
4833
|
forcedJSONParsing: validators.transitional(validators.boolean),
|
|
4769
|
-
clarifyTimeoutError: validators.transitional(validators.boolean)
|
|
4834
|
+
clarifyTimeoutError: validators.transitional(validators.boolean),
|
|
4835
|
+
legacyInterceptorReqResOrdering: validators.transitional(validators.boolean)
|
|
4770
4836
|
}, false);
|
|
4771
4837
|
}
|
|
4772
4838
|
|
|
@@ -4823,7 +4889,14 @@ class Axios {
|
|
|
4823
4889
|
|
|
4824
4890
|
synchronousRequestInterceptors = synchronousRequestInterceptors && interceptor.synchronous;
|
|
4825
4891
|
|
|
4826
|
-
|
|
4892
|
+
const transitional = config.transitional || transitionalDefaults;
|
|
4893
|
+
const legacyInterceptorReqResOrdering = transitional && transitional.legacyInterceptorReqResOrdering;
|
|
4894
|
+
|
|
4895
|
+
if (legacyInterceptorReqResOrdering) {
|
|
4896
|
+
requestInterceptorChain.unshift(interceptor.fulfilled, interceptor.rejected);
|
|
4897
|
+
} else {
|
|
4898
|
+
requestInterceptorChain.push(interceptor.fulfilled, interceptor.rejected);
|
|
4899
|
+
}
|
|
4827
4900
|
});
|
|
4828
4901
|
|
|
4829
4902
|
const responseInterceptorChain = [];
|
|
@@ -4978,7 +5051,7 @@ class CancelToken {
|
|
|
4978
5051
|
return;
|
|
4979
5052
|
}
|
|
4980
5053
|
|
|
4981
|
-
token.reason = new CanceledError(message, config, request);
|
|
5054
|
+
token.reason = new CanceledError$1(message, config, request);
|
|
4982
5055
|
resolvePromise(token.reason);
|
|
4983
5056
|
});
|
|
4984
5057
|
}
|
|
@@ -5062,7 +5135,7 @@ const CancelToken$1 = CancelToken;
|
|
|
5062
5135
|
*
|
|
5063
5136
|
* ```js
|
|
5064
5137
|
* function f(x, y, z) {}
|
|
5065
|
-
*
|
|
5138
|
+
* const args = [1, 2, 3];
|
|
5066
5139
|
* f.apply(null, args);
|
|
5067
5140
|
* ```
|
|
5068
5141
|
*
|
|
@@ -5203,14 +5276,14 @@ const axios = createInstance(defaults$1);
|
|
|
5203
5276
|
axios.Axios = Axios$1;
|
|
5204
5277
|
|
|
5205
5278
|
// Expose Cancel & CancelToken
|
|
5206
|
-
axios.CanceledError = CanceledError;
|
|
5279
|
+
axios.CanceledError = CanceledError$1;
|
|
5207
5280
|
axios.CancelToken = CancelToken$1;
|
|
5208
5281
|
axios.isCancel = isCancel;
|
|
5209
5282
|
axios.VERSION = VERSION;
|
|
5210
5283
|
axios.toFormData = toFormData;
|
|
5211
5284
|
|
|
5212
5285
|
// Expose AxiosError class
|
|
5213
|
-
axios.AxiosError = AxiosError;
|
|
5286
|
+
axios.AxiosError = AxiosError$1;
|
|
5214
5287
|
|
|
5215
5288
|
// alias for CanceledError for backward compatibility
|
|
5216
5289
|
axios.Cancel = axios.CanceledError;
|