@smithy/core 3.20.1 → 3.20.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/cbor/index.js +3 -0
- package/dist-cjs/submodules/protocols/index.js +3 -0
- package/dist-es/submodules/cbor/CborCodec.js +3 -0
- package/dist-es/submodules/protocols/HttpProtocol.js +3 -0
- package/dist-types/submodules/protocols/SerdeContext.d.ts +10 -2
- package/dist-types/ts3.4/submodules/protocols/SerdeContext.d.ts +10 -2
- package/package.json +1 -1
|
@@ -862,6 +862,9 @@ class CborShapeSerializer extends protocols.SerdeContext {
|
|
|
862
862
|
newObject[key] = this.serialize(ns.getValueSchema(), sourceObject[key]);
|
|
863
863
|
}
|
|
864
864
|
}
|
|
865
|
+
else if (ns.isBigDecimalSchema()) {
|
|
866
|
+
return sourceObject;
|
|
867
|
+
}
|
|
865
868
|
return newObject;
|
|
866
869
|
}
|
|
867
870
|
return source;
|
|
@@ -80,6 +80,9 @@ class HttpProtocol extends SerdeContext {
|
|
|
80
80
|
}
|
|
81
81
|
}
|
|
82
82
|
setHostPrefix(request, operationSchema, input) {
|
|
83
|
+
if (this.serdeContext?.disableHostPrefix) {
|
|
84
|
+
return;
|
|
85
|
+
}
|
|
83
86
|
const inputNs = schema.NormalizedSchema.of(operationSchema.input);
|
|
84
87
|
const opTraits = schema.translateTraits(operationSchema.traits ?? {});
|
|
85
88
|
if (opTraits.endpoint) {
|
|
@@ -50,6 +50,9 @@ export class HttpProtocol extends SerdeContext {
|
|
|
50
50
|
}
|
|
51
51
|
}
|
|
52
52
|
setHostPrefix(request, operationSchema, input) {
|
|
53
|
+
if (this.serdeContext?.disableHostPrefix) {
|
|
54
|
+
return;
|
|
55
|
+
}
|
|
53
56
|
const inputNs = NormalizedSchema.of(operationSchema.input);
|
|
54
57
|
const opTraits = translateTraits(operationSchema.traits ?? {});
|
|
55
58
|
if (opTraits.endpoint) {
|
|
@@ -1,8 +1,16 @@
|
|
|
1
1
|
import type { ConfigurableSerdeContext, SerdeFunctions } from "@smithy/types";
|
|
2
|
+
/**
|
|
3
|
+
* This in practice should be the client config object.
|
|
4
|
+
* @internal
|
|
5
|
+
*/
|
|
6
|
+
type SerdeContextType = SerdeFunctions & {
|
|
7
|
+
disableHostPrefix?: boolean;
|
|
8
|
+
};
|
|
2
9
|
/**
|
|
3
10
|
* @internal
|
|
4
11
|
*/
|
|
5
12
|
export declare abstract class SerdeContext implements ConfigurableSerdeContext {
|
|
6
|
-
protected serdeContext?:
|
|
7
|
-
setSerdeContext(serdeContext:
|
|
13
|
+
protected serdeContext?: SerdeContextType;
|
|
14
|
+
setSerdeContext(serdeContext: SerdeContextType): void;
|
|
8
15
|
}
|
|
16
|
+
export {};
|
|
@@ -1,8 +1,16 @@
|
|
|
1
1
|
import { ConfigurableSerdeContext, SerdeFunctions } from "@smithy/types";
|
|
2
|
+
/**
|
|
3
|
+
* This in practice should be the client config object.
|
|
4
|
+
* @internal
|
|
5
|
+
*/
|
|
6
|
+
type SerdeContextType = SerdeFunctions & {
|
|
7
|
+
disableHostPrefix?: boolean;
|
|
8
|
+
};
|
|
2
9
|
/**
|
|
3
10
|
* @internal
|
|
4
11
|
*/
|
|
5
12
|
export declare abstract class SerdeContext implements ConfigurableSerdeContext {
|
|
6
|
-
protected serdeContext?:
|
|
7
|
-
setSerdeContext(serdeContext:
|
|
13
|
+
protected serdeContext?: SerdeContextType;
|
|
14
|
+
setSerdeContext(serdeContext: SerdeContextType): void;
|
|
8
15
|
}
|
|
16
|
+
export {};
|
package/package.json
CHANGED