@slycode/slycode 0.2.10 → 0.2.12
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/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/page_client-reference-manifest.js +1 -1
- package/dist/web/.next/server/app/_not-found.html +1 -1
- package/dist/web/.next/server/app/_not-found.rsc +2 -2
- package/dist/web/.next/server/app/_not-found.segments/_full.segment.rsc +2 -2
- 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 +2 -2
- 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 +2 -2
- package/dist/web/.next/server/app/api/cli-assets/assistant/route.js.nft.json +1 -1
- package/dist/web/.next/server/app/api/cli-assets/fix/route.js.nft.json +1 -1
- package/dist/web/.next/server/app/api/cli-assets/import/route.js.nft.json +1 -1
- package/dist/web/.next/server/app/api/cli-assets/route.js.nft.json +1 -1
- package/dist/web/.next/server/app/api/cli-assets/store/preview/route.js.nft.json +1 -1
- package/dist/web/.next/server/app/api/cli-assets/store/route.js.nft.json +1 -1
- package/dist/web/.next/server/app/api/cli-assets/sync/route.js.nft.json +1 -1
- package/dist/web/.next/server/app/api/cli-assets/updates/route.js.nft.json +1 -1
- package/dist/web/.next/server/app/api/dashboard/route.js.nft.json +1 -1
- package/dist/web/.next/server/app/api/file/route.js.nft.json +1 -1
- package/dist/web/.next/server/app/api/git-status/route.js.nft.json +1 -1
- package/dist/web/.next/server/app/api/kanban/route.js.nft.json +1 -1
- package/dist/web/.next/server/app/api/kanban/stream/route.js.nft.json +1 -1
- package/dist/web/.next/server/app/api/projects/[id]/route.js.nft.json +1 -1
- package/dist/web/.next/server/app/api/projects/reorder/route.js.nft.json +1 -1
- package/dist/web/.next/server/app/api/projects/route.js.nft.json +1 -1
- package/dist/web/.next/server/app/api/scheduler/route.js.nft.json +1 -1
- package/dist/web/.next/server/app/api/search/route.js.nft.json +1 -1
- package/dist/web/.next/server/app/api/sly-actions/invalidate/route.js.nft.json +1 -1
- package/dist/web/.next/server/app/api/sly-actions/route.js.nft.json +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/api/version-check/route.js.nft.json +1 -1
- package/dist/web/.next/server/app/page.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.js.nft.json +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]__104b2da3._.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]__41df0777._.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/3df3846316317676.css +1 -0
- 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 +470 -161
- package/dist/web/package.json +3 -1
- package/dist/web/src/app/api/transcribe/route.ts +84 -68
- package/dist/web/src/components/VoiceControlBar.tsx +1 -0
- package/dist/web/src/lib/webm-to-ogg-opus.ts +254 -0
- package/dist/web/tsconfig.tsbuildinfo +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]__1cdc76ef._.js +0 -3
- package/dist/web/.next/server/chunks/[root-of-the-server]__3998d59e._.js +0 -19
- package/dist/web/.next/server/chunks/[root-of-the-server]__3dc5531f._.js +0 -5
- package/dist/web/.next/server/chunks/[root-of-the-server]__403750fd._.js +0 -3
- package/dist/web/.next/server/chunks/[root-of-the-server]__934c9bb4._.js +0 -5
- package/dist/web/.next/server/chunks/[root-of-the-server]__e00fb85f._.js +0 -9
- 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/chunks/f3d7065d54a0b9ac.css +0 -1
- /package/dist/web/.next/static/{_fCicMElBguqtWA_EpzdZ → rlJUIaeDUP-JDj2nvHySS}/_buildManifest.js +0 -0
- /package/dist/web/.next/static/{_fCicMElBguqtWA_EpzdZ → rlJUIaeDUP-JDj2nvHySS}/_clientMiddlewareManifest.json +0 -0
- /package/dist/web/.next/static/{_fCicMElBguqtWA_EpzdZ → rlJUIaeDUP-JDj2nvHySS}/_ssgManifest.js +0 -0
|
@@ -0,0 +1,103 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.createBufferedReadable = void 0;
|
|
4
|
+
exports.createBufferedReadableStream = createBufferedReadableStream;
|
|
5
|
+
exports.merge = merge;
|
|
6
|
+
exports.flush = flush;
|
|
7
|
+
exports.sizeOf = sizeOf;
|
|
8
|
+
exports.modeOf = modeOf;
|
|
9
|
+
const ByteArrayCollector_1 = require("./ByteArrayCollector");
|
|
10
|
+
function createBufferedReadableStream(upstream, size, logger) {
|
|
11
|
+
const reader = upstream.getReader();
|
|
12
|
+
let streamBufferingLoggedWarning = false;
|
|
13
|
+
let bytesSeen = 0;
|
|
14
|
+
const buffers = ["", new ByteArrayCollector_1.ByteArrayCollector((size) => new Uint8Array(size))];
|
|
15
|
+
let mode = -1;
|
|
16
|
+
const pull = async (controller) => {
|
|
17
|
+
const { value, done } = await reader.read();
|
|
18
|
+
const chunk = value;
|
|
19
|
+
if (done) {
|
|
20
|
+
if (mode !== -1) {
|
|
21
|
+
const remainder = flush(buffers, mode);
|
|
22
|
+
if (sizeOf(remainder) > 0) {
|
|
23
|
+
controller.enqueue(remainder);
|
|
24
|
+
}
|
|
25
|
+
}
|
|
26
|
+
controller.close();
|
|
27
|
+
}
|
|
28
|
+
else {
|
|
29
|
+
const chunkMode = modeOf(chunk, false);
|
|
30
|
+
if (mode !== chunkMode) {
|
|
31
|
+
if (mode >= 0) {
|
|
32
|
+
controller.enqueue(flush(buffers, mode));
|
|
33
|
+
}
|
|
34
|
+
mode = chunkMode;
|
|
35
|
+
}
|
|
36
|
+
if (mode === -1) {
|
|
37
|
+
controller.enqueue(chunk);
|
|
38
|
+
return;
|
|
39
|
+
}
|
|
40
|
+
const chunkSize = sizeOf(chunk);
|
|
41
|
+
bytesSeen += chunkSize;
|
|
42
|
+
const bufferSize = sizeOf(buffers[mode]);
|
|
43
|
+
if (chunkSize >= size && bufferSize === 0) {
|
|
44
|
+
controller.enqueue(chunk);
|
|
45
|
+
}
|
|
46
|
+
else {
|
|
47
|
+
const newSize = merge(buffers, mode, chunk);
|
|
48
|
+
if (!streamBufferingLoggedWarning && bytesSeen > size * 2) {
|
|
49
|
+
streamBufferingLoggedWarning = true;
|
|
50
|
+
logger?.warn(`@smithy/util-stream - stream chunk size ${chunkSize} is below threshold of ${size}, automatically buffering.`);
|
|
51
|
+
}
|
|
52
|
+
if (newSize >= size) {
|
|
53
|
+
controller.enqueue(flush(buffers, mode));
|
|
54
|
+
}
|
|
55
|
+
else {
|
|
56
|
+
await pull(controller);
|
|
57
|
+
}
|
|
58
|
+
}
|
|
59
|
+
}
|
|
60
|
+
};
|
|
61
|
+
return new ReadableStream({
|
|
62
|
+
pull,
|
|
63
|
+
});
|
|
64
|
+
}
|
|
65
|
+
exports.createBufferedReadable = createBufferedReadableStream;
|
|
66
|
+
function merge(buffers, mode, chunk) {
|
|
67
|
+
switch (mode) {
|
|
68
|
+
case 0:
|
|
69
|
+
buffers[0] += chunk;
|
|
70
|
+
return sizeOf(buffers[0]);
|
|
71
|
+
case 1:
|
|
72
|
+
case 2:
|
|
73
|
+
buffers[mode].push(chunk);
|
|
74
|
+
return sizeOf(buffers[mode]);
|
|
75
|
+
}
|
|
76
|
+
}
|
|
77
|
+
function flush(buffers, mode) {
|
|
78
|
+
switch (mode) {
|
|
79
|
+
case 0:
|
|
80
|
+
const s = buffers[0];
|
|
81
|
+
buffers[0] = "";
|
|
82
|
+
return s;
|
|
83
|
+
case 1:
|
|
84
|
+
case 2:
|
|
85
|
+
return buffers[mode].flush();
|
|
86
|
+
}
|
|
87
|
+
throw new Error(`@smithy/util-stream - invalid index ${mode} given to flush()`);
|
|
88
|
+
}
|
|
89
|
+
function sizeOf(chunk) {
|
|
90
|
+
return chunk?.byteLength ?? chunk?.length ?? 0;
|
|
91
|
+
}
|
|
92
|
+
function modeOf(chunk, allowBuffer = true) {
|
|
93
|
+
if (allowBuffer && typeof Buffer !== "undefined" && chunk instanceof Buffer) {
|
|
94
|
+
return 2;
|
|
95
|
+
}
|
|
96
|
+
if (chunk instanceof Uint8Array) {
|
|
97
|
+
return 1;
|
|
98
|
+
}
|
|
99
|
+
if (typeof chunk === "string") {
|
|
100
|
+
return 0;
|
|
101
|
+
}
|
|
102
|
+
return -1;
|
|
103
|
+
}
|
package/dist/web/node_modules/@smithy/util-stream/dist-cjs/getAwsChunkedEncodingStream.browser.js
ADDED
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.getAwsChunkedEncodingStream = void 0;
|
|
4
|
+
const getAwsChunkedEncodingStream = (readableStream, options) => {
|
|
5
|
+
const { base64Encoder, bodyLengthChecker, checksumAlgorithmFn, checksumLocationName, streamHasher } = options;
|
|
6
|
+
const checksumRequired = base64Encoder !== undefined &&
|
|
7
|
+
bodyLengthChecker !== undefined &&
|
|
8
|
+
checksumAlgorithmFn !== undefined &&
|
|
9
|
+
checksumLocationName !== undefined &&
|
|
10
|
+
streamHasher !== undefined;
|
|
11
|
+
const digest = checksumRequired ? streamHasher(checksumAlgorithmFn, readableStream) : undefined;
|
|
12
|
+
const reader = readableStream.getReader();
|
|
13
|
+
return new ReadableStream({
|
|
14
|
+
async pull(controller) {
|
|
15
|
+
const { value, done } = await reader.read();
|
|
16
|
+
if (done) {
|
|
17
|
+
controller.enqueue(`0\r\n`);
|
|
18
|
+
if (checksumRequired) {
|
|
19
|
+
const checksum = base64Encoder(await digest);
|
|
20
|
+
controller.enqueue(`${checksumLocationName}:${checksum}\r\n`);
|
|
21
|
+
controller.enqueue(`\r\n`);
|
|
22
|
+
}
|
|
23
|
+
controller.close();
|
|
24
|
+
}
|
|
25
|
+
else {
|
|
26
|
+
controller.enqueue(`${(bodyLengthChecker(value) || 0).toString(16)}\r\n${value}\r\n`);
|
|
27
|
+
}
|
|
28
|
+
},
|
|
29
|
+
});
|
|
30
|
+
};
|
|
31
|
+
exports.getAwsChunkedEncodingStream = getAwsChunkedEncodingStream;
|
|
@@ -0,0 +1,41 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.getAwsChunkedEncodingStream = getAwsChunkedEncodingStream;
|
|
4
|
+
const node_stream_1 = require("node:stream");
|
|
5
|
+
const getAwsChunkedEncodingStream_browser_1 = require("./getAwsChunkedEncodingStream.browser");
|
|
6
|
+
const stream_type_check_1 = require("./stream-type-check");
|
|
7
|
+
function getAwsChunkedEncodingStream(stream, options) {
|
|
8
|
+
const readable = stream;
|
|
9
|
+
const readableStream = stream;
|
|
10
|
+
if ((0, stream_type_check_1.isReadableStream)(readableStream)) {
|
|
11
|
+
return (0, getAwsChunkedEncodingStream_browser_1.getAwsChunkedEncodingStream)(readableStream, options);
|
|
12
|
+
}
|
|
13
|
+
const { base64Encoder, bodyLengthChecker, checksumAlgorithmFn, checksumLocationName, streamHasher } = options;
|
|
14
|
+
const checksumRequired = base64Encoder !== undefined &&
|
|
15
|
+
checksumAlgorithmFn !== undefined &&
|
|
16
|
+
checksumLocationName !== undefined &&
|
|
17
|
+
streamHasher !== undefined;
|
|
18
|
+
const digest = checksumRequired ? streamHasher(checksumAlgorithmFn, readable) : undefined;
|
|
19
|
+
const awsChunkedEncodingStream = new node_stream_1.Readable({
|
|
20
|
+
read: () => { },
|
|
21
|
+
});
|
|
22
|
+
readable.on("data", (data) => {
|
|
23
|
+
const length = bodyLengthChecker(data) || 0;
|
|
24
|
+
if (length === 0) {
|
|
25
|
+
return;
|
|
26
|
+
}
|
|
27
|
+
awsChunkedEncodingStream.push(`${length.toString(16)}\r\n`);
|
|
28
|
+
awsChunkedEncodingStream.push(data);
|
|
29
|
+
awsChunkedEncodingStream.push("\r\n");
|
|
30
|
+
});
|
|
31
|
+
readable.on("end", async () => {
|
|
32
|
+
awsChunkedEncodingStream.push(`0\r\n`);
|
|
33
|
+
if (checksumRequired) {
|
|
34
|
+
const checksum = base64Encoder(await digest);
|
|
35
|
+
awsChunkedEncodingStream.push(`${checksumLocationName}:${checksum}\r\n`);
|
|
36
|
+
awsChunkedEncodingStream.push(`\r\n`);
|
|
37
|
+
}
|
|
38
|
+
awsChunkedEncodingStream.push(null);
|
|
39
|
+
});
|
|
40
|
+
return awsChunkedEncodingStream;
|
|
41
|
+
}
|
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.headStream = headStream;
|
|
4
|
+
async function headStream(stream, bytes) {
|
|
5
|
+
let byteLengthCounter = 0;
|
|
6
|
+
const chunks = [];
|
|
7
|
+
const reader = stream.getReader();
|
|
8
|
+
let isDone = false;
|
|
9
|
+
while (!isDone) {
|
|
10
|
+
const { done, value } = await reader.read();
|
|
11
|
+
if (value) {
|
|
12
|
+
chunks.push(value);
|
|
13
|
+
byteLengthCounter += value?.byteLength ?? 0;
|
|
14
|
+
}
|
|
15
|
+
if (byteLengthCounter >= bytes) {
|
|
16
|
+
break;
|
|
17
|
+
}
|
|
18
|
+
isDone = done;
|
|
19
|
+
}
|
|
20
|
+
reader.releaseLock();
|
|
21
|
+
const collected = new Uint8Array(Math.min(bytes, byteLengthCounter));
|
|
22
|
+
let offset = 0;
|
|
23
|
+
for (const chunk of chunks) {
|
|
24
|
+
if (chunk.byteLength > collected.byteLength - offset) {
|
|
25
|
+
collected.set(chunk.subarray(0, collected.byteLength - offset), offset);
|
|
26
|
+
break;
|
|
27
|
+
}
|
|
28
|
+
else {
|
|
29
|
+
collected.set(chunk, offset);
|
|
30
|
+
}
|
|
31
|
+
offset += chunk.length;
|
|
32
|
+
}
|
|
33
|
+
return collected;
|
|
34
|
+
}
|
|
@@ -0,0 +1,42 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.headStream = void 0;
|
|
4
|
+
const stream_1 = require("stream");
|
|
5
|
+
const headStream_browser_1 = require("./headStream.browser");
|
|
6
|
+
const stream_type_check_1 = require("./stream-type-check");
|
|
7
|
+
const headStream = (stream, bytes) => {
|
|
8
|
+
if ((0, stream_type_check_1.isReadableStream)(stream)) {
|
|
9
|
+
return (0, headStream_browser_1.headStream)(stream, bytes);
|
|
10
|
+
}
|
|
11
|
+
return new Promise((resolve, reject) => {
|
|
12
|
+
const collector = new Collector();
|
|
13
|
+
collector.limit = bytes;
|
|
14
|
+
stream.pipe(collector);
|
|
15
|
+
stream.on("error", (err) => {
|
|
16
|
+
collector.end();
|
|
17
|
+
reject(err);
|
|
18
|
+
});
|
|
19
|
+
collector.on("error", reject);
|
|
20
|
+
collector.on("finish", function () {
|
|
21
|
+
const bytes = new Uint8Array(Buffer.concat(this.buffers));
|
|
22
|
+
resolve(bytes);
|
|
23
|
+
});
|
|
24
|
+
});
|
|
25
|
+
};
|
|
26
|
+
exports.headStream = headStream;
|
|
27
|
+
class Collector extends stream_1.Writable {
|
|
28
|
+
buffers = [];
|
|
29
|
+
limit = Infinity;
|
|
30
|
+
bytesBuffered = 0;
|
|
31
|
+
_write(chunk, encoding, callback) {
|
|
32
|
+
this.buffers.push(chunk);
|
|
33
|
+
this.bytesBuffered += chunk.byteLength ?? 0;
|
|
34
|
+
if (this.bytesBuffered >= this.limit) {
|
|
35
|
+
const excess = this.bytesBuffered - this.limit;
|
|
36
|
+
const tailBuffer = this.buffers[this.buffers.length - 1];
|
|
37
|
+
this.buffers[this.buffers.length - 1] = tailBuffer.subarray(0, tailBuffer.byteLength - excess);
|
|
38
|
+
this.emit("finish");
|
|
39
|
+
}
|
|
40
|
+
callback();
|
|
41
|
+
}
|
|
42
|
+
}
|
|
@@ -0,0 +1,108 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
|
|
3
|
+
var utilBase64 = require('@smithy/util-base64');
|
|
4
|
+
var utilUtf8 = require('@smithy/util-utf8');
|
|
5
|
+
var ChecksumStream = require('./checksum/ChecksumStream');
|
|
6
|
+
var createChecksumStream = require('./checksum/createChecksumStream');
|
|
7
|
+
var createBufferedReadable = require('./createBufferedReadable');
|
|
8
|
+
var getAwsChunkedEncodingStream = require('./getAwsChunkedEncodingStream');
|
|
9
|
+
var headStream = require('./headStream');
|
|
10
|
+
var sdkStreamMixin = require('./sdk-stream-mixin');
|
|
11
|
+
var splitStream = require('./splitStream');
|
|
12
|
+
var streamTypeCheck = require('./stream-type-check');
|
|
13
|
+
|
|
14
|
+
class Uint8ArrayBlobAdapter extends Uint8Array {
|
|
15
|
+
static fromString(source, encoding = "utf-8") {
|
|
16
|
+
if (typeof source === "string") {
|
|
17
|
+
if (encoding === "base64") {
|
|
18
|
+
return Uint8ArrayBlobAdapter.mutate(utilBase64.fromBase64(source));
|
|
19
|
+
}
|
|
20
|
+
return Uint8ArrayBlobAdapter.mutate(utilUtf8.fromUtf8(source));
|
|
21
|
+
}
|
|
22
|
+
throw new Error(`Unsupported conversion from ${typeof source} to Uint8ArrayBlobAdapter.`);
|
|
23
|
+
}
|
|
24
|
+
static mutate(source) {
|
|
25
|
+
Object.setPrototypeOf(source, Uint8ArrayBlobAdapter.prototype);
|
|
26
|
+
return source;
|
|
27
|
+
}
|
|
28
|
+
transformToString(encoding = "utf-8") {
|
|
29
|
+
if (encoding === "base64") {
|
|
30
|
+
return utilBase64.toBase64(this);
|
|
31
|
+
}
|
|
32
|
+
return utilUtf8.toUtf8(this);
|
|
33
|
+
}
|
|
34
|
+
}
|
|
35
|
+
|
|
36
|
+
exports.isBlob = streamTypeCheck.isBlob;
|
|
37
|
+
exports.isReadableStream = streamTypeCheck.isReadableStream;
|
|
38
|
+
exports.Uint8ArrayBlobAdapter = Uint8ArrayBlobAdapter;
|
|
39
|
+
Object.prototype.hasOwnProperty.call(ChecksumStream, '__proto__') &&
|
|
40
|
+
!Object.prototype.hasOwnProperty.call(exports, '__proto__') &&
|
|
41
|
+
Object.defineProperty(exports, '__proto__', {
|
|
42
|
+
enumerable: true,
|
|
43
|
+
value: ChecksumStream['__proto__']
|
|
44
|
+
});
|
|
45
|
+
|
|
46
|
+
Object.keys(ChecksumStream).forEach(function (k) {
|
|
47
|
+
if (k !== 'default' && !Object.prototype.hasOwnProperty.call(exports, k)) exports[k] = ChecksumStream[k];
|
|
48
|
+
});
|
|
49
|
+
Object.prototype.hasOwnProperty.call(createChecksumStream, '__proto__') &&
|
|
50
|
+
!Object.prototype.hasOwnProperty.call(exports, '__proto__') &&
|
|
51
|
+
Object.defineProperty(exports, '__proto__', {
|
|
52
|
+
enumerable: true,
|
|
53
|
+
value: createChecksumStream['__proto__']
|
|
54
|
+
});
|
|
55
|
+
|
|
56
|
+
Object.keys(createChecksumStream).forEach(function (k) {
|
|
57
|
+
if (k !== 'default' && !Object.prototype.hasOwnProperty.call(exports, k)) exports[k] = createChecksumStream[k];
|
|
58
|
+
});
|
|
59
|
+
Object.prototype.hasOwnProperty.call(createBufferedReadable, '__proto__') &&
|
|
60
|
+
!Object.prototype.hasOwnProperty.call(exports, '__proto__') &&
|
|
61
|
+
Object.defineProperty(exports, '__proto__', {
|
|
62
|
+
enumerable: true,
|
|
63
|
+
value: createBufferedReadable['__proto__']
|
|
64
|
+
});
|
|
65
|
+
|
|
66
|
+
Object.keys(createBufferedReadable).forEach(function (k) {
|
|
67
|
+
if (k !== 'default' && !Object.prototype.hasOwnProperty.call(exports, k)) exports[k] = createBufferedReadable[k];
|
|
68
|
+
});
|
|
69
|
+
Object.prototype.hasOwnProperty.call(getAwsChunkedEncodingStream, '__proto__') &&
|
|
70
|
+
!Object.prototype.hasOwnProperty.call(exports, '__proto__') &&
|
|
71
|
+
Object.defineProperty(exports, '__proto__', {
|
|
72
|
+
enumerable: true,
|
|
73
|
+
value: getAwsChunkedEncodingStream['__proto__']
|
|
74
|
+
});
|
|
75
|
+
|
|
76
|
+
Object.keys(getAwsChunkedEncodingStream).forEach(function (k) {
|
|
77
|
+
if (k !== 'default' && !Object.prototype.hasOwnProperty.call(exports, k)) exports[k] = getAwsChunkedEncodingStream[k];
|
|
78
|
+
});
|
|
79
|
+
Object.prototype.hasOwnProperty.call(headStream, '__proto__') &&
|
|
80
|
+
!Object.prototype.hasOwnProperty.call(exports, '__proto__') &&
|
|
81
|
+
Object.defineProperty(exports, '__proto__', {
|
|
82
|
+
enumerable: true,
|
|
83
|
+
value: headStream['__proto__']
|
|
84
|
+
});
|
|
85
|
+
|
|
86
|
+
Object.keys(headStream).forEach(function (k) {
|
|
87
|
+
if (k !== 'default' && !Object.prototype.hasOwnProperty.call(exports, k)) exports[k] = headStream[k];
|
|
88
|
+
});
|
|
89
|
+
Object.prototype.hasOwnProperty.call(sdkStreamMixin, '__proto__') &&
|
|
90
|
+
!Object.prototype.hasOwnProperty.call(exports, '__proto__') &&
|
|
91
|
+
Object.defineProperty(exports, '__proto__', {
|
|
92
|
+
enumerable: true,
|
|
93
|
+
value: sdkStreamMixin['__proto__']
|
|
94
|
+
});
|
|
95
|
+
|
|
96
|
+
Object.keys(sdkStreamMixin).forEach(function (k) {
|
|
97
|
+
if (k !== 'default' && !Object.prototype.hasOwnProperty.call(exports, k)) exports[k] = sdkStreamMixin[k];
|
|
98
|
+
});
|
|
99
|
+
Object.prototype.hasOwnProperty.call(splitStream, '__proto__') &&
|
|
100
|
+
!Object.prototype.hasOwnProperty.call(exports, '__proto__') &&
|
|
101
|
+
Object.defineProperty(exports, '__proto__', {
|
|
102
|
+
enumerable: true,
|
|
103
|
+
value: splitStream['__proto__']
|
|
104
|
+
});
|
|
105
|
+
|
|
106
|
+
Object.keys(splitStream).forEach(function (k) {
|
|
107
|
+
if (k !== 'default' && !Object.prototype.hasOwnProperty.call(exports, k)) exports[k] = splitStream[k];
|
|
108
|
+
});
|
|
@@ -0,0 +1,68 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.sdkStreamMixin = void 0;
|
|
4
|
+
const fetch_http_handler_1 = require("@smithy/fetch-http-handler");
|
|
5
|
+
const util_base64_1 = require("@smithy/util-base64");
|
|
6
|
+
const util_hex_encoding_1 = require("@smithy/util-hex-encoding");
|
|
7
|
+
const util_utf8_1 = require("@smithy/util-utf8");
|
|
8
|
+
const stream_type_check_1 = require("./stream-type-check");
|
|
9
|
+
const ERR_MSG_STREAM_HAS_BEEN_TRANSFORMED = "The stream has already been transformed.";
|
|
10
|
+
const sdkStreamMixin = (stream) => {
|
|
11
|
+
if (!isBlobInstance(stream) && !(0, stream_type_check_1.isReadableStream)(stream)) {
|
|
12
|
+
const name = stream?.__proto__?.constructor?.name || stream;
|
|
13
|
+
throw new Error(`Unexpected stream implementation, expect Blob or ReadableStream, got ${name}`);
|
|
14
|
+
}
|
|
15
|
+
let transformed = false;
|
|
16
|
+
const transformToByteArray = async () => {
|
|
17
|
+
if (transformed) {
|
|
18
|
+
throw new Error(ERR_MSG_STREAM_HAS_BEEN_TRANSFORMED);
|
|
19
|
+
}
|
|
20
|
+
transformed = true;
|
|
21
|
+
return await (0, fetch_http_handler_1.streamCollector)(stream);
|
|
22
|
+
};
|
|
23
|
+
const blobToWebStream = (blob) => {
|
|
24
|
+
if (typeof blob.stream !== "function") {
|
|
25
|
+
throw new Error("Cannot transform payload Blob to web stream. Please make sure the Blob.stream() is polyfilled.\n" +
|
|
26
|
+
"If you are using React Native, this API is not yet supported, see: https://react-native.canny.io/feature-requests/p/fetch-streaming-body");
|
|
27
|
+
}
|
|
28
|
+
return blob.stream();
|
|
29
|
+
};
|
|
30
|
+
return Object.assign(stream, {
|
|
31
|
+
transformToByteArray: transformToByteArray,
|
|
32
|
+
transformToString: async (encoding) => {
|
|
33
|
+
const buf = await transformToByteArray();
|
|
34
|
+
if (encoding === "base64") {
|
|
35
|
+
return (0, util_base64_1.toBase64)(buf);
|
|
36
|
+
}
|
|
37
|
+
else if (encoding === "hex") {
|
|
38
|
+
return (0, util_hex_encoding_1.toHex)(buf);
|
|
39
|
+
}
|
|
40
|
+
else if (encoding === undefined || encoding === "utf8" || encoding === "utf-8") {
|
|
41
|
+
return (0, util_utf8_1.toUtf8)(buf);
|
|
42
|
+
}
|
|
43
|
+
else if (typeof TextDecoder === "function") {
|
|
44
|
+
return new TextDecoder(encoding).decode(buf);
|
|
45
|
+
}
|
|
46
|
+
else {
|
|
47
|
+
throw new Error("TextDecoder is not available, please make sure polyfill is provided.");
|
|
48
|
+
}
|
|
49
|
+
},
|
|
50
|
+
transformToWebStream: () => {
|
|
51
|
+
if (transformed) {
|
|
52
|
+
throw new Error(ERR_MSG_STREAM_HAS_BEEN_TRANSFORMED);
|
|
53
|
+
}
|
|
54
|
+
transformed = true;
|
|
55
|
+
if (isBlobInstance(stream)) {
|
|
56
|
+
return blobToWebStream(stream);
|
|
57
|
+
}
|
|
58
|
+
else if ((0, stream_type_check_1.isReadableStream)(stream)) {
|
|
59
|
+
return stream;
|
|
60
|
+
}
|
|
61
|
+
else {
|
|
62
|
+
throw new Error(`Cannot transform payload to web stream, got ${stream}`);
|
|
63
|
+
}
|
|
64
|
+
},
|
|
65
|
+
});
|
|
66
|
+
};
|
|
67
|
+
exports.sdkStreamMixin = sdkStreamMixin;
|
|
68
|
+
const isBlobInstance = (stream) => typeof Blob === "function" && stream instanceof Blob;
|
|
@@ -0,0 +1,54 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.sdkStreamMixin = void 0;
|
|
4
|
+
const node_http_handler_1 = require("@smithy/node-http-handler");
|
|
5
|
+
const util_buffer_from_1 = require("@smithy/util-buffer-from");
|
|
6
|
+
const stream_1 = require("stream");
|
|
7
|
+
const sdk_stream_mixin_browser_1 = require("./sdk-stream-mixin.browser");
|
|
8
|
+
const ERR_MSG_STREAM_HAS_BEEN_TRANSFORMED = "The stream has already been transformed.";
|
|
9
|
+
const sdkStreamMixin = (stream) => {
|
|
10
|
+
if (!(stream instanceof stream_1.Readable)) {
|
|
11
|
+
try {
|
|
12
|
+
return (0, sdk_stream_mixin_browser_1.sdkStreamMixin)(stream);
|
|
13
|
+
}
|
|
14
|
+
catch (e) {
|
|
15
|
+
const name = stream?.__proto__?.constructor?.name || stream;
|
|
16
|
+
throw new Error(`Unexpected stream implementation, expect Stream.Readable instance, got ${name}`);
|
|
17
|
+
}
|
|
18
|
+
}
|
|
19
|
+
let transformed = false;
|
|
20
|
+
const transformToByteArray = async () => {
|
|
21
|
+
if (transformed) {
|
|
22
|
+
throw new Error(ERR_MSG_STREAM_HAS_BEEN_TRANSFORMED);
|
|
23
|
+
}
|
|
24
|
+
transformed = true;
|
|
25
|
+
return await (0, node_http_handler_1.streamCollector)(stream);
|
|
26
|
+
};
|
|
27
|
+
return Object.assign(stream, {
|
|
28
|
+
transformToByteArray,
|
|
29
|
+
transformToString: async (encoding) => {
|
|
30
|
+
const buf = await transformToByteArray();
|
|
31
|
+
if (encoding === undefined || Buffer.isEncoding(encoding)) {
|
|
32
|
+
return (0, util_buffer_from_1.fromArrayBuffer)(buf.buffer, buf.byteOffset, buf.byteLength).toString(encoding);
|
|
33
|
+
}
|
|
34
|
+
else {
|
|
35
|
+
const decoder = new TextDecoder(encoding);
|
|
36
|
+
return decoder.decode(buf);
|
|
37
|
+
}
|
|
38
|
+
},
|
|
39
|
+
transformToWebStream: () => {
|
|
40
|
+
if (transformed) {
|
|
41
|
+
throw new Error(ERR_MSG_STREAM_HAS_BEEN_TRANSFORMED);
|
|
42
|
+
}
|
|
43
|
+
if (stream.readableFlowing !== null) {
|
|
44
|
+
throw new Error("The stream has been consumed by other callbacks.");
|
|
45
|
+
}
|
|
46
|
+
if (typeof stream_1.Readable.toWeb !== "function") {
|
|
47
|
+
throw new Error("Readable.toWeb() is not supported. Please ensure a polyfill is available.");
|
|
48
|
+
}
|
|
49
|
+
transformed = true;
|
|
50
|
+
return stream_1.Readable.toWeb(stream);
|
|
51
|
+
},
|
|
52
|
+
});
|
|
53
|
+
};
|
|
54
|
+
exports.sdkStreamMixin = sdkStreamMixin;
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.splitStream = splitStream;
|
|
4
|
+
async function splitStream(stream) {
|
|
5
|
+
if (typeof stream.stream === "function") {
|
|
6
|
+
stream = stream.stream();
|
|
7
|
+
}
|
|
8
|
+
const readableStream = stream;
|
|
9
|
+
return readableStream.tee();
|
|
10
|
+
}
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.splitStream = splitStream;
|
|
4
|
+
const stream_1 = require("stream");
|
|
5
|
+
const splitStream_browser_1 = require("./splitStream.browser");
|
|
6
|
+
const stream_type_check_1 = require("./stream-type-check");
|
|
7
|
+
async function splitStream(stream) {
|
|
8
|
+
if ((0, stream_type_check_1.isReadableStream)(stream) || (0, stream_type_check_1.isBlob)(stream)) {
|
|
9
|
+
return (0, splitStream_browser_1.splitStream)(stream);
|
|
10
|
+
}
|
|
11
|
+
const stream1 = new stream_1.PassThrough();
|
|
12
|
+
const stream2 = new stream_1.PassThrough();
|
|
13
|
+
stream.pipe(stream1);
|
|
14
|
+
stream.pipe(stream2);
|
|
15
|
+
return [stream1, stream2];
|
|
16
|
+
}
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.isBlob = exports.isReadableStream = void 0;
|
|
4
|
+
const isReadableStream = (stream) => typeof ReadableStream === "function" &&
|
|
5
|
+
(stream?.constructor?.name === ReadableStream.name || stream instanceof ReadableStream);
|
|
6
|
+
exports.isReadableStream = isReadableStream;
|
|
7
|
+
const isBlob = (blob) => {
|
|
8
|
+
return typeof Blob === "function" && (blob?.constructor?.name === Blob.name || blob instanceof Blob);
|
|
9
|
+
};
|
|
10
|
+
exports.isBlob = isBlob;
|
|
@@ -0,0 +1,99 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "@smithy/util-stream",
|
|
3
|
+
"version": "4.5.20",
|
|
4
|
+
"scripts": {
|
|
5
|
+
"build": "concurrently 'yarn:build:cjs' 'yarn:build:es' 'yarn:build:types && yarn build:types:downlevel'",
|
|
6
|
+
"build:cjs": "node ../../scripts/inline util-stream",
|
|
7
|
+
"build:es": "yarn g:tsc -p tsconfig.es.json",
|
|
8
|
+
"build:types": "yarn g:tsc -p tsconfig.types.json",
|
|
9
|
+
"build:types:downlevel": "premove dist-types/ts3.4 && downlevel-dts dist-types dist-types/ts3.4",
|
|
10
|
+
"stage-release": "premove .release && yarn pack && mkdir ./.release && tar zxvf ./package.tgz --directory ./.release && rm ./package.tgz",
|
|
11
|
+
"clean": "premove dist-cjs dist-es dist-types tsconfig.cjs.tsbuildinfo tsconfig.es.tsbuildinfo tsconfig.types.tsbuildinfo",
|
|
12
|
+
"lint": "eslint -c ../../.eslintrc.js \"src/**/*.ts\"",
|
|
13
|
+
"format": "prettier --config ../../prettier.config.js --ignore-path ../../.prettierignore --write \"**/*.{ts,md,json}\"",
|
|
14
|
+
"extract:docs": "api-extractor run --local",
|
|
15
|
+
"test": "yarn g:vitest run && yarn test:browser",
|
|
16
|
+
"test:integration": "yarn g:vitest run -c vitest.config.integ.mts",
|
|
17
|
+
"test:watch": "yarn g:vitest watch",
|
|
18
|
+
"test:integration:watch": "yarn g:vitest watch -c vitest.config.integ.mts",
|
|
19
|
+
"test:browser": "yarn g:vitest run -c vitest.config.browser.mts",
|
|
20
|
+
"test:browser:watch": "yarn g:vitest watch -c vitest.config.browser.mts"
|
|
21
|
+
},
|
|
22
|
+
"main": "./dist-cjs/index.js",
|
|
23
|
+
"module": "./dist-es/index.js",
|
|
24
|
+
"types": "./dist-types/index.d.ts",
|
|
25
|
+
"author": {
|
|
26
|
+
"name": "AWS SDK for JavaScript Team",
|
|
27
|
+
"url": "https://aws.amazon.com/javascript/"
|
|
28
|
+
},
|
|
29
|
+
"license": "Apache-2.0",
|
|
30
|
+
"sideEffects": false,
|
|
31
|
+
"dependencies": {
|
|
32
|
+
"@smithy/fetch-http-handler": "^5.3.15",
|
|
33
|
+
"@smithy/node-http-handler": "^4.5.0",
|
|
34
|
+
"@smithy/types": "^4.13.1",
|
|
35
|
+
"@smithy/util-base64": "^4.3.2",
|
|
36
|
+
"@smithy/util-buffer-from": "^4.2.2",
|
|
37
|
+
"@smithy/util-hex-encoding": "^4.2.2",
|
|
38
|
+
"@smithy/util-utf8": "^4.2.2",
|
|
39
|
+
"tslib": "^2.6.2"
|
|
40
|
+
},
|
|
41
|
+
"devDependencies": {
|
|
42
|
+
"@smithy/util-test": "^0.2.8",
|
|
43
|
+
"@types/node": "^18.11.9",
|
|
44
|
+
"concurrently": "7.0.0",
|
|
45
|
+
"downlevel-dts": "0.10.1",
|
|
46
|
+
"premove": "4.0.0",
|
|
47
|
+
"typedoc": "0.23.23"
|
|
48
|
+
},
|
|
49
|
+
"engines": {
|
|
50
|
+
"node": ">=18.0.0"
|
|
51
|
+
},
|
|
52
|
+
"typesVersions": {
|
|
53
|
+
"<4.5": {
|
|
54
|
+
"dist-types/*": [
|
|
55
|
+
"dist-types/ts3.4/*"
|
|
56
|
+
]
|
|
57
|
+
}
|
|
58
|
+
},
|
|
59
|
+
"files": [
|
|
60
|
+
"dist-*/**"
|
|
61
|
+
],
|
|
62
|
+
"browser": {
|
|
63
|
+
"./dist-es/checksum/ChecksumStream": "./dist-es/checksum/ChecksumStream.browser",
|
|
64
|
+
"./dist-es/checksum/createChecksumStream": "./dist-es/checksum/createChecksumStream.browser",
|
|
65
|
+
"./dist-es/createBufferedReadable": "./dist-es/createBufferedReadableStream",
|
|
66
|
+
"./dist-es/getAwsChunkedEncodingStream": "./dist-es/getAwsChunkedEncodingStream.browser",
|
|
67
|
+
"./dist-es/headStream": "./dist-es/headStream.browser",
|
|
68
|
+
"./dist-es/sdk-stream-mixin": "./dist-es/sdk-stream-mixin.browser",
|
|
69
|
+
"./dist-es/splitStream": "./dist-es/splitStream.browser"
|
|
70
|
+
},
|
|
71
|
+
"react-native": {
|
|
72
|
+
"./dist-es/checksum/createChecksumStream": "./dist-es/checksum/createChecksumStream.browser",
|
|
73
|
+
"./dist-es/checksum/ChecksumStream": "./dist-es/checksum/ChecksumStream.browser",
|
|
74
|
+
"./dist-es/getAwsChunkedEncodingStream": "./dist-es/getAwsChunkedEncodingStream.browser",
|
|
75
|
+
"./dist-es/sdk-stream-mixin": "./dist-es/sdk-stream-mixin.browser",
|
|
76
|
+
"./dist-es/headStream": "./dist-es/headStream.browser",
|
|
77
|
+
"./dist-es/splitStream": "./dist-es/splitStream.browser",
|
|
78
|
+
"./dist-es/createBufferedReadable": "./dist-es/createBufferedReadableStream",
|
|
79
|
+
"./dist-cjs/checksum/createChecksumStream": "./dist-cjs/checksum/createChecksumStream.browser",
|
|
80
|
+
"./dist-cjs/checksum/ChecksumStream": "./dist-cjs/checksum/ChecksumStream.browser",
|
|
81
|
+
"./dist-cjs/getAwsChunkedEncodingStream": "./dist-cjs/getAwsChunkedEncodingStream.browser",
|
|
82
|
+
"./dist-cjs/sdk-stream-mixin": "./dist-cjs/sdk-stream-mixin.browser",
|
|
83
|
+
"./dist-cjs/headStream": "./dist-cjs/headStream.browser",
|
|
84
|
+
"./dist-cjs/splitStream": "./dist-cjs/splitStream.browser",
|
|
85
|
+
"./dist-cjs/createBufferedReadable": "./dist-cjs/createBufferedReadableStream"
|
|
86
|
+
},
|
|
87
|
+
"homepage": "https://github.com/smithy-lang/smithy-typescript/tree/main/packages/util-stream",
|
|
88
|
+
"repository": {
|
|
89
|
+
"type": "git",
|
|
90
|
+
"url": "https://github.com/smithy-lang/smithy-typescript.git",
|
|
91
|
+
"directory": "packages/util-stream"
|
|
92
|
+
},
|
|
93
|
+
"typedoc": {
|
|
94
|
+
"entryPoint": "src/index.ts"
|
|
95
|
+
},
|
|
96
|
+
"publishConfig": {
|
|
97
|
+
"directory": ".release/package"
|
|
98
|
+
}
|
|
99
|
+
}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
|
|
3
|
+
const escapeUri = (uri) => encodeURIComponent(uri).replace(/[!'()*]/g, hexEncode);
|
|
4
|
+
const hexEncode = (c) => `%${c.charCodeAt(0).toString(16).toUpperCase()}`;
|
|
5
|
+
|
|
6
|
+
const escapeUriPath = (uri) => uri.split("/").map(escapeUri).join("/");
|
|
7
|
+
|
|
8
|
+
exports.escapeUri = escapeUri;
|
|
9
|
+
exports.escapeUriPath = escapeUriPath;
|