@cdk8s/awscdk-resolver 0.0.643 → 0.0.644
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/dist-cjs/index.js +2 -1
- package/node_modules/@aws-sdk/client-cloudformation/dist-es/models/enums.js +1 -0
- package/node_modules/@aws-sdk/client-cloudformation/dist-types/commands/DescribeChangeSetCommand.d.ts +1 -1
- package/node_modules/@aws-sdk/client-cloudformation/dist-types/models/enums.d.ts +1 -0
- package/node_modules/@aws-sdk/client-cloudformation/dist-types/models/models_0.d.ts +7 -3
- package/node_modules/@aws-sdk/client-cloudformation/dist-types/ts3.4/models/enums.d.ts +1 -0
- package/node_modules/@aws-sdk/client-cloudformation/package.json +6 -6
- package/node_modules/@aws-sdk/core/dist-cjs/submodules/protocols/index.js +856 -57
- package/node_modules/@aws-sdk/core/dist-es/submodules/protocols/index.js +8 -5
- package/node_modules/@aws-sdk/core/dist-es/submodules/protocols/json/AwsJsonRpcProtocol.js +1 -1
- package/node_modules/@aws-sdk/core/dist-es/submodules/protocols/json/AwsRestJsonProtocol.js +1 -1
- package/node_modules/@aws-sdk/core/dist-es/submodules/protocols/json/JsonSettings.js +1 -0
- package/node_modules/@aws-sdk/core/dist-es/submodules/protocols/json/{JsonCodec.js → codec-v1/JsonCodec.js} +1 -1
- package/node_modules/@aws-sdk/core/dist-es/submodules/protocols/json/codec-v1/JsonSettings.js +1 -0
- package/node_modules/@aws-sdk/core/dist-es/submodules/protocols/json/{JsonShapeDeserializer.js → codec-v1/JsonShapeDeserializer.js} +6 -6
- package/node_modules/@aws-sdk/core/dist-es/submodules/protocols/json/{JsonShapeSerializer.js → codec-v1/JsonShapeSerializer.js} +3 -3
- package/node_modules/@aws-sdk/core/dist-es/submodules/protocols/json/codec-v2/JsonBytesStringAdapter.js +103 -0
- package/node_modules/@aws-sdk/core/dist-es/submodules/protocols/json/codec-v2/JsonCodec2.js +20 -0
- package/node_modules/@aws-sdk/core/dist-es/submodules/protocols/json/{experimental/BufferJsonShapeDeserializer.js → codec-v2/JsonShapeDeserializer2.js} +38 -18
- package/node_modules/@aws-sdk/core/dist-es/submodules/protocols/json/{experimental/ByteJsonShapeSerializer.js → codec-v2/JsonShapeSerializer2.js} +66 -60
- package/node_modules/@aws-sdk/core/dist-types/submodules/protocols/index.d.ts +9 -6
- package/node_modules/@aws-sdk/core/dist-types/submodules/protocols/json/AwsJson1_0Protocol.d.ts +1 -1
- package/node_modules/@aws-sdk/core/dist-types/submodules/protocols/json/AwsJson1_1Protocol.d.ts +1 -1
- package/node_modules/@aws-sdk/core/dist-types/submodules/protocols/json/AwsJsonRpcProtocol.d.ts +1 -1
- package/node_modules/@aws-sdk/core/dist-types/submodules/protocols/json/AwsRestJsonProtocol.d.ts +1 -1
- package/node_modules/@aws-sdk/core/dist-types/submodules/protocols/json/JsonSettings.d.ts +7 -0
- package/node_modules/@aws-sdk/core/dist-types/submodules/protocols/json/{JsonCodec.d.ts → codec-v1/JsonCodec.d.ts} +4 -8
- package/node_modules/@aws-sdk/core/dist-types/submodules/protocols/json/codec-v1/JsonSettings.d.ts +7 -0
- package/node_modules/@aws-sdk/core/dist-types/submodules/protocols/json/{JsonShapeDeserializer.d.ts → codec-v1/JsonShapeDeserializer.d.ts} +3 -2
- package/node_modules/@aws-sdk/core/dist-types/submodules/protocols/json/{JsonShapeSerializer.d.ts → codec-v1/JsonShapeSerializer.d.ts} +3 -2
- package/node_modules/@aws-sdk/core/dist-types/submodules/protocols/json/codec-v2/JsonBytesStringAdapter.d.ts +51 -0
- package/node_modules/@aws-sdk/core/dist-types/submodules/protocols/json/codec-v2/JsonCodec2.d.ts +13 -0
- package/node_modules/@aws-sdk/core/dist-types/submodules/protocols/json/{experimental/BufferJsonShapeDeserializer.d.ts → codec-v2/JsonShapeDeserializer2.d.ts} +4 -3
- package/node_modules/@aws-sdk/core/dist-types/submodules/protocols/json/{experimental/ByteJsonShapeSerializer.d.ts → codec-v2/JsonShapeSerializer2.d.ts} +19 -16
- package/node_modules/@aws-sdk/core/dist-types/ts3.4/api-extractor-type-index.d.ts +4 -7
- package/node_modules/@aws-sdk/core/dist-types/ts3.4/index.d.ts +61 -21
- package/node_modules/@aws-sdk/core/dist-types/ts3.4/submodules/account-id-endpoint/AccountIdEndpointModeConfigResolver.d.ts +13 -27
- package/node_modules/@aws-sdk/core/dist-types/ts3.4/submodules/account-id-endpoint/AccountIdEndpointModeConstants.d.ts +4 -16
- package/node_modules/@aws-sdk/core/dist-types/ts3.4/submodules/account-id-endpoint/NodeAccountIdEndpointModeConfigOptions.d.ts +5 -14
- package/node_modules/@aws-sdk/core/dist-types/ts3.4/submodules/account-id-endpoint/index.d.ts +16 -5
- package/node_modules/@aws-sdk/core/dist-types/ts3.4/submodules/client/emitWarningIfUnsupportedVersion.d.ts +4 -11
- package/node_modules/@aws-sdk/core/dist-types/ts3.4/submodules/client/index.browser.d.ts +107 -47
- package/node_modules/@aws-sdk/core/dist-types/ts3.4/submodules/client/index.d.ts +112 -39
- package/node_modules/@aws-sdk/core/dist-types/ts3.4/submodules/client/index.native.d.ts +107 -48
- package/node_modules/@aws-sdk/core/dist-types/ts3.4/submodules/client/longPollMiddleware.d.ts +13 -14
- package/node_modules/@aws-sdk/core/dist-types/ts3.4/submodules/client/middleware-host-header/hostHeaderMiddleware.d.ts +25 -35
- package/node_modules/@aws-sdk/core/dist-types/ts3.4/submodules/client/middleware-logger/loggerMiddleware.d.ts +14 -4
- package/node_modules/@aws-sdk/core/dist-types/ts3.4/submodules/client/middleware-recursion-detection/configuration.d.ts +2 -6
- package/node_modules/@aws-sdk/core/dist-types/ts3.4/submodules/client/middleware-recursion-detection/getRecursionDetectionPlugin.browser.d.ts +2 -5
- package/node_modules/@aws-sdk/core/dist-types/ts3.4/submodules/client/middleware-recursion-detection/getRecursionDetectionPlugin.d.ts +2 -5
- package/node_modules/@aws-sdk/core/dist-types/ts3.4/submodules/client/middleware-recursion-detection/recursionDetectionMiddleware.browser.d.ts +2 -6
- package/node_modules/@aws-sdk/core/dist-types/ts3.4/submodules/client/middleware-recursion-detection/recursionDetectionMiddleware.d.ts +2 -10
- package/node_modules/@aws-sdk/core/dist-types/ts3.4/submodules/client/middleware-recursion-detection/recursionDetectionMiddleware.native.d.ts +2 -6
- package/node_modules/@aws-sdk/core/dist-types/ts3.4/submodules/client/middleware-user-agent/check-features.d.ts +16 -20
- package/node_modules/@aws-sdk/core/dist-types/ts3.4/submodules/client/middleware-user-agent/configurations.d.ts +21 -44
- package/node_modules/@aws-sdk/core/dist-types/ts3.4/submodules/client/middleware-user-agent/constants.d.ts +7 -7
- package/node_modules/@aws-sdk/core/dist-types/ts3.4/submodules/client/middleware-user-agent/encode-features.d.ts +2 -5
- package/node_modules/@aws-sdk/core/dist-types/ts3.4/submodules/client/middleware-user-agent/user-agent-middleware.d.ts +18 -18
- package/node_modules/@aws-sdk/core/dist-types/ts3.4/submodules/client/region-config-resolver/awsRegionConfig.d.ts +8 -11
- package/node_modules/@aws-sdk/core/dist-types/ts3.4/submodules/client/region-config-resolver/extensions.d.ts +14 -16
- package/node_modules/@aws-sdk/core/dist-types/ts3.4/submodules/client/region-config-resolver/stsRegionDefaultResolver.browser.d.ts +1 -4
- package/node_modules/@aws-sdk/core/dist-types/ts3.4/submodules/client/region-config-resolver/stsRegionDefaultResolver.d.ts +7 -14
- package/node_modules/@aws-sdk/core/dist-types/ts3.4/submodules/client/region-config-resolver/stsRegionDefaultResolver.native.d.ts +1 -4
- package/node_modules/@aws-sdk/core/dist-types/ts3.4/submodules/client/setCredentialFeature.d.ts +6 -7
- package/node_modules/@aws-sdk/core/dist-types/ts3.4/submodules/client/setFeature.d.ts +6 -12
- package/node_modules/@aws-sdk/core/dist-types/ts3.4/submodules/client/setTokenFeature.d.ts +6 -7
- package/node_modules/@aws-sdk/core/dist-types/ts3.4/submodules/client/util-endpoints/aws.d.ts +2 -2
- package/node_modules/@aws-sdk/core/dist-types/ts3.4/submodules/client/util-endpoints/lib/aws/isVirtualHostableS3Bucket.d.ts +4 -5
- package/node_modules/@aws-sdk/core/dist-types/ts3.4/submodules/client/util-endpoints/lib/aws/parseArn.d.ts +2 -7
- package/node_modules/@aws-sdk/core/dist-types/ts3.4/submodules/client/util-endpoints/lib/aws/partition.d.ts +28 -38
- package/node_modules/@aws-sdk/core/dist-types/ts3.4/submodules/client/util-endpoints/lib/aws/partitions.d.ts +647 -638
- package/node_modules/@aws-sdk/core/dist-types/ts3.4/submodules/client/util-endpoints/lib/isIpAddress.d.ts +1 -1
- package/node_modules/@aws-sdk/core/dist-types/ts3.4/submodules/client/util-endpoints/resolveDefaultAwsRegionalEndpointsConfig.d.ts +29 -56
- package/node_modules/@aws-sdk/core/dist-types/ts3.4/submodules/client/util-endpoints/resolveEndpoint.d.ts +1 -1
- package/node_modules/@aws-sdk/core/dist-types/ts3.4/submodules/client/util-endpoints/types/EndpointError.d.ts +1 -1
- package/node_modules/@aws-sdk/core/dist-types/ts3.4/submodules/client/util-endpoints/types/EndpointRuleObject.d.ts +6 -1
- package/node_modules/@aws-sdk/core/dist-types/ts3.4/submodules/client/util-endpoints/types/ErrorRuleObject.d.ts +1 -1
- package/node_modules/@aws-sdk/core/dist-types/ts3.4/submodules/client/util-endpoints/types/RuleSetObject.d.ts +1 -1
- package/node_modules/@aws-sdk/core/dist-types/ts3.4/submodules/client/util-endpoints/types/TreeRuleObject.d.ts +1 -1
- package/node_modules/@aws-sdk/core/dist-types/ts3.4/submodules/client/util-endpoints/types/shared.d.ts +12 -1
- package/node_modules/@aws-sdk/core/dist-types/ts3.4/submodules/client/util-user-agent-browser/configurations.d.ts +4 -7
- package/node_modules/@aws-sdk/core/dist-types/ts3.4/submodules/client/util-user-agent-browser/createUserAgentStringParsingProvider.d.ts +7 -14
- package/node_modules/@aws-sdk/core/dist-types/ts3.4/submodules/client/util-user-agent-browser/defaultUserAgent.browser.d.ts +7 -2
- package/node_modules/@aws-sdk/core/dist-types/ts3.4/submodules/client/util-user-agent-browser/defaultUserAgent.d.ts +18 -27
- package/node_modules/@aws-sdk/core/dist-types/ts3.4/submodules/client/util-user-agent-browser/defaultUserAgent.native.d.ts +13 -18
- package/node_modules/@aws-sdk/core/dist-types/ts3.4/submodules/client/util-user-agent-node/crt-availability.d.ts +3 -8
- package/node_modules/@aws-sdk/core/dist-types/ts3.4/submodules/client/util-user-agent-node/defaultUserAgent.d.ts +17 -28
- package/node_modules/@aws-sdk/core/dist-types/ts3.4/submodules/client/util-user-agent-node/getRuntimeUserAgentPair.d.ts +2 -6
- package/node_modules/@aws-sdk/core/dist-types/ts3.4/submodules/client/util-user-agent-node/is-crt-available.d.ts +2 -5
- package/node_modules/@aws-sdk/core/dist-types/ts3.4/submodules/client/util-user-agent-node/nodeAppIdConfigOptions.d.ts +4 -13
- package/node_modules/@aws-sdk/core/dist-types/ts3.4/submodules/httpAuthSchemes/aws_sdk/AwsSdkSigV4ASigner.d.ts +9 -10
- package/node_modules/@aws-sdk/core/dist-types/ts3.4/submodules/httpAuthSchemes/aws_sdk/AwsSdkSigV4Signer.d.ts +39 -44
- package/node_modules/@aws-sdk/core/dist-types/ts3.4/submodules/httpAuthSchemes/aws_sdk/NODE_AUTH_SCHEME_PREFERENCE_OPTIONS.d.ts +2 -5
- package/node_modules/@aws-sdk/core/dist-types/ts3.4/submodules/httpAuthSchemes/aws_sdk/clock-skew-defaults.browser.d.ts +1 -6
- package/node_modules/@aws-sdk/core/dist-types/ts3.4/submodules/httpAuthSchemes/aws_sdk/clock-skew-defaults.d.ts +1 -7
- package/node_modules/@aws-sdk/core/dist-types/ts3.4/submodules/httpAuthSchemes/aws_sdk/clock-skew-node-config.d.ts +4 -13
- package/node_modules/@aws-sdk/core/dist-types/ts3.4/submodules/httpAuthSchemes/aws_sdk/index.d.ts +23 -7
- package/node_modules/@aws-sdk/core/dist-types/ts3.4/submodules/httpAuthSchemes/aws_sdk/resolveAwsSdkSigV4AConfig.d.ts +13 -38
- package/node_modules/@aws-sdk/core/dist-types/ts3.4/submodules/httpAuthSchemes/aws_sdk/resolveAwsSdkSigV4Config.d.ts +57 -133
- package/node_modules/@aws-sdk/core/dist-types/ts3.4/submodules/httpAuthSchemes/index.browser.d.ts +32 -11
- package/node_modules/@aws-sdk/core/dist-types/ts3.4/submodules/httpAuthSchemes/index.d.ts +32 -9
- package/node_modules/@aws-sdk/core/dist-types/ts3.4/submodules/httpAuthSchemes/utils/getArrayForCommaSeparatedString.d.ts +1 -8
- package/node_modules/@aws-sdk/core/dist-types/ts3.4/submodules/httpAuthSchemes/utils/getBearerTokenEnvKey.d.ts +1 -6
- package/node_modules/@aws-sdk/core/dist-types/ts3.4/submodules/httpAuthSchemes/utils/getDateHeader.d.ts +2 -8
- package/node_modules/@aws-sdk/core/dist-types/ts3.4/submodules/httpAuthSchemes/utils/getSkewCorrectedDate.d.ts +1 -8
- package/node_modules/@aws-sdk/core/dist-types/ts3.4/submodules/httpAuthSchemes/utils/getUpdatedSystemClockOffset.d.ts +6 -26
- package/node_modules/@aws-sdk/core/dist-types/ts3.4/submodules/httpAuthSchemes/utils/index.d.ts +4 -4
- package/node_modules/@aws-sdk/core/dist-types/ts3.4/submodules/httpAuthSchemes/utils/isClockSkewed.d.ts +1 -9
- package/node_modules/@aws-sdk/core/dist-types/ts3.4/submodules/protocols/ConfigurableSerdeContext.d.ts +5 -8
- package/node_modules/@aws-sdk/core/dist-types/ts3.4/submodules/protocols/ProtocolLib.d.ts +40 -74
- package/node_modules/@aws-sdk/core/dist-types/ts3.4/submodules/protocols/UnionSerde.d.ts +9 -24
- package/node_modules/@aws-sdk/core/dist-types/ts3.4/submodules/protocols/cbor/AwsSmithyRpcV2CborProtocol.d.ts +36 -25
- package/node_modules/@aws-sdk/core/dist-types/ts3.4/submodules/protocols/coercing-serializers.d.ts +3 -18
- package/node_modules/@aws-sdk/core/dist-types/ts3.4/submodules/protocols/common.d.ts +5 -2
- package/node_modules/@aws-sdk/core/dist-types/ts3.4/submodules/protocols/index.d.ts +30 -22
- package/node_modules/@aws-sdk/core/dist-types/ts3.4/submodules/protocols/json/AwsJson1_0Protocol.d.ts +21 -22
- package/node_modules/@aws-sdk/core/dist-types/ts3.4/submodules/protocols/json/AwsJson1_1Protocol.d.ts +21 -22
- package/node_modules/@aws-sdk/core/dist-types/ts3.4/submodules/protocols/json/AwsJsonRpcProtocol.d.ts +49 -29
- package/node_modules/@aws-sdk/core/dist-types/ts3.4/submodules/protocols/json/AwsRestJsonProtocol.d.ts +49 -36
- package/node_modules/@aws-sdk/core/dist-types/ts3.4/submodules/protocols/json/JsonSettings.d.ts +4 -0
- package/node_modules/@aws-sdk/core/dist-types/ts3.4/submodules/protocols/json/awsExpectUnion.d.ts +1 -7
- package/node_modules/@aws-sdk/core/dist-types/ts3.4/submodules/protocols/json/codec-v1/JsonCodec.d.ts +11 -0
- package/node_modules/@aws-sdk/core/dist-types/ts3.4/submodules/protocols/json/codec-v1/JsonSettings.d.ts +4 -0
- package/node_modules/@aws-sdk/core/dist-types/ts3.4/submodules/protocols/json/codec-v1/JsonShapeDeserializer.d.ts +13 -0
- package/node_modules/@aws-sdk/core/dist-types/ts3.4/submodules/protocols/json/codec-v1/JsonShapeSerializer.d.ts +18 -0
- package/node_modules/@aws-sdk/core/dist-types/ts3.4/submodules/protocols/json/codec-v2/JsonBytesStringAdapter.d.ts +27 -0
- package/node_modules/@aws-sdk/core/dist-types/ts3.4/submodules/protocols/json/codec-v2/JsonCodec2.d.ts +9 -0
- package/node_modules/@aws-sdk/core/dist-types/ts3.4/submodules/protocols/json/codec-v2/JsonShapeDeserializer2.d.ts +15 -0
- package/node_modules/@aws-sdk/core/dist-types/ts3.4/submodules/protocols/json/codec-v2/JsonShapeSerializer2.d.ts +39 -0
- package/node_modules/@aws-sdk/core/dist-types/ts3.4/submodules/protocols/json/detectBufferParsing.d.ts +1 -1
- package/node_modules/@aws-sdk/core/dist-types/ts3.4/submodules/protocols/json/jsonReplacer.d.ts +7 -21
- package/node_modules/@aws-sdk/core/dist-types/ts3.4/submodules/protocols/json/jsonReviver.d.ts +7 -15
- package/node_modules/@aws-sdk/core/dist-types/ts3.4/submodules/protocols/json/needsReviver.d.ts +2 -11
- package/node_modules/@aws-sdk/core/dist-types/ts3.4/submodules/protocols/json/parseJsonBody.d.ts +14 -22
- package/node_modules/@aws-sdk/core/dist-types/ts3.4/submodules/protocols/query/AwsEc2QueryProtocol.d.ts +18 -27
- package/node_modules/@aws-sdk/core/dist-types/ts3.4/submodules/protocols/query/AwsQueryProtocol.d.ts +57 -49
- package/node_modules/@aws-sdk/core/dist-types/ts3.4/submodules/protocols/query/QuerySerializerSettings.d.ts +7 -13
- package/node_modules/@aws-sdk/core/dist-types/ts3.4/submodules/protocols/query/QueryShapeSerializer.d.ts +21 -16
- package/node_modules/@aws-sdk/core/dist-types/ts3.4/submodules/protocols/writeKey.d.ts +1 -4
- package/node_modules/@aws-sdk/core/dist-types/ts3.4/submodules/protocols/xml/AwsRestXmlProtocol.d.ts +47 -31
- package/node_modules/@aws-sdk/core/dist-types/ts3.4/submodules/protocols/xml/XmlCodec.d.ts +17 -14
- package/node_modules/@aws-sdk/core/dist-types/ts3.4/submodules/protocols/xml/XmlShapeDeserializer.d.ts +15 -20
- package/node_modules/@aws-sdk/core/dist-types/ts3.4/submodules/protocols/xml/XmlShapeSerializer.d.ts +21 -21
- package/node_modules/@aws-sdk/core/dist-types/ts3.4/submodules/protocols/xml/parseXmlBody.d.ts +4 -13
- package/node_modules/@aws-sdk/core/dist-types/ts3.4/submodules/protocols/xml/simpleFormatXml.d.ts +1 -6
- package/node_modules/@aws-sdk/core/dist-types/ts3.4/submodules/util/index.d.ts +3 -3
- package/node_modules/@aws-sdk/core/dist-types/ts3.4/submodules/util/util-arn-parser/arn.d.ts +14 -32
- package/node_modules/@aws-sdk/core/dist-types/ts3.4/submodules/util/util-format-url/format-url.d.ts +4 -2
- package/node_modules/@aws-sdk/core/package.json +3 -3
- package/node_modules/@aws-sdk/credential-provider-env/package.json +3 -3
- package/node_modules/@aws-sdk/credential-provider-http/package.json +5 -5
- package/node_modules/@aws-sdk/credential-provider-ini/package.json +11 -11
- package/node_modules/@aws-sdk/credential-provider-login/package.json +4 -4
- package/node_modules/@aws-sdk/credential-provider-node/package.json +9 -9
- package/node_modules/@aws-sdk/credential-provider-process/package.json +3 -3
- package/node_modules/@aws-sdk/credential-provider-sso/package.json +5 -5
- package/node_modules/@aws-sdk/credential-provider-web-identity/package.json +4 -4
- package/node_modules/@aws-sdk/nested-clients/dist-cjs/submodules/cognito-identity/index.js +1 -1
- package/node_modules/@aws-sdk/nested-clients/dist-cjs/submodules/signin/index.js +1 -1
- package/node_modules/@aws-sdk/nested-clients/dist-cjs/submodules/sso/index.js +1 -1
- package/node_modules/@aws-sdk/nested-clients/dist-cjs/submodules/sso-oidc/index.js +1 -1
- package/node_modules/@aws-sdk/nested-clients/dist-cjs/submodules/sts/index.js +1 -1
- package/node_modules/@aws-sdk/nested-clients/package.json +6 -6
- package/node_modules/@aws-sdk/signature-v4-multi-region/package.json +2 -2
- package/node_modules/@aws-sdk/token-providers/package.json +4 -4
- package/node_modules/@smithy/core/dist-cjs/submodules/cbor/index.js +1561 -337
- package/node_modules/@smithy/core/dist-es/submodules/cbor/CborCodec.js +4 -205
- package/node_modules/@smithy/core/dist-es/submodules/cbor/cbor-encode.js +1 -1
- package/node_modules/@smithy/core/dist-es/submodules/cbor/codec-v1/CborShapeDeserializer.js +113 -0
- package/node_modules/@smithy/core/dist-es/submodules/cbor/codec-v1/CborShapeSerializer.js +103 -0
- package/node_modules/@smithy/core/dist-es/submodules/cbor/codec-v2/CborShapeDeserializer2.js +621 -0
- package/node_modules/@smithy/core/dist-es/submodules/cbor/codec-v2/CborShapeSerializer2.js +602 -0
- package/node_modules/@smithy/core/dist-es/submodules/cbor/index.js +5 -1
- package/node_modules/@smithy/core/dist-types/submodules/cbor/CborCodec.d.ts +5 -27
- package/node_modules/@smithy/core/dist-types/submodules/cbor/SmithyRpcV2CborProtocol.d.ts +2 -2
- package/node_modules/@smithy/core/dist-types/submodules/cbor/codec-v1/CborShapeDeserializer.d.ts +13 -0
- package/node_modules/@smithy/core/dist-types/submodules/cbor/codec-v1/CborShapeSerializer.d.ts +15 -0
- package/node_modules/@smithy/core/dist-types/submodules/cbor/codec-v2/CborShapeDeserializer2.d.ts +18 -0
- package/node_modules/@smithy/core/dist-types/submodules/cbor/codec-v2/CborShapeSerializer2.d.ts +35 -0
- package/node_modules/@smithy/core/dist-types/submodules/cbor/index.d.ts +5 -1
- package/node_modules/@smithy/core/dist-types/ts3.4/submodules/cbor/CborCodec.d.ts +5 -27
- package/node_modules/@smithy/core/dist-types/ts3.4/submodules/cbor/SmithyRpcV2CborProtocol.d.ts +2 -2
- package/node_modules/@smithy/core/dist-types/ts3.4/submodules/cbor/codec-v1/CborShapeDeserializer.d.ts +13 -0
- package/node_modules/@smithy/core/dist-types/ts3.4/submodules/cbor/codec-v1/CborShapeSerializer.d.ts +15 -0
- package/node_modules/@smithy/core/dist-types/ts3.4/submodules/cbor/codec-v2/CborShapeDeserializer2.d.ts +18 -0
- package/node_modules/@smithy/core/dist-types/ts3.4/submodules/cbor/codec-v2/CborShapeSerializer2.d.ts +35 -0
- package/node_modules/@smithy/core/dist-types/ts3.4/submodules/cbor/index.d.ts +5 -1
- package/node_modules/@smithy/core/package.json +2 -1
- package/node_modules/@smithy/credential-provider-imds/package.json +2 -2
- package/node_modules/@smithy/fetch-http-handler/package.json +2 -2
- package/node_modules/@smithy/node-http-handler/package.json +2 -2
- package/node_modules/@smithy/signature-v4/package.json +2 -2
- package/package.json +5 -5
- package/node_modules/@aws-sdk/core/dist-types/ts3.4/submodules/protocols/json/JsonCodec.d.ts +0 -19
- package/node_modules/@aws-sdk/core/dist-types/ts3.4/submodules/protocols/json/JsonShapeDeserializer.d.ts +0 -13
- package/node_modules/@aws-sdk/core/dist-types/ts3.4/submodules/protocols/json/JsonShapeSerializer.d.ts +0 -28
- package/node_modules/@aws-sdk/core/dist-types/ts3.4/submodules/protocols/json/experimental/BufferJsonShapeDeserializer.d.ts +0 -29
- package/node_modules/@aws-sdk/core/dist-types/ts3.4/submodules/protocols/json/experimental/ByteJsonShapeSerializer.d.ts +0 -57
|
@@ -1,216 +1,15 @@
|
|
|
1
1
|
import { SerdeContext } from "@smithy/core/protocols";
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
4
|
-
import { cbor } from "./cbor";
|
|
5
|
-
import { dateToTag } from "./parseCborBody";
|
|
2
|
+
import { CborShapeSerializer2 } from "./codec-v2/CborShapeSerializer2";
|
|
3
|
+
import { CborShapeDeserializer2 } from "./codec-v2/CborShapeDeserializer2";
|
|
6
4
|
export class CborCodec extends SerdeContext {
|
|
7
5
|
createSerializer() {
|
|
8
|
-
const serializer = new
|
|
6
|
+
const serializer = new CborShapeSerializer2();
|
|
9
7
|
serializer.setSerdeContext(this.serdeContext);
|
|
10
8
|
return serializer;
|
|
11
9
|
}
|
|
12
10
|
createDeserializer() {
|
|
13
|
-
const deserializer = new
|
|
11
|
+
const deserializer = new CborShapeDeserializer2();
|
|
14
12
|
deserializer.setSerdeContext(this.serdeContext);
|
|
15
13
|
return deserializer;
|
|
16
14
|
}
|
|
17
15
|
}
|
|
18
|
-
export class CborShapeSerializer extends SerdeContext {
|
|
19
|
-
value;
|
|
20
|
-
write(schema, value) {
|
|
21
|
-
this.value = this.serialize(schema, value);
|
|
22
|
-
}
|
|
23
|
-
serialize(schema, source) {
|
|
24
|
-
const ns = NormalizedSchema.of(schema);
|
|
25
|
-
if (source == null) {
|
|
26
|
-
if (ns.isIdempotencyToken()) {
|
|
27
|
-
return generateIdempotencyToken();
|
|
28
|
-
}
|
|
29
|
-
return source;
|
|
30
|
-
}
|
|
31
|
-
if (ns.isBlobSchema()) {
|
|
32
|
-
if (typeof source === "string") {
|
|
33
|
-
return (this.serdeContext?.base64Decoder ?? fromBase64)(source);
|
|
34
|
-
}
|
|
35
|
-
return source;
|
|
36
|
-
}
|
|
37
|
-
if (ns.isTimestampSchema()) {
|
|
38
|
-
if (typeof source === "number" || typeof source === "bigint") {
|
|
39
|
-
return dateToTag(new Date((Number(source) / 1000) | 0));
|
|
40
|
-
}
|
|
41
|
-
return dateToTag(source);
|
|
42
|
-
}
|
|
43
|
-
if (typeof source === "function" || typeof source === "object") {
|
|
44
|
-
const sourceObject = source;
|
|
45
|
-
if (ns.isListSchema() && Array.isArray(sourceObject)) {
|
|
46
|
-
const sparse = !!ns.getMergedTraits().sparse;
|
|
47
|
-
const newArray = [];
|
|
48
|
-
let i = 0;
|
|
49
|
-
for (const item of sourceObject) {
|
|
50
|
-
const value = this.serialize(ns.getValueSchema(), item);
|
|
51
|
-
if (value != null || sparse) {
|
|
52
|
-
newArray[i++] = value;
|
|
53
|
-
}
|
|
54
|
-
}
|
|
55
|
-
return newArray;
|
|
56
|
-
}
|
|
57
|
-
if (sourceObject instanceof Date) {
|
|
58
|
-
return dateToTag(sourceObject);
|
|
59
|
-
}
|
|
60
|
-
const newObject = {};
|
|
61
|
-
if (ns.isMapSchema()) {
|
|
62
|
-
const sparse = !!ns.getMergedTraits().sparse;
|
|
63
|
-
for (const key in sourceObject) {
|
|
64
|
-
const value = this.serialize(ns.getValueSchema(), sourceObject[key]);
|
|
65
|
-
if (value != null || sparse) {
|
|
66
|
-
newObject[key] = value;
|
|
67
|
-
}
|
|
68
|
-
}
|
|
69
|
-
}
|
|
70
|
-
else if (ns.isStructSchema()) {
|
|
71
|
-
for (const [key, memberSchema] of ns.structIterator()) {
|
|
72
|
-
const value = this.serialize(memberSchema, sourceObject[key]);
|
|
73
|
-
if (value != null) {
|
|
74
|
-
newObject[key] = value;
|
|
75
|
-
}
|
|
76
|
-
}
|
|
77
|
-
const isUnion = ns.isUnionSchema();
|
|
78
|
-
if (isUnion && Array.isArray(sourceObject.$unknown)) {
|
|
79
|
-
const [k, v] = sourceObject.$unknown;
|
|
80
|
-
newObject[k] = v;
|
|
81
|
-
}
|
|
82
|
-
else if (typeof sourceObject.__type === "string") {
|
|
83
|
-
for (const k in sourceObject) {
|
|
84
|
-
if (!(k in newObject)) {
|
|
85
|
-
newObject[k] = this.serialize(15, sourceObject[k]);
|
|
86
|
-
}
|
|
87
|
-
}
|
|
88
|
-
}
|
|
89
|
-
}
|
|
90
|
-
else if (ns.isDocumentSchema()) {
|
|
91
|
-
for (const key in sourceObject) {
|
|
92
|
-
newObject[key] = this.serialize(ns.getValueSchema(), sourceObject[key]);
|
|
93
|
-
}
|
|
94
|
-
}
|
|
95
|
-
else if (ns.isBigDecimalSchema()) {
|
|
96
|
-
return sourceObject;
|
|
97
|
-
}
|
|
98
|
-
return newObject;
|
|
99
|
-
}
|
|
100
|
-
return source;
|
|
101
|
-
}
|
|
102
|
-
flush() {
|
|
103
|
-
const buffer = cbor.serialize(this.value);
|
|
104
|
-
this.value = undefined;
|
|
105
|
-
return buffer;
|
|
106
|
-
}
|
|
107
|
-
}
|
|
108
|
-
export class CborShapeDeserializer extends SerdeContext {
|
|
109
|
-
read(schema, bytes) {
|
|
110
|
-
const data = cbor.deserialize(bytes);
|
|
111
|
-
return this.readValue(schema, data);
|
|
112
|
-
}
|
|
113
|
-
readValue(_schema, value) {
|
|
114
|
-
const ns = NormalizedSchema.of(_schema);
|
|
115
|
-
if (ns.isTimestampSchema()) {
|
|
116
|
-
if (typeof value === "number") {
|
|
117
|
-
return _parseEpochTimestamp(value);
|
|
118
|
-
}
|
|
119
|
-
if (typeof value === "object") {
|
|
120
|
-
if (value.tag === 1 && "value" in value) {
|
|
121
|
-
return _parseEpochTimestamp(value.value);
|
|
122
|
-
}
|
|
123
|
-
}
|
|
124
|
-
}
|
|
125
|
-
if (ns.isBlobSchema()) {
|
|
126
|
-
if (typeof value === "string") {
|
|
127
|
-
return (this.serdeContext?.base64Decoder ?? fromBase64)(value);
|
|
128
|
-
}
|
|
129
|
-
return value;
|
|
130
|
-
}
|
|
131
|
-
if (typeof value === "undefined" ||
|
|
132
|
-
typeof value === "boolean" ||
|
|
133
|
-
typeof value === "number" ||
|
|
134
|
-
typeof value === "string" ||
|
|
135
|
-
typeof value === "bigint" ||
|
|
136
|
-
typeof value === "symbol") {
|
|
137
|
-
return value;
|
|
138
|
-
}
|
|
139
|
-
else if (typeof value === "object") {
|
|
140
|
-
if (value === null) {
|
|
141
|
-
return null;
|
|
142
|
-
}
|
|
143
|
-
if ("byteLength" in value) {
|
|
144
|
-
return value;
|
|
145
|
-
}
|
|
146
|
-
if (value instanceof Date) {
|
|
147
|
-
return value;
|
|
148
|
-
}
|
|
149
|
-
if (ns.isDocumentSchema()) {
|
|
150
|
-
return value;
|
|
151
|
-
}
|
|
152
|
-
if (ns.isListSchema()) {
|
|
153
|
-
const newArray = [];
|
|
154
|
-
const memberSchema = ns.getValueSchema();
|
|
155
|
-
for (const item of value) {
|
|
156
|
-
const itemValue = this.readValue(memberSchema, item);
|
|
157
|
-
newArray.push(itemValue);
|
|
158
|
-
}
|
|
159
|
-
return newArray;
|
|
160
|
-
}
|
|
161
|
-
const newObject = {};
|
|
162
|
-
if (ns.isMapSchema()) {
|
|
163
|
-
const targetSchema = ns.getValueSchema();
|
|
164
|
-
for (const key in value) {
|
|
165
|
-
const itemValue = this.readValue(targetSchema, value[key]);
|
|
166
|
-
newObject[key] = itemValue;
|
|
167
|
-
}
|
|
168
|
-
}
|
|
169
|
-
else if (ns.isStructSchema()) {
|
|
170
|
-
const isUnion = ns.isUnionSchema();
|
|
171
|
-
let keys;
|
|
172
|
-
if (isUnion) {
|
|
173
|
-
keys = new Set();
|
|
174
|
-
for (const k in value) {
|
|
175
|
-
if (k !== "__type") {
|
|
176
|
-
keys.add(k);
|
|
177
|
-
}
|
|
178
|
-
}
|
|
179
|
-
}
|
|
180
|
-
for (const [key, memberSchema] of ns.structIterator()) {
|
|
181
|
-
if (isUnion) {
|
|
182
|
-
keys.delete(key);
|
|
183
|
-
}
|
|
184
|
-
if (value[key] != null) {
|
|
185
|
-
newObject[key] = this.readValue(memberSchema, value[key]);
|
|
186
|
-
}
|
|
187
|
-
}
|
|
188
|
-
if (isUnion && keys?.size === 1) {
|
|
189
|
-
let newObjectEmpty = true;
|
|
190
|
-
for (const _ in newObject) {
|
|
191
|
-
newObjectEmpty = false;
|
|
192
|
-
break;
|
|
193
|
-
}
|
|
194
|
-
if (newObjectEmpty) {
|
|
195
|
-
const k = keys.values().next().value;
|
|
196
|
-
newObject.$unknown = [k, value[k]];
|
|
197
|
-
}
|
|
198
|
-
}
|
|
199
|
-
else if (typeof value.__type === "string") {
|
|
200
|
-
for (const k in value) {
|
|
201
|
-
if (!(k in newObject)) {
|
|
202
|
-
newObject[k] = value[k];
|
|
203
|
-
}
|
|
204
|
-
}
|
|
205
|
-
}
|
|
206
|
-
}
|
|
207
|
-
else if (value instanceof NumericValue) {
|
|
208
|
-
return value;
|
|
209
|
-
}
|
|
210
|
-
return newObject;
|
|
211
|
-
}
|
|
212
|
-
else {
|
|
213
|
-
return value;
|
|
214
|
-
}
|
|
215
|
-
}
|
|
216
|
-
}
|
|
@@ -59,7 +59,7 @@ export function encode(_input) {
|
|
|
59
59
|
ensureSpace(64);
|
|
60
60
|
}
|
|
61
61
|
if (typeof input === "number") {
|
|
62
|
-
if (Number.isInteger(input)) {
|
|
62
|
+
if (Number.isInteger(input) && input >= -0x20000000000000 && input <= 0x1fffffffffffff) {
|
|
63
63
|
const nonNegative = input >= 0;
|
|
64
64
|
const major = nonNegative ? majorUint64 : majorNegativeInt64;
|
|
65
65
|
const value = nonNegative ? input : -input - 1;
|
|
@@ -0,0 +1,113 @@
|
|
|
1
|
+
import { SerdeContext } from "@smithy/core/protocols";
|
|
2
|
+
import { NormalizedSchema } from "@smithy/core/schema";
|
|
3
|
+
import { NumericValue, _parseEpochTimestamp, fromBase64 } from "@smithy/core/serde";
|
|
4
|
+
import { cbor } from "../cbor";
|
|
5
|
+
export class CborShapeDeserializer extends SerdeContext {
|
|
6
|
+
read(schema, bytes) {
|
|
7
|
+
const data = cbor.deserialize(bytes);
|
|
8
|
+
return this.readValue(schema, data);
|
|
9
|
+
}
|
|
10
|
+
readValue(_schema, value) {
|
|
11
|
+
const ns = NormalizedSchema.of(_schema);
|
|
12
|
+
if (ns.isTimestampSchema()) {
|
|
13
|
+
if (typeof value === "number") {
|
|
14
|
+
return _parseEpochTimestamp(value);
|
|
15
|
+
}
|
|
16
|
+
if (typeof value === "object") {
|
|
17
|
+
if (value.tag === 1 && "value" in value) {
|
|
18
|
+
return _parseEpochTimestamp(value.value);
|
|
19
|
+
}
|
|
20
|
+
}
|
|
21
|
+
}
|
|
22
|
+
if (ns.isBlobSchema()) {
|
|
23
|
+
if (typeof value === "string") {
|
|
24
|
+
return (this.serdeContext?.base64Decoder ?? fromBase64)(value);
|
|
25
|
+
}
|
|
26
|
+
return value;
|
|
27
|
+
}
|
|
28
|
+
if (typeof value === "undefined" ||
|
|
29
|
+
typeof value === "boolean" ||
|
|
30
|
+
typeof value === "number" ||
|
|
31
|
+
typeof value === "string" ||
|
|
32
|
+
typeof value === "bigint" ||
|
|
33
|
+
typeof value === "symbol") {
|
|
34
|
+
return value;
|
|
35
|
+
}
|
|
36
|
+
else if (typeof value === "object") {
|
|
37
|
+
if (value === null) {
|
|
38
|
+
return null;
|
|
39
|
+
}
|
|
40
|
+
if ("byteLength" in value) {
|
|
41
|
+
return value;
|
|
42
|
+
}
|
|
43
|
+
if (value instanceof Date) {
|
|
44
|
+
return value;
|
|
45
|
+
}
|
|
46
|
+
if (ns.isDocumentSchema()) {
|
|
47
|
+
return value;
|
|
48
|
+
}
|
|
49
|
+
if (ns.isListSchema()) {
|
|
50
|
+
const newArray = [];
|
|
51
|
+
const memberSchema = ns.getValueSchema();
|
|
52
|
+
for (const item of value) {
|
|
53
|
+
const itemValue = this.readValue(memberSchema, item);
|
|
54
|
+
newArray.push(itemValue);
|
|
55
|
+
}
|
|
56
|
+
return newArray;
|
|
57
|
+
}
|
|
58
|
+
const newObject = {};
|
|
59
|
+
if (ns.isMapSchema()) {
|
|
60
|
+
const targetSchema = ns.getValueSchema();
|
|
61
|
+
for (const key in value) {
|
|
62
|
+
const itemValue = this.readValue(targetSchema, value[key]);
|
|
63
|
+
newObject[key] = itemValue;
|
|
64
|
+
}
|
|
65
|
+
}
|
|
66
|
+
else if (ns.isStructSchema()) {
|
|
67
|
+
const isUnion = ns.isUnionSchema();
|
|
68
|
+
let keys;
|
|
69
|
+
if (isUnion) {
|
|
70
|
+
keys = new Set();
|
|
71
|
+
for (const k in value) {
|
|
72
|
+
if (k !== "__type") {
|
|
73
|
+
keys.add(k);
|
|
74
|
+
}
|
|
75
|
+
}
|
|
76
|
+
}
|
|
77
|
+
for (const [key, memberSchema] of ns.structIterator()) {
|
|
78
|
+
if (isUnion) {
|
|
79
|
+
keys.delete(key);
|
|
80
|
+
}
|
|
81
|
+
if (value[key] != null) {
|
|
82
|
+
newObject[key] = this.readValue(memberSchema, value[key]);
|
|
83
|
+
}
|
|
84
|
+
}
|
|
85
|
+
if (isUnion && keys?.size === 1) {
|
|
86
|
+
let newObjectEmpty = true;
|
|
87
|
+
for (const _ in newObject) {
|
|
88
|
+
newObjectEmpty = false;
|
|
89
|
+
break;
|
|
90
|
+
}
|
|
91
|
+
if (newObjectEmpty) {
|
|
92
|
+
const k = keys.values().next().value;
|
|
93
|
+
newObject.$unknown = [k, value[k]];
|
|
94
|
+
}
|
|
95
|
+
}
|
|
96
|
+
else if (typeof value.__type === "string") {
|
|
97
|
+
for (const k in value) {
|
|
98
|
+
if (!(k in newObject)) {
|
|
99
|
+
newObject[k] = value[k];
|
|
100
|
+
}
|
|
101
|
+
}
|
|
102
|
+
}
|
|
103
|
+
}
|
|
104
|
+
else if (value instanceof NumericValue) {
|
|
105
|
+
return value;
|
|
106
|
+
}
|
|
107
|
+
return newObject;
|
|
108
|
+
}
|
|
109
|
+
else {
|
|
110
|
+
return value;
|
|
111
|
+
}
|
|
112
|
+
}
|
|
113
|
+
}
|
|
@@ -0,0 +1,103 @@
|
|
|
1
|
+
import { SerdeContext } from "@smithy/core/protocols";
|
|
2
|
+
import { NormalizedSchema } from "@smithy/core/schema";
|
|
3
|
+
import { fromBase64, generateIdempotencyToken } from "@smithy/core/serde";
|
|
4
|
+
import { cbor } from "../cbor";
|
|
5
|
+
import { dateToTag } from "../parseCborBody";
|
|
6
|
+
export class CborShapeSerializer extends SerdeContext {
|
|
7
|
+
value;
|
|
8
|
+
write(schema, value) {
|
|
9
|
+
this.value = this.serialize(schema, value);
|
|
10
|
+
}
|
|
11
|
+
serialize(schema, source) {
|
|
12
|
+
const ns = NormalizedSchema.of(schema);
|
|
13
|
+
if (source == null) {
|
|
14
|
+
if (ns.isIdempotencyToken()) {
|
|
15
|
+
return generateIdempotencyToken();
|
|
16
|
+
}
|
|
17
|
+
return source;
|
|
18
|
+
}
|
|
19
|
+
if (ns.isBlobSchema()) {
|
|
20
|
+
if (typeof source === "string") {
|
|
21
|
+
return (this.serdeContext?.base64Decoder ?? fromBase64)(source);
|
|
22
|
+
}
|
|
23
|
+
return source;
|
|
24
|
+
}
|
|
25
|
+
if (ns.isTimestampSchema()) {
|
|
26
|
+
if (typeof source === "number" || typeof source === "bigint") {
|
|
27
|
+
return dateToTag(new Date((Number(source) / 1000) | 0));
|
|
28
|
+
}
|
|
29
|
+
return dateToTag(source);
|
|
30
|
+
}
|
|
31
|
+
if (typeof source === "function" || typeof source === "object") {
|
|
32
|
+
const sourceObject = source;
|
|
33
|
+
if (ns.isListSchema() && Array.isArray(sourceObject)) {
|
|
34
|
+
const sparse = !!ns.getMergedTraits().sparse;
|
|
35
|
+
const newArray = [];
|
|
36
|
+
let i = 0;
|
|
37
|
+
for (const item of sourceObject) {
|
|
38
|
+
const value = this.serialize(ns.getValueSchema(), item);
|
|
39
|
+
if (value != null || sparse) {
|
|
40
|
+
newArray[i++] = value;
|
|
41
|
+
}
|
|
42
|
+
}
|
|
43
|
+
return newArray;
|
|
44
|
+
}
|
|
45
|
+
if (sourceObject instanceof Date) {
|
|
46
|
+
return dateToTag(sourceObject);
|
|
47
|
+
}
|
|
48
|
+
const newObject = {};
|
|
49
|
+
if (ns.isMapSchema()) {
|
|
50
|
+
const sparse = !!ns.getMergedTraits().sparse;
|
|
51
|
+
for (const key in sourceObject) {
|
|
52
|
+
const value = this.serialize(ns.getValueSchema(), sourceObject[key]);
|
|
53
|
+
if (value != null || sparse) {
|
|
54
|
+
newObject[key] = value;
|
|
55
|
+
}
|
|
56
|
+
}
|
|
57
|
+
}
|
|
58
|
+
else if (ns.isStructSchema()) {
|
|
59
|
+
for (const [key, memberSchema] of ns.structIterator()) {
|
|
60
|
+
const value = this.serialize(memberSchema, sourceObject[key]);
|
|
61
|
+
if (value != null) {
|
|
62
|
+
newObject[key] = value;
|
|
63
|
+
}
|
|
64
|
+
}
|
|
65
|
+
const isUnion = ns.isUnionSchema();
|
|
66
|
+
if (isUnion && Array.isArray(sourceObject.$unknown)) {
|
|
67
|
+
const [k, v] = sourceObject.$unknown;
|
|
68
|
+
newObject[k] = v;
|
|
69
|
+
}
|
|
70
|
+
else if (typeof sourceObject.__type === "string") {
|
|
71
|
+
for (const k in sourceObject) {
|
|
72
|
+
if (!(k in newObject)) {
|
|
73
|
+
newObject[k] = this.serialize(15, sourceObject[k]);
|
|
74
|
+
}
|
|
75
|
+
}
|
|
76
|
+
}
|
|
77
|
+
}
|
|
78
|
+
else if (ns.isDocumentSchema()) {
|
|
79
|
+
if (Array.isArray(sourceObject)) {
|
|
80
|
+
const newArray = [];
|
|
81
|
+
let i = 0;
|
|
82
|
+
for (const item of sourceObject) {
|
|
83
|
+
newArray[i++] = this.serialize(ns.getValueSchema(), item);
|
|
84
|
+
}
|
|
85
|
+
return newArray;
|
|
86
|
+
}
|
|
87
|
+
for (const key in sourceObject) {
|
|
88
|
+
newObject[key] = this.serialize(ns.getValueSchema(), sourceObject[key]);
|
|
89
|
+
}
|
|
90
|
+
}
|
|
91
|
+
else if (ns.isBigDecimalSchema()) {
|
|
92
|
+
return sourceObject;
|
|
93
|
+
}
|
|
94
|
+
return newObject;
|
|
95
|
+
}
|
|
96
|
+
return source;
|
|
97
|
+
}
|
|
98
|
+
flush() {
|
|
99
|
+
const buffer = cbor.serialize(this.value);
|
|
100
|
+
this.value = undefined;
|
|
101
|
+
return buffer;
|
|
102
|
+
}
|
|
103
|
+
}
|