@cdk8s/awscdk-resolver 0.0.297 → 0.0.299
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/.jsii +3 -3
- package/lib/resolve.js +1 -1
- package/node_modules/@aws-sdk/client-cloudformation/package.json +5 -5
- package/node_modules/@aws-sdk/client-sso/package.json +4 -4
- package/node_modules/@aws-sdk/core/dist-cjs/submodules/httpAuthSchemes/index.js +2 -0
- package/node_modules/@aws-sdk/core/dist-es/submodules/httpAuthSchemes/index.js +1 -0
- package/node_modules/@aws-sdk/core/dist-types/submodules/httpAuthSchemes/index.d.ts +1 -0
- package/node_modules/@aws-sdk/core/dist-types/ts3.4/submodules/httpAuthSchemes/index.d.ts +1 -0
- package/node_modules/@aws-sdk/core/package.json +1 -1
- package/node_modules/@aws-sdk/credential-provider-env/package.json +2 -2
- package/node_modules/@aws-sdk/credential-provider-http/package.json +2 -2
- package/node_modules/@aws-sdk/credential-provider-ini/package.json +8 -8
- package/node_modules/@aws-sdk/credential-provider-node/package.json +7 -7
- package/node_modules/@aws-sdk/credential-provider-process/package.json +2 -2
- package/node_modules/@aws-sdk/credential-provider-sso/package.json +4 -4
- package/node_modules/@aws-sdk/credential-provider-web-identity/package.json +3 -3
- package/node_modules/@aws-sdk/middleware-user-agent/package.json +2 -2
- package/node_modules/@aws-sdk/nested-clients/package.json +4 -4
- package/node_modules/@aws-sdk/token-providers/README.md +9 -0
- package/node_modules/@aws-sdk/token-providers/dist-cjs/index.js +18 -1
- package/node_modules/@aws-sdk/token-providers/dist-es/fromEnvSigningName.js +13 -0
- package/node_modules/@aws-sdk/token-providers/dist-es/index.js +1 -0
- package/node_modules/@aws-sdk/token-providers/dist-types/fromEnvSigningName.d.ts +18 -0
- package/node_modules/@aws-sdk/token-providers/dist-types/index.d.ts +1 -0
- package/node_modules/@aws-sdk/token-providers/dist-types/ts3.4/fromEnvSigningName.d.ts +11 -0
- package/node_modules/@aws-sdk/token-providers/dist-types/ts3.4/index.d.ts +1 -0
- package/node_modules/@aws-sdk/token-providers/package.json +3 -2
- package/node_modules/@aws-sdk/util-user-agent-node/package.json +2 -2
- package/node_modules/@smithy/abort-controller/package.json +2 -2
- package/node_modules/@smithy/config-resolver/dist-types/endpointsConfig/resolveCustomEndpointsConfig.d.ts +5 -0
- package/node_modules/@smithy/config-resolver/dist-types/endpointsConfig/resolveEndpointsConfig.d.ts +3 -0
- package/node_modules/@smithy/config-resolver/dist-types/regionInfo/EndpointVariant.d.ts +3 -2
- package/node_modules/@smithy/config-resolver/dist-types/regionInfo/EndpointVariantTag.d.ts +4 -1
- package/node_modules/@smithy/config-resolver/dist-types/regionInfo/PartitionHash.d.ts +3 -2
- package/node_modules/@smithy/config-resolver/dist-types/regionInfo/RegionHash.d.ts +3 -2
- package/node_modules/@smithy/config-resolver/dist-types/regionInfo/getHostnameFromVariants.d.ts +2 -0
- package/node_modules/@smithy/config-resolver/dist-types/regionInfo/getRegionInfo.d.ts +2 -0
- package/node_modules/@smithy/config-resolver/dist-types/regionInfo/getResolvedHostname.d.ts +2 -0
- package/node_modules/@smithy/config-resolver/dist-types/regionInfo/getResolvedPartition.d.ts +2 -0
- package/node_modules/@smithy/config-resolver/dist-types/regionInfo/getResolvedSigningRegion.d.ts +2 -0
- package/node_modules/@smithy/config-resolver/dist-types/ts3.4/endpointsConfig/resolveCustomEndpointsConfig.d.ts +5 -0
- package/node_modules/@smithy/config-resolver/dist-types/ts3.4/endpointsConfig/resolveEndpointsConfig.d.ts +3 -0
- package/node_modules/@smithy/config-resolver/dist-types/ts3.4/regionInfo/EndpointVariant.d.ts +3 -2
- package/node_modules/@smithy/config-resolver/dist-types/ts3.4/regionInfo/EndpointVariantTag.d.ts +4 -1
- package/node_modules/@smithy/config-resolver/dist-types/ts3.4/regionInfo/PartitionHash.d.ts +3 -2
- package/node_modules/@smithy/config-resolver/dist-types/ts3.4/regionInfo/RegionHash.d.ts +3 -2
- package/node_modules/@smithy/config-resolver/dist-types/ts3.4/regionInfo/getHostnameFromVariants.d.ts +2 -0
- package/node_modules/@smithy/config-resolver/dist-types/ts3.4/regionInfo/getRegionInfo.d.ts +2 -0
- package/node_modules/@smithy/config-resolver/dist-types/ts3.4/regionInfo/getResolvedHostname.d.ts +2 -0
- package/node_modules/@smithy/config-resolver/dist-types/ts3.4/regionInfo/getResolvedPartition.d.ts +2 -0
- package/node_modules/@smithy/config-resolver/dist-types/ts3.4/regionInfo/getResolvedSigningRegion.d.ts +2 -0
- package/node_modules/@smithy/config-resolver/package.json +4 -4
- package/node_modules/@smithy/core/dist-cjs/submodules/cbor/index.js +3 -2
- package/node_modules/@smithy/core/dist-cjs/submodules/serde/index.js +625 -2
- package/node_modules/@smithy/core/dist-es/submodules/cbor/parseCborBody.js +3 -2
- package/node_modules/@smithy/core/dist-es/submodules/serde/index.js +6 -0
- package/node_modules/@smithy/core/dist-types/submodules/serde/index.d.ts +6 -0
- package/node_modules/@smithy/core/dist-types/ts3.4/submodules/serde/index.d.ts +6 -0
- package/node_modules/@smithy/core/package.json +7 -6
- package/node_modules/@smithy/credential-provider-imds/package.json +5 -5
- package/node_modules/@smithy/fetch-http-handler/dist-types/fetch-http-handler.d.ts +1 -1
- package/node_modules/@smithy/fetch-http-handler/dist-types/ts3.4/fetch-http-handler.d.ts +1 -1
- package/node_modules/@smithy/fetch-http-handler/package.json +5 -5
- package/node_modules/@smithy/hash-node/package.json +2 -2
- package/node_modules/@smithy/invalid-dependency/package.json +2 -2
- package/node_modules/@smithy/middleware-content-length/dist-cjs/index.js +2 -2
- package/node_modules/@smithy/middleware-content-length/package.json +3 -3
- package/node_modules/@smithy/middleware-endpoint/package.json +8 -8
- package/node_modules/@smithy/middleware-retry/package.json +8 -8
- package/node_modules/@smithy/middleware-serde/package.json +3 -3
- package/node_modules/@smithy/middleware-stack/package.json +2 -2
- package/node_modules/@smithy/node-config-provider/package.json +4 -4
- package/node_modules/@smithy/node-http-handler/dist-types/node-http-handler.d.ts +0 -2
- package/node_modules/@smithy/node-http-handler/dist-types/node-http2-connection-manager.d.ts +0 -1
- package/node_modules/@smithy/node-http-handler/dist-types/node-http2-connection-pool.d.ts +1 -2
- package/node_modules/@smithy/node-http-handler/dist-types/readable.mock.d.ts +0 -3
- package/node_modules/@smithy/node-http-handler/dist-types/set-connection-timeout.d.ts +0 -7
- package/node_modules/@smithy/node-http-handler/dist-types/set-socket-keep-alive.d.ts +0 -7
- package/node_modules/@smithy/node-http-handler/dist-types/set-socket-timeout.d.ts +0 -7
- package/node_modules/@smithy/node-http-handler/dist-types/stream-collector/collector.d.ts +0 -3
- package/node_modules/@smithy/node-http-handler/dist-types/stream-collector/readable.mock.d.ts +0 -3
- package/node_modules/@smithy/node-http-handler/dist-types/ts3.4/node-http-handler.d.ts +0 -1
- package/node_modules/@smithy/node-http-handler/dist-types/ts3.4/node-http2-connection-manager.d.ts +0 -1
- package/node_modules/@smithy/node-http-handler/dist-types/ts3.4/node-http2-connection-pool.d.ts +1 -2
- package/node_modules/@smithy/node-http-handler/dist-types/ts3.4/readable.mock.d.ts +0 -1
- package/node_modules/@smithy/node-http-handler/dist-types/ts3.4/set-connection-timeout.d.ts +0 -1
- package/node_modules/@smithy/node-http-handler/dist-types/ts3.4/set-socket-keep-alive.d.ts +0 -1
- package/node_modules/@smithy/node-http-handler/dist-types/ts3.4/set-socket-timeout.d.ts +0 -1
- package/node_modules/@smithy/node-http-handler/dist-types/ts3.4/stream-collector/collector.d.ts +0 -1
- package/node_modules/@smithy/node-http-handler/dist-types/ts3.4/stream-collector/readable.mock.d.ts +0 -1
- package/node_modules/@smithy/node-http-handler/dist-types/ts3.4/write-request-body.d.ts +0 -1
- package/node_modules/@smithy/node-http-handler/dist-types/write-request-body.d.ts +0 -2
- package/node_modules/@smithy/node-http-handler/package.json +5 -5
- package/node_modules/@smithy/property-provider/dist-types/chain.d.ts +1 -1
- package/node_modules/@smithy/property-provider/dist-types/ts3.4/chain.d.ts +1 -1
- package/node_modules/@smithy/property-provider/package.json +2 -2
- package/node_modules/@smithy/protocol-http/dist-types/extensions/httpExtensionConfiguration.d.ts +3 -7
- package/node_modules/@smithy/protocol-http/dist-types/ts3.4/extensions/httpExtensionConfiguration.d.ts +3 -7
- package/node_modules/@smithy/protocol-http/package.json +2 -2
- package/node_modules/@smithy/querystring-builder/package.json +2 -2
- package/node_modules/@smithy/querystring-parser/package.json +2 -2
- package/node_modules/@smithy/service-error-classification/package.json +2 -2
- package/node_modules/@smithy/shared-ini-file-loader/package.json +2 -2
- package/node_modules/@smithy/signature-v4/package.json +4 -4
- package/node_modules/@smithy/smithy-client/dist-cjs/index.js +32 -617
- package/node_modules/@smithy/smithy-client/dist-es/index.js +1 -6
- package/node_modules/@smithy/smithy-client/dist-types/index.d.ts +1 -6
- package/node_modules/@smithy/smithy-client/dist-types/ts3.4/index.d.ts +1 -6
- package/node_modules/@smithy/smithy-client/package.json +8 -8
- package/node_modules/@smithy/types/dist-cjs/schema/schema.js +1 -0
- package/node_modules/@smithy/types/dist-cjs/schema/sentinels.js +1 -0
- package/node_modules/@smithy/types/dist-cjs/schema/traits.js +1 -0
- package/node_modules/@smithy/types/dist-cjs/transform/mutable.js +1 -0
- package/node_modules/@smithy/types/dist-es/index.js +3 -0
- package/node_modules/@smithy/types/dist-es/schema/schema.js +1 -0
- package/node_modules/@smithy/types/dist-es/schema/sentinels.js +1 -0
- package/node_modules/@smithy/types/dist-es/schema/traits.js +1 -0
- package/node_modules/@smithy/types/dist-es/transform/mutable.js +1 -0
- package/node_modules/@smithy/types/dist-types/blob/blob-payload-input-types.d.ts +0 -3
- package/node_modules/@smithy/types/dist-types/command.d.ts +2 -0
- package/node_modules/@smithy/types/dist-types/http/httpHandlerInitialization.d.ts +0 -2
- package/node_modules/@smithy/types/dist-types/index.d.ts +3 -0
- package/node_modules/@smithy/types/dist-types/schema/schema.d.ts +263 -0
- package/node_modules/@smithy/types/dist-types/schema/sentinels.d.ts +65 -0
- package/node_modules/@smithy/types/dist-types/schema/traits.d.ts +46 -0
- package/node_modules/@smithy/types/dist-types/serde.d.ts +2 -0
- package/node_modules/@smithy/types/dist-types/streaming-payload/streaming-blob-common-types.d.ts +0 -1
- package/node_modules/@smithy/types/dist-types/streaming-payload/streaming-blob-payload-input-types.d.ts +0 -3
- package/node_modules/@smithy/types/dist-types/streaming-payload/streaming-blob-payload-output-types.d.ts +0 -2
- package/node_modules/@smithy/types/dist-types/transform/client-payload-blob-type-narrow.d.ts +0 -2
- package/node_modules/@smithy/types/dist-types/transform/mutable.d.ts +6 -0
- package/node_modules/@smithy/types/dist-types/ts3.4/blob/blob-payload-input-types.d.ts +0 -1
- package/node_modules/@smithy/types/dist-types/ts3.4/command.d.ts +2 -0
- package/node_modules/@smithy/types/dist-types/ts3.4/http/httpHandlerInitialization.d.ts +0 -1
- package/node_modules/@smithy/types/dist-types/ts3.4/index.d.ts +3 -0
- package/node_modules/@smithy/types/dist-types/ts3.4/schema/schema.d.ts +278 -0
- package/node_modules/@smithy/types/dist-types/ts3.4/schema/sentinels.d.ts +65 -0
- package/node_modules/@smithy/types/dist-types/ts3.4/schema/traits.d.ts +46 -0
- package/node_modules/@smithy/types/dist-types/ts3.4/serde.d.ts +2 -0
- package/node_modules/@smithy/types/dist-types/ts3.4/streaming-payload/streaming-blob-common-types.d.ts +0 -1
- package/node_modules/@smithy/types/dist-types/ts3.4/streaming-payload/streaming-blob-payload-input-types.d.ts +0 -1
- package/node_modules/@smithy/types/dist-types/ts3.4/streaming-payload/streaming-blob-payload-output-types.d.ts +0 -1
- package/node_modules/@smithy/types/dist-types/ts3.4/transform/client-payload-blob-type-narrow.d.ts +0 -1
- package/node_modules/@smithy/types/dist-types/ts3.4/transform/mutable.d.ts +6 -0
- package/node_modules/@smithy/types/package.json +1 -1
- package/node_modules/@smithy/url-parser/package.json +3 -3
- package/node_modules/@smithy/util-defaults-mode-browser/package.json +4 -4
- package/node_modules/@smithy/util-defaults-mode-node/package.json +7 -7
- package/node_modules/@smithy/util-endpoints/package.json +3 -3
- package/node_modules/@smithy/util-middleware/package.json +2 -2
- package/node_modules/@smithy/util-retry/dist-types/defaultRetryToken.d.ts +1 -1
- package/node_modules/@smithy/util-retry/dist-types/ts3.4/defaultRetryToken.d.ts +1 -1
- package/node_modules/@smithy/util-retry/package.json +3 -3
- package/node_modules/@smithy/util-stream/dist-cjs/checksum/createChecksumStream.js +1 -2
- package/node_modules/@smithy/util-stream/dist-cjs/createBufferedReadable.js +1 -2
- package/node_modules/@smithy/util-stream/dist-cjs/createBufferedReadableStream.js +6 -6
- package/node_modules/@smithy/util-stream/dist-cjs/headStream.browser.js +1 -2
- package/node_modules/@smithy/util-stream/dist-cjs/splitStream.browser.js +1 -2
- package/node_modules/@smithy/util-stream/dist-cjs/splitStream.js +1 -2
- package/node_modules/@smithy/util-stream/dist-types/ByteArrayCollector.d.ts +1 -1
- package/node_modules/@smithy/util-stream/dist-types/checksum/ChecksumStream.d.ts +0 -3
- package/node_modules/@smithy/util-stream/dist-types/checksum/createChecksumStream.d.ts +0 -1
- package/node_modules/@smithy/util-stream/dist-types/createBufferedReadable.d.ts +0 -1
- package/node_modules/@smithy/util-stream/dist-types/getAwsChunkedEncodingStream.d.ts +0 -1
- package/node_modules/@smithy/util-stream/dist-types/splitStream.d.ts +0 -1
- package/node_modules/@smithy/util-stream/dist-types/ts3.4/ByteArrayCollector.d.ts +1 -1
- package/node_modules/@smithy/util-stream/dist-types/ts3.4/checksum/ChecksumStream.d.ts +0 -1
- package/node_modules/@smithy/util-stream/dist-types/ts3.4/checksum/createChecksumStream.d.ts +0 -1
- package/node_modules/@smithy/util-stream/dist-types/ts3.4/createBufferedReadable.d.ts +0 -1
- package/node_modules/@smithy/util-stream/dist-types/ts3.4/getAwsChunkedEncodingStream.d.ts +0 -1
- package/node_modules/@smithy/util-stream/dist-types/ts3.4/splitStream.d.ts +0 -1
- package/node_modules/@smithy/util-stream/package.json +4 -4
- package/node_modules/@smithy/util-waiter/package.json +3 -3
- package/package.json +5 -5
- package/node_modules/@smithy/smithy-client/dist-cjs/date-utils.js +0 -1
- package/node_modules/@smithy/smithy-client/dist-cjs/lazy-json.js +0 -1
- package/node_modules/@smithy/smithy-client/dist-cjs/parse-utils.js +0 -1
- package/node_modules/@smithy/smithy-client/dist-cjs/quote-header.js +0 -1
- package/node_modules/@smithy/smithy-client/dist-cjs/split-every.js +0 -1
- package/node_modules/@smithy/smithy-client/dist-cjs/split-header.js +0 -1
- /package/node_modules/@smithy/{smithy-client/dist-es → core/dist-es/submodules/serde}/date-utils.js +0 -0
- /package/node_modules/@smithy/{smithy-client/dist-es → core/dist-es/submodules/serde}/lazy-json.js +0 -0
- /package/node_modules/@smithy/{smithy-client/dist-es → core/dist-es/submodules/serde}/parse-utils.js +0 -0
- /package/node_modules/@smithy/{smithy-client/dist-es → core/dist-es/submodules/serde}/quote-header.js +0 -0
- /package/node_modules/@smithy/{smithy-client/dist-es → core/dist-es/submodules/serde}/split-every.js +0 -0
- /package/node_modules/@smithy/{smithy-client/dist-es → core/dist-es/submodules/serde}/split-header.js +0 -0
- /package/node_modules/@smithy/{smithy-client/dist-types → core/dist-types/submodules/serde}/date-utils.d.ts +0 -0
- /package/node_modules/@smithy/{smithy-client/dist-types → core/dist-types/submodules/serde}/lazy-json.d.ts +0 -0
- /package/node_modules/@smithy/{smithy-client/dist-types → core/dist-types/submodules/serde}/parse-utils.d.ts +0 -0
- /package/node_modules/@smithy/{smithy-client/dist-types → core/dist-types/submodules/serde}/quote-header.d.ts +0 -0
- /package/node_modules/@smithy/{smithy-client/dist-types → core/dist-types/submodules/serde}/split-every.d.ts +0 -0
- /package/node_modules/@smithy/{smithy-client/dist-types → core/dist-types/submodules/serde}/split-header.d.ts +0 -0
- /package/node_modules/@smithy/{smithy-client/dist-types/ts3.4 → core/dist-types/ts3.4/submodules/serde}/date-utils.d.ts +0 -0
- /package/node_modules/@smithy/{smithy-client/dist-types/ts3.4 → core/dist-types/ts3.4/submodules/serde}/lazy-json.d.ts +0 -0
- /package/node_modules/@smithy/{smithy-client/dist-types/ts3.4 → core/dist-types/ts3.4/submodules/serde}/parse-utils.d.ts +0 -0
- /package/node_modules/@smithy/{smithy-client/dist-types/ts3.4 → core/dist-types/ts3.4/submodules/serde}/quote-header.d.ts +0 -0
- /package/node_modules/@smithy/{smithy-client/dist-types/ts3.4 → core/dist-types/ts3.4/submodules/serde}/split-every.d.ts +0 -0
- /package/node_modules/@smithy/{smithy-client/dist-types/ts3.4 → core/dist-types/ts3.4/submodules/serde}/split-header.d.ts +0 -0
@@ -15,6 +15,7 @@ var __copyProps = (to, from, except, desc) => {
|
|
15
15
|
}
|
16
16
|
return to;
|
17
17
|
};
|
18
|
+
var __reExport = (target, mod, secondTarget) => (__copyProps(target, mod, "default"), secondTarget && __copyProps(secondTarget, mod, "default"));
|
18
19
|
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
19
20
|
|
20
21
|
// src/index.ts
|
@@ -22,7 +23,6 @@ var src_exports = {};
|
|
22
23
|
__export(src_exports, {
|
23
24
|
Client: () => Client,
|
24
25
|
Command: () => Command,
|
25
|
-
LazyJsonString: () => LazyJsonString,
|
26
26
|
NoOpLogger: () => NoOpLogger,
|
27
27
|
SENSITIVE_STRING: () => SENSITIVE_STRING,
|
28
28
|
ServiceException: () => ServiceException,
|
@@ -30,54 +30,20 @@ __export(src_exports, {
|
|
30
30
|
collectBody: () => import_protocols.collectBody,
|
31
31
|
convertMap: () => convertMap,
|
32
32
|
createAggregatedClient: () => createAggregatedClient,
|
33
|
-
dateToUtcString: () => dateToUtcString,
|
34
33
|
decorateServiceException: () => decorateServiceException,
|
35
34
|
emitWarningIfUnsupportedVersion: () => emitWarningIfUnsupportedVersion,
|
36
|
-
expectBoolean: () => expectBoolean,
|
37
|
-
expectByte: () => expectByte,
|
38
|
-
expectFloat32: () => expectFloat32,
|
39
|
-
expectInt: () => expectInt,
|
40
|
-
expectInt32: () => expectInt32,
|
41
|
-
expectLong: () => expectLong,
|
42
|
-
expectNonNull: () => expectNonNull,
|
43
|
-
expectNumber: () => expectNumber,
|
44
|
-
expectObject: () => expectObject,
|
45
|
-
expectShort: () => expectShort,
|
46
|
-
expectString: () => expectString,
|
47
|
-
expectUnion: () => expectUnion,
|
48
35
|
extendedEncodeURIComponent: () => import_protocols.extendedEncodeURIComponent,
|
49
36
|
getArrayIfSingleItem: () => getArrayIfSingleItem,
|
50
37
|
getDefaultClientConfiguration: () => getDefaultClientConfiguration,
|
51
38
|
getDefaultExtensionConfiguration: () => getDefaultExtensionConfiguration,
|
52
39
|
getValueFromTextNode: () => getValueFromTextNode,
|
53
|
-
handleFloat: () => handleFloat,
|
54
40
|
isSerializableHeaderValue: () => isSerializableHeaderValue,
|
55
|
-
limitedParseDouble: () => limitedParseDouble,
|
56
|
-
limitedParseFloat: () => limitedParseFloat,
|
57
|
-
limitedParseFloat32: () => limitedParseFloat32,
|
58
41
|
loadConfigsForDefaultMode: () => loadConfigsForDefaultMode,
|
59
|
-
logger: () => logger,
|
60
42
|
map: () => map,
|
61
|
-
parseBoolean: () => parseBoolean,
|
62
|
-
parseEpochTimestamp: () => parseEpochTimestamp,
|
63
|
-
parseRfc3339DateTime: () => parseRfc3339DateTime,
|
64
|
-
parseRfc3339DateTimeWithOffset: () => parseRfc3339DateTimeWithOffset,
|
65
|
-
parseRfc7231DateTime: () => parseRfc7231DateTime,
|
66
|
-
quoteHeader: () => quoteHeader,
|
67
43
|
resolveDefaultRuntimeConfig: () => resolveDefaultRuntimeConfig,
|
68
44
|
resolvedPath: () => import_protocols.resolvedPath,
|
69
45
|
serializeDateTime: () => serializeDateTime,
|
70
46
|
serializeFloat: () => serializeFloat,
|
71
|
-
splitEvery: () => splitEvery,
|
72
|
-
splitHeader: () => splitHeader,
|
73
|
-
strictParseByte: () => strictParseByte,
|
74
|
-
strictParseDouble: () => strictParseDouble,
|
75
|
-
strictParseFloat: () => strictParseFloat,
|
76
|
-
strictParseFloat32: () => strictParseFloat32,
|
77
|
-
strictParseInt: () => strictParseInt,
|
78
|
-
strictParseInt32: () => strictParseInt32,
|
79
|
-
strictParseLong: () => strictParseLong,
|
80
|
-
strictParseShort: () => strictParseShort,
|
81
47
|
take: () => take,
|
82
48
|
throwDefaultError: () => throwDefaultError,
|
83
49
|
withBaseException: () => withBaseException
|
@@ -171,9 +137,9 @@ var Command = class {
|
|
171
137
|
this.middlewareStack.use(mw);
|
172
138
|
}
|
173
139
|
const stack = clientStack.concat(this.middlewareStack);
|
174
|
-
const { logger
|
140
|
+
const { logger } = configuration;
|
175
141
|
const handlerExecutionContext = {
|
176
|
-
logger
|
142
|
+
logger,
|
177
143
|
clientName,
|
178
144
|
commandName,
|
179
145
|
inputFilterSensitiveLog,
|
@@ -354,460 +320,6 @@ var createAggregatedClient = /* @__PURE__ */ __name((commands, Client2) => {
|
|
354
320
|
}
|
355
321
|
}, "createAggregatedClient");
|
356
322
|
|
357
|
-
// src/parse-utils.ts
|
358
|
-
var parseBoolean = /* @__PURE__ */ __name((value) => {
|
359
|
-
switch (value) {
|
360
|
-
case "true":
|
361
|
-
return true;
|
362
|
-
case "false":
|
363
|
-
return false;
|
364
|
-
default:
|
365
|
-
throw new Error(`Unable to parse boolean value "${value}"`);
|
366
|
-
}
|
367
|
-
}, "parseBoolean");
|
368
|
-
var expectBoolean = /* @__PURE__ */ __name((value) => {
|
369
|
-
if (value === null || value === void 0) {
|
370
|
-
return void 0;
|
371
|
-
}
|
372
|
-
if (typeof value === "number") {
|
373
|
-
if (value === 0 || value === 1) {
|
374
|
-
logger.warn(stackTraceWarning(`Expected boolean, got ${typeof value}: ${value}`));
|
375
|
-
}
|
376
|
-
if (value === 0) {
|
377
|
-
return false;
|
378
|
-
}
|
379
|
-
if (value === 1) {
|
380
|
-
return true;
|
381
|
-
}
|
382
|
-
}
|
383
|
-
if (typeof value === "string") {
|
384
|
-
const lower = value.toLowerCase();
|
385
|
-
if (lower === "false" || lower === "true") {
|
386
|
-
logger.warn(stackTraceWarning(`Expected boolean, got ${typeof value}: ${value}`));
|
387
|
-
}
|
388
|
-
if (lower === "false") {
|
389
|
-
return false;
|
390
|
-
}
|
391
|
-
if (lower === "true") {
|
392
|
-
return true;
|
393
|
-
}
|
394
|
-
}
|
395
|
-
if (typeof value === "boolean") {
|
396
|
-
return value;
|
397
|
-
}
|
398
|
-
throw new TypeError(`Expected boolean, got ${typeof value}: ${value}`);
|
399
|
-
}, "expectBoolean");
|
400
|
-
var expectNumber = /* @__PURE__ */ __name((value) => {
|
401
|
-
if (value === null || value === void 0) {
|
402
|
-
return void 0;
|
403
|
-
}
|
404
|
-
if (typeof value === "string") {
|
405
|
-
const parsed = parseFloat(value);
|
406
|
-
if (!Number.isNaN(parsed)) {
|
407
|
-
if (String(parsed) !== String(value)) {
|
408
|
-
logger.warn(stackTraceWarning(`Expected number but observed string: ${value}`));
|
409
|
-
}
|
410
|
-
return parsed;
|
411
|
-
}
|
412
|
-
}
|
413
|
-
if (typeof value === "number") {
|
414
|
-
return value;
|
415
|
-
}
|
416
|
-
throw new TypeError(`Expected number, got ${typeof value}: ${value}`);
|
417
|
-
}, "expectNumber");
|
418
|
-
var MAX_FLOAT = Math.ceil(2 ** 127 * (2 - 2 ** -23));
|
419
|
-
var expectFloat32 = /* @__PURE__ */ __name((value) => {
|
420
|
-
const expected = expectNumber(value);
|
421
|
-
if (expected !== void 0 && !Number.isNaN(expected) && expected !== Infinity && expected !== -Infinity) {
|
422
|
-
if (Math.abs(expected) > MAX_FLOAT) {
|
423
|
-
throw new TypeError(`Expected 32-bit float, got ${value}`);
|
424
|
-
}
|
425
|
-
}
|
426
|
-
return expected;
|
427
|
-
}, "expectFloat32");
|
428
|
-
var expectLong = /* @__PURE__ */ __name((value) => {
|
429
|
-
if (value === null || value === void 0) {
|
430
|
-
return void 0;
|
431
|
-
}
|
432
|
-
if (Number.isInteger(value) && !Number.isNaN(value)) {
|
433
|
-
return value;
|
434
|
-
}
|
435
|
-
throw new TypeError(`Expected integer, got ${typeof value}: ${value}`);
|
436
|
-
}, "expectLong");
|
437
|
-
var expectInt = expectLong;
|
438
|
-
var expectInt32 = /* @__PURE__ */ __name((value) => expectSizedInt(value, 32), "expectInt32");
|
439
|
-
var expectShort = /* @__PURE__ */ __name((value) => expectSizedInt(value, 16), "expectShort");
|
440
|
-
var expectByte = /* @__PURE__ */ __name((value) => expectSizedInt(value, 8), "expectByte");
|
441
|
-
var expectSizedInt = /* @__PURE__ */ __name((value, size) => {
|
442
|
-
const expected = expectLong(value);
|
443
|
-
if (expected !== void 0 && castInt(expected, size) !== expected) {
|
444
|
-
throw new TypeError(`Expected ${size}-bit integer, got ${value}`);
|
445
|
-
}
|
446
|
-
return expected;
|
447
|
-
}, "expectSizedInt");
|
448
|
-
var castInt = /* @__PURE__ */ __name((value, size) => {
|
449
|
-
switch (size) {
|
450
|
-
case 32:
|
451
|
-
return Int32Array.of(value)[0];
|
452
|
-
case 16:
|
453
|
-
return Int16Array.of(value)[0];
|
454
|
-
case 8:
|
455
|
-
return Int8Array.of(value)[0];
|
456
|
-
}
|
457
|
-
}, "castInt");
|
458
|
-
var expectNonNull = /* @__PURE__ */ __name((value, location) => {
|
459
|
-
if (value === null || value === void 0) {
|
460
|
-
if (location) {
|
461
|
-
throw new TypeError(`Expected a non-null value for ${location}`);
|
462
|
-
}
|
463
|
-
throw new TypeError("Expected a non-null value");
|
464
|
-
}
|
465
|
-
return value;
|
466
|
-
}, "expectNonNull");
|
467
|
-
var expectObject = /* @__PURE__ */ __name((value) => {
|
468
|
-
if (value === null || value === void 0) {
|
469
|
-
return void 0;
|
470
|
-
}
|
471
|
-
if (typeof value === "object" && !Array.isArray(value)) {
|
472
|
-
return value;
|
473
|
-
}
|
474
|
-
const receivedType = Array.isArray(value) ? "array" : typeof value;
|
475
|
-
throw new TypeError(`Expected object, got ${receivedType}: ${value}`);
|
476
|
-
}, "expectObject");
|
477
|
-
var expectString = /* @__PURE__ */ __name((value) => {
|
478
|
-
if (value === null || value === void 0) {
|
479
|
-
return void 0;
|
480
|
-
}
|
481
|
-
if (typeof value === "string") {
|
482
|
-
return value;
|
483
|
-
}
|
484
|
-
if (["boolean", "number", "bigint"].includes(typeof value)) {
|
485
|
-
logger.warn(stackTraceWarning(`Expected string, got ${typeof value}: ${value}`));
|
486
|
-
return String(value);
|
487
|
-
}
|
488
|
-
throw new TypeError(`Expected string, got ${typeof value}: ${value}`);
|
489
|
-
}, "expectString");
|
490
|
-
var expectUnion = /* @__PURE__ */ __name((value) => {
|
491
|
-
if (value === null || value === void 0) {
|
492
|
-
return void 0;
|
493
|
-
}
|
494
|
-
const asObject = expectObject(value);
|
495
|
-
const setKeys = Object.entries(asObject).filter(([, v]) => v != null).map(([k]) => k);
|
496
|
-
if (setKeys.length === 0) {
|
497
|
-
throw new TypeError(`Unions must have exactly one non-null member. None were found.`);
|
498
|
-
}
|
499
|
-
if (setKeys.length > 1) {
|
500
|
-
throw new TypeError(`Unions must have exactly one non-null member. Keys ${setKeys} were not null.`);
|
501
|
-
}
|
502
|
-
return asObject;
|
503
|
-
}, "expectUnion");
|
504
|
-
var strictParseDouble = /* @__PURE__ */ __name((value) => {
|
505
|
-
if (typeof value == "string") {
|
506
|
-
return expectNumber(parseNumber(value));
|
507
|
-
}
|
508
|
-
return expectNumber(value);
|
509
|
-
}, "strictParseDouble");
|
510
|
-
var strictParseFloat = strictParseDouble;
|
511
|
-
var strictParseFloat32 = /* @__PURE__ */ __name((value) => {
|
512
|
-
if (typeof value == "string") {
|
513
|
-
return expectFloat32(parseNumber(value));
|
514
|
-
}
|
515
|
-
return expectFloat32(value);
|
516
|
-
}, "strictParseFloat32");
|
517
|
-
var NUMBER_REGEX = /(-?(?:0|[1-9]\d*)(?:\.\d+)?(?:[eE][+-]?\d+)?)|(-?Infinity)|(NaN)/g;
|
518
|
-
var parseNumber = /* @__PURE__ */ __name((value) => {
|
519
|
-
const matches = value.match(NUMBER_REGEX);
|
520
|
-
if (matches === null || matches[0].length !== value.length) {
|
521
|
-
throw new TypeError(`Expected real number, got implicit NaN`);
|
522
|
-
}
|
523
|
-
return parseFloat(value);
|
524
|
-
}, "parseNumber");
|
525
|
-
var limitedParseDouble = /* @__PURE__ */ __name((value) => {
|
526
|
-
if (typeof value == "string") {
|
527
|
-
return parseFloatString(value);
|
528
|
-
}
|
529
|
-
return expectNumber(value);
|
530
|
-
}, "limitedParseDouble");
|
531
|
-
var handleFloat = limitedParseDouble;
|
532
|
-
var limitedParseFloat = limitedParseDouble;
|
533
|
-
var limitedParseFloat32 = /* @__PURE__ */ __name((value) => {
|
534
|
-
if (typeof value == "string") {
|
535
|
-
return parseFloatString(value);
|
536
|
-
}
|
537
|
-
return expectFloat32(value);
|
538
|
-
}, "limitedParseFloat32");
|
539
|
-
var parseFloatString = /* @__PURE__ */ __name((value) => {
|
540
|
-
switch (value) {
|
541
|
-
case "NaN":
|
542
|
-
return NaN;
|
543
|
-
case "Infinity":
|
544
|
-
return Infinity;
|
545
|
-
case "-Infinity":
|
546
|
-
return -Infinity;
|
547
|
-
default:
|
548
|
-
throw new Error(`Unable to parse float value: ${value}`);
|
549
|
-
}
|
550
|
-
}, "parseFloatString");
|
551
|
-
var strictParseLong = /* @__PURE__ */ __name((value) => {
|
552
|
-
if (typeof value === "string") {
|
553
|
-
return expectLong(parseNumber(value));
|
554
|
-
}
|
555
|
-
return expectLong(value);
|
556
|
-
}, "strictParseLong");
|
557
|
-
var strictParseInt = strictParseLong;
|
558
|
-
var strictParseInt32 = /* @__PURE__ */ __name((value) => {
|
559
|
-
if (typeof value === "string") {
|
560
|
-
return expectInt32(parseNumber(value));
|
561
|
-
}
|
562
|
-
return expectInt32(value);
|
563
|
-
}, "strictParseInt32");
|
564
|
-
var strictParseShort = /* @__PURE__ */ __name((value) => {
|
565
|
-
if (typeof value === "string") {
|
566
|
-
return expectShort(parseNumber(value));
|
567
|
-
}
|
568
|
-
return expectShort(value);
|
569
|
-
}, "strictParseShort");
|
570
|
-
var strictParseByte = /* @__PURE__ */ __name((value) => {
|
571
|
-
if (typeof value === "string") {
|
572
|
-
return expectByte(parseNumber(value));
|
573
|
-
}
|
574
|
-
return expectByte(value);
|
575
|
-
}, "strictParseByte");
|
576
|
-
var stackTraceWarning = /* @__PURE__ */ __name((message) => {
|
577
|
-
return String(new TypeError(message).stack || message).split("\n").slice(0, 5).filter((s) => !s.includes("stackTraceWarning")).join("\n");
|
578
|
-
}, "stackTraceWarning");
|
579
|
-
var logger = {
|
580
|
-
warn: console.warn
|
581
|
-
};
|
582
|
-
|
583
|
-
// src/date-utils.ts
|
584
|
-
var DAYS = ["Sun", "Mon", "Tue", "Wed", "Thu", "Fri", "Sat"];
|
585
|
-
var MONTHS = ["Jan", "Feb", "Mar", "Apr", "May", "Jun", "Jul", "Aug", "Sep", "Oct", "Nov", "Dec"];
|
586
|
-
function dateToUtcString(date) {
|
587
|
-
const year = date.getUTCFullYear();
|
588
|
-
const month = date.getUTCMonth();
|
589
|
-
const dayOfWeek = date.getUTCDay();
|
590
|
-
const dayOfMonthInt = date.getUTCDate();
|
591
|
-
const hoursInt = date.getUTCHours();
|
592
|
-
const minutesInt = date.getUTCMinutes();
|
593
|
-
const secondsInt = date.getUTCSeconds();
|
594
|
-
const dayOfMonthString = dayOfMonthInt < 10 ? `0${dayOfMonthInt}` : `${dayOfMonthInt}`;
|
595
|
-
const hoursString = hoursInt < 10 ? `0${hoursInt}` : `${hoursInt}`;
|
596
|
-
const minutesString = minutesInt < 10 ? `0${minutesInt}` : `${minutesInt}`;
|
597
|
-
const secondsString = secondsInt < 10 ? `0${secondsInt}` : `${secondsInt}`;
|
598
|
-
return `${DAYS[dayOfWeek]}, ${dayOfMonthString} ${MONTHS[month]} ${year} ${hoursString}:${minutesString}:${secondsString} GMT`;
|
599
|
-
}
|
600
|
-
__name(dateToUtcString, "dateToUtcString");
|
601
|
-
var RFC3339 = new RegExp(/^(\d{4})-(\d{2})-(\d{2})[tT](\d{2}):(\d{2}):(\d{2})(?:\.(\d+))?[zZ]$/);
|
602
|
-
var parseRfc3339DateTime = /* @__PURE__ */ __name((value) => {
|
603
|
-
if (value === null || value === void 0) {
|
604
|
-
return void 0;
|
605
|
-
}
|
606
|
-
if (typeof value !== "string") {
|
607
|
-
throw new TypeError("RFC-3339 date-times must be expressed as strings");
|
608
|
-
}
|
609
|
-
const match = RFC3339.exec(value);
|
610
|
-
if (!match) {
|
611
|
-
throw new TypeError("Invalid RFC-3339 date-time value");
|
612
|
-
}
|
613
|
-
const [_, yearStr, monthStr, dayStr, hours, minutes, seconds, fractionalMilliseconds] = match;
|
614
|
-
const year = strictParseShort(stripLeadingZeroes(yearStr));
|
615
|
-
const month = parseDateValue(monthStr, "month", 1, 12);
|
616
|
-
const day = parseDateValue(dayStr, "day", 1, 31);
|
617
|
-
return buildDate(year, month, day, { hours, minutes, seconds, fractionalMilliseconds });
|
618
|
-
}, "parseRfc3339DateTime");
|
619
|
-
var RFC3339_WITH_OFFSET = new RegExp(
|
620
|
-
/^(\d{4})-(\d{2})-(\d{2})[tT](\d{2}):(\d{2}):(\d{2})(?:\.(\d+))?(([-+]\d{2}\:\d{2})|[zZ])$/
|
621
|
-
);
|
622
|
-
var parseRfc3339DateTimeWithOffset = /* @__PURE__ */ __name((value) => {
|
623
|
-
if (value === null || value === void 0) {
|
624
|
-
return void 0;
|
625
|
-
}
|
626
|
-
if (typeof value !== "string") {
|
627
|
-
throw new TypeError("RFC-3339 date-times must be expressed as strings");
|
628
|
-
}
|
629
|
-
const match = RFC3339_WITH_OFFSET.exec(value);
|
630
|
-
if (!match) {
|
631
|
-
throw new TypeError("Invalid RFC-3339 date-time value");
|
632
|
-
}
|
633
|
-
const [_, yearStr, monthStr, dayStr, hours, minutes, seconds, fractionalMilliseconds, offsetStr] = match;
|
634
|
-
const year = strictParseShort(stripLeadingZeroes(yearStr));
|
635
|
-
const month = parseDateValue(monthStr, "month", 1, 12);
|
636
|
-
const day = parseDateValue(dayStr, "day", 1, 31);
|
637
|
-
const date = buildDate(year, month, day, { hours, minutes, seconds, fractionalMilliseconds });
|
638
|
-
if (offsetStr.toUpperCase() != "Z") {
|
639
|
-
date.setTime(date.getTime() - parseOffsetToMilliseconds(offsetStr));
|
640
|
-
}
|
641
|
-
return date;
|
642
|
-
}, "parseRfc3339DateTimeWithOffset");
|
643
|
-
var IMF_FIXDATE = new RegExp(
|
644
|
-
/^(?:Mon|Tue|Wed|Thu|Fri|Sat|Sun), (\d{2}) (Jan|Feb|Mar|Apr|May|Jun|Jul|Aug|Sep|Oct|Nov|Dec) (\d{4}) (\d{1,2}):(\d{2}):(\d{2})(?:\.(\d+))? GMT$/
|
645
|
-
);
|
646
|
-
var RFC_850_DATE = new RegExp(
|
647
|
-
/^(?:Monday|Tuesday|Wednesday|Thursday|Friday|Saturday|Sunday), (\d{2})-(Jan|Feb|Mar|Apr|May|Jun|Jul|Aug|Sep|Oct|Nov|Dec)-(\d{2}) (\d{1,2}):(\d{2}):(\d{2})(?:\.(\d+))? GMT$/
|
648
|
-
);
|
649
|
-
var ASC_TIME = new RegExp(
|
650
|
-
/^(?:Mon|Tue|Wed|Thu|Fri|Sat|Sun) (Jan|Feb|Mar|Apr|May|Jun|Jul|Aug|Sep|Oct|Nov|Dec) ( [1-9]|\d{2}) (\d{1,2}):(\d{2}):(\d{2})(?:\.(\d+))? (\d{4})$/
|
651
|
-
);
|
652
|
-
var parseRfc7231DateTime = /* @__PURE__ */ __name((value) => {
|
653
|
-
if (value === null || value === void 0) {
|
654
|
-
return void 0;
|
655
|
-
}
|
656
|
-
if (typeof value !== "string") {
|
657
|
-
throw new TypeError("RFC-7231 date-times must be expressed as strings");
|
658
|
-
}
|
659
|
-
let match = IMF_FIXDATE.exec(value);
|
660
|
-
if (match) {
|
661
|
-
const [_, dayStr, monthStr, yearStr, hours, minutes, seconds, fractionalMilliseconds] = match;
|
662
|
-
return buildDate(
|
663
|
-
strictParseShort(stripLeadingZeroes(yearStr)),
|
664
|
-
parseMonthByShortName(monthStr),
|
665
|
-
parseDateValue(dayStr, "day", 1, 31),
|
666
|
-
{ hours, minutes, seconds, fractionalMilliseconds }
|
667
|
-
);
|
668
|
-
}
|
669
|
-
match = RFC_850_DATE.exec(value);
|
670
|
-
if (match) {
|
671
|
-
const [_, dayStr, monthStr, yearStr, hours, minutes, seconds, fractionalMilliseconds] = match;
|
672
|
-
return adjustRfc850Year(
|
673
|
-
buildDate(parseTwoDigitYear(yearStr), parseMonthByShortName(monthStr), parseDateValue(dayStr, "day", 1, 31), {
|
674
|
-
hours,
|
675
|
-
minutes,
|
676
|
-
seconds,
|
677
|
-
fractionalMilliseconds
|
678
|
-
})
|
679
|
-
);
|
680
|
-
}
|
681
|
-
match = ASC_TIME.exec(value);
|
682
|
-
if (match) {
|
683
|
-
const [_, monthStr, dayStr, hours, minutes, seconds, fractionalMilliseconds, yearStr] = match;
|
684
|
-
return buildDate(
|
685
|
-
strictParseShort(stripLeadingZeroes(yearStr)),
|
686
|
-
parseMonthByShortName(monthStr),
|
687
|
-
parseDateValue(dayStr.trimLeft(), "day", 1, 31),
|
688
|
-
{ hours, minutes, seconds, fractionalMilliseconds }
|
689
|
-
);
|
690
|
-
}
|
691
|
-
throw new TypeError("Invalid RFC-7231 date-time value");
|
692
|
-
}, "parseRfc7231DateTime");
|
693
|
-
var parseEpochTimestamp = /* @__PURE__ */ __name((value) => {
|
694
|
-
if (value === null || value === void 0) {
|
695
|
-
return void 0;
|
696
|
-
}
|
697
|
-
let valueAsDouble;
|
698
|
-
if (typeof value === "number") {
|
699
|
-
valueAsDouble = value;
|
700
|
-
} else if (typeof value === "string") {
|
701
|
-
valueAsDouble = strictParseDouble(value);
|
702
|
-
} else if (typeof value === "object" && value.tag === 1) {
|
703
|
-
valueAsDouble = value.value;
|
704
|
-
} else {
|
705
|
-
throw new TypeError("Epoch timestamps must be expressed as floating point numbers or their string representation");
|
706
|
-
}
|
707
|
-
if (Number.isNaN(valueAsDouble) || valueAsDouble === Infinity || valueAsDouble === -Infinity) {
|
708
|
-
throw new TypeError("Epoch timestamps must be valid, non-Infinite, non-NaN numerics");
|
709
|
-
}
|
710
|
-
return new Date(Math.round(valueAsDouble * 1e3));
|
711
|
-
}, "parseEpochTimestamp");
|
712
|
-
var buildDate = /* @__PURE__ */ __name((year, month, day, time) => {
|
713
|
-
const adjustedMonth = month - 1;
|
714
|
-
validateDayOfMonth(year, adjustedMonth, day);
|
715
|
-
return new Date(
|
716
|
-
Date.UTC(
|
717
|
-
year,
|
718
|
-
adjustedMonth,
|
719
|
-
day,
|
720
|
-
parseDateValue(time.hours, "hour", 0, 23),
|
721
|
-
parseDateValue(time.minutes, "minute", 0, 59),
|
722
|
-
// seconds can go up to 60 for leap seconds
|
723
|
-
parseDateValue(time.seconds, "seconds", 0, 60),
|
724
|
-
parseMilliseconds(time.fractionalMilliseconds)
|
725
|
-
)
|
726
|
-
);
|
727
|
-
}, "buildDate");
|
728
|
-
var parseTwoDigitYear = /* @__PURE__ */ __name((value) => {
|
729
|
-
const thisYear = (/* @__PURE__ */ new Date()).getUTCFullYear();
|
730
|
-
const valueInThisCentury = Math.floor(thisYear / 100) * 100 + strictParseShort(stripLeadingZeroes(value));
|
731
|
-
if (valueInThisCentury < thisYear) {
|
732
|
-
return valueInThisCentury + 100;
|
733
|
-
}
|
734
|
-
return valueInThisCentury;
|
735
|
-
}, "parseTwoDigitYear");
|
736
|
-
var FIFTY_YEARS_IN_MILLIS = 50 * 365 * 24 * 60 * 60 * 1e3;
|
737
|
-
var adjustRfc850Year = /* @__PURE__ */ __name((input) => {
|
738
|
-
if (input.getTime() - (/* @__PURE__ */ new Date()).getTime() > FIFTY_YEARS_IN_MILLIS) {
|
739
|
-
return new Date(
|
740
|
-
Date.UTC(
|
741
|
-
input.getUTCFullYear() - 100,
|
742
|
-
input.getUTCMonth(),
|
743
|
-
input.getUTCDate(),
|
744
|
-
input.getUTCHours(),
|
745
|
-
input.getUTCMinutes(),
|
746
|
-
input.getUTCSeconds(),
|
747
|
-
input.getUTCMilliseconds()
|
748
|
-
)
|
749
|
-
);
|
750
|
-
}
|
751
|
-
return input;
|
752
|
-
}, "adjustRfc850Year");
|
753
|
-
var parseMonthByShortName = /* @__PURE__ */ __name((value) => {
|
754
|
-
const monthIdx = MONTHS.indexOf(value);
|
755
|
-
if (monthIdx < 0) {
|
756
|
-
throw new TypeError(`Invalid month: ${value}`);
|
757
|
-
}
|
758
|
-
return monthIdx + 1;
|
759
|
-
}, "parseMonthByShortName");
|
760
|
-
var DAYS_IN_MONTH = [31, 28, 31, 30, 31, 30, 31, 31, 30, 31, 30, 31];
|
761
|
-
var validateDayOfMonth = /* @__PURE__ */ __name((year, month, day) => {
|
762
|
-
let maxDays = DAYS_IN_MONTH[month];
|
763
|
-
if (month === 1 && isLeapYear(year)) {
|
764
|
-
maxDays = 29;
|
765
|
-
}
|
766
|
-
if (day > maxDays) {
|
767
|
-
throw new TypeError(`Invalid day for ${MONTHS[month]} in ${year}: ${day}`);
|
768
|
-
}
|
769
|
-
}, "validateDayOfMonth");
|
770
|
-
var isLeapYear = /* @__PURE__ */ __name((year) => {
|
771
|
-
return year % 4 === 0 && (year % 100 !== 0 || year % 400 === 0);
|
772
|
-
}, "isLeapYear");
|
773
|
-
var parseDateValue = /* @__PURE__ */ __name((value, type, lower, upper) => {
|
774
|
-
const dateVal = strictParseByte(stripLeadingZeroes(value));
|
775
|
-
if (dateVal < lower || dateVal > upper) {
|
776
|
-
throw new TypeError(`${type} must be between ${lower} and ${upper}, inclusive`);
|
777
|
-
}
|
778
|
-
return dateVal;
|
779
|
-
}, "parseDateValue");
|
780
|
-
var parseMilliseconds = /* @__PURE__ */ __name((value) => {
|
781
|
-
if (value === null || value === void 0) {
|
782
|
-
return 0;
|
783
|
-
}
|
784
|
-
return strictParseFloat32("0." + value) * 1e3;
|
785
|
-
}, "parseMilliseconds");
|
786
|
-
var parseOffsetToMilliseconds = /* @__PURE__ */ __name((value) => {
|
787
|
-
const directionStr = value[0];
|
788
|
-
let direction = 1;
|
789
|
-
if (directionStr == "+") {
|
790
|
-
direction = 1;
|
791
|
-
} else if (directionStr == "-") {
|
792
|
-
direction = -1;
|
793
|
-
} else {
|
794
|
-
throw new TypeError(`Offset direction, ${directionStr}, must be "+" or "-"`);
|
795
|
-
}
|
796
|
-
const hour = Number(value.substring(1, 3));
|
797
|
-
const minute = Number(value.substring(4, 6));
|
798
|
-
return direction * (hour * 60 + minute) * 60 * 1e3;
|
799
|
-
}, "parseOffsetToMilliseconds");
|
800
|
-
var stripLeadingZeroes = /* @__PURE__ */ __name((value) => {
|
801
|
-
let idx = 0;
|
802
|
-
while (idx < value.length - 1 && value.charAt(idx) === "0") {
|
803
|
-
idx++;
|
804
|
-
}
|
805
|
-
if (idx === 0) {
|
806
|
-
return value;
|
807
|
-
}
|
808
|
-
return value.slice(idx);
|
809
|
-
}, "stripLeadingZeroes");
|
810
|
-
|
811
323
|
// src/exceptions.ts
|
812
324
|
var ServiceException = class _ServiceException extends Error {
|
813
325
|
static {
|
@@ -1000,31 +512,6 @@ var isSerializableHeaderValue = /* @__PURE__ */ __name((value) => {
|
|
1000
512
|
return value != null;
|
1001
513
|
}, "isSerializableHeaderValue");
|
1002
514
|
|
1003
|
-
// src/lazy-json.ts
|
1004
|
-
var LazyJsonString = /* @__PURE__ */ __name(function LazyJsonString2(val) {
|
1005
|
-
const str = Object.assign(new String(val), {
|
1006
|
-
deserializeJSON() {
|
1007
|
-
return JSON.parse(String(val));
|
1008
|
-
},
|
1009
|
-
toString() {
|
1010
|
-
return String(val);
|
1011
|
-
},
|
1012
|
-
toJSON() {
|
1013
|
-
return String(val);
|
1014
|
-
}
|
1015
|
-
});
|
1016
|
-
return str;
|
1017
|
-
}, "LazyJsonString");
|
1018
|
-
LazyJsonString.from = (object) => {
|
1019
|
-
if (object && typeof object === "object" && (object instanceof LazyJsonString || "deserializeJSON" in object)) {
|
1020
|
-
return object;
|
1021
|
-
} else if (typeof object === "string" || Object.getPrototypeOf(object) === String.prototype) {
|
1022
|
-
return LazyJsonString(String(object));
|
1023
|
-
}
|
1024
|
-
return LazyJsonString(JSON.stringify(object));
|
1025
|
-
};
|
1026
|
-
LazyJsonString.fromObject = LazyJsonString.from;
|
1027
|
-
|
1028
515
|
// src/NoOpLogger.ts
|
1029
516
|
var NoOpLogger = class {
|
1030
517
|
static {
|
@@ -1137,15 +624,6 @@ var applyInstruction = /* @__PURE__ */ __name((target, source, instructions, tar
|
|
1137
624
|
var nonNullish = /* @__PURE__ */ __name((_) => _ != null, "nonNullish");
|
1138
625
|
var pass = /* @__PURE__ */ __name((_) => _, "pass");
|
1139
626
|
|
1140
|
-
// src/quote-header.ts
|
1141
|
-
function quoteHeader(part) {
|
1142
|
-
if (part.includes(",") || part.includes('"')) {
|
1143
|
-
part = `"${part.replace(/"/g, '\\"')}"`;
|
1144
|
-
}
|
1145
|
-
return part;
|
1146
|
-
}
|
1147
|
-
__name(quoteHeader, "quoteHeader");
|
1148
|
-
|
1149
627
|
// src/resolve-path.ts
|
1150
628
|
|
1151
629
|
|
@@ -1186,73 +664,8 @@ var _json = /* @__PURE__ */ __name((obj) => {
|
|
1186
664
|
return obj;
|
1187
665
|
}, "_json");
|
1188
666
|
|
1189
|
-
// src/
|
1190
|
-
|
1191
|
-
if (numDelimiters <= 0 || !Number.isInteger(numDelimiters)) {
|
1192
|
-
throw new Error("Invalid number of delimiters (" + numDelimiters + ") for splitEvery.");
|
1193
|
-
}
|
1194
|
-
const segments = value.split(delimiter);
|
1195
|
-
if (numDelimiters === 1) {
|
1196
|
-
return segments;
|
1197
|
-
}
|
1198
|
-
const compoundSegments = [];
|
1199
|
-
let currentSegment = "";
|
1200
|
-
for (let i = 0; i < segments.length; i++) {
|
1201
|
-
if (currentSegment === "") {
|
1202
|
-
currentSegment = segments[i];
|
1203
|
-
} else {
|
1204
|
-
currentSegment += delimiter + segments[i];
|
1205
|
-
}
|
1206
|
-
if ((i + 1) % numDelimiters === 0) {
|
1207
|
-
compoundSegments.push(currentSegment);
|
1208
|
-
currentSegment = "";
|
1209
|
-
}
|
1210
|
-
}
|
1211
|
-
if (currentSegment !== "") {
|
1212
|
-
compoundSegments.push(currentSegment);
|
1213
|
-
}
|
1214
|
-
return compoundSegments;
|
1215
|
-
}
|
1216
|
-
__name(splitEvery, "splitEvery");
|
1217
|
-
|
1218
|
-
// src/split-header.ts
|
1219
|
-
var splitHeader = /* @__PURE__ */ __name((value) => {
|
1220
|
-
const z = value.length;
|
1221
|
-
const values = [];
|
1222
|
-
let withinQuotes = false;
|
1223
|
-
let prevChar = void 0;
|
1224
|
-
let anchor = 0;
|
1225
|
-
for (let i = 0; i < z; ++i) {
|
1226
|
-
const char = value[i];
|
1227
|
-
switch (char) {
|
1228
|
-
case `"`:
|
1229
|
-
if (prevChar !== "\\") {
|
1230
|
-
withinQuotes = !withinQuotes;
|
1231
|
-
}
|
1232
|
-
break;
|
1233
|
-
case ",":
|
1234
|
-
if (!withinQuotes) {
|
1235
|
-
values.push(value.slice(anchor, i));
|
1236
|
-
anchor = i + 1;
|
1237
|
-
}
|
1238
|
-
break;
|
1239
|
-
default:
|
1240
|
-
}
|
1241
|
-
prevChar = char;
|
1242
|
-
}
|
1243
|
-
values.push(value.slice(anchor));
|
1244
|
-
return values.map((v) => {
|
1245
|
-
v = v.trim();
|
1246
|
-
const z2 = v.length;
|
1247
|
-
if (z2 < 2) {
|
1248
|
-
return v;
|
1249
|
-
}
|
1250
|
-
if (v[0] === `"` && v[z2 - 1] === `"`) {
|
1251
|
-
v = v.slice(1, z2 - 1);
|
1252
|
-
}
|
1253
|
-
return v.replace(/\\"/g, '"');
|
1254
|
-
});
|
1255
|
-
}, "splitHeader");
|
667
|
+
// src/index.ts
|
668
|
+
__reExport(src_exports, require("@smithy/core/serde"), module.exports);
|
1256
669
|
// Annotate the CommonJS export names for ESM import in node:
|
1257
670
|
|
1258
671
|
0 && (module.exports = {
|
@@ -1261,11 +674,6 @@ var splitHeader = /* @__PURE__ */ __name((value) => {
|
|
1261
674
|
Command,
|
1262
675
|
SENSITIVE_STRING,
|
1263
676
|
createAggregatedClient,
|
1264
|
-
parseRfc3339DateTime,
|
1265
|
-
parseRfc3339DateTimeWithOffset,
|
1266
|
-
parseRfc7231DateTime,
|
1267
|
-
parseEpochTimestamp,
|
1268
|
-
dateToUtcString,
|
1269
677
|
throwDefaultError,
|
1270
678
|
withBaseException,
|
1271
679
|
loadConfigsForDefaultMode,
|
@@ -1279,43 +687,50 @@ var splitHeader = /* @__PURE__ */ __name((value) => {
|
|
1279
687
|
getArrayIfSingleItem,
|
1280
688
|
getValueFromTextNode,
|
1281
689
|
isSerializableHeaderValue,
|
1282
|
-
LazyJsonString,
|
1283
690
|
NoOpLogger,
|
1284
691
|
convertMap,
|
1285
692
|
take,
|
1286
693
|
map,
|
1287
|
-
|
694
|
+
resolvedPath,
|
695
|
+
serializeFloat,
|
696
|
+
serializeDateTime,
|
697
|
+
_json,
|
698
|
+
LazyJsonString,
|
699
|
+
NumericValue,
|
700
|
+
dateToUtcString,
|
1288
701
|
expectBoolean,
|
1289
|
-
|
702
|
+
expectByte,
|
1290
703
|
expectFloat32,
|
1291
|
-
expectLong,
|
1292
704
|
expectInt,
|
1293
705
|
expectInt32,
|
1294
|
-
|
1295
|
-
expectByte,
|
706
|
+
expectLong,
|
1296
707
|
expectNonNull,
|
708
|
+
expectNumber,
|
1297
709
|
expectObject,
|
710
|
+
expectShort,
|
1298
711
|
expectString,
|
1299
712
|
expectUnion,
|
1300
|
-
strictParseDouble,
|
1301
|
-
strictParseFloat,
|
1302
|
-
strictParseFloat32,
|
1303
|
-
limitedParseDouble,
|
1304
713
|
handleFloat,
|
714
|
+
limitedParseDouble,
|
1305
715
|
limitedParseFloat,
|
1306
716
|
limitedParseFloat32,
|
1307
|
-
strictParseLong,
|
1308
|
-
strictParseInt,
|
1309
|
-
strictParseInt32,
|
1310
|
-
strictParseShort,
|
1311
|
-
strictParseByte,
|
1312
717
|
logger,
|
718
|
+
nv,
|
719
|
+
parseBoolean,
|
720
|
+
parseEpochTimestamp,
|
721
|
+
parseRfc3339DateTime,
|
722
|
+
parseRfc3339DateTimeWithOffset,
|
723
|
+
parseRfc7231DateTime,
|
1313
724
|
quoteHeader,
|
1314
|
-
resolvedPath,
|
1315
|
-
serializeFloat,
|
1316
|
-
serializeDateTime,
|
1317
|
-
_json,
|
1318
725
|
splitEvery,
|
1319
|
-
splitHeader
|
726
|
+
splitHeader,
|
727
|
+
strictParseByte,
|
728
|
+
strictParseDouble,
|
729
|
+
strictParseFloat,
|
730
|
+
strictParseFloat32,
|
731
|
+
strictParseInt,
|
732
|
+
strictParseInt32,
|
733
|
+
strictParseLong,
|
734
|
+
strictParseShort
|
1320
735
|
});
|
1321
736
|
|