@jjrawlins/cdk-diff-pr-github-action 1.3.12 → 1.4.0
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 +18 -18
- package/lib/CdkDiffIamTemplate.js +6 -3
- package/lib/CdkDiffIamTemplateStackSet.js +4 -3
- package/lib/CdkDiffStackWorkflow.js +1 -1
- package/lib/CdkDriftDetectionWorkflow.js +1 -1
- package/lib/CdkDriftIamTemplate.js +2 -2
- package/lib/bin/cdk-changeset-script.js +153 -20
- package/node_modules/@aws-sdk/client-cloudformation/node_modules/@aws-sdk/util-endpoints/package.json +1 -1
- package/node_modules/@aws-sdk/client-cloudformation/package.json +2 -2
- package/node_modules/@smithy/core/dist-cjs/submodules/cbor/index.js +13 -10
- package/node_modules/@smithy/core/dist-cjs/submodules/protocols/index.js +5 -0
- package/node_modules/@smithy/core/dist-cjs/submodules/schema/index.js +24 -5
- package/node_modules/@smithy/core/dist-es/submodules/cbor/SmithyRpcV2CborProtocol.js +15 -11
- package/node_modules/@smithy/core/dist-es/submodules/protocols/HttpProtocol.js +6 -1
- package/node_modules/@smithy/core/dist-es/submodules/schema/TypeRegistry.js +24 -5
- package/node_modules/@smithy/core/dist-types/submodules/cbor/SmithyRpcV2CborProtocol.d.ts +7 -1
- package/node_modules/@smithy/core/dist-types/submodules/protocols/HttpBindingProtocol.d.ts +5 -1
- package/node_modules/@smithy/core/dist-types/submodules/protocols/HttpProtocol.d.ts +14 -1
- package/node_modules/@smithy/core/dist-types/submodules/protocols/RpcProtocol.d.ts +5 -0
- package/node_modules/@smithy/core/dist-types/submodules/schema/TypeRegistry.d.ts +8 -1
- package/node_modules/@smithy/core/dist-types/ts3.4/submodules/cbor/SmithyRpcV2CborProtocol.d.ts +7 -1
- package/node_modules/@smithy/core/dist-types/ts3.4/submodules/protocols/HttpBindingProtocol.d.ts +5 -1
- package/node_modules/@smithy/core/dist-types/ts3.4/submodules/protocols/HttpProtocol.d.ts +14 -1
- package/node_modules/@smithy/core/dist-types/ts3.4/submodules/protocols/RpcProtocol.d.ts +5 -0
- package/node_modules/@smithy/core/dist-types/ts3.4/submodules/schema/TypeRegistry.d.ts +8 -1
- package/node_modules/@smithy/core/package.json +2 -2
- package/node_modules/@smithy/middleware-endpoint/package.json +2 -2
- package/node_modules/@smithy/middleware-retry/package.json +2 -2
- package/node_modules/@smithy/node-http-handler/dist-cjs/index.js +9 -2
- package/node_modules/@smithy/node-http-handler/dist-es/write-request-body.js +9 -2
- package/node_modules/@smithy/node-http-handler/package.json +1 -1
- package/node_modules/@smithy/smithy-client/package.json +4 -4
- package/node_modules/@smithy/util-defaults-mode-browser/package.json +2 -2
- package/node_modules/@smithy/util-defaults-mode-node/package.json +2 -2
- package/node_modules/@smithy/util-stream/package.json +2 -2
- package/package.json +3 -3
|
@@ -14,10 +14,24 @@ export class TypeRegistry {
|
|
|
14
14
|
}
|
|
15
15
|
return TypeRegistry.registries.get(namespace);
|
|
16
16
|
}
|
|
17
|
+
copyFrom(other) {
|
|
18
|
+
const { schemas, exceptions } = this;
|
|
19
|
+
for (const [k, v] of other.schemas) {
|
|
20
|
+
if (!schemas.has(k)) {
|
|
21
|
+
schemas.set(k, v);
|
|
22
|
+
}
|
|
23
|
+
}
|
|
24
|
+
for (const [k, v] of other.exceptions) {
|
|
25
|
+
if (!exceptions.has(k)) {
|
|
26
|
+
exceptions.set(k, v);
|
|
27
|
+
}
|
|
28
|
+
}
|
|
29
|
+
}
|
|
17
30
|
register(shapeId, schema) {
|
|
18
31
|
const qualifiedName = this.normalizeShapeId(shapeId);
|
|
19
|
-
const
|
|
20
|
-
|
|
32
|
+
for (const r of [this, TypeRegistry.for(qualifiedName.split("#")[0])]) {
|
|
33
|
+
r.schemas.set(qualifiedName, schema);
|
|
34
|
+
}
|
|
21
35
|
}
|
|
22
36
|
getSchema(shapeId) {
|
|
23
37
|
const id = this.normalizeShapeId(shapeId);
|
|
@@ -28,12 +42,17 @@ export class TypeRegistry {
|
|
|
28
42
|
}
|
|
29
43
|
registerError(es, ctor) {
|
|
30
44
|
const $error = es;
|
|
31
|
-
const
|
|
32
|
-
|
|
33
|
-
|
|
45
|
+
const ns = $error[1];
|
|
46
|
+
for (const r of [this, TypeRegistry.for(ns)]) {
|
|
47
|
+
r.schemas.set(ns + "#" + $error[2], $error);
|
|
48
|
+
r.exceptions.set($error, ctor);
|
|
49
|
+
}
|
|
34
50
|
}
|
|
35
51
|
getErrorCtor(es) {
|
|
36
52
|
const $error = es;
|
|
53
|
+
if (this.exceptions.has($error)) {
|
|
54
|
+
return this.exceptions.get($error);
|
|
55
|
+
}
|
|
37
56
|
const registry = TypeRegistry.for($error[1]);
|
|
38
57
|
return registry.exceptions.get($error);
|
|
39
58
|
}
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import { RpcProtocol } from "@smithy/core/protocols";
|
|
2
|
+
import { TypeRegistry } from "@smithy/core/schema";
|
|
2
3
|
import type { EndpointBearer, HandlerExecutionContext, HttpRequest as IHttpRequest, HttpResponse as IHttpResponse, MetadataBearer, OperationSchema, ResponseMetadata, SerdeFunctions } from "@smithy/types";
|
|
3
4
|
import { CborCodec } from "./CborCodec";
|
|
4
5
|
/**
|
|
@@ -7,11 +8,16 @@ import { CborCodec } from "./CborCodec";
|
|
|
7
8
|
* @public
|
|
8
9
|
*/
|
|
9
10
|
export declare class SmithyRpcV2CborProtocol extends RpcProtocol {
|
|
11
|
+
/**
|
|
12
|
+
* @override
|
|
13
|
+
*/
|
|
14
|
+
protected compositeErrorRegistry: TypeRegistry;
|
|
10
15
|
private codec;
|
|
11
16
|
protected serializer: import("./CborCodec").CborShapeSerializer;
|
|
12
17
|
protected deserializer: import("./CborCodec").CborShapeDeserializer;
|
|
13
|
-
constructor({ defaultNamespace }: {
|
|
18
|
+
constructor({ defaultNamespace, errorTypeRegistries, }: {
|
|
14
19
|
defaultNamespace: string;
|
|
20
|
+
errorTypeRegistries?: TypeRegistry[];
|
|
15
21
|
});
|
|
16
22
|
getShapeId(): string;
|
|
17
23
|
getPayloadCodec(): CborCodec;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { NormalizedSchema } from "@smithy/core/schema";
|
|
1
|
+
import { type TypeRegistry, NormalizedSchema } from "@smithy/core/schema";
|
|
2
2
|
import { HttpRequest } from "@smithy/protocol-http";
|
|
3
3
|
import type { EndpointBearer, HandlerExecutionContext, HttpRequest as IHttpRequest, HttpResponse as IHttpResponse, MetadataBearer, OperationSchema, Schema, SerdeFunctions } from "@smithy/types";
|
|
4
4
|
import { HttpProtocol } from "./HttpProtocol";
|
|
@@ -9,6 +9,10 @@ import { HttpProtocol } from "./HttpProtocol";
|
|
|
9
9
|
* @public
|
|
10
10
|
*/
|
|
11
11
|
export declare abstract class HttpBindingProtocol extends HttpProtocol {
|
|
12
|
+
/**
|
|
13
|
+
* @override
|
|
14
|
+
*/
|
|
15
|
+
protected compositeErrorRegistry: TypeRegistry;
|
|
12
16
|
serializeRequest<Input extends object>(operationSchema: OperationSchema, _input: Input, context: HandlerExecutionContext & SerdeFunctions & EndpointBearer): Promise<IHttpRequest>;
|
|
13
17
|
protected serializeQuery(ns: NormalizedSchema, data: any, query: HttpRequest["query"]): void;
|
|
14
18
|
deserializeResponse<Output extends MetadataBearer>(operationSchema: OperationSchema, context: HandlerExecutionContext & SerdeFunctions, response: IHttpResponse): Promise<Output>;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import type { EventStreamSerde } from "@smithy/core/event-streams";
|
|
2
|
-
import { NormalizedSchema } from "@smithy/core/schema";
|
|
2
|
+
import { NormalizedSchema, TypeRegistry } from "@smithy/core/schema";
|
|
3
3
|
import type { ClientProtocol, Codec, Endpoint, EndpointBearer, EndpointV2, EventStreamMarshaller, HandlerExecutionContext, HttpRequest as IHttpRequest, HttpResponse as IHttpResponse, MetadataBearer, OperationSchema, ResponseMetadata, Schema, SerdeFunctions, ShapeDeserializer, ShapeSerializer } from "@smithy/types";
|
|
4
4
|
import { SerdeContext } from "./SerdeContext";
|
|
5
5
|
/**
|
|
@@ -10,11 +10,24 @@ import { SerdeContext } from "./SerdeContext";
|
|
|
10
10
|
export declare abstract class HttpProtocol extends SerdeContext implements ClientProtocol<IHttpRequest, IHttpResponse> {
|
|
11
11
|
readonly options: {
|
|
12
12
|
defaultNamespace: string;
|
|
13
|
+
errorTypeRegistries?: TypeRegistry[];
|
|
13
14
|
};
|
|
15
|
+
/**
|
|
16
|
+
* An error registry having the namespace of the modeled service,
|
|
17
|
+
* but combining all error schemas found within the service closure.
|
|
18
|
+
*
|
|
19
|
+
* Used to look up error schema during deserialization.
|
|
20
|
+
*/
|
|
21
|
+
protected compositeErrorRegistry: TypeRegistry;
|
|
14
22
|
protected abstract serializer: ShapeSerializer<string | Uint8Array>;
|
|
15
23
|
protected abstract deserializer: ShapeDeserializer<string | Uint8Array>;
|
|
24
|
+
/**
|
|
25
|
+
* @param options.defaultNamespace - used by various implementing classes.
|
|
26
|
+
* @param options.errorTypeRegistries - registry instances that contribute to error deserialization.
|
|
27
|
+
*/
|
|
16
28
|
protected constructor(options: {
|
|
17
29
|
defaultNamespace: string;
|
|
30
|
+
errorTypeRegistries?: TypeRegistry[];
|
|
18
31
|
});
|
|
19
32
|
abstract getShapeId(): string;
|
|
20
33
|
abstract getPayloadCodec(): Codec<any, any>;
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import { type TypeRegistry } from "@smithy/core/schema";
|
|
1
2
|
import type { EndpointBearer, HandlerExecutionContext, HttpRequest as IHttpRequest, HttpResponse as IHttpResponse, MetadataBearer, OperationSchema, SerdeFunctions } from "@smithy/types";
|
|
2
3
|
import { HttpProtocol } from "./HttpProtocol";
|
|
3
4
|
/**
|
|
@@ -6,6 +7,10 @@ import { HttpProtocol } from "./HttpProtocol";
|
|
|
6
7
|
* @public
|
|
7
8
|
*/
|
|
8
9
|
export declare abstract class RpcProtocol extends HttpProtocol {
|
|
10
|
+
/**
|
|
11
|
+
* @override
|
|
12
|
+
*/
|
|
13
|
+
protected compositeErrorRegistry: TypeRegistry;
|
|
9
14
|
serializeRequest<Input extends object>(operationSchema: OperationSchema, input: Input, context: HandlerExecutionContext & SerdeFunctions & EndpointBearer): Promise<IHttpRequest>;
|
|
10
15
|
deserializeResponse<Output extends MetadataBearer>(operationSchema: OperationSchema, context: HandlerExecutionContext & SerdeFunctions, response: IHttpResponse): Promise<Output>;
|
|
11
16
|
}
|
|
@@ -17,7 +17,14 @@ export declare class TypeRegistry {
|
|
|
17
17
|
*/
|
|
18
18
|
static for(namespace: string): TypeRegistry;
|
|
19
19
|
/**
|
|
20
|
-
*
|
|
20
|
+
* Copies entries from another instance without changing the namespace of self.
|
|
21
|
+
* The composition is additive but non-destructive and will not overwrite existing entries.
|
|
22
|
+
*
|
|
23
|
+
* @param other - another TypeRegistry.
|
|
24
|
+
*/
|
|
25
|
+
copyFrom(other: TypeRegistry): void;
|
|
26
|
+
/**
|
|
27
|
+
* Adds the given schema to a type registry with the same namespace, and this registry.
|
|
21
28
|
*
|
|
22
29
|
* @param shapeId - to be registered.
|
|
23
30
|
* @param schema - to be registered.
|
package/node_modules/@smithy/core/dist-types/ts3.4/submodules/cbor/SmithyRpcV2CborProtocol.d.ts
CHANGED
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import { RpcProtocol } from "@smithy/core/protocols";
|
|
2
|
+
import { TypeRegistry } from "@smithy/core/schema";
|
|
2
3
|
import { EndpointBearer, HandlerExecutionContext, HttpRequest as IHttpRequest, HttpResponse as IHttpResponse, MetadataBearer, OperationSchema, ResponseMetadata, SerdeFunctions } from "@smithy/types";
|
|
3
4
|
import { CborCodec } from "./CborCodec";
|
|
4
5
|
/**
|
|
@@ -7,11 +8,16 @@ import { CborCodec } from "./CborCodec";
|
|
|
7
8
|
* @public
|
|
8
9
|
*/
|
|
9
10
|
export declare class SmithyRpcV2CborProtocol extends RpcProtocol {
|
|
11
|
+
/**
|
|
12
|
+
* @override
|
|
13
|
+
*/
|
|
14
|
+
protected compositeErrorRegistry: TypeRegistry;
|
|
10
15
|
private codec;
|
|
11
16
|
protected serializer: import("./CborCodec").CborShapeSerializer;
|
|
12
17
|
protected deserializer: import("./CborCodec").CborShapeDeserializer;
|
|
13
|
-
constructor({ defaultNamespace }: {
|
|
18
|
+
constructor({ defaultNamespace, errorTypeRegistries, }: {
|
|
14
19
|
defaultNamespace: string;
|
|
20
|
+
errorTypeRegistries?: TypeRegistry[];
|
|
15
21
|
});
|
|
16
22
|
getShapeId(): string;
|
|
17
23
|
getPayloadCodec(): CborCodec;
|
package/node_modules/@smithy/core/dist-types/ts3.4/submodules/protocols/HttpBindingProtocol.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { NormalizedSchema } from "@smithy/core/schema";
|
|
1
|
+
import { TypeRegistry, NormalizedSchema } from "@smithy/core/schema";
|
|
2
2
|
import { HttpRequest } from "@smithy/protocol-http";
|
|
3
3
|
import { EndpointBearer, HandlerExecutionContext, HttpRequest as IHttpRequest, HttpResponse as IHttpResponse, MetadataBearer, OperationSchema, Schema, SerdeFunctions } from "@smithy/types";
|
|
4
4
|
import { HttpProtocol } from "./HttpProtocol";
|
|
@@ -9,6 +9,10 @@ import { HttpProtocol } from "./HttpProtocol";
|
|
|
9
9
|
* @public
|
|
10
10
|
*/
|
|
11
11
|
export declare abstract class HttpBindingProtocol extends HttpProtocol {
|
|
12
|
+
/**
|
|
13
|
+
* @override
|
|
14
|
+
*/
|
|
15
|
+
protected compositeErrorRegistry: TypeRegistry;
|
|
12
16
|
serializeRequest<Input extends object>(operationSchema: OperationSchema, _input: Input, context: HandlerExecutionContext & SerdeFunctions & EndpointBearer): Promise<IHttpRequest>;
|
|
13
17
|
protected serializeQuery(ns: NormalizedSchema, data: any, query: HttpRequest["query"]): void;
|
|
14
18
|
deserializeResponse<Output extends MetadataBearer>(operationSchema: OperationSchema, context: HandlerExecutionContext & SerdeFunctions, response: IHttpResponse): Promise<Output>;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { EventStreamSerde } from "@smithy/core/event-streams";
|
|
2
|
-
import { NormalizedSchema } from "@smithy/core/schema";
|
|
2
|
+
import { NormalizedSchema, TypeRegistry } from "@smithy/core/schema";
|
|
3
3
|
import { ClientProtocol, Codec, Endpoint, EndpointBearer, EndpointV2, EventStreamMarshaller, HandlerExecutionContext, HttpRequest as IHttpRequest, HttpResponse as IHttpResponse, MetadataBearer, OperationSchema, ResponseMetadata, Schema, SerdeFunctions, ShapeDeserializer, ShapeSerializer } from "@smithy/types";
|
|
4
4
|
import { SerdeContext } from "./SerdeContext";
|
|
5
5
|
/**
|
|
@@ -10,11 +10,24 @@ import { SerdeContext } from "./SerdeContext";
|
|
|
10
10
|
export declare abstract class HttpProtocol extends SerdeContext implements ClientProtocol<IHttpRequest, IHttpResponse> {
|
|
11
11
|
readonly options: {
|
|
12
12
|
defaultNamespace: string;
|
|
13
|
+
errorTypeRegistries?: TypeRegistry[];
|
|
13
14
|
};
|
|
15
|
+
/**
|
|
16
|
+
* An error registry having the namespace of the modeled service,
|
|
17
|
+
* but combining all error schemas found within the service closure.
|
|
18
|
+
*
|
|
19
|
+
* Used to look up error schema during deserialization.
|
|
20
|
+
*/
|
|
21
|
+
protected compositeErrorRegistry: TypeRegistry;
|
|
14
22
|
protected abstract serializer: ShapeSerializer<string | Uint8Array>;
|
|
15
23
|
protected abstract deserializer: ShapeDeserializer<string | Uint8Array>;
|
|
24
|
+
/**
|
|
25
|
+
* @param options.defaultNamespace - used by various implementing classes.
|
|
26
|
+
* @param options.errorTypeRegistries - registry instances that contribute to error deserialization.
|
|
27
|
+
*/
|
|
16
28
|
protected constructor(options: {
|
|
17
29
|
defaultNamespace: string;
|
|
30
|
+
errorTypeRegistries?: TypeRegistry[];
|
|
18
31
|
});
|
|
19
32
|
abstract getShapeId(): string;
|
|
20
33
|
abstract getPayloadCodec(): Codec<any, any>;
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import { TypeRegistry } from "@smithy/core/schema";
|
|
1
2
|
import { EndpointBearer, HandlerExecutionContext, HttpRequest as IHttpRequest, HttpResponse as IHttpResponse, MetadataBearer, OperationSchema, SerdeFunctions } from "@smithy/types";
|
|
2
3
|
import { HttpProtocol } from "./HttpProtocol";
|
|
3
4
|
/**
|
|
@@ -6,6 +7,10 @@ import { HttpProtocol } from "./HttpProtocol";
|
|
|
6
7
|
* @public
|
|
7
8
|
*/
|
|
8
9
|
export declare abstract class RpcProtocol extends HttpProtocol {
|
|
10
|
+
/**
|
|
11
|
+
* @override
|
|
12
|
+
*/
|
|
13
|
+
protected compositeErrorRegistry: TypeRegistry;
|
|
9
14
|
serializeRequest<Input extends object>(operationSchema: OperationSchema, input: Input, context: HandlerExecutionContext & SerdeFunctions & EndpointBearer): Promise<IHttpRequest>;
|
|
10
15
|
deserializeResponse<Output extends MetadataBearer>(operationSchema: OperationSchema, context: HandlerExecutionContext & SerdeFunctions, response: IHttpResponse): Promise<Output>;
|
|
11
16
|
}
|
|
@@ -17,7 +17,14 @@ export declare class TypeRegistry {
|
|
|
17
17
|
*/
|
|
18
18
|
static for(namespace: string): TypeRegistry;
|
|
19
19
|
/**
|
|
20
|
-
*
|
|
20
|
+
* Copies entries from another instance without changing the namespace of self.
|
|
21
|
+
* The composition is additive but non-destructive and will not overwrite existing entries.
|
|
22
|
+
*
|
|
23
|
+
* @param other - another TypeRegistry.
|
|
24
|
+
*/
|
|
25
|
+
copyFrom(other: TypeRegistry): void;
|
|
26
|
+
/**
|
|
27
|
+
* Adds the given schema to a type registry with the same namespace, and this registry.
|
|
21
28
|
*
|
|
22
29
|
* @param shapeId - to be registered.
|
|
23
30
|
* @param schema - to be registered.
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@smithy/core",
|
|
3
|
-
"version": "3.
|
|
3
|
+
"version": "3.23.0",
|
|
4
4
|
"scripts": {
|
|
5
5
|
"build": "yarn lint && concurrently 'yarn:build:cjs' 'yarn:build:es' 'yarn:build:types && yarn build:types:downlevel'",
|
|
6
6
|
"build:cjs": "node ../../scripts/inline core",
|
|
@@ -85,7 +85,7 @@
|
|
|
85
85
|
"@smithy/util-base64": "^4.3.0",
|
|
86
86
|
"@smithy/util-body-length-browser": "^4.2.0",
|
|
87
87
|
"@smithy/util-middleware": "^4.2.8",
|
|
88
|
-
"@smithy/util-stream": "^4.5.
|
|
88
|
+
"@smithy/util-stream": "^4.5.12",
|
|
89
89
|
"@smithy/util-utf8": "^4.2.0",
|
|
90
90
|
"@smithy/uuid": "^1.1.0",
|
|
91
91
|
"tslib": "^2.6.2"
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@smithy/middleware-endpoint",
|
|
3
|
-
"version": "4.4.
|
|
3
|
+
"version": "4.4.14",
|
|
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 middleware-endpoint",
|
|
@@ -25,7 +25,7 @@
|
|
|
25
25
|
"license": "Apache-2.0",
|
|
26
26
|
"sideEffects": false,
|
|
27
27
|
"dependencies": {
|
|
28
|
-
"@smithy/core": "^3.
|
|
28
|
+
"@smithy/core": "^3.23.0",
|
|
29
29
|
"@smithy/middleware-serde": "^4.2.9",
|
|
30
30
|
"@smithy/node-config-provider": "^4.3.8",
|
|
31
31
|
"@smithy/shared-ini-file-loader": "^4.4.3",
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@smithy/middleware-retry",
|
|
3
|
-
"version": "4.4.
|
|
3
|
+
"version": "4.4.31",
|
|
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 middleware-retry",
|
|
@@ -37,7 +37,7 @@
|
|
|
37
37
|
"@smithy/node-config-provider": "^4.3.8",
|
|
38
38
|
"@smithy/protocol-http": "^5.3.8",
|
|
39
39
|
"@smithy/service-error-classification": "^4.2.8",
|
|
40
|
-
"@smithy/smithy-client": "^4.11.
|
|
40
|
+
"@smithy/smithy-client": "^4.11.3",
|
|
41
41
|
"@smithy/types": "^4.12.0",
|
|
42
42
|
"@smithy/util-middleware": "^4.2.8",
|
|
43
43
|
"@smithy/util-retry": "^4.2.8",
|
|
@@ -162,8 +162,15 @@ function writeBody(httpRequest, body) {
|
|
|
162
162
|
return;
|
|
163
163
|
}
|
|
164
164
|
if (body) {
|
|
165
|
-
|
|
166
|
-
|
|
165
|
+
const isBuffer = Buffer.isBuffer(body);
|
|
166
|
+
const isString = typeof body === "string";
|
|
167
|
+
if (isBuffer || isString) {
|
|
168
|
+
if (isBuffer && body.byteLength === 0) {
|
|
169
|
+
httpRequest.end();
|
|
170
|
+
}
|
|
171
|
+
else {
|
|
172
|
+
httpRequest.end(body);
|
|
173
|
+
}
|
|
167
174
|
return;
|
|
168
175
|
}
|
|
169
176
|
const uint8 = body;
|
|
@@ -37,8 +37,15 @@ function writeBody(httpRequest, body) {
|
|
|
37
37
|
return;
|
|
38
38
|
}
|
|
39
39
|
if (body) {
|
|
40
|
-
|
|
41
|
-
|
|
40
|
+
const isBuffer = Buffer.isBuffer(body);
|
|
41
|
+
const isString = typeof body === "string";
|
|
42
|
+
if (isBuffer || isString) {
|
|
43
|
+
if (isBuffer && body.byteLength === 0) {
|
|
44
|
+
httpRequest.end();
|
|
45
|
+
}
|
|
46
|
+
else {
|
|
47
|
+
httpRequest.end(body);
|
|
48
|
+
}
|
|
42
49
|
return;
|
|
43
50
|
}
|
|
44
51
|
const uint8 = body;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@smithy/smithy-client",
|
|
3
|
-
"version": "4.11.
|
|
3
|
+
"version": "4.11.3",
|
|
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 smithy-client",
|
|
@@ -25,12 +25,12 @@
|
|
|
25
25
|
"license": "Apache-2.0",
|
|
26
26
|
"sideEffects": false,
|
|
27
27
|
"dependencies": {
|
|
28
|
-
"@smithy/core": "^3.
|
|
29
|
-
"@smithy/middleware-endpoint": "^4.4.
|
|
28
|
+
"@smithy/core": "^3.23.0",
|
|
29
|
+
"@smithy/middleware-endpoint": "^4.4.14",
|
|
30
30
|
"@smithy/middleware-stack": "^4.2.8",
|
|
31
31
|
"@smithy/protocol-http": "^5.3.8",
|
|
32
32
|
"@smithy/types": "^4.12.0",
|
|
33
|
-
"@smithy/util-stream": "^4.5.
|
|
33
|
+
"@smithy/util-stream": "^4.5.12",
|
|
34
34
|
"tslib": "^2.6.2"
|
|
35
35
|
},
|
|
36
36
|
"engines": {
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@smithy/util-defaults-mode-browser",
|
|
3
|
-
"version": "4.3.
|
|
3
|
+
"version": "4.3.30",
|
|
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",
|
|
@@ -25,7 +25,7 @@
|
|
|
25
25
|
"sideEffects": false,
|
|
26
26
|
"dependencies": {
|
|
27
27
|
"@smithy/property-provider": "^4.2.8",
|
|
28
|
-
"@smithy/smithy-client": "^4.11.
|
|
28
|
+
"@smithy/smithy-client": "^4.11.3",
|
|
29
29
|
"@smithy/types": "^4.12.0",
|
|
30
30
|
"tslib": "^2.6.2"
|
|
31
31
|
},
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@smithy/util-defaults-mode-node",
|
|
3
|
-
"version": "4.2.
|
|
3
|
+
"version": "4.2.33",
|
|
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",
|
|
@@ -28,7 +28,7 @@
|
|
|
28
28
|
"@smithy/credential-provider-imds": "^4.2.8",
|
|
29
29
|
"@smithy/node-config-provider": "^4.3.8",
|
|
30
30
|
"@smithy/property-provider": "^4.2.8",
|
|
31
|
-
"@smithy/smithy-client": "^4.11.
|
|
31
|
+
"@smithy/smithy-client": "^4.11.3",
|
|
32
32
|
"@smithy/types": "^4.12.0",
|
|
33
33
|
"tslib": "^2.6.2"
|
|
34
34
|
},
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@smithy/util-stream",
|
|
3
|
-
"version": "4.5.
|
|
3
|
+
"version": "4.5.12",
|
|
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",
|
|
@@ -30,7 +30,7 @@
|
|
|
30
30
|
"sideEffects": false,
|
|
31
31
|
"dependencies": {
|
|
32
32
|
"@smithy/fetch-http-handler": "^5.3.9",
|
|
33
|
-
"@smithy/node-http-handler": "^4.4.
|
|
33
|
+
"@smithy/node-http-handler": "^4.4.10",
|
|
34
34
|
"@smithy/types": "^4.12.0",
|
|
35
35
|
"@smithy/util-base64": "^4.3.0",
|
|
36
36
|
"@smithy/util-buffer-from": "^4.2.0",
|
package/package.json
CHANGED
|
@@ -39,7 +39,7 @@
|
|
|
39
39
|
"@stylistic/eslint-plugin": "^2",
|
|
40
40
|
"@types/jest": "^30.0.0",
|
|
41
41
|
"@types/lodash": "^4.17.23",
|
|
42
|
-
"@types/node": "^24.10.
|
|
42
|
+
"@types/node": "^24.10.13",
|
|
43
43
|
"@typescript-eslint/eslint-plugin": "^8",
|
|
44
44
|
"@typescript-eslint/parser": "^8",
|
|
45
45
|
"aws-cdk": "2.1029.2",
|
|
@@ -66,7 +66,7 @@
|
|
|
66
66
|
"constructs": ">=10.0.5 <11.0.0"
|
|
67
67
|
},
|
|
68
68
|
"dependencies": {
|
|
69
|
-
"@aws-sdk/client-cloudformation": "^3.
|
|
69
|
+
"@aws-sdk/client-cloudformation": "^3.987.0",
|
|
70
70
|
"@types/crypto-js": "^4.2.2",
|
|
71
71
|
"@types/js-yaml": "^4.0.9",
|
|
72
72
|
"crypto-js": "^4.2.0",
|
|
@@ -108,7 +108,7 @@
|
|
|
108
108
|
"publishConfig": {
|
|
109
109
|
"access": "public"
|
|
110
110
|
},
|
|
111
|
-
"version": "1.
|
|
111
|
+
"version": "1.4.0",
|
|
112
112
|
"jest": {
|
|
113
113
|
"coverageProvider": "v8",
|
|
114
114
|
"testMatch": [
|