@cdk8s/awscdk-resolver 0.0.384 → 0.0.386
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 +2 -2
- package/lib/resolve.js +1 -1
- package/node_modules/@smithy/abort-controller/package.json +2 -2
- package/node_modules/@smithy/config-resolver/package.json +4 -4
- package/node_modules/@smithy/core/dist-cjs/submodules/cbor/index.js +3 -15
- package/node_modules/@smithy/core/dist-cjs/submodules/protocols/index.js +16 -14
- package/node_modules/@smithy/core/dist-cjs/submodules/schema/index.js +161 -138
- package/node_modules/@smithy/core/dist-es/index.js +1 -1
- package/node_modules/@smithy/core/dist-es/submodules/cbor/CborCodec.js +4 -15
- package/node_modules/@smithy/core/dist-es/submodules/protocols/HttpProtocol.js +3 -2
- package/node_modules/@smithy/core/dist-es/submodules/protocols/SerdeContext.js +6 -0
- package/node_modules/@smithy/core/dist-es/submodules/protocols/index.js +1 -0
- package/node_modules/@smithy/core/dist-es/submodules/protocols/serde/FromStringShapeDeserializer.js +3 -5
- package/node_modules/@smithy/core/dist-es/submodules/protocols/serde/HttpInterceptingShapeDeserializer.js +3 -2
- package/node_modules/@smithy/core/dist-es/submodules/protocols/serde/ToStringShapeSerializer.js +3 -5
- package/node_modules/@smithy/core/dist-es/submodules/schema/TypeRegistry.js +4 -4
- package/node_modules/@smithy/core/dist-es/submodules/schema/middleware/schemaDeserializationMiddleware.js +5 -1
- package/node_modules/@smithy/core/dist-es/submodules/schema/middleware/schemaSerializationMiddleware.js +5 -1
- package/node_modules/@smithy/core/dist-es/submodules/schema/schemas/NormalizedSchema.js +24 -6
- package/node_modules/@smithy/core/dist-types/index.d.ts +1 -1
- package/node_modules/@smithy/core/dist-types/submodules/cbor/CborCodec.d.ts +5 -10
- package/node_modules/@smithy/core/dist-types/submodules/protocols/HttpProtocol.d.ts +5 -2
- package/node_modules/@smithy/core/dist-types/submodules/protocols/SerdeContext.d.ts +8 -0
- package/node_modules/@smithy/core/dist-types/submodules/protocols/index.d.ts +1 -0
- package/node_modules/@smithy/core/dist-types/submodules/protocols/serde/FromStringShapeDeserializer.d.ts +3 -4
- package/node_modules/@smithy/core/dist-types/submodules/protocols/serde/HttpInterceptingShapeDeserializer.d.ts +5 -2
- package/node_modules/@smithy/core/dist-types/submodules/protocols/serde/HttpInterceptingShapeSerializer.d.ts +5 -2
- package/node_modules/@smithy/core/dist-types/submodules/protocols/serde/ToStringShapeSerializer.d.ts +3 -4
- package/node_modules/@smithy/core/dist-types/submodules/schema/TypeRegistry.d.ts +4 -4
- package/node_modules/@smithy/core/dist-types/submodules/schema/schemas/NormalizedSchema.d.ts +22 -1
- package/node_modules/@smithy/core/dist-types/ts3.4/index.d.ts +1 -1
- package/node_modules/@smithy/core/dist-types/ts3.4/submodules/cbor/CborCodec.d.ts +5 -10
- package/node_modules/@smithy/core/dist-types/ts3.4/submodules/protocols/HttpProtocol.d.ts +5 -2
- package/node_modules/@smithy/core/dist-types/ts3.4/submodules/protocols/SerdeContext.d.ts +8 -0
- package/node_modules/@smithy/core/dist-types/ts3.4/submodules/protocols/index.d.ts +1 -0
- package/node_modules/@smithy/core/dist-types/ts3.4/submodules/protocols/serde/FromStringShapeDeserializer.d.ts +3 -4
- package/node_modules/@smithy/core/dist-types/ts3.4/submodules/protocols/serde/HttpInterceptingShapeDeserializer.d.ts +5 -2
- package/node_modules/@smithy/core/dist-types/ts3.4/submodules/protocols/serde/HttpInterceptingShapeSerializer.d.ts +5 -2
- package/node_modules/@smithy/core/dist-types/ts3.4/submodules/protocols/serde/ToStringShapeSerializer.d.ts +3 -4
- package/node_modules/@smithy/core/dist-types/ts3.4/submodules/schema/TypeRegistry.d.ts +4 -4
- package/node_modules/@smithy/core/dist-types/ts3.4/submodules/schema/schemas/NormalizedSchema.d.ts +22 -1
- package/node_modules/@smithy/core/package.json +7 -7
- package/node_modules/@smithy/credential-provider-imds/package.json +5 -5
- package/node_modules/@smithy/fetch-http-handler/package.json +5 -5
- package/node_modules/@smithy/hash-node/package.json +2 -2
- package/node_modules/@smithy/invalid-dependency/package.json +2 -2
- package/node_modules/@smithy/middleware-content-length/package.json +3 -3
- 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 +3 -3
- package/node_modules/@smithy/middleware-stack/package.json +2 -2
- package/node_modules/@smithy/node-config-provider/package.json +4 -4
- package/node_modules/@smithy/node-http-handler/dist-cjs/index.js +30 -6
- package/node_modules/@smithy/node-http-handler/dist-es/node-http-handler.js +7 -3
- package/node_modules/@smithy/node-http-handler/dist-es/set-connection-timeout.js +1 -1
- package/node_modules/@smithy/node-http-handler/dist-es/set-request-timeout.js +21 -0
- package/node_modules/@smithy/node-http-handler/dist-es/set-socket-timeout.js +2 -3
- package/node_modules/@smithy/node-http-handler/dist-types/set-request-timeout.d.ts +6 -0
- package/node_modules/@smithy/node-http-handler/dist-types/ts3.4/set-request-timeout.d.ts +6 -0
- package/node_modules/@smithy/node-http-handler/package.json +5 -5
- package/node_modules/@smithy/property-provider/package.json +2 -2
- package/node_modules/@smithy/protocol-http/package.json +2 -2
- package/node_modules/@smithy/querystring-builder/package.json +2 -2
- package/node_modules/@smithy/querystring-parser/package.json +2 -2
- package/node_modules/@smithy/service-error-classification/package.json +2 -2
- package/node_modules/@smithy/shared-ini-file-loader/package.json +2 -2
- package/node_modules/@smithy/signature-v4/package.json +4 -4
- package/node_modules/@smithy/smithy-client/dist-cjs/index.js +5 -4
- package/node_modules/@smithy/smithy-client/dist-es/command.js +5 -4
- package/node_modules/@smithy/smithy-client/dist-types/command.d.ts +3 -3
- package/node_modules/@smithy/smithy-client/dist-types/ts3.4/command.d.ts +3 -3
- package/node_modules/@smithy/smithy-client/package.json +7 -7
- package/node_modules/@smithy/types/dist-es/index.js +1 -0
- package/node_modules/@smithy/types/dist-es/schema/static-schemas.js +1 -0
- package/node_modules/@smithy/types/dist-types/http/httpHandlerInitialization.d.ts +17 -10
- package/node_modules/@smithy/types/dist-types/index.d.ts +1 -0
- package/node_modules/@smithy/types/dist-types/schema/schema.d.ts +2 -1
- package/node_modules/@smithy/types/dist-types/schema/static-schemas.d.ts +82 -0
- package/node_modules/@smithy/types/dist-types/ts3.4/http/httpHandlerInitialization.d.ts +17 -10
- package/node_modules/@smithy/types/dist-types/ts3.4/index.d.ts +1 -0
- package/node_modules/@smithy/types/dist-types/ts3.4/schema/schema.d.ts +2 -1
- package/node_modules/@smithy/types/dist-types/ts3.4/schema/static-schemas.d.ts +101 -0
- package/node_modules/@smithy/types/package.json +1 -1
- package/node_modules/@smithy/url-parser/package.json +3 -3
- 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 +3 -3
- package/node_modules/@smithy/util-middleware/package.json +2 -2
- package/node_modules/@smithy/util-retry/package.json +3 -3
- package/node_modules/@smithy/util-stream/package.json +4 -4
- package/node_modules/@smithy/util-waiter/package.json +3 -3
- package/package.json +4 -4
- /package/node_modules/@smithy/core/dist-es/{protocols → request-builder}/requestBuilder.js +0 -0
- /package/node_modules/@smithy/core/dist-types/{protocols → request-builder}/requestBuilder.d.ts +0 -0
- /package/node_modules/@smithy/core/dist-types/ts3.4/{protocols → request-builder}/requestBuilder.d.ts +0 -0
package/.jsii
CHANGED
@@ -4082,6 +4082,6 @@
|
|
4082
4082
|
"symbolId": "src/resolve:AwsCdkResolver"
|
4083
4083
|
}
|
4084
4084
|
},
|
4085
|
-
"version": "0.0.
|
4086
|
-
"fingerprint": "
|
4085
|
+
"version": "0.0.386",
|
4086
|
+
"fingerprint": "ktPyZfzk17RjzTTAUsPB8qE570g5SXHwQTi0PLNQjrQ="
|
4087
4087
|
}
|
package/lib/resolve.js
CHANGED
@@ -61,5 +61,5 @@ class AwsCdkResolver {
|
|
61
61
|
}
|
62
62
|
exports.AwsCdkResolver = AwsCdkResolver;
|
63
63
|
_a = JSII_RTTI_SYMBOL_1;
|
64
|
-
AwsCdkResolver[_a] = { fqn: "@cdk8s/awscdk-resolver.AwsCdkResolver", version: "0.0.
|
64
|
+
AwsCdkResolver[_a] = { fqn: "@cdk8s/awscdk-resolver.AwsCdkResolver", version: "0.0.386" };
|
65
65
|
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoicmVzb2x2ZS5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbIi4uL3NyYy9yZXNvbHZlLnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiI7Ozs7O0FBQUEsaURBQTZDO0FBQzdDLDZCQUE2QjtBQUM3Qiw2Q0FBK0U7QUFJL0UsTUFBYSxjQUFjO0lBRWxCLE9BQU8sQ0FBQyxPQUEwQjtRQUV2QyxJQUFJLENBQUMsbUJBQUssQ0FBQyxZQUFZLENBQUMsT0FBTyxDQUFDLEtBQUssQ0FBQyxFQUFFLENBQUM7WUFDdkMsT0FBTztRQUNULENBQUM7UUFFRCxJQUFJLE9BQU8sT0FBTyxDQUFDLEtBQUssS0FBSyxRQUFRLEVBQUUsQ0FBQztZQUN0QywrREFBK0Q7WUFDL0QsbUJBQW1CO1lBQ25CLE1BQU0sSUFBSSxLQUFLLENBQUMsdUJBQXVCLE9BQU0sQ0FBQyxPQUFPLENBQUMsS0FBSyxDQUFDLHNCQUFzQixDQUFDLENBQUM7UUFDdEYsQ0FBQztRQUVELE1BQU0sTUFBTSxHQUFHLElBQUksQ0FBQyxVQUFVLENBQUMsT0FBTyxDQUFDLEtBQUssQ0FBQyxDQUFDO1FBQzlDLElBQUksQ0FBQztZQUNILE1BQU0sV0FBVyxHQUFHLElBQUksQ0FBQyxnQkFBZ0IsQ0FBQyxNQUFNLENBQUMsQ0FBQztZQUNsRCxPQUFPLENBQUMsWUFBWSxDQUFDLFdBQVcsQ0FBQyxDQUFDO1FBQ3BDLENBQUM7UUFBQyxPQUFPLEdBQUcsRU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RyaW5nKCkudHJpbSgpKTtcblxuICB9XG5cbn1cbiJdfQ==
|
@@ -1,6 +1,6 @@
|
|
1
1
|
{
|
2
2
|
"name": "@smithy/abort-controller",
|
3
|
-
"version": "4.2.
|
3
|
+
"version": "4.2.1",
|
4
4
|
"description": "A simple abort controller library",
|
5
5
|
"main": "./dist-cjs/index.js",
|
6
6
|
"module": "./dist-es/index.js",
|
@@ -26,7 +26,7 @@
|
|
26
26
|
"license": "Apache-2.0",
|
27
27
|
"sideEffects": false,
|
28
28
|
"dependencies": {
|
29
|
-
"@smithy/types": "^4.
|
29
|
+
"@smithy/types": "^4.7.0",
|
30
30
|
"tslib": "^2.6.2"
|
31
31
|
},
|
32
32
|
"engines": {
|
@@ -1,6 +1,6 @@
|
|
1
1
|
{
|
2
2
|
"name": "@smithy/config-resolver",
|
3
|
-
"version": "4.3.
|
3
|
+
"version": "4.3.1",
|
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 config-resolver",
|
@@ -25,10 +25,10 @@
|
|
25
25
|
"license": "Apache-2.0",
|
26
26
|
"sideEffects": false,
|
27
27
|
"dependencies": {
|
28
|
-
"@smithy/node-config-provider": "^4.3.
|
29
|
-
"@smithy/types": "^4.
|
28
|
+
"@smithy/node-config-provider": "^4.3.1",
|
29
|
+
"@smithy/types": "^4.7.0",
|
30
30
|
"@smithy/util-config-provider": "^4.2.0",
|
31
|
-
"@smithy/util-middleware": "^4.2.
|
31
|
+
"@smithy/util-middleware": "^4.2.1",
|
32
32
|
"tslib": "^2.6.2"
|
33
33
|
},
|
34
34
|
"devDependencies": {
|
@@ -780,8 +780,7 @@ const buildHttpRpcRequest = async (context, headers, path, resolvedHostname, bod
|
|
780
780
|
return new protocolHttp.HttpRequest(contents);
|
781
781
|
};
|
782
782
|
|
783
|
-
class CborCodec {
|
784
|
-
serdeContext;
|
783
|
+
class CborCodec extends protocols.SerdeContext {
|
785
784
|
createSerializer() {
|
786
785
|
const serializer = new CborShapeSerializer();
|
787
786
|
serializer.setSerdeContext(this.serdeContext);
|
@@ -792,16 +791,9 @@ class CborCodec {
|
|
792
791
|
deserializer.setSerdeContext(this.serdeContext);
|
793
792
|
return deserializer;
|
794
793
|
}
|
795
|
-
setSerdeContext(serdeContext) {
|
796
|
-
this.serdeContext = serdeContext;
|
797
|
-
}
|
798
794
|
}
|
799
|
-
class CborShapeSerializer {
|
800
|
-
serdeContext;
|
795
|
+
class CborShapeSerializer extends protocols.SerdeContext {
|
801
796
|
value;
|
802
|
-
setSerdeContext(serdeContext) {
|
803
|
-
this.serdeContext = serdeContext;
|
804
|
-
}
|
805
797
|
write(schema, value) {
|
806
798
|
this.value = this.serialize(schema, value);
|
807
799
|
}
|
@@ -875,11 +867,7 @@ class CborShapeSerializer {
|
|
875
867
|
return buffer;
|
876
868
|
}
|
877
869
|
}
|
878
|
-
class CborShapeDeserializer {
|
879
|
-
serdeContext;
|
880
|
-
setSerdeContext(serdeContext) {
|
881
|
-
this.serdeContext = serdeContext;
|
882
|
-
}
|
870
|
+
class CborShapeDeserializer extends protocols.SerdeContext {
|
883
871
|
read(schema, bytes) {
|
884
872
|
const data = cbor.deserialize(bytes);
|
885
873
|
return this.readValue(schema, data);
|
@@ -24,10 +24,17 @@ function extendedEncodeURIComponent(str) {
|
|
24
24
|
});
|
25
25
|
}
|
26
26
|
|
27
|
-
class
|
28
|
-
options;
|
27
|
+
class SerdeContext {
|
29
28
|
serdeContext;
|
29
|
+
setSerdeContext(serdeContext) {
|
30
|
+
this.serdeContext = serdeContext;
|
31
|
+
}
|
32
|
+
}
|
33
|
+
|
34
|
+
class HttpProtocol extends SerdeContext {
|
35
|
+
options;
|
30
36
|
constructor(options) {
|
37
|
+
super();
|
31
38
|
this.options = options;
|
32
39
|
}
|
33
40
|
getRequestType() {
|
@@ -591,15 +598,12 @@ function determineTimestampFormat(ns, settings) {
|
|
591
598
|
return bindingFormat ?? settings.timestampFormat.default;
|
592
599
|
}
|
593
600
|
|
594
|
-
class FromStringShapeDeserializer {
|
601
|
+
class FromStringShapeDeserializer extends SerdeContext {
|
595
602
|
settings;
|
596
|
-
serdeContext;
|
597
603
|
constructor(settings) {
|
604
|
+
super();
|
598
605
|
this.settings = settings;
|
599
606
|
}
|
600
|
-
setSerdeContext(serdeContext) {
|
601
|
-
this.serdeContext = serdeContext;
|
602
|
-
}
|
603
607
|
read(_schema, data) {
|
604
608
|
const ns = schema.NormalizedSchema.of(_schema);
|
605
609
|
if (ns.isListSchema()) {
|
@@ -655,11 +659,11 @@ class FromStringShapeDeserializer {
|
|
655
659
|
}
|
656
660
|
}
|
657
661
|
|
658
|
-
class HttpInterceptingShapeDeserializer {
|
662
|
+
class HttpInterceptingShapeDeserializer extends SerdeContext {
|
659
663
|
codecDeserializer;
|
660
664
|
stringDeserializer;
|
661
|
-
serdeContext;
|
662
665
|
constructor(codecDeserializer, codecSettings) {
|
666
|
+
super();
|
663
667
|
this.codecDeserializer = codecDeserializer;
|
664
668
|
this.stringDeserializer = new FromStringShapeDeserializer(codecSettings);
|
665
669
|
}
|
@@ -694,16 +698,13 @@ class HttpInterceptingShapeDeserializer {
|
|
694
698
|
}
|
695
699
|
}
|
696
700
|
|
697
|
-
class ToStringShapeSerializer {
|
701
|
+
class ToStringShapeSerializer extends SerdeContext {
|
698
702
|
settings;
|
699
703
|
stringBuffer = "";
|
700
|
-
serdeContext = undefined;
|
701
704
|
constructor(settings) {
|
705
|
+
super();
|
702
706
|
this.settings = settings;
|
703
707
|
}
|
704
|
-
setSerdeContext(serdeContext) {
|
705
|
-
this.serdeContext = serdeContext;
|
706
|
-
}
|
707
708
|
write(schema$1, value) {
|
708
709
|
const ns = schema.NormalizedSchema.of(schema$1);
|
709
710
|
switch (typeof value) {
|
@@ -818,6 +819,7 @@ exports.HttpInterceptingShapeSerializer = HttpInterceptingShapeSerializer;
|
|
818
819
|
exports.HttpProtocol = HttpProtocol;
|
819
820
|
exports.RequestBuilder = RequestBuilder;
|
820
821
|
exports.RpcProtocol = RpcProtocol;
|
822
|
+
exports.SerdeContext = SerdeContext;
|
821
823
|
exports.ToStringShapeSerializer = ToStringShapeSerializer;
|
822
824
|
exports.collectBody = collectBody;
|
823
825
|
exports.determineTimestampFormat = determineTimestampFormat;
|
@@ -10,103 +10,6 @@ const deref = (schemaRef) => {
|
|
10
10
|
return schemaRef;
|
11
11
|
};
|
12
12
|
|
13
|
-
const schemaDeserializationMiddleware = (config) => (next, context) => async (args) => {
|
14
|
-
const { response } = await next(args);
|
15
|
-
const { operationSchema } = utilMiddleware.getSmithyContext(context);
|
16
|
-
try {
|
17
|
-
const parsed = await config.protocol.deserializeResponse(operationSchema, {
|
18
|
-
...config,
|
19
|
-
...context,
|
20
|
-
}, response);
|
21
|
-
return {
|
22
|
-
response,
|
23
|
-
output: parsed,
|
24
|
-
};
|
25
|
-
}
|
26
|
-
catch (error) {
|
27
|
-
Object.defineProperty(error, "$response", {
|
28
|
-
value: response,
|
29
|
-
});
|
30
|
-
if (!("$metadata" in error)) {
|
31
|
-
const hint = `Deserialization error: to see the raw response, inspect the hidden field {error}.$response on this object.`;
|
32
|
-
try {
|
33
|
-
error.message += "\n " + hint;
|
34
|
-
}
|
35
|
-
catch (e) {
|
36
|
-
if (!context.logger || context.logger?.constructor?.name === "NoOpLogger") {
|
37
|
-
console.warn(hint);
|
38
|
-
}
|
39
|
-
else {
|
40
|
-
context.logger?.warn?.(hint);
|
41
|
-
}
|
42
|
-
}
|
43
|
-
if (typeof error.$responseBodyText !== "undefined") {
|
44
|
-
if (error.$response) {
|
45
|
-
error.$response.body = error.$responseBodyText;
|
46
|
-
}
|
47
|
-
}
|
48
|
-
try {
|
49
|
-
if (protocolHttp.HttpResponse.isInstance(response)) {
|
50
|
-
const { headers = {} } = response;
|
51
|
-
const headerEntries = Object.entries(headers);
|
52
|
-
error.$metadata = {
|
53
|
-
httpStatusCode: response.statusCode,
|
54
|
-
requestId: findHeader(/^x-[\w-]+-request-?id$/, headerEntries),
|
55
|
-
extendedRequestId: findHeader(/^x-[\w-]+-id-2$/, headerEntries),
|
56
|
-
cfId: findHeader(/^x-[\w-]+-cf-id$/, headerEntries),
|
57
|
-
};
|
58
|
-
}
|
59
|
-
}
|
60
|
-
catch (e) {
|
61
|
-
}
|
62
|
-
}
|
63
|
-
throw error;
|
64
|
-
}
|
65
|
-
};
|
66
|
-
const findHeader = (pattern, headers) => {
|
67
|
-
return (headers.find(([k]) => {
|
68
|
-
return k.match(pattern);
|
69
|
-
}) || [void 0, void 0])[1];
|
70
|
-
};
|
71
|
-
|
72
|
-
const schemaSerializationMiddleware = (config) => (next, context) => async (args) => {
|
73
|
-
const { operationSchema } = utilMiddleware.getSmithyContext(context);
|
74
|
-
const endpoint = context.endpointV2?.url && config.urlParser
|
75
|
-
? async () => config.urlParser(context.endpointV2.url)
|
76
|
-
: config.endpoint;
|
77
|
-
const request = await config.protocol.serializeRequest(operationSchema, args.input, {
|
78
|
-
...config,
|
79
|
-
...context,
|
80
|
-
endpoint,
|
81
|
-
});
|
82
|
-
return next({
|
83
|
-
...args,
|
84
|
-
request,
|
85
|
-
});
|
86
|
-
};
|
87
|
-
|
88
|
-
const deserializerMiddlewareOption = {
|
89
|
-
name: "deserializerMiddleware",
|
90
|
-
step: "deserialize",
|
91
|
-
tags: ["DESERIALIZER"],
|
92
|
-
override: true,
|
93
|
-
};
|
94
|
-
const serializerMiddlewareOption = {
|
95
|
-
name: "serializerMiddleware",
|
96
|
-
step: "serialize",
|
97
|
-
tags: ["SERIALIZER"],
|
98
|
-
override: true,
|
99
|
-
};
|
100
|
-
function getSchemaSerdePlugin(config) {
|
101
|
-
return {
|
102
|
-
applyToStack: (commandStack) => {
|
103
|
-
commandStack.add(schemaSerializationMiddleware(config), serializerMiddlewareOption);
|
104
|
-
commandStack.add(schemaDeserializationMiddleware(config), deserializerMiddlewareOption);
|
105
|
-
config.protocol.setSerdeContext(config);
|
106
|
-
},
|
107
|
-
};
|
108
|
-
}
|
109
|
-
|
110
13
|
class TypeRegistry {
|
111
14
|
namespace;
|
112
15
|
schemas;
|
@@ -134,11 +37,11 @@ class TypeRegistry {
|
|
134
37
|
}
|
135
38
|
return this.schemas.get(id);
|
136
39
|
}
|
137
|
-
registerError(
|
138
|
-
this.exceptions.set(
|
40
|
+
registerError(es, ctor) {
|
41
|
+
this.exceptions.set(es, ctor);
|
139
42
|
}
|
140
|
-
getErrorCtor(
|
141
|
-
return this.exceptions.get(
|
43
|
+
getErrorCtor(es) {
|
44
|
+
return this.exceptions.get(es);
|
142
45
|
}
|
143
46
|
getBaseException() {
|
144
47
|
for (const [id, schema] of this.schemas.entries()) {
|
@@ -188,6 +91,36 @@ class Schema {
|
|
188
91
|
}
|
189
92
|
}
|
190
93
|
|
94
|
+
class StructureSchema extends Schema {
|
95
|
+
static symbol = Symbol.for("@smithy/str");
|
96
|
+
name;
|
97
|
+
traits;
|
98
|
+
memberNames;
|
99
|
+
memberList;
|
100
|
+
symbol = StructureSchema.symbol;
|
101
|
+
}
|
102
|
+
const struct = (namespace, name, traits, memberNames, memberList) => Schema.assign(new StructureSchema(), {
|
103
|
+
name,
|
104
|
+
namespace,
|
105
|
+
traits,
|
106
|
+
memberNames,
|
107
|
+
memberList,
|
108
|
+
});
|
109
|
+
|
110
|
+
class ErrorSchema extends StructureSchema {
|
111
|
+
static symbol = Symbol.for("@smithy/err");
|
112
|
+
ctor;
|
113
|
+
symbol = ErrorSchema.symbol;
|
114
|
+
}
|
115
|
+
const error = (namespace, name, traits, memberNames, memberList, ctor) => Schema.assign(new ErrorSchema(), {
|
116
|
+
name,
|
117
|
+
namespace,
|
118
|
+
traits,
|
119
|
+
memberNames,
|
120
|
+
memberList,
|
121
|
+
ctor: null,
|
122
|
+
});
|
123
|
+
|
191
124
|
class ListSchema extends Schema {
|
192
125
|
static symbol = Symbol.for("@smithy/lis");
|
193
126
|
name;
|
@@ -234,34 +167,18 @@ const op = (namespace, name, traits, input, output) => Schema.assign(new Operati
|
|
234
167
|
output,
|
235
168
|
});
|
236
169
|
|
237
|
-
class
|
238
|
-
static symbol = Symbol.for("@smithy/
|
170
|
+
class SimpleSchema extends Schema {
|
171
|
+
static symbol = Symbol.for("@smithy/sim");
|
239
172
|
name;
|
173
|
+
schemaRef;
|
240
174
|
traits;
|
241
|
-
|
242
|
-
memberList;
|
243
|
-
symbol = StructureSchema.symbol;
|
244
|
-
}
|
245
|
-
const struct = (namespace, name, traits, memberNames, memberList) => Schema.assign(new StructureSchema(), {
|
246
|
-
name,
|
247
|
-
namespace,
|
248
|
-
traits,
|
249
|
-
memberNames,
|
250
|
-
memberList,
|
251
|
-
});
|
252
|
-
|
253
|
-
class ErrorSchema extends StructureSchema {
|
254
|
-
static symbol = Symbol.for("@smithy/err");
|
255
|
-
ctor;
|
256
|
-
symbol = ErrorSchema.symbol;
|
175
|
+
symbol = SimpleSchema.symbol;
|
257
176
|
}
|
258
|
-
const
|
177
|
+
const sim = (namespace, name, schemaRef, traits) => Schema.assign(new SimpleSchema(), {
|
259
178
|
name,
|
260
179
|
namespace,
|
261
180
|
traits,
|
262
|
-
|
263
|
-
memberList,
|
264
|
-
ctor: null,
|
181
|
+
schemaRef,
|
265
182
|
});
|
266
183
|
|
267
184
|
function translateTraits(indicator) {
|
@@ -305,12 +222,14 @@ class NormalizedSchema {
|
|
305
222
|
let _ref = ref;
|
306
223
|
let schema = ref;
|
307
224
|
this._isMemberSchema = false;
|
308
|
-
while (
|
225
|
+
while (isMemberSchema(_ref)) {
|
309
226
|
traitStack.push(_ref[1]);
|
310
227
|
_ref = _ref[0];
|
311
228
|
schema = deref(_ref);
|
312
229
|
this._isMemberSchema = true;
|
313
230
|
}
|
231
|
+
if (isStaticSchema(schema))
|
232
|
+
schema = hydrate(schema);
|
314
233
|
if (traitStack.length > 0) {
|
315
234
|
this.memberTraits = {};
|
316
235
|
for (let i = traitStack.length - 1; i >= 0; --i) {
|
@@ -349,7 +268,7 @@ class NormalizedSchema {
|
|
349
268
|
if (sc instanceof NormalizedSchema) {
|
350
269
|
return sc;
|
351
270
|
}
|
352
|
-
if (
|
271
|
+
if (isMemberSchema(sc)) {
|
353
272
|
const [ns, traits] = sc;
|
354
273
|
if (ns instanceof NormalizedSchema) {
|
355
274
|
Object.assign(ns.getMergedTraits(), translateTraits(traits));
|
@@ -474,7 +393,7 @@ class NormalizedSchema {
|
|
474
393
|
if (this.isStructSchema() && struct.memberNames.includes(memberName)) {
|
475
394
|
const i = struct.memberNames.indexOf(memberName);
|
476
395
|
const memberSchema = struct.memberList[i];
|
477
|
-
return member(
|
396
|
+
return member(isMemberSchema(memberSchema) ? memberSchema : [memberSchema, 0], memberName);
|
478
397
|
}
|
479
398
|
if (this.isDocumentSchema()) {
|
480
399
|
return member([15, 0], memberName);
|
@@ -524,20 +443,122 @@ function member(memberSchema, memberName) {
|
|
524
443
|
const internalCtorAccess = NormalizedSchema;
|
525
444
|
return new internalCtorAccess(memberSchema, memberName);
|
526
445
|
}
|
446
|
+
function hydrate(ss) {
|
447
|
+
const [id, ...rest] = ss;
|
448
|
+
return {
|
449
|
+
[0]: sim,
|
450
|
+
[1]: list,
|
451
|
+
[2]: map,
|
452
|
+
[3]: struct,
|
453
|
+
[-3]: error,
|
454
|
+
[9]: op,
|
455
|
+
}[id].call(null, ...rest);
|
456
|
+
}
|
457
|
+
const isMemberSchema = (sc) => Array.isArray(sc) && sc.length === 2;
|
458
|
+
const isStaticSchema = (sc) => Array.isArray(sc) && sc.length >= 5;
|
527
459
|
|
528
|
-
|
529
|
-
|
530
|
-
|
531
|
-
|
532
|
-
|
533
|
-
|
460
|
+
const schemaDeserializationMiddleware = (config) => (next, context) => async (args) => {
|
461
|
+
const { response } = await next(args);
|
462
|
+
let { operationSchema } = utilMiddleware.getSmithyContext(context);
|
463
|
+
if (isStaticSchema(operationSchema)) {
|
464
|
+
operationSchema = hydrate(operationSchema);
|
465
|
+
}
|
466
|
+
try {
|
467
|
+
const parsed = await config.protocol.deserializeResponse(operationSchema, {
|
468
|
+
...config,
|
469
|
+
...context,
|
470
|
+
}, response);
|
471
|
+
return {
|
472
|
+
response,
|
473
|
+
output: parsed,
|
474
|
+
};
|
475
|
+
}
|
476
|
+
catch (error) {
|
477
|
+
Object.defineProperty(error, "$response", {
|
478
|
+
value: response,
|
479
|
+
});
|
480
|
+
if (!("$metadata" in error)) {
|
481
|
+
const hint = `Deserialization error: to see the raw response, inspect the hidden field {error}.$response on this object.`;
|
482
|
+
try {
|
483
|
+
error.message += "\n " + hint;
|
484
|
+
}
|
485
|
+
catch (e) {
|
486
|
+
if (!context.logger || context.logger?.constructor?.name === "NoOpLogger") {
|
487
|
+
console.warn(hint);
|
488
|
+
}
|
489
|
+
else {
|
490
|
+
context.logger?.warn?.(hint);
|
491
|
+
}
|
492
|
+
}
|
493
|
+
if (typeof error.$responseBodyText !== "undefined") {
|
494
|
+
if (error.$response) {
|
495
|
+
error.$response.body = error.$responseBodyText;
|
496
|
+
}
|
497
|
+
}
|
498
|
+
try {
|
499
|
+
if (protocolHttp.HttpResponse.isInstance(response)) {
|
500
|
+
const { headers = {} } = response;
|
501
|
+
const headerEntries = Object.entries(headers);
|
502
|
+
error.$metadata = {
|
503
|
+
httpStatusCode: response.statusCode,
|
504
|
+
requestId: findHeader(/^x-[\w-]+-request-?id$/, headerEntries),
|
505
|
+
extendedRequestId: findHeader(/^x-[\w-]+-id-2$/, headerEntries),
|
506
|
+
cfId: findHeader(/^x-[\w-]+-cf-id$/, headerEntries),
|
507
|
+
};
|
508
|
+
}
|
509
|
+
}
|
510
|
+
catch (e) {
|
511
|
+
}
|
512
|
+
}
|
513
|
+
throw error;
|
514
|
+
}
|
515
|
+
};
|
516
|
+
const findHeader = (pattern, headers) => {
|
517
|
+
return (headers.find(([k]) => {
|
518
|
+
return k.match(pattern);
|
519
|
+
}) || [void 0, void 0])[1];
|
520
|
+
};
|
521
|
+
|
522
|
+
const schemaSerializationMiddleware = (config) => (next, context) => async (args) => {
|
523
|
+
let { operationSchema } = utilMiddleware.getSmithyContext(context);
|
524
|
+
if (isStaticSchema(operationSchema)) {
|
525
|
+
operationSchema = hydrate(operationSchema);
|
526
|
+
}
|
527
|
+
const endpoint = context.endpointV2?.url && config.urlParser
|
528
|
+
? async () => config.urlParser(context.endpointV2.url)
|
529
|
+
: config.endpoint;
|
530
|
+
const request = await config.protocol.serializeRequest(operationSchema, args.input, {
|
531
|
+
...config,
|
532
|
+
...context,
|
533
|
+
endpoint,
|
534
|
+
});
|
535
|
+
return next({
|
536
|
+
...args,
|
537
|
+
request,
|
538
|
+
});
|
539
|
+
};
|
540
|
+
|
541
|
+
const deserializerMiddlewareOption = {
|
542
|
+
name: "deserializerMiddleware",
|
543
|
+
step: "deserialize",
|
544
|
+
tags: ["DESERIALIZER"],
|
545
|
+
override: true,
|
546
|
+
};
|
547
|
+
const serializerMiddlewareOption = {
|
548
|
+
name: "serializerMiddleware",
|
549
|
+
step: "serialize",
|
550
|
+
tags: ["SERIALIZER"],
|
551
|
+
override: true,
|
552
|
+
};
|
553
|
+
function getSchemaSerdePlugin(config) {
|
554
|
+
return {
|
555
|
+
applyToStack: (commandStack) => {
|
556
|
+
commandStack.add(schemaSerializationMiddleware(config), serializerMiddlewareOption);
|
557
|
+
commandStack.add(schemaDeserializationMiddleware(config), deserializerMiddlewareOption);
|
558
|
+
config.protocol.setSerdeContext(config);
|
559
|
+
},
|
560
|
+
};
|
534
561
|
}
|
535
|
-
const sim = (namespace, name, schemaRef, traits) => Schema.assign(new SimpleSchema(), {
|
536
|
-
name,
|
537
|
-
namespace,
|
538
|
-
traits,
|
539
|
-
schemaRef,
|
540
|
-
});
|
541
562
|
|
542
563
|
const SCHEMA = {
|
543
564
|
BLOB: 0b0001_0101,
|
@@ -570,6 +591,8 @@ exports.deref = deref;
|
|
570
591
|
exports.deserializerMiddlewareOption = deserializerMiddlewareOption;
|
571
592
|
exports.error = error;
|
572
593
|
exports.getSchemaSerdePlugin = getSchemaSerdePlugin;
|
594
|
+
exports.hydrate = hydrate;
|
595
|
+
exports.isStaticSchema = isStaticSchema;
|
573
596
|
exports.list = list;
|
574
597
|
exports.map = map;
|
575
598
|
exports.op = op;
|
@@ -3,6 +3,6 @@ export * from "./middleware-http-auth-scheme";
|
|
3
3
|
export * from "./middleware-http-signing";
|
4
4
|
export * from "./normalizeProvider";
|
5
5
|
export { createPaginator } from "./pagination/createPaginator";
|
6
|
-
export * from "./
|
6
|
+
export * from "./request-builder/requestBuilder";
|
7
7
|
export * from "./setFeature";
|
8
8
|
export * from "./util-identity-and-auth";
|
@@ -1,10 +1,10 @@
|
|
1
|
+
import { SerdeContext } from "@smithy/core/protocols";
|
1
2
|
import { NormalizedSchema } from "@smithy/core/schema";
|
2
3
|
import { _parseEpochTimestamp, generateIdempotencyToken } from "@smithy/core/serde";
|
3
4
|
import { fromBase64 } from "@smithy/util-base64";
|
4
5
|
import { cbor } from "./cbor";
|
5
6
|
import { dateToTag } from "./parseCborBody";
|
6
|
-
export class CborCodec {
|
7
|
-
serdeContext;
|
7
|
+
export class CborCodec extends SerdeContext {
|
8
8
|
createSerializer() {
|
9
9
|
const serializer = new CborShapeSerializer();
|
10
10
|
serializer.setSerdeContext(this.serdeContext);
|
@@ -15,16 +15,9 @@ export class CborCodec {
|
|
15
15
|
deserializer.setSerdeContext(this.serdeContext);
|
16
16
|
return deserializer;
|
17
17
|
}
|
18
|
-
setSerdeContext(serdeContext) {
|
19
|
-
this.serdeContext = serdeContext;
|
20
|
-
}
|
21
18
|
}
|
22
|
-
export class CborShapeSerializer {
|
23
|
-
serdeContext;
|
19
|
+
export class CborShapeSerializer extends SerdeContext {
|
24
20
|
value;
|
25
|
-
setSerdeContext(serdeContext) {
|
26
|
-
this.serdeContext = serdeContext;
|
27
|
-
}
|
28
21
|
write(schema, value) {
|
29
22
|
this.value = this.serialize(schema, value);
|
30
23
|
}
|
@@ -98,11 +91,7 @@ export class CborShapeSerializer {
|
|
98
91
|
return buffer;
|
99
92
|
}
|
100
93
|
}
|
101
|
-
export class CborShapeDeserializer {
|
102
|
-
serdeContext;
|
103
|
-
setSerdeContext(serdeContext) {
|
104
|
-
this.serdeContext = serdeContext;
|
105
|
-
}
|
94
|
+
export class CborShapeDeserializer extends SerdeContext {
|
106
95
|
read(schema, bytes) {
|
107
96
|
const data = cbor.deserialize(bytes);
|
108
97
|
return this.readValue(schema, data);
|
@@ -1,9 +1,10 @@
|
|
1
1
|
import { NormalizedSchema } from "@smithy/core/schema";
|
2
2
|
import { HttpRequest, HttpResponse } from "@smithy/protocol-http";
|
3
|
-
|
3
|
+
import { SerdeContext } from "./SerdeContext";
|
4
|
+
export class HttpProtocol extends SerdeContext {
|
4
5
|
options;
|
5
|
-
serdeContext;
|
6
6
|
constructor(options) {
|
7
|
+
super();
|
7
8
|
this.options = options;
|
8
9
|
}
|
9
10
|
getRequestType() {
|
package/node_modules/@smithy/core/dist-es/submodules/protocols/serde/FromStringShapeDeserializer.js
CHANGED
@@ -2,16 +2,14 @@ import { NormalizedSchema } from "@smithy/core/schema";
|
|
2
2
|
import { _parseEpochTimestamp, _parseRfc3339DateTimeWithOffset, _parseRfc7231DateTime, LazyJsonString, NumericValue, splitHeader, } from "@smithy/core/serde";
|
3
3
|
import { fromBase64 } from "@smithy/util-base64";
|
4
4
|
import { toUtf8 } from "@smithy/util-utf8";
|
5
|
+
import { SerdeContext } from "../SerdeContext";
|
5
6
|
import { determineTimestampFormat } from "./determineTimestampFormat";
|
6
|
-
export class FromStringShapeDeserializer {
|
7
|
+
export class FromStringShapeDeserializer extends SerdeContext {
|
7
8
|
settings;
|
8
|
-
serdeContext;
|
9
9
|
constructor(settings) {
|
10
|
+
super();
|
10
11
|
this.settings = settings;
|
11
12
|
}
|
12
|
-
setSerdeContext(serdeContext) {
|
13
|
-
this.serdeContext = serdeContext;
|
14
|
-
}
|
15
13
|
read(_schema, data) {
|
16
14
|
const ns = NormalizedSchema.of(_schema);
|
17
15
|
if (ns.isListSchema()) {
|
@@ -1,11 +1,12 @@
|
|
1
1
|
import { NormalizedSchema } from "@smithy/core/schema";
|
2
2
|
import { fromUtf8, toUtf8 } from "@smithy/util-utf8";
|
3
|
+
import { SerdeContext } from "../SerdeContext";
|
3
4
|
import { FromStringShapeDeserializer } from "./FromStringShapeDeserializer";
|
4
|
-
export class HttpInterceptingShapeDeserializer {
|
5
|
+
export class HttpInterceptingShapeDeserializer extends SerdeContext {
|
5
6
|
codecDeserializer;
|
6
7
|
stringDeserializer;
|
7
|
-
serdeContext;
|
8
8
|
constructor(codecDeserializer, codecSettings) {
|
9
|
+
super();
|
9
10
|
this.codecDeserializer = codecDeserializer;
|
10
11
|
this.stringDeserializer = new FromStringShapeDeserializer(codecSettings);
|
11
12
|
}
|