@aws-sdk/core 3.977.2 → 3.977.3
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/submodules/protocols/index.js +741 -57
- package/dist-es/submodules/protocols/index.js +6 -3
- package/dist-es/submodules/protocols/json/AwsJsonRpcProtocol.js +1 -1
- package/dist-es/submodules/protocols/json/AwsRestJsonProtocol.js +1 -1
- package/dist-es/submodules/protocols/json/JsonSettings.js +1 -0
- package/dist-es/submodules/protocols/json/{JsonCodec.js → codec-v1/JsonCodec.js} +3 -3
- package/dist-es/submodules/protocols/json/codec-v1/JsonSettings.js +1 -0
- package/dist-es/submodules/protocols/json/codec-v2/JsonCodec2.js +20 -0
- package/dist-es/submodules/protocols/json/codec-v2/{BufferJsonShapeDeserializer.js → JsonShapeDeserializer2.js} +1 -1
- package/dist-es/submodules/protocols/json/codec-v2/{ByteJsonShapeSerializer.js → JsonShapeSerializer2.js} +28 -32
- package/dist-types/submodules/protocols/index.d.ts +7 -4
- package/dist-types/submodules/protocols/json/AwsJson1_0Protocol.d.ts +1 -1
- package/dist-types/submodules/protocols/json/AwsJson1_1Protocol.d.ts +1 -1
- package/dist-types/submodules/protocols/json/AwsJsonRpcProtocol.d.ts +1 -1
- package/dist-types/submodules/protocols/json/AwsRestJsonProtocol.d.ts +1 -1
- package/dist-types/submodules/protocols/json/JsonSettings.d.ts +7 -0
- package/dist-types/submodules/protocols/json/codec-v1/JsonCodec.d.ts +15 -0
- package/dist-types/submodules/protocols/json/codec-v1/JsonSettings.d.ts +7 -0
- package/dist-types/submodules/protocols/json/codec-v1/JsonShapeDeserializer.d.ts +2 -1
- package/dist-types/submodules/protocols/json/codec-v1/JsonShapeSerializer.d.ts +2 -1
- package/dist-types/submodules/protocols/json/codec-v2/JsonCodec2.d.ts +12 -0
- package/dist-types/submodules/protocols/json/codec-v2/{BufferJsonShapeDeserializer.d.ts → JsonShapeDeserializer2.d.ts} +3 -3
- package/dist-types/submodules/protocols/json/codec-v2/{ByteJsonShapeSerializer.d.ts → JsonShapeSerializer2.d.ts} +19 -31
- package/dist-types/ts3.4/submodules/protocols/index.d.ts +7 -4
- package/dist-types/ts3.4/submodules/protocols/json/AwsJson1_0Protocol.d.ts +1 -1
- package/dist-types/ts3.4/submodules/protocols/json/AwsJson1_1Protocol.d.ts +1 -1
- package/dist-types/ts3.4/submodules/protocols/json/AwsJsonRpcProtocol.d.ts +1 -1
- package/dist-types/ts3.4/submodules/protocols/json/AwsRestJsonProtocol.d.ts +1 -1
- package/dist-types/ts3.4/submodules/protocols/json/JsonSettings.d.ts +4 -0
- package/dist-types/ts3.4/submodules/protocols/json/codec-v1/JsonCodec.d.ts +11 -0
- package/dist-types/ts3.4/submodules/protocols/json/codec-v1/JsonSettings.d.ts +4 -0
- package/dist-types/ts3.4/submodules/protocols/json/codec-v1/JsonShapeDeserializer.d.ts +1 -1
- package/dist-types/ts3.4/submodules/protocols/json/codec-v1/JsonShapeSerializer.d.ts +1 -1
- package/dist-types/ts3.4/submodules/protocols/json/codec-v2/JsonCodec2.d.ts +9 -0
- package/dist-types/ts3.4/submodules/protocols/json/codec-v2/{BufferJsonShapeDeserializer.d.ts → JsonShapeDeserializer2.d.ts} +2 -2
- package/dist-types/ts3.4/submodules/protocols/json/codec-v2/JsonShapeSerializer2.d.ts +39 -0
- package/package.json +3 -3
- package/dist-types/submodules/protocols/json/JsonCodec.d.ts +0 -19
- package/dist-types/ts3.4/submodules/protocols/json/JsonCodec.d.ts +0 -13
- package/dist-types/ts3.4/submodules/protocols/json/codec-v2/ByteJsonShapeSerializer.d.ts +0 -39
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@aws-sdk/core",
|
|
3
|
-
"version": "3.977.
|
|
3
|
+
"version": "3.977.3",
|
|
4
4
|
"description": "Core functions & classes shared by multiple AWS SDK clients.",
|
|
5
5
|
"homepage": "https://github.com/aws/aws-sdk-js-v3/tree/main/packages-internal/core",
|
|
6
6
|
"license": "Apache-2.0",
|
|
@@ -127,8 +127,8 @@
|
|
|
127
127
|
"@aws-sdk/types": "^3.974.2",
|
|
128
128
|
"@aws-sdk/xml-builder": "^3.972.37",
|
|
129
129
|
"@aws/lambda-invoke-store": "^0.3.0",
|
|
130
|
-
"@smithy/core": "^3.
|
|
131
|
-
"@smithy/signature-v4": "^5.6.
|
|
130
|
+
"@smithy/core": "^3.31.1",
|
|
131
|
+
"@smithy/signature-v4": "^5.6.12",
|
|
132
132
|
"@smithy/types": "^4.16.1",
|
|
133
133
|
"bowser": "^2.11.0",
|
|
134
134
|
"tslib": "^2.6.2"
|
|
@@ -1,19 +0,0 @@
|
|
|
1
|
-
import type { Codec, CodecSettings } from "@smithy/types";
|
|
2
|
-
import { SerdeContextConfig } from "../ConfigurableSerdeContext";
|
|
3
|
-
import { JsonShapeDeserializer } from "./codec-v1/JsonShapeDeserializer";
|
|
4
|
-
import { JsonShapeSerializer } from "./codec-v1/JsonShapeSerializer";
|
|
5
|
-
/**
|
|
6
|
-
* @public
|
|
7
|
-
*/
|
|
8
|
-
export type JsonSettings = CodecSettings & {
|
|
9
|
-
jsonName: boolean;
|
|
10
|
-
};
|
|
11
|
-
/**
|
|
12
|
-
* @public
|
|
13
|
-
*/
|
|
14
|
-
export declare class JsonCodec extends SerdeContextConfig implements Codec<string, string> {
|
|
15
|
-
readonly settings: JsonSettings;
|
|
16
|
-
constructor(settings: JsonSettings);
|
|
17
|
-
createSerializer(): JsonShapeSerializer;
|
|
18
|
-
createDeserializer(): JsonShapeDeserializer;
|
|
19
|
-
}
|
|
@@ -1,13 +0,0 @@
|
|
|
1
|
-
import { Codec, CodecSettings } from "@smithy/types";
|
|
2
|
-
import { SerdeContextConfig } from "../ConfigurableSerdeContext";
|
|
3
|
-
import { JsonShapeDeserializer } from "./codec-v1/JsonShapeDeserializer";
|
|
4
|
-
import { JsonShapeSerializer } from "./codec-v1/JsonShapeSerializer";
|
|
5
|
-
export type JsonSettings = CodecSettings & {
|
|
6
|
-
jsonName: boolean;
|
|
7
|
-
};
|
|
8
|
-
export declare class JsonCodec extends SerdeContextConfig implements Codec<string, string> {
|
|
9
|
-
readonly settings: JsonSettings;
|
|
10
|
-
constructor(settings: JsonSettings);
|
|
11
|
-
createSerializer(): JsonShapeSerializer;
|
|
12
|
-
createDeserializer(): JsonShapeDeserializer;
|
|
13
|
-
}
|
|
@@ -1,39 +0,0 @@
|
|
|
1
|
-
import { Schema, ShapeSerializer } from "@smithy/types";
|
|
2
|
-
import { SerdeContextConfig } from "../../ConfigurableSerdeContext";
|
|
3
|
-
import { JsonSettings } from "../JsonCodec";
|
|
4
|
-
export declare class ByteJsonShapeSerializer
|
|
5
|
-
extends SerdeContextConfig
|
|
6
|
-
implements ShapeSerializer<Uint8Array>
|
|
7
|
-
{
|
|
8
|
-
readonly settings: JsonSettings;
|
|
9
|
-
private json;
|
|
10
|
-
private i;
|
|
11
|
-
private rootSchema;
|
|
12
|
-
constructor(settings: JsonSettings);
|
|
13
|
-
write(schema: Schema, value: unknown): void;
|
|
14
|
-
writeDiscriminatedDocument(schema: Schema, value: unknown): void;
|
|
15
|
-
flush(): Uint8Array;
|
|
16
|
-
private ensure;
|
|
17
|
-
private writeAscii;
|
|
18
|
-
private writeAsciiQuoted;
|
|
19
|
-
private writeJsonString;
|
|
20
|
-
private writeUnicodeEscape;
|
|
21
|
-
private static readonly B64;
|
|
22
|
-
private writeBase64;
|
|
23
|
-
private writeValue;
|
|
24
|
-
private writeStruct;
|
|
25
|
-
private writeList;
|
|
26
|
-
private writeMap;
|
|
27
|
-
private writeTimestamp;
|
|
28
|
-
}
|
|
29
|
-
export declare class StringJsonShapeSerializer
|
|
30
|
-
extends SerdeContextConfig
|
|
31
|
-
implements ShapeSerializer<string>
|
|
32
|
-
{
|
|
33
|
-
readonly settings: JsonSettings;
|
|
34
|
-
private byteSerializer;
|
|
35
|
-
constructor(settings: JsonSettings);
|
|
36
|
-
write(schema: Schema, value: unknown): void;
|
|
37
|
-
writeDiscriminatedDocument(schema: Schema, value: unknown): void;
|
|
38
|
-
flush(): string;
|
|
39
|
-
}
|