@slycode/slycode 0.2.11 → 0.2.13
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/dist/messaging/index.js +4 -2
- package/dist/messaging/index.js.map +1 -1
- package/dist/messaging/state.js +1 -0
- package/dist/messaging/state.js.map +1 -1
- package/dist/messaging/stt.d.ts +1 -0
- package/dist/messaging/stt.js +66 -57
- package/dist/messaging/stt.js.map +1 -1
- package/dist/messaging/types.d.ts +1 -0
- package/dist/web/.next/BUILD_ID +1 -1
- package/dist/web/.next/build-manifest.json +2 -2
- package/dist/web/.next/node_modules/@aws-sdk/client-s3-ecbef8e33fd0b8f0/dist-cjs/auth/httpAuthSchemeProvider.js +126 -0
- package/dist/web/.next/node_modules/@aws-sdk/client-s3-ecbef8e33fd0b8f0/dist-cjs/endpoint/endpointResolver.js +33 -0
- package/dist/web/.next/node_modules/@aws-sdk/client-s3-ecbef8e33fd0b8f0/dist-cjs/endpoint/ruleset.js +7 -0
- package/dist/web/.next/node_modules/@aws-sdk/client-s3-ecbef8e33fd0b8f0/dist-cjs/index.js +3057 -0
- package/dist/web/.next/node_modules/@aws-sdk/client-s3-ecbef8e33fd0b8f0/dist-cjs/models/S3ServiceException.js +12 -0
- package/dist/web/.next/node_modules/@aws-sdk/client-s3-ecbef8e33fd0b8f0/dist-cjs/models/errors.js +203 -0
- package/dist/web/.next/node_modules/@aws-sdk/client-s3-ecbef8e33fd0b8f0/dist-cjs/runtimeConfig.js +67 -0
- package/dist/web/.next/node_modules/@aws-sdk/client-s3-ecbef8e33fd0b8f0/dist-cjs/runtimeConfig.shared.js +56 -0
- package/dist/web/.next/node_modules/@aws-sdk/client-s3-ecbef8e33fd0b8f0/dist-cjs/schemas/schemas_0.js +3258 -0
- package/dist/web/.next/node_modules/@aws-sdk/client-s3-ecbef8e33fd0b8f0/package.json +127 -0
- package/dist/web/.next/prerender-manifest.json +3 -3
- package/dist/web/.next/server/app/_global-error.html +2 -2
- package/dist/web/.next/server/app/_global-error.rsc +1 -1
- package/dist/web/.next/server/app/_global-error.segments/__PAGE__.segment.rsc +1 -1
- package/dist/web/.next/server/app/_global-error.segments/_full.segment.rsc +1 -1
- package/dist/web/.next/server/app/_global-error.segments/_head.segment.rsc +1 -1
- package/dist/web/.next/server/app/_global-error.segments/_index.segment.rsc +1 -1
- package/dist/web/.next/server/app/_global-error.segments/_tree.segment.rsc +1 -1
- package/dist/web/.next/server/app/_not-found.html +1 -1
- package/dist/web/.next/server/app/_not-found.rsc +1 -1
- package/dist/web/.next/server/app/_not-found.segments/_full.segment.rsc +1 -1
- package/dist/web/.next/server/app/_not-found.segments/_head.segment.rsc +1 -1
- package/dist/web/.next/server/app/_not-found.segments/_index.segment.rsc +1 -1
- package/dist/web/.next/server/app/_not-found.segments/_not-found/__PAGE__.segment.rsc +1 -1
- package/dist/web/.next/server/app/_not-found.segments/_not-found.segment.rsc +1 -1
- package/dist/web/.next/server/app/_not-found.segments/_tree.segment.rsc +1 -1
- package/dist/web/.next/server/app/api/transcribe/route.js +5 -5
- package/dist/web/.next/server/app/api/transcribe/route.js.nft.json +1 -1
- package/dist/web/.next/server/app/page_client-reference-manifest.js +1 -1
- package/dist/web/.next/server/app/project/[id]/page_client-reference-manifest.js +1 -1
- package/dist/web/.next/server/chunks/[root-of-the-server]__1b9e0d6e._.js +19 -0
- package/dist/web/.next/server/chunks/{[root-of-the-server]__a4d171b5._.js → [root-of-the-server]__4297cb97._.js} +3 -3
- package/dist/web/.next/server/chunks/[root-of-the-server]__52da7fe0._.js +5 -0
- package/dist/web/.next/server/chunks/{[root-of-the-server]__53ef96b9._.js → [root-of-the-server]__cf14e306._.js} +2 -2
- package/dist/web/.next/server/chunks/[root-of-the-server]__d5272169._.js +3 -0
- package/dist/web/.next/server/chunks/[root-of-the-server]__d56e68cb._.js +3 -0
- package/dist/web/.next/server/chunks/[root-of-the-server]__f5dae2ad._.js +3 -0
- package/dist/web/.next/server/chunks/{node_modules_ec9ae6c4._.js → node_modules_269a84e6._.js} +5 -5
- package/dist/web/.next/server/chunks/node_modules_9fc3887b._.js +3 -0
- package/dist/web/.next/server/chunks/node_modules_@aws-sdk_credential-provider-sso_dist-es_loadSso_570f147e.js +3 -0
- package/dist/web/.next/server/chunks/node_modules_@aws-sdk_nested-clients_dist-es_submodules_sts_index_c78619b3.js +1 -1
- package/dist/web/.next/server/chunks/node_modules_@smithy_smithy-client_dist-es_create-aggregated-client_db42850b.js +3 -0
- package/dist/web/.next/server/chunks/node_modules_c58ca22f._.js +3 -0
- package/dist/web/.next/server/chunks/node_modules_f96dfac4._.js +7 -0
- package/dist/web/.next/server/pages/404.html +1 -1
- package/dist/web/.next/server/pages/500.html +2 -2
- package/dist/web/.next/server/server-reference-manifest.js +1 -1
- package/dist/web/.next/server/server-reference-manifest.json +1 -1
- package/dist/web/.next/static/chunks/{0bab8c7c82cef548.js → 17bf7ad67057dc74.js} +1 -1
- package/dist/web/.next/static/chunks/{1b46e836090e130b.js → 29b5d391d655a999.js} +1 -1
- package/dist/web/.next/static/chunks/{345c46e638c28d26.js → 8cb404d087e9f3c7.js} +1 -1
- package/dist/web/.next/static/chunks/{de965b463aff71a9.js → e8b318caa49fce00.js} +1 -1
- package/dist/web/node_modules/@aws/lambda-invoke-store/dist-cjs/invoke-store.js +119 -0
- package/dist/web/node_modules/@aws/lambda-invoke-store/package.json +55 -0
- package/dist/web/node_modules/@aws-crypto/crc32/build/main/aws_crc32.js +31 -0
- package/dist/web/node_modules/@aws-crypto/crc32/build/main/index.js +108 -0
- package/dist/web/node_modules/@aws-crypto/crc32/package.json +32 -0
- package/dist/web/node_modules/@aws-crypto/crc32c/build/main/aws_crc32c.js +31 -0
- package/dist/web/node_modules/@aws-crypto/crc32c/build/main/index.js +78 -0
- package/dist/web/node_modules/@aws-crypto/crc32c/package.json +32 -0
- package/dist/web/node_modules/@aws-crypto/util/build/main/convertToBuffer.js +24 -0
- package/dist/web/node_modules/@aws-crypto/util/build/main/index.js +14 -0
- package/dist/web/node_modules/@aws-crypto/util/build/main/isEmptyData.js +13 -0
- package/dist/web/node_modules/@aws-crypto/util/build/main/numToUint8.js +15 -0
- package/dist/web/node_modules/@aws-crypto/util/build/main/uint32ArrayFrom.js +20 -0
- package/dist/web/node_modules/@aws-crypto/util/node_modules/@smithy/is-array-buffer/dist-cjs/index.js +32 -0
- package/dist/web/node_modules/@aws-crypto/util/node_modules/@smithy/is-array-buffer/package.json +60 -0
- package/dist/web/node_modules/@aws-crypto/util/node_modules/@smithy/util-buffer-from/dist-cjs/index.js +47 -0
- package/dist/web/node_modules/@aws-crypto/util/node_modules/@smithy/util-buffer-from/package.json +61 -0
- package/dist/web/node_modules/@aws-crypto/util/node_modules/@smithy/util-utf8/dist-cjs/index.js +65 -0
- package/dist/web/node_modules/@aws-crypto/util/node_modules/@smithy/util-utf8/package.json +66 -0
- package/dist/web/node_modules/@aws-crypto/util/package.json +32 -0
- package/dist/web/node_modules/@aws-sdk/client-s3/dist-cjs/auth/httpAuthSchemeProvider.js +126 -0
- package/dist/web/node_modules/@aws-sdk/client-s3/dist-cjs/endpoint/endpointResolver.js +33 -0
- package/dist/web/node_modules/@aws-sdk/client-s3/dist-cjs/endpoint/ruleset.js +7 -0
- package/dist/web/node_modules/@aws-sdk/client-s3/dist-cjs/index.js +3057 -0
- package/dist/web/node_modules/@aws-sdk/client-s3/dist-cjs/models/S3ServiceException.js +12 -0
- package/dist/web/node_modules/@aws-sdk/client-s3/dist-cjs/models/errors.js +203 -0
- package/dist/web/node_modules/@aws-sdk/client-s3/dist-cjs/runtimeConfig.js +67 -0
- package/dist/web/node_modules/@aws-sdk/client-s3/dist-cjs/runtimeConfig.shared.js +56 -0
- package/dist/web/node_modules/@aws-sdk/client-s3/dist-cjs/schemas/schemas_0.js +3258 -0
- package/dist/web/node_modules/@aws-sdk/client-s3/package.json +127 -0
- package/dist/web/node_modules/@aws-sdk/core/dist-cjs/index.js +2212 -0
- package/dist/web/node_modules/@aws-sdk/core/dist-cjs/submodules/client/index.js +51 -0
- package/dist/web/node_modules/@aws-sdk/core/dist-cjs/submodules/httpAuthSchemes/index.js +307 -0
- package/dist/web/node_modules/@aws-sdk/core/dist-cjs/submodules/protocols/index.js +1859 -0
- package/dist/web/node_modules/@aws-sdk/core/package.json +121 -0
- package/dist/web/node_modules/@aws-sdk/crc64-nvme/dist-cjs/index.js +101 -0
- package/dist/web/node_modules/@aws-sdk/crc64-nvme/package.json +50 -0
- package/dist/web/node_modules/@aws-sdk/credential-provider-env/dist-cjs/index.js +41 -0
- package/dist/web/node_modules/@aws-sdk/credential-provider-env/package.json +63 -0
- package/dist/web/node_modules/@aws-sdk/credential-provider-http/dist-cjs/fromHttp/checkUrl.js +46 -0
- package/dist/web/node_modules/@aws-sdk/credential-provider-http/dist-cjs/fromHttp/fromHttp.js +70 -0
- package/dist/web/node_modules/@aws-sdk/credential-provider-http/dist-cjs/fromHttp/requestHelpers.js +53 -0
- package/dist/web/node_modules/@aws-sdk/credential-provider-http/dist-cjs/fromHttp/retry-wrapper.js +17 -0
- package/dist/web/node_modules/@aws-sdk/credential-provider-http/dist-cjs/index.js +5 -0
- package/dist/web/node_modules/@aws-sdk/credential-provider-http/package.json +70 -0
- package/dist/web/node_modules/@aws-sdk/credential-provider-ini/dist-cjs/index.js +224 -0
- package/dist/web/node_modules/@aws-sdk/credential-provider-ini/package.json +74 -0
- package/dist/web/node_modules/@aws-sdk/credential-provider-login/dist-cjs/index.js +286 -0
- package/dist/web/node_modules/@aws-sdk/credential-provider-login/package.json +68 -0
- package/dist/web/node_modules/@aws-sdk/credential-provider-node/dist-cjs/index.js +156 -0
- package/dist/web/node_modules/@aws-sdk/credential-provider-node/package.json +72 -0
- package/dist/web/node_modules/@aws-sdk/credential-provider-process/dist-cjs/index.js +79 -0
- package/dist/web/node_modules/@aws-sdk/credential-provider-process/package.json +64 -0
- package/dist/web/node_modules/@aws-sdk/credential-provider-sso/dist-cjs/index.js +192 -0
- package/dist/web/node_modules/@aws-sdk/credential-provider-sso/dist-cjs/loadSso-BKDNrsal.js +8 -0
- package/dist/web/node_modules/@aws-sdk/credential-provider-sso/package.json +66 -0
- package/dist/web/node_modules/@aws-sdk/credential-provider-web-identity/dist-cjs/fromTokenFile.js +34 -0
- package/dist/web/node_modules/@aws-sdk/credential-provider-web-identity/dist-cjs/fromWebToken.js +62 -0
- package/dist/web/node_modules/@aws-sdk/credential-provider-web-identity/dist-cjs/index.js +27 -0
- package/dist/web/node_modules/@aws-sdk/credential-provider-web-identity/package.json +73 -0
- package/dist/web/node_modules/@aws-sdk/middleware-bucket-endpoint/dist-cjs/index.js +352 -0
- package/dist/web/node_modules/@aws-sdk/middleware-bucket-endpoint/package.json +60 -0
- package/dist/web/node_modules/@aws-sdk/middleware-expect-continue/dist-cjs/index.js +48 -0
- package/dist/web/node_modules/@aws-sdk/middleware-expect-continue/package.json +58 -0
- package/dist/web/node_modules/@aws-sdk/middleware-flexible-checksums/dist-cjs/getCrc32ChecksumAlgorithmFunction.js +26 -0
- package/dist/web/node_modules/@aws-sdk/middleware-flexible-checksums/dist-cjs/index.js +451 -0
- package/dist/web/node_modules/@aws-sdk/middleware-flexible-checksums/package.json +78 -0
- package/dist/web/node_modules/@aws-sdk/middleware-host-header/dist-cjs/index.js +41 -0
- package/dist/web/node_modules/@aws-sdk/middleware-host-header/package.json +59 -0
- package/dist/web/node_modules/@aws-sdk/middleware-location-constraint/dist-cjs/index.js +30 -0
- package/dist/web/node_modules/@aws-sdk/middleware-location-constraint/package.json +57 -0
- package/dist/web/node_modules/@aws-sdk/middleware-logger/dist-cjs/index.js +48 -0
- package/dist/web/node_modules/@aws-sdk/middleware-logger/package.json +59 -0
- package/dist/web/node_modules/@aws-sdk/middleware-recursion-detection/dist-cjs/index.js +29 -0
- package/dist/web/node_modules/@aws-sdk/middleware-recursion-detection/dist-cjs/recursionDetectionMiddleware.js +33 -0
- package/dist/web/node_modules/@aws-sdk/middleware-recursion-detection/package.json +63 -0
- package/dist/web/node_modules/@aws-sdk/middleware-sdk-s3/dist-cjs/index.js +570 -0
- package/dist/web/node_modules/@aws-sdk/middleware-sdk-s3/package.json +72 -0
- package/dist/web/node_modules/@aws-sdk/middleware-ssec/dist-cjs/index.js +73 -0
- package/dist/web/node_modules/@aws-sdk/middleware-ssec/package.json +57 -0
- package/dist/web/node_modules/@aws-sdk/middleware-user-agent/dist-cjs/index.js +194 -0
- package/dist/web/node_modules/@aws-sdk/middleware-user-agent/package.json +63 -0
- package/dist/web/node_modules/@aws-sdk/nested-clients/dist-cjs/submodules/signin/auth/httpAuthSchemeProvider.js +56 -0
- package/dist/web/node_modules/@aws-sdk/nested-clients/dist-cjs/submodules/signin/endpoint/endpointResolver.js +18 -0
- package/dist/web/node_modules/@aws-sdk/nested-clients/dist-cjs/submodules/signin/endpoint/ruleset.js +133 -0
- package/dist/web/node_modules/@aws-sdk/nested-clients/dist-cjs/submodules/signin/index.js +170 -0
- package/dist/web/node_modules/@aws-sdk/nested-clients/dist-cjs/submodules/signin/models/SigninServiceException.js +12 -0
- package/dist/web/node_modules/@aws-sdk/nested-clients/dist-cjs/submodules/signin/models/errors.js +64 -0
- package/dist/web/node_modules/@aws-sdk/nested-clients/dist-cjs/submodules/signin/runtimeConfig.js +53 -0
- package/dist/web/node_modules/@aws-sdk/nested-clients/dist-cjs/submodules/signin/runtimeConfig.shared.js +49 -0
- package/dist/web/node_modules/@aws-sdk/nested-clients/dist-cjs/submodules/signin/schemas/schemas_0.js +125 -0
- package/dist/web/node_modules/@aws-sdk/nested-clients/dist-cjs/submodules/sso/auth/httpAuthSchemeProvider.js +56 -0
- package/dist/web/node_modules/@aws-sdk/nested-clients/dist-cjs/submodules/sso/endpoint/endpointResolver.js +18 -0
- package/dist/web/node_modules/@aws-sdk/nested-clients/dist-cjs/submodules/sso/endpoint/ruleset.js +106 -0
- package/dist/web/node_modules/@aws-sdk/nested-clients/dist-cjs/submodules/sso/index.js +160 -0
- package/dist/web/node_modules/@aws-sdk/nested-clients/dist-cjs/submodules/sso/models/SSOServiceException.js +12 -0
- package/dist/web/node_modules/@aws-sdk/nested-clients/dist-cjs/submodules/sso/models/errors.js +56 -0
- package/dist/web/node_modules/@aws-sdk/nested-clients/dist-cjs/submodules/sso/runtimeConfig.js +53 -0
- package/dist/web/node_modules/@aws-sdk/nested-clients/dist-cjs/submodules/sso/runtimeConfig.shared.js +49 -0
- package/dist/web/node_modules/@aws-sdk/nested-clients/dist-cjs/submodules/sso/schemas/schemas_0.js +90 -0
- package/dist/web/node_modules/@aws-sdk/nested-clients/dist-cjs/submodules/sso-oidc/auth/httpAuthSchemeProvider.js +56 -0
- package/dist/web/node_modules/@aws-sdk/nested-clients/dist-cjs/submodules/sso-oidc/endpoint/endpointResolver.js +18 -0
- package/dist/web/node_modules/@aws-sdk/nested-clients/dist-cjs/submodules/sso-oidc/endpoint/ruleset.js +106 -0
- package/dist/web/node_modules/@aws-sdk/nested-clients/dist-cjs/submodules/sso-oidc/index.js +172 -0
- package/dist/web/node_modules/@aws-sdk/nested-clients/dist-cjs/submodules/sso-oidc/models/SSOOIDCServiceException.js +12 -0
- package/dist/web/node_modules/@aws-sdk/nested-clients/dist-cjs/submodules/sso-oidc/models/errors.js +195 -0
- package/dist/web/node_modules/@aws-sdk/nested-clients/dist-cjs/submodules/sso-oidc/runtimeConfig.js +53 -0
- package/dist/web/node_modules/@aws-sdk/nested-clients/dist-cjs/submodules/sso-oidc/runtimeConfig.shared.js +49 -0
- package/dist/web/node_modules/@aws-sdk/nested-clients/dist-cjs/submodules/sso-oidc/schemas/schemas_0.js +140 -0
- package/dist/web/node_modules/@aws-sdk/nested-clients/dist-cjs/submodules/sts/STSClient.js +54 -0
- package/dist/web/node_modules/@aws-sdk/nested-clients/dist-cjs/submodules/sts/auth/httpAuthExtensionConfiguration.js +43 -0
- package/dist/web/node_modules/@aws-sdk/nested-clients/dist-cjs/submodules/sts/auth/httpAuthSchemeProvider.js +62 -0
- package/dist/web/node_modules/@aws-sdk/nested-clients/dist-cjs/submodules/sts/endpoint/EndpointParameters.js +19 -0
- package/dist/web/node_modules/@aws-sdk/nested-clients/dist-cjs/submodules/sts/endpoint/endpointResolver.js +18 -0
- package/dist/web/node_modules/@aws-sdk/nested-clients/dist-cjs/submodules/sts/endpoint/ruleset.js +145 -0
- package/dist/web/node_modules/@aws-sdk/nested-clients/dist-cjs/submodules/sts/index.js +202 -0
- package/dist/web/node_modules/@aws-sdk/nested-clients/dist-cjs/submodules/sts/models/STSServiceException.js +12 -0
- package/dist/web/node_modules/@aws-sdk/nested-clients/dist-cjs/submodules/sts/models/errors.js +95 -0
- package/dist/web/node_modules/@aws-sdk/nested-clients/dist-cjs/submodules/sts/runtimeConfig.js +67 -0
- package/dist/web/node_modules/@aws-sdk/nested-clients/dist-cjs/submodules/sts/runtimeConfig.shared.js +50 -0
- package/dist/web/node_modules/@aws-sdk/nested-clients/dist-cjs/submodules/sts/runtimeExtensions.js +13 -0
- package/dist/web/node_modules/@aws-sdk/nested-clients/dist-cjs/submodules/sts/schemas/schemas_0.js +195 -0
- package/dist/web/node_modules/@aws-sdk/nested-clients/package.json +147 -0
- package/dist/web/node_modules/@aws-sdk/region-config-resolver/dist-cjs/index.js +38 -0
- package/dist/web/node_modules/@aws-sdk/region-config-resolver/dist-cjs/regionConfig/stsRegionDefaultResolver.js +20 -0
- package/dist/web/node_modules/@aws-sdk/region-config-resolver/package.json +62 -0
- package/dist/web/node_modules/@aws-sdk/signature-v4-multi-region/dist-cjs/index.js +121 -0
- package/dist/web/node_modules/@aws-sdk/signature-v4-multi-region/package.json +61 -0
- package/dist/web/node_modules/@aws-sdk/token-providers/dist-cjs/index.js +157 -0
- package/dist/web/node_modules/@aws-sdk/token-providers/package.json +70 -0
- package/dist/web/node_modules/@aws-sdk/util-arn-parser/dist-cjs/index.js +27 -0
- package/dist/web/node_modules/@aws-sdk/util-arn-parser/package.json +55 -0
- package/dist/web/node_modules/@aws-sdk/util-endpoints/dist-cjs/index.js +406 -0
- package/dist/web/node_modules/@aws-sdk/util-endpoints/package.json +60 -0
- package/dist/web/node_modules/@aws-sdk/util-user-agent-node/dist-cjs/index.js +185 -0
- package/dist/web/node_modules/@aws-sdk/util-user-agent-node/package.json +69 -0
- package/dist/web/node_modules/@aws-sdk/xml-builder/dist-cjs/index.js +131 -0
- package/dist/web/node_modules/@aws-sdk/xml-builder/dist-cjs/xml-parser.js +23 -0
- package/dist/web/node_modules/@aws-sdk/xml-builder/package.json +63 -0
- package/dist/web/node_modules/@smithy/config-resolver/dist-cjs/index.js +198 -0
- package/dist/web/node_modules/@smithy/config-resolver/package.json +66 -0
- package/dist/web/node_modules/@smithy/core/dist-cjs/index.js +345 -0
- package/dist/web/node_modules/@smithy/core/dist-cjs/submodules/cbor/index.js +1096 -0
- package/dist/web/node_modules/@smithy/core/dist-cjs/submodules/endpoints/index.js +22 -0
- package/dist/web/node_modules/@smithy/core/dist-cjs/submodules/event-streams/index.js +259 -0
- package/dist/web/node_modules/@smithy/core/dist-cjs/submodules/protocols/index.js +884 -0
- package/dist/web/node_modules/@smithy/core/dist-cjs/submodules/schema/index.js +698 -0
- package/dist/web/node_modules/@smithy/core/dist-cjs/submodules/serde/index.js +694 -0
- package/dist/web/node_modules/@smithy/core/package.json +146 -0
- package/dist/web/node_modules/@smithy/credential-provider-imds/dist-cjs/index.js +372 -0
- package/dist/web/node_modules/@smithy/credential-provider-imds/package.json +70 -0
- package/dist/web/node_modules/@smithy/eventstream-codec/dist-cjs/index.js +388 -0
- package/dist/web/node_modules/@smithy/eventstream-codec/package.json +65 -0
- package/dist/web/node_modules/@smithy/eventstream-serde-config-resolver/dist-cjs/index.js +7 -0
- package/dist/web/node_modules/@smithy/eventstream-serde-config-resolver/package.json +62 -0
- package/dist/web/node_modules/@smithy/eventstream-serde-node/dist-cjs/index.js +53 -0
- package/dist/web/node_modules/@smithy/eventstream-serde-node/package.json +62 -0
- package/dist/web/node_modules/@smithy/eventstream-serde-universal/dist-cjs/index.js +132 -0
- package/dist/web/node_modules/@smithy/eventstream-serde-universal/package.json +66 -0
- package/dist/web/node_modules/@smithy/fetch-http-handler/dist-cjs/index.js +233 -0
- package/dist/web/node_modules/@smithy/fetch-http-handler/package.json +69 -0
- package/dist/web/node_modules/@smithy/hash-node/dist-cjs/index.js +42 -0
- package/dist/web/node_modules/@smithy/hash-node/package.json +65 -0
- package/dist/web/node_modules/@smithy/hash-stream-node/dist-cjs/index.js +67 -0
- package/dist/web/node_modules/@smithy/hash-stream-node/package.json +65 -0
- package/dist/web/node_modules/@smithy/is-array-buffer/dist-cjs/index.js +6 -0
- package/dist/web/node_modules/@smithy/is-array-buffer/package.json +61 -0
- package/dist/web/node_modules/@smithy/middleware-content-length/dist-cjs/index.js +46 -0
- package/dist/web/node_modules/@smithy/middleware-content-length/package.json +64 -0
- package/dist/web/node_modules/@smithy/middleware-endpoint/dist-cjs/adaptors/getEndpointFromConfig.js +7 -0
- package/dist/web/node_modules/@smithy/middleware-endpoint/dist-cjs/adaptors/getEndpointUrlConfig.js +35 -0
- package/dist/web/node_modules/@smithy/middleware-endpoint/dist-cjs/index.js +264 -0
- package/dist/web/node_modules/@smithy/middleware-endpoint/package.json +75 -0
- package/dist/web/node_modules/@smithy/middleware-retry/dist-cjs/index.js +355 -0
- package/dist/web/node_modules/@smithy/middleware-retry/dist-cjs/isStreamingPayload/isStreamingPayload.js +7 -0
- package/dist/web/node_modules/@smithy/middleware-retry/package.json +79 -0
- package/dist/web/node_modules/@smithy/middleware-serde/dist-cjs/index.js +104 -0
- package/dist/web/node_modules/@smithy/middleware-serde/package.json +66 -0
- package/dist/web/node_modules/@smithy/middleware-stack/dist-cjs/index.js +285 -0
- package/dist/web/node_modules/@smithy/middleware-stack/package.json +64 -0
- package/dist/web/node_modules/@smithy/node-config-provider/dist-cjs/index.js +62 -0
- package/dist/web/node_modules/@smithy/node-config-provider/package.json +66 -0
- package/dist/web/node_modules/@smithy/node-http-handler/dist-cjs/index.js +762 -0
- package/dist/web/node_modules/@smithy/node-http-handler/package.json +68 -0
- package/dist/web/node_modules/@smithy/property-provider/dist-cjs/index.js +117 -0
- package/dist/web/node_modules/@smithy/property-provider/package.json +61 -0
- package/dist/web/node_modules/@smithy/protocol-http/dist-cjs/index.js +169 -0
- package/dist/web/node_modules/@smithy/protocol-http/package.json +62 -0
- package/dist/web/node_modules/@smithy/querystring-builder/dist-cjs/index.js +26 -0
- package/dist/web/node_modules/@smithy/querystring-builder/package.json +61 -0
- package/dist/web/node_modules/@smithy/querystring-parser/dist-cjs/index.js +27 -0
- package/dist/web/node_modules/@smithy/querystring-parser/package.json +61 -0
- package/dist/web/node_modules/@smithy/service-error-classification/dist-cjs/index.js +77 -0
- package/dist/web/node_modules/@smithy/service-error-classification/package.json +60 -0
- package/dist/web/node_modules/@smithy/shared-ini-file-loader/dist-cjs/getHomeDir.js +26 -0
- package/dist/web/node_modules/@smithy/shared-ini-file-loader/dist-cjs/getSSOTokenFilepath.js +12 -0
- package/dist/web/node_modules/@smithy/shared-ini-file-loader/dist-cjs/getSSOTokenFromFile.js +15 -0
- package/dist/web/node_modules/@smithy/shared-ini-file-loader/dist-cjs/index.js +196 -0
- package/dist/web/node_modules/@smithy/shared-ini-file-loader/dist-cjs/readFile.js +16 -0
- package/dist/web/node_modules/@smithy/shared-ini-file-loader/package.json +73 -0
- package/dist/web/node_modules/@smithy/signature-v4/dist-cjs/index.js +556 -0
- package/dist/web/node_modules/@smithy/signature-v4/package.json +70 -0
- package/dist/web/node_modules/@smithy/smithy-client/dist-cjs/index.js +635 -0
- package/dist/web/node_modules/@smithy/smithy-client/package.json +70 -0
- package/dist/web/node_modules/@smithy/types/dist-cjs/index.js +91 -0
- package/dist/web/node_modules/@smithy/types/package.json +61 -0
- package/dist/web/node_modules/@smithy/url-parser/dist-cjs/index.js +23 -0
- package/dist/web/node_modules/@smithy/url-parser/package.json +62 -0
- package/dist/web/node_modules/@smithy/util-base64/dist-cjs/fromBase64.js +16 -0
- package/dist/web/node_modules/@smithy/util-base64/dist-cjs/index.js +27 -0
- package/dist/web/node_modules/@smithy/util-base64/dist-cjs/toBase64.js +19 -0
- package/dist/web/node_modules/@smithy/util-base64/package.json +74 -0
- package/dist/web/node_modules/@smithy/util-body-length-browser/dist-cjs/index.js +30 -0
- package/dist/web/node_modules/@smithy/util-body-length-browser/package.json +61 -0
- package/dist/web/node_modules/@smithy/util-body-length-node/dist-cjs/index.js +32 -0
- package/dist/web/node_modules/@smithy/util-body-length-node/package.json +62 -0
- package/dist/web/node_modules/@smithy/util-buffer-from/dist-cjs/index.js +20 -0
- package/dist/web/node_modules/@smithy/util-buffer-from/package.json +62 -0
- package/dist/web/node_modules/@smithy/util-config-provider/dist-cjs/index.js +30 -0
- package/dist/web/node_modules/@smithy/util-config-provider/package.json +63 -0
- package/dist/web/node_modules/@smithy/util-defaults-mode-node/dist-cjs/index.js +74 -0
- package/dist/web/node_modules/@smithy/util-defaults-mode-node/package.json +67 -0
- package/dist/web/node_modules/@smithy/util-endpoints/dist-cjs/index.js +472 -0
- package/dist/web/node_modules/@smithy/util-endpoints/package.json +69 -0
- package/dist/web/node_modules/@smithy/util-hex-encoding/dist-cjs/index.js +38 -0
- package/dist/web/node_modules/@smithy/util-hex-encoding/package.json +61 -0
- package/dist/web/node_modules/@smithy/util-middleware/dist-cjs/index.js +15 -0
- package/dist/web/node_modules/@smithy/util-middleware/package.json +67 -0
- package/dist/web/node_modules/@smithy/util-retry/dist-cjs/index.js +278 -0
- package/dist/web/node_modules/@smithy/util-retry/package.json +71 -0
- package/dist/web/node_modules/@smithy/util-stream/dist-cjs/ByteArrayCollector.js +36 -0
- package/dist/web/node_modules/@smithy/util-stream/dist-cjs/checksum/ChecksumStream.browser.js +7 -0
- package/dist/web/node_modules/@smithy/util-stream/dist-cjs/checksum/ChecksumStream.js +64 -0
- package/dist/web/node_modules/@smithy/util-stream/dist-cjs/checksum/createChecksumStream.browser.js +39 -0
- package/dist/web/node_modules/@smithy/util-stream/dist-cjs/checksum/createChecksumStream.js +12 -0
- package/dist/web/node_modules/@smithy/util-stream/dist-cjs/createBufferedReadable.js +60 -0
- package/dist/web/node_modules/@smithy/util-stream/dist-cjs/createBufferedReadableStream.js +103 -0
- package/dist/web/node_modules/@smithy/util-stream/dist-cjs/getAwsChunkedEncodingStream.browser.js +31 -0
- package/dist/web/node_modules/@smithy/util-stream/dist-cjs/getAwsChunkedEncodingStream.js +41 -0
- package/dist/web/node_modules/@smithy/util-stream/dist-cjs/headStream.browser.js +34 -0
- package/dist/web/node_modules/@smithy/util-stream/dist-cjs/headStream.js +42 -0
- package/dist/web/node_modules/@smithy/util-stream/dist-cjs/index.js +108 -0
- package/dist/web/node_modules/@smithy/util-stream/dist-cjs/sdk-stream-mixin.browser.js +68 -0
- package/dist/web/node_modules/@smithy/util-stream/dist-cjs/sdk-stream-mixin.js +54 -0
- package/dist/web/node_modules/@smithy/util-stream/dist-cjs/splitStream.browser.js +10 -0
- package/dist/web/node_modules/@smithy/util-stream/dist-cjs/splitStream.js +16 -0
- package/dist/web/node_modules/@smithy/util-stream/dist-cjs/stream-type-check.js +10 -0
- package/dist/web/node_modules/@smithy/util-stream/package.json +99 -0
- package/dist/web/node_modules/@smithy/util-uri-escape/dist-cjs/index.js +9 -0
- package/dist/web/node_modules/@smithy/util-uri-escape/package.json +60 -0
- package/dist/web/node_modules/@smithy/util-utf8/dist-cjs/index.js +32 -0
- package/dist/web/node_modules/@smithy/util-utf8/package.json +67 -0
- package/dist/web/node_modules/@smithy/util-waiter/dist-cjs/index.js +179 -0
- package/dist/web/node_modules/@smithy/util-waiter/package.json +63 -0
- package/dist/web/node_modules/@smithy/uuid/dist-cjs/index.js +36 -0
- package/dist/web/node_modules/@smithy/uuid/dist-cjs/randomUUID.js +6 -0
- package/dist/web/node_modules/@smithy/uuid/package.json +66 -0
- package/dist/web/node_modules/fast-xml-parser/lib/fxp.cjs +1 -0
- package/dist/web/node_modules/fast-xml-parser/package.json +94 -0
- package/dist/web/node_modules/tslib/package.json +47 -0
- package/dist/web/node_modules/tslib/tslib.js +484 -0
- package/dist/web/package-lock.json +433 -161
- package/dist/web/package.json +2 -1
- package/dist/web/src/app/api/transcribe/route.ts +84 -74
- package/dist/web/tsconfig.tsbuildinfo +1 -1
- package/lib/cli/stop.d.ts.map +1 -1
- package/lib/cli/stop.js +38 -18
- package/lib/cli/stop.js.map +1 -1
- package/package.json +1 -1
- package/templates/kanban-seed.json +1 -1
- package/dist/web/.next/server/chunks/[root-of-the-server]__0f8687da._.js +0 -3
- package/dist/web/.next/server/chunks/[root-of-the-server]__0f9b71fd._.js +0 -5
- package/dist/web/.next/server/chunks/[root-of-the-server]__1dec5018._.js +0 -3
- package/dist/web/.next/server/chunks/[root-of-the-server]__2605d761._.js +0 -9
- package/dist/web/.next/server/chunks/[root-of-the-server]__8ce673c9._.js +0 -3
- package/dist/web/.next/server/chunks/[root-of-the-server]__a43db24d._.js +0 -19
- package/dist/web/.next/server/chunks/[root-of-the-server]__c7ac3578._.js +0 -5
- package/dist/web/.next/server/chunks/a9bf9_@aws-sdk_core_dist-es_submodules_protocols_json_AwsRestJsonProtocol_764d7a83.js +0 -3
- /package/dist/web/.next/static/{eGpcv9LfmamGIm1II8SKL → 5LMWBFPioBVfTpJ4F5OT6}/_buildManifest.js +0 -0
- /package/dist/web/.next/static/{eGpcv9LfmamGIm1II8SKL → 5LMWBFPioBVfTpJ4F5OT6}/_clientMiddlewareManifest.json +0 -0
- /package/dist/web/.next/static/{eGpcv9LfmamGIm1II8SKL → 5LMWBFPioBVfTpJ4F5OT6}/_ssgManifest.js +0 -0
package/dist/web/node_modules/@aws-sdk/credential-provider-web-identity/dist-cjs/fromWebToken.js
ADDED
|
@@ -0,0 +1,62 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
3
|
+
if (k2 === undefined) k2 = k;
|
|
4
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
5
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
6
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
7
|
+
}
|
|
8
|
+
Object.defineProperty(o, k2, desc);
|
|
9
|
+
}) : (function(o, m, k, k2) {
|
|
10
|
+
if (k2 === undefined) k2 = k;
|
|
11
|
+
o[k2] = m[k];
|
|
12
|
+
}));
|
|
13
|
+
var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
|
|
14
|
+
Object.defineProperty(o, "default", { enumerable: true, value: v });
|
|
15
|
+
}) : function(o, v) {
|
|
16
|
+
o["default"] = v;
|
|
17
|
+
});
|
|
18
|
+
var __importStar = (this && this.__importStar) || (function () {
|
|
19
|
+
var ownKeys = function(o) {
|
|
20
|
+
ownKeys = Object.getOwnPropertyNames || function (o) {
|
|
21
|
+
var ar = [];
|
|
22
|
+
for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k;
|
|
23
|
+
return ar;
|
|
24
|
+
};
|
|
25
|
+
return ownKeys(o);
|
|
26
|
+
};
|
|
27
|
+
return function (mod) {
|
|
28
|
+
if (mod && mod.__esModule) return mod;
|
|
29
|
+
var result = {};
|
|
30
|
+
if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]);
|
|
31
|
+
__setModuleDefault(result, mod);
|
|
32
|
+
return result;
|
|
33
|
+
};
|
|
34
|
+
})();
|
|
35
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
36
|
+
exports.fromWebToken = void 0;
|
|
37
|
+
const fromWebToken = (init) => async (awsIdentityProperties) => {
|
|
38
|
+
init.logger?.debug("@aws-sdk/credential-provider-web-identity - fromWebToken");
|
|
39
|
+
const { roleArn, roleSessionName, webIdentityToken, providerId, policyArns, policy, durationSeconds } = init;
|
|
40
|
+
let { roleAssumerWithWebIdentity } = init;
|
|
41
|
+
if (!roleAssumerWithWebIdentity) {
|
|
42
|
+
const { getDefaultRoleAssumerWithWebIdentity } = await Promise.resolve().then(() => __importStar(require("@aws-sdk/nested-clients/sts")));
|
|
43
|
+
roleAssumerWithWebIdentity = getDefaultRoleAssumerWithWebIdentity({
|
|
44
|
+
...init.clientConfig,
|
|
45
|
+
credentialProviderLogger: init.logger,
|
|
46
|
+
parentClientConfig: {
|
|
47
|
+
...awsIdentityProperties?.callerClientConfig,
|
|
48
|
+
...init.parentClientConfig,
|
|
49
|
+
},
|
|
50
|
+
}, init.clientPlugins);
|
|
51
|
+
}
|
|
52
|
+
return roleAssumerWithWebIdentity({
|
|
53
|
+
RoleArn: roleArn,
|
|
54
|
+
RoleSessionName: roleSessionName ?? `aws-sdk-js-session-${Date.now()}`,
|
|
55
|
+
WebIdentityToken: webIdentityToken,
|
|
56
|
+
ProviderId: providerId,
|
|
57
|
+
PolicyArns: policyArns,
|
|
58
|
+
Policy: policy,
|
|
59
|
+
DurationSeconds: durationSeconds,
|
|
60
|
+
});
|
|
61
|
+
};
|
|
62
|
+
exports.fromWebToken = fromWebToken;
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
|
|
3
|
+
var fromTokenFile = require('./fromTokenFile');
|
|
4
|
+
var fromWebToken = require('./fromWebToken');
|
|
5
|
+
|
|
6
|
+
|
|
7
|
+
|
|
8
|
+
Object.prototype.hasOwnProperty.call(fromTokenFile, '__proto__') &&
|
|
9
|
+
!Object.prototype.hasOwnProperty.call(exports, '__proto__') &&
|
|
10
|
+
Object.defineProperty(exports, '__proto__', {
|
|
11
|
+
enumerable: true,
|
|
12
|
+
value: fromTokenFile['__proto__']
|
|
13
|
+
});
|
|
14
|
+
|
|
15
|
+
Object.keys(fromTokenFile).forEach(function (k) {
|
|
16
|
+
if (k !== 'default' && !Object.prototype.hasOwnProperty.call(exports, k)) exports[k] = fromTokenFile[k];
|
|
17
|
+
});
|
|
18
|
+
Object.prototype.hasOwnProperty.call(fromWebToken, '__proto__') &&
|
|
19
|
+
!Object.prototype.hasOwnProperty.call(exports, '__proto__') &&
|
|
20
|
+
Object.defineProperty(exports, '__proto__', {
|
|
21
|
+
enumerable: true,
|
|
22
|
+
value: fromWebToken['__proto__']
|
|
23
|
+
});
|
|
24
|
+
|
|
25
|
+
Object.keys(fromWebToken).forEach(function (k) {
|
|
26
|
+
if (k !== 'default' && !Object.prototype.hasOwnProperty.call(exports, k)) exports[k] = fromWebToken[k];
|
|
27
|
+
});
|
|
@@ -0,0 +1,73 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "@aws-sdk/credential-provider-web-identity",
|
|
3
|
+
"version": "3.972.22",
|
|
4
|
+
"description": "AWS credential provider that calls STS assumeRole for temporary AWS credentials",
|
|
5
|
+
"main": "./dist-cjs/index.js",
|
|
6
|
+
"module": "./dist-es/index.js",
|
|
7
|
+
"scripts": {
|
|
8
|
+
"build": "concurrently 'yarn:build:types' 'yarn:build:es' && yarn build:cjs",
|
|
9
|
+
"build:cjs": "node ../../scripts/compilation/inline credential-provider-web-identity",
|
|
10
|
+
"build:es": "tsc -p tsconfig.es.json",
|
|
11
|
+
"build:include:deps": "yarn g:turbo run build -F=\"$npm_package_name\"",
|
|
12
|
+
"build:types": "tsc -p tsconfig.types.json",
|
|
13
|
+
"build:types:downlevel": "downlevel-dts dist-types dist-types/ts3.4",
|
|
14
|
+
"clean": "premove dist-cjs dist-es dist-types tsconfig.cjs.tsbuildinfo tsconfig.es.tsbuildinfo tsconfig.types.tsbuildinfo",
|
|
15
|
+
"test": "yarn g:vitest run",
|
|
16
|
+
"test:watch": "yarn g:vitest watch"
|
|
17
|
+
},
|
|
18
|
+
"browser": {
|
|
19
|
+
"./dist-cjs/fromTokenFile": false,
|
|
20
|
+
"./dist-es/fromTokenFile": false
|
|
21
|
+
},
|
|
22
|
+
"react-native": {
|
|
23
|
+
"./dist-es/fromTokenFile": false,
|
|
24
|
+
"./dist-cjs/fromTokenFile": false
|
|
25
|
+
},
|
|
26
|
+
"keywords": [
|
|
27
|
+
"aws",
|
|
28
|
+
"credentials"
|
|
29
|
+
],
|
|
30
|
+
"sideEffects": false,
|
|
31
|
+
"author": {
|
|
32
|
+
"name": "AWS SDK for JavaScript Team",
|
|
33
|
+
"url": "https://aws.amazon.com/javascript/"
|
|
34
|
+
},
|
|
35
|
+
"license": "Apache-2.0",
|
|
36
|
+
"dependencies": {
|
|
37
|
+
"@aws-sdk/core": "^3.973.22",
|
|
38
|
+
"@aws-sdk/nested-clients": "^3.996.12",
|
|
39
|
+
"@aws-sdk/types": "^3.973.6",
|
|
40
|
+
"@smithy/property-provider": "^4.2.12",
|
|
41
|
+
"@smithy/shared-ini-file-loader": "^4.4.7",
|
|
42
|
+
"@smithy/types": "^4.13.1",
|
|
43
|
+
"tslib": "^2.6.2"
|
|
44
|
+
},
|
|
45
|
+
"devDependencies": {
|
|
46
|
+
"@tsconfig/recommended": "1.0.1",
|
|
47
|
+
"@types/node": "^20.14.8",
|
|
48
|
+
"concurrently": "7.0.0",
|
|
49
|
+
"downlevel-dts": "0.10.1",
|
|
50
|
+
"premove": "4.0.0",
|
|
51
|
+
"typescript": "~5.8.3"
|
|
52
|
+
},
|
|
53
|
+
"types": "./dist-types/index.d.ts",
|
|
54
|
+
"engines": {
|
|
55
|
+
"node": ">=20.0.0"
|
|
56
|
+
},
|
|
57
|
+
"typesVersions": {
|
|
58
|
+
"<4.5": {
|
|
59
|
+
"dist-types/*": [
|
|
60
|
+
"dist-types/ts3.4/*"
|
|
61
|
+
]
|
|
62
|
+
}
|
|
63
|
+
},
|
|
64
|
+
"files": [
|
|
65
|
+
"dist-*/**"
|
|
66
|
+
],
|
|
67
|
+
"homepage": "https://github.com/aws/aws-sdk-js-v3/tree/main/packages-internal/credential-provider-web-identity",
|
|
68
|
+
"repository": {
|
|
69
|
+
"type": "git",
|
|
70
|
+
"url": "https://github.com/aws/aws-sdk-js-v3.git",
|
|
71
|
+
"directory": "packages-internal/credential-provider-web-identity"
|
|
72
|
+
}
|
|
73
|
+
}
|
|
@@ -0,0 +1,352 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
|
|
3
|
+
var utilConfigProvider = require('@smithy/util-config-provider');
|
|
4
|
+
var utilArnParser = require('@aws-sdk/util-arn-parser');
|
|
5
|
+
var protocolHttp = require('@smithy/protocol-http');
|
|
6
|
+
|
|
7
|
+
const NODE_DISABLE_MULTIREGION_ACCESS_POINT_ENV_NAME = "AWS_S3_DISABLE_MULTIREGION_ACCESS_POINTS";
|
|
8
|
+
const NODE_DISABLE_MULTIREGION_ACCESS_POINT_INI_NAME = "s3_disable_multiregion_access_points";
|
|
9
|
+
const NODE_DISABLE_MULTIREGION_ACCESS_POINT_CONFIG_OPTIONS = {
|
|
10
|
+
environmentVariableSelector: (env) => utilConfigProvider.booleanSelector(env, NODE_DISABLE_MULTIREGION_ACCESS_POINT_ENV_NAME, utilConfigProvider.SelectorType.ENV),
|
|
11
|
+
configFileSelector: (profile) => utilConfigProvider.booleanSelector(profile, NODE_DISABLE_MULTIREGION_ACCESS_POINT_INI_NAME, utilConfigProvider.SelectorType.CONFIG),
|
|
12
|
+
default: false,
|
|
13
|
+
};
|
|
14
|
+
|
|
15
|
+
const NODE_USE_ARN_REGION_ENV_NAME = "AWS_S3_USE_ARN_REGION";
|
|
16
|
+
const NODE_USE_ARN_REGION_INI_NAME = "s3_use_arn_region";
|
|
17
|
+
const NODE_USE_ARN_REGION_CONFIG_OPTIONS = {
|
|
18
|
+
environmentVariableSelector: (env) => utilConfigProvider.booleanSelector(env, NODE_USE_ARN_REGION_ENV_NAME, utilConfigProvider.SelectorType.ENV),
|
|
19
|
+
configFileSelector: (profile) => utilConfigProvider.booleanSelector(profile, NODE_USE_ARN_REGION_INI_NAME, utilConfigProvider.SelectorType.CONFIG),
|
|
20
|
+
default: undefined,
|
|
21
|
+
};
|
|
22
|
+
|
|
23
|
+
const DOMAIN_PATTERN = /^[a-z0-9][a-z0-9\.\-]{1,61}[a-z0-9]$/;
|
|
24
|
+
const IP_ADDRESS_PATTERN = /(\d+\.){3}\d+/;
|
|
25
|
+
const DOTS_PATTERN = /\.\./;
|
|
26
|
+
const DOT_PATTERN = /\./;
|
|
27
|
+
const S3_HOSTNAME_PATTERN = /^(.+\.)?s3(-fips)?(\.dualstack)?[.-]([a-z0-9-]+)\./;
|
|
28
|
+
const S3_US_EAST_1_ALTNAME_PATTERN = /^s3(-external-1)?\.amazonaws\.com$/;
|
|
29
|
+
const AWS_PARTITION_SUFFIX = "amazonaws.com";
|
|
30
|
+
const isBucketNameOptions = (options) => typeof options.bucketName === "string";
|
|
31
|
+
const isDnsCompatibleBucketName = (bucketName) => DOMAIN_PATTERN.test(bucketName) && !IP_ADDRESS_PATTERN.test(bucketName) && !DOTS_PATTERN.test(bucketName);
|
|
32
|
+
const getRegionalSuffix = (hostname) => {
|
|
33
|
+
const parts = hostname.match(S3_HOSTNAME_PATTERN);
|
|
34
|
+
return [parts[4], hostname.replace(new RegExp(`^${parts[0]}`), "")];
|
|
35
|
+
};
|
|
36
|
+
const getSuffix = (hostname) => S3_US_EAST_1_ALTNAME_PATTERN.test(hostname) ? ["us-east-1", AWS_PARTITION_SUFFIX] : getRegionalSuffix(hostname);
|
|
37
|
+
const getSuffixForArnEndpoint = (hostname) => S3_US_EAST_1_ALTNAME_PATTERN.test(hostname)
|
|
38
|
+
? [hostname.replace(`.${AWS_PARTITION_SUFFIX}`, ""), AWS_PARTITION_SUFFIX]
|
|
39
|
+
: getRegionalSuffix(hostname);
|
|
40
|
+
const validateArnEndpointOptions = (options) => {
|
|
41
|
+
if (options.pathStyleEndpoint) {
|
|
42
|
+
throw new Error("Path-style S3 endpoint is not supported when bucket is an ARN");
|
|
43
|
+
}
|
|
44
|
+
if (options.accelerateEndpoint) {
|
|
45
|
+
throw new Error("Accelerate endpoint is not supported when bucket is an ARN");
|
|
46
|
+
}
|
|
47
|
+
if (!options.tlsCompatible) {
|
|
48
|
+
throw new Error("HTTPS is required when bucket is an ARN");
|
|
49
|
+
}
|
|
50
|
+
};
|
|
51
|
+
const validateService = (service) => {
|
|
52
|
+
if (service !== "s3" && service !== "s3-outposts" && service !== "s3-object-lambda") {
|
|
53
|
+
throw new Error("Expect 's3' or 's3-outposts' or 's3-object-lambda' in ARN service component");
|
|
54
|
+
}
|
|
55
|
+
};
|
|
56
|
+
const validateS3Service = (service) => {
|
|
57
|
+
if (service !== "s3") {
|
|
58
|
+
throw new Error("Expect 's3' in Accesspoint ARN service component");
|
|
59
|
+
}
|
|
60
|
+
};
|
|
61
|
+
const validateOutpostService = (service) => {
|
|
62
|
+
if (service !== "s3-outposts") {
|
|
63
|
+
throw new Error("Expect 's3-posts' in Outpost ARN service component");
|
|
64
|
+
}
|
|
65
|
+
};
|
|
66
|
+
const validatePartition = (partition, options) => {
|
|
67
|
+
if (partition !== options.clientPartition) {
|
|
68
|
+
throw new Error(`Partition in ARN is incompatible, got "${partition}" but expected "${options.clientPartition}"`);
|
|
69
|
+
}
|
|
70
|
+
};
|
|
71
|
+
const validateRegion = (region, options) => { };
|
|
72
|
+
const validateRegionalClient = (region) => {
|
|
73
|
+
if (["s3-external-1", "aws-global"].includes(region)) {
|
|
74
|
+
throw new Error(`Client region ${region} is not regional`);
|
|
75
|
+
}
|
|
76
|
+
};
|
|
77
|
+
const validateAccountId = (accountId) => {
|
|
78
|
+
if (!/[0-9]{12}/.exec(accountId)) {
|
|
79
|
+
throw new Error("Access point ARN accountID does not match regex '[0-9]{12}'");
|
|
80
|
+
}
|
|
81
|
+
};
|
|
82
|
+
const validateDNSHostLabel = (label, options = { tlsCompatible: true }) => {
|
|
83
|
+
if (label.length >= 64 ||
|
|
84
|
+
!/^[a-z0-9][a-z0-9.-]*[a-z0-9]$/.test(label) ||
|
|
85
|
+
/(\d+\.){3}\d+/.test(label) ||
|
|
86
|
+
/[.-]{2}/.test(label) ||
|
|
87
|
+
(options?.tlsCompatible && DOT_PATTERN.test(label))) {
|
|
88
|
+
throw new Error(`Invalid DNS label ${label}`);
|
|
89
|
+
}
|
|
90
|
+
};
|
|
91
|
+
const validateCustomEndpoint = (options) => {
|
|
92
|
+
if (options.isCustomEndpoint) {
|
|
93
|
+
if (options.dualstackEndpoint)
|
|
94
|
+
throw new Error("Dualstack endpoint is not supported with custom endpoint");
|
|
95
|
+
if (options.accelerateEndpoint)
|
|
96
|
+
throw new Error("Accelerate endpoint is not supported with custom endpoint");
|
|
97
|
+
}
|
|
98
|
+
};
|
|
99
|
+
const getArnResources = (resource) => {
|
|
100
|
+
const delimiter = resource.includes(":") ? ":" : "/";
|
|
101
|
+
const [resourceType, ...rest] = resource.split(delimiter);
|
|
102
|
+
if (resourceType === "accesspoint") {
|
|
103
|
+
if (rest.length !== 1 || rest[0] === "") {
|
|
104
|
+
throw new Error(`Access Point ARN should have one resource accesspoint${delimiter}{accesspointname}`);
|
|
105
|
+
}
|
|
106
|
+
return { accesspointName: rest[0] };
|
|
107
|
+
}
|
|
108
|
+
else if (resourceType === "outpost") {
|
|
109
|
+
if (!rest[0] || rest[1] !== "accesspoint" || !rest[2] || rest.length !== 3) {
|
|
110
|
+
throw new Error(`Outpost ARN should have resource outpost${delimiter}{outpostId}${delimiter}accesspoint${delimiter}{accesspointName}`);
|
|
111
|
+
}
|
|
112
|
+
const [outpostId, _, accesspointName] = rest;
|
|
113
|
+
return { outpostId, accesspointName };
|
|
114
|
+
}
|
|
115
|
+
else {
|
|
116
|
+
throw new Error(`ARN resource should begin with 'accesspoint${delimiter}' or 'outpost${delimiter}'`);
|
|
117
|
+
}
|
|
118
|
+
};
|
|
119
|
+
const validateNoDualstack = (dualstackEndpoint) => { };
|
|
120
|
+
const validateNoFIPS = (useFipsEndpoint) => {
|
|
121
|
+
if (useFipsEndpoint)
|
|
122
|
+
throw new Error(`FIPS region is not supported with Outpost.`);
|
|
123
|
+
};
|
|
124
|
+
const validateMrapAlias = (name) => {
|
|
125
|
+
try {
|
|
126
|
+
name.split(".").forEach((label) => {
|
|
127
|
+
validateDNSHostLabel(label);
|
|
128
|
+
});
|
|
129
|
+
}
|
|
130
|
+
catch (e) {
|
|
131
|
+
throw new Error(`"${name}" is not a DNS compatible name.`);
|
|
132
|
+
}
|
|
133
|
+
};
|
|
134
|
+
|
|
135
|
+
const bucketHostname = (options) => {
|
|
136
|
+
validateCustomEndpoint(options);
|
|
137
|
+
return isBucketNameOptions(options)
|
|
138
|
+
?
|
|
139
|
+
getEndpointFromBucketName(options)
|
|
140
|
+
:
|
|
141
|
+
getEndpointFromArn(options);
|
|
142
|
+
};
|
|
143
|
+
const getEndpointFromBucketName = ({ accelerateEndpoint = false, clientRegion: region, baseHostname, bucketName, dualstackEndpoint = false, fipsEndpoint = false, pathStyleEndpoint = false, tlsCompatible = true, isCustomEndpoint = false, }) => {
|
|
144
|
+
const [clientRegion, hostnameSuffix] = isCustomEndpoint ? [region, baseHostname] : getSuffix(baseHostname);
|
|
145
|
+
if (pathStyleEndpoint || !isDnsCompatibleBucketName(bucketName) || (tlsCompatible && DOT_PATTERN.test(bucketName))) {
|
|
146
|
+
return {
|
|
147
|
+
bucketEndpoint: false,
|
|
148
|
+
hostname: dualstackEndpoint ? `s3.dualstack.${clientRegion}.${hostnameSuffix}` : baseHostname,
|
|
149
|
+
};
|
|
150
|
+
}
|
|
151
|
+
if (accelerateEndpoint) {
|
|
152
|
+
baseHostname = `s3-accelerate${dualstackEndpoint ? ".dualstack" : ""}.${hostnameSuffix}`;
|
|
153
|
+
}
|
|
154
|
+
else if (dualstackEndpoint) {
|
|
155
|
+
baseHostname = `s3.dualstack.${clientRegion}.${hostnameSuffix}`;
|
|
156
|
+
}
|
|
157
|
+
return {
|
|
158
|
+
bucketEndpoint: true,
|
|
159
|
+
hostname: `${bucketName}.${baseHostname}`,
|
|
160
|
+
};
|
|
161
|
+
};
|
|
162
|
+
const getEndpointFromArn = (options) => {
|
|
163
|
+
const { isCustomEndpoint, baseHostname, clientRegion } = options;
|
|
164
|
+
const hostnameSuffix = isCustomEndpoint ? baseHostname : getSuffixForArnEndpoint(baseHostname)[1];
|
|
165
|
+
const { pathStyleEndpoint, accelerateEndpoint = false, fipsEndpoint = false, tlsCompatible = true, bucketName, clientPartition = "aws", } = options;
|
|
166
|
+
validateArnEndpointOptions({ pathStyleEndpoint, accelerateEndpoint, tlsCompatible });
|
|
167
|
+
const { service, partition, accountId, region, resource } = bucketName;
|
|
168
|
+
validateService(service);
|
|
169
|
+
validatePartition(partition, { clientPartition });
|
|
170
|
+
validateAccountId(accountId);
|
|
171
|
+
const { accesspointName, outpostId } = getArnResources(resource);
|
|
172
|
+
if (service === "s3-object-lambda") {
|
|
173
|
+
return getEndpointFromObjectLambdaArn({ ...options, tlsCompatible, bucketName, accesspointName, hostnameSuffix });
|
|
174
|
+
}
|
|
175
|
+
if (region === "") {
|
|
176
|
+
return getEndpointFromMRAPArn({ ...options, mrapAlias: accesspointName, hostnameSuffix });
|
|
177
|
+
}
|
|
178
|
+
if (outpostId) {
|
|
179
|
+
return getEndpointFromOutpostArn({ ...options, clientRegion, outpostId, accesspointName, hostnameSuffix });
|
|
180
|
+
}
|
|
181
|
+
return getEndpointFromAccessPointArn({ ...options, clientRegion, accesspointName, hostnameSuffix });
|
|
182
|
+
};
|
|
183
|
+
const getEndpointFromObjectLambdaArn = ({ dualstackEndpoint = false, fipsEndpoint = false, tlsCompatible = true, useArnRegion, clientRegion, clientSigningRegion = clientRegion, accesspointName, bucketName, hostnameSuffix, }) => {
|
|
184
|
+
const { accountId, region, service } = bucketName;
|
|
185
|
+
validateRegionalClient(clientRegion);
|
|
186
|
+
const DNSHostLabel = `${accesspointName}-${accountId}`;
|
|
187
|
+
validateDNSHostLabel(DNSHostLabel, { tlsCompatible });
|
|
188
|
+
const endpointRegion = useArnRegion ? region : clientRegion;
|
|
189
|
+
const signingRegion = useArnRegion ? region : clientSigningRegion;
|
|
190
|
+
return {
|
|
191
|
+
bucketEndpoint: true,
|
|
192
|
+
hostname: `${DNSHostLabel}.${service}${fipsEndpoint ? "-fips" : ""}.${endpointRegion}.${hostnameSuffix}`,
|
|
193
|
+
signingRegion,
|
|
194
|
+
signingService: service,
|
|
195
|
+
};
|
|
196
|
+
};
|
|
197
|
+
const getEndpointFromMRAPArn = ({ disableMultiregionAccessPoints, dualstackEndpoint = false, isCustomEndpoint, mrapAlias, hostnameSuffix, }) => {
|
|
198
|
+
if (disableMultiregionAccessPoints === true) {
|
|
199
|
+
throw new Error("SDK is attempting to use a MRAP ARN. Please enable to feature.");
|
|
200
|
+
}
|
|
201
|
+
validateMrapAlias(mrapAlias);
|
|
202
|
+
return {
|
|
203
|
+
bucketEndpoint: true,
|
|
204
|
+
hostname: `${mrapAlias}${isCustomEndpoint ? "" : `.accesspoint.s3-global`}.${hostnameSuffix}`,
|
|
205
|
+
signingRegion: "*",
|
|
206
|
+
};
|
|
207
|
+
};
|
|
208
|
+
const getEndpointFromOutpostArn = ({ useArnRegion, clientRegion, clientSigningRegion = clientRegion, bucketName, outpostId, dualstackEndpoint = false, fipsEndpoint = false, tlsCompatible = true, accesspointName, isCustomEndpoint, hostnameSuffix, }) => {
|
|
209
|
+
validateRegionalClient(clientRegion);
|
|
210
|
+
const DNSHostLabel = `${accesspointName}-${bucketName.accountId}`;
|
|
211
|
+
validateDNSHostLabel(DNSHostLabel, { tlsCompatible });
|
|
212
|
+
const endpointRegion = useArnRegion ? bucketName.region : clientRegion;
|
|
213
|
+
const signingRegion = useArnRegion ? bucketName.region : clientSigningRegion;
|
|
214
|
+
validateOutpostService(bucketName.service);
|
|
215
|
+
validateDNSHostLabel(outpostId, { tlsCompatible });
|
|
216
|
+
validateNoFIPS(fipsEndpoint);
|
|
217
|
+
const hostnamePrefix = `${DNSHostLabel}.${outpostId}`;
|
|
218
|
+
return {
|
|
219
|
+
bucketEndpoint: true,
|
|
220
|
+
hostname: `${hostnamePrefix}${isCustomEndpoint ? "" : `.s3-outposts.${endpointRegion}`}.${hostnameSuffix}`,
|
|
221
|
+
signingRegion,
|
|
222
|
+
signingService: "s3-outposts",
|
|
223
|
+
};
|
|
224
|
+
};
|
|
225
|
+
const getEndpointFromAccessPointArn = ({ useArnRegion, clientRegion, clientSigningRegion = clientRegion, bucketName, dualstackEndpoint = false, fipsEndpoint = false, tlsCompatible = true, accesspointName, isCustomEndpoint, hostnameSuffix, }) => {
|
|
226
|
+
validateRegionalClient(clientRegion);
|
|
227
|
+
const hostnamePrefix = `${accesspointName}-${bucketName.accountId}`;
|
|
228
|
+
validateDNSHostLabel(hostnamePrefix, { tlsCompatible });
|
|
229
|
+
const endpointRegion = useArnRegion ? bucketName.region : clientRegion;
|
|
230
|
+
const signingRegion = useArnRegion ? bucketName.region : clientSigningRegion;
|
|
231
|
+
validateS3Service(bucketName.service);
|
|
232
|
+
return {
|
|
233
|
+
bucketEndpoint: true,
|
|
234
|
+
hostname: `${hostnamePrefix}${isCustomEndpoint
|
|
235
|
+
? ""
|
|
236
|
+
: `.s3-accesspoint${fipsEndpoint ? "-fips" : ""}${dualstackEndpoint ? ".dualstack" : ""}.${endpointRegion}`}.${hostnameSuffix}`,
|
|
237
|
+
signingRegion,
|
|
238
|
+
};
|
|
239
|
+
};
|
|
240
|
+
|
|
241
|
+
const bucketEndpointMiddleware = (options) => (next, context) => async (args) => {
|
|
242
|
+
const { Bucket: bucketName } = args.input;
|
|
243
|
+
let replaceBucketInPath = options.bucketEndpoint;
|
|
244
|
+
const request = args.request;
|
|
245
|
+
if (protocolHttp.HttpRequest.isInstance(request)) {
|
|
246
|
+
if (options.bucketEndpoint) {
|
|
247
|
+
request.hostname = bucketName;
|
|
248
|
+
}
|
|
249
|
+
else if (utilArnParser.validate(bucketName)) {
|
|
250
|
+
const bucketArn = utilArnParser.parse(bucketName);
|
|
251
|
+
const clientRegion = await options.region();
|
|
252
|
+
const useDualstackEndpoint = await options.useDualstackEndpoint();
|
|
253
|
+
const useFipsEndpoint = await options.useFipsEndpoint();
|
|
254
|
+
const { partition, signingRegion = clientRegion } = (await options.regionInfoProvider(clientRegion, { useDualstackEndpoint, useFipsEndpoint })) || {};
|
|
255
|
+
const useArnRegion = await options.useArnRegion();
|
|
256
|
+
const { hostname, bucketEndpoint, signingRegion: modifiedSigningRegion, signingService, } = bucketHostname({
|
|
257
|
+
bucketName: bucketArn,
|
|
258
|
+
baseHostname: request.hostname,
|
|
259
|
+
accelerateEndpoint: options.useAccelerateEndpoint,
|
|
260
|
+
dualstackEndpoint: useDualstackEndpoint,
|
|
261
|
+
fipsEndpoint: useFipsEndpoint,
|
|
262
|
+
pathStyleEndpoint: options.forcePathStyle,
|
|
263
|
+
tlsCompatible: request.protocol === "https:",
|
|
264
|
+
useArnRegion,
|
|
265
|
+
clientPartition: partition,
|
|
266
|
+
clientSigningRegion: signingRegion,
|
|
267
|
+
clientRegion: clientRegion,
|
|
268
|
+
isCustomEndpoint: options.isCustomEndpoint,
|
|
269
|
+
disableMultiregionAccessPoints: await options.disableMultiregionAccessPoints(),
|
|
270
|
+
});
|
|
271
|
+
if (modifiedSigningRegion && modifiedSigningRegion !== signingRegion) {
|
|
272
|
+
context["signing_region"] = modifiedSigningRegion;
|
|
273
|
+
}
|
|
274
|
+
if (signingService && signingService !== "s3") {
|
|
275
|
+
context["signing_service"] = signingService;
|
|
276
|
+
}
|
|
277
|
+
request.hostname = hostname;
|
|
278
|
+
replaceBucketInPath = bucketEndpoint;
|
|
279
|
+
}
|
|
280
|
+
else {
|
|
281
|
+
const clientRegion = await options.region();
|
|
282
|
+
const dualstackEndpoint = await options.useDualstackEndpoint();
|
|
283
|
+
const fipsEndpoint = await options.useFipsEndpoint();
|
|
284
|
+
const { hostname, bucketEndpoint } = bucketHostname({
|
|
285
|
+
bucketName,
|
|
286
|
+
clientRegion,
|
|
287
|
+
baseHostname: request.hostname,
|
|
288
|
+
accelerateEndpoint: options.useAccelerateEndpoint,
|
|
289
|
+
dualstackEndpoint,
|
|
290
|
+
fipsEndpoint,
|
|
291
|
+
pathStyleEndpoint: options.forcePathStyle,
|
|
292
|
+
tlsCompatible: request.protocol === "https:",
|
|
293
|
+
isCustomEndpoint: options.isCustomEndpoint,
|
|
294
|
+
});
|
|
295
|
+
request.hostname = hostname;
|
|
296
|
+
replaceBucketInPath = bucketEndpoint;
|
|
297
|
+
}
|
|
298
|
+
if (replaceBucketInPath) {
|
|
299
|
+
request.path = request.path.replace(/^(\/)?[^\/]+/, "");
|
|
300
|
+
if (request.path === "") {
|
|
301
|
+
request.path = "/";
|
|
302
|
+
}
|
|
303
|
+
}
|
|
304
|
+
}
|
|
305
|
+
return next({ ...args, request });
|
|
306
|
+
};
|
|
307
|
+
const bucketEndpointMiddlewareOptions = {
|
|
308
|
+
tags: ["BUCKET_ENDPOINT"],
|
|
309
|
+
name: "bucketEndpointMiddleware",
|
|
310
|
+
relation: "before",
|
|
311
|
+
toMiddleware: "hostHeaderMiddleware",
|
|
312
|
+
override: true,
|
|
313
|
+
};
|
|
314
|
+
const getBucketEndpointPlugin = (options) => ({
|
|
315
|
+
applyToStack: (clientStack) => {
|
|
316
|
+
clientStack.addRelativeTo(bucketEndpointMiddleware(options), bucketEndpointMiddlewareOptions);
|
|
317
|
+
},
|
|
318
|
+
});
|
|
319
|
+
|
|
320
|
+
function resolveBucketEndpointConfig(input) {
|
|
321
|
+
const { bucketEndpoint = false, forcePathStyle = false, useAccelerateEndpoint = false, useArnRegion, disableMultiregionAccessPoints = false, } = input;
|
|
322
|
+
return Object.assign(input, {
|
|
323
|
+
bucketEndpoint,
|
|
324
|
+
forcePathStyle,
|
|
325
|
+
useAccelerateEndpoint,
|
|
326
|
+
useArnRegion: typeof useArnRegion === "function" ? useArnRegion : () => Promise.resolve(useArnRegion),
|
|
327
|
+
disableMultiregionAccessPoints: typeof disableMultiregionAccessPoints === "function"
|
|
328
|
+
? disableMultiregionAccessPoints
|
|
329
|
+
: () => Promise.resolve(disableMultiregionAccessPoints),
|
|
330
|
+
});
|
|
331
|
+
}
|
|
332
|
+
|
|
333
|
+
exports.NODE_DISABLE_MULTIREGION_ACCESS_POINT_CONFIG_OPTIONS = NODE_DISABLE_MULTIREGION_ACCESS_POINT_CONFIG_OPTIONS;
|
|
334
|
+
exports.NODE_DISABLE_MULTIREGION_ACCESS_POINT_ENV_NAME = NODE_DISABLE_MULTIREGION_ACCESS_POINT_ENV_NAME;
|
|
335
|
+
exports.NODE_DISABLE_MULTIREGION_ACCESS_POINT_INI_NAME = NODE_DISABLE_MULTIREGION_ACCESS_POINT_INI_NAME;
|
|
336
|
+
exports.NODE_USE_ARN_REGION_CONFIG_OPTIONS = NODE_USE_ARN_REGION_CONFIG_OPTIONS;
|
|
337
|
+
exports.NODE_USE_ARN_REGION_ENV_NAME = NODE_USE_ARN_REGION_ENV_NAME;
|
|
338
|
+
exports.NODE_USE_ARN_REGION_INI_NAME = NODE_USE_ARN_REGION_INI_NAME;
|
|
339
|
+
exports.bucketEndpointMiddleware = bucketEndpointMiddleware;
|
|
340
|
+
exports.bucketEndpointMiddlewareOptions = bucketEndpointMiddlewareOptions;
|
|
341
|
+
exports.bucketHostname = bucketHostname;
|
|
342
|
+
exports.getArnResources = getArnResources;
|
|
343
|
+
exports.getBucketEndpointPlugin = getBucketEndpointPlugin;
|
|
344
|
+
exports.getSuffixForArnEndpoint = getSuffixForArnEndpoint;
|
|
345
|
+
exports.resolveBucketEndpointConfig = resolveBucketEndpointConfig;
|
|
346
|
+
exports.validateAccountId = validateAccountId;
|
|
347
|
+
exports.validateDNSHostLabel = validateDNSHostLabel;
|
|
348
|
+
exports.validateNoDualstack = validateNoDualstack;
|
|
349
|
+
exports.validateNoFIPS = validateNoFIPS;
|
|
350
|
+
exports.validateOutpostService = validateOutpostService;
|
|
351
|
+
exports.validatePartition = validatePartition;
|
|
352
|
+
exports.validateRegion = validateRegion;
|
|
@@ -0,0 +1,60 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "@aws-sdk/middleware-bucket-endpoint",
|
|
3
|
+
"version": "3.972.8",
|
|
4
|
+
"scripts": {
|
|
5
|
+
"build": "concurrently 'yarn:build:types' 'yarn:build:es' && yarn build:cjs",
|
|
6
|
+
"build:cjs": "node ../../scripts/compilation/inline middleware-bucket-endpoint",
|
|
7
|
+
"build:es": "tsc -p tsconfig.es.json",
|
|
8
|
+
"build:include:deps": "yarn g:turbo run build -F=\"$npm_package_name\"",
|
|
9
|
+
"build:types": "tsc -p tsconfig.types.json",
|
|
10
|
+
"build:types:downlevel": "downlevel-dts dist-types dist-types/ts3.4",
|
|
11
|
+
"clean": "premove dist-cjs dist-es dist-types tsconfig.cjs.tsbuildinfo tsconfig.es.tsbuildinfo tsconfig.types.tsbuildinfo",
|
|
12
|
+
"extract:docs": "api-extractor run --local",
|
|
13
|
+
"test": "yarn g:vitest run",
|
|
14
|
+
"test:watch": "yarn g:vitest watch"
|
|
15
|
+
},
|
|
16
|
+
"main": "./dist-cjs/index.js",
|
|
17
|
+
"module": "./dist-es/index.js",
|
|
18
|
+
"types": "./dist-types/index.d.ts",
|
|
19
|
+
"sideEffects": false,
|
|
20
|
+
"author": {
|
|
21
|
+
"name": "AWS SDK for JavaScript Team",
|
|
22
|
+
"url": "https://aws.amazon.com/javascript/"
|
|
23
|
+
},
|
|
24
|
+
"license": "Apache-2.0",
|
|
25
|
+
"dependencies": {
|
|
26
|
+
"@aws-sdk/types": "^3.973.6",
|
|
27
|
+
"@aws-sdk/util-arn-parser": "^3.972.3",
|
|
28
|
+
"@smithy/node-config-provider": "^4.3.12",
|
|
29
|
+
"@smithy/protocol-http": "^5.3.12",
|
|
30
|
+
"@smithy/types": "^4.13.1",
|
|
31
|
+
"@smithy/util-config-provider": "^4.2.2",
|
|
32
|
+
"tslib": "^2.6.2"
|
|
33
|
+
},
|
|
34
|
+
"devDependencies": {
|
|
35
|
+
"@tsconfig/recommended": "1.0.1",
|
|
36
|
+
"concurrently": "7.0.0",
|
|
37
|
+
"downlevel-dts": "0.10.1",
|
|
38
|
+
"premove": "4.0.0",
|
|
39
|
+
"typescript": "~5.8.3"
|
|
40
|
+
},
|
|
41
|
+
"engines": {
|
|
42
|
+
"node": ">=20.0.0"
|
|
43
|
+
},
|
|
44
|
+
"typesVersions": {
|
|
45
|
+
"<4.5": {
|
|
46
|
+
"dist-types/*": [
|
|
47
|
+
"dist-types/ts3.4/*"
|
|
48
|
+
]
|
|
49
|
+
}
|
|
50
|
+
},
|
|
51
|
+
"files": [
|
|
52
|
+
"dist-*/**"
|
|
53
|
+
],
|
|
54
|
+
"homepage": "https://github.com/aws/aws-sdk-js-v3/tree/main/packages-internal/middleware-bucket-endpoint",
|
|
55
|
+
"repository": {
|
|
56
|
+
"type": "git",
|
|
57
|
+
"url": "https://github.com/aws/aws-sdk-js-v3.git",
|
|
58
|
+
"directory": "packages-internal/middleware-bucket-endpoint"
|
|
59
|
+
}
|
|
60
|
+
}
|
|
@@ -0,0 +1,48 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
|
|
3
|
+
var protocolHttp = require('@smithy/protocol-http');
|
|
4
|
+
|
|
5
|
+
function addExpectContinueMiddleware(options) {
|
|
6
|
+
return (next) => async (args) => {
|
|
7
|
+
const { request } = args;
|
|
8
|
+
if (options.expectContinueHeader !== false &&
|
|
9
|
+
protocolHttp.HttpRequest.isInstance(request) &&
|
|
10
|
+
request.body &&
|
|
11
|
+
options.runtime === "node" &&
|
|
12
|
+
options.requestHandler?.constructor?.name !== "FetchHttpHandler") {
|
|
13
|
+
let sendHeader = true;
|
|
14
|
+
if (typeof options.expectContinueHeader === "number") {
|
|
15
|
+
try {
|
|
16
|
+
const bodyLength = Number(request.headers?.["content-length"]) ?? options.bodyLengthChecker?.(request.body) ?? Infinity;
|
|
17
|
+
sendHeader = bodyLength >= options.expectContinueHeader;
|
|
18
|
+
}
|
|
19
|
+
catch (e) { }
|
|
20
|
+
}
|
|
21
|
+
else {
|
|
22
|
+
sendHeader = !!options.expectContinueHeader;
|
|
23
|
+
}
|
|
24
|
+
if (sendHeader) {
|
|
25
|
+
request.headers.Expect = "100-continue";
|
|
26
|
+
}
|
|
27
|
+
}
|
|
28
|
+
return next({
|
|
29
|
+
...args,
|
|
30
|
+
request,
|
|
31
|
+
});
|
|
32
|
+
};
|
|
33
|
+
}
|
|
34
|
+
const addExpectContinueMiddlewareOptions = {
|
|
35
|
+
step: "build",
|
|
36
|
+
tags: ["SET_EXPECT_HEADER", "EXPECT_HEADER"],
|
|
37
|
+
name: "addExpectContinueMiddleware",
|
|
38
|
+
override: true,
|
|
39
|
+
};
|
|
40
|
+
const getAddExpectContinuePlugin = (options) => ({
|
|
41
|
+
applyToStack: (clientStack) => {
|
|
42
|
+
clientStack.add(addExpectContinueMiddleware(options), addExpectContinueMiddlewareOptions);
|
|
43
|
+
},
|
|
44
|
+
});
|
|
45
|
+
|
|
46
|
+
exports.addExpectContinueMiddleware = addExpectContinueMiddleware;
|
|
47
|
+
exports.addExpectContinueMiddlewareOptions = addExpectContinueMiddlewareOptions;
|
|
48
|
+
exports.getAddExpectContinuePlugin = getAddExpectContinuePlugin;
|