@ndlib/ndlib-cdk2 1.0.25 → 1.0.26
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/lib/internal-lambdas/sourceWatcherLambda/src/node_modules/@aws-crypto/crc32/CHANGELOG.md +76 -0
- package/lib/internal-lambdas/sourceWatcherLambda/src/node_modules/@aws-crypto/crc32/LICENSE +201 -0
- package/lib/internal-lambdas/sourceWatcherLambda/src/node_modules/@aws-crypto/crc32/README.md +16 -0
- package/lib/internal-lambdas/sourceWatcherLambda/src/node_modules/@aws-crypto/crc32/build/aws_crc32.d.ts +7 -0
- package/lib/internal-lambdas/sourceWatcherLambda/src/node_modules/@aws-crypto/crc32/build/aws_crc32.js +31 -0
- package/lib/internal-lambdas/sourceWatcherLambda/src/node_modules/@aws-crypto/crc32/build/aws_crc32.js.map +1 -0
- package/lib/internal-lambdas/sourceWatcherLambda/src/node_modules/@aws-crypto/crc32/build/index.d.ts +7 -0
- package/lib/internal-lambdas/sourceWatcherLambda/src/node_modules/@aws-crypto/crc32/build/index.js +108 -0
- package/lib/internal-lambdas/sourceWatcherLambda/src/node_modules/@aws-crypto/crc32/build/index.js.map +1 -0
- package/lib/internal-lambdas/sourceWatcherLambda/src/node_modules/@aws-crypto/crc32/node_modules/tslib/CopyrightNotice.txt +15 -0
- package/lib/internal-lambdas/sourceWatcherLambda/src/node_modules/@aws-crypto/crc32/node_modules/tslib/LICENSE.txt +12 -0
- package/lib/internal-lambdas/sourceWatcherLambda/src/node_modules/@aws-crypto/crc32/node_modules/tslib/README.md +142 -0
- package/lib/internal-lambdas/sourceWatcherLambda/src/node_modules/@aws-crypto/crc32/node_modules/tslib/modules/index.js +51 -0
- package/lib/internal-lambdas/sourceWatcherLambda/src/node_modules/@aws-crypto/crc32/node_modules/tslib/modules/package.json +3 -0
- package/lib/internal-lambdas/sourceWatcherLambda/src/node_modules/@aws-crypto/crc32/node_modules/tslib/package.json +37 -0
- package/lib/internal-lambdas/sourceWatcherLambda/src/node_modules/@aws-crypto/crc32/node_modules/tslib/test/validateModuleExportsMatchCommonJS/index.js +23 -0
- package/lib/internal-lambdas/sourceWatcherLambda/src/node_modules/@aws-crypto/crc32/node_modules/tslib/test/validateModuleExportsMatchCommonJS/package.json +6 -0
- package/lib/internal-lambdas/sourceWatcherLambda/src/node_modules/@aws-crypto/crc32/node_modules/tslib/tslib.d.ts +37 -0
- package/lib/internal-lambdas/sourceWatcherLambda/src/node_modules/@aws-crypto/crc32/node_modules/tslib/tslib.es6.html +1 -0
- package/lib/internal-lambdas/sourceWatcherLambda/src/node_modules/@aws-crypto/crc32/node_modules/tslib/tslib.es6.js +218 -0
- package/lib/internal-lambdas/sourceWatcherLambda/src/node_modules/@aws-crypto/crc32/node_modules/tslib/tslib.html +1 -0
- package/lib/internal-lambdas/sourceWatcherLambda/src/node_modules/@aws-crypto/crc32/node_modules/tslib/tslib.js +284 -0
- package/lib/internal-lambdas/sourceWatcherLambda/src/node_modules/@aws-crypto/crc32/package.json +28 -0
- package/lib/internal-lambdas/sourceWatcherLambda/src/node_modules/@aws-crypto/crc32/src/aws_crc32.ts +24 -0
- package/lib/internal-lambdas/sourceWatcherLambda/src/node_modules/@aws-crypto/crc32/src/index.ts +92 -0
- package/lib/internal-lambdas/sourceWatcherLambda/src/node_modules/@aws-crypto/crc32/tsconfig.json +23 -0
- package/lib/internal-lambdas/sourceWatcherLambda/src/node_modules/@aws-sdk/client-sso-oidc/dist-cjs/credentialDefaultProvider.js +29 -0
- package/lib/internal-lambdas/sourceWatcherLambda/src/node_modules/@aws-sdk/client-sso-oidc/dist-es/credentialDefaultProvider.js +3 -0
- package/lib/internal-lambdas/sourceWatcherLambda/src/node_modules/@aws-sdk/client-sso-oidc/dist-types/credentialDefaultProvider.d.ts +4 -0
- package/lib/internal-lambdas/sourceWatcherLambda/src/node_modules/@aws-sdk/client-sso-oidc/dist-types/ts3.4/credentialDefaultProvider.d.ts +1 -0
- package/lib/internal-lambdas/sourceWatcherLambda/src/node_modules/@aws-sdk/client-sts/dist-cjs/credentialDefaultProvider.js +29 -0
- package/lib/internal-lambdas/sourceWatcherLambda/src/node_modules/@aws-sdk/client-sts/dist-es/credentialDefaultProvider.js +3 -0
- package/lib/internal-lambdas/sourceWatcherLambda/src/node_modules/@aws-sdk/client-sts/dist-types/credentialDefaultProvider.d.ts +4 -0
- package/lib/internal-lambdas/sourceWatcherLambda/src/node_modules/@aws-sdk/client-sts/dist-types/ts3.4/credentialDefaultProvider.d.ts +1 -0
- package/lib/internal-lambdas/sourceWatcherLambda/src/node_modules/@aws-sdk/core/CHANGELOG.md +261 -0
- package/lib/internal-lambdas/sourceWatcherLambda/src/node_modules/@aws-sdk/core/api-extractor.json +4 -0
- package/lib/internal-lambdas/sourceWatcherLambda/src/node_modules/@aws-sdk/core/dist-cjs/client/emitWarningIfUnsupportedVersion.js +1 -0
- package/lib/internal-lambdas/sourceWatcherLambda/src/node_modules/@aws-sdk/core/dist-cjs/client/index.js +1 -0
- package/lib/internal-lambdas/sourceWatcherLambda/src/node_modules/@aws-sdk/core/dist-cjs/httpAuthSchemes/aws_sdk/AwsSdkSigV4Signer.js +1 -0
- package/lib/internal-lambdas/sourceWatcherLambda/src/node_modules/@aws-sdk/core/dist-cjs/httpAuthSchemes/aws_sdk/index.js +1 -0
- package/lib/internal-lambdas/sourceWatcherLambda/src/node_modules/@aws-sdk/core/dist-cjs/httpAuthSchemes/aws_sdk/resolveAwsSdkSigV4Config.js +1 -0
- package/lib/internal-lambdas/sourceWatcherLambda/src/node_modules/@aws-sdk/core/dist-cjs/httpAuthSchemes/index.js +1 -0
- package/lib/internal-lambdas/sourceWatcherLambda/src/node_modules/@aws-sdk/core/dist-cjs/httpAuthSchemes/utils/getDateHeader.js +1 -0
- package/lib/internal-lambdas/sourceWatcherLambda/src/node_modules/@aws-sdk/core/dist-cjs/httpAuthSchemes/utils/getSkewCorrectedDate.js +1 -0
- package/lib/internal-lambdas/sourceWatcherLambda/src/node_modules/@aws-sdk/core/dist-cjs/httpAuthSchemes/utils/getUpdatedSystemClockOffset.js +1 -0
- package/lib/internal-lambdas/sourceWatcherLambda/src/node_modules/@aws-sdk/core/dist-cjs/httpAuthSchemes/utils/index.js +1 -0
- package/lib/internal-lambdas/sourceWatcherLambda/src/node_modules/@aws-sdk/core/dist-cjs/httpAuthSchemes/utils/isClockSkewed.js +1 -0
- package/lib/internal-lambdas/sourceWatcherLambda/src/node_modules/@aws-sdk/core/dist-cjs/protocols/coercing-serializers.js +1 -0
- package/lib/internal-lambdas/sourceWatcherLambda/src/node_modules/@aws-sdk/core/dist-cjs/protocols/common.js +1 -0
- package/lib/internal-lambdas/sourceWatcherLambda/src/node_modules/@aws-sdk/core/dist-cjs/protocols/index.js +1 -0
- package/lib/internal-lambdas/sourceWatcherLambda/src/node_modules/@aws-sdk/core/dist-cjs/protocols/json/awsExpectUnion.js +1 -0
- package/lib/internal-lambdas/sourceWatcherLambda/src/node_modules/@aws-sdk/core/dist-cjs/protocols/json/parseJsonBody.js +1 -0
- package/lib/internal-lambdas/sourceWatcherLambda/src/node_modules/@aws-sdk/core/dist-cjs/protocols/xml/parseXmlBody.js +1 -0
- package/lib/internal-lambdas/sourceWatcherLambda/src/node_modules/@aws-sdk/core/dist-es/client/emitWarningIfUnsupportedVersion.js +13 -0
- package/lib/internal-lambdas/sourceWatcherLambda/src/node_modules/@aws-sdk/core/dist-es/client/index.js +1 -0
- package/lib/internal-lambdas/sourceWatcherLambda/src/node_modules/@aws-sdk/core/dist-es/httpAuthSchemes/aws_sdk/AwsSdkSigV4Signer.js +60 -0
- package/lib/internal-lambdas/sourceWatcherLambda/src/node_modules/@aws-sdk/core/dist-es/httpAuthSchemes/aws_sdk/index.js +2 -0
- package/lib/internal-lambdas/sourceWatcherLambda/src/node_modules/@aws-sdk/core/dist-es/httpAuthSchemes/aws_sdk/resolveAwsSdkSigV4Config.js +82 -0
- package/lib/internal-lambdas/sourceWatcherLambda/src/node_modules/@aws-sdk/core/dist-es/httpAuthSchemes/index.js +1 -0
- package/lib/internal-lambdas/sourceWatcherLambda/src/node_modules/@aws-sdk/core/dist-es/httpAuthSchemes/utils/getDateHeader.js +2 -0
- package/lib/internal-lambdas/sourceWatcherLambda/src/node_modules/@aws-sdk/core/dist-es/httpAuthSchemes/utils/getSkewCorrectedDate.js +1 -0
- package/lib/internal-lambdas/sourceWatcherLambda/src/node_modules/@aws-sdk/core/dist-es/httpAuthSchemes/utils/getUpdatedSystemClockOffset.js +8 -0
- package/lib/internal-lambdas/sourceWatcherLambda/src/node_modules/@aws-sdk/core/dist-es/httpAuthSchemes/utils/index.js +3 -0
- package/lib/internal-lambdas/sourceWatcherLambda/src/node_modules/@aws-sdk/core/dist-es/httpAuthSchemes/utils/isClockSkewed.js +2 -0
- package/lib/internal-lambdas/sourceWatcherLambda/src/node_modules/@aws-sdk/core/dist-es/protocols/coercing-serializers.js +53 -0
- package/lib/internal-lambdas/sourceWatcherLambda/src/node_modules/@aws-sdk/core/dist-es/protocols/common.js +2 -0
- package/lib/internal-lambdas/sourceWatcherLambda/src/node_modules/@aws-sdk/core/dist-es/protocols/index.js +4 -0
- package/lib/internal-lambdas/sourceWatcherLambda/src/node_modules/@aws-sdk/core/dist-es/protocols/json/awsExpectUnion.js +10 -0
- package/lib/internal-lambdas/sourceWatcherLambda/src/node_modules/@aws-sdk/core/dist-es/protocols/json/parseJsonBody.js +51 -0
- package/lib/internal-lambdas/sourceWatcherLambda/src/node_modules/@aws-sdk/core/dist-es/protocols/xml/parseXmlBody.js +57 -0
- package/lib/internal-lambdas/sourceWatcherLambda/src/node_modules/@aws-sdk/core/dist-types/client/emitWarningIfUnsupportedVersion.d.ts +9 -0
- package/lib/internal-lambdas/sourceWatcherLambda/src/node_modules/@aws-sdk/core/dist-types/client/index.d.ts +1 -0
- package/lib/internal-lambdas/sourceWatcherLambda/src/node_modules/@aws-sdk/core/dist-types/httpAuthSchemes/aws_sdk/AwsSdkSigV4Signer.d.ts +17 -0
- package/lib/internal-lambdas/sourceWatcherLambda/src/node_modules/@aws-sdk/core/dist-types/httpAuthSchemes/aws_sdk/index.d.ts +2 -0
- package/lib/internal-lambdas/sourceWatcherLambda/src/node_modules/@aws-sdk/core/dist-types/httpAuthSchemes/aws_sdk/resolveAwsSdkSigV4Config.d.ts +95 -0
- package/lib/internal-lambdas/sourceWatcherLambda/src/node_modules/@aws-sdk/core/dist-types/httpAuthSchemes/index.d.ts +1 -0
- package/lib/internal-lambdas/sourceWatcherLambda/src/node_modules/@aws-sdk/core/dist-types/httpAuthSchemes/utils/getDateHeader.d.ts +4 -0
- package/lib/internal-lambdas/sourceWatcherLambda/src/node_modules/@aws-sdk/core/dist-types/httpAuthSchemes/utils/getSkewCorrectedDate.d.ts +8 -0
- package/lib/internal-lambdas/sourceWatcherLambda/src/node_modules/@aws-sdk/core/dist-types/httpAuthSchemes/utils/getUpdatedSystemClockOffset.d.ts +10 -0
- package/lib/internal-lambdas/sourceWatcherLambda/src/node_modules/@aws-sdk/core/dist-types/httpAuthSchemes/utils/index.d.ts +3 -0
- package/lib/internal-lambdas/sourceWatcherLambda/src/node_modules/@aws-sdk/core/dist-types/httpAuthSchemes/utils/isClockSkewed.d.ts +9 -0
- package/lib/internal-lambdas/sourceWatcherLambda/src/node_modules/@aws-sdk/core/dist-types/protocols/coercing-serializers.d.ts +18 -0
- package/lib/internal-lambdas/sourceWatcherLambda/src/node_modules/@aws-sdk/core/dist-types/protocols/common.d.ts +2 -0
- package/lib/internal-lambdas/sourceWatcherLambda/src/node_modules/@aws-sdk/core/dist-types/protocols/index.d.ts +4 -0
- package/lib/internal-lambdas/sourceWatcherLambda/src/node_modules/@aws-sdk/core/dist-types/protocols/json/awsExpectUnion.d.ts +7 -0
- package/lib/internal-lambdas/sourceWatcherLambda/src/node_modules/@aws-sdk/core/dist-types/protocols/json/parseJsonBody.d.ts +4 -0
- package/lib/internal-lambdas/sourceWatcherLambda/src/node_modules/@aws-sdk/core/dist-types/protocols/xml/parseXmlBody.d.ts +4 -0
- package/lib/internal-lambdas/sourceWatcherLambda/src/node_modules/@aws-sdk/core/dist-types/ts3.4/client/emitWarningIfUnsupportedVersion.d.ts +1 -0
- package/lib/internal-lambdas/sourceWatcherLambda/src/node_modules/@aws-sdk/core/dist-types/ts3.4/client/index.d.ts +1 -0
- package/lib/internal-lambdas/sourceWatcherLambda/src/node_modules/@aws-sdk/core/dist-types/ts3.4/httpAuthSchemes/aws_sdk/AwsSdkSigV4Signer.d.ts +21 -0
- package/lib/internal-lambdas/sourceWatcherLambda/src/node_modules/@aws-sdk/core/dist-types/ts3.4/httpAuthSchemes/aws_sdk/index.d.ts +2 -0
- package/lib/internal-lambdas/sourceWatcherLambda/src/node_modules/@aws-sdk/core/dist-types/ts3.4/httpAuthSchemes/aws_sdk/resolveAwsSdkSigV4Config.d.ts +55 -0
- package/lib/internal-lambdas/sourceWatcherLambda/src/node_modules/@aws-sdk/core/dist-types/ts3.4/httpAuthSchemes/index.d.ts +1 -0
- package/lib/internal-lambdas/sourceWatcherLambda/src/node_modules/@aws-sdk/core/dist-types/ts3.4/httpAuthSchemes/utils/getDateHeader.d.ts +1 -0
- package/lib/internal-lambdas/sourceWatcherLambda/src/node_modules/@aws-sdk/core/dist-types/ts3.4/httpAuthSchemes/utils/getSkewCorrectedDate.d.ts +1 -0
- package/lib/internal-lambdas/sourceWatcherLambda/src/node_modules/@aws-sdk/core/dist-types/ts3.4/httpAuthSchemes/utils/getUpdatedSystemClockOffset.d.ts +4 -0
- package/lib/internal-lambdas/sourceWatcherLambda/src/node_modules/@aws-sdk/core/dist-types/ts3.4/httpAuthSchemes/utils/index.d.ts +3 -0
- package/lib/internal-lambdas/sourceWatcherLambda/src/node_modules/@aws-sdk/core/dist-types/ts3.4/httpAuthSchemes/utils/isClockSkewed.d.ts +4 -0
- package/lib/internal-lambdas/sourceWatcherLambda/src/node_modules/@aws-sdk/core/dist-types/ts3.4/protocols/coercing-serializers.d.ts +3 -0
- package/lib/internal-lambdas/sourceWatcherLambda/src/node_modules/@aws-sdk/core/dist-types/ts3.4/protocols/common.d.ts +5 -0
- package/lib/internal-lambdas/sourceWatcherLambda/src/node_modules/@aws-sdk/core/dist-types/ts3.4/protocols/index.d.ts +4 -0
- package/lib/internal-lambdas/sourceWatcherLambda/src/node_modules/@aws-sdk/core/dist-types/ts3.4/protocols/json/awsExpectUnion.d.ts +3 -0
- package/lib/internal-lambdas/sourceWatcherLambda/src/node_modules/@aws-sdk/core/dist-types/ts3.4/protocols/json/parseJsonBody.d.ts +13 -0
- package/lib/internal-lambdas/sourceWatcherLambda/src/node_modules/@aws-sdk/core/dist-types/ts3.4/protocols/xml/parseXmlBody.d.ts +13 -0
- package/lib/internal-lambdas/sourceWatcherLambda/src/node_modules/@aws-sdk/core/integ/request-handlers/request-handlers.integ.spec.ts +158 -0
- package/lib/internal-lambdas/sourceWatcherLambda/src/node_modules/@aws-sdk/core/jest.config.integ.js +4 -0
- package/lib/internal-lambdas/sourceWatcherLambda/src/node_modules/@aws-sdk/core/jest.config.js +6 -0
- package/lib/internal-lambdas/sourceWatcherLambda/src/node_modules/@aws-sdk/core/scripts/lint.js +24 -0
- package/lib/internal-lambdas/sourceWatcherLambda/src/node_modules/@aws-sdk/core/src/client/emitWarningIfUnsupportedVersion.spec.ts +70 -0
- package/lib/internal-lambdas/sourceWatcherLambda/src/node_modules/@aws-sdk/core/src/client/emitWarningIfUnsupportedVersion.ts +25 -0
- package/lib/internal-lambdas/sourceWatcherLambda/src/node_modules/@aws-sdk/core/src/client/index.ts +1 -0
- package/lib/internal-lambdas/sourceWatcherLambda/src/node_modules/@aws-sdk/core/src/httpAuthSchemes/aws_sdk/AwsSdkSigV4Signer.spec.ts +30 -0
- package/lib/internal-lambdas/sourceWatcherLambda/src/node_modules/@aws-sdk/core/src/httpAuthSchemes/aws_sdk/AwsSdkSigV4Signer.ts +134 -0
- package/lib/internal-lambdas/sourceWatcherLambda/src/node_modules/@aws-sdk/core/src/httpAuthSchemes/aws_sdk/index.ts +2 -0
- package/lib/internal-lambdas/sourceWatcherLambda/src/node_modules/@aws-sdk/core/src/httpAuthSchemes/aws_sdk/resolveAwsSdkSigV4Config.ts +244 -0
- package/lib/internal-lambdas/sourceWatcherLambda/src/node_modules/@aws-sdk/core/src/httpAuthSchemes/index.ts +1 -0
- package/lib/internal-lambdas/sourceWatcherLambda/src/node_modules/@aws-sdk/core/src/httpAuthSchemes/utils/getDateHeader.ts +7 -0
- package/lib/internal-lambdas/sourceWatcherLambda/src/node_modules/@aws-sdk/core/src/httpAuthSchemes/utils/getSkewCorrectedDate.spec.ts +17 -0
- package/lib/internal-lambdas/sourceWatcherLambda/src/node_modules/@aws-sdk/core/src/httpAuthSchemes/utils/getSkewCorrectedDate.ts +8 -0
- package/lib/internal-lambdas/sourceWatcherLambda/src/node_modules/@aws-sdk/core/src/httpAuthSchemes/utils/getUpdatedSystemClockOffset.spec.ts +37 -0
- package/lib/internal-lambdas/sourceWatcherLambda/src/node_modules/@aws-sdk/core/src/httpAuthSchemes/utils/getUpdatedSystemClockOffset.ts +18 -0
- package/lib/internal-lambdas/sourceWatcherLambda/src/node_modules/@aws-sdk/core/src/httpAuthSchemes/utils/index.ts +3 -0
- package/lib/internal-lambdas/sourceWatcherLambda/src/node_modules/@aws-sdk/core/src/httpAuthSchemes/utils/isClockSkewed.spec.ts +32 -0
- package/lib/internal-lambdas/sourceWatcherLambda/src/node_modules/@aws-sdk/core/src/httpAuthSchemes/utils/isClockSkewed.ts +12 -0
- package/lib/internal-lambdas/sourceWatcherLambda/src/node_modules/@aws-sdk/core/src/index.ts +3 -0
- package/lib/internal-lambdas/sourceWatcherLambda/src/node_modules/@aws-sdk/core/src/protocols/coercing-serializers.spec.ts +76 -0
- package/lib/internal-lambdas/sourceWatcherLambda/src/node_modules/@aws-sdk/core/src/protocols/coercing-serializers.ts +72 -0
- package/lib/internal-lambdas/sourceWatcherLambda/src/node_modules/@aws-sdk/core/src/protocols/common.ts +5 -0
- package/lib/internal-lambdas/sourceWatcherLambda/src/node_modules/@aws-sdk/core/src/protocols/index.ts +4 -0
- package/lib/internal-lambdas/sourceWatcherLambda/src/node_modules/@aws-sdk/core/src/protocols/json/awsExpectUnion.spec.ts +30 -0
- package/lib/internal-lambdas/sourceWatcherLambda/src/node_modules/@aws-sdk/core/src/protocols/json/awsExpectUnion.ts +17 -0
- package/lib/internal-lambdas/sourceWatcherLambda/src/node_modules/@aws-sdk/core/src/protocols/json/parseJsonBody.ts +60 -0
- package/lib/internal-lambdas/sourceWatcherLambda/src/node_modules/@aws-sdk/core/src/protocols/xml/parseXmlBody.ts +64 -0
- package/lib/internal-lambdas/sourceWatcherLambda/src/node_modules/@aws-sdk/core/tsconfig.cjs.json +9 -0
- package/lib/internal-lambdas/sourceWatcherLambda/src/node_modules/@aws-sdk/core/tsconfig.cjs.tsbuildinfo +1 -0
- package/lib/internal-lambdas/sourceWatcherLambda/src/node_modules/@aws-sdk/core/tsconfig.es.json +9 -0
- package/lib/internal-lambdas/sourceWatcherLambda/src/node_modules/@aws-sdk/core/tsconfig.es.tsbuildinfo +1 -0
- package/lib/internal-lambdas/sourceWatcherLambda/src/node_modules/@aws-sdk/core/tsconfig.types.json +9 -0
- package/lib/internal-lambdas/sourceWatcherLambda/src/node_modules/@aws-sdk/core/tsconfig.types.tsbuildinfo +1 -0
- package/lib/internal-lambdas/sourceWatcherLambda/src/node_modules/@aws-sdk/credential-provider-ini/dist-cjs/loadSts.js +1 -0
- package/lib/internal-lambdas/sourceWatcherLambda/src/node_modules/@aws-sdk/credential-provider-ini/dist-es/loadSts.js +2 -0
- package/lib/internal-lambdas/sourceWatcherLambda/src/node_modules/@aws-sdk/credential-provider-ini/dist-types/loadSts.d.ts +3 -0
- package/lib/internal-lambdas/sourceWatcherLambda/src/node_modules/@aws-sdk/credential-provider-ini/dist-types/ts3.4/loadSts.d.ts +3 -0
- package/lib/internal-lambdas/sourceWatcherLambda/src/node_modules/@aws-sdk/credential-provider-web-identity/dist-cjs/loadSts.js +5 -0
- package/lib/internal-lambdas/sourceWatcherLambda/src/node_modules/@aws-sdk/credential-provider-web-identity/dist-es/loadSts.js +2 -0
- package/lib/internal-lambdas/sourceWatcherLambda/src/node_modules/@aws-sdk/credential-provider-web-identity/dist-types/loadSts.d.ts +3 -0
- package/lib/internal-lambdas/sourceWatcherLambda/src/node_modules/@aws-sdk/credential-provider-web-identity/dist-types/ts3.4/loadSts.d.ts +3 -0
- package/lib/internal-lambdas/sourceWatcherLambda/src/node_modules/@aws-sdk/token-providers/dist-cjs/loadSsoOidc.js +1 -0
- package/lib/internal-lambdas/sourceWatcherLambda/src/node_modules/@aws-sdk/token-providers/dist-es/loadSsoOidc.js +2 -0
- package/lib/internal-lambdas/sourceWatcherLambda/src/node_modules/@aws-sdk/token-providers/dist-types/loadSsoOidc.d.ts +2 -0
- package/lib/internal-lambdas/sourceWatcherLambda/src/node_modules/@aws-sdk/token-providers/dist-types/ts3.4/loadSsoOidc.d.ts +2 -0
- package/lib/internal-lambdas/sourceWatcherLambda/src/node_modules/@smithy/eventstream-codec/LICENSE +201 -0
- package/lib/internal-lambdas/sourceWatcherLambda/src/node_modules/@smithy/eventstream-codec/README.md +4 -0
- package/lib/internal-lambdas/sourceWatcherLambda/src/node_modules/@smithy/eventstream-codec/dist-cjs/EventStreamCodec.js +1 -0
- package/lib/internal-lambdas/sourceWatcherLambda/src/node_modules/@smithy/eventstream-codec/dist-cjs/HeaderMarshaller.js +1 -0
- package/lib/internal-lambdas/sourceWatcherLambda/src/node_modules/@smithy/eventstream-codec/dist-cjs/Int64.js +1 -0
- package/lib/internal-lambdas/sourceWatcherLambda/src/node_modules/@smithy/eventstream-codec/dist-cjs/Message.js +1 -0
- package/lib/internal-lambdas/sourceWatcherLambda/src/node_modules/@smithy/eventstream-codec/dist-cjs/MessageDecoderStream.js +1 -0
- package/lib/internal-lambdas/sourceWatcherLambda/src/node_modules/@smithy/eventstream-codec/dist-cjs/MessageEncoderStream.js +1 -0
- package/lib/internal-lambdas/sourceWatcherLambda/src/node_modules/@smithy/eventstream-codec/dist-cjs/SmithyMessageDecoderStream.js +1 -0
- package/lib/internal-lambdas/sourceWatcherLambda/src/node_modules/@smithy/eventstream-codec/dist-cjs/SmithyMessageEncoderStream.js +1 -0
- package/lib/internal-lambdas/sourceWatcherLambda/src/node_modules/@smithy/eventstream-codec/dist-cjs/TestVectors.fixture.js +1 -0
- package/lib/internal-lambdas/sourceWatcherLambda/src/node_modules/@smithy/eventstream-codec/dist-cjs/index.js +468 -0
- package/lib/internal-lambdas/sourceWatcherLambda/src/node_modules/@smithy/eventstream-codec/dist-cjs/splitMessage.js +1 -0
- package/lib/internal-lambdas/sourceWatcherLambda/src/node_modules/@smithy/eventstream-codec/dist-cjs/vectorTypes.fixture.js +1 -0
- package/lib/internal-lambdas/sourceWatcherLambda/src/node_modules/@smithy/eventstream-codec/dist-es/EventStreamCodec.js +62 -0
- package/lib/internal-lambdas/sourceWatcherLambda/src/node_modules/@smithy/eventstream-codec/dist-es/HeaderMarshaller.js +182 -0
- package/lib/internal-lambdas/sourceWatcherLambda/src/node_modules/@smithy/eventstream-codec/dist-es/Int64.js +43 -0
- package/lib/internal-lambdas/sourceWatcherLambda/src/node_modules/@smithy/eventstream-codec/dist-es/Message.js +1 -0
- package/lib/internal-lambdas/sourceWatcherLambda/src/node_modules/@smithy/eventstream-codec/dist-es/MessageDecoderStream.js +14 -0
- package/lib/internal-lambdas/sourceWatcherLambda/src/node_modules/@smithy/eventstream-codec/dist-es/MessageEncoderStream.js +17 -0
- package/lib/internal-lambdas/sourceWatcherLambda/src/node_modules/@smithy/eventstream-codec/dist-es/SmithyMessageDecoderStream.js +16 -0
- package/lib/internal-lambdas/sourceWatcherLambda/src/node_modules/@smithy/eventstream-codec/dist-es/SmithyMessageEncoderStream.js +14 -0
- package/lib/internal-lambdas/sourceWatcherLambda/src/node_modules/@smithy/eventstream-codec/dist-es/TestVectors.fixture.js +690 -0
- package/lib/internal-lambdas/sourceWatcherLambda/src/node_modules/@smithy/eventstream-codec/dist-es/index.js +8 -0
- package/lib/internal-lambdas/sourceWatcherLambda/src/node_modules/@smithy/eventstream-codec/dist-es/splitMessage.js +30 -0
- package/lib/internal-lambdas/sourceWatcherLambda/src/node_modules/@smithy/eventstream-codec/dist-es/vectorTypes.fixture.js +1 -0
- package/lib/internal-lambdas/sourceWatcherLambda/src/node_modules/@smithy/eventstream-codec/dist-types/EventStreamCodec.d.ts +31 -0
- package/lib/internal-lambdas/sourceWatcherLambda/src/node_modules/@smithy/eventstream-codec/dist-types/HeaderMarshaller.d.ts +12 -0
- package/lib/internal-lambdas/sourceWatcherLambda/src/node_modules/@smithy/eventstream-codec/dist-types/Int64.d.ts +20 -0
- package/lib/internal-lambdas/sourceWatcherLambda/src/node_modules/@smithy/eventstream-codec/dist-types/Message.d.ts +26 -0
- package/lib/internal-lambdas/sourceWatcherLambda/src/node_modules/@smithy/eventstream-codec/dist-types/MessageDecoderStream.d.ts +17 -0
- package/lib/internal-lambdas/sourceWatcherLambda/src/node_modules/@smithy/eventstream-codec/dist-types/MessageEncoderStream.d.ts +18 -0
- package/lib/internal-lambdas/sourceWatcherLambda/src/node_modules/@smithy/eventstream-codec/dist-types/SmithyMessageDecoderStream.d.ts +17 -0
- package/lib/internal-lambdas/sourceWatcherLambda/src/node_modules/@smithy/eventstream-codec/dist-types/SmithyMessageEncoderStream.d.ts +17 -0
- package/lib/internal-lambdas/sourceWatcherLambda/src/node_modules/@smithy/eventstream-codec/dist-types/TestVectors.fixture.d.ts +2 -0
- package/lib/internal-lambdas/sourceWatcherLambda/src/node_modules/@smithy/eventstream-codec/dist-types/index.d.ts +8 -0
- package/lib/internal-lambdas/sourceWatcherLambda/src/node_modules/@smithy/eventstream-codec/dist-types/splitMessage.d.ts +11 -0
- package/lib/internal-lambdas/sourceWatcherLambda/src/node_modules/@smithy/eventstream-codec/dist-types/ts3.4/EventStreamCodec.d.ts +31 -0
- package/lib/internal-lambdas/sourceWatcherLambda/src/node_modules/@smithy/eventstream-codec/dist-types/ts3.4/HeaderMarshaller.d.ts +12 -0
- package/lib/internal-lambdas/sourceWatcherLambda/src/node_modules/@smithy/eventstream-codec/dist-types/ts3.4/Int64.d.ts +20 -0
- package/lib/internal-lambdas/sourceWatcherLambda/src/node_modules/@smithy/eventstream-codec/dist-types/ts3.4/Message.d.ts +26 -0
- package/lib/internal-lambdas/sourceWatcherLambda/src/node_modules/@smithy/eventstream-codec/dist-types/ts3.4/MessageDecoderStream.d.ts +17 -0
- package/lib/internal-lambdas/sourceWatcherLambda/src/node_modules/@smithy/eventstream-codec/dist-types/ts3.4/MessageEncoderStream.d.ts +18 -0
- package/lib/internal-lambdas/sourceWatcherLambda/src/node_modules/@smithy/eventstream-codec/dist-types/ts3.4/SmithyMessageDecoderStream.d.ts +17 -0
- package/lib/internal-lambdas/sourceWatcherLambda/src/node_modules/@smithy/eventstream-codec/dist-types/ts3.4/SmithyMessageEncoderStream.d.ts +17 -0
- package/lib/internal-lambdas/sourceWatcherLambda/src/node_modules/@smithy/eventstream-codec/dist-types/ts3.4/TestVectors.fixture.d.ts +2 -0
- package/lib/internal-lambdas/sourceWatcherLambda/src/node_modules/@smithy/eventstream-codec/dist-types/ts3.4/index.d.ts +8 -0
- package/lib/internal-lambdas/sourceWatcherLambda/src/node_modules/@smithy/eventstream-codec/dist-types/ts3.4/splitMessage.d.ts +11 -0
- package/lib/internal-lambdas/sourceWatcherLambda/src/node_modules/@smithy/eventstream-codec/dist-types/ts3.4/vectorTypes.fixture.d.ts +12 -0
- package/lib/internal-lambdas/sourceWatcherLambda/src/node_modules/@smithy/eventstream-codec/dist-types/vectorTypes.fixture.d.ts +12 -0
- package/lib/internal-lambdas/sourceWatcherLambda/src/node_modules/@smithy/eventstream-codec/package.json +61 -0
- package/lib/internal-lambdas/sourceWatcherLambda/src/node_modules/@smithy/middleware-retry/node_modules/uuid/CHANGELOG.md +229 -0
- package/lib/internal-lambdas/sourceWatcherLambda/src/node_modules/@smithy/middleware-retry/node_modules/uuid/CONTRIBUTING.md +18 -0
- package/lib/internal-lambdas/sourceWatcherLambda/src/node_modules/@smithy/middleware-retry/node_modules/uuid/LICENSE.md +9 -0
- package/lib/internal-lambdas/sourceWatcherLambda/src/node_modules/@smithy/middleware-retry/node_modules/uuid/README.md +505 -0
- package/lib/internal-lambdas/sourceWatcherLambda/src/node_modules/@smithy/middleware-retry/node_modules/uuid/dist/bin/uuid +2 -0
- package/lib/internal-lambdas/sourceWatcherLambda/src/node_modules/@smithy/middleware-retry/node_modules/uuid/dist/esm-browser/index.js +9 -0
- package/lib/internal-lambdas/sourceWatcherLambda/src/node_modules/@smithy/middleware-retry/node_modules/uuid/dist/esm-browser/md5.js +215 -0
- package/lib/internal-lambdas/sourceWatcherLambda/src/node_modules/@smithy/middleware-retry/node_modules/uuid/dist/esm-browser/nil.js +1 -0
- package/lib/internal-lambdas/sourceWatcherLambda/src/node_modules/@smithy/middleware-retry/node_modules/uuid/dist/esm-browser/parse.js +35 -0
- package/lib/internal-lambdas/sourceWatcherLambda/src/node_modules/@smithy/middleware-retry/node_modules/uuid/dist/esm-browser/regex.js +1 -0
- package/lib/internal-lambdas/sourceWatcherLambda/src/node_modules/@smithy/middleware-retry/node_modules/uuid/dist/esm-browser/rng.js +19 -0
- package/lib/internal-lambdas/sourceWatcherLambda/src/node_modules/@smithy/middleware-retry/node_modules/uuid/dist/esm-browser/sha1.js +96 -0
- package/lib/internal-lambdas/sourceWatcherLambda/src/node_modules/@smithy/middleware-retry/node_modules/uuid/dist/esm-browser/stringify.js +30 -0
- package/lib/internal-lambdas/sourceWatcherLambda/src/node_modules/@smithy/middleware-retry/node_modules/uuid/dist/esm-browser/v1.js +95 -0
- package/lib/internal-lambdas/sourceWatcherLambda/src/node_modules/@smithy/middleware-retry/node_modules/uuid/dist/esm-browser/v3.js +4 -0
- package/lib/internal-lambdas/sourceWatcherLambda/src/node_modules/@smithy/middleware-retry/node_modules/uuid/dist/esm-browser/v35.js +64 -0
- package/lib/internal-lambdas/sourceWatcherLambda/src/node_modules/@smithy/middleware-retry/node_modules/uuid/dist/esm-browser/v4.js +24 -0
- package/lib/internal-lambdas/sourceWatcherLambda/src/node_modules/@smithy/middleware-retry/node_modules/uuid/dist/esm-browser/v5.js +4 -0
- package/lib/internal-lambdas/sourceWatcherLambda/src/node_modules/@smithy/middleware-retry/node_modules/uuid/dist/esm-browser/validate.js +7 -0
- package/lib/internal-lambdas/sourceWatcherLambda/src/node_modules/@smithy/middleware-retry/node_modules/uuid/dist/esm-browser/version.js +11 -0
- package/lib/internal-lambdas/sourceWatcherLambda/src/node_modules/@smithy/middleware-retry/node_modules/uuid/dist/esm-node/index.js +9 -0
- package/lib/internal-lambdas/sourceWatcherLambda/src/node_modules/@smithy/middleware-retry/node_modules/uuid/dist/esm-node/md5.js +13 -0
- package/lib/internal-lambdas/sourceWatcherLambda/src/node_modules/@smithy/middleware-retry/node_modules/uuid/dist/esm-node/nil.js +1 -0
- package/lib/internal-lambdas/sourceWatcherLambda/src/node_modules/@smithy/middleware-retry/node_modules/uuid/dist/esm-node/parse.js +35 -0
- package/lib/internal-lambdas/sourceWatcherLambda/src/node_modules/@smithy/middleware-retry/node_modules/uuid/dist/esm-node/regex.js +1 -0
- package/lib/internal-lambdas/sourceWatcherLambda/src/node_modules/@smithy/middleware-retry/node_modules/uuid/dist/esm-node/rng.js +12 -0
- package/lib/internal-lambdas/sourceWatcherLambda/src/node_modules/@smithy/middleware-retry/node_modules/uuid/dist/esm-node/sha1.js +13 -0
- package/lib/internal-lambdas/sourceWatcherLambda/src/node_modules/@smithy/middleware-retry/node_modules/uuid/dist/esm-node/stringify.js +29 -0
- package/lib/internal-lambdas/sourceWatcherLambda/src/node_modules/@smithy/middleware-retry/node_modules/uuid/dist/esm-node/v1.js +95 -0
- package/lib/internal-lambdas/sourceWatcherLambda/src/node_modules/@smithy/middleware-retry/node_modules/uuid/dist/esm-node/v3.js +4 -0
- package/lib/internal-lambdas/sourceWatcherLambda/src/node_modules/@smithy/middleware-retry/node_modules/uuid/dist/esm-node/v35.js +64 -0
- package/lib/internal-lambdas/sourceWatcherLambda/src/node_modules/@smithy/middleware-retry/node_modules/uuid/dist/esm-node/v4.js +24 -0
- package/lib/internal-lambdas/sourceWatcherLambda/src/node_modules/@smithy/middleware-retry/node_modules/uuid/dist/esm-node/v5.js +4 -0
- package/lib/internal-lambdas/sourceWatcherLambda/src/node_modules/@smithy/middleware-retry/node_modules/uuid/dist/esm-node/validate.js +7 -0
- package/lib/internal-lambdas/sourceWatcherLambda/src/node_modules/@smithy/middleware-retry/node_modules/uuid/dist/esm-node/version.js +11 -0
- package/lib/internal-lambdas/sourceWatcherLambda/src/node_modules/@smithy/middleware-retry/node_modules/uuid/dist/index.js +79 -0
- package/lib/internal-lambdas/sourceWatcherLambda/src/node_modules/@smithy/middleware-retry/node_modules/uuid/dist/md5-browser.js +223 -0
- package/lib/internal-lambdas/sourceWatcherLambda/src/node_modules/@smithy/middleware-retry/node_modules/uuid/dist/md5.js +23 -0
- package/lib/internal-lambdas/sourceWatcherLambda/src/node_modules/@smithy/middleware-retry/node_modules/uuid/dist/nil.js +8 -0
- package/lib/internal-lambdas/sourceWatcherLambda/src/node_modules/@smithy/middleware-retry/node_modules/uuid/dist/parse.js +45 -0
- package/lib/internal-lambdas/sourceWatcherLambda/src/node_modules/@smithy/middleware-retry/node_modules/uuid/dist/regex.js +8 -0
- package/lib/internal-lambdas/sourceWatcherLambda/src/node_modules/@smithy/middleware-retry/node_modules/uuid/dist/rng-browser.js +26 -0
- package/lib/internal-lambdas/sourceWatcherLambda/src/node_modules/@smithy/middleware-retry/node_modules/uuid/dist/rng.js +24 -0
- package/lib/internal-lambdas/sourceWatcherLambda/src/node_modules/@smithy/middleware-retry/node_modules/uuid/dist/sha1-browser.js +104 -0
- package/lib/internal-lambdas/sourceWatcherLambda/src/node_modules/@smithy/middleware-retry/node_modules/uuid/dist/sha1.js +23 -0
- package/lib/internal-lambdas/sourceWatcherLambda/src/node_modules/@smithy/middleware-retry/node_modules/uuid/dist/stringify.js +39 -0
- package/lib/internal-lambdas/sourceWatcherLambda/src/node_modules/@smithy/middleware-retry/node_modules/uuid/dist/umd/uuid.min.js +1 -0
- package/lib/internal-lambdas/sourceWatcherLambda/src/node_modules/@smithy/middleware-retry/node_modules/uuid/dist/umd/uuidNIL.min.js +1 -0
- package/lib/internal-lambdas/sourceWatcherLambda/src/node_modules/@smithy/middleware-retry/node_modules/uuid/dist/umd/uuidParse.min.js +1 -0
- package/lib/internal-lambdas/sourceWatcherLambda/src/node_modules/@smithy/middleware-retry/node_modules/uuid/dist/umd/uuidStringify.min.js +1 -0
- package/lib/internal-lambdas/sourceWatcherLambda/src/node_modules/@smithy/middleware-retry/node_modules/uuid/dist/umd/uuidValidate.min.js +1 -0
- package/lib/internal-lambdas/sourceWatcherLambda/src/node_modules/@smithy/middleware-retry/node_modules/uuid/dist/umd/uuidVersion.min.js +1 -0
- package/lib/internal-lambdas/sourceWatcherLambda/src/node_modules/@smithy/middleware-retry/node_modules/uuid/dist/umd/uuidv1.min.js +1 -0
- package/lib/internal-lambdas/sourceWatcherLambda/src/node_modules/@smithy/middleware-retry/node_modules/uuid/dist/umd/uuidv3.min.js +1 -0
- package/lib/internal-lambdas/sourceWatcherLambda/src/node_modules/@smithy/middleware-retry/node_modules/uuid/dist/umd/uuidv4.min.js +1 -0
- package/lib/internal-lambdas/sourceWatcherLambda/src/node_modules/@smithy/middleware-retry/node_modules/uuid/dist/umd/uuidv5.min.js +1 -0
- package/lib/internal-lambdas/sourceWatcherLambda/src/node_modules/@smithy/middleware-retry/node_modules/uuid/dist/uuid-bin.js +85 -0
- package/lib/internal-lambdas/sourceWatcherLambda/src/node_modules/@smithy/middleware-retry/node_modules/uuid/dist/v1.js +107 -0
- package/lib/internal-lambdas/sourceWatcherLambda/src/node_modules/@smithy/middleware-retry/node_modules/uuid/dist/v3.js +16 -0
- package/lib/internal-lambdas/sourceWatcherLambda/src/node_modules/@smithy/middleware-retry/node_modules/uuid/dist/v35.js +78 -0
- package/lib/internal-lambdas/sourceWatcherLambda/src/node_modules/@smithy/middleware-retry/node_modules/uuid/dist/v4.js +37 -0
- package/lib/internal-lambdas/sourceWatcherLambda/src/node_modules/@smithy/middleware-retry/node_modules/uuid/dist/v5.js +16 -0
- package/lib/internal-lambdas/sourceWatcherLambda/src/node_modules/@smithy/middleware-retry/node_modules/uuid/dist/validate.js +17 -0
- package/lib/internal-lambdas/sourceWatcherLambda/src/node_modules/@smithy/middleware-retry/node_modules/uuid/dist/version.js +21 -0
- package/lib/internal-lambdas/sourceWatcherLambda/src/node_modules/@smithy/middleware-retry/node_modules/uuid/package.json +135 -0
- package/lib/internal-lambdas/sourceWatcherLambda/src/node_modules/@smithy/middleware-retry/node_modules/uuid/wrapper.mjs +10 -0
- package/lib/internal-lambdas/sourceWatcherLambda/src/node_modules/jackspeak/dist/commonjs/parse-args.d.ts.map +1 -0
- package/lib/internal-lambdas/sourceWatcherLambda/src/node_modules/jackspeak/dist/commonjs/parse-args.js.map +1 -0
- package/lib/internal-lambdas/sourceWatcherLambda/src/node_modules/minimatch/dist/cjs/assert-valid-pattern.d.ts +2 -0
- package/lib/internal-lambdas/sourceWatcherLambda/src/node_modules/minimatch/dist/cjs/assert-valid-pattern.d.ts.map +1 -0
- package/lib/internal-lambdas/sourceWatcherLambda/src/node_modules/minimatch/dist/cjs/assert-valid-pattern.js +14 -0
- package/lib/internal-lambdas/sourceWatcherLambda/src/node_modules/minimatch/dist/cjs/assert-valid-pattern.js.map +1 -0
- package/lib/internal-lambdas/sourceWatcherLambda/src/node_modules/minimatch/dist/cjs/ast.d.ts +19 -0
- package/lib/internal-lambdas/sourceWatcherLambda/src/node_modules/minimatch/dist/cjs/ast.d.ts.map +1 -0
- package/lib/internal-lambdas/sourceWatcherLambda/src/node_modules/minimatch/dist/cjs/ast.js +589 -0
- package/lib/internal-lambdas/sourceWatcherLambda/src/node_modules/minimatch/dist/cjs/ast.js.map +1 -0
- package/lib/internal-lambdas/sourceWatcherLambda/src/node_modules/minimatch/dist/cjs/brace-expressions.d.ts +8 -0
- package/lib/internal-lambdas/sourceWatcherLambda/src/node_modules/minimatch/dist/cjs/brace-expressions.d.ts.map +1 -0
- package/lib/internal-lambdas/sourceWatcherLambda/src/node_modules/minimatch/dist/cjs/brace-expressions.js +152 -0
- package/lib/internal-lambdas/sourceWatcherLambda/src/node_modules/minimatch/dist/cjs/brace-expressions.js.map +1 -0
- package/lib/internal-lambdas/sourceWatcherLambda/src/node_modules/minimatch/dist/cjs/escape.d.ts +12 -0
- package/lib/internal-lambdas/sourceWatcherLambda/src/node_modules/minimatch/dist/cjs/escape.d.ts.map +1 -0
- package/lib/internal-lambdas/sourceWatcherLambda/src/node_modules/minimatch/dist/cjs/escape.js +22 -0
- package/lib/internal-lambdas/sourceWatcherLambda/src/node_modules/minimatch/dist/cjs/escape.js.map +1 -0
- package/lib/internal-lambdas/sourceWatcherLambda/src/node_modules/minimatch/dist/cjs/index.d.ts +94 -0
- package/lib/internal-lambdas/sourceWatcherLambda/src/node_modules/minimatch/dist/cjs/index.d.ts.map +1 -0
- package/lib/internal-lambdas/sourceWatcherLambda/src/node_modules/minimatch/dist/cjs/index.js +1011 -0
- package/lib/internal-lambdas/sourceWatcherLambda/src/node_modules/minimatch/dist/cjs/index.js.map +1 -0
- package/lib/internal-lambdas/sourceWatcherLambda/src/node_modules/minimatch/dist/cjs/package.json +3 -0
- package/lib/internal-lambdas/sourceWatcherLambda/src/node_modules/minimatch/dist/cjs/unescape.d.ts +17 -0
- package/lib/internal-lambdas/sourceWatcherLambda/src/node_modules/minimatch/dist/cjs/unescape.d.ts.map +1 -0
- package/lib/internal-lambdas/sourceWatcherLambda/src/node_modules/minimatch/dist/cjs/unescape.js +24 -0
- package/lib/internal-lambdas/sourceWatcherLambda/src/node_modules/minimatch/dist/cjs/unescape.js.map +1 -0
- package/lib/internal-lambdas/sourceWatcherLambda/src/node_modules/minimatch/dist/mjs/assert-valid-pattern.d.ts +2 -0
- package/lib/internal-lambdas/sourceWatcherLambda/src/node_modules/minimatch/dist/mjs/assert-valid-pattern.d.ts.map +1 -0
- package/lib/internal-lambdas/sourceWatcherLambda/src/node_modules/minimatch/dist/mjs/assert-valid-pattern.js +10 -0
- package/lib/internal-lambdas/sourceWatcherLambda/src/node_modules/minimatch/dist/mjs/assert-valid-pattern.js.map +1 -0
- package/lib/internal-lambdas/sourceWatcherLambda/src/node_modules/minimatch/dist/mjs/ast.d.ts +19 -0
- package/lib/internal-lambdas/sourceWatcherLambda/src/node_modules/minimatch/dist/mjs/ast.d.ts.map +1 -0
- package/lib/internal-lambdas/sourceWatcherLambda/src/node_modules/minimatch/dist/mjs/ast.js +585 -0
- package/lib/internal-lambdas/sourceWatcherLambda/src/node_modules/minimatch/dist/mjs/ast.js.map +1 -0
- package/lib/internal-lambdas/sourceWatcherLambda/src/node_modules/minimatch/dist/mjs/brace-expressions.d.ts +8 -0
- package/lib/internal-lambdas/sourceWatcherLambda/src/node_modules/minimatch/dist/mjs/brace-expressions.d.ts.map +1 -0
- package/lib/internal-lambdas/sourceWatcherLambda/src/node_modules/minimatch/dist/mjs/brace-expressions.js +148 -0
- package/lib/internal-lambdas/sourceWatcherLambda/src/node_modules/minimatch/dist/mjs/brace-expressions.js.map +1 -0
- package/lib/internal-lambdas/sourceWatcherLambda/src/node_modules/minimatch/dist/mjs/escape.d.ts +12 -0
- package/lib/internal-lambdas/sourceWatcherLambda/src/node_modules/minimatch/dist/mjs/escape.d.ts.map +1 -0
- package/lib/internal-lambdas/sourceWatcherLambda/src/node_modules/minimatch/dist/mjs/escape.js +18 -0
- package/lib/internal-lambdas/sourceWatcherLambda/src/node_modules/minimatch/dist/mjs/escape.js.map +1 -0
- package/lib/internal-lambdas/sourceWatcherLambda/src/node_modules/minimatch/dist/mjs/index.d.ts +94 -0
- package/lib/internal-lambdas/sourceWatcherLambda/src/node_modules/minimatch/dist/mjs/index.d.ts.map +1 -0
- package/lib/internal-lambdas/sourceWatcherLambda/src/node_modules/minimatch/dist/mjs/index.js +995 -0
- package/lib/internal-lambdas/sourceWatcherLambda/src/node_modules/minimatch/dist/mjs/index.js.map +1 -0
- package/lib/internal-lambdas/sourceWatcherLambda/src/node_modules/minimatch/dist/mjs/package.json +3 -0
- package/lib/internal-lambdas/sourceWatcherLambda/src/node_modules/minimatch/dist/mjs/unescape.d.ts +17 -0
- package/lib/internal-lambdas/sourceWatcherLambda/src/node_modules/minimatch/dist/mjs/unescape.d.ts.map +1 -0
- package/lib/internal-lambdas/sourceWatcherLambda/src/node_modules/minimatch/dist/mjs/unescape.js +20 -0
- package/lib/internal-lambdas/sourceWatcherLambda/src/node_modules/minimatch/dist/mjs/unescape.js.map +1 -0
- package/lib/static-host/static-host.js +1 -1
- package/package.json +1 -1
|
@@ -0,0 +1,244 @@
|
|
|
1
|
+
import {
|
|
2
|
+
doesIdentityRequireRefresh,
|
|
3
|
+
isIdentityExpired,
|
|
4
|
+
memoizeIdentityProvider,
|
|
5
|
+
normalizeProvider,
|
|
6
|
+
} from "@smithy/core";
|
|
7
|
+
import { SignatureV4, SignatureV4CryptoInit, SignatureV4Init } from "@smithy/signature-v4";
|
|
8
|
+
import {
|
|
9
|
+
AuthScheme,
|
|
10
|
+
AwsCredentialIdentity,
|
|
11
|
+
AwsCredentialIdentityProvider,
|
|
12
|
+
ChecksumConstructor,
|
|
13
|
+
HashConstructor,
|
|
14
|
+
MemoizedProvider,
|
|
15
|
+
Provider,
|
|
16
|
+
RegionInfo,
|
|
17
|
+
RegionInfoProvider,
|
|
18
|
+
RequestSigner,
|
|
19
|
+
} from "@smithy/types";
|
|
20
|
+
|
|
21
|
+
/**
|
|
22
|
+
* @internal
|
|
23
|
+
*/
|
|
24
|
+
export interface AwsSdkSigV4AuthInputConfig {
|
|
25
|
+
/**
|
|
26
|
+
* The credentials used to sign requests.
|
|
27
|
+
*/
|
|
28
|
+
credentials?: AwsCredentialIdentity | AwsCredentialIdentityProvider;
|
|
29
|
+
|
|
30
|
+
/**
|
|
31
|
+
* The signer to use when signing requests.
|
|
32
|
+
*/
|
|
33
|
+
signer?: RequestSigner | ((authScheme?: AuthScheme) => Promise<RequestSigner>);
|
|
34
|
+
|
|
35
|
+
/**
|
|
36
|
+
* Whether to escape request path when signing the request.
|
|
37
|
+
*/
|
|
38
|
+
signingEscapePath?: boolean;
|
|
39
|
+
|
|
40
|
+
/**
|
|
41
|
+
* An offset value in milliseconds to apply to all signing times.
|
|
42
|
+
*/
|
|
43
|
+
systemClockOffset?: number;
|
|
44
|
+
|
|
45
|
+
/**
|
|
46
|
+
* The region where you want to sign your request against. This
|
|
47
|
+
* can be different to the region in the endpoint.
|
|
48
|
+
*/
|
|
49
|
+
signingRegion?: string;
|
|
50
|
+
|
|
51
|
+
/**
|
|
52
|
+
* The injectable SigV4-compatible signer class constructor. If not supplied,
|
|
53
|
+
* regular SignatureV4 constructor will be used.
|
|
54
|
+
*
|
|
55
|
+
* @internal
|
|
56
|
+
*/
|
|
57
|
+
signerConstructor?: new (options: SignatureV4Init & SignatureV4CryptoInit) => RequestSigner;
|
|
58
|
+
}
|
|
59
|
+
|
|
60
|
+
/**
|
|
61
|
+
* @internal
|
|
62
|
+
*/
|
|
63
|
+
export interface AwsSdkSigV4PreviouslyResolved {
|
|
64
|
+
credentialDefaultProvider?: (input: any) => MemoizedProvider<AwsCredentialIdentity>;
|
|
65
|
+
region: string | Provider<string>;
|
|
66
|
+
sha256: ChecksumConstructor | HashConstructor;
|
|
67
|
+
signingName?: string;
|
|
68
|
+
regionInfoProvider?: RegionInfoProvider;
|
|
69
|
+
defaultSigningName?: string;
|
|
70
|
+
serviceId: string;
|
|
71
|
+
useFipsEndpoint: Provider<boolean>;
|
|
72
|
+
useDualstackEndpoint: Provider<boolean>;
|
|
73
|
+
}
|
|
74
|
+
|
|
75
|
+
/**
|
|
76
|
+
* @internal
|
|
77
|
+
*/
|
|
78
|
+
export interface AwsSdkSigV4AuthResolvedConfig {
|
|
79
|
+
/**
|
|
80
|
+
* Resolved value for input config {@link AwsSdkSigV4AuthInputConfig.credentials}
|
|
81
|
+
* This provider MAY memoize the loaded credentials for certain period.
|
|
82
|
+
* See {@link MemoizedProvider} for more information.
|
|
83
|
+
*/
|
|
84
|
+
credentials: AwsCredentialIdentityProvider;
|
|
85
|
+
/**
|
|
86
|
+
* Resolved value for input config {@link AwsSdkSigV4AuthInputConfig.signer}
|
|
87
|
+
*/
|
|
88
|
+
signer: (authScheme?: AuthScheme) => Promise<RequestSigner>;
|
|
89
|
+
/**
|
|
90
|
+
* Resolved value for input config {@link AwsSdkSigV4AuthInputConfig.signingEscapePath}
|
|
91
|
+
*/
|
|
92
|
+
signingEscapePath: boolean;
|
|
93
|
+
/**
|
|
94
|
+
* Resolved value for input config {@link AwsSdkSigV4AuthInputConfig.systemClockOffset}
|
|
95
|
+
*/
|
|
96
|
+
systemClockOffset: number;
|
|
97
|
+
}
|
|
98
|
+
|
|
99
|
+
/**
|
|
100
|
+
* @internal
|
|
101
|
+
*/
|
|
102
|
+
export const resolveAwsSdkSigV4Config = <T>(
|
|
103
|
+
config: T & AwsSdkSigV4AuthInputConfig & AwsSdkSigV4PreviouslyResolved
|
|
104
|
+
): T & AwsSdkSigV4AuthResolvedConfig => {
|
|
105
|
+
// Normalize credentials
|
|
106
|
+
let normalizedCreds: AwsCredentialIdentityProvider | undefined;
|
|
107
|
+
if (config.credentials) {
|
|
108
|
+
normalizedCreds = memoizeIdentityProvider(config.credentials, isIdentityExpired, doesIdentityRequireRefresh);
|
|
109
|
+
}
|
|
110
|
+
if (!normalizedCreds) {
|
|
111
|
+
// credentialDefaultProvider should always be populated, but in case
|
|
112
|
+
// it isn't, set a default identity provider that throws an error
|
|
113
|
+
if (config.credentialDefaultProvider) {
|
|
114
|
+
normalizedCreds = normalizeProvider(
|
|
115
|
+
config.credentialDefaultProvider(
|
|
116
|
+
Object.assign({}, config as any, {
|
|
117
|
+
parentClientConfig: config,
|
|
118
|
+
})
|
|
119
|
+
)
|
|
120
|
+
);
|
|
121
|
+
} else {
|
|
122
|
+
normalizedCreds = async () => {
|
|
123
|
+
throw new Error("`credentials` is missing");
|
|
124
|
+
};
|
|
125
|
+
}
|
|
126
|
+
}
|
|
127
|
+
|
|
128
|
+
// Populate sigv4 arguments
|
|
129
|
+
const {
|
|
130
|
+
// Default for signingEscapePath
|
|
131
|
+
signingEscapePath = true,
|
|
132
|
+
// Default for systemClockOffset
|
|
133
|
+
systemClockOffset = config.systemClockOffset || 0,
|
|
134
|
+
// No default for sha256 since it is platform dependent
|
|
135
|
+
sha256,
|
|
136
|
+
} = config;
|
|
137
|
+
|
|
138
|
+
// Resolve signer
|
|
139
|
+
let signer: (authScheme?: AuthScheme) => Promise<RequestSigner>;
|
|
140
|
+
if (config.signer) {
|
|
141
|
+
// if signer is supplied by user, normalize it to a function returning a promise for signer.
|
|
142
|
+
signer = normalizeProvider(config.signer);
|
|
143
|
+
} else if (config.regionInfoProvider) {
|
|
144
|
+
// This branch is for endpoints V1.
|
|
145
|
+
// construct a provider inferring signing from region.
|
|
146
|
+
signer = () =>
|
|
147
|
+
normalizeProvider(config.region)()
|
|
148
|
+
.then(
|
|
149
|
+
async (region) =>
|
|
150
|
+
[
|
|
151
|
+
(await config.regionInfoProvider!(region, {
|
|
152
|
+
useFipsEndpoint: await config.useFipsEndpoint(),
|
|
153
|
+
useDualstackEndpoint: await config.useDualstackEndpoint(),
|
|
154
|
+
})) || {},
|
|
155
|
+
region,
|
|
156
|
+
] as [RegionInfo, string]
|
|
157
|
+
)
|
|
158
|
+
.then(([regionInfo, region]) => {
|
|
159
|
+
const { signingRegion, signingService } = regionInfo;
|
|
160
|
+
// update client's singing region and signing service config if they are resolved.
|
|
161
|
+
// signing region resolving order: user supplied signingRegion -> endpoints.json inferred region -> client region
|
|
162
|
+
config.signingRegion = config.signingRegion || signingRegion || region;
|
|
163
|
+
// signing name resolving order:
|
|
164
|
+
// user supplied signingName -> endpoints.json inferred (credential scope -> model arnNamespace) -> model service id
|
|
165
|
+
config.signingName = config.signingName || signingService || config.serviceId;
|
|
166
|
+
|
|
167
|
+
const params: SignatureV4Init & SignatureV4CryptoInit = {
|
|
168
|
+
...config,
|
|
169
|
+
credentials: normalizedCreds!,
|
|
170
|
+
region: config.signingRegion,
|
|
171
|
+
service: config.signingName,
|
|
172
|
+
sha256,
|
|
173
|
+
uriEscapePath: signingEscapePath,
|
|
174
|
+
};
|
|
175
|
+
const SignerCtor = config.signerConstructor || SignatureV4;
|
|
176
|
+
return new SignerCtor(params);
|
|
177
|
+
});
|
|
178
|
+
} else {
|
|
179
|
+
// This branch is for endpoints V2.
|
|
180
|
+
// Handle endpoints v2 that resolved per-command
|
|
181
|
+
// TODO: need total refactor for reference auth architecture.
|
|
182
|
+
signer = async (authScheme?: AuthScheme) => {
|
|
183
|
+
authScheme = Object.assign(
|
|
184
|
+
{},
|
|
185
|
+
{
|
|
186
|
+
name: "sigv4",
|
|
187
|
+
signingName: config.signingName || config.defaultSigningName!,
|
|
188
|
+
signingRegion: await normalizeProvider(config.region)(),
|
|
189
|
+
properties: {},
|
|
190
|
+
},
|
|
191
|
+
authScheme
|
|
192
|
+
);
|
|
193
|
+
|
|
194
|
+
const signingRegion = authScheme.signingRegion;
|
|
195
|
+
const signingService = authScheme.signingName;
|
|
196
|
+
// update client's singing region and signing service config if they are resolved.
|
|
197
|
+
// signing region resolving order: user supplied signingRegion -> endpoints.json inferred region -> client region
|
|
198
|
+
config.signingRegion = config.signingRegion || signingRegion;
|
|
199
|
+
// signing name resolving order:
|
|
200
|
+
// user supplied signingName -> endpoints.json inferred (credential scope -> model arnNamespace) -> model service id
|
|
201
|
+
config.signingName = config.signingName || signingService || config.serviceId;
|
|
202
|
+
|
|
203
|
+
const params: SignatureV4Init & SignatureV4CryptoInit = {
|
|
204
|
+
...config,
|
|
205
|
+
credentials: normalizedCreds!,
|
|
206
|
+
region: config.signingRegion,
|
|
207
|
+
service: config.signingName,
|
|
208
|
+
sha256,
|
|
209
|
+
uriEscapePath: signingEscapePath,
|
|
210
|
+
};
|
|
211
|
+
|
|
212
|
+
const SignerCtor = config.signerConstructor || SignatureV4;
|
|
213
|
+
return new SignerCtor(params);
|
|
214
|
+
};
|
|
215
|
+
}
|
|
216
|
+
|
|
217
|
+
return {
|
|
218
|
+
...config,
|
|
219
|
+
systemClockOffset,
|
|
220
|
+
signingEscapePath,
|
|
221
|
+
credentials: normalizedCreds!,
|
|
222
|
+
signer,
|
|
223
|
+
};
|
|
224
|
+
};
|
|
225
|
+
|
|
226
|
+
/**
|
|
227
|
+
* @deprecated renamed to {@link AwsSdkSigV4AuthInputConfig}
|
|
228
|
+
*/
|
|
229
|
+
export interface AWSSDKSigV4AuthInputConfig extends AwsSdkSigV4AuthInputConfig {}
|
|
230
|
+
|
|
231
|
+
/**
|
|
232
|
+
* @deprecated renamed to {@link AwsSdkSigV4PreviouslyResolved}
|
|
233
|
+
*/
|
|
234
|
+
export interface AWSSDKSigV4PreviouslyResolved extends AwsSdkSigV4PreviouslyResolved {}
|
|
235
|
+
|
|
236
|
+
/**
|
|
237
|
+
* @deprecated renamed to {@link AwsSdkSigV4AuthResolvedConfig}
|
|
238
|
+
*/
|
|
239
|
+
export interface AWSSDKSigV4AuthResolvedConfig extends AwsSdkSigV4AuthResolvedConfig {}
|
|
240
|
+
|
|
241
|
+
/**
|
|
242
|
+
* @deprecated renamed to {@link resolveAwsSdkSigV4Config}
|
|
243
|
+
*/
|
|
244
|
+
export const resolveAWSSDKSigV4Config = resolveAwsSdkSigV4Config;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from "./aws_sdk";
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import { getSkewCorrectedDate } from "./getSkewCorrectedDate";
|
|
2
|
+
|
|
3
|
+
describe(getSkewCorrectedDate.name, () => {
|
|
4
|
+
const mockDateNow = Date.now();
|
|
5
|
+
|
|
6
|
+
beforeEach(() => {
|
|
7
|
+
jest.spyOn(Date, "now").mockReturnValue(mockDateNow);
|
|
8
|
+
});
|
|
9
|
+
|
|
10
|
+
afterEach(() => {
|
|
11
|
+
jest.clearAllMocks();
|
|
12
|
+
});
|
|
13
|
+
|
|
14
|
+
it.each([-100000, -100, 0, 100, 100000])("systemClockOffset: %d", (systemClockOffset) => {
|
|
15
|
+
expect(getSkewCorrectedDate(systemClockOffset)).toStrictEqual(new Date(mockDateNow + systemClockOffset));
|
|
16
|
+
});
|
|
17
|
+
});
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @internal
|
|
3
|
+
*
|
|
4
|
+
* Returns a date that is corrected for clock skew.
|
|
5
|
+
*
|
|
6
|
+
* @param systemClockOffset The offset of the system clock in milliseconds.
|
|
7
|
+
*/
|
|
8
|
+
export const getSkewCorrectedDate = (systemClockOffset: number) => new Date(Date.now() + systemClockOffset);
|
|
@@ -0,0 +1,37 @@
|
|
|
1
|
+
import { getUpdatedSystemClockOffset } from "./getUpdatedSystemClockOffset";
|
|
2
|
+
import { isClockSkewed } from "./isClockSkewed";
|
|
3
|
+
|
|
4
|
+
jest.mock("./isClockSkewed");
|
|
5
|
+
|
|
6
|
+
describe(getUpdatedSystemClockOffset.name, () => {
|
|
7
|
+
// Mock ServerTime is accurate to last second, to remove milliseconds information.
|
|
8
|
+
const mockClockTime = new Date(Math.floor(Date.now() / 1000) * 1000);
|
|
9
|
+
const mockSystemClockOffset = 100;
|
|
10
|
+
|
|
11
|
+
afterEach(() => {
|
|
12
|
+
jest.clearAllMocks();
|
|
13
|
+
});
|
|
14
|
+
|
|
15
|
+
it("returns passed systemClockOffset when clock is not skewed", () => {
|
|
16
|
+
(isClockSkewed as jest.Mock).mockReturnValue(false);
|
|
17
|
+
expect(getUpdatedSystemClockOffset(mockClockTime.toString(), mockSystemClockOffset)).toEqual(mockSystemClockOffset);
|
|
18
|
+
});
|
|
19
|
+
|
|
20
|
+
describe("returns difference between serverTime and current time when clock is skewed", () => {
|
|
21
|
+
const dateDotNowFn = Date.now;
|
|
22
|
+
|
|
23
|
+
beforeEach(() => {
|
|
24
|
+
(isClockSkewed as jest.Mock).mockReturnValue(true);
|
|
25
|
+
jest.spyOn(Date, "now").mockReturnValueOnce(mockClockTime.getTime());
|
|
26
|
+
});
|
|
27
|
+
|
|
28
|
+
afterEach(() => {
|
|
29
|
+
Date.now = dateDotNowFn;
|
|
30
|
+
});
|
|
31
|
+
|
|
32
|
+
it.each([1000, 100000])("difference: %d", (difference) => {
|
|
33
|
+
const updatedClockTime = new Date(mockClockTime.getTime() + difference);
|
|
34
|
+
expect(getUpdatedSystemClockOffset(updatedClockTime.toString(), mockSystemClockOffset)).toEqual(difference);
|
|
35
|
+
});
|
|
36
|
+
});
|
|
37
|
+
});
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import { isClockSkewed } from "./isClockSkewed";
|
|
2
|
+
|
|
3
|
+
/**
|
|
4
|
+
* @internal
|
|
5
|
+
*
|
|
6
|
+
* If clock is skewed, it returns the difference between serverTime and current time.
|
|
7
|
+
* If clock is not skewed, it returns currentSystemClockOffset.
|
|
8
|
+
*
|
|
9
|
+
* @param clockTime The string value of the server time.
|
|
10
|
+
* @param currentSystemClockOffset The current system clock offset.
|
|
11
|
+
*/
|
|
12
|
+
export const getUpdatedSystemClockOffset = (clockTime: string, currentSystemClockOffset: number): number => {
|
|
13
|
+
const clockTimeInMs = Date.parse(clockTime);
|
|
14
|
+
if (isClockSkewed(clockTimeInMs, currentSystemClockOffset)) {
|
|
15
|
+
return clockTimeInMs - Date.now();
|
|
16
|
+
}
|
|
17
|
+
return currentSystemClockOffset;
|
|
18
|
+
};
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
import { getSkewCorrectedDate } from "./getSkewCorrectedDate";
|
|
2
|
+
import { isClockSkewed } from "./isClockSkewed";
|
|
3
|
+
|
|
4
|
+
jest.mock("./getSkewCorrectedDate");
|
|
5
|
+
|
|
6
|
+
describe(isClockSkewed.name, () => {
|
|
7
|
+
const mockSystemClockOffset = 100;
|
|
8
|
+
const mockSkewCorrectedDate = new Date();
|
|
9
|
+
|
|
10
|
+
beforeEach(() => {
|
|
11
|
+
(getSkewCorrectedDate as jest.Mock).mockReturnValue(mockSkewCorrectedDate);
|
|
12
|
+
});
|
|
13
|
+
|
|
14
|
+
afterEach(() => {
|
|
15
|
+
expect(getSkewCorrectedDate).toHaveBeenCalledWith(mockSystemClockOffset);
|
|
16
|
+
jest.clearAllMocks();
|
|
17
|
+
});
|
|
18
|
+
|
|
19
|
+
describe("returns true for time difference >=300000", () => {
|
|
20
|
+
it.each([300000, 500000])("difference: %d", (difference) => {
|
|
21
|
+
expect(isClockSkewed(mockSkewCorrectedDate.getTime() + difference, mockSystemClockOffset)).toBe(true);
|
|
22
|
+
expect(isClockSkewed(mockSkewCorrectedDate.getTime() - difference, mockSystemClockOffset)).toBe(true);
|
|
23
|
+
});
|
|
24
|
+
});
|
|
25
|
+
|
|
26
|
+
describe("returns false for time difference <300000", () => {
|
|
27
|
+
it.each([299999, 100000, 0])("difference: %d", (difference) => {
|
|
28
|
+
expect(isClockSkewed(mockSkewCorrectedDate.getTime() + difference, mockSystemClockOffset)).toBe(false);
|
|
29
|
+
expect(isClockSkewed(mockSkewCorrectedDate.getTime() - difference, mockSystemClockOffset)).toBe(false);
|
|
30
|
+
});
|
|
31
|
+
});
|
|
32
|
+
});
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import { getSkewCorrectedDate } from "./getSkewCorrectedDate";
|
|
2
|
+
|
|
3
|
+
/**
|
|
4
|
+
* @internal
|
|
5
|
+
*
|
|
6
|
+
* Checks if the provided date is within the skew window of 300000ms.
|
|
7
|
+
*
|
|
8
|
+
* @param clockTime - The time to check for skew in milliseconds.
|
|
9
|
+
* @param systemClockOffset - The offset of the system clock in milliseconds.
|
|
10
|
+
*/
|
|
11
|
+
export const isClockSkewed = (clockTime: number, systemClockOffset: number) =>
|
|
12
|
+
Math.abs(getSkewCorrectedDate(systemClockOffset).getTime() - clockTime) >= 300000;
|
|
@@ -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,5 @@
|
|
|
1
|
+
import { collectBody } from "@smithy/smithy-client";
|
|
2
|
+
import type { HttpResponse, SerdeContext } from "@smithy/types";
|
|
3
|
+
|
|
4
|
+
export const collectBodyString = (streamBody: any, context: SerdeContext): Promise<string> =>
|
|
5
|
+
collectBody(streamBody, context).then((body) => context.utf8Encoder(body));
|
|
@@ -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
|
+
};
|
|
@@ -0,0 +1,60 @@
|
|
|
1
|
+
import type { HttpResponse, SerdeContext } from "@smithy/types";
|
|
2
|
+
|
|
3
|
+
import { collectBodyString } from "../common";
|
|
4
|
+
|
|
5
|
+
export const parseJsonBody = (streamBody: any, context: SerdeContext): any =>
|
|
6
|
+
collectBodyString(streamBody, context).then((encoded) => {
|
|
7
|
+
if (encoded.length) {
|
|
8
|
+
try {
|
|
9
|
+
return JSON.parse(encoded);
|
|
10
|
+
} catch (e: any) {
|
|
11
|
+
if (e?.name === "SyntaxError") {
|
|
12
|
+
Object.defineProperty(e, "$responseBodyText", {
|
|
13
|
+
value: encoded,
|
|
14
|
+
});
|
|
15
|
+
}
|
|
16
|
+
throw e;
|
|
17
|
+
}
|
|
18
|
+
}
|
|
19
|
+
return {};
|
|
20
|
+
});
|
|
21
|
+
|
|
22
|
+
export const parseJsonErrorBody = async (errorBody: any, context: SerdeContext) => {
|
|
23
|
+
const value = await parseJsonBody(errorBody, context);
|
|
24
|
+
value.message = value.message ?? value.Message;
|
|
25
|
+
return value;
|
|
26
|
+
};
|
|
27
|
+
|
|
28
|
+
export const loadRestJsonErrorCode = (output: HttpResponse, data: any): string | undefined => {
|
|
29
|
+
const findKey = (object: any, key: string) => Object.keys(object).find((k) => k.toLowerCase() === key.toLowerCase());
|
|
30
|
+
|
|
31
|
+
const sanitizeErrorCode = (rawValue: string | number): string => {
|
|
32
|
+
let cleanValue = rawValue;
|
|
33
|
+
if (typeof cleanValue === "number") {
|
|
34
|
+
cleanValue = cleanValue.toString();
|
|
35
|
+
}
|
|
36
|
+
if (cleanValue.indexOf(",") >= 0) {
|
|
37
|
+
cleanValue = cleanValue.split(",")[0];
|
|
38
|
+
}
|
|
39
|
+
if (cleanValue.indexOf(":") >= 0) {
|
|
40
|
+
cleanValue = cleanValue.split(":")[0];
|
|
41
|
+
}
|
|
42
|
+
if (cleanValue.indexOf("#") >= 0) {
|
|
43
|
+
cleanValue = cleanValue.split("#")[1];
|
|
44
|
+
}
|
|
45
|
+
return cleanValue;
|
|
46
|
+
};
|
|
47
|
+
|
|
48
|
+
const headerKey = findKey(output.headers, "x-amzn-errortype");
|
|
49
|
+
if (headerKey !== undefined) {
|
|
50
|
+
return sanitizeErrorCode(output.headers[headerKey]);
|
|
51
|
+
}
|
|
52
|
+
|
|
53
|
+
if (data.code !== undefined) {
|
|
54
|
+
return sanitizeErrorCode(data.code);
|
|
55
|
+
}
|
|
56
|
+
|
|
57
|
+
if (data["__type"] !== undefined) {
|
|
58
|
+
return sanitizeErrorCode(data["__type"]);
|
|
59
|
+
}
|
|
60
|
+
};
|