@cdk8s/awscdk-resolver 0.0.305 → 0.0.307

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 (58) hide show
  1. package/.jsii +3 -3
  2. package/lib/resolve.js +1 -1
  3. package/node_modules/@aws-sdk/client-cloudformation/dist-cjs/index.js +1 -0
  4. package/node_modules/@aws-sdk/client-cloudformation/dist-es/models/models_0.js +1 -0
  5. package/node_modules/@aws-sdk/client-cloudformation/dist-types/commands/DescribeGeneratedTemplateCommand.d.ts +1 -1
  6. package/node_modules/@aws-sdk/client-cloudformation/dist-types/models/models_0.d.ts +2 -1
  7. package/node_modules/@aws-sdk/client-cloudformation/dist-types/ts3.4/models/models_0.d.ts +1 -0
  8. package/node_modules/@aws-sdk/client-cloudformation/package.json +11 -11
  9. package/node_modules/@aws-sdk/client-sso/package.json +10 -10
  10. package/node_modules/@aws-sdk/core/dist-cjs/submodules/protocols/index.js +66 -36
  11. package/node_modules/@aws-sdk/core/dist-es/submodules/protocols/json/AwsJsonRpcProtocol.js +2 -7
  12. package/node_modules/@aws-sdk/core/dist-es/submodules/protocols/json/AwsRestJsonProtocol.js +2 -7
  13. package/node_modules/@aws-sdk/core/dist-es/submodules/protocols/query/AwsEc2QueryProtocol.js +14 -0
  14. package/node_modules/@aws-sdk/core/dist-es/submodules/protocols/query/AwsQueryProtocol.js +20 -7
  15. package/node_modules/@aws-sdk/core/dist-es/submodules/protocols/query/QuerySerializerSettings.js +1 -0
  16. package/node_modules/@aws-sdk/core/dist-es/submodules/protocols/query/QueryShapeSerializer.js +16 -7
  17. package/node_modules/@aws-sdk/core/dist-es/submodules/protocols/xml/AwsRestXmlProtocol.js +2 -7
  18. package/node_modules/@aws-sdk/core/dist-types/submodules/protocols/json/JsonCodec.d.ts +1 -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 +1 -1
  21. package/node_modules/@aws-sdk/core/dist-types/submodules/protocols/query/AwsEc2QueryProtocol.d.ts +14 -0
  22. package/node_modules/@aws-sdk/core/dist-types/submodules/protocols/query/AwsQueryProtocol.d.ts +10 -0
  23. package/node_modules/@aws-sdk/core/dist-types/submodules/protocols/query/QuerySerializerSettings.d.ts +6 -0
  24. package/node_modules/@aws-sdk/core/dist-types/submodules/protocols/query/QueryShapeSerializer.d.ts +5 -3
  25. package/node_modules/@aws-sdk/core/dist-types/ts3.4/submodules/protocols/json/JsonCodec.d.ts +1 -1
  26. package/node_modules/@aws-sdk/core/dist-types/ts3.4/submodules/protocols/json/JsonShapeDeserializer.d.ts +1 -1
  27. package/node_modules/@aws-sdk/core/dist-types/ts3.4/submodules/protocols/json/JsonShapeSerializer.d.ts +1 -1
  28. package/node_modules/@aws-sdk/core/dist-types/ts3.4/submodules/protocols/query/AwsEc2QueryProtocol.d.ts +13 -1
  29. package/node_modules/@aws-sdk/core/dist-types/ts3.4/submodules/protocols/query/AwsQueryProtocol.d.ts +3 -0
  30. package/node_modules/@aws-sdk/core/dist-types/ts3.4/submodules/protocols/query/QuerySerializerSettings.d.ts +6 -0
  31. package/node_modules/@aws-sdk/core/dist-types/ts3.4/submodules/protocols/query/QueryShapeSerializer.d.ts +5 -3
  32. package/node_modules/@aws-sdk/core/package.json +3 -3
  33. package/node_modules/@aws-sdk/credential-provider-env/package.json +2 -2
  34. package/node_modules/@aws-sdk/credential-provider-http/package.json +3 -3
  35. package/node_modules/@aws-sdk/credential-provider-ini/package.json +8 -8
  36. package/node_modules/@aws-sdk/credential-provider-node/package.json +7 -7
  37. package/node_modules/@aws-sdk/credential-provider-process/package.json +2 -2
  38. package/node_modules/@aws-sdk/credential-provider-sso/package.json +4 -4
  39. package/node_modules/@aws-sdk/credential-provider-web-identity/package.json +3 -3
  40. package/node_modules/@aws-sdk/middleware-user-agent/package.json +3 -3
  41. package/node_modules/@aws-sdk/nested-clients/package.json +10 -10
  42. package/node_modules/@aws-sdk/token-providers/package.json +3 -3
  43. package/node_modules/@aws-sdk/util-user-agent-node/package.json +2 -2
  44. package/node_modules/@smithy/core/dist-cjs/submodules/protocols/index.js +9 -8
  45. package/node_modules/@smithy/core/dist-cjs/submodules/schema/index.js +4 -1
  46. package/node_modules/@smithy/core/dist-es/submodules/protocols/HttpBindingProtocol.js +1 -6
  47. package/node_modules/@smithy/core/dist-es/submodules/protocols/HttpProtocol.js +9 -2
  48. package/node_modules/@smithy/core/dist-es/submodules/schema/TypeRegistry.js +1 -1
  49. package/node_modules/@smithy/core/dist-es/submodules/schema/schemas/NormalizedSchema.js +3 -0
  50. package/node_modules/@smithy/core/dist-types/submodules/protocols/HttpProtocol.d.ts +4 -0
  51. package/node_modules/@smithy/core/dist-types/ts3.4/submodules/protocols/HttpProtocol.d.ts +4 -0
  52. package/node_modules/@smithy/core/package.json +1 -1
  53. package/node_modules/@smithy/middleware-endpoint/package.json +2 -2
  54. package/node_modules/@smithy/middleware-retry/package.json +2 -2
  55. package/node_modules/@smithy/smithy-client/package.json +3 -3
  56. package/node_modules/@smithy/util-defaults-mode-browser/package.json +2 -2
  57. package/node_modules/@smithy/util-defaults-mode-node/package.json +2 -2
  58. package/package.json +4 -4
@@ -66,18 +66,20 @@ export class QueryShapeSerializer extends SerdeContextConfig {
66
66
  else if (ns.isListSchema()) {
67
67
  if (Array.isArray(value)) {
68
68
  if (value.length === 0) {
69
- this.writeKey(prefix);
70
- this.writeValue("");
69
+ if (this.settings.serializeEmptyLists) {
70
+ this.writeKey(prefix);
71
+ this.writeValue("");
72
+ }
71
73
  }
72
74
  else {
73
75
  const member = ns.getValueSchema();
74
- const flat = ns.getMergedTraits().xmlFlattened;
76
+ const flat = this.settings.flattenLists || ns.getMergedTraits().xmlFlattened;
75
77
  let i = 1;
76
78
  for (const item of value) {
77
79
  if (item == null) {
78
80
  continue;
79
81
  }
80
- const suffix = member.getMergedTraits().xmlName ?? "member";
82
+ const suffix = this.getKey("member", member.getMergedTraits().xmlName);
81
83
  const key = flat ? `${prefix}${i}` : `${prefix}${suffix}.${i}`;
82
84
  this.write(member, item, key);
83
85
  ++i;
@@ -95,9 +97,9 @@ export class QueryShapeSerializer extends SerdeContextConfig {
95
97
  if (v == null) {
96
98
  continue;
97
99
  }
98
- const keySuffix = keySchema.getMergedTraits().xmlName ?? "key";
100
+ const keySuffix = this.getKey("key", keySchema.getMergedTraits().xmlName);
99
101
  const key = flat ? `${prefix}${i}.${keySuffix}` : `${prefix}entry.${i}.${keySuffix}`;
100
- const valueSuffix = memberSchema.getMergedTraits().xmlName ?? "value";
102
+ const valueSuffix = this.getKey("value", memberSchema.getMergedTraits().xmlName);
101
103
  const valueKey = flat ? `${prefix}${i}.${valueSuffix}` : `${prefix}entry.${i}.${valueSuffix}`;
102
104
  this.write(keySchema, k, key);
103
105
  this.write(memberSchema, v, valueKey);
@@ -111,7 +113,7 @@ export class QueryShapeSerializer extends SerdeContextConfig {
111
113
  if (value[memberName] == null) {
112
114
  continue;
113
115
  }
114
- const suffix = member.getMergedTraits().xmlName ?? memberName;
116
+ const suffix = this.getKey(memberName, member.getMergedTraits().xmlName);
115
117
  const key = `${prefix}${suffix}`;
116
118
  this.write(member, value[memberName], key);
117
119
  }
@@ -131,6 +133,13 @@ export class QueryShapeSerializer extends SerdeContextConfig {
131
133
  delete this.buffer;
132
134
  return str;
133
135
  }
136
+ getKey(memberName, xmlName) {
137
+ const key = xmlName ?? memberName;
138
+ if (this.settings.capitalizeKeys) {
139
+ return key[0].toUpperCase() + key.slice(1);
140
+ }
141
+ return key;
142
+ }
134
143
  writeKey(key) {
135
144
  if (key.endsWith(".")) {
136
145
  key = key.slice(0, key.length - 1);
@@ -97,7 +97,7 @@ export class AwsRestXmlProtocol extends HttpBindingProtocol {
97
97
  errorSchema = registry.getSchema(errorIdentifier);
98
98
  }
99
99
  catch (e) {
100
- const baseExceptionSchema = TypeRegistry.for("awssdkjs.synthetic." + namespace).getBaseException();
100
+ const baseExceptionSchema = TypeRegistry.for("smithy.ts.sdk.synthetic." + namespace).getBaseException();
101
101
  if (baseExceptionSchema) {
102
102
  const ErrorCtor = baseExceptionSchema.ctor;
103
103
  throw Object.assign(new ErrorCtor(errorName), dataObject);
@@ -107,12 +107,7 @@ export class AwsRestXmlProtocol extends HttpBindingProtocol {
107
107
  const ns = NormalizedSchema.of(errorSchema);
108
108
  const message = dataObject.Error?.message ?? dataObject.Error?.Message ?? dataObject.message ?? dataObject.Message ?? "Unknown";
109
109
  const exception = new errorSchema.ctor(message);
110
- const headerBindings = new Set(Object.values(NormalizedSchema.of(errorSchema).getMemberSchemas())
111
- .map((schema) => {
112
- return schema.getMergedTraits().httpHeader;
113
- })
114
- .filter(Boolean));
115
- await this.deserializeHttpMessage(errorSchema, context, response, headerBindings, dataObject);
110
+ await this.deserializeHttpMessage(errorSchema, context, response, dataObject);
116
111
  const output = {};
117
112
  for (const [name, member] of ns.structIterator()) {
118
113
  const target = member.getMergedTraits().xmlName ?? name;
@@ -12,7 +12,7 @@ export type JsonSettings = CodecSettings & {
12
12
  * @public
13
13
  */
14
14
  export declare class JsonCodec extends SerdeContextConfig implements Codec<string, string> {
15
- settings: JsonSettings;
15
+ readonly settings: JsonSettings;
16
16
  constructor(settings: JsonSettings);
17
17
  createSerializer(): JsonShapeSerializer;
18
18
  createDeserializer(): JsonShapeDeserializer;
@@ -5,7 +5,7 @@ import { JsonSettings } from "./JsonCodec";
5
5
  * @alpha
6
6
  */
7
7
  export declare class JsonShapeDeserializer extends SerdeContextConfig implements ShapeDeserializer<string> {
8
- settings: JsonSettings;
8
+ readonly settings: JsonSettings;
9
9
  constructor(settings: JsonSettings);
10
10
  read(schema: Schema, data: string | Uint8Array | unknown): Promise<any>;
11
11
  readObject(schema: Schema, data: DocumentType): any;
@@ -5,7 +5,7 @@ import { JsonSettings } from "./JsonCodec";
5
5
  * @alpha
6
6
  */
7
7
  export declare class JsonShapeSerializer extends SerdeContextConfig implements ShapeSerializer<string> {
8
- settings: JsonSettings;
8
+ readonly settings: JsonSettings;
9
9
  private buffer;
10
10
  private rootSchema;
11
11
  constructor(settings: JsonSettings);
@@ -3,4 +3,18 @@ import { AwsQueryProtocol } from "./AwsQueryProtocol";
3
3
  * @alpha
4
4
  */
5
5
  export declare class AwsEc2QueryProtocol extends AwsQueryProtocol {
6
+ options: {
7
+ defaultNamespace: string;
8
+ xmlNamespace: string;
9
+ version: string;
10
+ };
11
+ constructor(options: {
12
+ defaultNamespace: string;
13
+ xmlNamespace: string;
14
+ version: string;
15
+ });
16
+ /**
17
+ * EC2 Query reads XResponse.XResult instead of XResponse directly.
18
+ */
19
+ protected useNestedResult(): boolean;
6
20
  }
@@ -24,6 +24,16 @@ export declare class AwsQueryProtocol extends RpcProtocol {
24
24
  getPayloadCodec(): Codec<any, any>;
25
25
  serializeRequest<Input extends object>(operationSchema: OperationSchema, input: Input, context: HandlerExecutionContext & SerdeFunctions & EndpointBearer): Promise<HttpRequest>;
26
26
  deserializeResponse<Output extends MetadataBearer>(operationSchema: OperationSchema, context: HandlerExecutionContext & SerdeFunctions, response: IHttpResponse): Promise<Output>;
27
+ /**
28
+ * EC2 Query overrides this.
29
+ */
30
+ protected useNestedResult(): boolean;
27
31
  protected handleError(operationSchema: OperationSchema, context: HandlerExecutionContext & SerdeFunctions, response: IHttpResponse, dataObject: any, metadata: ResponseMetadata): Promise<never>;
32
+ /**
33
+ * The variations in the error and error message locations are attributed to
34
+ * divergence between AWS Query and EC2 Query behavior.
35
+ */
28
36
  protected loadQueryErrorCode(output: IHttpResponse, data: any): string | undefined;
37
+ protected loadQueryError(data: any): any | undefined;
38
+ protected loadQueryErrorMessage(data: any): string;
29
39
  }
@@ -0,0 +1,6 @@
1
+ import { CodecSettings } from "@smithy/types";
2
+ export type QuerySerializerSettings = CodecSettings & {
3
+ capitalizeKeys?: boolean;
4
+ flattenLists?: boolean;
5
+ serializeEmptyLists?: boolean;
6
+ };
@@ -1,14 +1,16 @@
1
- import type { CodecSettings, Schema, ShapeSerializer } from "@smithy/types";
1
+ import type { Schema, ShapeSerializer } from "@smithy/types";
2
2
  import { SerdeContextConfig } from "../ConfigurableSerdeContext";
3
+ import type { QuerySerializerSettings } from "./QuerySerializerSettings";
3
4
  /**
4
5
  * @alpha
5
6
  */
6
7
  export declare class QueryShapeSerializer extends SerdeContextConfig implements ShapeSerializer<string | Uint8Array> {
7
- private settings;
8
+ readonly settings: QuerySerializerSettings;
8
9
  private buffer;
9
- constructor(settings: CodecSettings);
10
+ constructor(settings: QuerySerializerSettings);
10
11
  write(schema: Schema, value: unknown, prefix?: string): void;
11
12
  flush(): string | Uint8Array;
13
+ protected getKey(memberName: string, xmlName?: string): string;
12
14
  protected writeKey(key: string): void;
13
15
  protected writeValue(value: string): void;
14
16
  }
@@ -9,7 +9,7 @@ export declare class JsonCodec
9
9
  extends SerdeContextConfig
10
10
  implements Codec<string, string>
11
11
  {
12
- settings: JsonSettings;
12
+ readonly settings: JsonSettings;
13
13
  constructor(settings: JsonSettings);
14
14
  createSerializer(): JsonShapeSerializer;
15
15
  createDeserializer(): JsonShapeDeserializer;
@@ -5,7 +5,7 @@ export declare class JsonShapeDeserializer
5
5
  extends SerdeContextConfig
6
6
  implements ShapeDeserializer<string>
7
7
  {
8
- settings: JsonSettings;
8
+ readonly settings: JsonSettings;
9
9
  constructor(settings: JsonSettings);
10
10
  read(schema: Schema, data: string | Uint8Array | unknown): Promise<any>;
11
11
  readObject(schema: Schema, data: DocumentType): any;
@@ -5,7 +5,7 @@ export declare class JsonShapeSerializer
5
5
  extends SerdeContextConfig
6
6
  implements ShapeSerializer<string>
7
7
  {
8
- settings: JsonSettings;
8
+ readonly settings: JsonSettings;
9
9
  private buffer;
10
10
  private rootSchema;
11
11
  constructor(settings: JsonSettings);
@@ -1,2 +1,14 @@
1
1
  import { AwsQueryProtocol } from "./AwsQueryProtocol";
2
- export declare class AwsEc2QueryProtocol extends AwsQueryProtocol {}
2
+ export declare class AwsEc2QueryProtocol extends AwsQueryProtocol {
3
+ options: {
4
+ defaultNamespace: string;
5
+ xmlNamespace: string;
6
+ version: string;
7
+ };
8
+ constructor(options: {
9
+ defaultNamespace: string;
10
+ xmlNamespace: string;
11
+ version: string;
12
+ });
13
+ protected useNestedResult(): boolean;
14
+ }
@@ -38,6 +38,7 @@ export declare class AwsQueryProtocol extends RpcProtocol {
38
38
  context: HandlerExecutionContext & SerdeFunctions,
39
39
  response: IHttpResponse
40
40
  ): Promise<Output>;
41
+ protected useNestedResult(): boolean;
41
42
  protected handleError(
42
43
  operationSchema: OperationSchema,
43
44
  context: HandlerExecutionContext & SerdeFunctions,
@@ -49,4 +50,6 @@ export declare class AwsQueryProtocol extends RpcProtocol {
49
50
  output: IHttpResponse,
50
51
  data: any
51
52
  ): string | undefined;
53
+ protected loadQueryError(data: any): any | undefined;
54
+ protected loadQueryErrorMessage(data: any): string;
52
55
  }
@@ -0,0 +1,6 @@
1
+ import { CodecSettings } from "@smithy/types";
2
+ export type QuerySerializerSettings = CodecSettings & {
3
+ capitalizeKeys?: boolean;
4
+ flattenLists?: boolean;
5
+ serializeEmptyLists?: boolean;
6
+ };
@@ -1,14 +1,16 @@
1
- import { CodecSettings, Schema, ShapeSerializer } from "@smithy/types";
1
+ import { Schema, ShapeSerializer } from "@smithy/types";
2
2
  import { SerdeContextConfig } from "../ConfigurableSerdeContext";
3
+ import { QuerySerializerSettings } from "./QuerySerializerSettings";
3
4
  export declare class QueryShapeSerializer
4
5
  extends SerdeContextConfig
5
6
  implements ShapeSerializer<string | Uint8Array>
6
7
  {
7
- private settings;
8
+ readonly settings: QuerySerializerSettings;
8
9
  private buffer;
9
- constructor(settings: CodecSettings);
10
+ constructor(settings: QuerySerializerSettings);
10
11
  write(schema: Schema, value: unknown, prefix?: string): void;
11
12
  flush(): string | Uint8Array;
13
+ protected getKey(memberName: string, xmlName?: string): string;
12
14
  protected writeKey(key: string): void;
13
15
  protected writeValue(value: string): void;
14
16
  }
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@aws-sdk/core",
3
- "version": "3.823.0",
3
+ "version": "3.825.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'",
@@ -83,12 +83,12 @@
83
83
  "dependencies": {
84
84
  "@aws-sdk/types": "3.821.0",
85
85
  "@aws-sdk/xml-builder": "3.821.0",
86
- "@smithy/core": "^3.5.1",
86
+ "@smithy/core": "^3.5.2",
87
87
  "@smithy/node-config-provider": "^4.1.3",
88
88
  "@smithy/property-provider": "^4.0.4",
89
89
  "@smithy/protocol-http": "^5.1.2",
90
90
  "@smithy/signature-v4": "^5.1.2",
91
- "@smithy/smithy-client": "^4.4.1",
91
+ "@smithy/smithy-client": "^4.4.2",
92
92
  "@smithy/types": "^4.3.1",
93
93
  "@smithy/util-base64": "^4.0.0",
94
94
  "@smithy/util-body-length-browser": "^4.0.0",
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@aws-sdk/credential-provider-env",
3
- "version": "3.823.0",
3
+ "version": "3.825.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",
@@ -25,7 +25,7 @@
25
25
  },
26
26
  "license": "Apache-2.0",
27
27
  "dependencies": {
28
- "@aws-sdk/core": "3.823.0",
28
+ "@aws-sdk/core": "3.825.0",
29
29
  "@aws-sdk/types": "3.821.0",
30
30
  "@smithy/property-provider": "^4.0.4",
31
31
  "@smithy/types": "^4.3.1",
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@aws-sdk/credential-provider-http",
3
- "version": "3.823.0",
3
+ "version": "3.825.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",
@@ -27,13 +27,13 @@
27
27
  },
28
28
  "license": "Apache-2.0",
29
29
  "dependencies": {
30
- "@aws-sdk/core": "3.823.0",
30
+ "@aws-sdk/core": "3.825.0",
31
31
  "@aws-sdk/types": "3.821.0",
32
32
  "@smithy/fetch-http-handler": "^5.0.4",
33
33
  "@smithy/node-http-handler": "^4.0.6",
34
34
  "@smithy/property-provider": "^4.0.4",
35
35
  "@smithy/protocol-http": "^5.1.2",
36
- "@smithy/smithy-client": "^4.4.1",
36
+ "@smithy/smithy-client": "^4.4.2",
37
37
  "@smithy/types": "^4.3.1",
38
38
  "@smithy/util-stream": "^4.2.2",
39
39
  "tslib": "^2.6.2"
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@aws-sdk/credential-provider-ini",
3
- "version": "3.823.0",
3
+ "version": "3.825.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",
@@ -27,13 +27,13 @@
27
27
  },
28
28
  "license": "Apache-2.0",
29
29
  "dependencies": {
30
- "@aws-sdk/core": "3.823.0",
31
- "@aws-sdk/credential-provider-env": "3.823.0",
32
- "@aws-sdk/credential-provider-http": "3.823.0",
33
- "@aws-sdk/credential-provider-process": "3.823.0",
34
- "@aws-sdk/credential-provider-sso": "3.823.0",
35
- "@aws-sdk/credential-provider-web-identity": "3.823.0",
36
- "@aws-sdk/nested-clients": "3.823.0",
30
+ "@aws-sdk/core": "3.825.0",
31
+ "@aws-sdk/credential-provider-env": "3.825.0",
32
+ "@aws-sdk/credential-provider-http": "3.825.0",
33
+ "@aws-sdk/credential-provider-process": "3.825.0",
34
+ "@aws-sdk/credential-provider-sso": "3.825.0",
35
+ "@aws-sdk/credential-provider-web-identity": "3.825.0",
36
+ "@aws-sdk/nested-clients": "3.825.0",
37
37
  "@aws-sdk/types": "3.821.0",
38
38
  "@smithy/credential-provider-imds": "^4.0.6",
39
39
  "@smithy/property-provider": "^4.0.4",
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@aws-sdk/credential-provider-node",
3
- "version": "3.823.0",
3
+ "version": "3.825.0",
4
4
  "description": "AWS credential provider that sources credentials from a Node.JS environment. ",
5
5
  "engines": {
6
6
  "node": ">=18.0.0"
@@ -29,12 +29,12 @@
29
29
  },
30
30
  "license": "Apache-2.0",
31
31
  "dependencies": {
32
- "@aws-sdk/credential-provider-env": "3.823.0",
33
- "@aws-sdk/credential-provider-http": "3.823.0",
34
- "@aws-sdk/credential-provider-ini": "3.823.0",
35
- "@aws-sdk/credential-provider-process": "3.823.0",
36
- "@aws-sdk/credential-provider-sso": "3.823.0",
37
- "@aws-sdk/credential-provider-web-identity": "3.823.0",
32
+ "@aws-sdk/credential-provider-env": "3.825.0",
33
+ "@aws-sdk/credential-provider-http": "3.825.0",
34
+ "@aws-sdk/credential-provider-ini": "3.825.0",
35
+ "@aws-sdk/credential-provider-process": "3.825.0",
36
+ "@aws-sdk/credential-provider-sso": "3.825.0",
37
+ "@aws-sdk/credential-provider-web-identity": "3.825.0",
38
38
  "@aws-sdk/types": "3.821.0",
39
39
  "@smithy/credential-provider-imds": "^4.0.6",
40
40
  "@smithy/property-provider": "^4.0.4",
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@aws-sdk/credential-provider-process",
3
- "version": "3.823.0",
3
+ "version": "3.825.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",
@@ -25,7 +25,7 @@
25
25
  },
26
26
  "license": "Apache-2.0",
27
27
  "dependencies": {
28
- "@aws-sdk/core": "3.823.0",
28
+ "@aws-sdk/core": "3.825.0",
29
29
  "@aws-sdk/types": "3.821.0",
30
30
  "@smithy/property-provider": "^4.0.4",
31
31
  "@smithy/shared-ini-file-loader": "^4.0.4",
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@aws-sdk/credential-provider-sso",
3
- "version": "3.823.0",
3
+ "version": "3.825.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",
@@ -25,9 +25,9 @@
25
25
  },
26
26
  "license": "Apache-2.0",
27
27
  "dependencies": {
28
- "@aws-sdk/client-sso": "3.823.0",
29
- "@aws-sdk/core": "3.823.0",
30
- "@aws-sdk/token-providers": "3.823.0",
28
+ "@aws-sdk/client-sso": "3.825.0",
29
+ "@aws-sdk/core": "3.825.0",
30
+ "@aws-sdk/token-providers": "3.825.0",
31
31
  "@aws-sdk/types": "3.821.0",
32
32
  "@smithy/property-provider": "^4.0.4",
33
33
  "@smithy/shared-ini-file-loader": "^4.0.4",
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@aws-sdk/credential-provider-web-identity",
3
- "version": "3.823.0",
3
+ "version": "3.825.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",
@@ -33,8 +33,8 @@
33
33
  },
34
34
  "license": "Apache-2.0",
35
35
  "dependencies": {
36
- "@aws-sdk/core": "3.823.0",
37
- "@aws-sdk/nested-clients": "3.823.0",
36
+ "@aws-sdk/core": "3.825.0",
37
+ "@aws-sdk/nested-clients": "3.825.0",
38
38
  "@aws-sdk/types": "3.821.0",
39
39
  "@smithy/property-provider": "^4.0.4",
40
40
  "@smithy/types": "^4.3.1",
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@aws-sdk/middleware-user-agent",
3
- "version": "3.823.0",
3
+ "version": "3.825.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",
@@ -24,10 +24,10 @@
24
24
  },
25
25
  "license": "Apache-2.0",
26
26
  "dependencies": {
27
- "@aws-sdk/core": "3.823.0",
27
+ "@aws-sdk/core": "3.825.0",
28
28
  "@aws-sdk/types": "3.821.0",
29
29
  "@aws-sdk/util-endpoints": "3.821.0",
30
- "@smithy/core": "^3.5.1",
30
+ "@smithy/core": "^3.5.2",
31
31
  "@smithy/protocol-http": "^5.1.2",
32
32
  "@smithy/types": "^4.3.1",
33
33
  "tslib": "^2.6.2"
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@aws-sdk/nested-clients",
3
- "version": "3.823.0",
3
+ "version": "3.825.0",
4
4
  "description": "Nested clients for AWS SDK packages.",
5
5
  "main": "./dist-cjs/index.js",
6
6
  "module": "./dist-es/index.js",
@@ -28,37 +28,37 @@
28
28
  "dependencies": {
29
29
  "@aws-crypto/sha256-browser": "5.2.0",
30
30
  "@aws-crypto/sha256-js": "5.2.0",
31
- "@aws-sdk/core": "3.823.0",
31
+ "@aws-sdk/core": "3.825.0",
32
32
  "@aws-sdk/middleware-host-header": "3.821.0",
33
33
  "@aws-sdk/middleware-logger": "3.821.0",
34
34
  "@aws-sdk/middleware-recursion-detection": "3.821.0",
35
- "@aws-sdk/middleware-user-agent": "3.823.0",
35
+ "@aws-sdk/middleware-user-agent": "3.825.0",
36
36
  "@aws-sdk/region-config-resolver": "3.821.0",
37
37
  "@aws-sdk/types": "3.821.0",
38
38
  "@aws-sdk/util-endpoints": "3.821.0",
39
39
  "@aws-sdk/util-user-agent-browser": "3.821.0",
40
- "@aws-sdk/util-user-agent-node": "3.823.0",
40
+ "@aws-sdk/util-user-agent-node": "3.825.0",
41
41
  "@smithy/config-resolver": "^4.1.4",
42
- "@smithy/core": "^3.5.1",
42
+ "@smithy/core": "^3.5.2",
43
43
  "@smithy/fetch-http-handler": "^5.0.4",
44
44
  "@smithy/hash-node": "^4.0.4",
45
45
  "@smithy/invalid-dependency": "^4.0.4",
46
46
  "@smithy/middleware-content-length": "^4.0.4",
47
- "@smithy/middleware-endpoint": "^4.1.9",
48
- "@smithy/middleware-retry": "^4.1.10",
47
+ "@smithy/middleware-endpoint": "^4.1.10",
48
+ "@smithy/middleware-retry": "^4.1.11",
49
49
  "@smithy/middleware-serde": "^4.0.8",
50
50
  "@smithy/middleware-stack": "^4.0.4",
51
51
  "@smithy/node-config-provider": "^4.1.3",
52
52
  "@smithy/node-http-handler": "^4.0.6",
53
53
  "@smithy/protocol-http": "^5.1.2",
54
- "@smithy/smithy-client": "^4.4.1",
54
+ "@smithy/smithy-client": "^4.4.2",
55
55
  "@smithy/types": "^4.3.1",
56
56
  "@smithy/url-parser": "^4.0.4",
57
57
  "@smithy/util-base64": "^4.0.0",
58
58
  "@smithy/util-body-length-browser": "^4.0.0",
59
59
  "@smithy/util-body-length-node": "^4.0.0",
60
- "@smithy/util-defaults-mode-browser": "^4.0.17",
61
- "@smithy/util-defaults-mode-node": "^4.0.17",
60
+ "@smithy/util-defaults-mode-browser": "^4.0.18",
61
+ "@smithy/util-defaults-mode-node": "^4.0.18",
62
62
  "@smithy/util-endpoints": "^3.0.6",
63
63
  "@smithy/util-middleware": "^4.0.4",
64
64
  "@smithy/util-retry": "^4.0.5",
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@aws-sdk/token-providers",
3
- "version": "3.823.0",
3
+ "version": "3.825.0",
4
4
  "description": "A collection of token providers",
5
5
  "main": "./dist-cjs/index.js",
6
6
  "module": "./dist-es/index.js",
@@ -27,8 +27,8 @@
27
27
  },
28
28
  "license": "Apache-2.0",
29
29
  "dependencies": {
30
- "@aws-sdk/core": "3.823.0",
31
- "@aws-sdk/nested-clients": "3.823.0",
30
+ "@aws-sdk/core": "3.825.0",
31
+ "@aws-sdk/nested-clients": "3.825.0",
32
32
  "@aws-sdk/types": "3.821.0",
33
33
  "@smithy/property-provider": "^4.0.4",
34
34
  "@smithy/shared-ini-file-loader": "^4.0.4",
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@aws-sdk/util-user-agent-node",
3
- "version": "3.823.0",
3
+ "version": "3.825.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",
@@ -21,7 +21,7 @@
21
21
  },
22
22
  "license": "Apache-2.0",
23
23
  "dependencies": {
24
- "@aws-sdk/middleware-user-agent": "3.823.0",
24
+ "@aws-sdk/middleware-user-agent": "3.825.0",
25
25
  "@aws-sdk/types": "3.821.0",
26
26
  "@smithy/node-config-provider": "^4.1.3",
27
27
  "@smithy/types": "^4.3.1",
@@ -136,7 +136,13 @@ var HttpProtocol = class {
136
136
  cfId: output.headers["x-amz-cf-id"]
137
137
  };
138
138
  }
139
- async deserializeHttpMessage(schema, context, response, headerBindings, dataObject) {
139
+ async deserializeHttpMessage(schema, context, response, arg4, arg5) {
140
+ let dataObject;
141
+ if (arg4 instanceof Set) {
142
+ dataObject = arg5;
143
+ } else {
144
+ dataObject = arg4;
145
+ }
140
146
  const deserializer = this.deserializer;
141
147
  const ns = import_schema.NormalizedSchema.of(schema);
142
148
  const nonHttpBindingMembers = [];
@@ -200,7 +206,7 @@ var HttpProtocol = class {
200
206
  } else if (memberTraits.httpPrefixHeaders !== void 0) {
201
207
  dataObject[memberName] = {};
202
208
  for (const [header, value] of Object.entries(response.headers)) {
203
- if (!headerBindings.has(header) && header.startsWith(memberTraits.httpPrefixHeaders)) {
209
+ if (header.startsWith(memberTraits.httpPrefixHeaders)) {
204
210
  dataObject[memberName][header.slice(memberTraits.httpPrefixHeaders.length)] = await deserializer.read(
205
211
  [memberSchema.getValueSchema(), { httpHeader: header }],
206
212
  value
@@ -373,12 +379,7 @@ var HttpBindingProtocol = class extends HttpProtocol {
373
379
  delete response.headers[header];
374
380
  response.headers[header.toLowerCase()] = value;
375
381
  }
376
- const headerBindings = new Set(
377
- Object.values(ns.getMemberSchemas()).map((schema) => {
378
- return schema.getMergedTraits().httpHeader;
379
- }).filter(Boolean)
380
- );
381
- const nonHttpBindingMembers = await this.deserializeHttpMessage(ns, context, response, headerBindings, dataObject);
382
+ const nonHttpBindingMembers = await this.deserializeHttpMessage(ns, context, response, dataObject);
382
383
  if (nonHttpBindingMembers.length) {
383
384
  const bytes = await collectBody(response.body, context);
384
385
  if (bytes.byteLength > 0) {
@@ -207,7 +207,7 @@ var TypeRegistry = class _TypeRegistry {
207
207
  */
208
208
  getBaseException() {
209
209
  for (const [id, schema] of this.schemas.entries()) {
210
- if (id.startsWith("smithyts.client.synthetic.") && id.endsWith("ServiceException")) {
210
+ if (id.startsWith("smithy.ts.sdk.synthetic.") && id.endsWith("ServiceException")) {
211
211
  return schema;
212
212
  }
213
213
  }
@@ -715,6 +715,9 @@ var NormalizedSchema = class _NormalizedSchema {
715
715
  * This avoids the overhead of calling Object.entries(ns.getMemberSchemas()).
716
716
  */
717
717
  *structIterator() {
718
+ if (this.isUnitSchema()) {
719
+ return;
720
+ }
718
721
  if (!this.isStructSchema()) {
719
722
  throw new Error("@smithy/core/schema - cannot acquire structIterator on non-struct schema.");
720
723
  }