@cdk8s/awscdk-resolver 0.0.657 → 0.0.658

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 (46) hide show
  1. package/.jsii +2 -2
  2. package/lib/resolve.js +1 -1
  3. package/node_modules/@smithy/core/dist-cjs/submodules/cbor/index.js +1 -2
  4. package/node_modules/@smithy/core/dist-cjs/submodules/event-streams/index.browser.js +23 -23
  5. package/node_modules/@smithy/core/dist-cjs/submodules/event-streams/index.js +23 -23
  6. package/node_modules/@smithy/core/dist-cjs/submodules/protocols/index.js +9 -8
  7. package/node_modules/@smithy/core/dist-es/submodules/cbor/SmithyRpcV2CborProtocol.js +1 -2
  8. package/node_modules/@smithy/core/dist-es/submodules/event-streams/EventStreamSerde.js +4 -4
  9. package/node_modules/@smithy/core/dist-es/submodules/event-streams/eventstream-codec/HeaderMarshaller.js +19 -19
  10. package/node_modules/@smithy/core/dist-es/submodules/protocols/RpcProtocol.js +3 -4
  11. package/node_modules/@smithy/core/dist-es/submodules/protocols/middleware-content-length/contentLengthMiddleware.js +6 -4
  12. package/node_modules/@smithy/core/dist-types/submodules/client/smithy-client/extensions/defaultExtensionConfiguration.d.ts +1 -7
  13. package/node_modules/@smithy/core/dist-types/submodules/config/config-resolver/regionConfig/checkRegion.d.ts +2 -1
  14. package/node_modules/@smithy/core/dist-types/submodules/endpoints/util-endpoints/utils/evaluateCondition.d.ts +1 -1
  15. package/node_modules/@smithy/core/dist-types/submodules/endpoints/util-endpoints/utils/evaluateConditions.d.ts +1 -1
  16. package/node_modules/@smithy/core/dist-types/submodules/endpoints/util-endpoints/utils/evaluateExpression.d.ts +2 -2
  17. package/node_modules/@smithy/core/dist-types/submodules/endpoints/util-endpoints/utils/evaluateRules.d.ts +2 -2
  18. package/node_modules/@smithy/core/dist-types/submodules/endpoints/util-endpoints/utils/getEndpointProperties.d.ts +2 -2
  19. package/node_modules/@smithy/core/dist-types/submodules/endpoints/util-endpoints/utils/getReferenceValue.d.ts +2 -2
  20. package/node_modules/@smithy/core/dist-types/submodules/event-streams/EventStreamSerde.d.ts +14 -2
  21. package/node_modules/@smithy/core/dist-types/submodules/retry/util-retry/retries-2026-config.d.ts +2 -2
  22. package/node_modules/@smithy/core/dist-types/submodules/schema/TypeRegistry.d.ts +1 -1
  23. package/node_modules/@smithy/core/dist-types/submodules/serde/parse-utils.d.ts +5 -5
  24. package/node_modules/@smithy/core/dist-types/ts3.4/submodules/client/smithy-client/extensions/defaultExtensionConfiguration.d.ts +1 -7
  25. package/node_modules/@smithy/core/dist-types/ts3.4/submodules/config/config-resolver/regionConfig/checkRegion.d.ts +2 -1
  26. package/node_modules/@smithy/core/dist-types/ts3.4/submodules/endpoints/util-endpoints/utils/evaluateCondition.d.ts +1 -1
  27. package/node_modules/@smithy/core/dist-types/ts3.4/submodules/endpoints/util-endpoints/utils/evaluateConditions.d.ts +1 -1
  28. package/node_modules/@smithy/core/dist-types/ts3.4/submodules/endpoints/util-endpoints/utils/evaluateExpression.d.ts +2 -2
  29. package/node_modules/@smithy/core/dist-types/ts3.4/submodules/endpoints/util-endpoints/utils/evaluateRules.d.ts +2 -2
  30. package/node_modules/@smithy/core/dist-types/ts3.4/submodules/endpoints/util-endpoints/utils/getEndpointProperties.d.ts +2 -2
  31. package/node_modules/@smithy/core/dist-types/ts3.4/submodules/endpoints/util-endpoints/utils/getReferenceValue.d.ts +2 -2
  32. package/node_modules/@smithy/core/dist-types/ts3.4/submodules/event-streams/EventStreamSerde.d.ts +14 -2
  33. package/node_modules/@smithy/core/dist-types/ts3.4/submodules/retry/util-retry/retries-2026-config.d.ts +2 -2
  34. package/node_modules/@smithy/core/dist-types/ts3.4/submodules/schema/TypeRegistry.d.ts +1 -1
  35. package/node_modules/@smithy/core/dist-types/ts3.4/submodules/serde/parse-utils.d.ts +5 -5
  36. package/node_modules/@smithy/core/package.json +3 -7
  37. package/node_modules/@smithy/credential-provider-imds/package.json +4 -12
  38. package/node_modules/@smithy/fetch-http-handler/package.json +5 -13
  39. package/node_modules/@smithy/node-http-handler/dist-types/node-http2-handler.d.ts +1 -1
  40. package/node_modules/@smithy/node-http-handler/dist-types/ts3.4/node-http2-handler.d.ts +1 -1
  41. package/node_modules/@smithy/node-http-handler/package.json +5 -9
  42. package/node_modules/@smithy/signature-v4/dist-cjs/index.js +9 -9
  43. package/node_modules/@smithy/signature-v4/dist-es/HeaderFormatter.js +9 -9
  44. package/node_modules/@smithy/signature-v4/package.json +4 -12
  45. package/node_modules/@smithy/types/package.json +2 -10
  46. package/package.json +1 -1
@@ -1,3 +1,4 @@
1
+ import { isValidHostLabel } from "@smithy/core/transport";
1
2
  /**
2
3
  * Checks whether region can be a host component.
3
4
  *
@@ -6,4 +7,4 @@
6
7
  *
7
8
  * @internal
8
9
  */
9
- export declare const checkRegion: (region: string, check?: (value: string, allowSubDomains?: boolean) => boolean) => void;
10
+ export declare const checkRegion: (region: string, check?: typeof isValidHostLabel) => void;
@@ -6,6 +6,6 @@ export declare const evaluateCondition: (condition: ConditionObject, options: Ev
6
6
  value: import("../types").FunctionReturn;
7
7
  };
8
8
  } | {
9
- result: boolean;
10
9
  toAssign?: undefined;
10
+ result: boolean;
11
11
  };
@@ -3,6 +3,6 @@ export declare const evaluateConditions: (conditions: ConditionObject[] | undefi
3
3
  result: boolean;
4
4
  referenceRecord: Record<string, FunctionReturn>;
5
5
  } | {
6
- result: boolean;
7
6
  referenceRecord?: undefined;
7
+ result: boolean;
8
8
  };
@@ -2,6 +2,6 @@ import { type EvaluateOptions, type Expression, type FunctionObject, type Functi
2
2
  export declare const evaluateExpression: (obj: Expression, keyName: string, options: EvaluateOptions) => FunctionReturn;
3
3
  export declare const callFunction: ({ fn, argv }: FunctionObject, options: EvaluateOptions) => FunctionReturn;
4
4
  export declare const group: {
5
- evaluateExpression: (obj: Expression, keyName: string, options: EvaluateOptions) => FunctionReturn;
6
- callFunction: ({ fn, argv }: FunctionObject, options: EvaluateOptions) => FunctionReturn;
5
+ evaluateExpression: typeof evaluateExpression;
6
+ callFunction: typeof callFunction;
7
7
  };
@@ -3,6 +3,6 @@ import { type EvaluateOptions, type RuleSetRules, type TreeRuleObject } from "..
3
3
  export declare const evaluateRules: (rules: RuleSetRules, options: EvaluateOptions) => EndpointV2;
4
4
  export declare const evaluateTreeRule: (treeRule: TreeRuleObject, options: EvaluateOptions) => EndpointV2 | undefined;
5
5
  export declare const group: {
6
- evaluateRules: (rules: RuleSetRules, options: EvaluateOptions) => EndpointV2;
7
- evaluateTreeRule: (treeRule: TreeRuleObject, options: EvaluateOptions) => EndpointV2 | undefined;
6
+ evaluateRules: typeof evaluateRules;
7
+ evaluateTreeRule: typeof evaluateTreeRule;
8
8
  };
@@ -3,6 +3,6 @@ import { type EndpointObjectProperties, type EvaluateOptions } from "../types";
3
3
  export declare const getEndpointProperties: (properties: EndpointObjectProperties, options: EvaluateOptions) => Record<string, EndpointObjectProperty>;
4
4
  export declare const getEndpointProperty: (property: EndpointObjectProperty, options: EvaluateOptions) => EndpointObjectProperty;
5
5
  export declare const group: {
6
- getEndpointProperty: (property: EndpointObjectProperty, options: EvaluateOptions) => EndpointObjectProperty;
7
- getEndpointProperties: (properties: EndpointObjectProperties, options: EvaluateOptions) => Record<string, EndpointObjectProperty>;
6
+ getEndpointProperty: typeof getEndpointProperty;
7
+ getEndpointProperties: typeof getEndpointProperties;
8
8
  };
@@ -1,4 +1,4 @@
1
1
  import type { EvaluateOptions, ReferenceObject } from "../types";
2
- export declare const getReferenceValue: ({ ref }: ReferenceObject, options: EvaluateOptions) => string | number | boolean | import("@smithy/types").EndpointPartition | import("@smithy/types").EndpointARN | import("@smithy/types").EndpointURL | {
2
+ export declare const getReferenceValue: ({ ref }: ReferenceObject, options: EvaluateOptions) => string | number | boolean | import("../types").FunctionReturn[] | import("@smithy/types").EndpointARN | import("@smithy/types").EndpointPartition | import("@smithy/types").EndpointURL | {
3
3
  [key: string]: import("../types").FunctionReturn;
4
- } | import("../types").FunctionReturn[];
4
+ };
@@ -31,10 +31,16 @@ export declare class EventStreamSerde {
31
31
  *
32
32
  * @returns a stream suitable for the HTTP body of a request.
33
33
  */
34
- serializeEventStream({ eventStream, requestSchema, initialRequest, }: {
34
+ serializeEventStream({ eventStream, requestSchema, initialRequest, initialMessageType, }: {
35
35
  eventStream: AsyncIterable<any>;
36
36
  requestSchema: NormalizedSchema;
37
37
  initialRequest?: any;
38
+ /**
39
+ * The :event-type header value for the initial message.
40
+ * Defaults to "initial-request" (client→server).
41
+ * Server→client should pass "initial-response".
42
+ */
43
+ initialMessageType?: string;
38
44
  }): Promise<IHttpRequest["body"] | Uint8Array>;
39
45
  /**
40
46
  * @param response - http response from which to read the event stream.
@@ -43,10 +49,16 @@ export declare class EventStreamSerde {
43
49
  *
44
50
  * @returns the asyncIterable of the event stream for the end-user.
45
51
  */
46
- deserializeEventStream({ response, responseSchema, initialResponseContainer, }: {
52
+ deserializeEventStream({ response, responseSchema, initialResponseContainer, initialMessageType, }: {
47
53
  response: IHttpResponse;
48
54
  responseSchema: NormalizedSchema;
49
55
  initialResponseContainer?: any;
56
+ /**
57
+ * The :event-type header value to match as the initial message.
58
+ * Defaults to "initial-response" (server→client).
59
+ * Server-side deserialization of client requests should pass "initial-request".
60
+ */
61
+ initialMessageType?: string;
50
62
  }): Promise<AsyncIterable<{
51
63
  [key: string]: any;
52
64
  $unknown?: unknown;
@@ -4,8 +4,8 @@
4
4
  export declare abstract class Retry {
5
5
  static v2026: boolean;
6
6
  static delay(): 50 | 100;
7
- static throttlingDelay(): 1000 | 500;
7
+ static throttlingDelay(): 500 | 1000;
8
8
  static cost(): 5 | 14;
9
9
  static throttlingCost(): 5 | 10;
10
- static modifiedCostType(): "TRANSIENT" | "THROTTLING";
10
+ static modifiedCostType(): "THROTTLING" | "TRANSIENT";
11
11
  }
@@ -62,7 +62,7 @@ export declare class TypeRegistry {
62
62
  * @param predicate - criterion.
63
63
  * @returns a schema in this registry matching the predicate.
64
64
  */
65
- find(predicate: (schema: ISchema) => boolean): number | "unit" | import("@smithy/types").StaticSimpleSchema | import("@smithy/types").StaticListSchema | import("@smithy/types").StaticMapSchema | import("@smithy/types").StaticStructureSchema | import("@smithy/types").StaticUnionSchema | StaticErrorSchema | import("@smithy/types").StaticOperationSchema | import("@smithy/types").NormalizedSchema | import("@smithy/types").TraitsSchema | import("@smithy/types").MemberSchema | undefined;
65
+ find(predicate: (schema: ISchema) => boolean): number | "unit" | import("@smithy/types").MemberSchema | import("@smithy/types").NormalizedSchema | StaticErrorSchema | import("@smithy/types").StaticListSchema | import("@smithy/types").StaticMapSchema | import("@smithy/types").StaticOperationSchema | import("@smithy/types").StaticSimpleSchema | import("@smithy/types").StaticStructureSchema | import("@smithy/types").StaticUnionSchema | import("@smithy/types").TraitsSchema | undefined;
66
66
  /**
67
67
  * Unloads the current TypeRegistry.
68
68
  */
@@ -51,7 +51,7 @@ export declare const expectLong: (value: any) => number | undefined;
51
51
  *
52
52
  * @deprecated Use expectLong
53
53
  */
54
- export declare const expectInt: (value: any) => number | undefined;
54
+ export declare const expectInt: typeof expectLong;
55
55
  /**
56
56
  * Asserts a value is a 32-bit integer and returns it.
57
57
  * otherwise an error is thrown.
@@ -136,7 +136,7 @@ export declare const strictParseDouble: (value: string | number) => number | und
136
136
  *
137
137
  * @deprecated Use strictParseDouble
138
138
  */
139
- export declare const strictParseFloat: (value: string | number) => number | undefined;
139
+ export declare const strictParseFloat: typeof strictParseDouble;
140
140
  /**
141
141
  * Parses a value into a float. If the value is null or undefined, undefined
142
142
  * will be returned. If the value is a string, it will be parsed by the standard
@@ -166,13 +166,13 @@ export declare const limitedParseDouble: (value: string | number) => number | un
166
166
  *
167
167
  * @deprecated Use limitedParseDouble
168
168
  */
169
- export declare const handleFloat: (value: string | number) => number | undefined;
169
+ export declare const handleFloat: typeof limitedParseDouble;
170
170
  /**
171
171
  * @internal
172
172
  *
173
173
  * @deprecated Use limitedParseDouble
174
174
  */
175
- export declare const limitedParseFloat: (value: string | number) => number | undefined;
175
+ export declare const limitedParseFloat: typeof limitedParseDouble;
176
176
  /**
177
177
  * Asserts a value is a 32-bit float and returns it. If the value is a string
178
178
  * representation of a non-numeric number type (NaN, Infinity, -Infinity),
@@ -202,7 +202,7 @@ export declare const strictParseLong: (value: string | number) => number | undef
202
202
  *
203
203
  * @deprecated Use strictParseLong
204
204
  */
205
- export declare const strictParseInt: (value: string | number) => number | undefined;
205
+ export declare const strictParseInt: typeof strictParseLong;
206
206
  /**
207
207
  * Parses a value into a 32-bit integer. If the value is null or undefined, undefined
208
208
  * will be returned. If the value is a string, it will be parsed by parseFloat
@@ -23,13 +23,7 @@ export declare const getDefaultExtensionConfiguration: (runtimeConfig: DefaultEx
23
23
  * @internal
24
24
  * @deprecated use getDefaultExtensionConfiguration
25
25
  */
26
- export declare const getDefaultClientConfiguration: (runtimeConfig: DefaultExtensionRuntimeConfigType) => {
27
- addChecksumAlgorithm(algo: import("@smithy/types").ChecksumAlgorithm): void;
28
- checksumAlgorithms(): import("@smithy/types").ChecksumAlgorithm[];
29
- } & {
30
- setRetryStrategy(retryStrategy: import("@smithy/types").Provider<import("@smithy/types").RetryStrategyV2 | import("@smithy/types").RetryStrategy>): void;
31
- retryStrategy(): import("@smithy/types").Provider<import("@smithy/types").RetryStrategyV2 | import("@smithy/types").RetryStrategy>;
32
- };
26
+ export declare const getDefaultClientConfiguration: typeof getDefaultExtensionConfiguration;
33
27
  /**
34
28
  * Helper function to resolve runtime config from default extension configuration
35
29
  *
@@ -1,3 +1,4 @@
1
+ import { isValidHostLabel } from "@smithy/core/transport";
1
2
  /**
2
3
  * Checks whether region can be a host component.
3
4
  *
@@ -6,4 +7,4 @@
6
7
  *
7
8
  * @internal
8
9
  */
9
- export declare const checkRegion: (region: string, check?: (value: string, allowSubDomains?: boolean) => boolean) => void;
10
+ export declare const checkRegion: (region: string, check?: typeof isValidHostLabel) => void;
@@ -6,6 +6,6 @@ export declare const evaluateCondition: (condition: ConditionObject, options: Ev
6
6
  value: import("../types").FunctionReturn;
7
7
  };
8
8
  } | {
9
- result: boolean;
10
9
  toAssign?: undefined;
10
+ result: boolean;
11
11
  };
@@ -3,6 +3,6 @@ export declare const evaluateConditions: (conditions: ConditionObject[] | undefi
3
3
  result: boolean;
4
4
  referenceRecord: Record<string, FunctionReturn>;
5
5
  } | {
6
- result: boolean;
7
6
  referenceRecord?: undefined;
7
+ result: boolean;
8
8
  };
@@ -2,6 +2,6 @@ import { EvaluateOptions, Expression, FunctionObject, FunctionReturn } from "../
2
2
  export declare const evaluateExpression: (obj: Expression, keyName: string, options: EvaluateOptions) => FunctionReturn;
3
3
  export declare const callFunction: ({ fn, argv }: FunctionObject, options: EvaluateOptions) => FunctionReturn;
4
4
  export declare const group: {
5
- evaluateExpression: (obj: Expression, keyName: string, options: EvaluateOptions) => FunctionReturn;
6
- callFunction: ({ fn, argv }: FunctionObject, options: EvaluateOptions) => FunctionReturn;
5
+ evaluateExpression: typeof evaluateExpression;
6
+ callFunction: typeof callFunction;
7
7
  };
@@ -3,6 +3,6 @@ import { EvaluateOptions, RuleSetRules, TreeRuleObject } from "../types";
3
3
  export declare const evaluateRules: (rules: RuleSetRules, options: EvaluateOptions) => EndpointV2;
4
4
  export declare const evaluateTreeRule: (treeRule: TreeRuleObject, options: EvaluateOptions) => EndpointV2 | undefined;
5
5
  export declare const group: {
6
- evaluateRules: (rules: RuleSetRules, options: EvaluateOptions) => EndpointV2;
7
- evaluateTreeRule: (treeRule: TreeRuleObject, options: EvaluateOptions) => EndpointV2 | undefined;
6
+ evaluateRules: typeof evaluateRules;
7
+ evaluateTreeRule: typeof evaluateTreeRule;
8
8
  };
@@ -3,6 +3,6 @@ import { EndpointObjectProperties, EvaluateOptions } from "../types";
3
3
  export declare const getEndpointProperties: (properties: EndpointObjectProperties, options: EvaluateOptions) => Record<string, EndpointObjectProperty>;
4
4
  export declare const getEndpointProperty: (property: EndpointObjectProperty, options: EvaluateOptions) => EndpointObjectProperty;
5
5
  export declare const group: {
6
- getEndpointProperty: (property: EndpointObjectProperty, options: EvaluateOptions) => EndpointObjectProperty;
7
- getEndpointProperties: (properties: EndpointObjectProperties, options: EvaluateOptions) => Record<string, EndpointObjectProperty>;
6
+ getEndpointProperty: typeof getEndpointProperty;
7
+ getEndpointProperties: typeof getEndpointProperties;
8
8
  };
@@ -1,4 +1,4 @@
1
1
  import { EvaluateOptions, ReferenceObject } from "../types";
2
- export declare const getReferenceValue: ({ ref }: ReferenceObject, options: EvaluateOptions) => string | number | boolean | import("@smithy/types").EndpointPartition | import("@smithy/types").EndpointARN | import("@smithy/types").EndpointURL | {
2
+ export declare const getReferenceValue: ({ ref }: ReferenceObject, options: EvaluateOptions) => string | number | boolean | import("../types").FunctionReturn[] | import("@smithy/types").EndpointARN | import("@smithy/types").EndpointPartition | import("@smithy/types").EndpointURL | {
3
3
  [key: string]: import("../types").FunctionReturn;
4
- } | import("../types").FunctionReturn[];
4
+ };
@@ -31,10 +31,16 @@ export declare class EventStreamSerde {
31
31
  *
32
32
  * @returns a stream suitable for the HTTP body of a request.
33
33
  */
34
- serializeEventStream({ eventStream, requestSchema, initialRequest, }: {
34
+ serializeEventStream({ eventStream, requestSchema, initialRequest, initialMessageType, }: {
35
35
  eventStream: AsyncIterable<any>;
36
36
  requestSchema: NormalizedSchema;
37
37
  initialRequest?: any;
38
+ /**
39
+ * The :event-type header value for the initial message.
40
+ * Defaults to "initial-request" (client→server).
41
+ * Server→client should pass "initial-response".
42
+ */
43
+ initialMessageType?: string;
38
44
  }): Promise<IHttpRequest["body"] | Uint8Array>;
39
45
  /**
40
46
  * @param response - http response from which to read the event stream.
@@ -43,10 +49,16 @@ export declare class EventStreamSerde {
43
49
  *
44
50
  * @returns the asyncIterable of the event stream for the end-user.
45
51
  */
46
- deserializeEventStream({ response, responseSchema, initialResponseContainer, }: {
52
+ deserializeEventStream({ response, responseSchema, initialResponseContainer, initialMessageType, }: {
47
53
  response: IHttpResponse;
48
54
  responseSchema: NormalizedSchema;
49
55
  initialResponseContainer?: any;
56
+ /**
57
+ * The :event-type header value to match as the initial message.
58
+ * Defaults to "initial-response" (server→client).
59
+ * Server-side deserialization of client requests should pass "initial-request".
60
+ */
61
+ initialMessageType?: string;
50
62
  }): Promise<AsyncIterable<{
51
63
  [key: string]: any;
52
64
  $unknown?: unknown;
@@ -4,8 +4,8 @@
4
4
  export declare abstract class Retry {
5
5
  static v2026: boolean;
6
6
  static delay(): 50 | 100;
7
- static throttlingDelay(): 1000 | 500;
7
+ static throttlingDelay(): 500 | 1000;
8
8
  static cost(): 5 | 14;
9
9
  static throttlingCost(): 5 | 10;
10
- static modifiedCostType(): "TRANSIENT" | "THROTTLING";
10
+ static modifiedCostType(): "THROTTLING" | "TRANSIENT";
11
11
  }
@@ -62,7 +62,7 @@ export declare class TypeRegistry {
62
62
  * @param predicate - criterion.
63
63
  * @returns a schema in this registry matching the predicate.
64
64
  */
65
- find(predicate: (schema: ISchema) => boolean): number | "unit" | import("@smithy/types").StaticSimpleSchema | import("@smithy/types").StaticListSchema | import("@smithy/types").StaticMapSchema | import("@smithy/types").StaticStructureSchema | import("@smithy/types").StaticUnionSchema | StaticErrorSchema | import("@smithy/types").StaticOperationSchema | import("@smithy/types").NormalizedSchema | import("@smithy/types").TraitsSchema | import("@smithy/types").MemberSchema | undefined;
65
+ find(predicate: (schema: ISchema) => boolean): number | "unit" | import("@smithy/types").MemberSchema | import("@smithy/types").NormalizedSchema | StaticErrorSchema | import("@smithy/types").StaticListSchema | import("@smithy/types").StaticMapSchema | import("@smithy/types").StaticOperationSchema | import("@smithy/types").StaticSimpleSchema | import("@smithy/types").StaticStructureSchema | import("@smithy/types").StaticUnionSchema | import("@smithy/types").TraitsSchema | undefined;
66
66
  /**
67
67
  * Unloads the current TypeRegistry.
68
68
  */
@@ -51,7 +51,7 @@ export declare const expectLong: (value: any) => number | undefined;
51
51
  *
52
52
  * @deprecated Use expectLong
53
53
  */
54
- export declare const expectInt: (value: any) => number | undefined;
54
+ export declare const expectInt: typeof expectLong;
55
55
  /**
56
56
  * Asserts a value is a 32-bit integer and returns it.
57
57
  * otherwise an error is thrown.
@@ -136,7 +136,7 @@ export declare const strictParseDouble: (value: string | number) => number | und
136
136
  *
137
137
  * @deprecated Use strictParseDouble
138
138
  */
139
- export declare const strictParseFloat: (value: string | number) => number | undefined;
139
+ export declare const strictParseFloat: typeof strictParseDouble;
140
140
  /**
141
141
  * Parses a value into a float. If the value is null or undefined, undefined
142
142
  * will be returned. If the value is a string, it will be parsed by the standard
@@ -166,13 +166,13 @@ export declare const limitedParseDouble: (value: string | number) => number | un
166
166
  *
167
167
  * @deprecated Use limitedParseDouble
168
168
  */
169
- export declare const handleFloat: (value: string | number) => number | undefined;
169
+ export declare const handleFloat: typeof limitedParseDouble;
170
170
  /**
171
171
  * @internal
172
172
  *
173
173
  * @deprecated Use limitedParseDouble
174
174
  */
175
- export declare const limitedParseFloat: (value: string | number) => number | undefined;
175
+ export declare const limitedParseFloat: typeof limitedParseDouble;
176
176
  /**
177
177
  * Asserts a value is a 32-bit float and returns it. If the value is a string
178
178
  * representation of a non-numeric number type (NaN, Infinity, -Infinity),
@@ -202,7 +202,7 @@ export declare const strictParseLong: (value: string | number) => number | undef
202
202
  *
203
203
  * @deprecated Use strictParseLong
204
204
  */
205
- export declare const strictParseInt: (value: string | number) => number | undefined;
205
+ export declare const strictParseInt: typeof strictParseLong;
206
206
  /**
207
207
  * Parses a value into a 32-bit integer. If the value is null or undefined, undefined
208
208
  * will be returned. If the value is a string, it will be parsed by parseFloat
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@smithy/core",
3
- "version": "3.33.0",
3
+ "version": "3.33.2",
4
4
  "homepage": "https://github.com/smithy-lang/smithy-typescript/tree/main/packages/core",
5
5
  "license": "Apache-2.0",
6
6
  "author": {
@@ -232,7 +232,7 @@
232
232
  "test:integration:watch": "yarn g:vitest watch -c vitest.config.integ.mts"
233
233
  },
234
234
  "dependencies": {
235
- "@smithy/types": "^4.17.0",
235
+ "@smithy/types": "^4.17.2",
236
236
  "tslib": "^2.6.2"
237
237
  },
238
238
  "devDependencies": {
@@ -241,11 +241,7 @@
241
241
  "downlevel-dts": "0.10.1",
242
242
  "hash-test-vectors": "^1.3.2",
243
243
  "json-bigint": "^1.0.0",
244
- "premove": "4.0.0",
245
- "typedoc": "0.23.23"
246
- },
247
- "typedoc": {
248
- "entryPoint": "src/index.ts"
244
+ "premove": "4.0.0"
249
245
  },
250
246
  "engines": {
251
247
  "node": ">=18.0.0"
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@smithy/credential-provider-imds",
3
- "version": "4.5.0",
3
+ "version": "4.5.2",
4
4
  "description": "AWS credential provider that sources credentials from the EC2 instance metadata service and ECS container metadata service",
5
5
  "keywords": [
6
6
  "aws",
@@ -31,33 +31,25 @@
31
31
  ]
32
32
  }
33
33
  },
34
- "publishConfig": {
35
- "directory": ".release/package"
36
- },
37
34
  "scripts": {
38
35
  "build": "concurrently 'yarn:build:types' 'yarn:build:es:cjs'",
39
36
  "build:es:cjs": "node ../../scripts/compilation/es_cjs.js",
40
37
  "build:types": "premove dist-types && yarn g:tsc -p tsconfig.types.json",
41
38
  "build:types:downlevel": "premove dist-types/ts3.4 && downlevel-dts dist-types dist-types/ts3.4",
42
39
  "clean": "premove dist-cjs dist-es dist-types",
43
- "stage-release": "premove .release && yarn pack && mkdir ./.release && tar zxvf ./package.tgz --directory ./.release && rm ./package.tgz",
44
40
  "test": "yarn g:vitest run",
45
41
  "test:watch": "yarn g:vitest watch"
46
42
  },
47
43
  "dependencies": {
48
- "@smithy/core": "^3.32.0",
49
- "@smithy/types": "^4.17.0",
44
+ "@smithy/core": "^3.33.2",
45
+ "@smithy/types": "^4.17.2",
50
46
  "tslib": "^2.6.2"
51
47
  },
52
48
  "devDependencies": {
53
49
  "@types/node": "^18.11.9",
54
50
  "concurrently": "7.0.0",
55
51
  "downlevel-dts": "0.10.1",
56
- "premove": "4.0.0",
57
- "typedoc": "0.23.23"
58
- },
59
- "typedoc": {
60
- "entryPoint": "src/index.ts"
52
+ "premove": "4.0.0"
61
53
  },
62
54
  "engines": {
63
55
  "node": ">=18.0.0"
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@smithy/fetch-http-handler",
3
- "version": "5.7.0",
3
+ "version": "5.7.2",
4
4
  "description": "Provides a way to make requests",
5
5
  "homepage": "https://github.com/smithy-lang/smithy-typescript/tree/main/packages/fetch-http-handler",
6
6
  "license": "Apache-2.0",
@@ -27,9 +27,6 @@
27
27
  ]
28
28
  }
29
29
  },
30
- "publishConfig": {
31
- "directory": ".release/package"
32
- },
33
30
  "scripts": {
34
31
  "build": "concurrently 'yarn:build:types' 'yarn:build:es:cjs'",
35
32
  "build:es:cjs": "node ../../scripts/compilation/es_cjs.js",
@@ -37,26 +34,21 @@
37
34
  "build:types:downlevel": "premove dist-types/ts3.4 && downlevel-dts dist-types dist-types/ts3.4",
38
35
  "clean": "premove dist-cjs dist-es dist-types",
39
36
  "extract:docs": "api-extractor run --local",
40
- "stage-release": "premove .release && yarn pack && mkdir ./.release && tar zxvf ./package.tgz --directory ./.release && rm ./package.tgz",
41
37
  "test": "yarn g:vitest run && yarn test:browser",
42
38
  "test:watch": "yarn g:vitest watch",
43
39
  "test:browser": "yarn g:vitest run -c vitest.config.browser.mts",
44
40
  "test:browser:watch": "yarn g:vitest watch -c vitest.config.browser.mts"
45
41
  },
46
42
  "dependencies": {
47
- "@smithy/core": "^3.32.0",
48
- "@smithy/types": "^4.17.0",
43
+ "@smithy/core": "^3.33.2",
44
+ "@smithy/types": "^4.17.2",
49
45
  "tslib": "^2.6.2"
50
46
  },
51
47
  "devDependencies": {
52
- "@smithy/abort-controller": "^4.4.0",
48
+ "@smithy/abort-controller": "^4.4.2",
53
49
  "concurrently": "7.0.0",
54
50
  "downlevel-dts": "0.10.1",
55
- "premove": "4.0.0",
56
- "typedoc": "0.23.23"
57
- },
58
- "typedoc": {
59
- "entryPoint": "src/index.ts"
51
+ "premove": "4.0.0"
60
52
  },
61
53
  "engines": {
62
54
  "node": ">=18.0.0"
@@ -64,7 +64,7 @@ export declare class NodeHttp2Handler implements HttpHandler<NodeHttp2HandlerOpt
64
64
  * @returns the input if it is an HttpHandler of any class,
65
65
  * or instantiates a new instance of this handler.
66
66
  */
67
- static create(instanceOrOptions?: HttpHandler<any> | NodeHttp2HandlerOptions | Provider<NodeHttp2HandlerOptions | void>): HttpHandler<any> | NodeHttp2Handler;
67
+ static create(instanceOrOptions?: HttpHandler<any> | NodeHttp2HandlerOptions | Provider<NodeHttp2HandlerOptions | void>): NodeHttp2Handler | HttpHandler<any>;
68
68
  constructor(options?: NodeHttp2HandlerOptions | Provider<NodeHttp2HandlerOptions | void>);
69
69
  destroy(): void;
70
70
  handle(request: HttpRequest, { abortSignal, requestTimeout, isEventStream }?: HttpHandlerOptions & EventStreamSignal): Promise<{
@@ -64,7 +64,7 @@ export declare class NodeHttp2Handler implements HttpHandler<NodeHttp2HandlerOpt
64
64
  * @returns the input if it is an HttpHandler of any class,
65
65
  * or instantiates a new instance of this handler.
66
66
  */
67
- static create(instanceOrOptions?: HttpHandler<any> | NodeHttp2HandlerOptions | Provider<NodeHttp2HandlerOptions | void>): HttpHandler<any> | NodeHttp2Handler;
67
+ static create(instanceOrOptions?: HttpHandler<any> | NodeHttp2HandlerOptions | Provider<NodeHttp2HandlerOptions | void>): NodeHttp2Handler | HttpHandler<any>;
68
68
  constructor(options?: NodeHttp2HandlerOptions | Provider<NodeHttp2HandlerOptions | void>);
69
69
  destroy(): void;
70
70
  handle(request: HttpRequest, { abortSignal, requestTimeout, isEventStream }?: HttpHandlerOptions & EventStreamSignal): Promise<{
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@smithy/node-http-handler",
3
- "version": "4.11.0",
3
+ "version": "4.11.2",
4
4
  "description": "Provides a way to make requests",
5
5
  "homepage": "https://github.com/smithy-lang/smithy-typescript/tree/main/packages/node-http-handler",
6
6
  "license": "Apache-2.0",
@@ -39,20 +39,16 @@
39
39
  "test:watch": "yarn g:vitest watch"
40
40
  },
41
41
  "dependencies": {
42
- "@smithy/core": "^3.33.0",
43
- "@smithy/types": "^4.17.0",
42
+ "@smithy/core": "^3.33.2",
43
+ "@smithy/types": "^4.17.2",
44
44
  "tslib": "^2.6.2"
45
45
  },
46
46
  "devDependencies": {
47
- "@smithy/abort-controller": "^4.4.0",
47
+ "@smithy/abort-controller": "^4.4.2",
48
48
  "@types/node": "^18.11.9",
49
49
  "concurrently": "7.0.0",
50
50
  "downlevel-dts": "0.10.1",
51
- "premove": "4.0.0",
52
- "typedoc": "0.23.23"
53
- },
54
- "typedoc": {
55
- "entryPoint": "src/index.ts"
51
+ "premove": "4.0.0"
56
52
  },
57
53
  "engines": {
58
54
  "node": ">=18.0.0"
@@ -20,27 +20,27 @@ class HeaderFormatter {
20
20
  formatHeaderValue(header) {
21
21
  switch (header.type) {
22
22
  case "boolean":
23
- return Uint8Array.from([header.value ? HEADER_VALUE_TYPE.boolTrue : HEADER_VALUE_TYPE.boolFalse]);
23
+ return Uint8Array.from([header.value ? 0 : 1]);
24
24
  case "byte":
25
- return Uint8Array.from([HEADER_VALUE_TYPE.byte, header.value]);
25
+ return Uint8Array.from([2, header.value]);
26
26
  case "short":
27
27
  const shortView = new DataView(new ArrayBuffer(3));
28
- shortView.setUint8(0, HEADER_VALUE_TYPE.short);
28
+ shortView.setUint8(0, 3);
29
29
  shortView.setInt16(1, header.value, false);
30
30
  return new Uint8Array(shortView.buffer);
31
31
  case "integer":
32
32
  const intView = new DataView(new ArrayBuffer(5));
33
- intView.setUint8(0, HEADER_VALUE_TYPE.integer);
33
+ intView.setUint8(0, 4);
34
34
  intView.setInt32(1, header.value, false);
35
35
  return new Uint8Array(intView.buffer);
36
36
  case "long":
37
37
  const longBytes = new Uint8Array(9);
38
- longBytes[0] = HEADER_VALUE_TYPE.long;
38
+ longBytes[0] = 5;
39
39
  longBytes.set(header.value.bytes, 1);
40
40
  return longBytes;
41
41
  case "binary":
42
42
  const binView = new DataView(new ArrayBuffer(3 + header.value.byteLength));
43
- binView.setUint8(0, HEADER_VALUE_TYPE.byteArray);
43
+ binView.setUint8(0, 6);
44
44
  binView.setUint16(1, header.value.byteLength, false);
45
45
  const binBytes = new Uint8Array(binView.buffer);
46
46
  binBytes.set(header.value, 3);
@@ -48,14 +48,14 @@ class HeaderFormatter {
48
48
  case "string":
49
49
  const utf8Bytes = fromUtf8(header.value);
50
50
  const strView = new DataView(new ArrayBuffer(3 + utf8Bytes.byteLength));
51
- strView.setUint8(0, HEADER_VALUE_TYPE.string);
51
+ strView.setUint8(0, 7);
52
52
  strView.setUint16(1, utf8Bytes.byteLength, false);
53
53
  const strBytes = new Uint8Array(strView.buffer);
54
54
  strBytes.set(utf8Bytes, 3);
55
55
  return strBytes;
56
56
  case "timestamp":
57
57
  const tsBytes = new Uint8Array(9);
58
- tsBytes[0] = HEADER_VALUE_TYPE.timestamp;
58
+ tsBytes[0] = 8;
59
59
  tsBytes.set(Int64.fromNumber(header.value.valueOf()).bytes, 1);
60
60
  return tsBytes;
61
61
  case "uuid":
@@ -63,7 +63,7 @@ class HeaderFormatter {
63
63
  throw new Error(`Invalid UUID received: ${header.value}`);
64
64
  }
65
65
  const uuidBytes = new Uint8Array(17);
66
- uuidBytes[0] = HEADER_VALUE_TYPE.uuid;
66
+ uuidBytes[0] = 9;
67
67
  uuidBytes.set(fromHex(header.value.replace(/-/g, "")), 1);
68
68
  return uuidBytes;
69
69
  }