@aws-sdk/core 3.973.27 → 3.974.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist-cjs/index.js CHANGED
@@ -906,12 +906,6 @@ class JsonShapeSerializer extends SerdeContextConfig {
906
906
  this.rootSchema = schema.NormalizedSchema.of(schema$1);
907
907
  this.buffer = this._write(this.rootSchema, value);
908
908
  }
909
- writeDiscriminatedDocument(schema$1, value) {
910
- this.write(schema$1, value);
911
- if (typeof this.buffer === "object") {
912
- this.buffer.__type = schema.NormalizedSchema.of(schema$1).getName(true);
913
- }
914
- }
915
909
  flush() {
916
910
  const { rootSchema, useReplacer } = this;
917
911
  this.rootSchema = undefined;
@@ -925,6 +919,12 @@ class JsonShapeSerializer extends SerdeContextConfig {
925
919
  }
926
920
  return this.buffer;
927
921
  }
922
+ writeDiscriminatedDocument(schema$1, value) {
923
+ this.write(schema$1, value);
924
+ if (typeof this.buffer === "object") {
925
+ this.buffer.__type = schema.NormalizedSchema.of(schema$1).getName(true);
926
+ }
927
+ }
928
928
  _write(schema$1, value, container) {
929
929
  const isObject = value !== null && typeof value === "object";
930
930
  const ns = schema.NormalizedSchema.of(schema$1);
@@ -552,12 +552,6 @@ class JsonShapeSerializer extends SerdeContextConfig {
552
552
  this.rootSchema = schema.NormalizedSchema.of(schema$1);
553
553
  this.buffer = this._write(this.rootSchema, value);
554
554
  }
555
- writeDiscriminatedDocument(schema$1, value) {
556
- this.write(schema$1, value);
557
- if (typeof this.buffer === "object") {
558
- this.buffer.__type = schema.NormalizedSchema.of(schema$1).getName(true);
559
- }
560
- }
561
555
  flush() {
562
556
  const { rootSchema, useReplacer } = this;
563
557
  this.rootSchema = undefined;
@@ -571,6 +565,12 @@ class JsonShapeSerializer extends SerdeContextConfig {
571
565
  }
572
566
  return this.buffer;
573
567
  }
568
+ writeDiscriminatedDocument(schema$1, value) {
569
+ this.write(schema$1, value);
570
+ if (typeof this.buffer === "object") {
571
+ this.buffer.__type = schema.NormalizedSchema.of(schema$1).getName(true);
572
+ }
573
+ }
574
574
  _write(schema$1, value, container) {
575
575
  const isObject = value !== null && typeof value === "object";
576
576
  const ns = schema.NormalizedSchema.of(schema$1);
@@ -17,12 +17,6 @@ export class JsonShapeSerializer extends SerdeContextConfig {
17
17
  this.rootSchema = NormalizedSchema.of(schema);
18
18
  this.buffer = this._write(this.rootSchema, value);
19
19
  }
20
- writeDiscriminatedDocument(schema, value) {
21
- this.write(schema, value);
22
- if (typeof this.buffer === "object") {
23
- this.buffer.__type = NormalizedSchema.of(schema).getName(true);
24
- }
25
- }
26
20
  flush() {
27
21
  const { rootSchema, useReplacer } = this;
28
22
  this.rootSchema = undefined;
@@ -36,6 +30,12 @@ export class JsonShapeSerializer extends SerdeContextConfig {
36
30
  }
37
31
  return this.buffer;
38
32
  }
33
+ writeDiscriminatedDocument(schema, value) {
34
+ this.write(schema, value);
35
+ if (typeof this.buffer === "object") {
36
+ this.buffer.__type = NormalizedSchema.of(schema).getName(true);
37
+ }
38
+ }
39
39
  _write(schema, value, container) {
40
40
  const isObject = value !== null && typeof value === "object";
41
41
  const ns = NormalizedSchema.of(schema);
@@ -16,13 +16,13 @@ export declare class JsonShapeSerializer extends SerdeContextConfig implements S
16
16
  protected rootSchema: NormalizedSchema | undefined;
17
17
  constructor(settings: JsonSettings);
18
18
  write(schema: Schema, value: unknown): void;
19
+ flush(): string;
19
20
  /**
20
21
  * @internal
21
22
  */
22
23
  writeDiscriminatedDocument(schema: Schema, value: unknown): void;
23
- flush(): string;
24
24
  /**
25
- * Order if-statements by order of likelihood.
25
+ * Order if-statements by likelihood.
26
26
  */
27
27
  protected _write(schema: Schema, value: unknown, container?: NormalizedSchema): any;
28
28
  }
@@ -12,8 +12,8 @@ export declare class JsonShapeSerializer
12
12
  protected rootSchema: NormalizedSchema | undefined;
13
13
  constructor(settings: JsonSettings);
14
14
  write(schema: Schema, value: unknown): void;
15
- writeDiscriminatedDocument(schema: Schema, value: unknown): void;
16
15
  flush(): string;
16
+ writeDiscriminatedDocument(schema: Schema, value: unknown): void;
17
17
  protected _write(
18
18
  schema: Schema,
19
19
  value: unknown,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@aws-sdk/core",
3
- "version": "3.973.27",
3
+ "version": "3.974.0",
4
4
  "description": "Core functions & classes shared by multiple AWS SDK clients.",
5
5
  "scripts": {
6
6
  "build": "yarn lint && concurrently 'yarn:build:types' 'yarn:build:es' && yarn build:cjs",
@@ -81,17 +81,17 @@
81
81
  },
82
82
  "license": "Apache-2.0",
83
83
  "dependencies": {
84
- "@aws-sdk/types": "^3.973.7",
85
- "@aws-sdk/xml-builder": "^3.972.17",
86
- "@smithy/core": "^3.23.14",
87
- "@smithy/node-config-provider": "^4.3.13",
88
- "@smithy/property-provider": "^4.2.13",
89
- "@smithy/protocol-http": "^5.3.13",
90
- "@smithy/signature-v4": "^5.3.13",
91
- "@smithy/smithy-client": "^4.12.9",
92
- "@smithy/types": "^4.14.0",
84
+ "@aws-sdk/types": "^3.973.8",
85
+ "@aws-sdk/xml-builder": "^3.972.18",
86
+ "@smithy/core": "^3.23.15",
87
+ "@smithy/node-config-provider": "^4.3.14",
88
+ "@smithy/property-provider": "^4.2.14",
89
+ "@smithy/protocol-http": "^5.3.14",
90
+ "@smithy/signature-v4": "^5.3.14",
91
+ "@smithy/smithy-client": "^4.12.11",
92
+ "@smithy/types": "^4.14.1",
93
93
  "@smithy/util-base64": "^4.3.2",
94
- "@smithy/util-middleware": "^4.2.13",
94
+ "@smithy/util-middleware": "^4.2.14",
95
95
  "@smithy/util-utf8": "^4.2.2",
96
96
  "tslib": "^2.6.2"
97
97
  },