@cdklabs/cdk-ecs-codedeploy 0.0.438 → 0.0.440
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 +3 -3
- 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-patterns/application-load-balanced-codedeployed-fargate-service.js +1 -1
- package/node_modules/@aws-sdk/client-codedeploy/dist-cjs/endpoint/bdd.js +49 -0
- package/node_modules/@aws-sdk/client-codedeploy/dist-cjs/endpoint/endpointResolver.js +2 -2
- package/node_modules/@aws-sdk/client-codedeploy/dist-es/endpoint/bdd.js +46 -0
- package/node_modules/@aws-sdk/client-codedeploy/dist-es/endpoint/endpointResolver.js +3 -3
- package/node_modules/@aws-sdk/client-codedeploy/dist-es/waiters/waitForDeploymentSuccessful.js +1 -1
- package/node_modules/@aws-sdk/client-codedeploy/dist-types/CodeDeploy.d.ts +1 -1
- package/node_modules/@aws-sdk/client-codedeploy/dist-types/endpoint/bdd.d.ts +2 -0
- package/node_modules/@aws-sdk/client-codedeploy/dist-types/ts3.4/CodeDeploy.d.ts +1 -1
- package/node_modules/@aws-sdk/client-codedeploy/dist-types/ts3.4/endpoint/bdd.d.ts +2 -0
- package/node_modules/@aws-sdk/client-codedeploy/dist-types/ts3.4/waiters/waitForDeploymentSuccessful.d.ts +9 -3
- package/node_modules/@aws-sdk/client-codedeploy/dist-types/waiters/waitForDeploymentSuccessful.d.ts +4 -3
- package/node_modules/@aws-sdk/client-codedeploy/package.json +19 -19
- package/node_modules/@aws-sdk/core/dist-cjs/index.js +35 -17
- package/node_modules/@aws-sdk/core/dist-cjs/submodules/client/index.js +18 -6
- package/node_modules/@aws-sdk/core/dist-cjs/submodules/protocols/index.js +18 -11
- package/node_modules/@aws-sdk/core/dist-es/submodules/client/emitWarningIfUnsupportedVersion.js +15 -6
- package/node_modules/@aws-sdk/core/dist-es/submodules/client/setFeature.js +2 -0
- package/node_modules/@aws-sdk/core/dist-es/submodules/protocols/json/JsonShapeDeserializer.js +6 -4
- package/node_modules/@aws-sdk/core/dist-es/submodules/protocols/json/JsonShapeSerializer.js +6 -3
- package/node_modules/@aws-sdk/core/dist-es/submodules/protocols/json/experimental/SinglePassJsonShapeSerializer.js +2 -1
- package/node_modules/@aws-sdk/core/dist-es/submodules/protocols/query/QueryShapeSerializer.js +2 -1
- package/node_modules/@aws-sdk/core/dist-es/submodules/protocols/xml/AwsRestXmlProtocol.js +0 -1
- package/node_modules/@aws-sdk/core/dist-es/submodules/protocols/xml/XmlShapeSerializer.js +4 -2
- package/node_modules/@aws-sdk/core/dist-types/submodules/client/emitWarningIfUnsupportedVersion.d.ts +1 -2
- package/node_modules/@aws-sdk/core/dist-types/submodules/client/setFeature.d.ts +1 -1
- package/node_modules/@aws-sdk/core/package.json +7 -5
- package/node_modules/@aws-sdk/credential-provider-env/package.json +2 -2
- package/node_modules/@aws-sdk/credential-provider-http/package.json +5 -5
- package/node_modules/@aws-sdk/credential-provider-ini/package.json +9 -9
- package/node_modules/@aws-sdk/credential-provider-login/package.json +3 -3
- package/node_modules/@aws-sdk/credential-provider-node/package.json +7 -7
- package/node_modules/@aws-sdk/credential-provider-process/package.json +2 -2
- package/node_modules/@aws-sdk/credential-provider-sso/package.json +4 -4
- package/node_modules/@aws-sdk/credential-provider-web-identity/package.json +3 -3
- package/node_modules/@aws-sdk/middleware-sdk-s3/LICENSE +201 -0
- package/node_modules/@aws-sdk/middleware-sdk-s3/README.md +4 -0
- package/node_modules/@aws-sdk/middleware-sdk-s3/dist-cjs/index.js +581 -0
- package/node_modules/@aws-sdk/middleware-sdk-s3/dist-cjs/toStream.browser.js +11 -0
- package/node_modules/@aws-sdk/middleware-sdk-s3/dist-cjs/toStream.js +7 -0
- package/node_modules/@aws-sdk/middleware-sdk-s3/dist-es/bucket-endpoint-middleware.js +36 -0
- package/node_modules/@aws-sdk/middleware-sdk-s3/dist-es/check-content-length-header.js +32 -0
- package/node_modules/@aws-sdk/middleware-sdk-s3/dist-es/index.js +9 -0
- package/node_modules/@aws-sdk/middleware-sdk-s3/dist-es/protocol/S3RestXmlProtocol.js +25 -0
- package/node_modules/@aws-sdk/middleware-sdk-s3/dist-es/region-redirect-endpoint-middleware.js +41 -0
- package/node_modules/@aws-sdk/middleware-sdk-s3/dist-es/region-redirect-middleware.js +42 -0
- package/node_modules/@aws-sdk/middleware-sdk-s3/dist-es/s3-expires-middleware.js +33 -0
- package/node_modules/@aws-sdk/middleware-sdk-s3/dist-es/s3-express/classes/S3ExpressIdentityCache.js +39 -0
- package/node_modules/@aws-sdk/middleware-sdk-s3/dist-es/s3-express/classes/S3ExpressIdentityCacheEntry.js +14 -0
- package/node_modules/@aws-sdk/middleware-sdk-s3/dist-es/s3-express/classes/S3ExpressIdentityProviderImpl.js +49 -0
- package/node_modules/@aws-sdk/middleware-sdk-s3/dist-es/s3-express/classes/SignatureV4S3Express.js +41 -0
- package/node_modules/@aws-sdk/middleware-sdk-s3/dist-es/s3-express/constants.js +13 -0
- package/node_modules/@aws-sdk/middleware-sdk-s3/dist-es/s3-express/functions/s3ExpressHttpSigningMiddleware.js +38 -0
- package/node_modules/@aws-sdk/middleware-sdk-s3/dist-es/s3-express/functions/s3ExpressMiddleware.js +41 -0
- package/node_modules/@aws-sdk/middleware-sdk-s3/dist-es/s3-express/functions/signS3Express.js +7 -0
- package/node_modules/@aws-sdk/middleware-sdk-s3/dist-es/s3-express/index.js +7 -0
- package/node_modules/@aws-sdk/middleware-sdk-s3/dist-es/s3-express/interfaces/S3ExpressIdentity.js +1 -0
- package/node_modules/@aws-sdk/middleware-sdk-s3/dist-es/s3-express/interfaces/S3ExpressIdentityProvider.js +1 -0
- package/node_modules/@aws-sdk/middleware-sdk-s3/dist-es/s3Configuration.js +17 -0
- package/node_modules/@aws-sdk/middleware-sdk-s3/dist-es/throw-200-exceptions.js +51 -0
- package/node_modules/@aws-sdk/middleware-sdk-s3/dist-es/toStream.browser.js +8 -0
- package/node_modules/@aws-sdk/middleware-sdk-s3/dist-es/toStream.js +4 -0
- package/node_modules/@aws-sdk/middleware-sdk-s3/dist-es/validate-bucket-name.js +25 -0
- package/node_modules/@aws-sdk/middleware-sdk-s3/dist-types/bucket-endpoint-middleware.d.ts +13 -0
- package/node_modules/@aws-sdk/middleware-sdk-s3/dist-types/check-content-length-header.d.ts +16 -0
- package/node_modules/@aws-sdk/middleware-sdk-s3/dist-types/index.d.ts +9 -0
- package/node_modules/@aws-sdk/middleware-sdk-s3/dist-types/protocol/S3RestXmlProtocol.d.ts +20 -0
- package/node_modules/@aws-sdk/middleware-sdk-s3/dist-types/region-redirect-endpoint-middleware.d.ts +10 -0
- package/node_modules/@aws-sdk/middleware-sdk-s3/dist-types/region-redirect-middleware.d.ts +20 -0
- package/node_modules/@aws-sdk/middleware-sdk-s3/dist-types/s3-expires-middleware.d.ts +26 -0
- package/node_modules/@aws-sdk/middleware-sdk-s3/dist-types/s3-express/classes/S3ExpressIdentityCache.d.ts +16 -0
- package/node_modules/@aws-sdk/middleware-sdk-s3/dist-types/s3-express/classes/S3ExpressIdentityCacheEntry.d.ts +16 -0
- package/node_modules/@aws-sdk/middleware-sdk-s3/dist-types/s3-express/classes/S3ExpressIdentityProviderImpl.d.ts +32 -0
- package/node_modules/@aws-sdk/middleware-sdk-s3/dist-types/s3-express/classes/SignatureV4S3Express.d.ts +17 -0
- package/node_modules/@aws-sdk/middleware-sdk-s3/dist-types/s3-express/constants.d.ts +37 -0
- package/node_modules/@aws-sdk/middleware-sdk-s3/dist-types/s3-express/functions/s3ExpressHttpSigningMiddleware.d.ts +27 -0
- package/node_modules/@aws-sdk/middleware-sdk-s3/dist-types/s3-express/functions/s3ExpressMiddleware.d.ts +32 -0
- package/node_modules/@aws-sdk/middleware-sdk-s3/dist-types/s3-express/functions/signS3Express.d.ts +9 -0
- package/node_modules/@aws-sdk/middleware-sdk-s3/dist-types/s3-express/index.d.ts +9 -0
- package/node_modules/@aws-sdk/middleware-sdk-s3/dist-types/s3-express/interfaces/S3ExpressIdentity.d.ts +6 -0
- package/node_modules/@aws-sdk/middleware-sdk-s3/dist-types/s3-express/interfaces/S3ExpressIdentityProvider.d.ts +12 -0
- package/node_modules/@aws-sdk/middleware-sdk-s3/dist-types/s3Configuration.d.ts +79 -0
- package/node_modules/@aws-sdk/middleware-sdk-s3/dist-types/throw-200-exceptions.d.ts +21 -0
- package/node_modules/@aws-sdk/middleware-sdk-s3/dist-types/toStream.browser.d.ts +4 -0
- package/node_modules/@aws-sdk/middleware-sdk-s3/dist-types/toStream.d.ts +5 -0
- package/node_modules/@aws-sdk/middleware-sdk-s3/dist-types/ts3.4/bucket-endpoint-middleware.d.ts +9 -0
- package/node_modules/@aws-sdk/middleware-sdk-s3/dist-types/ts3.4/check-content-length-header.d.ts +13 -0
- package/node_modules/@aws-sdk/middleware-sdk-s3/dist-types/ts3.4/index.d.ts +9 -0
- package/node_modules/@aws-sdk/middleware-sdk-s3/dist-types/ts3.4/protocol/S3RestXmlProtocol.d.ts +15 -0
- package/node_modules/@aws-sdk/middleware-sdk-s3/dist-types/ts3.4/region-redirect-endpoint-middleware.d.ts +6 -0
- package/node_modules/@aws-sdk/middleware-sdk-s3/dist-types/ts3.4/region-redirect-middleware.d.ts +17 -0
- package/node_modules/@aws-sdk/middleware-sdk-s3/dist-types/ts3.4/s3-expires-middleware.d.ts +14 -0
- package/node_modules/@aws-sdk/middleware-sdk-s3/dist-types/ts3.4/s3-express/classes/S3ExpressIdentityCache.d.ts +14 -0
- package/node_modules/@aws-sdk/middleware-sdk-s3/dist-types/ts3.4/s3-express/classes/S3ExpressIdentityCacheEntry.d.ts +12 -0
- package/node_modules/@aws-sdk/middleware-sdk-s3/dist-types/ts3.4/s3-express/classes/S3ExpressIdentityProviderImpl.d.ts +31 -0
- package/node_modules/@aws-sdk/middleware-sdk-s3/dist-types/ts3.4/s3-express/classes/SignatureV4S3Express.d.ts +19 -0
- package/node_modules/@aws-sdk/middleware-sdk-s3/dist-types/ts3.4/s3-express/constants.d.ts +11 -0
- package/node_modules/@aws-sdk/middleware-sdk-s3/dist-types/ts3.4/s3-express/functions/s3ExpressHttpSigningMiddleware.d.ts +40 -0
- package/node_modules/@aws-sdk/middleware-sdk-s3/dist-types/ts3.4/s3-express/functions/s3ExpressMiddleware.d.ts +27 -0
- package/node_modules/@aws-sdk/middleware-sdk-s3/dist-types/ts3.4/s3-express/functions/signS3Express.d.ts +21 -0
- package/node_modules/@aws-sdk/middleware-sdk-s3/dist-types/ts3.4/s3-express/index.d.ts +17 -0
- package/node_modules/@aws-sdk/middleware-sdk-s3/dist-types/ts3.4/s3-express/interfaces/S3ExpressIdentity.d.ts +2 -0
- package/node_modules/@aws-sdk/middleware-sdk-s3/dist-types/ts3.4/s3-express/interfaces/S3ExpressIdentityProvider.d.ts +8 -0
- package/node_modules/@aws-sdk/middleware-sdk-s3/dist-types/ts3.4/s3Configuration.d.ts +33 -0
- package/node_modules/@aws-sdk/middleware-sdk-s3/dist-types/ts3.4/throw-200-exceptions.d.ts +19 -0
- package/node_modules/@aws-sdk/middleware-sdk-s3/dist-types/ts3.4/toStream.browser.d.ts +1 -0
- package/node_modules/@aws-sdk/middleware-sdk-s3/dist-types/ts3.4/toStream.d.ts +2 -0
- package/node_modules/@aws-sdk/middleware-sdk-s3/dist-types/ts3.4/validate-bucket-name.d.ts +13 -0
- package/node_modules/@aws-sdk/middleware-sdk-s3/dist-types/validate-bucket-name.d.ts +14 -0
- package/node_modules/@aws-sdk/middleware-sdk-s3/package.json +79 -0
- package/node_modules/@aws-sdk/middleware-user-agent/package.json +5 -5
- package/node_modules/@aws-sdk/nested-clients/dist-cjs/submodules/cognito-identity/endpoint/bdd.js +100 -0
- package/node_modules/@aws-sdk/nested-clients/dist-cjs/submodules/cognito-identity/endpoint/endpointResolver.js +2 -2
- package/node_modules/@aws-sdk/nested-clients/dist-cjs/submodules/signin/endpoint/bdd.js +90 -0
- package/node_modules/@aws-sdk/nested-clients/dist-cjs/submodules/signin/endpoint/endpointResolver.js +2 -2
- package/node_modules/@aws-sdk/nested-clients/dist-cjs/submodules/sso/endpoint/bdd.js +80 -0
- package/node_modules/@aws-sdk/nested-clients/dist-cjs/submodules/sso/endpoint/endpointResolver.js +2 -2
- package/node_modules/@aws-sdk/nested-clients/dist-cjs/submodules/sso-oidc/endpoint/bdd.js +80 -0
- package/node_modules/@aws-sdk/nested-clients/dist-cjs/submodules/sso-oidc/endpoint/endpointResolver.js +2 -2
- package/node_modules/@aws-sdk/nested-clients/dist-cjs/submodules/sts/STSClient.js +1 -0
- package/node_modules/@aws-sdk/nested-clients/dist-cjs/submodules/sts/auth/httpAuthSchemeProvider.js +87 -5
- package/node_modules/@aws-sdk/nested-clients/dist-cjs/submodules/sts/endpoint/bdd.js +150 -0
- package/node_modules/@aws-sdk/nested-clients/dist-cjs/submodules/sts/endpoint/endpointResolver.js +2 -2
- package/node_modules/@aws-sdk/nested-clients/dist-cjs/submodules/sts/models/errors.js +1 -0
- package/node_modules/@aws-sdk/nested-clients/dist-cjs/submodules/sts/runtimeConfig.js +6 -0
- package/node_modules/@aws-sdk/nested-clients/dist-cjs/submodules/sts/runtimeConfig.shared.js +7 -0
- package/node_modules/@aws-sdk/nested-clients/dist-es/submodules/cognito-identity/endpoint/bdd.js +97 -0
- package/node_modules/@aws-sdk/nested-clients/dist-es/submodules/cognito-identity/endpoint/endpointResolver.js +3 -3
- package/node_modules/@aws-sdk/nested-clients/dist-es/submodules/signin/endpoint/bdd.js +87 -0
- package/node_modules/@aws-sdk/nested-clients/dist-es/submodules/signin/endpoint/endpointResolver.js +3 -3
- package/node_modules/@aws-sdk/nested-clients/dist-es/submodules/sso/endpoint/bdd.js +77 -0
- package/node_modules/@aws-sdk/nested-clients/dist-es/submodules/sso/endpoint/endpointResolver.js +3 -3
- package/node_modules/@aws-sdk/nested-clients/dist-es/submodules/sso-oidc/endpoint/bdd.js +77 -0
- package/node_modules/@aws-sdk/nested-clients/dist-es/submodules/sso-oidc/endpoint/endpointResolver.js +3 -3
- package/node_modules/@aws-sdk/nested-clients/dist-es/submodules/sts/STSClient.js +1 -0
- package/node_modules/@aws-sdk/nested-clients/dist-es/submodules/sts/auth/httpAuthSchemeProvider.js +88 -4
- package/node_modules/@aws-sdk/nested-clients/dist-es/submodules/sts/endpoint/bdd.js +147 -0
- package/node_modules/@aws-sdk/nested-clients/dist-es/submodules/sts/endpoint/endpointResolver.js +3 -3
- package/node_modules/@aws-sdk/nested-clients/dist-es/submodules/sts/models/errors.js +1 -0
- package/node_modules/@aws-sdk/nested-clients/dist-es/submodules/sts/runtimeConfig.js +7 -1
- package/node_modules/@aws-sdk/nested-clients/dist-es/submodules/sts/runtimeConfig.shared.js +8 -1
- package/node_modules/@aws-sdk/nested-clients/dist-types/submodules/cognito-identity/endpoint/bdd.d.ts +2 -0
- package/node_modules/@aws-sdk/nested-clients/dist-types/submodules/signin/endpoint/bdd.d.ts +2 -0
- package/node_modules/@aws-sdk/nested-clients/dist-types/submodules/sso/endpoint/bdd.d.ts +2 -0
- package/node_modules/@aws-sdk/nested-clients/dist-types/submodules/sso-oidc/endpoint/bdd.d.ts +2 -0
- package/node_modules/@aws-sdk/nested-clients/dist-types/submodules/sts/auth/httpAuthSchemeProvider.d.ts +15 -7
- package/node_modules/@aws-sdk/nested-clients/dist-types/submodules/sts/endpoint/bdd.d.ts +2 -0
- package/node_modules/@aws-sdk/nested-clients/dist-types/submodules/sts/models/errors.d.ts +1 -0
- package/node_modules/@aws-sdk/nested-clients/dist-types/submodules/sts/runtimeConfig.browser.d.ts +3 -2
- package/node_modules/@aws-sdk/nested-clients/dist-types/submodules/sts/runtimeConfig.d.ts +10 -4
- package/node_modules/@aws-sdk/nested-clients/dist-types/submodules/sts/runtimeConfig.native.d.ts +3 -2
- package/node_modules/@aws-sdk/nested-clients/dist-types/submodules/sts/runtimeConfig.shared.d.ts +3 -1
- package/node_modules/@aws-sdk/nested-clients/dist-types/ts3.4/submodules/cognito-identity/endpoint/bdd.d.ts +2 -0
- package/node_modules/@aws-sdk/nested-clients/dist-types/ts3.4/submodules/signin/endpoint/bdd.d.ts +2 -0
- package/node_modules/@aws-sdk/nested-clients/dist-types/ts3.4/submodules/sso/endpoint/bdd.d.ts +2 -0
- package/node_modules/@aws-sdk/nested-clients/dist-types/ts3.4/submodules/sso-oidc/endpoint/bdd.d.ts +2 -0
- package/node_modules/@aws-sdk/nested-clients/dist-types/ts3.4/submodules/sts/auth/httpAuthSchemeProvider.d.ts +20 -9
- package/node_modules/@aws-sdk/nested-clients/dist-types/ts3.4/submodules/sts/endpoint/bdd.d.ts +2 -0
- package/node_modules/@aws-sdk/nested-clients/dist-types/ts3.4/submodules/sts/models/errors.d.ts +1 -0
- package/node_modules/@aws-sdk/nested-clients/dist-types/ts3.4/submodules/sts/runtimeConfig.browser.d.ts +11 -5
- package/node_modules/@aws-sdk/nested-clients/dist-types/ts3.4/submodules/sts/runtimeConfig.d.ts +35 -16
- package/node_modules/@aws-sdk/nested-clients/dist-types/ts3.4/submodules/sts/runtimeConfig.native.d.ts +11 -5
- package/node_modules/@aws-sdk/nested-clients/dist-types/ts3.4/submodules/sts/runtimeConfig.shared.d.ts +8 -1
- package/node_modules/@aws-sdk/nested-clients/package.json +18 -17
- package/node_modules/@aws-sdk/region-config-resolver/package.json +2 -2
- package/node_modules/@aws-sdk/signature-v4-multi-region/LICENSE +201 -0
- package/node_modules/@aws-sdk/signature-v4-multi-region/README.md +32 -0
- package/node_modules/@aws-sdk/signature-v4-multi-region/dist-cjs/index.js +121 -0
- package/node_modules/@aws-sdk/signature-v4-multi-region/dist-es/SignatureV4MultiRegion.js +112 -0
- package/node_modules/@aws-sdk/signature-v4-multi-region/dist-es/index.js +2 -0
- package/node_modules/@aws-sdk/signature-v4-multi-region/dist-es/signature-v4-crt-container.js +3 -0
- package/node_modules/@aws-sdk/signature-v4-multi-region/dist-types/SignatureV4MultiRegion.d.ts +35 -0
- package/node_modules/@aws-sdk/signature-v4-multi-region/dist-types/index.d.ts +5 -0
- package/node_modules/@aws-sdk/signature-v4-multi-region/dist-types/signature-v4-crt-container.d.ts +28 -0
- package/node_modules/@aws-sdk/signature-v4-multi-region/dist-types/ts3.4/SignatureV4MultiRegion.d.ts +41 -0
- package/node_modules/@aws-sdk/signature-v4-multi-region/dist-types/ts3.4/index.d.ts +2 -0
- package/node_modules/@aws-sdk/signature-v4-multi-region/dist-types/ts3.4/signature-v4-crt-container.d.ts +20 -0
- package/node_modules/@aws-sdk/signature-v4-multi-region/package.json +61 -0
- package/node_modules/@aws-sdk/token-providers/package.json +3 -3
- package/node_modules/@aws-sdk/util-arn-parser/LICENSE +201 -0
- package/node_modules/@aws-sdk/util-arn-parser/README.md +4 -0
- package/node_modules/@aws-sdk/util-arn-parser/dist-cjs/index.js +27 -0
- package/node_modules/@aws-sdk/util-arn-parser/dist-es/index.js +21 -0
- package/node_modules/@aws-sdk/util-arn-parser/dist-types/index.d.ts +32 -0
- package/node_modules/@aws-sdk/util-arn-parser/dist-types/ts3.4/index.d.ts +14 -0
- package/node_modules/@aws-sdk/util-arn-parser/package.json +55 -0
- package/node_modules/@aws-sdk/util-endpoints/package.json +2 -2
- package/node_modules/@aws-sdk/util-user-agent-node/package.json +2 -2
- package/node_modules/@aws-sdk/xml-builder/dist-cjs/xml-external/nodable_entities.js +336 -0
- package/node_modules/@aws-sdk/xml-builder/dist-cjs/xml-parser.js +26 -2
- package/node_modules/@aws-sdk/xml-builder/dist-es/xml-external/nodable_entities.js +332 -0
- package/node_modules/@aws-sdk/xml-builder/dist-es/xml-parser.js +26 -2
- package/node_modules/@aws-sdk/xml-builder/dist-types/ts3.4/xml-external/nodable_entities.d.ts +66 -0
- package/node_modules/@aws-sdk/xml-builder/dist-types/xml-external/nodable_entities.d.ts +65 -0
- package/node_modules/@aws-sdk/xml-builder/node_modules/fast-xml-parser/CHANGELOG.md +61 -0
- package/node_modules/@aws-sdk/xml-builder/node_modules/fast-xml-parser/README.md +8 -28
- package/node_modules/@aws-sdk/xml-builder/node_modules/fast-xml-parser/lib/fxbuilder.min.js +1 -1
- package/node_modules/@aws-sdk/xml-builder/node_modules/fast-xml-parser/lib/fxbuilder.min.js.map +1 -1
- package/node_modules/@aws-sdk/xml-builder/node_modules/fast-xml-parser/lib/fxp.cjs +1 -1
- package/node_modules/@aws-sdk/xml-builder/node_modules/fast-xml-parser/lib/fxp.d.cts +172 -6
- 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 +5 -4
- package/node_modules/@aws-sdk/xml-builder/node_modules/fast-xml-parser/src/fxp.d.ts +162 -3
- package/node_modules/@aws-sdk/xml-builder/node_modules/fast-xml-parser/src/xmlparser/DocTypeReader.js +2 -5
- package/node_modules/@aws-sdk/xml-builder/node_modules/fast-xml-parser/src/xmlparser/OptionsBuilder.js +15 -11
- package/node_modules/@aws-sdk/xml-builder/node_modules/fast-xml-parser/src/xmlparser/OrderedObjParser.js +174 -245
- package/node_modules/@aws-sdk/xml-builder/node_modules/fast-xml-parser/src/xmlparser/XMLParser.js +2 -2
- package/node_modules/@aws-sdk/xml-builder/package.json +3 -2
- package/node_modules/@nodable/entities/README.md +41 -0
- package/node_modules/@nodable/entities/package.json +54 -0
- package/node_modules/@nodable/entities/src/EntityDecoder.js +543 -0
- package/node_modules/@nodable/entities/src/EntityEncoder.js +194 -0
- package/node_modules/@nodable/entities/src/entities.js +1177 -0
- package/node_modules/@nodable/entities/src/entityTries.js +49 -0
- package/node_modules/@nodable/entities/src/index.d.ts +264 -0
- package/node_modules/@nodable/entities/src/index.js +29 -0
- package/node_modules/@smithy/core/package.json +2 -2
- package/node_modules/@smithy/middleware-endpoint/package.json +3 -3
- package/node_modules/@smithy/middleware-retry/package.json +5 -5
- package/node_modules/@smithy/middleware-serde/package.json +2 -2
- package/node_modules/@smithy/node-http-handler/dist-cjs/index.js +27 -16
- package/node_modules/@smithy/node-http-handler/dist-es/http2/ClientHttp2SessionRef.js +5 -0
- package/node_modules/@smithy/node-http-handler/dist-es/node-http2-connection-manager.js +22 -16
- package/node_modules/@smithy/node-http-handler/dist-types/http2/ClientHttp2SessionRef.d.ts +4 -0
- package/node_modules/@smithy/node-http-handler/dist-types/node-http2-connection-manager.d.ts +2 -4
- package/node_modules/@smithy/node-http-handler/package.json +1 -1
- package/node_modules/@smithy/service-error-classification/dist-cjs/index.js +1 -0
- package/node_modules/@smithy/service-error-classification/dist-es/index.js +1 -0
- package/node_modules/@smithy/service-error-classification/package.json +1 -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-retry/dist-cjs/index.js +27 -13
- package/node_modules/@smithy/util-retry/dist-es/AdaptiveRetryStrategy.js +5 -2
- package/node_modules/@smithy/util-retry/dist-es/DefaultRateLimiter.js +2 -1
- package/node_modules/@smithy/util-retry/dist-es/StandardRetryStrategy.js +20 -10
- package/node_modules/@smithy/util-retry/dist-types/StandardRetryStrategy.d.ts +12 -4
- package/node_modules/@smithy/util-retry/package.json +3 -3
- package/node_modules/@smithy/util-stream/package.json +2 -2
- package/node_modules/@smithy/util-waiter/dist-cjs/index.js +59 -34
- package/node_modules/@smithy/util-waiter/dist-es/poller.js +61 -34
- package/node_modules/@smithy/util-waiter/dist-types/createWaiter.d.ts +1 -1
- package/node_modules/@smithy/util-waiter/dist-types/poller.d.ts +2 -1
- package/node_modules/@smithy/util-waiter/dist-types/waiter.d.ts +13 -13
- package/node_modules/@smithy/util-waiter/package.json +1 -1
- package/node_modules/fast-xml-builder/CHANGELOG.md +13 -0
- package/node_modules/fast-xml-builder/lib/fxb.cjs +1 -1
- package/node_modules/fast-xml-builder/lib/fxb.min.js +1 -1
- package/node_modules/fast-xml-builder/lib/fxb.min.js.map +1 -1
- package/node_modules/fast-xml-builder/package.json +1 -1
- package/node_modules/fast-xml-builder/src/fxb.js +7 -8
- package/node_modules/fast-xml-builder/src/orderedJs2Xml.js +6 -7
- package/node_modules/fast-xml-builder/src/util.js +16 -0
- package/package.json +3 -3
- package/node_modules/@aws-sdk/client-codedeploy/dist-cjs/endpoint/ruleset.js +0 -7
- package/node_modules/@aws-sdk/client-codedeploy/dist-es/endpoint/ruleset.js +0 -4
- package/node_modules/@aws-sdk/client-codedeploy/dist-types/endpoint/ruleset.d.ts +0 -2
- package/node_modules/@aws-sdk/client-codedeploy/dist-types/ts3.4/endpoint/ruleset.d.ts +0 -2
- package/node_modules/@aws-sdk/nested-clients/dist-cjs/submodules/cognito-identity/endpoint/ruleset.js +0 -146
- package/node_modules/@aws-sdk/nested-clients/dist-cjs/submodules/signin/endpoint/ruleset.js +0 -133
- package/node_modules/@aws-sdk/nested-clients/dist-cjs/submodules/sso/endpoint/ruleset.js +0 -106
- package/node_modules/@aws-sdk/nested-clients/dist-cjs/submodules/sso-oidc/endpoint/ruleset.js +0 -106
- package/node_modules/@aws-sdk/nested-clients/dist-cjs/submodules/sts/endpoint/ruleset.js +0 -145
- package/node_modules/@aws-sdk/nested-clients/dist-es/submodules/cognito-identity/endpoint/ruleset.js +0 -143
- package/node_modules/@aws-sdk/nested-clients/dist-es/submodules/signin/endpoint/ruleset.js +0 -130
- package/node_modules/@aws-sdk/nested-clients/dist-es/submodules/sso/endpoint/ruleset.js +0 -103
- package/node_modules/@aws-sdk/nested-clients/dist-es/submodules/sso-oidc/endpoint/ruleset.js +0 -103
- package/node_modules/@aws-sdk/nested-clients/dist-es/submodules/sts/endpoint/ruleset.js +0 -142
- package/node_modules/@aws-sdk/nested-clients/dist-types/submodules/cognito-identity/endpoint/ruleset.d.ts +0 -2
- package/node_modules/@aws-sdk/nested-clients/dist-types/submodules/signin/endpoint/ruleset.d.ts +0 -2
- package/node_modules/@aws-sdk/nested-clients/dist-types/submodules/sso/endpoint/ruleset.d.ts +0 -2
- package/node_modules/@aws-sdk/nested-clients/dist-types/submodules/sso-oidc/endpoint/ruleset.d.ts +0 -2
- package/node_modules/@aws-sdk/nested-clients/dist-types/submodules/sts/endpoint/ruleset.d.ts +0 -2
- package/node_modules/@aws-sdk/nested-clients/dist-types/ts3.4/submodules/cognito-identity/endpoint/ruleset.d.ts +0 -2
- package/node_modules/@aws-sdk/nested-clients/dist-types/ts3.4/submodules/signin/endpoint/ruleset.d.ts +0 -2
- package/node_modules/@aws-sdk/nested-clients/dist-types/ts3.4/submodules/sso/endpoint/ruleset.d.ts +0 -2
- package/node_modules/@aws-sdk/nested-clients/dist-types/ts3.4/submodules/sso-oidc/endpoint/ruleset.d.ts +0 -2
- package/node_modules/@aws-sdk/nested-clients/dist-types/ts3.4/submodules/sts/endpoint/ruleset.d.ts +0 -2
- package/node_modules/@aws-sdk/xml-builder/node_modules/fast-xml-parser/lib/pem.d.cts +0 -148
- package/node_modules/@aws-sdk/xml-builder/node_modules/fast-xml-parser/src/pem.d.ts +0 -135
|
@@ -0,0 +1,49 @@
|
|
|
1
|
+
// entityTries.js
|
|
2
|
+
// Builds integer-keyed tries so the decoder never allocates a string object
|
|
3
|
+
// during lookup — every key is a plain charCode number.
|
|
4
|
+
//
|
|
5
|
+
// trie1: Map<code0, entity>
|
|
6
|
+
// trie2: Map<code0, Map<code1, entity>>
|
|
7
|
+
// trie3: Map<code0, Map<code1, Map<code2, entity>>>
|
|
8
|
+
|
|
9
|
+
import { ALL_ENTITIES } from './entities.js';
|
|
10
|
+
|
|
11
|
+
// Reverse map: character sequence → "&name;"
|
|
12
|
+
const CHAR_TO_ENTITY = new Map();
|
|
13
|
+
for (const [name, chars] of Object.entries(ALL_ENTITIES)) {
|
|
14
|
+
CHAR_TO_ENTITY.set(chars, `&${name};`);
|
|
15
|
+
}
|
|
16
|
+
|
|
17
|
+
export const trie1 = new Map(); // code0 → entity string
|
|
18
|
+
export const trie2 = new Map(); // code0 → Map → entity string
|
|
19
|
+
export const trie3 = new Map(); // code0 → Map → Map → entity string
|
|
20
|
+
|
|
21
|
+
for (const [chars, entity] of CHAR_TO_ENTITY) {
|
|
22
|
+
const len = chars.length;
|
|
23
|
+
|
|
24
|
+
if (len === 1) {
|
|
25
|
+
const c0 = chars.charCodeAt(0);
|
|
26
|
+
// Keep shortest match only if no longer match already claimed this code
|
|
27
|
+
// (longer matches are inserted in the same pass so we just overwrite —
|
|
28
|
+
// trie1 is only consulted after trie2/trie3 both miss, so no conflict)
|
|
29
|
+
trie1.set(c0, entity);
|
|
30
|
+
|
|
31
|
+
} else if (len === 2) {
|
|
32
|
+
const c0 = chars.charCodeAt(0);
|
|
33
|
+
const c1 = chars.charCodeAt(1);
|
|
34
|
+
let inner = trie2.get(c0);
|
|
35
|
+
if (inner === undefined) { inner = new Map(); trie2.set(c0, inner); }
|
|
36
|
+
inner.set(c1, entity);
|
|
37
|
+
|
|
38
|
+
} else if (len === 3) {
|
|
39
|
+
const c0 = chars.charCodeAt(0);
|
|
40
|
+
const c1 = chars.charCodeAt(1);
|
|
41
|
+
const c2 = chars.charCodeAt(2);
|
|
42
|
+
let mid = trie3.get(c0);
|
|
43
|
+
if (mid === undefined) { mid = new Map(); trie3.set(c0, mid); }
|
|
44
|
+
let inner = mid.get(c1);
|
|
45
|
+
if (inner === undefined) { inner = new Map(); mid.set(c1, inner); }
|
|
46
|
+
inner.set(c2, entity);
|
|
47
|
+
}
|
|
48
|
+
// HTML5 has no named entity whose character sequence is longer than 3 chars
|
|
49
|
+
}
|
|
@@ -0,0 +1,264 @@
|
|
|
1
|
+
// ---------------------------------------------------------------------------
|
|
2
|
+
// @nodable/entities — TypeScript declarations
|
|
3
|
+
// ---------------------------------------------------------------------------
|
|
4
|
+
|
|
5
|
+
/** A function-based entity replacement value (used for numeric refs). */
|
|
6
|
+
export type EntityValFn = (match: string, captured: string, ...rest: unknown[]) => string;
|
|
7
|
+
|
|
8
|
+
// ---------------------------------------------------------------------------
|
|
9
|
+
// Encoder options
|
|
10
|
+
// ---------------------------------------------------------------------------
|
|
11
|
+
|
|
12
|
+
export interface EntityEncoderOptions {
|
|
13
|
+
/**
|
|
14
|
+
* Whether to encode XML unsafe characters: `&`, `<`, `>`, `"`, `'`.
|
|
15
|
+
* @default true
|
|
16
|
+
*/
|
|
17
|
+
encodeXmlSafe?: boolean;
|
|
18
|
+
|
|
19
|
+
/**
|
|
20
|
+
* Whether to encode non‑ASCII characters (e.g. `é` → `é`) using the
|
|
21
|
+
* built‑in named entity trie.
|
|
22
|
+
* @default true
|
|
23
|
+
*/
|
|
24
|
+
encodeAllNamed?: boolean;
|
|
25
|
+
|
|
26
|
+
/**
|
|
27
|
+
* Maximum number of replacements performed **cumulatively** across all
|
|
28
|
+
* `encode()` calls. `0` means unlimited.
|
|
29
|
+
*
|
|
30
|
+
* Use `reset()` to reset the internal counter.
|
|
31
|
+
* @default 0
|
|
32
|
+
*/
|
|
33
|
+
maxReplacements?: number;
|
|
34
|
+
}
|
|
35
|
+
|
|
36
|
+
// ---------------------------------------------------------------------------
|
|
37
|
+
// EntityEncoder class
|
|
38
|
+
// ---------------------------------------------------------------------------
|
|
39
|
+
|
|
40
|
+
/**
|
|
41
|
+
* High‑performance encoder that replaces characters with XML/HTML entities.
|
|
42
|
+
*
|
|
43
|
+
* - Escapes XML unsafe characters (`&`, `<`, `>`, `"`, `'`) when `encodeXmlSafe` is true.
|
|
44
|
+
* - Replaces non‑ASCII characters (e.g. `é`, `©`) with named entities using
|
|
45
|
+
* a compact trie‑based lookup when `encodeAllNamed` is true.
|
|
46
|
+
* - Supports a cumulative replacement limit (`maxReplacements`) that persists
|
|
47
|
+
* across multiple `encode()` calls until `reset()` is called.
|
|
48
|
+
*
|
|
49
|
+
* @example
|
|
50
|
+
* const encoder = new EntityEncoder({ encodeXmlSafe: true, encodeAllNamed: true });
|
|
51
|
+
* encoder.encode('<foo>'); // "<foo>"
|
|
52
|
+
* encoder.encode('© 2025'); // "© 2025"
|
|
53
|
+
*
|
|
54
|
+
* // With limit
|
|
55
|
+
* const limited = new EntityEncoder({ maxReplacements: 2 });
|
|
56
|
+
* limited.encode('<>&'); // "<>&" (third replacement omitted)
|
|
57
|
+
* limited.reset(); // reset counter
|
|
58
|
+
*/
|
|
59
|
+
export class EntityEncoder {
|
|
60
|
+
constructor(options?: EntityEncoderOptions);
|
|
61
|
+
|
|
62
|
+
/**
|
|
63
|
+
* Encode a string by replacing XML‑unsafe characters and (optionally)
|
|
64
|
+
* non‑ASCII characters with named entities.
|
|
65
|
+
*
|
|
66
|
+
* If `maxReplacements` is set and the cumulative limit has been reached,
|
|
67
|
+
* the input string is returned unchanged.
|
|
68
|
+
*
|
|
69
|
+
* @returns Encoded string (may be identical to input if no replacements needed
|
|
70
|
+
* or the limit has been exhausted).
|
|
71
|
+
*/
|
|
72
|
+
encode(str: string): string;
|
|
73
|
+
|
|
74
|
+
/**
|
|
75
|
+
* Reset the internal replacement counter.
|
|
76
|
+
* Does **not** change `encodeXmlSafe`, `encodeAllNamed`, or `maxReplacements`.
|
|
77
|
+
*/
|
|
78
|
+
reset(): void;
|
|
79
|
+
}
|
|
80
|
+
|
|
81
|
+
// ---------------------------------------------------------------------------
|
|
82
|
+
// Constructor options for EntityDecoder (existing)
|
|
83
|
+
// ---------------------------------------------------------------------------
|
|
84
|
+
|
|
85
|
+
/**
|
|
86
|
+
* Controls which entity categories count toward the expansion limits.
|
|
87
|
+
*
|
|
88
|
+
* - `'external'` — only untrusted / injected entities (default)
|
|
89
|
+
* - `'base'` — only built‑in XML entities + user‑supplied `namedEntities`
|
|
90
|
+
* - `'all'` — all entities regardless of tier
|
|
91
|
+
* - `string[]` — explicit combination, e.g. `['external', 'base']`
|
|
92
|
+
*/
|
|
93
|
+
export type ApplyLimitsTo = 'external' | 'base' | 'all' | Array<'external' | 'base'>;
|
|
94
|
+
|
|
95
|
+
export interface EntityDecoderLimitOptions {
|
|
96
|
+
/**
|
|
97
|
+
* Maximum number of entity references expanded **per document**.
|
|
98
|
+
* `0` means unlimited.
|
|
99
|
+
* @default 0
|
|
100
|
+
*/
|
|
101
|
+
maxTotalExpansions?: number;
|
|
102
|
+
|
|
103
|
+
/**
|
|
104
|
+
* Maximum number of characters **added** by entity expansion per document.
|
|
105
|
+
* `0` means unlimited.
|
|
106
|
+
* @default 0
|
|
107
|
+
*/
|
|
108
|
+
maxExpandedLength?: number;
|
|
109
|
+
|
|
110
|
+
/**
|
|
111
|
+
* Which entity tiers count toward the expansion limits.
|
|
112
|
+
*
|
|
113
|
+
* - `'external'` (default) – only input/runtime + persistent external entities
|
|
114
|
+
* - `'base'` – only built‑in XML + `namedEntities`
|
|
115
|
+
* - `'all'` – every entity regardless of tier
|
|
116
|
+
* - `string[]` – explicit combination, e.g. `['external', 'base']`
|
|
117
|
+
*
|
|
118
|
+
* @default 'external'
|
|
119
|
+
*/
|
|
120
|
+
applyLimitsTo?: ApplyLimitsTo;
|
|
121
|
+
}
|
|
122
|
+
|
|
123
|
+
export interface EntityDecoderNCROptions {
|
|
124
|
+
/**
|
|
125
|
+
* XML version used for NCR classification.
|
|
126
|
+
* @default 1.0
|
|
127
|
+
*/
|
|
128
|
+
xmlVersion?: 1.0 | 1.1;
|
|
129
|
+
|
|
130
|
+
/**
|
|
131
|
+
* Base action for all numeric references.
|
|
132
|
+
* @default 'allow'
|
|
133
|
+
*/
|
|
134
|
+
onNCR?: 'allow' | 'leave' | 'remove' | 'throw';
|
|
135
|
+
|
|
136
|
+
/**
|
|
137
|
+
* Action for null NCR (U+0000).
|
|
138
|
+
* @default 'remove'
|
|
139
|
+
*/
|
|
140
|
+
nullNCR?: 'remove' | 'throw';
|
|
141
|
+
}
|
|
142
|
+
|
|
143
|
+
export interface EntityDecoderOptions {
|
|
144
|
+
/**
|
|
145
|
+
* Extra named entities merged into the **base map** (trusted, counts as `'base'` tier).
|
|
146
|
+
* These are combined with the built‑in XML entities (`lt`, `gt`, `quot`, `apos`).
|
|
147
|
+
* Values containing `&` are silently skipped to prevent recursive expansion.
|
|
148
|
+
*
|
|
149
|
+
* @default null
|
|
150
|
+
*/
|
|
151
|
+
namedEntities?: Record<string, string | { regex: RegExp; val: string | EntityValFn }> | null;
|
|
152
|
+
|
|
153
|
+
|
|
154
|
+
/**
|
|
155
|
+
* Hook called once on the fully decoded string (after all replacements).
|
|
156
|
+
*
|
|
157
|
+
* - Receives `(resolved, original)` and **must return a string**.
|
|
158
|
+
* - To reject expansion, return `original`.
|
|
159
|
+
* - To sanitize, return a cleaned version of `resolved`.
|
|
160
|
+
*
|
|
161
|
+
* @example
|
|
162
|
+
* postCheck: (resolved, original) =>
|
|
163
|
+
* /<[a-z]/i.test(resolved) ? original : resolved
|
|
164
|
+
*/
|
|
165
|
+
postCheck?: ((resolved: string, original: string) => string) | null;
|
|
166
|
+
|
|
167
|
+
/**
|
|
168
|
+
* Whether numeric character references (`&#NNN;`, `&#xHH;`) are allowed.
|
|
169
|
+
* @default true
|
|
170
|
+
*/
|
|
171
|
+
numericAllowed?: boolean;
|
|
172
|
+
|
|
173
|
+
/**
|
|
174
|
+
* Array of entity names or numeric references to leave unexpanded.
|
|
175
|
+
* @default []
|
|
176
|
+
*/
|
|
177
|
+
leave?: string[];
|
|
178
|
+
|
|
179
|
+
/**
|
|
180
|
+
* Array of entity names or numeric references to remove.
|
|
181
|
+
* @default []
|
|
182
|
+
*/
|
|
183
|
+
remove?: string[];
|
|
184
|
+
|
|
185
|
+
/**
|
|
186
|
+
* Security limits for entity expansion.
|
|
187
|
+
*/
|
|
188
|
+
limit?: EntityDecoderLimitOptions;
|
|
189
|
+
|
|
190
|
+
/**
|
|
191
|
+
* Numeric Character Reference (NCR) policy.
|
|
192
|
+
*/
|
|
193
|
+
ncr?: EntityDecoderNCROptions;
|
|
194
|
+
}
|
|
195
|
+
|
|
196
|
+
// ---------------------------------------------------------------------------
|
|
197
|
+
// EntityDecoder class (default export)
|
|
198
|
+
// ---------------------------------------------------------------------------
|
|
199
|
+
|
|
200
|
+
/**
|
|
201
|
+
* Single‑pass, zero‑regex entity decoder for XML/HTML content.
|
|
202
|
+
*
|
|
203
|
+
* ## Entity lookup priority (highest → lowest)
|
|
204
|
+
* 1. **input / runtime** – injected via `addInputEntities()` (DOCTYPE per document)
|
|
205
|
+
* 2. **persistent external** – set via `setExternalEntities()` / `addExternalEntity()`
|
|
206
|
+
* 3. **base map** – built‑in XML entities + user‑supplied `namedEntities`
|
|
207
|
+
*
|
|
208
|
+
* Numeric references (`&#NNN;`, `&#xHH;`) are resolved directly and count as the `'base'` tier.
|
|
209
|
+
*
|
|
210
|
+
* @example
|
|
211
|
+
* const decoder = new EntityDecoder({
|
|
212
|
+
* namedEntities: COMMON_HTML,
|
|
213
|
+
* maxTotalExpansions: 100
|
|
214
|
+
* });
|
|
215
|
+
* decoder.setExternalEntities({ brand: 'Acme' });
|
|
216
|
+
*
|
|
217
|
+
* decoder.addInputEntities({ version: '1.0' });
|
|
218
|
+
* decoder.decode('&brand; v&version; <'); // 'Acme v1.0 <'
|
|
219
|
+
*
|
|
220
|
+
* decoder.reset(); // clears input entities + counters, keeps external entities
|
|
221
|
+
*/
|
|
222
|
+
export default class EntityDecoder {
|
|
223
|
+
constructor(options?: EntityDecoderOptions);
|
|
224
|
+
|
|
225
|
+
setExternalEntities(
|
|
226
|
+
map: Record<string, string | { regex: RegExp; val: string | EntityValFn }>
|
|
227
|
+
): void;
|
|
228
|
+
|
|
229
|
+
addExternalEntity(key: string, value: string): void;
|
|
230
|
+
|
|
231
|
+
addInputEntities(
|
|
232
|
+
map: Record<
|
|
233
|
+
string,
|
|
234
|
+
| string
|
|
235
|
+
| { regx: RegExp; val: string | EntityValFn }
|
|
236
|
+
| { regex: RegExp; val: string | EntityValFn }
|
|
237
|
+
>
|
|
238
|
+
): void;
|
|
239
|
+
|
|
240
|
+
reset(): this;
|
|
241
|
+
|
|
242
|
+
decode(str: string): string;
|
|
243
|
+
}
|
|
244
|
+
|
|
245
|
+
// ---------------------------------------------------------------------------
|
|
246
|
+
// Named entity group exports (for use with `namedEntities` option)
|
|
247
|
+
// ---------------------------------------------------------------------------
|
|
248
|
+
|
|
249
|
+
export const COMMON_HTML: Record<string, string>;
|
|
250
|
+
export const ALL_ENTITIES: Record<string, string>;
|
|
251
|
+
export const XML: Record<string, string>;
|
|
252
|
+
export const BASIC_LATIN: Record<string, string>;
|
|
253
|
+
export const LATIN_ACCENTS: Record<string, string>;
|
|
254
|
+
export const LATIN_EXTENDED: Record<string, string>;
|
|
255
|
+
export const GREEK: Record<string, string>;
|
|
256
|
+
export const CYRILLIC: Record<string, string>;
|
|
257
|
+
export const MATH: Record<string, string>;
|
|
258
|
+
export const MATH_ADVANCED: Record<string, string>;
|
|
259
|
+
export const ARROWS: Record<string, string>;
|
|
260
|
+
export const SHAPES: Record<string, string>;
|
|
261
|
+
export const PUNCTUATION: Record<string, string>;
|
|
262
|
+
export const CURRENCY: Record<string, string>;
|
|
263
|
+
export const FRACTIONS: Record<string, string>;
|
|
264
|
+
export const MISC_SYMBOLS: Record<string, string>;
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @nodable/entities
|
|
3
|
+
*
|
|
4
|
+
* Standalone, zero-dependency XML/HTML entity replacement.
|
|
5
|
+
*
|
|
6
|
+
|
|
7
|
+
*/
|
|
8
|
+
|
|
9
|
+
export { default as EntityDecoder } from './EntityDecoder.js';
|
|
10
|
+
export {
|
|
11
|
+
COMMON_HTML,
|
|
12
|
+
XML,
|
|
13
|
+
ALL_ENTITIES,
|
|
14
|
+
ARROWS,
|
|
15
|
+
BASIC_LATIN,
|
|
16
|
+
CURRENCY,
|
|
17
|
+
MATH,
|
|
18
|
+
MATH_ADVANCED,
|
|
19
|
+
CYRILLIC,
|
|
20
|
+
FRACTIONS,
|
|
21
|
+
GREEK,
|
|
22
|
+
LATIN_ACCENTS,
|
|
23
|
+
LATIN_EXTENDED,
|
|
24
|
+
MISC_SYMBOLS,
|
|
25
|
+
PUNCTUATION,
|
|
26
|
+
SHAPES,
|
|
27
|
+
} from './entities.js';
|
|
28
|
+
|
|
29
|
+
export { default as EntityEncoder } from './EntityEncoder.js';
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@smithy/core",
|
|
3
|
-
"version": "3.23.
|
|
3
|
+
"version": "3.23.17",
|
|
4
4
|
"scripts": {
|
|
5
5
|
"build": "concurrently 'yarn:build:types' 'yarn:build:es:cjs'",
|
|
6
6
|
"build:es:cjs": "yarn g:tsc -p tsconfig.es.json && node ../../scripts/inline core",
|
|
@@ -91,7 +91,7 @@
|
|
|
91
91
|
"@smithy/util-base64": "^4.3.2",
|
|
92
92
|
"@smithy/util-body-length-browser": "^4.2.2",
|
|
93
93
|
"@smithy/util-middleware": "^4.2.14",
|
|
94
|
-
"@smithy/util-stream": "^4.5.
|
|
94
|
+
"@smithy/util-stream": "^4.5.25",
|
|
95
95
|
"@smithy/util-utf8": "^4.2.2",
|
|
96
96
|
"@smithy/uuid": "^1.1.2",
|
|
97
97
|
"tslib": "^2.6.2"
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@smithy/middleware-endpoint",
|
|
3
|
-
"version": "4.4.
|
|
3
|
+
"version": "4.4.32",
|
|
4
4
|
"scripts": {
|
|
5
5
|
"build": "concurrently 'yarn:build:types' 'yarn:build:es:cjs'",
|
|
6
6
|
"build:es:cjs": "yarn g:tsc -p tsconfig.es.json && node ../../scripts/inline middleware-endpoint",
|
|
@@ -24,8 +24,8 @@
|
|
|
24
24
|
"license": "Apache-2.0",
|
|
25
25
|
"sideEffects": false,
|
|
26
26
|
"dependencies": {
|
|
27
|
-
"@smithy/core": "^3.23.
|
|
28
|
-
"@smithy/middleware-serde": "^4.2.
|
|
27
|
+
"@smithy/core": "^3.23.17",
|
|
28
|
+
"@smithy/middleware-serde": "^4.2.20",
|
|
29
29
|
"@smithy/node-config-provider": "^4.3.14",
|
|
30
30
|
"@smithy/shared-ini-file-loader": "^4.4.9",
|
|
31
31
|
"@smithy/types": "^4.14.1",
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@smithy/middleware-retry",
|
|
3
|
-
"version": "4.5.
|
|
3
|
+
"version": "4.5.7",
|
|
4
4
|
"scripts": {
|
|
5
5
|
"build": "concurrently 'yarn:build:types' 'yarn:build:es:cjs'",
|
|
6
6
|
"build:es:cjs": "yarn g:tsc -p tsconfig.es.json && node ../../scripts/inline middleware-retry",
|
|
@@ -33,14 +33,14 @@
|
|
|
33
33
|
"license": "Apache-2.0",
|
|
34
34
|
"sideEffects": false,
|
|
35
35
|
"dependencies": {
|
|
36
|
-
"@smithy/core": "^3.23.
|
|
36
|
+
"@smithy/core": "^3.23.17",
|
|
37
37
|
"@smithy/node-config-provider": "^4.3.14",
|
|
38
38
|
"@smithy/protocol-http": "^5.3.14",
|
|
39
|
-
"@smithy/service-error-classification": "^4.3.
|
|
40
|
-
"@smithy/smithy-client": "^4.12.
|
|
39
|
+
"@smithy/service-error-classification": "^4.3.1",
|
|
40
|
+
"@smithy/smithy-client": "^4.12.13",
|
|
41
41
|
"@smithy/types": "^4.14.1",
|
|
42
42
|
"@smithy/util-middleware": "^4.2.14",
|
|
43
|
-
"@smithy/util-retry": "^4.3.
|
|
43
|
+
"@smithy/util-retry": "^4.3.6",
|
|
44
44
|
"@smithy/uuid": "^1.1.2",
|
|
45
45
|
"tslib": "^2.6.2"
|
|
46
46
|
},
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@smithy/middleware-serde",
|
|
3
|
-
"version": "4.2.
|
|
3
|
+
"version": "4.2.20",
|
|
4
4
|
"scripts": {
|
|
5
5
|
"build": "concurrently 'yarn:build:types' 'yarn:build:es:cjs'",
|
|
6
6
|
"build:es:cjs": "yarn g:tsc -p tsconfig.es.json && node ../../scripts/inline middleware-serde",
|
|
@@ -25,7 +25,7 @@
|
|
|
25
25
|
"license": "Apache-2.0",
|
|
26
26
|
"sideEffects": false,
|
|
27
27
|
"dependencies": {
|
|
28
|
-
"@smithy/core": "^3.23.
|
|
28
|
+
"@smithy/core": "^3.23.17",
|
|
29
29
|
"@smithy/protocol-http": "^5.3.14",
|
|
30
30
|
"@smithy/types": "^4.14.1",
|
|
31
31
|
"tslib": "^2.6.2"
|
|
@@ -460,6 +460,11 @@ class ClientHttp2SessionRef {
|
|
|
460
460
|
deref() {
|
|
461
461
|
return this.session;
|
|
462
462
|
}
|
|
463
|
+
close() {
|
|
464
|
+
if (!this.session.closed) {
|
|
465
|
+
this.session.close();
|
|
466
|
+
}
|
|
467
|
+
}
|
|
463
468
|
destroy() {
|
|
464
469
|
this.refs = 0;
|
|
465
470
|
if (!this.session.destroyed) {
|
|
@@ -548,16 +553,18 @@ class NodeHttp2ConnectionManager {
|
|
|
548
553
|
}
|
|
549
554
|
});
|
|
550
555
|
}
|
|
551
|
-
const
|
|
552
|
-
|
|
553
|
-
|
|
556
|
+
const graceful = () => {
|
|
557
|
+
this.removeFromPoolAndClose(url, ref);
|
|
558
|
+
};
|
|
559
|
+
const ensureDestroyed = () => {
|
|
560
|
+
this.removeFromPoolAndCheckedDestroy(url, ref);
|
|
554
561
|
};
|
|
555
|
-
session.on("goaway",
|
|
556
|
-
session.on("error",
|
|
557
|
-
session.on("frameError",
|
|
558
|
-
session.on("close",
|
|
562
|
+
session.on("goaway", graceful);
|
|
563
|
+
session.on("error", ensureDestroyed);
|
|
564
|
+
session.on("frameError", ensureDestroyed);
|
|
565
|
+
session.on("close", ensureDestroyed);
|
|
559
566
|
if (connectionConfiguration.requestTimeout) {
|
|
560
|
-
session.setTimeout(connectionConfiguration.requestTimeout,
|
|
567
|
+
session.setTimeout(connectionConfiguration.requestTimeout, ensureDestroyed);
|
|
561
568
|
}
|
|
562
569
|
pool.offerLast(ref);
|
|
563
570
|
ref.retain();
|
|
@@ -571,15 +578,14 @@ class NodeHttp2ConnectionManager {
|
|
|
571
578
|
const ref = new ClientHttp2SessionRef(http2.connect(url));
|
|
572
579
|
const session = ref.deref();
|
|
573
580
|
session.settings({ maxConcurrentStreams: 1 });
|
|
574
|
-
const
|
|
575
|
-
|
|
581
|
+
const ensureDestroyed = () => {
|
|
582
|
+
ref.destroy();
|
|
576
583
|
};
|
|
577
|
-
session.on("
|
|
578
|
-
session.on("
|
|
579
|
-
session.on("
|
|
580
|
-
session.on("close", destroySession);
|
|
584
|
+
session.on("error", ensureDestroyed);
|
|
585
|
+
session.on("frameError", ensureDestroyed);
|
|
586
|
+
session.on("close", ensureDestroyed);
|
|
581
587
|
if (connectionConfiguration.requestTimeout) {
|
|
582
|
-
session.setTimeout(connectionConfiguration.requestTimeout,
|
|
588
|
+
session.setTimeout(connectionConfiguration.requestTimeout, ensureDestroyed);
|
|
583
589
|
}
|
|
584
590
|
ref.retain();
|
|
585
591
|
return ref;
|
|
@@ -620,8 +626,13 @@ class NodeHttp2ConnectionManager {
|
|
|
620
626
|
}
|
|
621
627
|
return pools;
|
|
622
628
|
}
|
|
623
|
-
|
|
629
|
+
removeFromPoolAndClose(authority, ref) {
|
|
624
630
|
this.connectionPools.get(authority)?.remove(ref);
|
|
631
|
+
ref.close();
|
|
632
|
+
}
|
|
633
|
+
removeFromPoolAndCheckedDestroy(authority, ref) {
|
|
634
|
+
this.connectionPools.get(authority)?.remove(ref);
|
|
635
|
+
ref.destroy();
|
|
625
636
|
}
|
|
626
637
|
getPool(url) {
|
|
627
638
|
if (!this.connectionPools.has(url)) {
|
|
@@ -32,16 +32,18 @@ export class NodeHttp2ConnectionManager {
|
|
|
32
32
|
}
|
|
33
33
|
});
|
|
34
34
|
}
|
|
35
|
-
const
|
|
36
|
-
|
|
37
|
-
this.removeFromPool(url, ref);
|
|
35
|
+
const graceful = () => {
|
|
36
|
+
this.removeFromPoolAndClose(url, ref);
|
|
38
37
|
};
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
session.on("
|
|
38
|
+
const ensureDestroyed = () => {
|
|
39
|
+
this.removeFromPoolAndCheckedDestroy(url, ref);
|
|
40
|
+
};
|
|
41
|
+
session.on("goaway", graceful);
|
|
42
|
+
session.on("error", ensureDestroyed);
|
|
43
|
+
session.on("frameError", ensureDestroyed);
|
|
44
|
+
session.on("close", ensureDestroyed);
|
|
43
45
|
if (connectionConfiguration.requestTimeout) {
|
|
44
|
-
session.setTimeout(connectionConfiguration.requestTimeout,
|
|
46
|
+
session.setTimeout(connectionConfiguration.requestTimeout, ensureDestroyed);
|
|
45
47
|
}
|
|
46
48
|
pool.offerLast(ref);
|
|
47
49
|
ref.retain();
|
|
@@ -55,15 +57,14 @@ export class NodeHttp2ConnectionManager {
|
|
|
55
57
|
const ref = new ClientHttp2SessionRef(http2.connect(url));
|
|
56
58
|
const session = ref.deref();
|
|
57
59
|
session.settings({ maxConcurrentStreams: 1 });
|
|
58
|
-
const
|
|
59
|
-
|
|
60
|
+
const ensureDestroyed = () => {
|
|
61
|
+
ref.destroy();
|
|
60
62
|
};
|
|
61
|
-
session.on("
|
|
62
|
-
session.on("
|
|
63
|
-
session.on("
|
|
64
|
-
session.on("close", destroySession);
|
|
63
|
+
session.on("error", ensureDestroyed);
|
|
64
|
+
session.on("frameError", ensureDestroyed);
|
|
65
|
+
session.on("close", ensureDestroyed);
|
|
65
66
|
if (connectionConfiguration.requestTimeout) {
|
|
66
|
-
session.setTimeout(connectionConfiguration.requestTimeout,
|
|
67
|
+
session.setTimeout(connectionConfiguration.requestTimeout, ensureDestroyed);
|
|
67
68
|
}
|
|
68
69
|
ref.retain();
|
|
69
70
|
return ref;
|
|
@@ -104,8 +105,13 @@ export class NodeHttp2ConnectionManager {
|
|
|
104
105
|
}
|
|
105
106
|
return pools;
|
|
106
107
|
}
|
|
107
|
-
|
|
108
|
+
removeFromPoolAndClose(authority, ref) {
|
|
109
|
+
this.connectionPools.get(authority)?.remove(ref);
|
|
110
|
+
ref.close();
|
|
111
|
+
}
|
|
112
|
+
removeFromPoolAndCheckedDestroy(authority, ref) {
|
|
108
113
|
this.connectionPools.get(authority)?.remove(ref);
|
|
114
|
+
ref.destroy();
|
|
109
115
|
}
|
|
110
116
|
getPool(url) {
|
|
111
117
|
if (!this.connectionPools.has(url)) {
|
|
@@ -34,6 +34,10 @@ export declare class ClientHttp2SessionRef {
|
|
|
34
34
|
* Access the session (don't call ref/unref on it).
|
|
35
35
|
*/
|
|
36
36
|
deref(): ClientHttp2Session;
|
|
37
|
+
/**
|
|
38
|
+
* Allow open refs to free on their own.
|
|
39
|
+
*/
|
|
40
|
+
close(): void;
|
|
37
41
|
destroy(): void;
|
|
38
42
|
/**
|
|
39
43
|
* @returns the current number of active references (in-flight requests).
|
package/node_modules/@smithy/node-http-handler/dist-types/node-http2-connection-manager.d.ts
CHANGED
|
@@ -35,10 +35,8 @@ export declare class NodeHttp2ConnectionManager implements ConnectionManager<Cli
|
|
|
35
35
|
* @returns a snapshot of the state of all connection pools and their sessions.
|
|
36
36
|
*/
|
|
37
37
|
debug(): Record<string, any>;
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
*/
|
|
41
|
-
private removeFromPool;
|
|
38
|
+
private removeFromPoolAndClose;
|
|
39
|
+
private removeFromPoolAndCheckedDestroy;
|
|
42
40
|
private getPool;
|
|
43
41
|
private getUrlString;
|
|
44
42
|
}
|
|
@@ -51,6 +51,7 @@ const isThrottlingError = (error) => error.$metadata?.httpStatusCode === 429 ||
|
|
|
51
51
|
error.$retryable?.throttling == true;
|
|
52
52
|
const isTransientError = (error, depth = 0) => isRetryableByTrait(error) ||
|
|
53
53
|
isClockSkewCorrectedError(error) ||
|
|
54
|
+
(error.name === "InvalidSignatureException" && error.message?.includes("Signature expired")) ||
|
|
54
55
|
TRANSIENT_ERROR_CODES.includes(error.name) ||
|
|
55
56
|
NODEJS_TIMEOUT_ERROR_CODES.includes(error?.code || "") ||
|
|
56
57
|
NODEJS_NETWORK_ERROR_CODES.includes(error?.code || "") ||
|
|
@@ -21,6 +21,7 @@ export const isThrottlingError = (error) => error.$metadata?.httpStatusCode ===
|
|
|
21
21
|
error.$retryable?.throttling == true;
|
|
22
22
|
export const isTransientError = (error, depth = 0) => isRetryableByTrait(error) ||
|
|
23
23
|
isClockSkewCorrectedError(error) ||
|
|
24
|
+
(error.name === "InvalidSignatureException" && error.message?.includes("Signature expired")) ||
|
|
24
25
|
TRANSIENT_ERROR_CODES.includes(error.name) ||
|
|
25
26
|
NODEJS_TIMEOUT_ERROR_CODES.includes(error?.code || "") ||
|
|
26
27
|
NODEJS_NETWORK_ERROR_CODES.includes(error?.code || "") ||
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@smithy/service-error-classification",
|
|
3
|
-
"version": "4.3.
|
|
3
|
+
"version": "4.3.1",
|
|
4
4
|
"scripts": {
|
|
5
5
|
"build": "concurrently 'yarn:build:types' 'yarn:build:es:cjs'",
|
|
6
6
|
"build:es:cjs": "yarn g:tsc -p tsconfig.es.json && node ../../scripts/inline service-error-classification",
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@smithy/smithy-client",
|
|
3
|
-
"version": "4.12.
|
|
3
|
+
"version": "4.12.13",
|
|
4
4
|
"scripts": {
|
|
5
5
|
"build": "concurrently 'yarn:build:types' 'yarn:build:es:cjs'",
|
|
6
6
|
"build:es:cjs": "yarn g:tsc -p tsconfig.es.json && node ../../scripts/inline smithy-client",
|
|
@@ -26,12 +26,12 @@
|
|
|
26
26
|
"license": "Apache-2.0",
|
|
27
27
|
"sideEffects": false,
|
|
28
28
|
"dependencies": {
|
|
29
|
-
"@smithy/core": "^3.23.
|
|
30
|
-
"@smithy/middleware-endpoint": "^4.4.
|
|
29
|
+
"@smithy/core": "^3.23.17",
|
|
30
|
+
"@smithy/middleware-endpoint": "^4.4.32",
|
|
31
31
|
"@smithy/middleware-stack": "^4.2.14",
|
|
32
32
|
"@smithy/protocol-http": "^5.3.14",
|
|
33
33
|
"@smithy/types": "^4.14.1",
|
|
34
|
-
"@smithy/util-stream": "^4.5.
|
|
34
|
+
"@smithy/util-stream": "^4.5.25",
|
|
35
35
|
"tslib": "^2.6.2"
|
|
36
36
|
},
|
|
37
37
|
"engines": {
|