@cdk8s/awscdk-resolver 0.0.419 → 0.0.421

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.
Files changed (102) hide show
  1. package/.jsii +3 -3
  2. package/lib/resolve.js +1 -1
  3. package/node_modules/@aws/lambda-invoke-store/dist-cjs/invoke-store.js +1 -6
  4. package/node_modules/@aws/lambda-invoke-store/dist-es/invoke-store.js +1 -6
  5. package/node_modules/@aws/lambda-invoke-store/package.json +1 -1
  6. package/node_modules/@aws-sdk/client-cloudformation/package.json +5 -5
  7. package/node_modules/@aws-sdk/client-sso/package.json +4 -4
  8. package/node_modules/@aws-sdk/core/dist-cjs/index.js +124 -92
  9. package/node_modules/@aws-sdk/core/dist-cjs/submodules/protocols/index.js +124 -92
  10. package/node_modules/@aws-sdk/core/dist-es/submodules/protocols/json/AwsJson1_0Protocol.js +2 -1
  11. package/node_modules/@aws-sdk/core/dist-es/submodules/protocols/json/AwsJson1_1Protocol.js +2 -1
  12. package/node_modules/@aws-sdk/core/dist-es/submodules/protocols/json/AwsJsonRpcProtocol.js +10 -8
  13. package/node_modules/@aws-sdk/core/dist-es/submodules/protocols/json/JsonShapeDeserializer.js +30 -26
  14. package/node_modules/@aws-sdk/core/dist-es/submodules/protocols/json/JsonShapeSerializer.js +75 -53
  15. package/node_modules/@aws-sdk/core/dist-es/submodules/protocols/structIterator.js +5 -3
  16. package/node_modules/@aws-sdk/core/dist-types/submodules/protocols/json/AwsJson1_0Protocol.d.ts +3 -1
  17. package/node_modules/@aws-sdk/core/dist-types/submodules/protocols/json/AwsJson1_1Protocol.d.ts +3 -1
  18. package/node_modules/@aws-sdk/core/dist-types/submodules/protocols/json/AwsJsonRpcProtocol.d.ts +2 -1
  19. package/node_modules/@aws-sdk/core/dist-types/submodules/protocols/json/JsonShapeDeserializer.d.ts +1 -1
  20. package/node_modules/@aws-sdk/core/dist-types/submodules/protocols/json/JsonShapeSerializer.d.ts +12 -3
  21. package/node_modules/@aws-sdk/core/dist-types/ts3.4/submodules/protocols/json/AwsJson1_0Protocol.d.ts +3 -0
  22. package/node_modules/@aws-sdk/core/dist-types/ts3.4/submodules/protocols/json/AwsJson1_1Protocol.d.ts +3 -0
  23. package/node_modules/@aws-sdk/core/dist-types/ts3.4/submodules/protocols/json/AwsJsonRpcProtocol.d.ts +2 -0
  24. package/node_modules/@aws-sdk/core/dist-types/ts3.4/submodules/protocols/json/JsonShapeDeserializer.d.ts +1 -1
  25. package/node_modules/@aws-sdk/core/dist-types/ts3.4/submodules/protocols/json/JsonShapeSerializer.d.ts +9 -3
  26. package/node_modules/@aws-sdk/core/package.json +1 -1
  27. package/node_modules/@aws-sdk/credential-provider-env/package.json +2 -2
  28. package/node_modules/@aws-sdk/credential-provider-http/package.json +2 -2
  29. package/node_modules/@aws-sdk/credential-provider-ini/package.json +9 -9
  30. package/node_modules/@aws-sdk/credential-provider-login/package.json +3 -3
  31. package/node_modules/@aws-sdk/credential-provider-node/package.json +7 -7
  32. package/node_modules/@aws-sdk/credential-provider-process/package.json +2 -2
  33. package/node_modules/@aws-sdk/credential-provider-sso/package.json +4 -4
  34. package/node_modules/@aws-sdk/credential-provider-web-identity/package.json +3 -3
  35. package/node_modules/@aws-sdk/middleware-user-agent/package.json +2 -2
  36. package/node_modules/@aws-sdk/nested-clients/package.json +4 -4
  37. package/node_modules/@aws-sdk/token-providers/package.json +3 -3
  38. package/node_modules/@aws-sdk/util-user-agent-node/package.json +2 -2
  39. package/node_modules/@smithy/core/dist-cjs/submodules/cbor/index.js +10 -3
  40. package/node_modules/@smithy/core/dist-es/submodules/cbor/CborCodec.js +10 -3
  41. package/node_modules/@smithy/core/package.json +1 -1
  42. package/node_modules/@smithy/middleware-endpoint/package.json +2 -2
  43. package/node_modules/@smithy/middleware-retry/package.json +2 -2
  44. package/node_modules/@smithy/smithy-client/package.json +3 -3
  45. package/node_modules/@smithy/util-defaults-mode-browser/package.json +2 -2
  46. package/node_modules/@smithy/util-defaults-mode-node/package.json +2 -2
  47. package/package.json +3 -3
  48. /package/node_modules/{fast-xml-parser → @aws-sdk/xml-builder/node_modules/fast-xml-parser}/CHANGELOG.md +0 -0
  49. /package/node_modules/{fast-xml-parser → @aws-sdk/xml-builder/node_modules/fast-xml-parser}/LICENSE +0 -0
  50. /package/node_modules/{fast-xml-parser → @aws-sdk/xml-builder/node_modules/fast-xml-parser}/README.md +0 -0
  51. /package/node_modules/{fast-xml-parser → @aws-sdk/xml-builder/node_modules/fast-xml-parser}/lib/fxbuilder.min.js +0 -0
  52. /package/node_modules/{fast-xml-parser → @aws-sdk/xml-builder/node_modules/fast-xml-parser}/lib/fxbuilder.min.js.map +0 -0
  53. /package/node_modules/{fast-xml-parser → @aws-sdk/xml-builder/node_modules/fast-xml-parser}/lib/fxp.cjs +0 -0
  54. /package/node_modules/{fast-xml-parser → @aws-sdk/xml-builder/node_modules/fast-xml-parser}/lib/fxp.d.cts +0 -0
  55. /package/node_modules/{fast-xml-parser → @aws-sdk/xml-builder/node_modules/fast-xml-parser}/lib/fxp.min.js +0 -0
  56. /package/node_modules/{fast-xml-parser → @aws-sdk/xml-builder/node_modules/fast-xml-parser}/lib/fxp.min.js.map +0 -0
  57. /package/node_modules/{fast-xml-parser → @aws-sdk/xml-builder/node_modules/fast-xml-parser}/lib/fxparser.min.js +0 -0
  58. /package/node_modules/{fast-xml-parser → @aws-sdk/xml-builder/node_modules/fast-xml-parser}/lib/fxparser.min.js.map +0 -0
  59. /package/node_modules/{fast-xml-parser → @aws-sdk/xml-builder/node_modules/fast-xml-parser}/lib/fxvalidator.min.js +0 -0
  60. /package/node_modules/{fast-xml-parser → @aws-sdk/xml-builder/node_modules/fast-xml-parser}/lib/fxvalidator.min.js.map +0 -0
  61. /package/node_modules/{fast-xml-parser → @aws-sdk/xml-builder/node_modules/fast-xml-parser}/package.json +0 -0
  62. /package/node_modules/{fast-xml-parser → @aws-sdk/xml-builder/node_modules/fast-xml-parser}/src/cli/cli.js +0 -0
  63. /package/node_modules/{fast-xml-parser → @aws-sdk/xml-builder/node_modules/fast-xml-parser}/src/cli/man.js +0 -0
  64. /package/node_modules/{fast-xml-parser → @aws-sdk/xml-builder/node_modules/fast-xml-parser}/src/cli/read.js +0 -0
  65. /package/node_modules/{fast-xml-parser → @aws-sdk/xml-builder/node_modules/fast-xml-parser}/src/fxp.d.ts +0 -0
  66. /package/node_modules/{fast-xml-parser → @aws-sdk/xml-builder/node_modules/fast-xml-parser}/src/fxp.js +0 -0
  67. /package/node_modules/{fast-xml-parser → @aws-sdk/xml-builder/node_modules/fast-xml-parser}/src/ignoreAttributes.js +0 -0
  68. /package/node_modules/{fast-xml-parser → @aws-sdk/xml-builder/node_modules/fast-xml-parser}/src/util.js +0 -0
  69. /package/node_modules/{fast-xml-parser → @aws-sdk/xml-builder/node_modules/fast-xml-parser}/src/v6/CharsSymbol.js +0 -0
  70. /package/node_modules/{fast-xml-parser → @aws-sdk/xml-builder/node_modules/fast-xml-parser}/src/v6/EntitiesParser.js +0 -0
  71. /package/node_modules/{fast-xml-parser → @aws-sdk/xml-builder/node_modules/fast-xml-parser}/src/v6/OptionsBuilder.js +0 -0
  72. /package/node_modules/{fast-xml-parser → @aws-sdk/xml-builder/node_modules/fast-xml-parser}/src/v6/OutputBuilders/BaseOutputBuilder.js +0 -0
  73. /package/node_modules/{fast-xml-parser → @aws-sdk/xml-builder/node_modules/fast-xml-parser}/src/v6/OutputBuilders/JsArrBuilder.js +0 -0
  74. /package/node_modules/{fast-xml-parser → @aws-sdk/xml-builder/node_modules/fast-xml-parser}/src/v6/OutputBuilders/JsMinArrBuilder.js +0 -0
  75. /package/node_modules/{fast-xml-parser → @aws-sdk/xml-builder/node_modules/fast-xml-parser}/src/v6/OutputBuilders/JsObjBuilder.js +0 -0
  76. /package/node_modules/{fast-xml-parser → @aws-sdk/xml-builder/node_modules/fast-xml-parser}/src/v6/OutputBuilders/ParserOptionsBuilder.js +0 -0
  77. /package/node_modules/{fast-xml-parser → @aws-sdk/xml-builder/node_modules/fast-xml-parser}/src/v6/Report.js +0 -0
  78. /package/node_modules/{fast-xml-parser → @aws-sdk/xml-builder/node_modules/fast-xml-parser}/src/v6/TagPath.js +0 -0
  79. /package/node_modules/{fast-xml-parser → @aws-sdk/xml-builder/node_modules/fast-xml-parser}/src/v6/TagPathMatcher.js +0 -0
  80. /package/node_modules/{fast-xml-parser → @aws-sdk/xml-builder/node_modules/fast-xml-parser}/src/v6/XMLParser.js +0 -0
  81. /package/node_modules/{fast-xml-parser → @aws-sdk/xml-builder/node_modules/fast-xml-parser}/src/v6/Xml2JsParser.js +0 -0
  82. /package/node_modules/{fast-xml-parser → @aws-sdk/xml-builder/node_modules/fast-xml-parser}/src/v6/XmlPartReader.js +0 -0
  83. /package/node_modules/{fast-xml-parser → @aws-sdk/xml-builder/node_modules/fast-xml-parser}/src/v6/XmlSpecialTagsReader.js +0 -0
  84. /package/node_modules/{fast-xml-parser → @aws-sdk/xml-builder/node_modules/fast-xml-parser}/src/v6/inputSource/BufferSource.js +0 -0
  85. /package/node_modules/{fast-xml-parser → @aws-sdk/xml-builder/node_modules/fast-xml-parser}/src/v6/inputSource/StringSource.js +0 -0
  86. /package/node_modules/{fast-xml-parser → @aws-sdk/xml-builder/node_modules/fast-xml-parser}/src/v6/valueParsers/EntitiesParser.js +0 -0
  87. /package/node_modules/{fast-xml-parser → @aws-sdk/xml-builder/node_modules/fast-xml-parser}/src/v6/valueParsers/booleanParser.js +0 -0
  88. /package/node_modules/{fast-xml-parser → @aws-sdk/xml-builder/node_modules/fast-xml-parser}/src/v6/valueParsers/booleanParserExt.js +0 -0
  89. /package/node_modules/{fast-xml-parser → @aws-sdk/xml-builder/node_modules/fast-xml-parser}/src/v6/valueParsers/currency.js +0 -0
  90. /package/node_modules/{fast-xml-parser → @aws-sdk/xml-builder/node_modules/fast-xml-parser}/src/v6/valueParsers/join.js +0 -0
  91. /package/node_modules/{fast-xml-parser → @aws-sdk/xml-builder/node_modules/fast-xml-parser}/src/v6/valueParsers/number.js +0 -0
  92. /package/node_modules/{fast-xml-parser → @aws-sdk/xml-builder/node_modules/fast-xml-parser}/src/v6/valueParsers/trim.js +0 -0
  93. /package/node_modules/{fast-xml-parser → @aws-sdk/xml-builder/node_modules/fast-xml-parser}/src/validator.js +0 -0
  94. /package/node_modules/{fast-xml-parser → @aws-sdk/xml-builder/node_modules/fast-xml-parser}/src/xmlbuilder/json2xml.js +0 -0
  95. /package/node_modules/{fast-xml-parser → @aws-sdk/xml-builder/node_modules/fast-xml-parser}/src/xmlbuilder/orderedJs2Xml.js +0 -0
  96. /package/node_modules/{fast-xml-parser → @aws-sdk/xml-builder/node_modules/fast-xml-parser}/src/xmlbuilder/prettifyJs2Xml.js +0 -0
  97. /package/node_modules/{fast-xml-parser → @aws-sdk/xml-builder/node_modules/fast-xml-parser}/src/xmlparser/DocTypeReader.js +0 -0
  98. /package/node_modules/{fast-xml-parser → @aws-sdk/xml-builder/node_modules/fast-xml-parser}/src/xmlparser/OptionsBuilder.js +0 -0
  99. /package/node_modules/{fast-xml-parser → @aws-sdk/xml-builder/node_modules/fast-xml-parser}/src/xmlparser/OrderedObjParser.js +0 -0
  100. /package/node_modules/{fast-xml-parser → @aws-sdk/xml-builder/node_modules/fast-xml-parser}/src/xmlparser/XMLParser.js +0 -0
  101. /package/node_modules/{fast-xml-parser → @aws-sdk/xml-builder/node_modules/fast-xml-parser}/src/xmlparser/node2json.js +0 -0
  102. /package/node_modules/{fast-xml-parser → @aws-sdk/xml-builder/node_modules/fast-xml-parser}/src/xmlparser/xmlNode.js +0 -0
@@ -8,6 +8,7 @@ import { JsonReplacer } from "./jsonReplacer";
8
8
  export class JsonShapeSerializer extends SerdeContextConfig {
9
9
  settings;
10
10
  buffer;
11
+ useReplacer = false;
11
12
  rootSchema;
12
13
  constructor(settings) {
13
14
  super();
@@ -24,9 +25,13 @@ export class JsonShapeSerializer extends SerdeContextConfig {
24
25
  }
25
26
  }
26
27
  flush() {
27
- const { rootSchema } = this;
28
+ const { rootSchema, useReplacer } = this;
28
29
  this.rootSchema = undefined;
30
+ this.useReplacer = false;
29
31
  if (rootSchema?.isStructSchema() || rootSchema?.isDocumentSchema()) {
32
+ if (!useReplacer) {
33
+ return JSON.stringify(this.buffer);
34
+ }
30
35
  const replacer = new JsonReplacer();
31
36
  return replacer.replaceInJson(JSON.stringify(this.buffer, replacer.createReplacer(), 0));
32
37
  }
@@ -35,68 +40,68 @@ export class JsonShapeSerializer extends SerdeContextConfig {
35
40
  _write(schema, value, container) {
36
41
  const isObject = value !== null && typeof value === "object";
37
42
  const ns = NormalizedSchema.of(schema);
38
- if (ns.isListSchema() && Array.isArray(value)) {
39
- const listMember = ns.getValueSchema();
40
- const out = [];
41
- const sparse = !!ns.getMergedTraits().sparse;
42
- for (const item of value) {
43
- if (sparse || item != null) {
44
- out.push(this._write(listMember, item));
43
+ if (isObject) {
44
+ if (ns.isStructSchema()) {
45
+ const out = {};
46
+ for (const [memberName, memberSchema] of serializingStructIterator(ns, value)) {
47
+ const serializableValue = this._write(memberSchema, value[memberName], ns);
48
+ if (serializableValue !== undefined) {
49
+ const jsonName = memberSchema.getMergedTraits().jsonName;
50
+ const targetKey = this.settings.jsonName ? jsonName ?? memberName : memberName;
51
+ out[targetKey] = serializableValue;
52
+ }
45
53
  }
54
+ return out;
46
55
  }
47
- return out;
48
- }
49
- else if (ns.isMapSchema() && isObject) {
50
- const mapMember = ns.getValueSchema();
51
- const out = {};
52
- const sparse = !!ns.getMergedTraits().sparse;
53
- for (const [_k, _v] of Object.entries(value)) {
54
- if (sparse || _v != null) {
55
- out[_k] = this._write(mapMember, _v);
56
+ if (Array.isArray(value) && ns.isListSchema()) {
57
+ const listMember = ns.getValueSchema();
58
+ const out = [];
59
+ const sparse = !!ns.getMergedTraits().sparse;
60
+ for (const item of value) {
61
+ if (sparse || item != null) {
62
+ out.push(this._write(listMember, item));
63
+ }
56
64
  }
65
+ return out;
57
66
  }
58
- return out;
59
- }
60
- else if (ns.isStructSchema() && isObject) {
61
- const out = {};
62
- for (const [memberName, memberSchema] of serializingStructIterator(ns, value)) {
63
- const serializableValue = this._write(memberSchema, value[memberName], ns);
64
- if (serializableValue !== undefined) {
65
- const targetKey = this.settings.jsonName ? memberSchema.getMergedTraits().jsonName ?? memberName : memberName;
66
- out[targetKey] = serializableValue;
67
+ if (ns.isMapSchema()) {
68
+ const mapMember = ns.getValueSchema();
69
+ const out = {};
70
+ const sparse = !!ns.getMergedTraits().sparse;
71
+ for (const [_k, _v] of Object.entries(value)) {
72
+ if (sparse || _v != null) {
73
+ out[_k] = this._write(mapMember, _v);
74
+ }
67
75
  }
76
+ return out;
68
77
  }
69
- return out;
70
- }
71
- if (value === null && container?.isStructSchema()) {
72
- return void 0;
73
- }
74
- if ((ns.isBlobSchema() && (value instanceof Uint8Array || typeof value === "string")) ||
75
- (ns.isDocumentSchema() && value instanceof Uint8Array)) {
76
- if (ns === this.rootSchema) {
77
- return value;
78
+ if (value instanceof Uint8Array && (ns.isBlobSchema() || ns.isDocumentSchema())) {
79
+ if (ns === this.rootSchema) {
80
+ return value;
81
+ }
82
+ return (this.serdeContext?.base64Encoder ?? toBase64)(value);
78
83
  }
79
- return (this.serdeContext?.base64Encoder ?? toBase64)(value);
80
- }
81
- if ((ns.isTimestampSchema() || ns.isDocumentSchema()) && value instanceof Date) {
82
- const format = determineTimestampFormat(ns, this.settings);
83
- switch (format) {
84
- case 5:
85
- return value.toISOString().replace(".000Z", "Z");
86
- case 6:
87
- return dateToUtcString(value);
88
- case 7:
89
- return value.getTime() / 1000;
90
- default:
91
- console.warn("Missing timestamp format, using epoch seconds", value);
92
- return value.getTime() / 1000;
84
+ if (value instanceof Date && (ns.isTimestampSchema() || ns.isDocumentSchema())) {
85
+ const format = determineTimestampFormat(ns, this.settings);
86
+ switch (format) {
87
+ case 5:
88
+ return value.toISOString().replace(".000Z", "Z");
89
+ case 6:
90
+ return dateToUtcString(value);
91
+ case 7:
92
+ return value.getTime() / 1000;
93
+ default:
94
+ console.warn("Missing timestamp format, using epoch seconds", value);
95
+ return value.getTime() / 1000;
96
+ }
93
97
  }
94
- }
95
- if (ns.isNumericSchema() && typeof value === "number") {
96
- if (Math.abs(value) === Infinity || isNaN(value)) {
97
- return String(value);
98
+ if (value instanceof NumericValue) {
99
+ this.useReplacer = true;
98
100
  }
99
101
  }
102
+ if (value === null && container?.isStructSchema()) {
103
+ return void 0;
104
+ }
100
105
  if (ns.isStringSchema()) {
101
106
  if (typeof value === "undefined" && ns.isIdempotencyToken()) {
102
107
  return generateIdempotencyToken();
@@ -108,12 +113,29 @@ export class JsonShapeSerializer extends SerdeContextConfig {
108
113
  return LazyJsonString.from(value);
109
114
  }
110
115
  }
116
+ return value;
117
+ }
118
+ if (typeof value === "number" && ns.isNumericSchema()) {
119
+ if (Math.abs(value) === Infinity || isNaN(value)) {
120
+ return String(value);
121
+ }
122
+ return value;
123
+ }
124
+ if (typeof value === "string" && ns.isBlobSchema()) {
125
+ if (ns === this.rootSchema) {
126
+ return value;
127
+ }
128
+ return (this.serdeContext?.base64Encoder ?? toBase64)(value);
129
+ }
130
+ if (typeof value === "bigint") {
131
+ this.useReplacer = true;
111
132
  }
112
133
  if (ns.isDocumentSchema()) {
113
134
  if (isObject) {
114
135
  const out = Array.isArray(value) ? [] : {};
115
136
  for (const [k, v] of Object.entries(value)) {
116
137
  if (v instanceof NumericValue) {
138
+ this.useReplacer = true;
117
139
  out[k] = v;
118
140
  }
119
141
  else {
@@ -6,7 +6,8 @@ export function* serializingStructIterator(ns, sourceObject) {
6
6
  const struct = ns.getSchema();
7
7
  for (let i = 0; i < struct[4].length; ++i) {
8
8
  const key = struct[4][i];
9
- const memberNs = new NormalizedSchema([struct[5][i], 0], key);
9
+ const memberSchema = struct[5][i];
10
+ const memberNs = new NormalizedSchema([memberSchema, 0], key);
10
11
  if (!(key in sourceObject) && !memberNs.isIdempotencyToken()) {
11
12
  continue;
12
13
  }
@@ -18,13 +19,14 @@ export function* deserializingStructIterator(ns, sourceObject, nameTrait) {
18
19
  return;
19
20
  }
20
21
  const struct = ns.getSchema();
21
- let keysRemaining = Object.keys(sourceObject).length;
22
+ let keysRemaining = Object.keys(sourceObject).filter((k) => k !== "__type").length;
22
23
  for (let i = 0; i < struct[4].length; ++i) {
23
24
  if (keysRemaining === 0) {
24
25
  break;
25
26
  }
26
27
  const key = struct[4][i];
27
- const memberNs = new NormalizedSchema([struct[5][i], 0], key);
28
+ const memberSchema = struct[5][i];
29
+ const memberNs = new NormalizedSchema([memberSchema, 0], key);
28
30
  let serializationKey = key;
29
31
  if (nameTrait) {
30
32
  serializationKey = memberNs.getMergedTraits()[nameTrait] ?? key;
@@ -1,13 +1,15 @@
1
1
  import { AwsJsonRpcProtocol } from "./AwsJsonRpcProtocol";
2
+ import type { JsonCodec } from "./JsonCodec";
2
3
  /**
3
4
  * @public
4
5
  * @see https://smithy.io/2.0/aws/protocols/aws-json-1_1-protocol.html#differences-between-awsjson1-0-and-awsjson1-1
5
6
  */
6
7
  export declare class AwsJson1_0Protocol extends AwsJsonRpcProtocol {
7
- constructor({ defaultNamespace, serviceTarget, awsQueryCompatible, }: {
8
+ constructor({ defaultNamespace, serviceTarget, awsQueryCompatible, jsonCodec, }: {
8
9
  defaultNamespace: string;
9
10
  serviceTarget: string;
10
11
  awsQueryCompatible?: boolean;
12
+ jsonCodec?: JsonCodec;
11
13
  });
12
14
  getShapeId(): string;
13
15
  protected getJsonRpcVersion(): "1.0";
@@ -1,13 +1,15 @@
1
1
  import { AwsJsonRpcProtocol } from "./AwsJsonRpcProtocol";
2
+ import type { JsonCodec } from "./JsonCodec";
2
3
  /**
3
4
  * @public
4
5
  * @see https://smithy.io/2.0/aws/protocols/aws-json-1_1-protocol.html#differences-between-awsjson1-0-and-awsjson1-1
5
6
  */
6
7
  export declare class AwsJson1_1Protocol extends AwsJsonRpcProtocol {
7
- constructor({ defaultNamespace, serviceTarget, awsQueryCompatible, }: {
8
+ constructor({ defaultNamespace, serviceTarget, awsQueryCompatible, jsonCodec, }: {
8
9
  defaultNamespace: string;
9
10
  serviceTarget: string;
10
11
  awsQueryCompatible?: boolean;
12
+ jsonCodec?: JsonCodec;
11
13
  });
12
14
  getShapeId(): string;
13
15
  protected getJsonRpcVersion(): "1.1";
@@ -11,10 +11,11 @@ export declare abstract class AwsJsonRpcProtocol extends RpcProtocol {
11
11
  private readonly codec;
12
12
  private readonly mixin;
13
13
  private readonly awsQueryCompatible;
14
- protected constructor({ defaultNamespace, serviceTarget, awsQueryCompatible, }: {
14
+ protected constructor({ defaultNamespace, serviceTarget, awsQueryCompatible, jsonCodec, }: {
15
15
  defaultNamespace: string;
16
16
  serviceTarget: string;
17
17
  awsQueryCompatible?: boolean;
18
+ jsonCodec?: JsonCodec;
18
19
  });
19
20
  serializeRequest<Input extends object>(operationSchema: OperationSchema, input: Input, context: HandlerExecutionContext & SerdeFunctions & EndpointBearer): Promise<HttpRequest>;
20
21
  getPayloadCodec(): JsonCodec;
@@ -9,5 +9,5 @@ export declare class JsonShapeDeserializer extends SerdeContextConfig implements
9
9
  constructor(settings: JsonSettings);
10
10
  read(schema: Schema, data: string | Uint8Array | unknown): Promise<any>;
11
11
  readObject(schema: Schema, data: DocumentType): any;
12
- private _read;
12
+ protected _read(schema: Schema, value: unknown): any;
13
13
  }
@@ -1,3 +1,4 @@
1
+ import { NormalizedSchema } from "@smithy/core/schema";
1
2
  import type { Schema, ShapeSerializer } from "@smithy/types";
2
3
  import { SerdeContextConfig } from "../ConfigurableSerdeContext";
3
4
  import type { JsonSettings } from "./JsonCodec";
@@ -6,8 +7,13 @@ import type { JsonSettings } from "./JsonCodec";
6
7
  */
7
8
  export declare class JsonShapeSerializer extends SerdeContextConfig implements ShapeSerializer<string> {
8
9
  readonly settings: JsonSettings;
9
- private buffer;
10
- private rootSchema;
10
+ /**
11
+ * Write buffer. Reused per value serialization pass.
12
+ * In the initial implementation, this is not an incremental buffer.
13
+ */
14
+ protected buffer: any;
15
+ protected useReplacer: boolean;
16
+ protected rootSchema: NormalizedSchema | undefined;
11
17
  constructor(settings: JsonSettings);
12
18
  write(schema: Schema, value: unknown): void;
13
19
  /**
@@ -15,5 +21,8 @@ export declare class JsonShapeSerializer extends SerdeContextConfig implements S
15
21
  */
16
22
  writeDiscriminatedDocument(schema: Schema, value: unknown): void;
17
23
  flush(): string;
18
- private _write;
24
+ /**
25
+ * Order if-statements by order of likelihood.
26
+ */
27
+ protected _write(schema: Schema, value: unknown, container?: NormalizedSchema): any;
19
28
  }
@@ -1,13 +1,16 @@
1
1
  import { AwsJsonRpcProtocol } from "./AwsJsonRpcProtocol";
2
+ import { JsonCodec } from "./JsonCodec";
2
3
  export declare class AwsJson1_0Protocol extends AwsJsonRpcProtocol {
3
4
  constructor({
4
5
  defaultNamespace,
5
6
  serviceTarget,
6
7
  awsQueryCompatible,
8
+ jsonCodec,
7
9
  }: {
8
10
  defaultNamespace: string;
9
11
  serviceTarget: string;
10
12
  awsQueryCompatible?: boolean;
13
+ jsonCodec?: JsonCodec;
11
14
  });
12
15
  getShapeId(): string;
13
16
  protected getJsonRpcVersion(): "1.0";
@@ -1,13 +1,16 @@
1
1
  import { AwsJsonRpcProtocol } from "./AwsJsonRpcProtocol";
2
+ import { JsonCodec } from "./JsonCodec";
2
3
  export declare class AwsJson1_1Protocol extends AwsJsonRpcProtocol {
3
4
  constructor({
4
5
  defaultNamespace,
5
6
  serviceTarget,
6
7
  awsQueryCompatible,
8
+ jsonCodec,
7
9
  }: {
8
10
  defaultNamespace: string;
9
11
  serviceTarget: string;
10
12
  awsQueryCompatible?: boolean;
13
+ jsonCodec?: JsonCodec;
11
14
  });
12
15
  getShapeId(): string;
13
16
  protected getJsonRpcVersion(): "1.1";
@@ -22,10 +22,12 @@ export declare abstract class AwsJsonRpcProtocol extends RpcProtocol {
22
22
  defaultNamespace,
23
23
  serviceTarget,
24
24
  awsQueryCompatible,
25
+ jsonCodec,
25
26
  }: {
26
27
  defaultNamespace: string;
27
28
  serviceTarget: string;
28
29
  awsQueryCompatible?: boolean;
30
+ jsonCodec?: JsonCodec;
29
31
  });
30
32
  serializeRequest<Input extends object>(
31
33
  operationSchema: OperationSchema,
@@ -9,5 +9,5 @@ export declare class JsonShapeDeserializer
9
9
  constructor(settings: JsonSettings);
10
10
  read(schema: Schema, data: string | Uint8Array | unknown): Promise<any>;
11
11
  readObject(schema: Schema, data: DocumentType): any;
12
- private _read;
12
+ protected _read(schema: Schema, value: unknown): any;
13
13
  }
@@ -1,3 +1,4 @@
1
+ import { NormalizedSchema } from "@smithy/core/schema";
1
2
  import { Schema, ShapeSerializer } from "@smithy/types";
2
3
  import { SerdeContextConfig } from "../ConfigurableSerdeContext";
3
4
  import { JsonSettings } from "./JsonCodec";
@@ -6,11 +7,16 @@ export declare class JsonShapeSerializer
6
7
  implements ShapeSerializer<string>
7
8
  {
8
9
  readonly settings: JsonSettings;
9
- private buffer;
10
- private rootSchema;
10
+ protected buffer: any;
11
+ protected useReplacer: boolean;
12
+ protected rootSchema: NormalizedSchema | undefined;
11
13
  constructor(settings: JsonSettings);
12
14
  write(schema: Schema, value: unknown): void;
13
15
  writeDiscriminatedDocument(schema: Schema, value: unknown): void;
14
16
  flush(): string;
15
- private _write;
17
+ protected _write(
18
+ schema: Schema,
19
+ value: unknown,
20
+ container?: NormalizedSchema
21
+ ): any;
16
22
  }
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@aws-sdk/core",
3
- "version": "3.940.0",
3
+ "version": "3.943.0",
4
4
  "description": "Core functions & classes shared by multiple AWS SDK clients.",
5
5
  "scripts": {
6
6
  "build": "yarn lint && concurrently 'yarn:build:cjs' 'yarn:build:es' 'yarn:build:types'",
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@aws-sdk/credential-provider-env",
3
- "version": "3.940.0",
3
+ "version": "3.943.0",
4
4
  "description": "AWS credential provider that sources credentials from known environment variables",
5
5
  "main": "./dist-cjs/index.js",
6
6
  "module": "./dist-es/index.js",
@@ -26,7 +26,7 @@
26
26
  },
27
27
  "license": "Apache-2.0",
28
28
  "dependencies": {
29
- "@aws-sdk/core": "3.940.0",
29
+ "@aws-sdk/core": "3.943.0",
30
30
  "@aws-sdk/types": "3.936.0",
31
31
  "@smithy/property-provider": "^4.2.5",
32
32
  "@smithy/types": "^4.9.0",
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@aws-sdk/credential-provider-http",
3
- "version": "3.940.0",
3
+ "version": "3.943.0",
4
4
  "description": "AWS credential provider for containers and HTTP sources",
5
5
  "main": "./dist-cjs/index.js",
6
6
  "module": "./dist-es/index.js",
@@ -28,7 +28,7 @@
28
28
  },
29
29
  "license": "Apache-2.0",
30
30
  "dependencies": {
31
- "@aws-sdk/core": "3.940.0",
31
+ "@aws-sdk/core": "3.943.0",
32
32
  "@aws-sdk/types": "3.936.0",
33
33
  "@smithy/fetch-http-handler": "^5.3.6",
34
34
  "@smithy/node-http-handler": "^4.4.5",
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@aws-sdk/credential-provider-ini",
3
- "version": "3.940.0",
3
+ "version": "3.943.0",
4
4
  "description": "AWS credential provider that sources credentials from ~/.aws/credentials and ~/.aws/config",
5
5
  "main": "./dist-cjs/index.js",
6
6
  "module": "./dist-es/index.js",
@@ -28,14 +28,14 @@
28
28
  },
29
29
  "license": "Apache-2.0",
30
30
  "dependencies": {
31
- "@aws-sdk/core": "3.940.0",
32
- "@aws-sdk/credential-provider-env": "3.940.0",
33
- "@aws-sdk/credential-provider-http": "3.940.0",
34
- "@aws-sdk/credential-provider-login": "3.940.0",
35
- "@aws-sdk/credential-provider-process": "3.940.0",
36
- "@aws-sdk/credential-provider-sso": "3.940.0",
37
- "@aws-sdk/credential-provider-web-identity": "3.940.0",
38
- "@aws-sdk/nested-clients": "3.940.0",
31
+ "@aws-sdk/core": "3.943.0",
32
+ "@aws-sdk/credential-provider-env": "3.943.0",
33
+ "@aws-sdk/credential-provider-http": "3.943.0",
34
+ "@aws-sdk/credential-provider-login": "3.943.0",
35
+ "@aws-sdk/credential-provider-process": "3.943.0",
36
+ "@aws-sdk/credential-provider-sso": "3.943.0",
37
+ "@aws-sdk/credential-provider-web-identity": "3.943.0",
38
+ "@aws-sdk/nested-clients": "3.943.0",
39
39
  "@aws-sdk/types": "3.936.0",
40
40
  "@smithy/credential-provider-imds": "^4.2.5",
41
41
  "@smithy/property-provider": "^4.2.5",
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@aws-sdk/credential-provider-login",
3
- "version": "3.940.0",
3
+ "version": "3.943.0",
4
4
  "description": "AWS credential provider that sources credentials from aws login cached tokens",
5
5
  "main": "./dist-cjs/index.js",
6
6
  "module": "./dist-es/index.js",
@@ -28,8 +28,8 @@
28
28
  },
29
29
  "license": "Apache-2.0",
30
30
  "dependencies": {
31
- "@aws-sdk/core": "3.940.0",
32
- "@aws-sdk/nested-clients": "3.940.0",
31
+ "@aws-sdk/core": "3.943.0",
32
+ "@aws-sdk/nested-clients": "3.943.0",
33
33
  "@aws-sdk/types": "3.936.0",
34
34
  "@smithy/property-provider": "^4.2.5",
35
35
  "@smithy/protocol-http": "^5.3.5",
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@aws-sdk/credential-provider-node",
3
- "version": "3.940.0",
3
+ "version": "3.943.0",
4
4
  "description": "AWS credential provider that sources credentials from a Node.JS environment. ",
5
5
  "engines": {
6
6
  "node": ">=18.0.0"
@@ -31,12 +31,12 @@
31
31
  },
32
32
  "license": "Apache-2.0",
33
33
  "dependencies": {
34
- "@aws-sdk/credential-provider-env": "3.940.0",
35
- "@aws-sdk/credential-provider-http": "3.940.0",
36
- "@aws-sdk/credential-provider-ini": "3.940.0",
37
- "@aws-sdk/credential-provider-process": "3.940.0",
38
- "@aws-sdk/credential-provider-sso": "3.940.0",
39
- "@aws-sdk/credential-provider-web-identity": "3.940.0",
34
+ "@aws-sdk/credential-provider-env": "3.943.0",
35
+ "@aws-sdk/credential-provider-http": "3.943.0",
36
+ "@aws-sdk/credential-provider-ini": "3.943.0",
37
+ "@aws-sdk/credential-provider-process": "3.943.0",
38
+ "@aws-sdk/credential-provider-sso": "3.943.0",
39
+ "@aws-sdk/credential-provider-web-identity": "3.943.0",
40
40
  "@aws-sdk/types": "3.936.0",
41
41
  "@smithy/credential-provider-imds": "^4.2.5",
42
42
  "@smithy/property-provider": "^4.2.5",
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@aws-sdk/credential-provider-process",
3
- "version": "3.940.0",
3
+ "version": "3.943.0",
4
4
  "description": "AWS credential provider that sources credential_process from ~/.aws/credentials and ~/.aws/config",
5
5
  "main": "./dist-cjs/index.js",
6
6
  "module": "./dist-es/index.js",
@@ -26,7 +26,7 @@
26
26
  },
27
27
  "license": "Apache-2.0",
28
28
  "dependencies": {
29
- "@aws-sdk/core": "3.940.0",
29
+ "@aws-sdk/core": "3.943.0",
30
30
  "@aws-sdk/types": "3.936.0",
31
31
  "@smithy/property-provider": "^4.2.5",
32
32
  "@smithy/shared-ini-file-loader": "^4.4.0",
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@aws-sdk/credential-provider-sso",
3
- "version": "3.940.0",
3
+ "version": "3.943.0",
4
4
  "description": "AWS credential provider that exchanges a resolved SSO login token file for temporary AWS credentials",
5
5
  "main": "./dist-cjs/index.js",
6
6
  "module": "./dist-es/index.js",
@@ -26,9 +26,9 @@
26
26
  },
27
27
  "license": "Apache-2.0",
28
28
  "dependencies": {
29
- "@aws-sdk/client-sso": "3.940.0",
30
- "@aws-sdk/core": "3.940.0",
31
- "@aws-sdk/token-providers": "3.940.0",
29
+ "@aws-sdk/client-sso": "3.943.0",
30
+ "@aws-sdk/core": "3.943.0",
31
+ "@aws-sdk/token-providers": "3.943.0",
32
32
  "@aws-sdk/types": "3.936.0",
33
33
  "@smithy/property-provider": "^4.2.5",
34
34
  "@smithy/shared-ini-file-loader": "^4.4.0",
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@aws-sdk/credential-provider-web-identity",
3
- "version": "3.940.0",
3
+ "version": "3.943.0",
4
4
  "description": "AWS credential provider that calls STS assumeRole for temporary AWS credentials",
5
5
  "main": "./dist-cjs/index.js",
6
6
  "module": "./dist-es/index.js",
@@ -34,8 +34,8 @@
34
34
  },
35
35
  "license": "Apache-2.0",
36
36
  "dependencies": {
37
- "@aws-sdk/core": "3.940.0",
38
- "@aws-sdk/nested-clients": "3.940.0",
37
+ "@aws-sdk/core": "3.943.0",
38
+ "@aws-sdk/nested-clients": "3.943.0",
39
39
  "@aws-sdk/types": "3.936.0",
40
40
  "@smithy/property-provider": "^4.2.5",
41
41
  "@smithy/shared-ini-file-loader": "^4.4.0",
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@aws-sdk/middleware-user-agent",
3
- "version": "3.940.0",
3
+ "version": "3.943.0",
4
4
  "scripts": {
5
5
  "build": "concurrently 'yarn:build:cjs' 'yarn:build:es' 'yarn:build:types'",
6
6
  "build:cjs": "node ../../scripts/compilation/inline middleware-user-agent",
@@ -25,7 +25,7 @@
25
25
  },
26
26
  "license": "Apache-2.0",
27
27
  "dependencies": {
28
- "@aws-sdk/core": "3.940.0",
28
+ "@aws-sdk/core": "3.943.0",
29
29
  "@aws-sdk/types": "3.936.0",
30
30
  "@aws-sdk/util-endpoints": "3.936.0",
31
31
  "@smithy/core": "^3.18.5",
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@aws-sdk/nested-clients",
3
- "version": "3.940.0",
3
+ "version": "3.943.0",
4
4
  "description": "Nested clients for AWS SDK packages.",
5
5
  "main": "./dist-cjs/index.js",
6
6
  "module": "./dist-es/index.js",
@@ -29,16 +29,16 @@
29
29
  "dependencies": {
30
30
  "@aws-crypto/sha256-browser": "5.2.0",
31
31
  "@aws-crypto/sha256-js": "5.2.0",
32
- "@aws-sdk/core": "3.940.0",
32
+ "@aws-sdk/core": "3.943.0",
33
33
  "@aws-sdk/middleware-host-header": "3.936.0",
34
34
  "@aws-sdk/middleware-logger": "3.936.0",
35
35
  "@aws-sdk/middleware-recursion-detection": "3.936.0",
36
- "@aws-sdk/middleware-user-agent": "3.940.0",
36
+ "@aws-sdk/middleware-user-agent": "3.943.0",
37
37
  "@aws-sdk/region-config-resolver": "3.936.0",
38
38
  "@aws-sdk/types": "3.936.0",
39
39
  "@aws-sdk/util-endpoints": "3.936.0",
40
40
  "@aws-sdk/util-user-agent-browser": "3.936.0",
41
- "@aws-sdk/util-user-agent-node": "3.940.0",
41
+ "@aws-sdk/util-user-agent-node": "3.943.0",
42
42
  "@smithy/config-resolver": "^4.4.3",
43
43
  "@smithy/core": "^3.18.5",
44
44
  "@smithy/fetch-http-handler": "^5.3.6",
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@aws-sdk/token-providers",
3
- "version": "3.940.0",
3
+ "version": "3.943.0",
4
4
  "description": "A collection of token providers",
5
5
  "main": "./dist-cjs/index.js",
6
6
  "module": "./dist-es/index.js",
@@ -29,8 +29,8 @@
29
29
  },
30
30
  "license": "Apache-2.0",
31
31
  "dependencies": {
32
- "@aws-sdk/core": "3.940.0",
33
- "@aws-sdk/nested-clients": "3.940.0",
32
+ "@aws-sdk/core": "3.943.0",
33
+ "@aws-sdk/nested-clients": "3.943.0",
34
34
  "@aws-sdk/types": "3.936.0",
35
35
  "@smithy/property-provider": "^4.2.5",
36
36
  "@smithy/shared-ini-file-loader": "^4.4.0",
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@aws-sdk/util-user-agent-node",
3
- "version": "3.940.0",
3
+ "version": "3.943.0",
4
4
  "scripts": {
5
5
  "build": "concurrently 'yarn:build:cjs' 'yarn:build:es' 'yarn:build:types'",
6
6
  "build:cjs": "node ../../scripts/compilation/inline util-user-agent-node",
@@ -22,7 +22,7 @@
22
22
  },
23
23
  "license": "Apache-2.0",
24
24
  "dependencies": {
25
- "@aws-sdk/middleware-user-agent": "3.940.0",
25
+ "@aws-sdk/middleware-user-agent": "3.943.0",
26
26
  "@aws-sdk/types": "3.936.0",
27
27
  "@smithy/node-config-provider": "^4.3.5",
28
28
  "@smithy/types": "^4.9.0",