@cdklabs/cdk-ecs-codedeploy 0.0.208 → 0.0.209
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/.gitattributes +1 -1
- package/.jsii +3 -3
- package/.jsii.tabl.json +1 -1
- package/lib/api-canary/index.js +1 -1
- package/lib/ecs-appspec/index.js +1 -1
- package/lib/ecs-deployment/index.js +1 -1
- package/lib/ecs-deployment-provider/on-event.lambda.js +1 -1
- package/lib/ecs-patterns/application-load-balanced-codedeployed-fargate-service.js +1 -1
- package/node_modules/@aws-sdk/client-codedeploy/README.md +1 -1
- package/node_modules/@aws-sdk/client-codedeploy/dist-cjs/endpoint/endpointResolver.js +1 -1
- package/node_modules/@aws-sdk/client-codedeploy/dist-cjs/endpoint/ruleset.js +3 -3
- package/node_modules/@aws-sdk/client-codedeploy/dist-cjs/index.js +1 -0
- package/node_modules/@aws-sdk/client-codedeploy/dist-cjs/runtimeConfig.js +2 -0
- package/node_modules/@aws-sdk/client-codedeploy/dist-cjs/runtimeConfig.shared.js +15 -13
- package/node_modules/@aws-sdk/client-codedeploy/dist-es/endpoint/endpointResolver.js +1 -1
- package/node_modules/@aws-sdk/client-codedeploy/dist-es/endpoint/ruleset.js +3 -3
- package/node_modules/@aws-sdk/client-codedeploy/dist-es/index.js +1 -0
- package/node_modules/@aws-sdk/client-codedeploy/dist-es/runtimeConfig.js +2 -0
- package/node_modules/@aws-sdk/client-codedeploy/dist-es/runtimeConfig.shared.js +15 -13
- package/node_modules/@aws-sdk/client-codedeploy/dist-types/CodeDeployClient.d.ts +2 -0
- package/node_modules/@aws-sdk/client-codedeploy/dist-types/index.d.ts +3 -0
- package/node_modules/@aws-sdk/client-codedeploy/dist-types/models/models_0.d.ts +50 -50
- package/node_modules/@aws-sdk/client-codedeploy/dist-types/ts3.4/index.d.ts +3 -0
- package/node_modules/@aws-sdk/client-codedeploy/dist-types/ts3.4/models/models_0.d.ts +50 -50
- package/node_modules/@aws-sdk/client-codedeploy/package.json +36 -34
- package/node_modules/@aws-sdk/client-sso/README.md +1 -1
- package/node_modules/@aws-sdk/client-sso/dist-cjs/endpoint/endpointResolver.js +1 -1
- package/node_modules/@aws-sdk/client-sso/dist-cjs/endpoint/ruleset.js +3 -3
- package/node_modules/@aws-sdk/client-sso/dist-cjs/index.js +1 -0
- package/node_modules/@aws-sdk/client-sso/dist-cjs/runtimeConfig.js +2 -0
- package/node_modules/@aws-sdk/client-sso/dist-cjs/runtimeConfig.shared.js +15 -13
- package/node_modules/@aws-sdk/client-sso/dist-es/endpoint/endpointResolver.js +1 -1
- package/node_modules/@aws-sdk/client-sso/dist-es/endpoint/ruleset.js +3 -3
- package/node_modules/@aws-sdk/client-sso/dist-es/index.js +1 -0
- package/node_modules/@aws-sdk/client-sso/dist-es/runtimeConfig.js +2 -0
- package/node_modules/@aws-sdk/client-sso/dist-es/runtimeConfig.shared.js +15 -13
- package/node_modules/@aws-sdk/client-sso/dist-types/SSOClient.d.ts +2 -0
- package/node_modules/@aws-sdk/client-sso/dist-types/index.d.ts +3 -0
- package/node_modules/@aws-sdk/client-sso/dist-types/ts3.4/index.d.ts +3 -0
- package/node_modules/@aws-sdk/client-sso/package.json +32 -30
- package/node_modules/@aws-sdk/client-sts/README.md +1 -1
- package/node_modules/@aws-sdk/client-sts/dist-cjs/endpoint/endpointResolver.js +1 -1
- package/node_modules/@aws-sdk/client-sts/dist-cjs/endpoint/ruleset.js +2 -2
- package/node_modules/@aws-sdk/client-sts/dist-cjs/index.js +1 -0
- package/node_modules/@aws-sdk/client-sts/dist-cjs/runtimeConfig.js +2 -0
- package/node_modules/@aws-sdk/client-sts/dist-cjs/runtimeConfig.shared.js +15 -13
- package/node_modules/@aws-sdk/client-sts/dist-es/endpoint/endpointResolver.js +1 -1
- package/node_modules/@aws-sdk/client-sts/dist-es/endpoint/ruleset.js +2 -2
- package/node_modules/@aws-sdk/client-sts/dist-es/index.js +1 -0
- package/node_modules/@aws-sdk/client-sts/dist-es/runtimeConfig.js +2 -0
- package/node_modules/@aws-sdk/client-sts/dist-es/runtimeConfig.shared.js +15 -13
- package/node_modules/@aws-sdk/client-sts/dist-types/STSClient.d.ts +2 -0
- package/node_modules/@aws-sdk/client-sts/dist-types/index.d.ts +3 -0
- package/node_modules/@aws-sdk/client-sts/dist-types/ts3.4/index.d.ts +3 -0
- package/node_modules/@aws-sdk/client-sts/package.json +35 -33
- package/node_modules/@aws-sdk/core/CHANGELOG.md +70 -0
- package/node_modules/@aws-sdk/core/README.md +5 -0
- package/node_modules/@aws-sdk/core/api-extractor.json +4 -0
- package/node_modules/@aws-sdk/core/dist-cjs/client/emitWarningIfUnsupportedVersion.js +17 -0
- package/node_modules/@aws-sdk/core/dist-cjs/client/index.js +4 -0
- package/node_modules/@aws-sdk/core/dist-cjs/index.js +5 -0
- package/node_modules/@aws-sdk/core/dist-cjs/protocols/coercing-serializers.js +59 -0
- package/node_modules/@aws-sdk/core/dist-cjs/protocols/index.js +5 -0
- package/node_modules/@aws-sdk/core/dist-cjs/protocols/json/awsExpectUnion.js +14 -0
- package/node_modules/@aws-sdk/core/dist-es/client/emitWarningIfUnsupportedVersion.js +13 -0
- package/node_modules/@aws-sdk/core/dist-es/client/index.js +1 -0
- package/node_modules/@aws-sdk/core/dist-es/index.js +2 -0
- package/node_modules/@aws-sdk/core/dist-es/protocols/coercing-serializers.js +53 -0
- package/node_modules/@aws-sdk/core/dist-es/protocols/index.js +2 -0
- package/node_modules/@aws-sdk/core/dist-es/protocols/json/awsExpectUnion.js +10 -0
- package/node_modules/@aws-sdk/core/dist-types/client/emitWarningIfUnsupportedVersion.d.ts +9 -0
- package/node_modules/@aws-sdk/core/dist-types/client/index.d.ts +1 -0
- package/node_modules/@aws-sdk/core/dist-types/index.d.ts +2 -0
- package/node_modules/@aws-sdk/core/dist-types/protocols/coercing-serializers.d.ts +18 -0
- package/node_modules/@aws-sdk/core/dist-types/protocols/index.d.ts +2 -0
- package/node_modules/@aws-sdk/core/dist-types/protocols/json/awsExpectUnion.d.ts +7 -0
- package/node_modules/@aws-sdk/core/dist-types/ts3.4/client/emitWarningIfUnsupportedVersion.d.ts +1 -0
- package/node_modules/@aws-sdk/core/dist-types/ts3.4/client/index.d.ts +1 -0
- package/node_modules/@aws-sdk/core/dist-types/ts3.4/index.d.ts +2 -0
- package/node_modules/@aws-sdk/core/dist-types/ts3.4/protocols/coercing-serializers.d.ts +3 -0
- package/node_modules/@aws-sdk/core/dist-types/ts3.4/protocols/index.d.ts +2 -0
- package/node_modules/@aws-sdk/core/dist-types/ts3.4/protocols/json/awsExpectUnion.d.ts +3 -0
- package/node_modules/@aws-sdk/core/jest.config.js +6 -0
- package/node_modules/@aws-sdk/core/package.json +57 -0
- package/node_modules/@aws-sdk/core/scripts/lint.js +24 -0
- package/node_modules/@aws-sdk/core/src/client/emitWarningIfUnsupportedVersion.spec.ts +70 -0
- package/node_modules/@aws-sdk/core/src/client/emitWarningIfUnsupportedVersion.ts +25 -0
- package/node_modules/@aws-sdk/core/src/client/index.ts +1 -0
- package/node_modules/@aws-sdk/core/src/index.ts +2 -0
- package/node_modules/@aws-sdk/core/src/protocols/coercing-serializers.spec.ts +76 -0
- package/node_modules/@aws-sdk/core/src/protocols/coercing-serializers.ts +72 -0
- package/node_modules/@aws-sdk/core/src/protocols/index.ts +2 -0
- package/node_modules/@aws-sdk/core/src/protocols/json/awsExpectUnion.spec.ts +30 -0
- package/node_modules/@aws-sdk/core/src/protocols/json/awsExpectUnion.ts +17 -0
- package/node_modules/@aws-sdk/core/tsconfig.cjs.json +9 -0
- package/node_modules/@aws-sdk/core/tsconfig.cjs.tsbuildinfo +1 -0
- package/node_modules/@aws-sdk/core/tsconfig.es.json +9 -0
- package/node_modules/@aws-sdk/core/tsconfig.es.tsbuildinfo +1 -0
- package/node_modules/@aws-sdk/core/tsconfig.types.json +9 -0
- package/node_modules/@aws-sdk/core/tsconfig.types.tsbuildinfo +1 -0
- package/node_modules/@aws-sdk/credential-provider-env/package.json +3 -3
- package/node_modules/@aws-sdk/credential-provider-ini/package.json +7 -7
- package/node_modules/@aws-sdk/credential-provider-node/package.json +8 -8
- package/node_modules/@aws-sdk/credential-provider-process/package.json +3 -3
- package/node_modules/@aws-sdk/credential-provider-sso/package.json +5 -5
- package/node_modules/@aws-sdk/credential-provider-web-identity/package.json +5 -5
- package/node_modules/@aws-sdk/middleware-host-header/dist-cjs/index.js +1 -1
- package/node_modules/@aws-sdk/middleware-host-header/dist-es/index.js +1 -1
- package/node_modules/@aws-sdk/middleware-host-header/package.json +4 -4
- package/node_modules/@aws-sdk/middleware-logger/package.json +3 -3
- package/node_modules/@aws-sdk/middleware-recursion-detection/package.json +4 -4
- package/node_modules/@aws-sdk/middleware-sdk-sts/package.json +4 -4
- package/node_modules/@aws-sdk/middleware-signing/package.json +5 -5
- package/node_modules/@aws-sdk/middleware-user-agent/package.json +5 -5
- package/node_modules/@aws-sdk/region-config-resolver/package.json +4 -4
- package/node_modules/@aws-sdk/token-providers/dist-cjs/bundle/client-sso-oidc-browser.js +320 -183
- package/node_modules/@aws-sdk/token-providers/dist-cjs/bundle/client-sso-oidc-node.js +322 -185
- package/node_modules/@aws-sdk/token-providers/dist-es/bundle/client-sso-oidc-browser.js +231 -93
- package/node_modules/@aws-sdk/token-providers/dist-es/bundle/client-sso-oidc-node.js +238 -99
- package/node_modules/@aws-sdk/token-providers/dist-types/bundle/client-sso-oidc-browser.d.ts +1 -1
- package/node_modules/@aws-sdk/token-providers/dist-types/bundle/client-sso-oidc-node.d.ts +1 -1
- package/node_modules/@aws-sdk/token-providers/package.json +33 -30
- package/node_modules/@aws-sdk/types/package.json +4 -3
- package/node_modules/@aws-sdk/util-endpoints/dist-cjs/aws.js +12 -0
- package/node_modules/@aws-sdk/util-endpoints/dist-cjs/index.js +1 -0
- package/node_modules/@aws-sdk/util-endpoints/dist-cjs/lib/aws/isVirtualHostableS3Bucket.js +2 -2
- package/node_modules/@aws-sdk/util-endpoints/dist-cjs/lib/isIpAddress.js +2 -3
- package/node_modules/@aws-sdk/util-endpoints/dist-cjs/resolveEndpoint.js +2 -39
- package/node_modules/@aws-sdk/util-endpoints/dist-cjs/types/EndpointError.js +2 -7
- package/node_modules/@aws-sdk/util-endpoints/dist-es/aws.js +10 -0
- package/node_modules/@aws-sdk/util-endpoints/dist-es/index.js +1 -0
- package/node_modules/@aws-sdk/util-endpoints/dist-es/lib/aws/isVirtualHostableS3Bucket.js +1 -1
- package/node_modules/@aws-sdk/util-endpoints/dist-es/lib/isIpAddress.js +1 -2
- package/node_modules/@aws-sdk/util-endpoints/dist-es/resolveEndpoint.js +1 -37
- package/node_modules/@aws-sdk/util-endpoints/dist-es/types/EndpointError.js +1 -6
- package/node_modules/@aws-sdk/util-endpoints/dist-types/aws.d.ts +1 -0
- package/node_modules/@aws-sdk/util-endpoints/dist-types/index.d.ts +1 -0
- package/node_modules/@aws-sdk/util-endpoints/dist-types/lib/aws/parseArn.d.ts +1 -1
- package/node_modules/@aws-sdk/util-endpoints/dist-types/lib/aws/partition.d.ts +1 -1
- package/node_modules/@aws-sdk/util-endpoints/dist-types/lib/isIpAddress.d.ts +1 -4
- package/node_modules/@aws-sdk/util-endpoints/dist-types/resolveEndpoint.d.ts +1 -6
- package/node_modules/@aws-sdk/util-endpoints/dist-types/ts3.4/aws.d.ts +1 -0
- package/node_modules/@aws-sdk/util-endpoints/dist-types/ts3.4/index.d.ts +1 -0
- package/node_modules/@aws-sdk/util-endpoints/dist-types/ts3.4/lib/aws/parseArn.d.ts +1 -1
- package/node_modules/@aws-sdk/util-endpoints/dist-types/ts3.4/lib/aws/partition.d.ts +1 -1
- package/node_modules/@aws-sdk/util-endpoints/dist-types/ts3.4/lib/isIpAddress.d.ts +1 -1
- package/node_modules/@aws-sdk/util-endpoints/dist-types/ts3.4/resolveEndpoint.d.ts +1 -6
- package/node_modules/@aws-sdk/util-endpoints/dist-types/ts3.4/types/EndpointError.d.ts +1 -3
- package/node_modules/@aws-sdk/util-endpoints/dist-types/ts3.4/types/EndpointRuleObject.d.ts +6 -15
- package/node_modules/@aws-sdk/util-endpoints/dist-types/ts3.4/types/ErrorRuleObject.d.ts +1 -7
- package/node_modules/@aws-sdk/util-endpoints/dist-types/ts3.4/types/RuleSetObject.d.ts +5 -19
- package/node_modules/@aws-sdk/util-endpoints/dist-types/ts3.4/types/TreeRuleObject.d.ts +1 -12
- package/node_modules/@aws-sdk/util-endpoints/dist-types/ts3.4/types/shared.d.ts +12 -29
- package/node_modules/@aws-sdk/util-endpoints/dist-types/types/EndpointError.d.ts +1 -3
- package/node_modules/@aws-sdk/util-endpoints/dist-types/types/EndpointRuleObject.d.ts +1 -15
- package/node_modules/@aws-sdk/util-endpoints/dist-types/types/ErrorRuleObject.d.ts +1 -7
- package/node_modules/@aws-sdk/util-endpoints/dist-types/types/RuleSetObject.d.ts +1 -19
- package/node_modules/@aws-sdk/util-endpoints/dist-types/types/TreeRuleObject.d.ts +1 -10
- package/node_modules/@aws-sdk/util-endpoints/dist-types/types/shared.d.ts +1 -25
- package/node_modules/@aws-sdk/util-endpoints/package.json +3 -2
- package/node_modules/@aws-sdk/util-user-agent-browser/package.json +4 -3
- package/node_modules/@aws-sdk/util-user-agent-node/dist-cjs/crt-availability.js +6 -0
- package/node_modules/@aws-sdk/util-user-agent-node/dist-cjs/index.js +3 -1
- package/node_modules/@aws-sdk/util-user-agent-node/dist-cjs/is-crt-available.js +4 -8
- package/node_modules/@aws-sdk/util-user-agent-node/dist-es/crt-availability.js +3 -0
- package/node_modules/@aws-sdk/util-user-agent-node/dist-es/index.js +1 -0
- package/node_modules/@aws-sdk/util-user-agent-node/dist-es/is-crt-available.js +4 -8
- package/node_modules/@aws-sdk/util-user-agent-node/dist-types/crt-availability.d.ts +9 -0
- package/node_modules/@aws-sdk/util-user-agent-node/dist-types/index.d.ts +1 -1
- package/node_modules/@aws-sdk/util-user-agent-node/dist-types/ts3.4/crt-availability.d.ts +3 -0
- package/node_modules/@aws-sdk/util-user-agent-node/dist-types/ts3.4/index.d.ts +1 -1
- package/node_modules/@aws-sdk/util-user-agent-node/package.json +4 -4
- package/node_modules/@smithy/abort-controller/package.json +2 -2
- package/node_modules/@smithy/config-resolver/package.json +4 -4
- package/node_modules/@smithy/credential-provider-imds/dist-cjs/error/InstanceMetadataV1FallbackError.js +13 -0
- package/node_modules/@smithy/credential-provider-imds/dist-cjs/fromInstanceMetadata.js +45 -3
- package/node_modules/@smithy/credential-provider-imds/dist-es/error/InstanceMetadataV1FallbackError.js +9 -0
- package/node_modules/@smithy/credential-provider-imds/dist-es/fromInstanceMetadata.js +44 -3
- package/node_modules/@smithy/credential-provider-imds/dist-types/error/InstanceMetadataV1FallbackError.d.ts +12 -0
- package/node_modules/@smithy/credential-provider-imds/dist-types/remoteProvider/RemoteProviderInit.d.ts +10 -2
- package/node_modules/@smithy/credential-provider-imds/dist-types/ts3.4/error/InstanceMetadataV1FallbackError.d.ts +12 -0
- package/node_modules/@smithy/credential-provider-imds/dist-types/ts3.4/remoteProvider/RemoteProviderInit.d.ts +10 -2
- package/node_modules/@smithy/credential-provider-imds/package.json +5 -5
- package/node_modules/@smithy/eventstream-codec/package.json +3 -3
- package/node_modules/@smithy/fetch-http-handler/dist-cjs/fetch-http-handler.js +4 -4
- package/node_modules/@smithy/fetch-http-handler/dist-es/fetch-http-handler.js +1 -1
- package/node_modules/@smithy/fetch-http-handler/dist-types/fetch-http-handler.d.ts +7 -1
- package/node_modules/@smithy/fetch-http-handler/dist-types/ts3.4/fetch-http-handler.d.ts +7 -1
- package/node_modules/@smithy/fetch-http-handler/package.json +6 -6
- package/node_modules/@smithy/hash-node/package.json +3 -3
- package/node_modules/@smithy/invalid-dependency/package.json +2 -2
- package/node_modules/@smithy/middleware-content-length/package.json +4 -4
- package/node_modules/@smithy/middleware-endpoint/dist-cjs/adaptors/getEndpointFromConfig.browser.js +5 -0
- package/node_modules/@smithy/middleware-endpoint/dist-cjs/adaptors/getEndpointFromConfig.js +7 -0
- package/node_modules/@smithy/middleware-endpoint/dist-cjs/adaptors/getEndpointFromInstructions.js +8 -0
- package/node_modules/@smithy/middleware-endpoint/dist-cjs/adaptors/getEndpointUrlConfig.js +35 -0
- package/node_modules/@smithy/middleware-endpoint/dist-cjs/endpointMiddleware.js +13 -1
- package/node_modules/@smithy/middleware-endpoint/dist-es/adaptors/getEndpointFromConfig.browser.js +1 -0
- package/node_modules/@smithy/middleware-endpoint/dist-es/adaptors/getEndpointFromConfig.js +3 -0
- package/node_modules/@smithy/middleware-endpoint/dist-es/adaptors/getEndpointFromInstructions.js +8 -0
- package/node_modules/@smithy/middleware-endpoint/dist-es/adaptors/getEndpointUrlConfig.js +31 -0
- package/node_modules/@smithy/middleware-endpoint/dist-es/endpointMiddleware.js +12 -0
- package/node_modules/@smithy/middleware-endpoint/dist-types/adaptors/getEndpointFromConfig.browser.d.ts +1 -0
- package/node_modules/@smithy/middleware-endpoint/dist-types/adaptors/getEndpointFromConfig.d.ts +1 -0
- package/node_modules/@smithy/middleware-endpoint/dist-types/adaptors/getEndpointUrlConfig.d.ts +2 -0
- package/node_modules/@smithy/middleware-endpoint/dist-types/resolveEndpointConfig.d.ts +5 -0
- package/node_modules/@smithy/middleware-endpoint/dist-types/ts3.4/adaptors/getEndpointFromConfig.browser.d.ts +1 -0
- package/node_modules/@smithy/middleware-endpoint/dist-types/ts3.4/adaptors/getEndpointFromConfig.d.ts +1 -0
- package/node_modules/@smithy/middleware-endpoint/dist-types/ts3.4/adaptors/getEndpointUrlConfig.d.ts +2 -0
- package/node_modules/@smithy/middleware-endpoint/dist-types/ts3.4/resolveEndpointConfig.d.ts +5 -0
- package/node_modules/@smithy/middleware-endpoint/package.json +14 -5
- package/node_modules/@smithy/middleware-retry/package.json +8 -8
- package/node_modules/@smithy/middleware-serde/package.json +3 -3
- package/node_modules/@smithy/middleware-stack/package.json +2 -2
- package/node_modules/@smithy/node-config-provider/dist-cjs/fromSharedConfigFiles.js +2 -1
- package/node_modules/@smithy/node-config-provider/dist-es/fromSharedConfigFiles.js +2 -1
- package/node_modules/@smithy/node-config-provider/dist-types/fromSharedConfigFiles.d.ts +2 -2
- package/node_modules/@smithy/node-config-provider/dist-types/ts3.4/fromSharedConfigFiles.d.ts +2 -2
- package/node_modules/@smithy/node-config-provider/package.json +4 -4
- package/node_modules/@smithy/node-http-handler/package.json +5 -5
- package/node_modules/@smithy/property-provider/package.json +2 -2
- package/node_modules/@smithy/protocol-http/package.json +2 -2
- package/node_modules/@smithy/querystring-builder/package.json +2 -2
- package/node_modules/@smithy/querystring-parser/package.json +2 -2
- package/node_modules/@smithy/service-error-classification/package.json +2 -2
- package/node_modules/@smithy/shared-ini-file-loader/dist-cjs/getConfigData.js +21 -0
- package/node_modules/@smithy/shared-ini-file-loader/dist-cjs/getSsoSessionData.js +4 -3
- package/node_modules/@smithy/shared-ini-file-loader/dist-cjs/loadSharedConfigFiles.js +4 -3
- package/node_modules/@smithy/shared-ini-file-loader/dist-cjs/parseIni.js +37 -15
- package/node_modules/@smithy/shared-ini-file-loader/dist-es/getConfigData.js +17 -0
- package/node_modules/@smithy/shared-ini-file-loader/dist-es/getSsoSessionData.js +4 -3
- package/node_modules/@smithy/shared-ini-file-loader/dist-es/loadSharedConfigFiles.js +3 -2
- package/node_modules/@smithy/shared-ini-file-loader/dist-es/parseIni.js +37 -15
- package/node_modules/@smithy/shared-ini-file-loader/dist-types/getConfigData.d.ts +8 -0
- package/node_modules/@smithy/shared-ini-file-loader/dist-types/loadSharedConfigFiles.d.ts +1 -0
- package/node_modules/@smithy/shared-ini-file-loader/dist-types/ts3.4/getConfigData.d.ts +8 -0
- package/node_modules/@smithy/shared-ini-file-loader/dist-types/ts3.4/loadSharedConfigFiles.d.ts +1 -0
- package/node_modules/@smithy/shared-ini-file-loader/package.json +2 -2
- package/node_modules/@smithy/signature-v4/package.json +6 -6
- package/node_modules/@smithy/smithy-client/package.json +4 -4
- package/node_modules/@smithy/types/dist-cjs/auth/HttpApiKeyAuth.js +8 -0
- package/node_modules/@smithy/types/dist-cjs/auth/HttpAuthScheme.js +2 -0
- package/node_modules/@smithy/types/dist-cjs/auth/HttpAuthSchemeProvider.js +2 -0
- package/node_modules/@smithy/types/dist-cjs/auth/HttpSigner.js +2 -0
- package/node_modules/@smithy/types/dist-cjs/auth/IdentityProviderConfig.js +2 -0
- package/node_modules/@smithy/types/dist-cjs/auth/index.js +9 -0
- package/node_modules/@smithy/types/dist-cjs/identity/apiKeyIdentity.js +2 -0
- package/node_modules/@smithy/types/dist-cjs/identity/index.js +2 -0
- package/node_modules/@smithy/types/dist-cjs/identity/tokenIdentity.js +2 -0
- package/node_modules/@smithy/types/dist-cjs/profile.js +7 -0
- package/node_modules/@smithy/types/dist-es/auth/HttpApiKeyAuth.js +5 -0
- package/node_modules/@smithy/types/dist-es/auth/HttpAuthScheme.js +1 -0
- package/node_modules/@smithy/types/dist-es/auth/HttpAuthSchemeProvider.js +1 -0
- package/node_modules/@smithy/types/dist-es/auth/HttpSigner.js +1 -0
- package/node_modules/@smithy/types/dist-es/auth/IdentityProviderConfig.js +1 -0
- package/node_modules/@smithy/types/dist-es/auth/index.js +6 -0
- package/node_modules/@smithy/types/dist-es/identity/apiKeyIdentity.js +1 -0
- package/node_modules/@smithy/types/dist-es/identity/index.js +2 -0
- package/node_modules/@smithy/types/dist-es/identity/tokenIdentity.js +1 -0
- package/node_modules/@smithy/types/dist-es/profile.js +6 -1
- package/node_modules/@smithy/types/dist-types/auth/HttpApiKeyAuth.d.ts +7 -0
- package/node_modules/@smithy/types/dist-types/auth/HttpAuthScheme.d.ts +49 -0
- package/node_modules/@smithy/types/dist-types/auth/HttpAuthSchemeProvider.d.ts +20 -0
- package/node_modules/@smithy/types/dist-types/auth/HttpSigner.d.ts +16 -0
- package/node_modules/@smithy/types/dist-types/auth/IdentityProviderConfig.d.ts +14 -0
- package/node_modules/@smithy/types/dist-types/{auth.d.ts → auth/auth.d.ts} +2 -0
- package/node_modules/@smithy/types/dist-types/auth/index.d.ts +6 -0
- package/node_modules/@smithy/types/dist-types/endpoint.d.ts +1 -1
- package/node_modules/@smithy/types/dist-types/endpoints/RuleSetObject.d.ts +1 -1
- package/node_modules/@smithy/types/dist-types/identity/apiKeyIdentity.d.ts +14 -0
- package/node_modules/@smithy/types/dist-types/identity/index.d.ts +2 -0
- package/node_modules/@smithy/types/dist-types/identity/tokenIdentity.d.ts +14 -0
- package/node_modules/@smithy/types/dist-types/middleware.d.ts +1 -1
- package/node_modules/@smithy/types/dist-types/profile.d.ts +8 -0
- package/node_modules/@smithy/types/dist-types/transform/client-payload-blob-type-narrow.d.ts +18 -4
- package/node_modules/@smithy/types/dist-types/ts3.4/auth/HttpApiKeyAuth.d.ts +7 -0
- package/node_modules/@smithy/types/dist-types/ts3.4/auth/HttpAuthScheme.d.ts +49 -0
- package/node_modules/@smithy/types/dist-types/ts3.4/auth/HttpAuthSchemeProvider.d.ts +20 -0
- package/node_modules/@smithy/types/dist-types/ts3.4/auth/HttpSigner.d.ts +16 -0
- package/node_modules/@smithy/types/dist-types/ts3.4/auth/IdentityProviderConfig.d.ts +14 -0
- package/node_modules/@smithy/types/dist-types/ts3.4/{auth.d.ts → auth/auth.d.ts} +2 -0
- package/node_modules/@smithy/types/dist-types/ts3.4/auth/index.d.ts +6 -0
- package/node_modules/@smithy/types/dist-types/ts3.4/endpoint.d.ts +1 -1
- package/node_modules/@smithy/types/dist-types/ts3.4/endpoints/RuleSetObject.d.ts +1 -1
- package/node_modules/@smithy/types/dist-types/ts3.4/identity/apiKeyIdentity.d.ts +14 -0
- package/node_modules/@smithy/types/dist-types/ts3.4/identity/index.d.ts +2 -0
- package/node_modules/@smithy/types/dist-types/ts3.4/identity/tokenIdentity.d.ts +14 -0
- package/node_modules/@smithy/types/dist-types/ts3.4/middleware.d.ts +1 -1
- package/node_modules/@smithy/types/dist-types/ts3.4/profile.d.ts +8 -0
- package/node_modules/@smithy/types/dist-types/ts3.4/transform/client-payload-blob-type-narrow.d.ts +24 -4
- package/node_modules/@smithy/types/package.json +1 -1
- package/node_modules/@smithy/url-parser/package.json +3 -3
- package/node_modules/@smithy/util-base64/package.json +9 -9
- package/node_modules/@smithy/util-defaults-mode-browser/package.json +6 -7
- package/node_modules/@smithy/util-defaults-mode-node/package.json +7 -7
- package/node_modules/@smithy/util-endpoints/LICENSE +201 -0
- package/node_modules/@smithy/util-endpoints/README.md +10 -0
- package/node_modules/@smithy/util-endpoints/dist-cjs/getEndpointUrlConfig.js +25 -0
- package/node_modules/@smithy/util-endpoints/dist-cjs/index.js +8 -0
- package/node_modules/{@aws-sdk → @smithy}/util-endpoints/dist-cjs/lib/index.js +0 -2
- package/node_modules/@smithy/util-endpoints/dist-cjs/lib/isIpAddress.js +6 -0
- package/node_modules/{@aws-sdk → @smithy}/util-endpoints/dist-cjs/lib/parseURL.js +1 -1
- package/node_modules/@smithy/util-endpoints/dist-cjs/resolveEndpoint.js +42 -0
- package/node_modules/@smithy/util-endpoints/dist-cjs/types/EndpointError.js +10 -0
- package/node_modules/@smithy/util-endpoints/dist-cjs/types/EndpointFunctions.js +2 -0
- package/node_modules/@smithy/util-endpoints/dist-cjs/types/EndpointRuleObject.js +2 -0
- package/node_modules/@smithy/util-endpoints/dist-cjs/types/ErrorRuleObject.js +2 -0
- package/node_modules/@smithy/util-endpoints/dist-cjs/types/RuleSetObject.js +2 -0
- package/node_modules/@smithy/util-endpoints/dist-cjs/types/TreeRuleObject.js +2 -0
- package/node_modules/@smithy/util-endpoints/dist-cjs/types/index.js +10 -0
- package/node_modules/@smithy/util-endpoints/dist-cjs/types/shared.js +2 -0
- package/node_modules/@smithy/util-endpoints/dist-cjs/utils/callFunction.js +15 -0
- package/node_modules/@smithy/util-endpoints/dist-cjs/utils/customEndpointFunctions.js +4 -0
- package/node_modules/@smithy/util-endpoints/dist-cjs/utils/endpointFunctions.js +15 -0
- package/node_modules/{@aws-sdk → @smithy}/util-endpoints/dist-cjs/utils/index.js +1 -0
- package/node_modules/@smithy/util-endpoints/dist-es/getEndpointUrlConfig.js +21 -0
- package/node_modules/@smithy/util-endpoints/dist-es/index.js +5 -0
- package/node_modules/{@aws-sdk → @smithy}/util-endpoints/dist-es/lib/index.js +0 -1
- package/node_modules/@smithy/util-endpoints/dist-es/lib/isIpAddress.js +2 -0
- package/node_modules/{@aws-sdk → @smithy}/util-endpoints/dist-es/lib/parseURL.js +1 -1
- package/node_modules/@smithy/util-endpoints/dist-es/resolveEndpoint.js +37 -0
- package/node_modules/@smithy/util-endpoints/dist-es/types/EndpointError.js +6 -0
- package/node_modules/@smithy/util-endpoints/dist-es/types/EndpointFunctions.js +1 -0
- package/node_modules/@smithy/util-endpoints/dist-es/types/EndpointRuleObject.js +1 -0
- package/node_modules/@smithy/util-endpoints/dist-es/types/ErrorRuleObject.js +1 -0
- package/node_modules/@smithy/util-endpoints/dist-es/types/RuleSetObject.js +1 -0
- package/node_modules/@smithy/util-endpoints/dist-es/types/TreeRuleObject.js +1 -0
- package/node_modules/@smithy/util-endpoints/dist-es/types/index.js +7 -0
- package/node_modules/@smithy/util-endpoints/dist-es/types/shared.js +1 -0
- package/node_modules/@smithy/util-endpoints/dist-es/utils/callFunction.js +11 -0
- package/node_modules/@smithy/util-endpoints/dist-es/utils/customEndpointFunctions.js +1 -0
- package/node_modules/@smithy/util-endpoints/dist-es/utils/endpointFunctions.js +12 -0
- package/node_modules/@smithy/util-endpoints/dist-es/utils/index.js +2 -0
- package/node_modules/{@aws-sdk → @smithy}/util-endpoints/dist-types/debug/toDebugString.d.ts +1 -1
- package/node_modules/@smithy/util-endpoints/dist-types/getEndpointUrlConfig.d.ts +2 -0
- package/node_modules/@smithy/util-endpoints/dist-types/index.d.ts +5 -0
- package/node_modules/{@aws-sdk → @smithy}/util-endpoints/dist-types/lib/index.d.ts +0 -1
- package/node_modules/@smithy/util-endpoints/dist-types/lib/isIpAddress.d.ts +4 -0
- package/node_modules/{@aws-sdk → @smithy}/util-endpoints/dist-types/lib/parseURL.d.ts +1 -1
- package/node_modules/@smithy/util-endpoints/dist-types/resolveEndpoint.d.ts +6 -0
- package/node_modules/{@aws-sdk → @smithy}/util-endpoints/dist-types/ts3.4/debug/debugId.d.ts +1 -1
- package/node_modules/{@aws-sdk → @smithy}/util-endpoints/dist-types/ts3.4/debug/index.d.ts +2 -2
- package/node_modules/{@aws-sdk → @smithy}/util-endpoints/dist-types/ts3.4/debug/toDebugString.d.ts +9 -9
- package/node_modules/@smithy/util-endpoints/dist-types/ts3.4/getEndpointUrlConfig.d.ts +2 -0
- package/node_modules/@smithy/util-endpoints/dist-types/ts3.4/index.d.ts +5 -0
- package/node_modules/@smithy/util-endpoints/dist-types/ts3.4/lib/booleanEquals.d.ts +5 -0
- package/node_modules/@smithy/util-endpoints/dist-types/ts3.4/lib/getAttr.d.ts +7 -0
- package/node_modules/@smithy/util-endpoints/dist-types/ts3.4/lib/getAttrPathList.d.ts +4 -0
- package/node_modules/{@aws-sdk → @smithy}/util-endpoints/dist-types/ts3.4/lib/index.d.ts +9 -11
- package/node_modules/@smithy/util-endpoints/dist-types/ts3.4/lib/isIpAddress.d.ts +4 -0
- package/node_modules/@smithy/util-endpoints/dist-types/ts3.4/lib/isSet.d.ts +5 -0
- package/node_modules/@smithy/util-endpoints/dist-types/ts3.4/lib/isValidHostLabel.d.ts +7 -0
- package/node_modules/@smithy/util-endpoints/dist-types/ts3.4/lib/not.d.ts +5 -0
- package/node_modules/@smithy/util-endpoints/dist-types/ts3.4/lib/parseURL.d.ts +5 -0
- package/node_modules/@smithy/util-endpoints/dist-types/ts3.4/lib/stringEquals.d.ts +5 -0
- package/node_modules/@smithy/util-endpoints/dist-types/ts3.4/lib/substring.d.ts +7 -0
- package/node_modules/@smithy/util-endpoints/dist-types/ts3.4/lib/uriEncode.d.ts +4 -0
- package/node_modules/@smithy/util-endpoints/dist-types/ts3.4/resolveEndpoint.d.ts +6 -0
- package/node_modules/@smithy/util-endpoints/dist-types/ts3.4/types/EndpointError.d.ts +3 -0
- package/node_modules/@smithy/util-endpoints/dist-types/ts3.4/types/EndpointFunctions.d.ts +2 -0
- package/node_modules/@smithy/util-endpoints/dist-types/ts3.4/types/EndpointRuleObject.d.ts +5 -0
- package/node_modules/@smithy/util-endpoints/dist-types/ts3.4/types/ErrorRuleObject.d.ts +2 -0
- package/node_modules/@smithy/util-endpoints/dist-types/ts3.4/types/RuleSetObject.d.ts +4 -0
- package/node_modules/@smithy/util-endpoints/dist-types/ts3.4/types/TreeRuleObject.d.ts +3 -0
- package/node_modules/@smithy/util-endpoints/dist-types/ts3.4/types/index.d.ts +7 -0
- package/node_modules/@smithy/util-endpoints/dist-types/ts3.4/types/shared.d.ts +25 -0
- package/node_modules/@smithy/util-endpoints/dist-types/ts3.4/utils/callFunction.d.ts +2 -0
- package/node_modules/@smithy/util-endpoints/dist-types/ts3.4/utils/customEndpointFunctions.d.ts +4 -0
- package/node_modules/@smithy/util-endpoints/dist-types/ts3.4/utils/endpointFunctions.d.ts +11 -0
- package/node_modules/@smithy/util-endpoints/dist-types/ts3.4/utils/evaluateCondition.d.ts +8 -0
- package/node_modules/@smithy/util-endpoints/dist-types/ts3.4/utils/evaluateConditions.d.ts +8 -0
- package/node_modules/@smithy/util-endpoints/dist-types/ts3.4/utils/evaluateEndpointRule.d.ts +3 -0
- package/node_modules/@smithy/util-endpoints/dist-types/ts3.4/utils/evaluateErrorRule.d.ts +2 -0
- package/node_modules/@smithy/util-endpoints/dist-types/ts3.4/utils/evaluateExpression.d.ts +2 -0
- package/node_modules/@smithy/util-endpoints/dist-types/ts3.4/utils/evaluateRules.d.ts +3 -0
- package/node_modules/@smithy/util-endpoints/dist-types/ts3.4/utils/evaluateTemplate.d.ts +2 -0
- package/node_modules/@smithy/util-endpoints/dist-types/ts3.4/utils/evaluateTreeRule.d.ts +3 -0
- package/node_modules/@smithy/util-endpoints/dist-types/ts3.4/utils/getEndpointHeaders.d.ts +2 -0
- package/node_modules/@smithy/util-endpoints/dist-types/ts3.4/utils/getEndpointProperties.d.ts +2 -0
- package/node_modules/@smithy/util-endpoints/dist-types/ts3.4/utils/getEndpointProperty.d.ts +3 -0
- package/node_modules/@smithy/util-endpoints/dist-types/ts3.4/utils/getEndpointUrl.d.ts +2 -0
- package/node_modules/@smithy/util-endpoints/dist-types/ts3.4/utils/getReferenceValue.d.ts +2 -0
- package/node_modules/@smithy/util-endpoints/dist-types/ts3.4/utils/index.d.ts +2 -0
- package/node_modules/@smithy/util-endpoints/dist-types/types/EndpointError.d.ts +3 -0
- package/node_modules/@smithy/util-endpoints/dist-types/types/EndpointFunctions.d.ts +2 -0
- package/node_modules/@smithy/util-endpoints/dist-types/types/EndpointRuleObject.d.ts +5 -0
- package/node_modules/@smithy/util-endpoints/dist-types/types/ErrorRuleObject.d.ts +2 -0
- package/node_modules/@smithy/util-endpoints/dist-types/types/RuleSetObject.d.ts +4 -0
- package/node_modules/@smithy/util-endpoints/dist-types/types/TreeRuleObject.d.ts +3 -0
- package/node_modules/@smithy/util-endpoints/dist-types/types/index.d.ts +7 -0
- package/node_modules/@smithy/util-endpoints/dist-types/types/shared.d.ts +25 -0
- package/node_modules/@smithy/util-endpoints/dist-types/utils/customEndpointFunctions.d.ts +4 -0
- package/node_modules/@smithy/util-endpoints/dist-types/utils/endpointFunctions.d.ts +11 -0
- package/node_modules/{@aws-sdk → @smithy}/util-endpoints/dist-types/utils/evaluateEndpointRule.d.ts +1 -1
- package/node_modules/@smithy/util-endpoints/dist-types/utils/evaluateRules.d.ts +3 -0
- package/node_modules/{@aws-sdk → @smithy}/util-endpoints/dist-types/utils/evaluateTreeRule.d.ts +1 -1
- package/node_modules/{@aws-sdk → @smithy}/util-endpoints/dist-types/utils/getEndpointProperty.d.ts +1 -1
- package/node_modules/@smithy/util-endpoints/dist-types/utils/index.d.ts +2 -0
- package/node_modules/@smithy/util-endpoints/package.json +67 -0
- package/node_modules/@smithy/util-middleware/package.json +2 -2
- package/node_modules/@smithy/util-retry/package.json +3 -3
- package/node_modules/@smithy/util-stream/package.json +10 -8
- package/node_modules/@smithy/util-utf8/package.json +7 -12
- package/node_modules/@smithy/util-waiter/package.json +3 -3
- package/package.json +12 -13
- package/node_modules/@aws-sdk/util-endpoints/dist-cjs/utils/callFunction.js +0 -11
- package/node_modules/@aws-sdk/util-endpoints/dist-es/utils/callFunction.js +0 -6
- package/node_modules/@aws-sdk/util-endpoints/dist-es/utils/index.js +0 -1
- package/node_modules/@aws-sdk/util-endpoints/dist-types/ts3.4/lib/booleanEquals.d.ts +0 -4
- package/node_modules/@aws-sdk/util-endpoints/dist-types/ts3.4/lib/getAttr.d.ts +0 -11
- package/node_modules/@aws-sdk/util-endpoints/dist-types/ts3.4/lib/getAttrPathList.d.ts +0 -1
- package/node_modules/@aws-sdk/util-endpoints/dist-types/ts3.4/lib/isSet.d.ts +0 -1
- package/node_modules/@aws-sdk/util-endpoints/dist-types/ts3.4/lib/isValidHostLabel.d.ts +0 -4
- package/node_modules/@aws-sdk/util-endpoints/dist-types/ts3.4/lib/not.d.ts +0 -1
- package/node_modules/@aws-sdk/util-endpoints/dist-types/ts3.4/lib/parseURL.d.ts +0 -4
- package/node_modules/@aws-sdk/util-endpoints/dist-types/ts3.4/lib/stringEquals.d.ts +0 -1
- package/node_modules/@aws-sdk/util-endpoints/dist-types/ts3.4/lib/substring.d.ts +0 -6
- package/node_modules/@aws-sdk/util-endpoints/dist-types/ts3.4/lib/uriEncode.d.ts +0 -1
- package/node_modules/@aws-sdk/util-endpoints/dist-types/ts3.4/utils/callFunction.d.ts +0 -5
- package/node_modules/@aws-sdk/util-endpoints/dist-types/ts3.4/utils/evaluateCondition.d.ts +0 -13
- package/node_modules/@aws-sdk/util-endpoints/dist-types/ts3.4/utils/evaluateConditions.d.ts +0 -13
- package/node_modules/@aws-sdk/util-endpoints/dist-types/ts3.4/utils/evaluateEndpointRule.d.ts +0 -6
- package/node_modules/@aws-sdk/util-endpoints/dist-types/ts3.4/utils/evaluateErrorRule.d.ts +0 -5
- package/node_modules/@aws-sdk/util-endpoints/dist-types/ts3.4/utils/evaluateExpression.d.ts +0 -6
- package/node_modules/@aws-sdk/util-endpoints/dist-types/ts3.4/utils/evaluateRules.d.ts +0 -6
- package/node_modules/@aws-sdk/util-endpoints/dist-types/ts3.4/utils/evaluateTemplate.d.ts +0 -5
- package/node_modules/@aws-sdk/util-endpoints/dist-types/ts3.4/utils/evaluateTreeRule.d.ts +0 -6
- package/node_modules/@aws-sdk/util-endpoints/dist-types/ts3.4/utils/getEndpointHeaders.d.ts +0 -5
- package/node_modules/@aws-sdk/util-endpoints/dist-types/ts3.4/utils/getEndpointProperties.d.ts +0 -5
- package/node_modules/@aws-sdk/util-endpoints/dist-types/ts3.4/utils/getEndpointProperty.d.ts +0 -6
- package/node_modules/@aws-sdk/util-endpoints/dist-types/ts3.4/utils/getEndpointUrl.d.ts +0 -5
- package/node_modules/@aws-sdk/util-endpoints/dist-types/ts3.4/utils/getReferenceValue.d.ts +0 -5
- package/node_modules/@aws-sdk/util-endpoints/dist-types/ts3.4/utils/index.d.ts +0 -1
- package/node_modules/@aws-sdk/util-endpoints/dist-types/utils/evaluateRules.d.ts +0 -3
- package/node_modules/@aws-sdk/util-endpoints/dist-types/utils/index.d.ts +0 -1
- package/node_modules/@smithy/shared-ini-file-loader/dist-cjs/getProfileData.js +0 -10
- package/node_modules/@smithy/shared-ini-file-loader/dist-es/getProfileData.js +0 -6
- package/node_modules/@smithy/shared-ini-file-loader/dist-types/getProfileData.d.ts +0 -7
- package/node_modules/@smithy/shared-ini-file-loader/dist-types/ts3.4/getProfileData.d.ts +0 -7
- /package/node_modules/@smithy/types/dist-cjs/{auth.js → auth/auth.js} +0 -0
- /package/node_modules/@smithy/types/dist-es/{auth.js → auth/auth.js} +0 -0
- /package/node_modules/{@aws-sdk → @smithy}/util-endpoints/dist-cjs/debug/debugId.js +0 -0
- /package/node_modules/{@aws-sdk → @smithy}/util-endpoints/dist-cjs/debug/index.js +0 -0
- /package/node_modules/{@aws-sdk → @smithy}/util-endpoints/dist-cjs/debug/toDebugString.js +0 -0
- /package/node_modules/{@aws-sdk → @smithy}/util-endpoints/dist-cjs/lib/booleanEquals.js +0 -0
- /package/node_modules/{@aws-sdk → @smithy}/util-endpoints/dist-cjs/lib/getAttr.js +0 -0
- /package/node_modules/{@aws-sdk → @smithy}/util-endpoints/dist-cjs/lib/getAttrPathList.js +0 -0
- /package/node_modules/{@aws-sdk → @smithy}/util-endpoints/dist-cjs/lib/isSet.js +0 -0
- /package/node_modules/{@aws-sdk → @smithy}/util-endpoints/dist-cjs/lib/isValidHostLabel.js +0 -0
- /package/node_modules/{@aws-sdk → @smithy}/util-endpoints/dist-cjs/lib/not.js +0 -0
- /package/node_modules/{@aws-sdk → @smithy}/util-endpoints/dist-cjs/lib/stringEquals.js +0 -0
- /package/node_modules/{@aws-sdk → @smithy}/util-endpoints/dist-cjs/lib/substring.js +0 -0
- /package/node_modules/{@aws-sdk → @smithy}/util-endpoints/dist-cjs/lib/uriEncode.js +0 -0
- /package/node_modules/{@aws-sdk → @smithy}/util-endpoints/dist-cjs/utils/evaluateCondition.js +0 -0
- /package/node_modules/{@aws-sdk → @smithy}/util-endpoints/dist-cjs/utils/evaluateConditions.js +0 -0
- /package/node_modules/{@aws-sdk → @smithy}/util-endpoints/dist-cjs/utils/evaluateEndpointRule.js +0 -0
- /package/node_modules/{@aws-sdk → @smithy}/util-endpoints/dist-cjs/utils/evaluateErrorRule.js +0 -0
- /package/node_modules/{@aws-sdk → @smithy}/util-endpoints/dist-cjs/utils/evaluateExpression.js +0 -0
- /package/node_modules/{@aws-sdk → @smithy}/util-endpoints/dist-cjs/utils/evaluateRules.js +0 -0
- /package/node_modules/{@aws-sdk → @smithy}/util-endpoints/dist-cjs/utils/evaluateTemplate.js +0 -0
- /package/node_modules/{@aws-sdk → @smithy}/util-endpoints/dist-cjs/utils/evaluateTreeRule.js +0 -0
- /package/node_modules/{@aws-sdk → @smithy}/util-endpoints/dist-cjs/utils/getEndpointHeaders.js +0 -0
- /package/node_modules/{@aws-sdk → @smithy}/util-endpoints/dist-cjs/utils/getEndpointProperties.js +0 -0
- /package/node_modules/{@aws-sdk → @smithy}/util-endpoints/dist-cjs/utils/getEndpointProperty.js +0 -0
- /package/node_modules/{@aws-sdk → @smithy}/util-endpoints/dist-cjs/utils/getEndpointUrl.js +0 -0
- /package/node_modules/{@aws-sdk → @smithy}/util-endpoints/dist-cjs/utils/getReferenceValue.js +0 -0
- /package/node_modules/{@aws-sdk → @smithy}/util-endpoints/dist-es/debug/debugId.js +0 -0
- /package/node_modules/{@aws-sdk → @smithy}/util-endpoints/dist-es/debug/index.js +0 -0
- /package/node_modules/{@aws-sdk → @smithy}/util-endpoints/dist-es/debug/toDebugString.js +0 -0
- /package/node_modules/{@aws-sdk → @smithy}/util-endpoints/dist-es/lib/booleanEquals.js +0 -0
- /package/node_modules/{@aws-sdk → @smithy}/util-endpoints/dist-es/lib/getAttr.js +0 -0
- /package/node_modules/{@aws-sdk → @smithy}/util-endpoints/dist-es/lib/getAttrPathList.js +0 -0
- /package/node_modules/{@aws-sdk → @smithy}/util-endpoints/dist-es/lib/isSet.js +0 -0
- /package/node_modules/{@aws-sdk → @smithy}/util-endpoints/dist-es/lib/isValidHostLabel.js +0 -0
- /package/node_modules/{@aws-sdk → @smithy}/util-endpoints/dist-es/lib/not.js +0 -0
- /package/node_modules/{@aws-sdk → @smithy}/util-endpoints/dist-es/lib/stringEquals.js +0 -0
- /package/node_modules/{@aws-sdk → @smithy}/util-endpoints/dist-es/lib/substring.js +0 -0
- /package/node_modules/{@aws-sdk → @smithy}/util-endpoints/dist-es/lib/uriEncode.js +0 -0
- /package/node_modules/{@aws-sdk → @smithy}/util-endpoints/dist-es/utils/evaluateCondition.js +0 -0
- /package/node_modules/{@aws-sdk → @smithy}/util-endpoints/dist-es/utils/evaluateConditions.js +0 -0
- /package/node_modules/{@aws-sdk → @smithy}/util-endpoints/dist-es/utils/evaluateEndpointRule.js +0 -0
- /package/node_modules/{@aws-sdk → @smithy}/util-endpoints/dist-es/utils/evaluateErrorRule.js +0 -0
- /package/node_modules/{@aws-sdk → @smithy}/util-endpoints/dist-es/utils/evaluateExpression.js +0 -0
- /package/node_modules/{@aws-sdk → @smithy}/util-endpoints/dist-es/utils/evaluateRules.js +0 -0
- /package/node_modules/{@aws-sdk → @smithy}/util-endpoints/dist-es/utils/evaluateTemplate.js +0 -0
- /package/node_modules/{@aws-sdk → @smithy}/util-endpoints/dist-es/utils/evaluateTreeRule.js +0 -0
- /package/node_modules/{@aws-sdk → @smithy}/util-endpoints/dist-es/utils/getEndpointHeaders.js +0 -0
- /package/node_modules/{@aws-sdk → @smithy}/util-endpoints/dist-es/utils/getEndpointProperties.js +0 -0
- /package/node_modules/{@aws-sdk → @smithy}/util-endpoints/dist-es/utils/getEndpointProperty.js +0 -0
- /package/node_modules/{@aws-sdk → @smithy}/util-endpoints/dist-es/utils/getEndpointUrl.js +0 -0
- /package/node_modules/{@aws-sdk → @smithy}/util-endpoints/dist-es/utils/getReferenceValue.js +0 -0
- /package/node_modules/{@aws-sdk → @smithy}/util-endpoints/dist-types/debug/debugId.d.ts +0 -0
- /package/node_modules/{@aws-sdk → @smithy}/util-endpoints/dist-types/debug/index.d.ts +0 -0
- /package/node_modules/{@aws-sdk → @smithy}/util-endpoints/dist-types/lib/booleanEquals.d.ts +0 -0
- /package/node_modules/{@aws-sdk → @smithy}/util-endpoints/dist-types/lib/getAttr.d.ts +0 -0
- /package/node_modules/{@aws-sdk → @smithy}/util-endpoints/dist-types/lib/getAttrPathList.d.ts +0 -0
- /package/node_modules/{@aws-sdk → @smithy}/util-endpoints/dist-types/lib/isSet.d.ts +0 -0
- /package/node_modules/{@aws-sdk → @smithy}/util-endpoints/dist-types/lib/isValidHostLabel.d.ts +0 -0
- /package/node_modules/{@aws-sdk → @smithy}/util-endpoints/dist-types/lib/not.d.ts +0 -0
- /package/node_modules/{@aws-sdk → @smithy}/util-endpoints/dist-types/lib/stringEquals.d.ts +0 -0
- /package/node_modules/{@aws-sdk → @smithy}/util-endpoints/dist-types/lib/substring.d.ts +0 -0
- /package/node_modules/{@aws-sdk → @smithy}/util-endpoints/dist-types/lib/uriEncode.d.ts +0 -0
- /package/node_modules/{@aws-sdk → @smithy}/util-endpoints/dist-types/utils/callFunction.d.ts +0 -0
- /package/node_modules/{@aws-sdk → @smithy}/util-endpoints/dist-types/utils/evaluateCondition.d.ts +0 -0
- /package/node_modules/{@aws-sdk → @smithy}/util-endpoints/dist-types/utils/evaluateConditions.d.ts +0 -0
- /package/node_modules/{@aws-sdk → @smithy}/util-endpoints/dist-types/utils/evaluateErrorRule.d.ts +0 -0
- /package/node_modules/{@aws-sdk → @smithy}/util-endpoints/dist-types/utils/evaluateExpression.d.ts +0 -0
- /package/node_modules/{@aws-sdk → @smithy}/util-endpoints/dist-types/utils/evaluateTemplate.d.ts +0 -0
- /package/node_modules/{@aws-sdk → @smithy}/util-endpoints/dist-types/utils/getEndpointHeaders.d.ts +0 -0
- /package/node_modules/{@aws-sdk → @smithy}/util-endpoints/dist-types/utils/getEndpointProperties.d.ts +0 -0
- /package/node_modules/{@aws-sdk → @smithy}/util-endpoints/dist-types/utils/getEndpointUrl.d.ts +0 -0
- /package/node_modules/{@aws-sdk → @smithy}/util-endpoints/dist-types/utils/getReferenceValue.d.ts +0 -0
|
@@ -0,0 +1,59 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports._toNum = exports._toBool = exports._toStr = void 0;
|
|
4
|
+
const _toStr = (val) => {
|
|
5
|
+
if (val == null) {
|
|
6
|
+
return val;
|
|
7
|
+
}
|
|
8
|
+
if (typeof val === "number" || typeof val === "bigint") {
|
|
9
|
+
const warning = new Error(`Received number ${val} where a string was expected.`);
|
|
10
|
+
warning.name = "Warning";
|
|
11
|
+
console.warn(warning);
|
|
12
|
+
return String(val);
|
|
13
|
+
}
|
|
14
|
+
if (typeof val === "boolean") {
|
|
15
|
+
const warning = new Error(`Received boolean ${val} where a string was expected.`);
|
|
16
|
+
warning.name = "Warning";
|
|
17
|
+
console.warn(warning);
|
|
18
|
+
return String(val);
|
|
19
|
+
}
|
|
20
|
+
return val;
|
|
21
|
+
};
|
|
22
|
+
exports._toStr = _toStr;
|
|
23
|
+
const _toBool = (val) => {
|
|
24
|
+
if (val == null) {
|
|
25
|
+
return val;
|
|
26
|
+
}
|
|
27
|
+
if (typeof val === "number") {
|
|
28
|
+
}
|
|
29
|
+
if (typeof val === "string") {
|
|
30
|
+
const lowercase = val.toLowerCase();
|
|
31
|
+
if (val !== "" && lowercase !== "false" && lowercase !== "true") {
|
|
32
|
+
const warning = new Error(`Received string "${val}" where a boolean was expected.`);
|
|
33
|
+
warning.name = "Warning";
|
|
34
|
+
console.warn(warning);
|
|
35
|
+
}
|
|
36
|
+
return val !== "" && lowercase !== "false";
|
|
37
|
+
}
|
|
38
|
+
return val;
|
|
39
|
+
};
|
|
40
|
+
exports._toBool = _toBool;
|
|
41
|
+
const _toNum = (val) => {
|
|
42
|
+
if (val == null) {
|
|
43
|
+
return val;
|
|
44
|
+
}
|
|
45
|
+
if (typeof val === "boolean") {
|
|
46
|
+
}
|
|
47
|
+
if (typeof val === "string") {
|
|
48
|
+
const num = Number(val);
|
|
49
|
+
if (num.toString() !== val) {
|
|
50
|
+
const warning = new Error(`Received string "${val}" where a number was expected.`);
|
|
51
|
+
warning.name = "Warning";
|
|
52
|
+
console.warn(warning);
|
|
53
|
+
return val;
|
|
54
|
+
}
|
|
55
|
+
return num;
|
|
56
|
+
}
|
|
57
|
+
return val;
|
|
58
|
+
};
|
|
59
|
+
exports._toNum = _toNum;
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.awsExpectUnion = void 0;
|
|
4
|
+
const smithy_client_1 = require("@smithy/smithy-client");
|
|
5
|
+
const awsExpectUnion = (value) => {
|
|
6
|
+
if (value == null) {
|
|
7
|
+
return undefined;
|
|
8
|
+
}
|
|
9
|
+
if (typeof value === "object" && "__type" in value) {
|
|
10
|
+
delete value.__type;
|
|
11
|
+
}
|
|
12
|
+
return (0, smithy_client_1.expectUnion)(value);
|
|
13
|
+
};
|
|
14
|
+
exports.awsExpectUnion = awsExpectUnion;
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
let warningEmitted = false;
|
|
2
|
+
export const emitWarningIfUnsupportedVersion = (version) => {
|
|
3
|
+
if (version && !warningEmitted && parseInt(version.substring(1, version.indexOf("."))) < 16) {
|
|
4
|
+
warningEmitted = true;
|
|
5
|
+
process.emitWarning(`NodeDeprecationWarning: The AWS SDK for JavaScript (v3) will
|
|
6
|
+
no longer support Node.js 14.x on May 1, 2024.
|
|
7
|
+
|
|
8
|
+
To continue receiving updates to AWS services, bug fixes, and security
|
|
9
|
+
updates please upgrade to an active Node.js LTS version.
|
|
10
|
+
|
|
11
|
+
More information can be found at: https://a.co/dzr2AJd`);
|
|
12
|
+
}
|
|
13
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from "./emitWarningIfUnsupportedVersion";
|
|
@@ -0,0 +1,53 @@
|
|
|
1
|
+
export const _toStr = (val) => {
|
|
2
|
+
if (val == null) {
|
|
3
|
+
return val;
|
|
4
|
+
}
|
|
5
|
+
if (typeof val === "number" || typeof val === "bigint") {
|
|
6
|
+
const warning = new Error(`Received number ${val} where a string was expected.`);
|
|
7
|
+
warning.name = "Warning";
|
|
8
|
+
console.warn(warning);
|
|
9
|
+
return String(val);
|
|
10
|
+
}
|
|
11
|
+
if (typeof val === "boolean") {
|
|
12
|
+
const warning = new Error(`Received boolean ${val} where a string was expected.`);
|
|
13
|
+
warning.name = "Warning";
|
|
14
|
+
console.warn(warning);
|
|
15
|
+
return String(val);
|
|
16
|
+
}
|
|
17
|
+
return val;
|
|
18
|
+
};
|
|
19
|
+
export const _toBool = (val) => {
|
|
20
|
+
if (val == null) {
|
|
21
|
+
return val;
|
|
22
|
+
}
|
|
23
|
+
if (typeof val === "number") {
|
|
24
|
+
}
|
|
25
|
+
if (typeof val === "string") {
|
|
26
|
+
const lowercase = val.toLowerCase();
|
|
27
|
+
if (val !== "" && lowercase !== "false" && lowercase !== "true") {
|
|
28
|
+
const warning = new Error(`Received string "${val}" where a boolean was expected.`);
|
|
29
|
+
warning.name = "Warning";
|
|
30
|
+
console.warn(warning);
|
|
31
|
+
}
|
|
32
|
+
return val !== "" && lowercase !== "false";
|
|
33
|
+
}
|
|
34
|
+
return val;
|
|
35
|
+
};
|
|
36
|
+
export const _toNum = (val) => {
|
|
37
|
+
if (val == null) {
|
|
38
|
+
return val;
|
|
39
|
+
}
|
|
40
|
+
if (typeof val === "boolean") {
|
|
41
|
+
}
|
|
42
|
+
if (typeof val === "string") {
|
|
43
|
+
const num = Number(val);
|
|
44
|
+
if (num.toString() !== val) {
|
|
45
|
+
const warning = new Error(`Received string "${val}" where a number was expected.`);
|
|
46
|
+
warning.name = "Warning";
|
|
47
|
+
console.warn(warning);
|
|
48
|
+
return val;
|
|
49
|
+
}
|
|
50
|
+
return num;
|
|
51
|
+
}
|
|
52
|
+
return val;
|
|
53
|
+
};
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { expectUnion } from "@smithy/smithy-client";
|
|
2
|
+
export const awsExpectUnion = (value) => {
|
|
3
|
+
if (value == null) {
|
|
4
|
+
return undefined;
|
|
5
|
+
}
|
|
6
|
+
if (typeof value === "object" && "__type" in value) {
|
|
7
|
+
delete value.__type;
|
|
8
|
+
}
|
|
9
|
+
return expectUnion(value);
|
|
10
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from "./emitWarningIfUnsupportedVersion";
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @internal
|
|
3
|
+
*
|
|
4
|
+
* Used for awsQueryCompatibility trait.
|
|
5
|
+
*/
|
|
6
|
+
export declare const _toStr: (val: unknown) => string | undefined;
|
|
7
|
+
/**
|
|
8
|
+
* @internal
|
|
9
|
+
*
|
|
10
|
+
* Used for awsQueryCompatibility trait.
|
|
11
|
+
*/
|
|
12
|
+
export declare const _toBool: (val: unknown) => boolean | undefined;
|
|
13
|
+
/**
|
|
14
|
+
* @internal
|
|
15
|
+
*
|
|
16
|
+
* Used for awsQueryCompatibility trait.
|
|
17
|
+
*/
|
|
18
|
+
export declare const _toNum: (val: unknown) => number | undefined;
|
package/node_modules/@aws-sdk/core/dist-types/ts3.4/client/emitWarningIfUnsupportedVersion.d.ts
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare const emitWarningIfUnsupportedVersion: (version: string) => void;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from "./emitWarningIfUnsupportedVersion";
|
|
@@ -0,0 +1,57 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "@aws-sdk/core",
|
|
3
|
+
"version": "3.451.0",
|
|
4
|
+
"description": "Core functions & classes shared by multiple AWS SDK clients",
|
|
5
|
+
"scripts": {
|
|
6
|
+
"build": "concurrently 'yarn:build:cjs' 'yarn:build:es' 'yarn:build:types'",
|
|
7
|
+
"build:cjs": "tsc -p tsconfig.cjs.json && yarn lint",
|
|
8
|
+
"build:es": "tsc -p tsconfig.es.json",
|
|
9
|
+
"build:include:deps": "lerna run --scope $npm_package_name --include-dependencies build",
|
|
10
|
+
"build:types": "tsc -p tsconfig.types.json",
|
|
11
|
+
"build:types:downlevel": "downlevel-dts dist-types dist-types/ts3.4",
|
|
12
|
+
"lint": "node ./scripts/lint.js",
|
|
13
|
+
"clean": "rimraf ./dist-* && rimraf *.tsbuildinfo",
|
|
14
|
+
"extract:docs": "api-extractor run --local",
|
|
15
|
+
"test": "jest --passWithNoTests"
|
|
16
|
+
},
|
|
17
|
+
"main": "./dist-cjs/index.js",
|
|
18
|
+
"module": "./dist-es/index.js",
|
|
19
|
+
"types": "./dist-types/index.d.ts",
|
|
20
|
+
"sideEffects": false,
|
|
21
|
+
"author": {
|
|
22
|
+
"name": "AWS SDK for JavaScript Team",
|
|
23
|
+
"url": "https://aws.amazon.com/javascript/"
|
|
24
|
+
},
|
|
25
|
+
"license": "Apache-2.0",
|
|
26
|
+
"dependencies": {
|
|
27
|
+
"@smithy/smithy-client": "^2.1.15",
|
|
28
|
+
"tslib": "^2.5.0"
|
|
29
|
+
},
|
|
30
|
+
"devDependencies": {
|
|
31
|
+
"@tsconfig/recommended": "1.0.1",
|
|
32
|
+
"concurrently": "7.0.0",
|
|
33
|
+
"downlevel-dts": "0.10.1",
|
|
34
|
+
"rimraf": "3.0.2",
|
|
35
|
+
"typedoc": "0.23.23",
|
|
36
|
+
"typescript": "~4.9.5"
|
|
37
|
+
},
|
|
38
|
+
"engines": {
|
|
39
|
+
"node": ">=14.0.0"
|
|
40
|
+
},
|
|
41
|
+
"typesVersions": {
|
|
42
|
+
"<4.0": {
|
|
43
|
+
"dist-types/*": [
|
|
44
|
+
"dist-types/ts3.4/*"
|
|
45
|
+
]
|
|
46
|
+
}
|
|
47
|
+
},
|
|
48
|
+
"homepage": "https://github.com/aws/aws-sdk-js-v3/tree/master/packages/core",
|
|
49
|
+
"repository": {
|
|
50
|
+
"type": "git",
|
|
51
|
+
"url": "https://github.com/aws/aws-sdk-js-v3.git",
|
|
52
|
+
"directory": "packages/core"
|
|
53
|
+
},
|
|
54
|
+
"typedoc": {
|
|
55
|
+
"entryPoint": "src/index.ts"
|
|
56
|
+
}
|
|
57
|
+
}
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
const fs = require("fs");
|
|
2
|
+
const path = require("path");
|
|
3
|
+
const assert = require("assert");
|
|
4
|
+
|
|
5
|
+
const root = path.join(__dirname, "..");
|
|
6
|
+
|
|
7
|
+
const pkgJson = require(path.join(root, "package.json"));
|
|
8
|
+
const srcFolders = fs.readdirSync(path.join(root, "src"));
|
|
9
|
+
|
|
10
|
+
assert(pkgJson.exports === undefined, "We cannot support package.json exports yet.");
|
|
11
|
+
|
|
12
|
+
/**
|
|
13
|
+
* We probably can't enable package.json exports until
|
|
14
|
+
* dropping support for Node.js 14.x and TypeScript 4.6.
|
|
15
|
+
*/
|
|
16
|
+
process.exit(0);
|
|
17
|
+
|
|
18
|
+
for (const srcFolder of srcFolders) {
|
|
19
|
+
if (fs.lstatSync(path.join(root, "src", srcFolder)).isDirectory()) {
|
|
20
|
+
if (!pkgJson.exports["./" + srcFolder]) {
|
|
21
|
+
throw new Error(`${srcFolder} is missing exports statement in package.json`);
|
|
22
|
+
}
|
|
23
|
+
}
|
|
24
|
+
}
|
|
@@ -0,0 +1,70 @@
|
|
|
1
|
+
describe("emitWarningIfUnsupportedVersion", () => {
|
|
2
|
+
let emitWarningIfUnsupportedVersion;
|
|
3
|
+
const emitWarning = process.emitWarning;
|
|
4
|
+
const supportedVersion = "16.0.0";
|
|
5
|
+
|
|
6
|
+
beforeEach(() => {
|
|
7
|
+
const module = require("./emitWarningIfUnsupportedVersion");
|
|
8
|
+
emitWarningIfUnsupportedVersion = module.emitWarningIfUnsupportedVersion;
|
|
9
|
+
});
|
|
10
|
+
|
|
11
|
+
afterEach(() => {
|
|
12
|
+
jest.clearAllMocks();
|
|
13
|
+
jest.resetModules();
|
|
14
|
+
process.emitWarning = emitWarning;
|
|
15
|
+
});
|
|
16
|
+
|
|
17
|
+
describe(`emits warning for Node.js <${supportedVersion}`, () => {
|
|
18
|
+
const getPreviousMajorVersion = (major: number) => (major === 0 ? 0 : major - 1);
|
|
19
|
+
|
|
20
|
+
const getPreviousMinorVersion = ([major, minor]: [number, number]) =>
|
|
21
|
+
minor === 0 ? [getPreviousMajorVersion(major), 9] : [major, minor - 1];
|
|
22
|
+
|
|
23
|
+
const getPreviousPatchVersion = ([major, minor, patch]: [number, number, number]) =>
|
|
24
|
+
patch === 0 ? [...getPreviousMinorVersion([major, minor]), 9] : [major, minor, patch - 1];
|
|
25
|
+
|
|
26
|
+
const [major, minor, patch] = supportedVersion.split(".").map(Number);
|
|
27
|
+
it.each(
|
|
28
|
+
[
|
|
29
|
+
getPreviousPatchVersion([major, minor, patch]),
|
|
30
|
+
[...getPreviousMinorVersion([major, minor]), 0],
|
|
31
|
+
[getPreviousMajorVersion(major), 0, 0],
|
|
32
|
+
].map((arr) => `v${arr.join(".")}`)
|
|
33
|
+
)(`%s`, async (unsupportedVersion) => {
|
|
34
|
+
process.emitWarning = jest.fn();
|
|
35
|
+
emitWarningIfUnsupportedVersion(unsupportedVersion);
|
|
36
|
+
|
|
37
|
+
// Verify that the warning was emitted.
|
|
38
|
+
expect(process.emitWarning).toHaveBeenCalledTimes(1);
|
|
39
|
+
expect(process.emitWarning).toHaveBeenCalledWith(
|
|
40
|
+
`NodeDeprecationWarning: The AWS SDK for JavaScript (v3) will
|
|
41
|
+
no longer support Node.js 14.x on May 1, 2024.
|
|
42
|
+
|
|
43
|
+
To continue receiving updates to AWS services, bug fixes, and security
|
|
44
|
+
updates please upgrade to an active Node.js LTS version.
|
|
45
|
+
|
|
46
|
+
More information can be found at: https://a.co/dzr2AJd`
|
|
47
|
+
);
|
|
48
|
+
|
|
49
|
+
// Verify that the warning emits only once.
|
|
50
|
+
emitWarningIfUnsupportedVersion(unsupportedVersion);
|
|
51
|
+
expect(process.emitWarning).toHaveBeenCalledTimes(1);
|
|
52
|
+
});
|
|
53
|
+
});
|
|
54
|
+
|
|
55
|
+
describe(`emits no warning for Node.js >=${supportedVersion}`, () => {
|
|
56
|
+
const [major, minor, patch] = supportedVersion.split(".").map(Number);
|
|
57
|
+
it.each(
|
|
58
|
+
[
|
|
59
|
+
[major, minor, patch],
|
|
60
|
+
[major, minor, patch + 1],
|
|
61
|
+
[major, minor + 1, 0],
|
|
62
|
+
[major + 1, 0, 0],
|
|
63
|
+
].map((arr) => `v${arr.join(".")}`)
|
|
64
|
+
)(`%s`, async (unsupportedVersion) => {
|
|
65
|
+
process.emitWarning = jest.fn();
|
|
66
|
+
emitWarningIfUnsupportedVersion(unsupportedVersion);
|
|
67
|
+
expect(process.emitWarning).not.toHaveBeenCalled();
|
|
68
|
+
});
|
|
69
|
+
});
|
|
70
|
+
});
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
// Stores whether the warning was already emitted.
|
|
2
|
+
let warningEmitted = false;
|
|
3
|
+
|
|
4
|
+
/**
|
|
5
|
+
* @internal
|
|
6
|
+
*
|
|
7
|
+
* Emits warning if the provided Node.js version string is
|
|
8
|
+
* pending deprecation by AWS SDK JSv3.
|
|
9
|
+
*
|
|
10
|
+
* @param version - The Node.js version string.
|
|
11
|
+
*/
|
|
12
|
+
export const emitWarningIfUnsupportedVersion = (version: string) => {
|
|
13
|
+
if (version && !warningEmitted && parseInt(version.substring(1, version.indexOf("."))) < 16) {
|
|
14
|
+
warningEmitted = true;
|
|
15
|
+
process.emitWarning(
|
|
16
|
+
`NodeDeprecationWarning: The AWS SDK for JavaScript (v3) will
|
|
17
|
+
no longer support Node.js 14.x on May 1, 2024.
|
|
18
|
+
|
|
19
|
+
To continue receiving updates to AWS services, bug fixes, and security
|
|
20
|
+
updates please upgrade to an active Node.js LTS version.
|
|
21
|
+
|
|
22
|
+
More information can be found at: https://a.co/dzr2AJd`
|
|
23
|
+
);
|
|
24
|
+
}
|
|
25
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from "./emitWarningIfUnsupportedVersion";
|
|
@@ -0,0 +1,76 @@
|
|
|
1
|
+
import { _toBool, _toNum, _toStr } from "./coercing-serializers";
|
|
2
|
+
|
|
3
|
+
const consoleWarn = console.warn;
|
|
4
|
+
|
|
5
|
+
beforeAll(() => {
|
|
6
|
+
console.warn = () => {};
|
|
7
|
+
});
|
|
8
|
+
|
|
9
|
+
afterAll(() => {
|
|
10
|
+
console.warn = consoleWarn;
|
|
11
|
+
});
|
|
12
|
+
|
|
13
|
+
describe(_toBool.name, () => {
|
|
14
|
+
it("ignores nullish", () => {
|
|
15
|
+
expect(_toBool(null)).toBe(null);
|
|
16
|
+
expect(_toBool(undefined)).toBe(undefined);
|
|
17
|
+
});
|
|
18
|
+
|
|
19
|
+
it("converts strings", () => {
|
|
20
|
+
expect(_toBool("false")).toEqual(false);
|
|
21
|
+
expect(_toBool("true")).toEqual(true);
|
|
22
|
+
|
|
23
|
+
expect(_toBool("False")).toEqual(false);
|
|
24
|
+
expect(_toBool("True")).toEqual(true);
|
|
25
|
+
|
|
26
|
+
expect(_toBool("")).toEqual(false);
|
|
27
|
+
expect(_toBool("a")).toEqual(true); // warns
|
|
28
|
+
});
|
|
29
|
+
|
|
30
|
+
it("does not convert numbers", () => {
|
|
31
|
+
expect(_toBool(0)).toEqual(0);
|
|
32
|
+
expect(_toBool(1)).toEqual(1);
|
|
33
|
+
});
|
|
34
|
+
});
|
|
35
|
+
|
|
36
|
+
describe(_toStr.name, () => {
|
|
37
|
+
it("ignores nullish", () => {
|
|
38
|
+
expect(_toStr(null)).toBe(null);
|
|
39
|
+
expect(_toStr(undefined)).toBe(undefined);
|
|
40
|
+
});
|
|
41
|
+
|
|
42
|
+
it("converts numbers", () => {
|
|
43
|
+
expect(_toStr(0)).toEqual("0");
|
|
44
|
+
expect(_toStr(1)).toEqual("1");
|
|
45
|
+
});
|
|
46
|
+
|
|
47
|
+
it("converts booleans", () => {
|
|
48
|
+
expect(_toStr(false)).toEqual("false");
|
|
49
|
+
expect(_toStr(true)).toEqual("true");
|
|
50
|
+
});
|
|
51
|
+
});
|
|
52
|
+
|
|
53
|
+
describe(_toNum.name, () => {
|
|
54
|
+
it("ignores nullish", () => {
|
|
55
|
+
expect(_toNum(null)).toBe(null);
|
|
56
|
+
expect(_toNum(undefined)).toBe(undefined);
|
|
57
|
+
});
|
|
58
|
+
|
|
59
|
+
it("converts numeric strings", () => {
|
|
60
|
+
expect(_toNum("1234")).toEqual(1234);
|
|
61
|
+
expect(_toNum("1234.56")).toEqual(1234.56);
|
|
62
|
+
});
|
|
63
|
+
|
|
64
|
+
it("does not convert prefix-numeric strings", () => {
|
|
65
|
+
expect(_toNum("1234abc")).toEqual("1234abc");
|
|
66
|
+
expect(_toNum("1234.56abc")).toEqual("1234.56abc");
|
|
67
|
+
});
|
|
68
|
+
|
|
69
|
+
it("does not convert non-numeric strings", () => {
|
|
70
|
+
expect(_toNum("abcdef")).toEqual("abcdef");
|
|
71
|
+
});
|
|
72
|
+
it("does not convert bools", () => {
|
|
73
|
+
expect(_toNum(false)).toEqual(false);
|
|
74
|
+
expect(_toNum(true)).toEqual(true);
|
|
75
|
+
});
|
|
76
|
+
});
|
|
@@ -0,0 +1,72 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @internal
|
|
3
|
+
*
|
|
4
|
+
* Used for awsQueryCompatibility trait.
|
|
5
|
+
*/
|
|
6
|
+
export const _toStr = (val: unknown): string | undefined => {
|
|
7
|
+
if (val == null) {
|
|
8
|
+
return val as undefined;
|
|
9
|
+
}
|
|
10
|
+
if (typeof val === "number" || typeof val === "bigint") {
|
|
11
|
+
const warning = new Error(`Received number ${val} where a string was expected.`);
|
|
12
|
+
warning.name = "Warning";
|
|
13
|
+
console.warn(warning);
|
|
14
|
+
return String(val);
|
|
15
|
+
}
|
|
16
|
+
if (typeof val === "boolean") {
|
|
17
|
+
const warning = new Error(`Received boolean ${val} where a string was expected.`);
|
|
18
|
+
warning.name = "Warning";
|
|
19
|
+
console.warn(warning);
|
|
20
|
+
return String(val);
|
|
21
|
+
}
|
|
22
|
+
return val as string;
|
|
23
|
+
};
|
|
24
|
+
|
|
25
|
+
/**
|
|
26
|
+
* @internal
|
|
27
|
+
*
|
|
28
|
+
* Used for awsQueryCompatibility trait.
|
|
29
|
+
*/
|
|
30
|
+
export const _toBool = (val: unknown): boolean | undefined => {
|
|
31
|
+
if (val == null) {
|
|
32
|
+
return val as undefined;
|
|
33
|
+
}
|
|
34
|
+
if (typeof val === "number") {
|
|
35
|
+
// transmit to service to be rejected.
|
|
36
|
+
}
|
|
37
|
+
if (typeof val === "string") {
|
|
38
|
+
const lowercase = val.toLowerCase();
|
|
39
|
+
if (val !== "" && lowercase !== "false" && lowercase !== "true") {
|
|
40
|
+
const warning = new Error(`Received string "${val}" where a boolean was expected.`);
|
|
41
|
+
warning.name = "Warning";
|
|
42
|
+
console.warn(warning);
|
|
43
|
+
}
|
|
44
|
+
return val !== "" && lowercase !== "false";
|
|
45
|
+
}
|
|
46
|
+
return val as boolean;
|
|
47
|
+
};
|
|
48
|
+
|
|
49
|
+
/**
|
|
50
|
+
* @internal
|
|
51
|
+
*
|
|
52
|
+
* Used for awsQueryCompatibility trait.
|
|
53
|
+
*/
|
|
54
|
+
export const _toNum = (val: unknown): number | undefined => {
|
|
55
|
+
if (val == null) {
|
|
56
|
+
return val as undefined;
|
|
57
|
+
}
|
|
58
|
+
if (typeof val === "boolean") {
|
|
59
|
+
// transmit to service to be rejected.
|
|
60
|
+
}
|
|
61
|
+
if (typeof val === "string") {
|
|
62
|
+
const num = Number(val);
|
|
63
|
+
if (num.toString() !== val) {
|
|
64
|
+
const warning = new Error(`Received string "${val}" where a number was expected.`);
|
|
65
|
+
warning.name = "Warning";
|
|
66
|
+
console.warn(warning);
|
|
67
|
+
return val as unknown as undefined;
|
|
68
|
+
}
|
|
69
|
+
return num;
|
|
70
|
+
}
|
|
71
|
+
return val as number;
|
|
72
|
+
};
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
import { awsExpectUnion } from "./awsExpectUnion";
|
|
2
|
+
|
|
3
|
+
describe(awsExpectUnion.name, () => {
|
|
4
|
+
it("ignores the __type field", () => {
|
|
5
|
+
expect(
|
|
6
|
+
awsExpectUnion({
|
|
7
|
+
K: "V",
|
|
8
|
+
__type: "X",
|
|
9
|
+
})
|
|
10
|
+
).toEqual({
|
|
11
|
+
K: "V",
|
|
12
|
+
});
|
|
13
|
+
});
|
|
14
|
+
|
|
15
|
+
it("throws when there are extra keys or no keys", () => {
|
|
16
|
+
expect(() =>
|
|
17
|
+
awsExpectUnion({
|
|
18
|
+
__type: "X",
|
|
19
|
+
})
|
|
20
|
+
).toThrowError();
|
|
21
|
+
|
|
22
|
+
expect(() =>
|
|
23
|
+
awsExpectUnion({
|
|
24
|
+
K: "V",
|
|
25
|
+
I: "S",
|
|
26
|
+
__type: "X",
|
|
27
|
+
})
|
|
28
|
+
).toThrowError();
|
|
29
|
+
});
|
|
30
|
+
});
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import { expectUnion } from "@smithy/smithy-client";
|
|
2
|
+
|
|
3
|
+
/**
|
|
4
|
+
* @internal
|
|
5
|
+
*
|
|
6
|
+
* Forwards to Smithy's expectUnion function, but also ignores
|
|
7
|
+
* the `__type` field if it is present.
|
|
8
|
+
*/
|
|
9
|
+
export const awsExpectUnion = (value: unknown): Record<string, any> | undefined => {
|
|
10
|
+
if (value == null) {
|
|
11
|
+
return undefined;
|
|
12
|
+
}
|
|
13
|
+
if (typeof value === "object" && "__type" in value) {
|
|
14
|
+
delete value.__type;
|
|
15
|
+
}
|
|
16
|
+
return expectUnion(value);
|
|
17
|
+
};
|