awscdk-construct-scte-scheduler 0.0.21 → 0.0.23

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 (76) hide show
  1. package/.jsii +48 -17
  2. package/lib/EventBridgeSchedule.js +1 -1
  3. package/lib/Lambda.js +1 -1
  4. package/lib/ScteScheduler.js +1 -1
  5. package/node_modules/@aws-sdk/client-medialive/dist-cjs/index.js +36 -1
  6. package/node_modules/@aws-sdk/client-medialive/dist-es/protocols/Aws_restJson1.js +35 -0
  7. package/node_modules/@aws-sdk/client-medialive/dist-types/commands/CreateMultiplexProgramCommand.d.ts +6 -0
  8. package/node_modules/@aws-sdk/client-medialive/dist-types/commands/DeleteMultiplexProgramCommand.d.ts +6 -0
  9. package/node_modules/@aws-sdk/client-medialive/dist-types/commands/DescribeMultiplexProgramCommand.d.ts +6 -0
  10. package/node_modules/@aws-sdk/client-medialive/dist-types/commands/UpdateMultiplexCommand.d.ts +31 -0
  11. package/node_modules/@aws-sdk/client-medialive/dist-types/commands/UpdateMultiplexProgramCommand.d.ts +6 -0
  12. package/node_modules/@aws-sdk/client-medialive/dist-types/models/models_1.d.ts +20 -0
  13. package/node_modules/@aws-sdk/client-medialive/dist-types/models/models_2.d.ts +5 -0
  14. package/node_modules/@aws-sdk/client-medialive/dist-types/ts3.4/models/models_1.d.ts +4 -0
  15. package/node_modules/@aws-sdk/client-medialive/dist-types/ts3.4/models/models_2.d.ts +4 -0
  16. package/node_modules/@aws-sdk/client-medialive/package.json +12 -12
  17. package/node_modules/@aws-sdk/client-sso/package.json +9 -9
  18. package/node_modules/@aws-sdk/client-sso-oidc/package.json +11 -11
  19. package/node_modules/@aws-sdk/client-sts/dist-cjs/index.js +8 -2
  20. package/node_modules/@aws-sdk/client-sts/dist-es/defaultStsRoleAssumers.js +7 -2
  21. package/node_modules/@aws-sdk/client-sts/package.json +11 -11
  22. package/node_modules/@aws-sdk/core/dist-cjs/submodules/httpAuthSchemes/index.js +39 -7
  23. package/node_modules/@aws-sdk/core/dist-es/submodules/httpAuthSchemes/aws_sdk/AwsSdkSigV4ASigner.js +3 -1
  24. package/node_modules/@aws-sdk/core/dist-es/submodules/httpAuthSchemes/aws_sdk/index.js +1 -0
  25. package/node_modules/@aws-sdk/core/dist-es/submodules/httpAuthSchemes/aws_sdk/resolveAwsSdkSigV4AConfig.js +25 -0
  26. package/node_modules/@aws-sdk/core/dist-types/submodules/httpAuthSchemes/aws_sdk/AwsSdkSigV4Signer.d.ts +2 -1
  27. package/node_modules/@aws-sdk/core/dist-types/submodules/httpAuthSchemes/aws_sdk/index.d.ts +1 -0
  28. package/node_modules/@aws-sdk/core/dist-types/submodules/httpAuthSchemes/aws_sdk/resolveAwsSdkSigV4AConfig.d.ts +38 -0
  29. package/node_modules/@aws-sdk/core/dist-types/ts3.4/submodules/httpAuthSchemes/aws_sdk/AwsSdkSigV4Signer.d.ts +2 -1
  30. package/node_modules/@aws-sdk/core/dist-types/ts3.4/submodules/httpAuthSchemes/aws_sdk/index.d.ts +1 -0
  31. package/node_modules/@aws-sdk/core/dist-types/ts3.4/submodules/httpAuthSchemes/aws_sdk/resolveAwsSdkSigV4AConfig.d.ts +18 -0
  32. package/node_modules/@aws-sdk/core/package.json +4 -3
  33. package/node_modules/@aws-sdk/credential-provider-http/package.json +2 -2
  34. package/node_modules/@aws-sdk/credential-provider-ini/package.json +4 -4
  35. package/node_modules/@aws-sdk/credential-provider-node/package.json +4 -4
  36. package/node_modules/@aws-sdk/credential-provider-sso/package.json +2 -2
  37. package/node_modules/@aws-sdk/middleware-user-agent/package.json +2 -2
  38. package/node_modules/@aws-sdk/util-endpoints/dist-cjs/index.js +10 -4
  39. package/node_modules/@aws-sdk/util-endpoints/dist-cjs/lib/aws/partitions.json +3 -0
  40. package/node_modules/@aws-sdk/util-endpoints/dist-es/lib/aws/parseArn.js +7 -4
  41. package/node_modules/@aws-sdk/util-endpoints/dist-es/lib/aws/partitions.json +3 -0
  42. package/node_modules/@aws-sdk/util-endpoints/package.json +1 -1
  43. package/node_modules/@smithy/core/cbor.js +6 -0
  44. package/node_modules/@smithy/core/dist-cjs/submodules/cbor/index.js +707 -0
  45. package/node_modules/@smithy/core/dist-es/submodules/cbor/cbor-decode.js +391 -0
  46. package/node_modules/@smithy/core/dist-es/submodules/cbor/cbor-encode.js +181 -0
  47. package/node_modules/@smithy/core/dist-es/submodules/cbor/cbor-types.js +20 -0
  48. package/node_modules/@smithy/core/dist-es/submodules/cbor/cbor.js +15 -0
  49. package/node_modules/@smithy/core/dist-es/submodules/cbor/index.js +2 -0
  50. package/node_modules/@smithy/core/dist-es/submodules/cbor/parseCborBody.js +82 -0
  51. package/node_modules/@smithy/core/dist-types/submodules/cbor/cbor-decode.d.ts +17 -0
  52. package/node_modules/@smithy/core/dist-types/submodules/cbor/cbor-encode.d.ts +9 -0
  53. package/node_modules/@smithy/core/dist-types/submodules/cbor/cbor-types.d.ts +40 -0
  54. package/node_modules/@smithy/core/dist-types/submodules/cbor/cbor.d.ts +26 -0
  55. package/node_modules/@smithy/core/dist-types/submodules/cbor/index.d.ts +2 -0
  56. package/node_modules/@smithy/core/dist-types/submodules/cbor/parseCborBody.d.ts +29 -0
  57. package/node_modules/@smithy/core/dist-types/ts3.4/submodules/cbor/cbor-decode.d.ts +17 -0
  58. package/node_modules/@smithy/core/dist-types/ts3.4/submodules/cbor/cbor-encode.d.ts +9 -0
  59. package/node_modules/@smithy/core/dist-types/ts3.4/submodules/cbor/cbor-types.d.ts +43 -0
  60. package/node_modules/@smithy/core/dist-types/ts3.4/submodules/cbor/cbor.d.ts +26 -0
  61. package/node_modules/@smithy/core/dist-types/ts3.4/submodules/cbor/index.d.ts +2 -0
  62. package/node_modules/@smithy/core/dist-types/ts3.4/submodules/cbor/parseCborBody.d.ts +29 -0
  63. package/node_modules/@smithy/core/package.json +17 -5
  64. package/node_modules/@smithy/middleware-retry/package.json +2 -2
  65. package/node_modules/@smithy/smithy-client/dist-cjs/index.js +2 -0
  66. package/node_modules/@smithy/smithy-client/dist-es/date-utils.js +3 -0
  67. package/node_modules/@smithy/smithy-client/dist-types/serde-json.d.ts +2 -0
  68. package/node_modules/@smithy/smithy-client/dist-types/ts3.4/serde-json.d.ts +2 -0
  69. package/node_modules/@smithy/smithy-client/package.json +1 -1
  70. package/node_modules/@smithy/util-defaults-mode-browser/package.json +2 -2
  71. package/node_modules/@smithy/util-defaults-mode-node/package.json +2 -2
  72. package/node_modules/tslib/package.json +1 -1
  73. package/node_modules/tslib/tslib.es6.js +13 -8
  74. package/node_modules/tslib/tslib.es6.mjs +14 -9
  75. package/node_modules/tslib/tslib.js +13 -8
  76. package/package.json +9 -9
@@ -0,0 +1,17 @@
1
+ import { CborValueType, Float32, Uint8, Uint32 } from "./cbor-types";
2
+ /**
3
+ * @internal
4
+ * @param bytes - to be set as the decode source.
5
+ *
6
+ * Sets the decode bytearray source and its data view.
7
+ */
8
+ export declare function setPayload(bytes: Uint8Array): void;
9
+ /**
10
+ * @internal
11
+ * Decodes the data between the two indices.
12
+ */
13
+ export declare function decode(at: Uint32, to: Uint32): CborValueType;
14
+ /**
15
+ * @internal
16
+ */
17
+ export declare function bytesToFloat16(a: Uint8, b: Uint8): Float32;
@@ -0,0 +1,9 @@
1
+ /**
2
+ * @internal
3
+ */
4
+ export declare function toUint8Array(): Uint8Array;
5
+ export declare function resize(size: number): void;
6
+ /**
7
+ * @param _input - JS data object.
8
+ */
9
+ export declare function encode(_input: any): void;
@@ -0,0 +1,40 @@
1
+ /// <reference types="node" />
2
+ export type CborItemType = undefined | boolean | number | bigint | [CborUnstructuredByteStringType, Uint64] | string | CborTagType;
3
+ export type CborTagType = {
4
+ tag: Uint64 | number;
5
+ value: CborValueType;
6
+ };
7
+ export type CborUnstructuredByteStringType = Uint8Array;
8
+ export type CborListType<T = any> = Array<T>;
9
+ export type CborMapType<T = any> = Record<string, T>;
10
+ export type CborCollectionType<T = any> = CborMapType<T> | CborListType<T>;
11
+ export type CborValueType = CborItemType | CborCollectionType | any;
12
+ export type CborArgumentLength = 1 | 2 | 4 | 8;
13
+ export type CborArgumentLengthOffset = 1 | 2 | 3 | 5 | 9;
14
+ export type CborOffset = number;
15
+ export type Uint8 = number;
16
+ export type Uint32 = number;
17
+ export type Uint64 = bigint;
18
+ export type Float32 = number;
19
+ export type Int64 = bigint;
20
+ export type Float16Binary = number;
21
+ export type Float32Binary = number;
22
+ export type CborMajorType = typeof majorUint64 | typeof majorNegativeInt64 | typeof majorUnstructuredByteString | typeof majorUtf8String | typeof majorList | typeof majorMap | typeof majorTag | typeof majorSpecial;
23
+ export declare const majorUint64 = 0;
24
+ export declare const majorNegativeInt64 = 1;
25
+ export declare const majorUnstructuredByteString = 2;
26
+ export declare const majorUtf8String = 3;
27
+ export declare const majorList = 4;
28
+ export declare const majorMap = 5;
29
+ export declare const majorTag = 6;
30
+ export declare const majorSpecial = 7;
31
+ export declare const specialFalse = 20;
32
+ export declare const specialTrue = 21;
33
+ export declare const specialNull = 22;
34
+ export declare const specialUndefined = 23;
35
+ export declare const extendedOneByte = 24;
36
+ export declare const extendedFloat16 = 25;
37
+ export declare const extendedFloat32 = 26;
38
+ export declare const extendedFloat64 = 27;
39
+ export declare const minorIndefinite = 31;
40
+ export declare function alloc(size: number): Uint8Array | Buffer;
@@ -0,0 +1,26 @@
1
+ /**
2
+ * This implementation is synchronous and only implements the parts of CBOR
3
+ * specification used by Smithy RPCv2 CBOR protocol.
4
+ *
5
+ * This cbor serde implementation is derived from AWS SDK for Go's implementation.
6
+ * @see https://github.com/aws/smithy-go/tree/main/encoding/cbor
7
+ *
8
+ * The cbor-x implementation was also instructional:
9
+ * @see https://github.com/kriszyp/cbor-x
10
+ */
11
+ export declare const cbor: {
12
+ deserialize(payload: Uint8Array): any;
13
+ serialize(input: any): Uint8Array;
14
+ /**
15
+ * @public
16
+ * @param size - byte length to allocate.
17
+ *
18
+ * This may be used to garbage collect the CBOR
19
+ * shared encoding buffer space,
20
+ * e.g. resizeEncodingBuffer(0);
21
+ *
22
+ * This may also be used to pre-allocate more space for
23
+ * CBOR encoding, e.g. resizeEncodingBuffer(100_000_000);
24
+ */
25
+ resizeEncodingBuffer(size: number): void;
26
+ };
@@ -0,0 +1,2 @@
1
+ export { cbor } from "./cbor";
2
+ export * from "./parseCborBody";
@@ -0,0 +1,29 @@
1
+ import { HttpRequest as __HttpRequest } from "@smithy/protocol-http";
2
+ import { HeaderBag as __HeaderBag, HttpResponse, SerdeContext as __SerdeContext, SerdeContext } from "@smithy/types";
3
+ /**
4
+ * @internal
5
+ */
6
+ export declare const parseCborBody: (streamBody: any, context: SerdeContext) => any;
7
+ /**
8
+ * @internal
9
+ */
10
+ export declare const dateToTag: (date: Date) => {
11
+ tag: 1;
12
+ value: number;
13
+ };
14
+ /**
15
+ * @internal
16
+ */
17
+ export declare const parseCborErrorBody: (errorBody: any, context: SerdeContext) => Promise<any>;
18
+ /**
19
+ * @internal
20
+ */
21
+ export declare const loadSmithyRpcV2CborErrorCode: (output: HttpResponse, data: any) => string | undefined;
22
+ /**
23
+ * @internal
24
+ */
25
+ export declare const checkCborResponse: (response: HttpResponse) => void;
26
+ /**
27
+ * @internal
28
+ */
29
+ export declare const buildHttpRpcRequest: (context: __SerdeContext, headers: __HeaderBag, path: string, resolvedHostname: string | undefined, body: any) => Promise<__HttpRequest>;
@@ -0,0 +1,17 @@
1
+ import { CborValueType, Float32, Uint8, Uint32 } from "./cbor-types";
2
+ /**
3
+ * @internal
4
+ * @param bytes - to be set as the decode source.
5
+ *
6
+ * Sets the decode bytearray source and its data view.
7
+ */
8
+ export declare function setPayload(bytes: Uint8Array): void;
9
+ /**
10
+ * @internal
11
+ * Decodes the data between the two indices.
12
+ */
13
+ export declare function decode(at: Uint32, to: Uint32): CborValueType;
14
+ /**
15
+ * @internal
16
+ */
17
+ export declare function bytesToFloat16(a: Uint8, b: Uint8): Float32;
@@ -0,0 +1,9 @@
1
+ /**
2
+ * @internal
3
+ */
4
+ export declare function toUint8Array(): Uint8Array;
5
+ export declare function resize(size: number): void;
6
+ /**
7
+ * @param _input - JS data object.
8
+ */
9
+ export declare function encode(_input: any): void;
@@ -0,0 +1,43 @@
1
+ /// <reference types="node" />
2
+ export type CborItemType = undefined | boolean | number | bigint | [
3
+ CborUnstructuredByteStringType,
4
+ Uint64
5
+ ] | string | CborTagType;
6
+ export type CborTagType = {
7
+ tag: Uint64 | number;
8
+ value: CborValueType;
9
+ };
10
+ export type CborUnstructuredByteStringType = Uint8Array;
11
+ export type CborListType<T = any> = Array<T>;
12
+ export type CborMapType<T = any> = Record<string, T>;
13
+ export type CborCollectionType<T = any> = CborMapType<T> | CborListType<T>;
14
+ export type CborValueType = CborItemType | CborCollectionType | any;
15
+ export type CborArgumentLength = 1 | 2 | 4 | 8;
16
+ export type CborArgumentLengthOffset = 1 | 2 | 3 | 5 | 9;
17
+ export type CborOffset = number;
18
+ export type Uint8 = number;
19
+ export type Uint32 = number;
20
+ export type Uint64 = bigint;
21
+ export type Float32 = number;
22
+ export type Int64 = bigint;
23
+ export type Float16Binary = number;
24
+ export type Float32Binary = number;
25
+ export type CborMajorType = typeof majorUint64 | typeof majorNegativeInt64 | typeof majorUnstructuredByteString | typeof majorUtf8String | typeof majorList | typeof majorMap | typeof majorTag | typeof majorSpecial;
26
+ export declare const majorUint64 = 0;
27
+ export declare const majorNegativeInt64 = 1;
28
+ export declare const majorUnstructuredByteString = 2;
29
+ export declare const majorUtf8String = 3;
30
+ export declare const majorList = 4;
31
+ export declare const majorMap = 5;
32
+ export declare const majorTag = 6;
33
+ export declare const majorSpecial = 7;
34
+ export declare const specialFalse = 20;
35
+ export declare const specialTrue = 21;
36
+ export declare const specialNull = 22;
37
+ export declare const specialUndefined = 23;
38
+ export declare const extendedOneByte = 24;
39
+ export declare const extendedFloat16 = 25;
40
+ export declare const extendedFloat32 = 26;
41
+ export declare const extendedFloat64 = 27;
42
+ export declare const minorIndefinite = 31;
43
+ export declare function alloc(size: number): Uint8Array | Buffer;
@@ -0,0 +1,26 @@
1
+ /**
2
+ * This implementation is synchronous and only implements the parts of CBOR
3
+ * specification used by Smithy RPCv2 CBOR protocol.
4
+ *
5
+ * This cbor serde implementation is derived from AWS SDK for Go's implementation.
6
+ * @see https://github.com/aws/smithy-go/tree/main/encoding/cbor
7
+ *
8
+ * The cbor-x implementation was also instructional:
9
+ * @see https://github.com/kriszyp/cbor-x
10
+ */
11
+ export declare const cbor: {
12
+ deserialize(payload: Uint8Array): any;
13
+ serialize(input: any): Uint8Array;
14
+ /**
15
+ * @public
16
+ * @param size - byte length to allocate.
17
+ *
18
+ * This may be used to garbage collect the CBOR
19
+ * shared encoding buffer space,
20
+ * e.g. resizeEncodingBuffer(0);
21
+ *
22
+ * This may also be used to pre-allocate more space for
23
+ * CBOR encoding, e.g. resizeEncodingBuffer(100_000_000);
24
+ */
25
+ resizeEncodingBuffer(size: number): void;
26
+ };
@@ -0,0 +1,2 @@
1
+ export { cbor } from "./cbor";
2
+ export * from "./parseCborBody";
@@ -0,0 +1,29 @@
1
+ import { HttpRequest as __HttpRequest } from "@smithy/protocol-http";
2
+ import { HeaderBag as __HeaderBag, HttpResponse, SerdeContext as __SerdeContext, SerdeContext } from "@smithy/types";
3
+ /**
4
+ * @internal
5
+ */
6
+ export declare const parseCborBody: (streamBody: any, context: SerdeContext) => any;
7
+ /**
8
+ * @internal
9
+ */
10
+ export declare const dateToTag: (date: Date) => {
11
+ tag: 1;
12
+ value: number;
13
+ };
14
+ /**
15
+ * @internal
16
+ */
17
+ export declare const parseCborErrorBody: (errorBody: any, context: SerdeContext) => Promise<any>;
18
+ /**
19
+ * @internal
20
+ */
21
+ export declare const loadSmithyRpcV2CborErrorCode: (output: HttpResponse, data: any) => string | undefined;
22
+ /**
23
+ * @internal
24
+ */
25
+ export declare const checkCborResponse: (response: HttpResponse) => void;
26
+ /**
27
+ * @internal
28
+ */
29
+ export declare const buildHttpRpcRequest: (context: __SerdeContext, headers: __HeaderBag, path: string, resolvedHostname: string | undefined, body: any) => Promise<__HttpRequest>;
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@smithy/core",
3
- "version": "2.3.2",
3
+ "version": "2.4.0",
4
4
  "scripts": {
5
5
  "build": "yarn lint && concurrently 'yarn:build:cjs' 'yarn:build:es' 'yarn:build:types && yarn build:types:downlevel'",
6
6
  "build:cjs": "node ../../scripts/inline core",
@@ -11,7 +11,8 @@
11
11
  "clean": "rimraf ./dist-* && rimraf *.tsbuildinfo || exit 0",
12
12
  "lint": "npx eslint -c ../../.eslintrc.js \"src/**/*.ts\" && node ./scripts/lint",
13
13
  "format": "prettier --config ../../prettier.config.js --ignore-path ../.prettierignore --write \"**/*.{ts,md,json}\"",
14
- "test": "yarn g:jest"
14
+ "test": "yarn g:jest --maxWorkers=1",
15
+ "test:cbor:perf": "node ./scripts/cbor-perf.mjs"
15
16
  },
16
17
  "main": "./dist-cjs/index.js",
17
18
  "module": "./dist-es/index.js",
@@ -29,6 +30,13 @@
29
30
  "node": "./package.json",
30
31
  "import": "./package.json",
31
32
  "require": "./package.json"
33
+ },
34
+ "./cbor": {
35
+ "module": "./dist-es/submodules/cbor/index.js",
36
+ "node": "./dist-cjs/submodules/cbor/index.js",
37
+ "import": "./dist-es/submodules/cbor/index.js",
38
+ "require": "./dist-cjs/submodules/cbor/index.js",
39
+ "types": "./dist-types/submodules/cbor/index.d.ts"
32
40
  }
33
41
  },
34
42
  "author": {
@@ -39,12 +47,14 @@
39
47
  "license": "Apache-2.0",
40
48
  "dependencies": {
41
49
  "@smithy/middleware-endpoint": "^3.1.0",
42
- "@smithy/middleware-retry": "^3.0.14",
50
+ "@smithy/middleware-retry": "^3.0.15",
43
51
  "@smithy/middleware-serde": "^3.0.3",
44
52
  "@smithy/protocol-http": "^4.1.0",
45
- "@smithy/smithy-client": "^3.1.12",
53
+ "@smithy/smithy-client": "^3.2.0",
46
54
  "@smithy/types": "^3.3.0",
55
+ "@smithy/util-body-length-browser": "^3.0.0",
47
56
  "@smithy/util-middleware": "^3.0.3",
57
+ "@smithy/util-utf8": "^3.0.0",
48
58
  "tslib": "^2.6.2"
49
59
  },
50
60
  "engines": {
@@ -58,7 +68,8 @@
58
68
  }
59
69
  },
60
70
  "files": [
61
- "dist-*/**"
71
+ "dist-*/**",
72
+ "./cbor.js"
62
73
  ],
63
74
  "homepage": "https://github.com/awslabs/smithy-typescript/tree/main/packages/core",
64
75
  "repository": {
@@ -70,6 +81,7 @@
70
81
  "@types/node": "^16.18.96",
71
82
  "concurrently": "7.0.0",
72
83
  "downlevel-dts": "0.10.1",
84
+ "json-bigint": "^1.0.0",
73
85
  "rimraf": "3.0.2",
74
86
  "typedoc": "0.23.23"
75
87
  },
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@smithy/middleware-retry",
3
- "version": "3.0.14",
3
+ "version": "3.0.15",
4
4
  "scripts": {
5
5
  "build": "concurrently 'yarn:build:cjs' 'yarn:build:es' 'yarn:build:types && yarn build:types:downlevel'",
6
6
  "build:cjs": "node ../../scripts/inline middleware-retry",
@@ -34,7 +34,7 @@
34
34
  "@smithy/node-config-provider": "^3.1.4",
35
35
  "@smithy/protocol-http": "^4.1.0",
36
36
  "@smithy/service-error-classification": "^3.0.3",
37
- "@smithy/smithy-client": "^3.1.12",
37
+ "@smithy/smithy-client": "^3.2.0",
38
38
  "@smithy/types": "^3.3.0",
39
39
  "@smithy/util-middleware": "^3.0.3",
40
40
  "@smithy/util-retry": "^3.0.3",
@@ -702,6 +702,8 @@ var parseEpochTimestamp = /* @__PURE__ */ __name((value) => {
702
702
  valueAsDouble = value;
703
703
  } else if (typeof value === "string") {
704
704
  valueAsDouble = strictParseDouble(value);
705
+ } else if (typeof value === "object" && value.tag === 1) {
706
+ valueAsDouble = value.value;
705
707
  } else {
706
708
  throw new TypeError("Epoch timestamps must be expressed as floating point numbers or their string representation");
707
709
  }
@@ -98,6 +98,9 @@ export const parseEpochTimestamp = (value) => {
98
98
  else if (typeof value === "string") {
99
99
  valueAsDouble = strictParseDouble(value);
100
100
  }
101
+ else if (typeof value === "object" && value.tag === 1) {
102
+ valueAsDouble = value.value;
103
+ }
101
104
  else {
102
105
  throw new TypeError("Epoch timestamps must be expressed as floating point numbers or their string representation");
103
106
  }
@@ -4,6 +4,8 @@
4
4
  * Maps an object through the default JSON serde behavior.
5
5
  * This means removing nullish fields and un-sparsifying lists.
6
6
  *
7
+ * This is also used by Smithy RPCv2 CBOR as the default serde behavior.
8
+ *
7
9
  * @param obj - to be checked.
8
10
  * @returns same object with default serde behavior applied.
9
11
  */
@@ -4,6 +4,8 @@
4
4
  * Maps an object through the default JSON serde behavior.
5
5
  * This means removing nullish fields and un-sparsifying lists.
6
6
  *
7
+ * This is also used by Smithy RPCv2 CBOR as the default serde behavior.
8
+ *
7
9
  * @param obj - to be checked.
8
10
  * @returns same object with default serde behavior applied.
9
11
  */
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@smithy/smithy-client",
3
- "version": "3.1.12",
3
+ "version": "3.2.0",
4
4
  "scripts": {
5
5
  "build": "concurrently 'yarn:build:cjs' 'yarn:build:es' 'yarn:build:types && yarn build:types:downlevel'",
6
6
  "build:cjs": "node ../../scripts/inline smithy-client",
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@smithy/util-defaults-mode-browser",
3
- "version": "3.0.14",
3
+ "version": "3.0.15",
4
4
  "scripts": {
5
5
  "build": "concurrently 'yarn:build:cjs' 'yarn:build:es' 'yarn:build:types && yarn build:types:downlevel'",
6
6
  "build:cjs": "node ../../scripts/inline util-defaults-mode-browser",
@@ -23,7 +23,7 @@
23
23
  "license": "Apache-2.0",
24
24
  "dependencies": {
25
25
  "@smithy/property-provider": "^3.1.3",
26
- "@smithy/smithy-client": "^3.1.12",
26
+ "@smithy/smithy-client": "^3.2.0",
27
27
  "@smithy/types": "^3.3.0",
28
28
  "bowser": "^2.11.0",
29
29
  "tslib": "^2.6.2"
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@smithy/util-defaults-mode-node",
3
- "version": "3.0.14",
3
+ "version": "3.0.15",
4
4
  "scripts": {
5
5
  "build": "concurrently 'yarn:build:cjs' 'yarn:build:es' 'yarn:build:types && yarn build:types:downlevel'",
6
6
  "build:cjs": "node ../../scripts/inline util-defaults-mode-node",
@@ -26,7 +26,7 @@
26
26
  "@smithy/credential-provider-imds": "^3.2.0",
27
27
  "@smithy/node-config-provider": "^3.1.4",
28
28
  "@smithy/property-provider": "^3.1.3",
29
- "@smithy/smithy-client": "^3.1.12",
29
+ "@smithy/smithy-client": "^3.2.0",
30
30
  "@smithy/types": "^3.3.0",
31
31
  "tslib": "^2.6.2"
32
32
  },
@@ -2,7 +2,7 @@
2
2
  "name": "tslib",
3
3
  "author": "Microsoft Corp.",
4
4
  "homepage": "https://www.typescriptlang.org/",
5
- "version": "2.6.3",
5
+ "version": "2.7.0",
6
6
  "license": "0BSD",
7
7
  "description": "Runtime library for TypeScript helper functions",
8
8
  "keywords": [
@@ -12,7 +12,7 @@ LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
12
12
  OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
13
13
  PERFORMANCE OF THIS SOFTWARE.
14
14
  ***************************************************************************** */
15
- /* global Reflect, Promise, SuppressedError, Symbol */
15
+ /* global Reflect, Promise, SuppressedError, Symbol, Iterator */
16
16
 
17
17
  var extendStatics = function(d, b) {
18
18
  extendStatics = Object.setPrototypeOf ||
@@ -123,8 +123,8 @@ export function __awaiter(thisArg, _arguments, P, generator) {
123
123
  }
124
124
 
125
125
  export function __generator(thisArg, body) {
126
- var _ = { label: 0, sent: function() { if (t[0] & 1) throw t[1]; return t[1]; }, trys: [], ops: [] }, f, y, t, g;
127
- return g = { next: verb(0), "throw": verb(1), "return": verb(2) }, typeof Symbol === "function" && (g[Symbol.iterator] = function() { return this; }), g;
126
+ var _ = { label: 0, sent: function() { if (t[0] & 1) throw t[1]; return t[1]; }, trys: [], ops: [] }, f, y, t, g = Object.create((typeof Iterator === "function" ? Iterator : Object).prototype);
127
+ return g.next = verb(0), g["throw"] = verb(1), g["return"] = verb(2), typeof Symbol === "function" && (g[Symbol.iterator] = function() { return this; }), g;
128
128
  function verb(n) { return function (v) { return step([n, v]); }; }
129
129
  function step(op) {
130
130
  if (f) throw new TypeError("Generator is already executing.");
@@ -228,7 +228,7 @@ export function __await(v) {
228
228
  export function __asyncGenerator(thisArg, _arguments, generator) {
229
229
  if (!Symbol.asyncIterator) throw new TypeError("Symbol.asyncIterator is not defined.");
230
230
  var g = generator.apply(thisArg, _arguments || []), i, q = [];
231
- return i = {}, verb("next"), verb("throw"), verb("return", awaitReturn), i[Symbol.asyncIterator] = function () { return this; }, i;
231
+ return i = Object.create((typeof AsyncIterator === "function" ? AsyncIterator : Object).prototype), verb("next"), verb("throw"), verb("return", awaitReturn), i[Symbol.asyncIterator] = function () { return this; }, i;
232
232
  function awaitReturn(f) { return function (v) { return Promise.resolve(v).then(f, reject); }; }
233
233
  function verb(n, f) { if (g[n]) { i[n] = function (v) { return new Promise(function (a, b) { q.push([n, v, a, b]) > 1 || resume(n, v); }); }; if (f) i[n] = f(i[n]); } }
234
234
  function resume(n, v) { try { step(g[n](v)); } catch (e) { settle(q[0][3], e); } }
@@ -327,17 +327,22 @@ export function __disposeResources(env) {
327
327
  env.error = env.hasError ? new _SuppressedError(e, env.error, "An error was suppressed during disposal.") : e;
328
328
  env.hasError = true;
329
329
  }
330
+ var r, s = 0;
330
331
  function next() {
331
- while (env.stack.length) {
332
- var rec = env.stack.pop();
332
+ while (r = env.stack.pop()) {
333
333
  try {
334
- var result = rec.dispose && rec.dispose.call(rec.value);
335
- if (rec.async) return Promise.resolve(result).then(next, function(e) { fail(e); return next(); });
334
+ if (!r.async && s === 1) return s = 0, env.stack.push(r), Promise.resolve().then(next);
335
+ if (r.dispose) {
336
+ var result = r.dispose.call(r.value);
337
+ if (r.async) return s |= 2, Promise.resolve(result).then(next, function(e) { fail(e); return next(); });
338
+ }
339
+ else s |= 1;
336
340
  }
337
341
  catch (e) {
338
342
  fail(e);
339
343
  }
340
344
  }
345
+ if (s === 1) return env.hasError ? Promise.reject(env.error) : Promise.resolve();
341
346
  if (env.hasError) throw env.error;
342
347
  }
343
348
  return next();
@@ -12,7 +12,7 @@ LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
12
12
  OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
13
13
  PERFORMANCE OF THIS SOFTWARE.
14
14
  ***************************************************************************** */
15
- /* global Reflect, Promise, SuppressedError, Symbol */
15
+ /* global Reflect, Promise, SuppressedError, Symbol, Iterator */
16
16
 
17
17
  var extendStatics = function(d, b) {
18
18
  extendStatics = Object.setPrototypeOf ||
@@ -123,8 +123,8 @@ export function __awaiter(thisArg, _arguments, P, generator) {
123
123
  }
124
124
 
125
125
  export function __generator(thisArg, body) {
126
- var _ = { label: 0, sent: function() { if (t[0] & 1) throw t[1]; return t[1]; }, trys: [], ops: [] }, f, y, t, g;
127
- return g = { next: verb(0), "throw": verb(1), "return": verb(2) }, typeof Symbol === "function" && (g[Symbol.iterator] = function() { return this; }), g;
126
+ var _ = { label: 0, sent: function() { if (t[0] & 1) throw t[1]; return t[1]; }, trys: [], ops: [] }, f, y, t, g = Object.create((typeof Iterator === "function" ? Iterator : Object).prototype);
127
+ return g.next = verb(0), g["throw"] = verb(1), g["return"] = verb(2), typeof Symbol === "function" && (g[Symbol.iterator] = function() { return this; }), g;
128
128
  function verb(n) { return function (v) { return step([n, v]); }; }
129
129
  function step(op) {
130
130
  if (f) throw new TypeError("Generator is already executing.");
@@ -228,7 +228,7 @@ export function __await(v) {
228
228
  export function __asyncGenerator(thisArg, _arguments, generator) {
229
229
  if (!Symbol.asyncIterator) throw new TypeError("Symbol.asyncIterator is not defined.");
230
230
  var g = generator.apply(thisArg, _arguments || []), i, q = [];
231
- return i = {}, verb("next"), verb("throw"), verb("return", awaitReturn), i[Symbol.asyncIterator] = function () { return this; }, i;
231
+ return i = Object.create((typeof AsyncIterator === "function" ? AsyncIterator : Object).prototype), verb("next"), verb("throw"), verb("return", awaitReturn), i[Symbol.asyncIterator] = function () { return this; }, i;
232
232
  function awaitReturn(f) { return function (v) { return Promise.resolve(v).then(f, reject); }; }
233
233
  function verb(n, f) { if (g[n]) { i[n] = function (v) { return new Promise(function (a, b) { q.push([n, v, a, b]) > 1 || resume(n, v); }); }; if (f) i[n] = f(i[n]); } }
234
234
  function resume(n, v) { try { step(g[n](v)); } catch (e) { settle(q[0][3], e); } }
@@ -326,17 +326,22 @@ export function __disposeResources(env) {
326
326
  env.error = env.hasError ? new _SuppressedError(e, env.error, "An error was suppressed during disposal.") : e;
327
327
  env.hasError = true;
328
328
  }
329
+ var r, s = 0;
329
330
  function next() {
330
- while (env.stack.length) {
331
- var rec = env.stack.pop();
331
+ while (r = env.stack.pop()) {
332
332
  try {
333
- var result = rec.dispose && rec.dispose.call(rec.value);
334
- if (rec.async) return Promise.resolve(result).then(next, function(e) { fail(e); return next(); });
333
+ if (!r.async && s === 1) return s = 0, env.stack.push(r), Promise.resolve().then(next);
334
+ if (r.dispose) {
335
+ var result = r.dispose.call(r.value);
336
+ if (r.async) return s |= 2, Promise.resolve(result).then(next, function(e) { fail(e); return next(); });
337
+ }
338
+ else s |= 1;
335
339
  }
336
340
  catch (e) {
337
- fail(e);
341
+ fail(e);
338
342
  }
339
343
  }
344
+ if (s === 1) return env.hasError ? Promise.reject(env.error) : Promise.resolve();
340
345
  if (env.hasError) throw env.error;
341
346
  }
342
347
  return next();
@@ -12,7 +12,7 @@ LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
12
12
  OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
13
13
  PERFORMANCE OF THIS SOFTWARE.
14
14
  ***************************************************************************** */
15
- /* global global, define, Symbol, Reflect, Promise, SuppressedError */
15
+ /* global global, define, Symbol, Reflect, Promise, SuppressedError, Iterator */
16
16
  var __extends;
17
17
  var __assign;
18
18
  var __rest;
@@ -171,8 +171,8 @@ var __disposeResources;
171
171
  };
172
172
 
173
173
  __generator = function (thisArg, body) {
174
- var _ = { label: 0, sent: function() { if (t[0] & 1) throw t[1]; return t[1]; }, trys: [], ops: [] }, f, y, t, g;
175
- return g = { next: verb(0), "throw": verb(1), "return": verb(2) }, typeof Symbol === "function" && (g[Symbol.iterator] = function() { return this; }), g;
174
+ var _ = { label: 0, sent: function() { if (t[0] & 1) throw t[1]; return t[1]; }, trys: [], ops: [] }, f, y, t, g = Object.create((typeof Iterator === "function" ? Iterator : Object).prototype);
175
+ return g.next = verb(0), g["throw"] = verb(1), g["return"] = verb(2), typeof Symbol === "function" && (g[Symbol.iterator] = function() { return this; }), g;
176
176
  function verb(n) { return function (v) { return step([n, v]); }; }
177
177
  function step(op) {
178
178
  if (f) throw new TypeError("Generator is already executing.");
@@ -276,7 +276,7 @@ var __disposeResources;
276
276
  __asyncGenerator = function (thisArg, _arguments, generator) {
277
277
  if (!Symbol.asyncIterator) throw new TypeError("Symbol.asyncIterator is not defined.");
278
278
  var g = generator.apply(thisArg, _arguments || []), i, q = [];
279
- return i = {}, verb("next"), verb("throw"), verb("return", awaitReturn), i[Symbol.asyncIterator] = function () { return this; }, i;
279
+ return i = Object.create((typeof AsyncIterator === "function" ? AsyncIterator : Object).prototype), verb("next"), verb("throw"), verb("return", awaitReturn), i[Symbol.asyncIterator] = function () { return this; }, i;
280
280
  function awaitReturn(f) { return function (v) { return Promise.resolve(v).then(f, reject); }; }
281
281
  function verb(n, f) { if (g[n]) { i[n] = function (v) { return new Promise(function (a, b) { q.push([n, v, a, b]) > 1 || resume(n, v); }); }; if (f) i[n] = f(i[n]); } }
282
282
  function resume(n, v) { try { step(g[n](v)); } catch (e) { settle(q[0][3], e); } }
@@ -374,17 +374,22 @@ var __disposeResources;
374
374
  env.error = env.hasError ? new _SuppressedError(e, env.error, "An error was suppressed during disposal.") : e;
375
375
  env.hasError = true;
376
376
  }
377
+ var r, s = 0;
377
378
  function next() {
378
- while (env.stack.length) {
379
- var rec = env.stack.pop();
379
+ while (r = env.stack.pop()) {
380
380
  try {
381
- var result = rec.dispose && rec.dispose.call(rec.value);
382
- if (rec.async) return Promise.resolve(result).then(next, function(e) { fail(e); return next(); });
381
+ if (!r.async && s === 1) return s = 0, env.stack.push(r), Promise.resolve().then(next);
382
+ if (r.dispose) {
383
+ var result = r.dispose.call(r.value);
384
+ if (r.async) return s |= 2, Promise.resolve(result).then(next, function(e) { fail(e); return next(); });
385
+ }
386
+ else s |= 1;
383
387
  }
384
388
  catch (e) {
385
389
  fail(e);
386
390
  }
387
391
  }
392
+ if (s === 1) return env.hasError ? Promise.reject(env.error) : Promise.resolve();
388
393
  if (env.hasError) throw env.error;
389
394
  }
390
395
  return next();