@jjrawlins/cdk-ami-builder 0.0.128 → 0.0.130
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/.jsii +11 -11
- package/cdkamibuilder/go.mod +1 -1
- package/cdkamibuilder/jsii/jsii.go +2 -2
- package/cdkamibuilder/version +1 -1
- package/lib/ImagePipeline/ImagePipeline.js +1 -1
- package/lib/Lambdas/CheckStateMachineStatus/CheckStateMachineStatus-function.js +1 -1
- package/lib/Lambdas/StartStateMachine/StartStateMachine-function.js +1 -1
- package/node_modules/@aws-sdk/client-ec2/package.json +22 -22
- package/node_modules/@aws-sdk/client-ecs/package.json +21 -21
- package/node_modules/@aws-sdk/client-kms/package.json +21 -21
- package/node_modules/@aws-sdk/client-s3/package.json +29 -29
- package/node_modules/@aws-sdk/client-secrets-manager/package.json +21 -21
- package/node_modules/@aws-sdk/client-sfn/package.json +21 -21
- package/node_modules/@aws-sdk/client-sns/package.json +21 -21
- package/node_modules/@aws-sdk/client-sqs/package.json +22 -22
- package/node_modules/@aws-sdk/client-ssm/package.json +21 -21
- package/node_modules/@aws-sdk/client-sso/package.json +20 -20
- package/node_modules/@aws-sdk/core/package.json +6 -6
- package/node_modules/@aws-sdk/crc64-nvme/package.json +2 -2
- package/node_modules/@aws-sdk/credential-provider-env/package.json +5 -5
- package/node_modules/@aws-sdk/credential-provider-http/package.json +6 -6
- package/node_modules/@aws-sdk/credential-provider-ini/package.json +12 -12
- package/node_modules/@aws-sdk/credential-provider-login/package.json +6 -6
- package/node_modules/@aws-sdk/credential-provider-node/package.json +10 -10
- package/node_modules/@aws-sdk/credential-provider-process/package.json +5 -5
- package/node_modules/@aws-sdk/credential-provider-sso/package.json +7 -7
- package/node_modules/@aws-sdk/credential-provider-web-identity/package.json +6 -6
- package/node_modules/@aws-sdk/middleware-bucket-endpoint/package.json +4 -4
- package/node_modules/@aws-sdk/middleware-expect-continue/package.json +3 -3
- package/node_modules/@aws-sdk/middleware-flexible-checksums/package.json +5 -5
- package/node_modules/@aws-sdk/middleware-host-header/package.json +3 -3
- package/node_modules/@aws-sdk/middleware-location-constraint/package.json +3 -3
- package/node_modules/@aws-sdk/middleware-logger/package.json +4 -4
- package/node_modules/@aws-sdk/middleware-recursion-detection/package.json +3 -3
- package/node_modules/@aws-sdk/middleware-sdk-ec2/package.json +6 -6
- package/node_modules/@aws-sdk/middleware-sdk-s3/package.json +7 -7
- package/node_modules/@aws-sdk/middleware-sdk-sqs/package.json +4 -4
- package/node_modules/@aws-sdk/middleware-ssec/package.json +3 -3
- package/node_modules/@aws-sdk/middleware-user-agent/package.json +6 -6
- package/node_modules/@aws-sdk/nested-clients/package.json +18 -18
- package/node_modules/@aws-sdk/region-config-resolver/package.json +3 -3
- package/node_modules/@aws-sdk/signature-v4-multi-region/package.json +4 -4
- package/node_modules/@aws-sdk/token-providers/package.json +6 -6
- package/node_modules/@aws-sdk/types/package.json +2 -2
- package/node_modules/@aws-sdk/util-arn-parser/package.json +3 -3
- package/node_modules/@aws-sdk/util-endpoints/package.json +3 -3
- package/node_modules/@aws-sdk/util-format-url/package.json +3 -3
- package/node_modules/@aws-sdk/util-locate-window/package.json +3 -3
- package/node_modules/@aws-sdk/util-user-agent-browser/package.json +2 -2
- package/node_modules/@aws-sdk/util-user-agent-node/package.json +5 -5
- package/node_modules/@aws-sdk/xml-builder/package.json +2 -2
- package/node_modules/@smithy/abort-controller/package.json +3 -3
- package/node_modules/@smithy/config-resolver/package.json +6 -6
- package/node_modules/@smithy/core/dist-cjs/submodules/cbor/index.js +3 -0
- package/node_modules/@smithy/core/dist-es/submodules/cbor/CborCodec.js +3 -0
- package/node_modules/@smithy/core/package.json +7 -7
- package/node_modules/@smithy/credential-provider-imds/package.json +6 -6
- package/node_modules/@smithy/eventstream-codec/package.json +3 -3
- package/node_modules/@smithy/eventstream-serde-browser/package.json +4 -4
- package/node_modules/@smithy/eventstream-serde-config-resolver/package.json +3 -3
- package/node_modules/@smithy/eventstream-serde-node/package.json +4 -4
- package/node_modules/@smithy/eventstream-serde-universal/package.json +4 -4
- package/node_modules/@smithy/fetch-http-handler/package.json +6 -6
- package/node_modules/@smithy/hash-blob-browser/package.json +3 -3
- package/node_modules/@smithy/hash-node/package.json +3 -3
- package/node_modules/@smithy/hash-stream-node/package.json +3 -3
- package/node_modules/@smithy/invalid-dependency/package.json +3 -3
- package/node_modules/@smithy/md5-js/package.json +3 -3
- package/node_modules/@smithy/middleware-content-length/package.json +4 -4
- package/node_modules/@smithy/middleware-endpoint/package.json +8 -8
- package/node_modules/@smithy/middleware-retry/package.json +8 -8
- package/node_modules/@smithy/middleware-serde/package.json +4 -4
- package/node_modules/@smithy/middleware-stack/package.json +3 -3
- package/node_modules/@smithy/node-config-provider/package.json +5 -5
- package/node_modules/@smithy/node-http-handler/package.json +6 -6
- package/node_modules/@smithy/property-provider/package.json +3 -3
- package/node_modules/@smithy/protocol-http/package.json +3 -3
- package/node_modules/@smithy/querystring-builder/package.json +3 -3
- package/node_modules/@smithy/querystring-parser/package.json +3 -3
- package/node_modules/@smithy/service-error-classification/package.json +3 -3
- package/node_modules/@smithy/shared-ini-file-loader/package.json +3 -3
- package/node_modules/@smithy/signature-v4/package.json +5 -5
- package/node_modules/@smithy/smithy-client/package.json +7 -7
- package/node_modules/@smithy/types/dist-types/schema/static-schemas.d.ts +4 -2
- package/node_modules/@smithy/types/dist-types/ts3.4/schema/static-schemas.d.ts +4 -2
- package/node_modules/@smithy/types/package.json +2 -2
- package/node_modules/@smithy/url-parser/package.json +4 -4
- package/node_modules/@smithy/util-defaults-mode-browser/package.json +4 -4
- package/node_modules/@smithy/util-defaults-mode-node/package.json +7 -7
- package/node_modules/@smithy/util-endpoints/package.json +4 -4
- package/node_modules/@smithy/util-middleware/package.json +3 -3
- package/node_modules/@smithy/util-retry/package.json +4 -4
- package/node_modules/@smithy/util-stream/dist-cjs/getAwsChunkedEncodingStream.js +20 -9
- package/node_modules/@smithy/util-stream/dist-cjs/index.js +8 -6
- package/node_modules/@smithy/util-stream/dist-es/getAwsChunkedEncodingStream.js +19 -7
- package/node_modules/@smithy/util-stream/dist-es/index.js +1 -1
- package/node_modules/@smithy/util-stream/dist-types/checksum/ChecksumStream.d.ts +7 -7
- package/node_modules/@smithy/util-stream/dist-types/checksum/createChecksumStream.browser.d.ts +2 -3
- package/node_modules/@smithy/util-stream/dist-types/checksum/createChecksumStream.d.ts +4 -2
- package/node_modules/@smithy/util-stream/dist-types/createBufferedReadable.d.ts +4 -1
- package/node_modules/@smithy/util-stream/dist-types/getAwsChunkedEncodingStream.d.ts +7 -3
- package/node_modules/@smithy/util-stream/dist-types/headStream.browser.d.ts +1 -2
- package/node_modules/@smithy/util-stream/dist-types/headStream.d.ts +2 -2
- package/node_modules/@smithy/util-stream/dist-types/index.d.ts +4 -1
- package/node_modules/@smithy/util-stream/dist-types/splitStream.d.ts +3 -0
- package/node_modules/@smithy/util-stream/dist-types/stream-type-check.d.ts +2 -1
- package/node_modules/@smithy/util-stream/dist-types/ts3.4/checksum/ChecksumStream.d.ts +7 -7
- package/node_modules/@smithy/util-stream/dist-types/ts3.4/checksum/createChecksumStream.browser.d.ts +2 -3
- package/node_modules/@smithy/util-stream/dist-types/ts3.4/checksum/createChecksumStream.d.ts +4 -2
- package/node_modules/@smithy/util-stream/dist-types/ts3.4/createBufferedReadable.d.ts +4 -1
- package/node_modules/@smithy/util-stream/dist-types/ts3.4/getAwsChunkedEncodingStream.d.ts +7 -3
- package/node_modules/@smithy/util-stream/dist-types/ts3.4/headStream.browser.d.ts +1 -2
- package/node_modules/@smithy/util-stream/dist-types/ts3.4/headStream.d.ts +2 -2
- package/node_modules/@smithy/util-stream/dist-types/ts3.4/index.d.ts +4 -1
- package/node_modules/@smithy/util-stream/dist-types/ts3.4/splitStream.d.ts +3 -0
- package/node_modules/@smithy/util-stream/dist-types/ts3.4/stream-type-check.d.ts +2 -1
- package/node_modules/@smithy/util-stream/package.json +5 -5
- package/node_modules/@smithy/util-waiter/package.json +4 -4
- package/package.json +12 -12
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@smithy/util-defaults-mode-browser",
|
|
3
|
-
"version": "4.3.
|
|
3
|
+
"version": "4.3.21",
|
|
4
4
|
"scripts": {
|
|
5
5
|
"build": "concurrently 'yarn:build:cjs' 'yarn:build:es' 'yarn:build:types && yarn build:types:downlevel'",
|
|
6
6
|
"build:cjs": "node ../../scripts/inline util-defaults-mode-browser",
|
|
@@ -24,9 +24,9 @@
|
|
|
24
24
|
"license": "Apache-2.0",
|
|
25
25
|
"sideEffects": false,
|
|
26
26
|
"dependencies": {
|
|
27
|
-
"@smithy/property-provider": "^4.2.
|
|
28
|
-
"@smithy/smithy-client": "^4.10.
|
|
29
|
-
"@smithy/types": "^4.
|
|
27
|
+
"@smithy/property-provider": "^4.2.8",
|
|
28
|
+
"@smithy/smithy-client": "^4.10.7",
|
|
29
|
+
"@smithy/types": "^4.12.0",
|
|
30
30
|
"tslib": "^2.6.2"
|
|
31
31
|
},
|
|
32
32
|
"devDependencies": {
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@smithy/util-defaults-mode-node",
|
|
3
|
-
"version": "4.2.
|
|
3
|
+
"version": "4.2.24",
|
|
4
4
|
"scripts": {
|
|
5
5
|
"build": "concurrently 'yarn:build:cjs' 'yarn:build:es' 'yarn:build:types && yarn build:types:downlevel'",
|
|
6
6
|
"build:cjs": "node ../../scripts/inline util-defaults-mode-node",
|
|
@@ -24,12 +24,12 @@
|
|
|
24
24
|
"license": "Apache-2.0",
|
|
25
25
|
"sideEffects": false,
|
|
26
26
|
"dependencies": {
|
|
27
|
-
"@smithy/config-resolver": "^4.4.
|
|
28
|
-
"@smithy/credential-provider-imds": "^4.2.
|
|
29
|
-
"@smithy/node-config-provider": "^4.3.
|
|
30
|
-
"@smithy/property-provider": "^4.2.
|
|
31
|
-
"@smithy/smithy-client": "^4.10.
|
|
32
|
-
"@smithy/types": "^4.
|
|
27
|
+
"@smithy/config-resolver": "^4.4.6",
|
|
28
|
+
"@smithy/credential-provider-imds": "^4.2.8",
|
|
29
|
+
"@smithy/node-config-provider": "^4.3.8",
|
|
30
|
+
"@smithy/property-provider": "^4.2.8",
|
|
31
|
+
"@smithy/smithy-client": "^4.10.7",
|
|
32
|
+
"@smithy/types": "^4.12.0",
|
|
33
33
|
"tslib": "^2.6.2"
|
|
34
34
|
},
|
|
35
35
|
"devDependencies": {
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@smithy/util-endpoints",
|
|
3
|
-
"version": "3.2.
|
|
3
|
+
"version": "3.2.8",
|
|
4
4
|
"description": "Utilities to help with endpoint resolution.",
|
|
5
5
|
"main": "./dist-cjs/index.js",
|
|
6
6
|
"module": "./dist-es/index.js",
|
|
@@ -29,15 +29,15 @@
|
|
|
29
29
|
"license": "Apache-2.0",
|
|
30
30
|
"sideEffects": false,
|
|
31
31
|
"dependencies": {
|
|
32
|
-
"@smithy/node-config-provider": "^4.3.
|
|
33
|
-
"@smithy/types": "^4.
|
|
32
|
+
"@smithy/node-config-provider": "^4.3.8",
|
|
33
|
+
"@smithy/types": "^4.12.0",
|
|
34
34
|
"tslib": "^2.6.2"
|
|
35
35
|
},
|
|
36
36
|
"devDependencies": {
|
|
37
37
|
"@types/node": "^18.11.9",
|
|
38
38
|
"concurrently": "7.0.0",
|
|
39
39
|
"downlevel-dts": "0.10.1",
|
|
40
|
-
"rimraf": "
|
|
40
|
+
"rimraf": "5.0.10",
|
|
41
41
|
"typedoc": "0.23.23"
|
|
42
42
|
},
|
|
43
43
|
"types": "./dist-types/index.d.ts",
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@smithy/util-middleware",
|
|
3
|
-
"version": "4.2.
|
|
3
|
+
"version": "4.2.8",
|
|
4
4
|
"description": "Shared utilities for to be used in middleware packages.",
|
|
5
5
|
"main": "./dist-cjs/index.js",
|
|
6
6
|
"module": "./dist-es/index.js",
|
|
@@ -28,14 +28,14 @@
|
|
|
28
28
|
"license": "Apache-2.0",
|
|
29
29
|
"sideEffects": false,
|
|
30
30
|
"dependencies": {
|
|
31
|
-
"@smithy/types": "^4.
|
|
31
|
+
"@smithy/types": "^4.12.0",
|
|
32
32
|
"tslib": "^2.6.2"
|
|
33
33
|
},
|
|
34
34
|
"devDependencies": {
|
|
35
35
|
"@types/node": "^18.11.9",
|
|
36
36
|
"concurrently": "7.0.0",
|
|
37
37
|
"downlevel-dts": "0.10.1",
|
|
38
|
-
"rimraf": "
|
|
38
|
+
"rimraf": "5.0.10",
|
|
39
39
|
"typedoc": "0.23.23"
|
|
40
40
|
},
|
|
41
41
|
"types": "./dist-types/index.d.ts",
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@smithy/util-retry",
|
|
3
|
-
"version": "4.2.
|
|
3
|
+
"version": "4.2.8",
|
|
4
4
|
"description": "Shared retry utilities to be used in middleware packages.",
|
|
5
5
|
"main": "./dist-cjs/index.js",
|
|
6
6
|
"module": "./dist-es/index.js",
|
|
@@ -31,15 +31,15 @@
|
|
|
31
31
|
"license": "Apache-2.0",
|
|
32
32
|
"sideEffects": false,
|
|
33
33
|
"dependencies": {
|
|
34
|
-
"@smithy/service-error-classification": "^4.2.
|
|
35
|
-
"@smithy/types": "^4.
|
|
34
|
+
"@smithy/service-error-classification": "^4.2.8",
|
|
35
|
+
"@smithy/types": "^4.12.0",
|
|
36
36
|
"tslib": "^2.6.2"
|
|
37
37
|
},
|
|
38
38
|
"devDependencies": {
|
|
39
39
|
"@types/node": "^18.11.9",
|
|
40
40
|
"concurrently": "7.0.0",
|
|
41
41
|
"downlevel-dts": "0.10.1",
|
|
42
|
-
"rimraf": "
|
|
42
|
+
"rimraf": "5.0.10",
|
|
43
43
|
"typedoc": "0.23.23"
|
|
44
44
|
},
|
|
45
45
|
"types": "./dist-types/index.d.ts",
|
|
@@ -1,22 +1,34 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.getAwsChunkedEncodingStream =
|
|
4
|
-
const
|
|
5
|
-
const
|
|
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
|
+
}
|
|
6
13
|
const { base64Encoder, bodyLengthChecker, checksumAlgorithmFn, checksumLocationName, streamHasher } = options;
|
|
7
14
|
const checksumRequired = base64Encoder !== undefined &&
|
|
8
15
|
checksumAlgorithmFn !== undefined &&
|
|
9
16
|
checksumLocationName !== undefined &&
|
|
10
17
|
streamHasher !== undefined;
|
|
11
|
-
const digest = checksumRequired ? streamHasher(checksumAlgorithmFn,
|
|
12
|
-
const awsChunkedEncodingStream = new
|
|
13
|
-
|
|
18
|
+
const digest = checksumRequired ? streamHasher(checksumAlgorithmFn, readable) : undefined;
|
|
19
|
+
const awsChunkedEncodingStream = new node_stream_1.Readable({
|
|
20
|
+
read: () => { },
|
|
21
|
+
});
|
|
22
|
+
readable.on("data", (data) => {
|
|
14
23
|
const length = bodyLengthChecker(data) || 0;
|
|
24
|
+
if (length === 0) {
|
|
25
|
+
return;
|
|
26
|
+
}
|
|
15
27
|
awsChunkedEncodingStream.push(`${length.toString(16)}\r\n`);
|
|
16
28
|
awsChunkedEncodingStream.push(data);
|
|
17
29
|
awsChunkedEncodingStream.push("\r\n");
|
|
18
30
|
});
|
|
19
|
-
|
|
31
|
+
readable.on("end", async () => {
|
|
20
32
|
awsChunkedEncodingStream.push(`0\r\n`);
|
|
21
33
|
if (checksumRequired) {
|
|
22
34
|
const checksum = base64Encoder(await digest);
|
|
@@ -26,5 +38,4 @@ const getAwsChunkedEncodingStream = (readableStream, options) => {
|
|
|
26
38
|
awsChunkedEncodingStream.push(null);
|
|
27
39
|
});
|
|
28
40
|
return awsChunkedEncodingStream;
|
|
29
|
-
}
|
|
30
|
-
exports.getAwsChunkedEncodingStream = getAwsChunkedEncodingStream;
|
|
41
|
+
}
|
|
@@ -33,6 +33,14 @@ class Uint8ArrayBlobAdapter extends Uint8Array {
|
|
|
33
33
|
}
|
|
34
34
|
}
|
|
35
35
|
|
|
36
|
+
Object.defineProperty(exports, "isBlob", {
|
|
37
|
+
enumerable: true,
|
|
38
|
+
get: function () { return streamTypeCheck.isBlob; }
|
|
39
|
+
});
|
|
40
|
+
Object.defineProperty(exports, "isReadableStream", {
|
|
41
|
+
enumerable: true,
|
|
42
|
+
get: function () { return streamTypeCheck.isReadableStream; }
|
|
43
|
+
});
|
|
36
44
|
exports.Uint8ArrayBlobAdapter = Uint8ArrayBlobAdapter;
|
|
37
45
|
Object.keys(ChecksumStream).forEach(function (k) {
|
|
38
46
|
if (k !== 'default' && !Object.prototype.hasOwnProperty.call(exports, k)) Object.defineProperty(exports, k, {
|
|
@@ -76,9 +84,3 @@ Object.keys(splitStream).forEach(function (k) {
|
|
|
76
84
|
get: function () { return splitStream[k]; }
|
|
77
85
|
});
|
|
78
86
|
});
|
|
79
|
-
Object.keys(streamTypeCheck).forEach(function (k) {
|
|
80
|
-
if (k !== 'default' && !Object.prototype.hasOwnProperty.call(exports, k)) Object.defineProperty(exports, k, {
|
|
81
|
-
enumerable: true,
|
|
82
|
-
get: function () { return streamTypeCheck[k]; }
|
|
83
|
-
});
|
|
84
|
-
});
|
|
@@ -1,19 +1,31 @@
|
|
|
1
|
-
import { Readable } from "stream";
|
|
2
|
-
|
|
1
|
+
import { Readable } from "node:stream";
|
|
2
|
+
import { getAwsChunkedEncodingStream as getAwsChunkedEncodingStreamBrowser } from "./getAwsChunkedEncodingStream.browser";
|
|
3
|
+
import { isReadableStream } from "./stream-type-check";
|
|
4
|
+
export function getAwsChunkedEncodingStream(stream, options) {
|
|
5
|
+
const readable = stream;
|
|
6
|
+
const readableStream = stream;
|
|
7
|
+
if (isReadableStream(readableStream)) {
|
|
8
|
+
return getAwsChunkedEncodingStreamBrowser(readableStream, options);
|
|
9
|
+
}
|
|
3
10
|
const { base64Encoder, bodyLengthChecker, checksumAlgorithmFn, checksumLocationName, streamHasher } = options;
|
|
4
11
|
const checksumRequired = base64Encoder !== undefined &&
|
|
5
12
|
checksumAlgorithmFn !== undefined &&
|
|
6
13
|
checksumLocationName !== undefined &&
|
|
7
14
|
streamHasher !== undefined;
|
|
8
|
-
const digest = checksumRequired ? streamHasher(checksumAlgorithmFn,
|
|
9
|
-
const awsChunkedEncodingStream = new Readable({
|
|
10
|
-
|
|
15
|
+
const digest = checksumRequired ? streamHasher(checksumAlgorithmFn, readable) : undefined;
|
|
16
|
+
const awsChunkedEncodingStream = new Readable({
|
|
17
|
+
read: () => { },
|
|
18
|
+
});
|
|
19
|
+
readable.on("data", (data) => {
|
|
11
20
|
const length = bodyLengthChecker(data) || 0;
|
|
21
|
+
if (length === 0) {
|
|
22
|
+
return;
|
|
23
|
+
}
|
|
12
24
|
awsChunkedEncodingStream.push(`${length.toString(16)}\r\n`);
|
|
13
25
|
awsChunkedEncodingStream.push(data);
|
|
14
26
|
awsChunkedEncodingStream.push("\r\n");
|
|
15
27
|
});
|
|
16
|
-
|
|
28
|
+
readable.on("end", async () => {
|
|
17
29
|
awsChunkedEncodingStream.push(`0\r\n`);
|
|
18
30
|
if (checksumRequired) {
|
|
19
31
|
const checksum = base64Encoder(await digest);
|
|
@@ -23,4 +35,4 @@ export const getAwsChunkedEncodingStream = (readableStream, options) => {
|
|
|
23
35
|
awsChunkedEncodingStream.push(null);
|
|
24
36
|
});
|
|
25
37
|
return awsChunkedEncodingStream;
|
|
26
|
-
}
|
|
38
|
+
}
|
|
@@ -27,11 +27,10 @@ export interface ChecksumStreamInit<T extends Readable | ReadableStream> {
|
|
|
27
27
|
base64Encoder?: Encoder;
|
|
28
28
|
}
|
|
29
29
|
/**
|
|
30
|
-
* @internal
|
|
31
|
-
*
|
|
32
30
|
* Wrapper for throwing checksum errors for streams without
|
|
33
31
|
* buffering the stream.
|
|
34
32
|
*
|
|
33
|
+
* @internal
|
|
35
34
|
*/
|
|
36
35
|
export declare class ChecksumStream extends Duplex {
|
|
37
36
|
private expectedChecksum;
|
|
@@ -41,20 +40,21 @@ export declare class ChecksumStream extends Duplex {
|
|
|
41
40
|
private base64Encoder;
|
|
42
41
|
constructor({ expectedChecksum, checksum, source, checksumSourceLocation, base64Encoder, }: ChecksumStreamInit<Readable>);
|
|
43
42
|
/**
|
|
44
|
-
*
|
|
43
|
+
* Do not call this directly.
|
|
44
|
+
* @internal
|
|
45
45
|
*/
|
|
46
46
|
_read(size: number): void;
|
|
47
47
|
/**
|
|
48
|
-
* @internal do not call this directly.
|
|
49
|
-
*
|
|
50
48
|
* When the upstream source flows data to this stream,
|
|
51
49
|
* calculate a step update of the checksum.
|
|
50
|
+
* Do not call this directly.
|
|
51
|
+
* @internal
|
|
52
52
|
*/
|
|
53
53
|
_write(chunk: Buffer, encoding: string, callback: (err?: Error) => void): void;
|
|
54
54
|
/**
|
|
55
|
-
* @internal do not call this directly.
|
|
56
|
-
*
|
|
57
55
|
* When the upstream source finishes, perform the checksum comparison.
|
|
56
|
+
* Do not call this directly.
|
|
57
|
+
* @internal
|
|
58
58
|
*/
|
|
59
59
|
_final(callback: (err?: Error) => void): Promise<void>;
|
|
60
60
|
}
|
package/node_modules/@smithy/util-stream/dist-types/checksum/createChecksumStream.browser.d.ts
CHANGED
|
@@ -1,15 +1,14 @@
|
|
|
1
1
|
import type { ChecksumStreamInit } from "./ChecksumStream.browser";
|
|
2
2
|
/**
|
|
3
|
-
* @internal
|
|
4
3
|
* Alias prevents compiler from turning
|
|
5
4
|
* ReadableStream into ReadableStream<any>, which is incompatible
|
|
6
5
|
* with the NodeJS.ReadableStream global type.
|
|
6
|
+
* @internal
|
|
7
7
|
*/
|
|
8
8
|
export type ReadableStreamType = ReadableStream;
|
|
9
9
|
/**
|
|
10
|
-
* @internal
|
|
11
|
-
*
|
|
12
10
|
* Creates a stream adapter for throwing checksum errors for streams without
|
|
13
11
|
* buffering the stream.
|
|
12
|
+
* @internal
|
|
14
13
|
*/
|
|
15
14
|
export declare const createChecksumStream: ({ expectedChecksum, checksum, source, checksumSourceLocation, base64Encoder, }: ChecksumStreamInit) => ReadableStreamType;
|
|
@@ -2,10 +2,12 @@ import type { Readable } from "stream";
|
|
|
2
2
|
import type { ChecksumStreamInit } from "./ChecksumStream";
|
|
3
3
|
import type { ReadableStreamType } from "./createChecksumStream.browser";
|
|
4
4
|
/**
|
|
5
|
-
* @internal
|
|
6
|
-
*
|
|
7
5
|
* Creates a stream mirroring the input stream's interface, but
|
|
8
6
|
* performs checksumming when reading to the end of the stream.
|
|
7
|
+
* @internal
|
|
9
8
|
*/
|
|
10
9
|
export declare function createChecksumStream(init: ChecksumStreamInit<ReadableStreamType>): ReadableStreamType;
|
|
10
|
+
/**
|
|
11
|
+
* @internal
|
|
12
|
+
*/
|
|
11
13
|
export declare function createChecksumStream(init: ChecksumStreamInit<Readable>): Readable;
|
|
@@ -4,9 +4,12 @@ import { Readable } from "node:stream";
|
|
|
4
4
|
* @internal
|
|
5
5
|
* @param upstream - any Readable or ReadableStream.
|
|
6
6
|
* @param size - byte or character length minimum. Buffering occurs when a chunk fails to meet this value.
|
|
7
|
-
* @param
|
|
7
|
+
* @param logger - for emitting warnings when buffering occurs.
|
|
8
8
|
* @returns another stream of the same data and stream class, but buffers chunks until
|
|
9
9
|
* the minimum size is met, except for the last chunk.
|
|
10
10
|
*/
|
|
11
11
|
export declare function createBufferedReadable(upstream: Readable, size: number, logger?: Logger): Readable;
|
|
12
|
+
/**
|
|
13
|
+
* @internal
|
|
14
|
+
*/
|
|
12
15
|
export declare function createBufferedReadable(upstream: ReadableStream, size: number, logger?: Logger): ReadableStream;
|
|
@@ -1,6 +1,10 @@
|
|
|
1
|
-
import type {
|
|
2
|
-
import { Readable } from "stream";
|
|
1
|
+
import type { GetAwsChunkedEncodingStreamOptions } from "@smithy/types";
|
|
2
|
+
import { Readable } from "node:stream";
|
|
3
3
|
/**
|
|
4
4
|
* @internal
|
|
5
5
|
*/
|
|
6
|
-
export declare
|
|
6
|
+
export declare function getAwsChunkedEncodingStream(stream: Readable, options: GetAwsChunkedEncodingStreamOptions): Readable;
|
|
7
|
+
/**
|
|
8
|
+
* @internal
|
|
9
|
+
*/
|
|
10
|
+
export declare function getAwsChunkedEncodingStream(stream: ReadableStream, options: GetAwsChunkedEncodingStreamOptions): ReadableStream;
|
|
@@ -1,8 +1,7 @@
|
|
|
1
1
|
/**
|
|
2
|
+
* Caution: the input stream must be destroyed separately, this function does not do so.
|
|
2
3
|
* @internal
|
|
3
4
|
* @param stream
|
|
4
5
|
* @param bytes - read head bytes from the stream and discard the rest of it.
|
|
5
|
-
*
|
|
6
|
-
* Caution: the input stream must be destroyed separately, this function does not do so.
|
|
7
6
|
*/
|
|
8
7
|
export declare function headStream(stream: ReadableStream, bytes: number): Promise<Uint8Array>;
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import type { Readable } from "stream";
|
|
2
2
|
/**
|
|
3
|
+
* Caution: the input stream must be destroyed separately, this function does not do so.
|
|
4
|
+
*
|
|
3
5
|
* @internal
|
|
4
6
|
* @param stream - to be read.
|
|
5
7
|
* @param bytes - read head bytes from the stream and discard the rest of it.
|
|
6
|
-
*
|
|
7
|
-
* Caution: the input stream must be destroyed separately, this function does not do so.
|
|
8
8
|
*/
|
|
9
9
|
export declare const headStream: (stream: Readable | ReadableStream, bytes: number) => Promise<Uint8Array>;
|
|
@@ -6,4 +6,7 @@ export * from "./getAwsChunkedEncodingStream";
|
|
|
6
6
|
export * from "./headStream";
|
|
7
7
|
export * from "./sdk-stream-mixin";
|
|
8
8
|
export * from "./splitStream";
|
|
9
|
-
|
|
9
|
+
/**
|
|
10
|
+
* @internal
|
|
11
|
+
*/
|
|
12
|
+
export { isReadableStream, isBlob } from "./stream-type-check";
|
|
@@ -5,4 +5,7 @@ import type { Readable } from "stream";
|
|
|
5
5
|
* @returns stream split into two identical streams.
|
|
6
6
|
*/
|
|
7
7
|
export declare function splitStream(stream: Readable): Promise<[Readable, Readable]>;
|
|
8
|
+
/**
|
|
9
|
+
* @internal
|
|
10
|
+
*/
|
|
8
11
|
export declare function splitStream(stream: ReadableStream): Promise<[ReadableStream, ReadableStream]>;
|
|
@@ -27,11 +27,10 @@ export interface ChecksumStreamInit<T extends Readable | ReadableStream> {
|
|
|
27
27
|
base64Encoder?: Encoder;
|
|
28
28
|
}
|
|
29
29
|
/**
|
|
30
|
-
* @internal
|
|
31
|
-
*
|
|
32
30
|
* Wrapper for throwing checksum errors for streams without
|
|
33
31
|
* buffering the stream.
|
|
34
32
|
*
|
|
33
|
+
* @internal
|
|
35
34
|
*/
|
|
36
35
|
export declare class ChecksumStream extends Duplex {
|
|
37
36
|
private expectedChecksum;
|
|
@@ -41,20 +40,21 @@ export declare class ChecksumStream extends Duplex {
|
|
|
41
40
|
private base64Encoder;
|
|
42
41
|
constructor({ expectedChecksum, checksum, source, checksumSourceLocation, base64Encoder, }: ChecksumStreamInit<Readable>);
|
|
43
42
|
/**
|
|
44
|
-
*
|
|
43
|
+
* Do not call this directly.
|
|
44
|
+
* @internal
|
|
45
45
|
*/
|
|
46
46
|
_read(size: number): void;
|
|
47
47
|
/**
|
|
48
|
-
* @internal do not call this directly.
|
|
49
|
-
*
|
|
50
48
|
* When the upstream source flows data to this stream,
|
|
51
49
|
* calculate a step update of the checksum.
|
|
50
|
+
* Do not call this directly.
|
|
51
|
+
* @internal
|
|
52
52
|
*/
|
|
53
53
|
_write(chunk: Buffer, encoding: string, callback: (err?: Error) => void): void;
|
|
54
54
|
/**
|
|
55
|
-
* @internal do not call this directly.
|
|
56
|
-
*
|
|
57
55
|
* When the upstream source finishes, perform the checksum comparison.
|
|
56
|
+
* Do not call this directly.
|
|
57
|
+
* @internal
|
|
58
58
|
*/
|
|
59
59
|
_final(callback: (err?: Error) => void): Promise<void>;
|
|
60
60
|
}
|
package/node_modules/@smithy/util-stream/dist-types/ts3.4/checksum/createChecksumStream.browser.d.ts
CHANGED
|
@@ -1,15 +1,14 @@
|
|
|
1
1
|
import { ChecksumStreamInit } from "./ChecksumStream.browser";
|
|
2
2
|
/**
|
|
3
|
-
* @internal
|
|
4
3
|
* Alias prevents compiler from turning
|
|
5
4
|
* ReadableStream into ReadableStream<any>, which is incompatible
|
|
6
5
|
* with the NodeJS.ReadableStream global type.
|
|
6
|
+
* @internal
|
|
7
7
|
*/
|
|
8
8
|
export type ReadableStreamType = ReadableStream;
|
|
9
9
|
/**
|
|
10
|
-
* @internal
|
|
11
|
-
*
|
|
12
10
|
* Creates a stream adapter for throwing checksum errors for streams without
|
|
13
11
|
* buffering the stream.
|
|
12
|
+
* @internal
|
|
14
13
|
*/
|
|
15
14
|
export declare const createChecksumStream: ({ expectedChecksum, checksum, source, checksumSourceLocation, base64Encoder, }: ChecksumStreamInit) => ReadableStreamType;
|
package/node_modules/@smithy/util-stream/dist-types/ts3.4/checksum/createChecksumStream.d.ts
CHANGED
|
@@ -2,10 +2,12 @@ import { Readable } from "stream";
|
|
|
2
2
|
import { ChecksumStreamInit } from "./ChecksumStream";
|
|
3
3
|
import { ReadableStreamType } from "./createChecksumStream.browser";
|
|
4
4
|
/**
|
|
5
|
-
* @internal
|
|
6
|
-
*
|
|
7
5
|
* Creates a stream mirroring the input stream's interface, but
|
|
8
6
|
* performs checksumming when reading to the end of the stream.
|
|
7
|
+
* @internal
|
|
9
8
|
*/
|
|
10
9
|
export declare function createChecksumStream(init: ChecksumStreamInit<ReadableStreamType>): ReadableStreamType;
|
|
10
|
+
/**
|
|
11
|
+
* @internal
|
|
12
|
+
*/
|
|
11
13
|
export declare function createChecksumStream(init: ChecksumStreamInit<Readable>): Readable;
|
|
@@ -4,9 +4,12 @@ import { Readable } from "node:stream";
|
|
|
4
4
|
* @internal
|
|
5
5
|
* @param upstream - any Readable or ReadableStream.
|
|
6
6
|
* @param size - byte or character length minimum. Buffering occurs when a chunk fails to meet this value.
|
|
7
|
-
* @param
|
|
7
|
+
* @param logger - for emitting warnings when buffering occurs.
|
|
8
8
|
* @returns another stream of the same data and stream class, but buffers chunks until
|
|
9
9
|
* the minimum size is met, except for the last chunk.
|
|
10
10
|
*/
|
|
11
11
|
export declare function createBufferedReadable(upstream: Readable, size: number, logger?: Logger): Readable;
|
|
12
|
+
/**
|
|
13
|
+
* @internal
|
|
14
|
+
*/
|
|
12
15
|
export declare function createBufferedReadable(upstream: ReadableStream, size: number, logger?: Logger): ReadableStream;
|
|
@@ -1,6 +1,10 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { Readable } from "stream";
|
|
1
|
+
import { GetAwsChunkedEncodingStreamOptions } from "@smithy/types";
|
|
2
|
+
import { Readable } from "node:stream";
|
|
3
3
|
/**
|
|
4
4
|
* @internal
|
|
5
5
|
*/
|
|
6
|
-
export declare
|
|
6
|
+
export declare function getAwsChunkedEncodingStream(stream: Readable, options: GetAwsChunkedEncodingStreamOptions): Readable;
|
|
7
|
+
/**
|
|
8
|
+
* @internal
|
|
9
|
+
*/
|
|
10
|
+
export declare function getAwsChunkedEncodingStream(stream: ReadableStream, options: GetAwsChunkedEncodingStreamOptions): ReadableStream;
|
|
@@ -1,8 +1,7 @@
|
|
|
1
1
|
/**
|
|
2
|
+
* Caution: the input stream must be destroyed separately, this function does not do so.
|
|
2
3
|
* @internal
|
|
3
4
|
* @param stream
|
|
4
5
|
* @param bytes - read head bytes from the stream and discard the rest of it.
|
|
5
|
-
*
|
|
6
|
-
* Caution: the input stream must be destroyed separately, this function does not do so.
|
|
7
6
|
*/
|
|
8
7
|
export declare function headStream(stream: ReadableStream, bytes: number): Promise<Uint8Array>;
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import { Readable } from "stream";
|
|
2
2
|
/**
|
|
3
|
+
* Caution: the input stream must be destroyed separately, this function does not do so.
|
|
4
|
+
*
|
|
3
5
|
* @internal
|
|
4
6
|
* @param stream - to be read.
|
|
5
7
|
* @param bytes - read head bytes from the stream and discard the rest of it.
|
|
6
|
-
*
|
|
7
|
-
* Caution: the input stream must be destroyed separately, this function does not do so.
|
|
8
8
|
*/
|
|
9
9
|
export declare const headStream: (stream: Readable | ReadableStream, bytes: number) => Promise<Uint8Array>;
|
|
@@ -6,4 +6,7 @@ export * from "./getAwsChunkedEncodingStream";
|
|
|
6
6
|
export * from "./headStream";
|
|
7
7
|
export * from "./sdk-stream-mixin";
|
|
8
8
|
export * from "./splitStream";
|
|
9
|
-
|
|
9
|
+
/**
|
|
10
|
+
* @internal
|
|
11
|
+
*/
|
|
12
|
+
export { isReadableStream, isBlob } from "./stream-type-check";
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@smithy/util-stream",
|
|
3
|
-
"version": "4.5.
|
|
3
|
+
"version": "4.5.10",
|
|
4
4
|
"scripts": {
|
|
5
5
|
"build": "concurrently 'yarn:build:cjs' 'yarn:build:es' 'yarn:build:types && yarn build:types:downlevel'",
|
|
6
6
|
"build:cjs": "node ../../scripts/inline util-stream",
|
|
@@ -29,9 +29,9 @@
|
|
|
29
29
|
"license": "Apache-2.0",
|
|
30
30
|
"sideEffects": false,
|
|
31
31
|
"dependencies": {
|
|
32
|
-
"@smithy/fetch-http-handler": "^5.3.
|
|
33
|
-
"@smithy/node-http-handler": "^4.4.
|
|
34
|
-
"@smithy/types": "^4.
|
|
32
|
+
"@smithy/fetch-http-handler": "^5.3.9",
|
|
33
|
+
"@smithy/node-http-handler": "^4.4.8",
|
|
34
|
+
"@smithy/types": "^4.12.0",
|
|
35
35
|
"@smithy/util-base64": "^4.3.0",
|
|
36
36
|
"@smithy/util-buffer-from": "^4.2.0",
|
|
37
37
|
"@smithy/util-hex-encoding": "^4.2.0",
|
|
@@ -43,7 +43,7 @@
|
|
|
43
43
|
"@types/node": "^18.11.9",
|
|
44
44
|
"concurrently": "7.0.0",
|
|
45
45
|
"downlevel-dts": "0.10.1",
|
|
46
|
-
"rimraf": "
|
|
46
|
+
"rimraf": "5.0.10",
|
|
47
47
|
"typedoc": "0.23.23"
|
|
48
48
|
},
|
|
49
49
|
"engines": {
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@smithy/util-waiter",
|
|
3
|
-
"version": "4.2.
|
|
3
|
+
"version": "4.2.8",
|
|
4
4
|
"description": "Shared utilities for client waiters for the AWS SDK",
|
|
5
5
|
"dependencies": {
|
|
6
|
-
"@smithy/abort-controller": "^4.2.
|
|
7
|
-
"@smithy/types": "^4.
|
|
6
|
+
"@smithy/abort-controller": "^4.2.8",
|
|
7
|
+
"@smithy/types": "^4.12.0",
|
|
8
8
|
"tslib": "^2.6.2"
|
|
9
9
|
},
|
|
10
10
|
"scripts": {
|
|
@@ -51,7 +51,7 @@
|
|
|
51
51
|
"devDependencies": {
|
|
52
52
|
"concurrently": "7.0.0",
|
|
53
53
|
"downlevel-dts": "0.10.1",
|
|
54
|
-
"rimraf": "
|
|
54
|
+
"rimraf": "5.0.10",
|
|
55
55
|
"typedoc": "0.23.23"
|
|
56
56
|
},
|
|
57
57
|
"typedoc": {
|