@cdk8s/awscdk-resolver 0.0.101 → 0.0.103
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 +14 -14
- package/node_modules/@aws-sdk/client-sso/package.json +11 -11
- package/node_modules/@aws-sdk/client-sso-oidc/package.json +13 -13
- package/node_modules/@aws-sdk/client-sts/package.json +13 -13
- package/node_modules/@aws-sdk/core/README.md +35 -1
- package/node_modules/@aws-sdk/core/client.js +5 -0
- package/node_modules/@aws-sdk/core/dist-cjs/index.js +5 -437
- package/node_modules/@aws-sdk/core/dist-cjs/submodules/client/index.js +38 -0
- package/node_modules/@aws-sdk/core/dist-cjs/submodules/httpAuthSchemes/index.js +226 -0
- package/node_modules/@aws-sdk/core/dist-cjs/submodules/protocols/index.js +228 -0
- package/node_modules/@aws-sdk/core/dist-es/index.js +3 -3
- package/node_modules/@aws-sdk/core/dist-types/index.d.ts +22 -3
- package/node_modules/@aws-sdk/core/dist-types/ts3.4/index.d.ts +3 -3
- package/node_modules/@aws-sdk/core/httpAuthSchemes.js +5 -0
- package/node_modules/@aws-sdk/core/package.json +39 -2
- package/node_modules/@aws-sdk/core/protocols.js +5 -0
- 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 +7 -7
- package/node_modules/@aws-sdk/credential-provider-node/package.json +8 -8
- 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-host-header/package.json +2 -2
- package/node_modules/@aws-sdk/middleware-logger/package.json +2 -2
- package/node_modules/@aws-sdk/middleware-recursion-detection/package.json +2 -2
- package/node_modules/@aws-sdk/middleware-user-agent/package.json +3 -3
- package/node_modules/@aws-sdk/region-config-resolver/package.json +2 -2
- package/node_modules/@aws-sdk/token-providers/package.json +3 -3
- package/node_modules/@aws-sdk/types/dist-cjs/index.js +0 -4
- package/node_modules/@aws-sdk/types/dist-types/logger.d.ts +2 -2
- package/node_modules/@aws-sdk/types/package.json +1 -1
- package/node_modules/@aws-sdk/util-endpoints/package.json +2 -2
- package/node_modules/@aws-sdk/util-user-agent-browser/package.json +2 -2
- package/node_modules/@aws-sdk/util-user-agent-node/package.json +2 -2
- package/node_modules/@smithy/core/package.json +3 -3
- package/node_modules/@smithy/fetch-http-handler/dist-cjs/index.js +10 -3
- package/node_modules/@smithy/fetch-http-handler/dist-es/fetch-http-handler.js +10 -3
- package/node_modules/@smithy/fetch-http-handler/package.json +1 -1
- package/node_modules/@smithy/middleware-retry/package.json +2 -2
- package/node_modules/@smithy/smithy-client/package.json +2 -2
- package/node_modules/@smithy/util-defaults-mode-browser/package.json +2 -2
- package/node_modules/@smithy/util-defaults-mode-node/package.json +2 -2
- package/node_modules/@smithy/util-stream/package.json +2 -2
- package/package.json +5 -5
- package/node_modules/@aws-sdk/core/CHANGELOG.md +0 -323
- package/node_modules/@aws-sdk/core/api-extractor.json +0 -4
- package/node_modules/@aws-sdk/core/dist-cjs/client/emitWarningIfUnsupportedVersion.js +0 -1
- package/node_modules/@aws-sdk/core/dist-cjs/client/index.js +0 -1
- package/node_modules/@aws-sdk/core/dist-cjs/httpAuthSchemes/aws_sdk/AwsSdkSigV4Signer.js +0 -1
- package/node_modules/@aws-sdk/core/dist-cjs/httpAuthSchemes/aws_sdk/index.js +0 -1
- package/node_modules/@aws-sdk/core/dist-cjs/httpAuthSchemes/aws_sdk/resolveAwsSdkSigV4Config.js +0 -1
- package/node_modules/@aws-sdk/core/dist-cjs/httpAuthSchemes/index.js +0 -1
- package/node_modules/@aws-sdk/core/dist-cjs/httpAuthSchemes/utils/getDateHeader.js +0 -1
- package/node_modules/@aws-sdk/core/dist-cjs/httpAuthSchemes/utils/getSkewCorrectedDate.js +0 -1
- package/node_modules/@aws-sdk/core/dist-cjs/httpAuthSchemes/utils/getUpdatedSystemClockOffset.js +0 -1
- package/node_modules/@aws-sdk/core/dist-cjs/httpAuthSchemes/utils/index.js +0 -1
- package/node_modules/@aws-sdk/core/dist-cjs/httpAuthSchemes/utils/isClockSkewed.js +0 -1
- package/node_modules/@aws-sdk/core/dist-cjs/protocols/coercing-serializers.js +0 -1
- package/node_modules/@aws-sdk/core/dist-cjs/protocols/common.js +0 -1
- package/node_modules/@aws-sdk/core/dist-cjs/protocols/index.js +0 -1
- package/node_modules/@aws-sdk/core/dist-cjs/protocols/json/awsExpectUnion.js +0 -1
- package/node_modules/@aws-sdk/core/dist-cjs/protocols/json/parseJsonBody.js +0 -1
- package/node_modules/@aws-sdk/core/dist-cjs/protocols/xml/parseXmlBody.js +0 -1
- package/node_modules/@aws-sdk/core/integ/request-handlers/request-handlers.integ.spec.ts +0 -158
- package/node_modules/@aws-sdk/core/jest.config.integ.js +0 -4
- package/node_modules/@aws-sdk/core/jest.config.js +0 -6
- package/node_modules/@aws-sdk/core/scripts/lint.js +0 -24
- package/node_modules/@aws-sdk/core/src/client/emitWarningIfUnsupportedVersion.spec.ts +0 -70
- package/node_modules/@aws-sdk/core/src/client/emitWarningIfUnsupportedVersion.ts +0 -26
- package/node_modules/@aws-sdk/core/src/client/index.ts +0 -1
- package/node_modules/@aws-sdk/core/src/httpAuthSchemes/aws_sdk/AwsSdkSigV4Signer.spec.ts +0 -30
- package/node_modules/@aws-sdk/core/src/httpAuthSchemes/aws_sdk/AwsSdkSigV4Signer.ts +0 -134
- package/node_modules/@aws-sdk/core/src/httpAuthSchemes/aws_sdk/index.ts +0 -2
- package/node_modules/@aws-sdk/core/src/httpAuthSchemes/aws_sdk/resolveAwsSdkSigV4Config.ts +0 -244
- package/node_modules/@aws-sdk/core/src/httpAuthSchemes/index.ts +0 -1
- package/node_modules/@aws-sdk/core/src/httpAuthSchemes/utils/getDateHeader.ts +0 -7
- package/node_modules/@aws-sdk/core/src/httpAuthSchemes/utils/getSkewCorrectedDate.spec.ts +0 -17
- package/node_modules/@aws-sdk/core/src/httpAuthSchemes/utils/getSkewCorrectedDate.ts +0 -8
- package/node_modules/@aws-sdk/core/src/httpAuthSchemes/utils/getUpdatedSystemClockOffset.spec.ts +0 -37
- package/node_modules/@aws-sdk/core/src/httpAuthSchemes/utils/getUpdatedSystemClockOffset.ts +0 -18
- package/node_modules/@aws-sdk/core/src/httpAuthSchemes/utils/index.ts +0 -3
- package/node_modules/@aws-sdk/core/src/httpAuthSchemes/utils/isClockSkewed.spec.ts +0 -32
- package/node_modules/@aws-sdk/core/src/httpAuthSchemes/utils/isClockSkewed.ts +0 -12
- package/node_modules/@aws-sdk/core/src/index.ts +0 -3
- package/node_modules/@aws-sdk/core/src/protocols/coercing-serializers.spec.ts +0 -76
- package/node_modules/@aws-sdk/core/src/protocols/coercing-serializers.ts +0 -72
- package/node_modules/@aws-sdk/core/src/protocols/common.ts +0 -5
- package/node_modules/@aws-sdk/core/src/protocols/index.ts +0 -4
- package/node_modules/@aws-sdk/core/src/protocols/json/awsExpectUnion.spec.ts +0 -30
- package/node_modules/@aws-sdk/core/src/protocols/json/awsExpectUnion.ts +0 -17
- package/node_modules/@aws-sdk/core/src/protocols/json/parseJsonBody.ts +0 -60
- package/node_modules/@aws-sdk/core/src/protocols/xml/parseXmlBody.spec.ts +0 -60
- package/node_modules/@aws-sdk/core/src/protocols/xml/parseXmlBody.ts +0 -64
- package/node_modules/@aws-sdk/core/tsconfig.cjs.json +0 -9
- package/node_modules/@aws-sdk/core/tsconfig.cjs.tsbuildinfo +0 -1
- package/node_modules/@aws-sdk/core/tsconfig.es.json +0 -9
- package/node_modules/@aws-sdk/core/tsconfig.es.tsbuildinfo +0 -1
- package/node_modules/@aws-sdk/core/tsconfig.types.json +0 -9
- package/node_modules/@aws-sdk/core/tsconfig.types.tsbuildinfo +0 -1
- /package/node_modules/@aws-sdk/core/dist-es/{client → submodules/client}/emitWarningIfUnsupportedVersion.js +0 -0
- /package/node_modules/@aws-sdk/core/dist-es/{client → submodules/client}/index.js +0 -0
- /package/node_modules/@aws-sdk/core/dist-es/{httpAuthSchemes → submodules/httpAuthSchemes}/aws_sdk/AwsSdkSigV4Signer.js +0 -0
- /package/node_modules/@aws-sdk/core/dist-es/{httpAuthSchemes → submodules/httpAuthSchemes}/aws_sdk/index.js +0 -0
- /package/node_modules/@aws-sdk/core/dist-es/{httpAuthSchemes → submodules/httpAuthSchemes}/aws_sdk/resolveAwsSdkSigV4Config.js +0 -0
- /package/node_modules/@aws-sdk/core/dist-es/{httpAuthSchemes → submodules/httpAuthSchemes}/index.js +0 -0
- /package/node_modules/@aws-sdk/core/dist-es/{httpAuthSchemes → submodules/httpAuthSchemes}/utils/getDateHeader.js +0 -0
- /package/node_modules/@aws-sdk/core/dist-es/{httpAuthSchemes → submodules/httpAuthSchemes}/utils/getSkewCorrectedDate.js +0 -0
- /package/node_modules/@aws-sdk/core/dist-es/{httpAuthSchemes → submodules/httpAuthSchemes}/utils/getUpdatedSystemClockOffset.js +0 -0
- /package/node_modules/@aws-sdk/core/dist-es/{httpAuthSchemes → submodules/httpAuthSchemes}/utils/index.js +0 -0
- /package/node_modules/@aws-sdk/core/dist-es/{httpAuthSchemes → submodules/httpAuthSchemes}/utils/isClockSkewed.js +0 -0
- /package/node_modules/@aws-sdk/core/dist-es/{protocols → submodules/protocols}/coercing-serializers.js +0 -0
- /package/node_modules/@aws-sdk/core/dist-es/{protocols → submodules/protocols}/common.js +0 -0
- /package/node_modules/@aws-sdk/core/dist-es/{protocols → submodules/protocols}/index.js +0 -0
- /package/node_modules/@aws-sdk/core/dist-es/{protocols → submodules/protocols}/json/awsExpectUnion.js +0 -0
- /package/node_modules/@aws-sdk/core/dist-es/{protocols → submodules/protocols}/json/parseJsonBody.js +0 -0
- /package/node_modules/@aws-sdk/core/dist-es/{protocols → submodules/protocols}/xml/parseXmlBody.js +0 -0
- /package/node_modules/@aws-sdk/core/dist-types/{client → submodules/client}/emitWarningIfUnsupportedVersion.d.ts +0 -0
- /package/node_modules/@aws-sdk/core/dist-types/{client → submodules/client}/index.d.ts +0 -0
- /package/node_modules/@aws-sdk/core/dist-types/{httpAuthSchemes → submodules/httpAuthSchemes}/aws_sdk/AwsSdkSigV4Signer.d.ts +0 -0
- /package/node_modules/@aws-sdk/core/dist-types/{httpAuthSchemes → submodules/httpAuthSchemes}/aws_sdk/index.d.ts +0 -0
- /package/node_modules/@aws-sdk/core/dist-types/{httpAuthSchemes → submodules/httpAuthSchemes}/aws_sdk/resolveAwsSdkSigV4Config.d.ts +0 -0
- /package/node_modules/@aws-sdk/core/dist-types/{httpAuthSchemes → submodules/httpAuthSchemes}/index.d.ts +0 -0
- /package/node_modules/@aws-sdk/core/dist-types/{httpAuthSchemes → submodules/httpAuthSchemes}/utils/getDateHeader.d.ts +0 -0
- /package/node_modules/@aws-sdk/core/dist-types/{httpAuthSchemes → submodules/httpAuthSchemes}/utils/getSkewCorrectedDate.d.ts +0 -0
- /package/node_modules/@aws-sdk/core/dist-types/{httpAuthSchemes → submodules/httpAuthSchemes}/utils/getUpdatedSystemClockOffset.d.ts +0 -0
- /package/node_modules/@aws-sdk/core/dist-types/{httpAuthSchemes → submodules/httpAuthSchemes}/utils/index.d.ts +0 -0
- /package/node_modules/@aws-sdk/core/dist-types/{httpAuthSchemes → submodules/httpAuthSchemes}/utils/isClockSkewed.d.ts +0 -0
- /package/node_modules/@aws-sdk/core/dist-types/{protocols → submodules/protocols}/coercing-serializers.d.ts +0 -0
- /package/node_modules/@aws-sdk/core/dist-types/{protocols → submodules/protocols}/common.d.ts +0 -0
- /package/node_modules/@aws-sdk/core/dist-types/{protocols → submodules/protocols}/index.d.ts +0 -0
- /package/node_modules/@aws-sdk/core/dist-types/{protocols → submodules/protocols}/json/awsExpectUnion.d.ts +0 -0
- /package/node_modules/@aws-sdk/core/dist-types/{protocols → submodules/protocols}/json/parseJsonBody.d.ts +0 -0
- /package/node_modules/@aws-sdk/core/dist-types/{protocols → submodules/protocols}/xml/parseXmlBody.d.ts +0 -0
- /package/node_modules/@aws-sdk/core/dist-types/ts3.4/{client → submodules/client}/emitWarningIfUnsupportedVersion.d.ts +0 -0
- /package/node_modules/@aws-sdk/core/dist-types/ts3.4/{client → submodules/client}/index.d.ts +0 -0
- /package/node_modules/@aws-sdk/core/dist-types/ts3.4/{httpAuthSchemes → submodules/httpAuthSchemes}/aws_sdk/AwsSdkSigV4Signer.d.ts +0 -0
- /package/node_modules/@aws-sdk/core/dist-types/ts3.4/{httpAuthSchemes → submodules/httpAuthSchemes}/aws_sdk/index.d.ts +0 -0
- /package/node_modules/@aws-sdk/core/dist-types/ts3.4/{httpAuthSchemes → submodules/httpAuthSchemes}/aws_sdk/resolveAwsSdkSigV4Config.d.ts +0 -0
- /package/node_modules/@aws-sdk/core/dist-types/ts3.4/{httpAuthSchemes → submodules/httpAuthSchemes}/index.d.ts +0 -0
- /package/node_modules/@aws-sdk/core/dist-types/ts3.4/{httpAuthSchemes → submodules/httpAuthSchemes}/utils/getDateHeader.d.ts +0 -0
- /package/node_modules/@aws-sdk/core/dist-types/ts3.4/{httpAuthSchemes → submodules/httpAuthSchemes}/utils/getSkewCorrectedDate.d.ts +0 -0
- /package/node_modules/@aws-sdk/core/dist-types/ts3.4/{httpAuthSchemes → submodules/httpAuthSchemes}/utils/getUpdatedSystemClockOffset.d.ts +0 -0
- /package/node_modules/@aws-sdk/core/dist-types/ts3.4/{httpAuthSchemes → submodules/httpAuthSchemes}/utils/index.d.ts +0 -0
- /package/node_modules/@aws-sdk/core/dist-types/ts3.4/{httpAuthSchemes → submodules/httpAuthSchemes}/utils/isClockSkewed.d.ts +0 -0
- /package/node_modules/@aws-sdk/core/dist-types/ts3.4/{protocols → submodules/protocols}/coercing-serializers.d.ts +0 -0
- /package/node_modules/@aws-sdk/core/dist-types/ts3.4/{protocols → submodules/protocols}/common.d.ts +0 -0
- /package/node_modules/@aws-sdk/core/dist-types/ts3.4/{protocols → submodules/protocols}/index.d.ts +0 -0
- /package/node_modules/@aws-sdk/core/dist-types/ts3.4/{protocols → submodules/protocols}/json/awsExpectUnion.d.ts +0 -0
- /package/node_modules/@aws-sdk/core/dist-types/ts3.4/{protocols → submodules/protocols}/json/parseJsonBody.d.ts +0 -0
- /package/node_modules/@aws-sdk/core/dist-types/ts3.4/{protocols → submodules/protocols}/xml/parseXmlBody.d.ts +0 -0
@@ -1,323 +0,0 @@
|
|
1
|
-
# Change Log
|
2
|
-
|
3
|
-
All notable changes to this project will be documented in this file.
|
4
|
-
See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
|
5
|
-
|
6
|
-
# [3.575.0](https://github.com/aws/aws-sdk-js-v3/compare/v3.574.0...v3.575.0) (2024-05-13)
|
7
|
-
|
8
|
-
**Note:** Version bump only for package @aws-sdk/core
|
9
|
-
|
10
|
-
|
11
|
-
|
12
|
-
|
13
|
-
|
14
|
-
# [3.572.0](https://github.com/aws/aws-sdk-js-v3/compare/v3.571.0...v3.572.0) (2024-05-08)
|
15
|
-
|
16
|
-
**Note:** Version bump only for package @aws-sdk/core
|
17
|
-
|
18
|
-
|
19
|
-
|
20
|
-
|
21
|
-
|
22
|
-
# [3.567.0](https://github.com/aws/aws-sdk-js-v3/compare/v3.566.0...v3.567.0) (2024-05-01)
|
23
|
-
|
24
|
-
|
25
|
-
### Features
|
26
|
-
|
27
|
-
* end support for Node.js 14.x ([#6034](https://github.com/aws/aws-sdk-js-v3/issues/6034)) ([d196411](https://github.com/aws/aws-sdk-js-v3/commit/d19641119f07d62c29f12348f448cd834d841533))
|
28
|
-
|
29
|
-
|
30
|
-
|
31
|
-
|
32
|
-
|
33
|
-
# [3.556.0](https://github.com/aws/aws-sdk-js-v3/compare/v3.555.0...v3.556.0) (2024-04-16)
|
34
|
-
|
35
|
-
**Note:** Version bump only for package @aws-sdk/core
|
36
|
-
|
37
|
-
|
38
|
-
|
39
|
-
|
40
|
-
|
41
|
-
# [3.554.0](https://github.com/aws/aws-sdk-js-v3/compare/v3.553.0...v3.554.0) (2024-04-11)
|
42
|
-
|
43
|
-
|
44
|
-
### Features
|
45
|
-
|
46
|
-
* **core:** validate XML during deserialization ([#5991](https://github.com/aws/aws-sdk-js-v3/issues/5991)) ([50002cf](https://github.com/aws/aws-sdk-js-v3/commit/50002cf02856165ebadecd0ebd975ac7358ec331))
|
47
|
-
|
48
|
-
|
49
|
-
|
50
|
-
|
51
|
-
|
52
|
-
# [3.552.0](https://github.com/aws/aws-sdk-js-v3/compare/v3.551.0...v3.552.0) (2024-04-09)
|
53
|
-
|
54
|
-
**Note:** Version bump only for package @aws-sdk/core
|
55
|
-
|
56
|
-
|
57
|
-
|
58
|
-
|
59
|
-
|
60
|
-
# [3.549.0](https://github.com/aws/aws-sdk-js-v3/compare/v3.548.0...v3.549.0) (2024-04-04)
|
61
|
-
|
62
|
-
**Note:** Version bump only for package @aws-sdk/core
|
63
|
-
|
64
|
-
|
65
|
-
|
66
|
-
|
67
|
-
|
68
|
-
# [3.535.0](https://github.com/aws/aws-sdk-js-v3/compare/v3.534.0...v3.535.0) (2024-03-15)
|
69
|
-
|
70
|
-
**Note:** Version bump only for package @aws-sdk/core
|
71
|
-
|
72
|
-
|
73
|
-
|
74
|
-
|
75
|
-
|
76
|
-
# [3.533.0](https://github.com/aws/aws-sdk-js-v3/compare/v3.532.0...v3.533.0) (2024-03-13)
|
77
|
-
|
78
|
-
**Note:** Version bump only for package @aws-sdk/core
|
79
|
-
|
80
|
-
|
81
|
-
|
82
|
-
|
83
|
-
|
84
|
-
## [3.529.1](https://github.com/aws/aws-sdk-js-v3/compare/v3.529.0...v3.529.1) (2024-03-08)
|
85
|
-
|
86
|
-
|
87
|
-
### Bug Fixes
|
88
|
-
|
89
|
-
* **core:** add missing fast-xml-parser dependency ([#5869](https://github.com/aws/aws-sdk-js-v3/issues/5869)) ([96c375c](https://github.com/aws/aws-sdk-js-v3/commit/96c375cb36c838c76b5384f96d79ad47d9091ee7))
|
90
|
-
|
91
|
-
|
92
|
-
|
93
|
-
|
94
|
-
|
95
|
-
# [3.529.0](https://github.com/aws/aws-sdk-js-v3/compare/v3.528.0...v3.529.0) (2024-03-07)
|
96
|
-
|
97
|
-
**Note:** Version bump only for package @aws-sdk/core
|
98
|
-
|
99
|
-
|
100
|
-
|
101
|
-
|
102
|
-
|
103
|
-
# [3.525.0](https://github.com/aws/aws-sdk-js-v3/compare/v3.524.0...v3.525.0) (2024-02-29)
|
104
|
-
|
105
|
-
**Note:** Version bump only for package @aws-sdk/core
|
106
|
-
|
107
|
-
|
108
|
-
|
109
|
-
|
110
|
-
|
111
|
-
# [3.523.0](https://github.com/aws/aws-sdk-js-v3/compare/v3.522.0...v3.523.0) (2024-02-27)
|
112
|
-
|
113
|
-
|
114
|
-
### Bug Fixes
|
115
|
-
|
116
|
-
* **core:** add error metadata indicating clock skew correction ([#5830](https://github.com/aws/aws-sdk-js-v3/issues/5830)) ([46e5e8d](https://github.com/aws/aws-sdk-js-v3/commit/46e5e8daa0b13208f149bbd0b54857498558e152))
|
117
|
-
|
118
|
-
|
119
|
-
|
120
|
-
|
121
|
-
|
122
|
-
# [3.521.0](https://github.com/aws/aws-sdk-js-v3/compare/v3.520.0...v3.521.0) (2024-02-23)
|
123
|
-
|
124
|
-
|
125
|
-
### Features
|
126
|
-
|
127
|
-
* requestHandler ctor param pass-through ([#5820](https://github.com/aws/aws-sdk-js-v3/issues/5820)) ([9fec71d](https://github.com/aws/aws-sdk-js-v3/commit/9fec71d1933cd8e3db118c164bca16edc2305532))
|
128
|
-
|
129
|
-
|
130
|
-
|
131
|
-
|
132
|
-
|
133
|
-
# [3.513.0](https://github.com/aws/aws-sdk-js-v3/compare/v3.512.0...v3.513.0) (2024-02-13)
|
134
|
-
|
135
|
-
|
136
|
-
### Features
|
137
|
-
|
138
|
-
* **experimentalIdentityAndAuth:** release phase for services without customizations ([#5787](https://github.com/aws/aws-sdk-js-v3/issues/5787)) ([4004ff6](https://github.com/aws/aws-sdk-js-v3/commit/4004ff68a8ad20f6e60e8fab1f8952928f92f4b7))
|
139
|
-
|
140
|
-
|
141
|
-
|
142
|
-
|
143
|
-
|
144
|
-
# [3.511.0](https://github.com/aws/aws-sdk-js-v3/compare/v3.510.0...v3.511.0) (2024-02-09)
|
145
|
-
|
146
|
-
|
147
|
-
### Bug Fixes
|
148
|
-
|
149
|
-
* **credential-provider-node:** pass client region to inner credential client region ([#5758](https://github.com/aws/aws-sdk-js-v3/issues/5758)) ([8c0b29e](https://github.com/aws/aws-sdk-js-v3/commit/8c0b29eabfe0ce8dbd2cbdcfb8b0a31b003bc3f2))
|
150
|
-
|
151
|
-
|
152
|
-
|
153
|
-
|
154
|
-
|
155
|
-
# [3.496.0](https://github.com/aws/aws-sdk-js-v3/compare/v3.495.0...v3.496.0) (2024-01-19)
|
156
|
-
|
157
|
-
|
158
|
-
### Bug Fixes
|
159
|
-
|
160
|
-
* get full list of exports for esm compat in dist-cjs ([#5694](https://github.com/aws/aws-sdk-js-v3/issues/5694)) ([5d26da6](https://github.com/aws/aws-sdk-js-v3/commit/5d26da6d07b593ae286ca674fb3cbff7c833cbb0))
|
161
|
-
|
162
|
-
|
163
|
-
|
164
|
-
|
165
|
-
|
166
|
-
# [3.495.0](https://github.com/aws/aws-sdk-js-v3/compare/v3.494.0...v3.495.0) (2024-01-18)
|
167
|
-
|
168
|
-
|
169
|
-
### Features
|
170
|
-
|
171
|
-
* use bundled dist-cjs build ([#5687](https://github.com/aws/aws-sdk-js-v3/issues/5687)) ([5f79e22](https://github.com/aws/aws-sdk-js-v3/commit/5f79e225e32f0b2ed5b432ae4e4108663eb0acfb))
|
172
|
-
|
173
|
-
|
174
|
-
|
175
|
-
|
176
|
-
|
177
|
-
# [3.490.0](https://github.com/aws/aws-sdk-js-v3/compare/v3.489.0...v3.490.0) (2024-01-11)
|
178
|
-
|
179
|
-
|
180
|
-
### Bug Fixes
|
181
|
-
|
182
|
-
* **experimentalIdentityAndAuth:** rename `AWSSDKSigV4` to `AwsSdkSigV4` ([#5667](https://github.com/aws/aws-sdk-js-v3/issues/5667)) ([9c3e91a](https://github.com/aws/aws-sdk-js-v3/commit/9c3e91aeb155cad42ce56cc116aa71bc8f2457c9))
|
183
|
-
|
184
|
-
|
185
|
-
|
186
|
-
|
187
|
-
|
188
|
-
# [3.485.0](https://github.com/aws/aws-sdk-js-v3/compare/v3.484.0...v3.485.0) (2024-01-03)
|
189
|
-
|
190
|
-
|
191
|
-
### Features
|
192
|
-
|
193
|
-
* **credential-providers:** add credentialScope field ([#5606](https://github.com/aws/aws-sdk-js-v3/issues/5606)) ([04c1459](https://github.com/aws/aws-sdk-js-v3/commit/04c14592898ac63ed87d47f2a53320ccaa991083))
|
194
|
-
|
195
|
-
|
196
|
-
|
197
|
-
|
198
|
-
|
199
|
-
# [3.481.0](https://github.com/aws/aws-sdk-js-v3/compare/v3.480.0...v3.481.0) (2023-12-26)
|
200
|
-
|
201
|
-
|
202
|
-
### Features
|
203
|
-
|
204
|
-
* codegen for command class builder ([#5604](https://github.com/aws/aws-sdk-js-v3/issues/5604)) ([4835de4](https://github.com/aws/aws-sdk-js-v3/commit/4835de4ebb8f302ae1e838ac1efaf5f12384910d))
|
205
|
-
|
206
|
-
|
207
|
-
|
208
|
-
|
209
|
-
|
210
|
-
# [3.477.0](https://github.com/aws/aws-sdk-js-v3/compare/v3.476.0...v3.477.0) (2023-12-19)
|
211
|
-
|
212
|
-
|
213
|
-
### Features
|
214
|
-
|
215
|
-
* xml codegen reduction ([#5566](https://github.com/aws/aws-sdk-js-v3/issues/5566)) ([3ed7c81](https://github.com/aws/aws-sdk-js-v3/commit/3ed7c81f9191182826de7645078cc6ed1d2ee959))
|
216
|
-
|
217
|
-
|
218
|
-
|
219
|
-
|
220
|
-
|
221
|
-
# [3.476.0](https://github.com/aws/aws-sdk-js-v3/compare/v3.475.0...v3.476.0) (2023-12-18)
|
222
|
-
|
223
|
-
|
224
|
-
### Bug Fixes
|
225
|
-
|
226
|
-
* **core:** wrap `credentialDefaultProvider` with `normalizeProvider` ([#5592](https://github.com/aws/aws-sdk-js-v3/issues/5592)) ([9faa8ad](https://github.com/aws/aws-sdk-js-v3/commit/9faa8ad8dfd3eeb642c7a237a72c8be745ab5ba4))
|
227
|
-
|
228
|
-
|
229
|
-
|
230
|
-
|
231
|
-
|
232
|
-
# [3.474.0](https://github.com/aws/aws-sdk-js-v3/compare/v3.473.0...v3.474.0) (2023-12-14)
|
233
|
-
|
234
|
-
|
235
|
-
### Features
|
236
|
-
|
237
|
-
* **core:** add `experimentalIdentityAndAuth` AWS SDK SigV4 support ([#5586](https://github.com/aws/aws-sdk-js-v3/issues/5586)) ([9a97df5](https://github.com/aws/aws-sdk-js-v3/commit/9a97df5953e722ed4887bcb65a41c019f08a5cbb))
|
238
|
-
|
239
|
-
|
240
|
-
|
241
|
-
|
242
|
-
|
243
|
-
# [3.468.0](https://github.com/aws/aws-sdk-js-v3/compare/v3.467.0...v3.468.0) (2023-12-06)
|
244
|
-
|
245
|
-
**Note:** Version bump only for package @aws-sdk/core
|
246
|
-
|
247
|
-
|
248
|
-
|
249
|
-
|
250
|
-
|
251
|
-
# [3.465.0](https://github.com/aws/aws-sdk-js-v3/compare/v3.464.0...v3.465.0) (2023-12-01)
|
252
|
-
|
253
|
-
**Note:** Version bump only for package @aws-sdk/core
|
254
|
-
|
255
|
-
|
256
|
-
|
257
|
-
|
258
|
-
|
259
|
-
# [3.451.0](https://github.com/aws/aws-sdk-js-v3/compare/v3.450.0...v3.451.0) (2023-11-14)
|
260
|
-
|
261
|
-
**Note:** Version bump only for package @aws-sdk/core
|
262
|
-
|
263
|
-
|
264
|
-
|
265
|
-
|
266
|
-
|
267
|
-
# [3.445.0](https://github.com/aws/aws-sdk-js-v3/compare/v3.444.0...v3.445.0) (2023-11-07)
|
268
|
-
|
269
|
-
|
270
|
-
### Bug Fixes
|
271
|
-
|
272
|
-
* **core:** add tslib ([#5459](https://github.com/aws/aws-sdk-js-v3/issues/5459)) ([35a1aed](https://github.com/aws/aws-sdk-js-v3/commit/35a1aed1f0d2d6fb33c24232cb24268a1f8c1b05))
|
273
|
-
|
274
|
-
|
275
|
-
|
276
|
-
|
277
|
-
|
278
|
-
# [3.441.0](https://github.com/aws/aws-sdk-js-v3/compare/v3.440.0...v3.441.0) (2023-11-01)
|
279
|
-
|
280
|
-
**Note:** Version bump only for package @aws-sdk/core
|
281
|
-
|
282
|
-
|
283
|
-
|
284
|
-
|
285
|
-
|
286
|
-
# [3.436.0](https://github.com/aws/aws-sdk-js-v3/compare/v3.435.0...v3.436.0) (2023-10-25)
|
287
|
-
|
288
|
-
**Note:** Version bump only for package @aws-sdk/core
|
289
|
-
|
290
|
-
|
291
|
-
|
292
|
-
|
293
|
-
|
294
|
-
# [3.433.0](https://github.com/aws/aws-sdk-js-v3/compare/v3.432.0...v3.433.0) (2023-10-20)
|
295
|
-
|
296
|
-
|
297
|
-
### Bug Fixes
|
298
|
-
|
299
|
-
* **codegen:** use partial record for enum keyed types ([#5391](https://github.com/aws/aws-sdk-js-v3/issues/5391)) ([70c2107](https://github.com/aws/aws-sdk-js-v3/commit/70c2107b970d035bfedb211278c88fdbfc2e5334))
|
300
|
-
|
301
|
-
|
302
|
-
|
303
|
-
|
304
|
-
|
305
|
-
# [3.431.0](https://github.com/aws/aws-sdk-js-v3/compare/v3.430.0...v3.431.0) (2023-10-18)
|
306
|
-
|
307
|
-
**Note:** Version bump only for package @aws-sdk/core
|
308
|
-
|
309
|
-
|
310
|
-
|
311
|
-
|
312
|
-
|
313
|
-
# [3.430.0](https://github.com/aws/aws-sdk-js-v3/compare/v3.429.0...v3.430.0) (2023-10-17)
|
314
|
-
|
315
|
-
**Note:** Version bump only for package @aws-sdk/core
|
316
|
-
|
317
|
-
|
318
|
-
|
319
|
-
|
320
|
-
|
321
|
-
# [3.429.0](https://github.com/aws/aws-sdk-js-v3/compare/v3.428.0...v3.429.0) (2023-10-16)
|
322
|
-
|
323
|
-
**Note:** Version bump only for package @aws-sdk/core
|
@@ -1 +0,0 @@
|
|
1
|
-
module.exports = require("../index.js");
|
@@ -1 +0,0 @@
|
|
1
|
-
module.exports = require("../index.js");
|
@@ -1 +0,0 @@
|
|
1
|
-
module.exports = require("../../index.js");
|
@@ -1 +0,0 @@
|
|
1
|
-
module.exports = require("../../index.js");
|
package/node_modules/@aws-sdk/core/dist-cjs/httpAuthSchemes/aws_sdk/resolveAwsSdkSigV4Config.js
DELETED
@@ -1 +0,0 @@
|
|
1
|
-
module.exports = require("../../index.js");
|
@@ -1 +0,0 @@
|
|
1
|
-
module.exports = require("../index.js");
|
@@ -1 +0,0 @@
|
|
1
|
-
module.exports = require("../../index.js");
|
@@ -1 +0,0 @@
|
|
1
|
-
module.exports = require("../../index.js");
|
package/node_modules/@aws-sdk/core/dist-cjs/httpAuthSchemes/utils/getUpdatedSystemClockOffset.js
DELETED
@@ -1 +0,0 @@
|
|
1
|
-
module.exports = require("../../index.js");
|
@@ -1 +0,0 @@
|
|
1
|
-
module.exports = require("../../index.js");
|
@@ -1 +0,0 @@
|
|
1
|
-
module.exports = require("../../index.js");
|
@@ -1 +0,0 @@
|
|
1
|
-
module.exports = require("../index.js");
|
@@ -1 +0,0 @@
|
|
1
|
-
module.exports = require("../index.js");
|
@@ -1 +0,0 @@
|
|
1
|
-
module.exports = require("../index.js");
|
@@ -1 +0,0 @@
|
|
1
|
-
module.exports = require("../../index.js");
|
@@ -1 +0,0 @@
|
|
1
|
-
module.exports = require("../../index.js");
|
@@ -1 +0,0 @@
|
|
1
|
-
module.exports = require("../../index.js");
|
@@ -1,158 +0,0 @@
|
|
1
|
-
import { Kinesis } from "@aws-sdk/client-kinesis";
|
2
|
-
import { S3 } from "@aws-sdk/client-s3";
|
3
|
-
import { TranscribeStreaming } from "@aws-sdk/client-transcribe-streaming";
|
4
|
-
import { WebSocketFetchHandler } from "@aws-sdk/middleware-websocket";
|
5
|
-
import { XhrHttpHandler } from "@aws-sdk/xhr-http-handler";
|
6
|
-
import { FetchHttpHandler } from "@smithy/fetch-http-handler";
|
7
|
-
import { NodeHttp2Handler, NodeHttpHandler } from "@smithy/node-http-handler";
|
8
|
-
import { Agent } from "https";
|
9
|
-
|
10
|
-
describe("request handler initialization", () => {
|
11
|
-
describe("http", () => {
|
12
|
-
it("should init with instances", async () => {
|
13
|
-
let instance: NodeHttpHandler;
|
14
|
-
let agentInstance: Agent;
|
15
|
-
const client = new S3({
|
16
|
-
requestHandler: (instance = new NodeHttpHandler({
|
17
|
-
requestTimeout: 2_000,
|
18
|
-
httpsAgent: (agentInstance = new Agent({ maxSockets: 25 })),
|
19
|
-
})),
|
20
|
-
});
|
21
|
-
expect(client.config.requestHandler).toBe(instance);
|
22
|
-
(instance as any).config = await (instance as any).configProvider;
|
23
|
-
expect((instance as any).config.httpsAgent).toBe(agentInstance);
|
24
|
-
expect((instance as any).config.requestTimeout).toEqual(2_000);
|
25
|
-
expect(agentInstance.maxSockets).toEqual(25);
|
26
|
-
});
|
27
|
-
it("should init with Agent pass-through", async () => {
|
28
|
-
let instance: NodeHttpHandler;
|
29
|
-
const client = new S3({
|
30
|
-
requestHandler: (instance = new NodeHttpHandler({
|
31
|
-
requestTimeout: 2_000,
|
32
|
-
httpsAgent: { maxSockets: 25 },
|
33
|
-
})),
|
34
|
-
});
|
35
|
-
expect(client.config.requestHandler).toBe(instance);
|
36
|
-
(instance as any).config = await (instance as any).configProvider;
|
37
|
-
expect((instance as any).config.requestTimeout).toEqual(2_000);
|
38
|
-
expect((instance as any).config.httpsAgent.maxSockets).toEqual(25);
|
39
|
-
});
|
40
|
-
it("should init with ctor pass-through with Agent instance", async () => {
|
41
|
-
let agentInstance: Agent;
|
42
|
-
const client = new S3({
|
43
|
-
requestHandler: {
|
44
|
-
requestTimeout: 2_000,
|
45
|
-
httpsAgent: (agentInstance = new Agent({ maxSockets: 25 })),
|
46
|
-
},
|
47
|
-
});
|
48
|
-
expect(client.config.requestHandler).toBeInstanceOf(NodeHttpHandler);
|
49
|
-
const instance = client.config.requestHandler;
|
50
|
-
(instance as any).config = await (instance as any).configProvider;
|
51
|
-
expect((instance as any).config.httpsAgent).toBe(agentInstance);
|
52
|
-
expect((instance as any).config.requestTimeout).toEqual(2_000);
|
53
|
-
expect(agentInstance.maxSockets).toEqual(25);
|
54
|
-
});
|
55
|
-
it("should init with ctor and Agent pass-through", async () => {
|
56
|
-
const client = new S3({
|
57
|
-
requestHandler: {
|
58
|
-
requestTimeout: 2_000,
|
59
|
-
httpsAgent: {
|
60
|
-
maxSockets: 25,
|
61
|
-
},
|
62
|
-
},
|
63
|
-
});
|
64
|
-
expect(client.config.requestHandler).toBeInstanceOf(NodeHttpHandler);
|
65
|
-
const instance = client.config.requestHandler;
|
66
|
-
(instance as any).config = await (instance as any).configProvider;
|
67
|
-
expect((instance as any).config.httpsAgent).toBeInstanceOf(Agent);
|
68
|
-
const agentInstance = (instance as any).config.httpsAgent;
|
69
|
-
expect((instance as any).config.requestTimeout).toEqual(2_000);
|
70
|
-
expect(agentInstance.maxSockets).toEqual(25);
|
71
|
-
});
|
72
|
-
});
|
73
|
-
|
74
|
-
describe("http2", () => {
|
75
|
-
it("should init with instances", async () => {
|
76
|
-
let instance: NodeHttp2Handler;
|
77
|
-
const client = new Kinesis({
|
78
|
-
requestHandler: (instance = new NodeHttp2Handler({
|
79
|
-
requestTimeout: 2_000,
|
80
|
-
})),
|
81
|
-
});
|
82
|
-
expect(client.config.requestHandler).toBe(instance);
|
83
|
-
(instance as any).config = await (instance as any).configProvider;
|
84
|
-
expect((instance as any).config.requestTimeout).toEqual(2_000);
|
85
|
-
});
|
86
|
-
it("should init with ctor pass-through", async () => {
|
87
|
-
const client = new Kinesis({
|
88
|
-
requestHandler: {
|
89
|
-
requestTimeout: 2_000,
|
90
|
-
},
|
91
|
-
});
|
92
|
-
expect(client.config.requestHandler).toBeInstanceOf(NodeHttp2Handler);
|
93
|
-
const instance = client.config.requestHandler;
|
94
|
-
(instance as any).config = await (instance as any).configProvider;
|
95
|
-
expect((instance as any).config.requestTimeout).toEqual(2_000);
|
96
|
-
});
|
97
|
-
});
|
98
|
-
|
99
|
-
describe("fetch", () => {
|
100
|
-
it("should init with instances", async () => {
|
101
|
-
let instance: FetchHttpHandler;
|
102
|
-
const handler = FetchHttpHandler.create((instance = new FetchHttpHandler({ requestTimeout: 2_000 })));
|
103
|
-
expect(handler).toBe(instance);
|
104
|
-
expect((instance as any).config.requestTimeout).toEqual(2_000);
|
105
|
-
});
|
106
|
-
it("should init with ctor pass-through", async () => {
|
107
|
-
const handler = FetchHttpHandler.create({ requestTimeout: 2_000 });
|
108
|
-
expect(handler).toBeInstanceOf(FetchHttpHandler);
|
109
|
-
expect((handler as any).config.requestTimeout).toEqual(2_000);
|
110
|
-
});
|
111
|
-
});
|
112
|
-
|
113
|
-
describe("websocket", () => {
|
114
|
-
it("should init with instances", async () => {
|
115
|
-
let instance: WebSocketFetchHandler;
|
116
|
-
const handler = WebSocketFetchHandler.create(
|
117
|
-
(instance = new WebSocketFetchHandler({ connectionTimeout: 2_000 }))
|
118
|
-
);
|
119
|
-
const client = new TranscribeStreaming({
|
120
|
-
requestHandler: handler,
|
121
|
-
});
|
122
|
-
expect(client.config.requestHandler).toBe(instance);
|
123
|
-
expect(handler).toBe(instance);
|
124
|
-
expect((await (handler as any).configPromise).connectionTimeout).toEqual(2_000);
|
125
|
-
});
|
126
|
-
it("should init with ctor pass-through", async () => {
|
127
|
-
const handler = WebSocketFetchHandler.create({ connectionTimeout: 2_000 });
|
128
|
-
const client = new TranscribeStreaming({
|
129
|
-
requestHandler: handler,
|
130
|
-
});
|
131
|
-
expect(client.config.requestHandler).toBe(handler);
|
132
|
-
expect(handler).toBeInstanceOf(WebSocketFetchHandler);
|
133
|
-
expect((await (handler as any).configPromise).connectionTimeout).toEqual(2_000);
|
134
|
-
});
|
135
|
-
});
|
136
|
-
|
137
|
-
describe("xhr", () => {
|
138
|
-
it("should init with instances", async () => {
|
139
|
-
let instance: XhrHttpHandler;
|
140
|
-
const handler = XhrHttpHandler.create((instance = new XhrHttpHandler({ requestTimeout: 2_000 })));
|
141
|
-
const client = new S3({
|
142
|
-
requestHandler: instance,
|
143
|
-
});
|
144
|
-
expect(client.config.requestHandler).toBe(handler);
|
145
|
-
expect(handler).toBe(instance);
|
146
|
-
expect((handler as any).config.requestTimeout).toEqual(2_000);
|
147
|
-
});
|
148
|
-
it("should init with ctor pass-through", async () => {
|
149
|
-
const handler = XhrHttpHandler.create({ requestTimeout: 2_000 });
|
150
|
-
const client = new S3({
|
151
|
-
requestHandler: handler,
|
152
|
-
});
|
153
|
-
expect(client.config.requestHandler).toBe(handler);
|
154
|
-
expect(handler).toBeInstanceOf(XhrHttpHandler);
|
155
|
-
expect((handler as any).config.requestTimeout).toEqual(2_000);
|
156
|
-
});
|
157
|
-
});
|
158
|
-
});
|
@@ -1,24 +0,0 @@
|
|
1
|
-
const fs = require("fs");
|
2
|
-
const path = require("path");
|
3
|
-
const assert = require("assert");
|
4
|
-
|
5
|
-
const root = path.join(__dirname, "..");
|
6
|
-
|
7
|
-
const pkgJson = require(path.join(root, "package.json"));
|
8
|
-
const srcFolders = fs.readdirSync(path.join(root, "src"));
|
9
|
-
|
10
|
-
assert(pkgJson.exports === undefined, "We cannot support package.json exports yet.");
|
11
|
-
|
12
|
-
/**
|
13
|
-
* We probably can't enable package.json exports until
|
14
|
-
* dropping support for Node.js 14.x and TypeScript 4.6.
|
15
|
-
*/
|
16
|
-
process.exit(0);
|
17
|
-
|
18
|
-
for (const srcFolder of srcFolders) {
|
19
|
-
if (fs.lstatSync(path.join(root, "src", srcFolder)).isDirectory()) {
|
20
|
-
if (!pkgJson.exports["./" + srcFolder]) {
|
21
|
-
throw new Error(`${srcFolder} is missing exports statement in package.json`);
|
22
|
-
}
|
23
|
-
}
|
24
|
-
}
|
@@ -1,70 +0,0 @@
|
|
1
|
-
describe("emitWarningIfUnsupportedVersion", () => {
|
2
|
-
let emitWarningIfUnsupportedVersion: any;
|
3
|
-
const emitWarning = process.emitWarning;
|
4
|
-
const supportedVersion = "16.0.0";
|
5
|
-
|
6
|
-
beforeEach(() => {
|
7
|
-
const module = require("./emitWarningIfUnsupportedVersion");
|
8
|
-
emitWarningIfUnsupportedVersion = module.emitWarningIfUnsupportedVersion;
|
9
|
-
});
|
10
|
-
|
11
|
-
afterEach(() => {
|
12
|
-
jest.clearAllMocks();
|
13
|
-
jest.resetModules();
|
14
|
-
process.emitWarning = emitWarning;
|
15
|
-
});
|
16
|
-
|
17
|
-
describe.skip(`emits warning for Node.js <${supportedVersion}`, () => {
|
18
|
-
const getPreviousMajorVersion = (major: number) => (major === 0 ? 0 : major - 1);
|
19
|
-
|
20
|
-
const getPreviousMinorVersion = ([major, minor]: [number, number]) =>
|
21
|
-
minor === 0 ? [getPreviousMajorVersion(major), 9] : [major, minor - 1];
|
22
|
-
|
23
|
-
const getPreviousPatchVersion = ([major, minor, patch]: [number, number, number]) =>
|
24
|
-
patch === 0 ? [...getPreviousMinorVersion([major, minor]), 9] : [major, minor, patch - 1];
|
25
|
-
|
26
|
-
const [major, minor, patch] = supportedVersion.split(".").map(Number);
|
27
|
-
it.each(
|
28
|
-
[
|
29
|
-
getPreviousPatchVersion([major, minor, patch]),
|
30
|
-
[...getPreviousMinorVersion([major, minor]), 0],
|
31
|
-
[getPreviousMajorVersion(major), 0, 0],
|
32
|
-
].map((arr) => `v${arr.join(".")}`)
|
33
|
-
)(`%s`, async (unsupportedVersion) => {
|
34
|
-
process.emitWarning = jest.fn();
|
35
|
-
emitWarningIfUnsupportedVersion(unsupportedVersion);
|
36
|
-
|
37
|
-
// Verify that the warning was emitted.
|
38
|
-
expect(process.emitWarning).toHaveBeenCalledTimes(1);
|
39
|
-
expect(process.emitWarning).toHaveBeenCalledWith(
|
40
|
-
`NodeDeprecationWarning: The AWS SDK for JavaScript (v3) will
|
41
|
-
no longer support Node.js 14.x on May 1, 2024.
|
42
|
-
|
43
|
-
To continue receiving updates to AWS services, bug fixes, and security
|
44
|
-
updates please upgrade to an active Node.js LTS version.
|
45
|
-
|
46
|
-
More information can be found at: https://a.co/dzr2AJd`
|
47
|
-
);
|
48
|
-
|
49
|
-
// Verify that the warning emits only once.
|
50
|
-
emitWarningIfUnsupportedVersion(unsupportedVersion);
|
51
|
-
expect(process.emitWarning).toHaveBeenCalledTimes(1);
|
52
|
-
});
|
53
|
-
});
|
54
|
-
|
55
|
-
describe(`emits no warning for Node.js >=${supportedVersion}`, () => {
|
56
|
-
const [major, minor, patch] = supportedVersion.split(".").map(Number);
|
57
|
-
it.each(
|
58
|
-
[
|
59
|
-
[major, minor, patch],
|
60
|
-
[major, minor, patch + 1],
|
61
|
-
[major, minor + 1, 0],
|
62
|
-
[major + 1, 0, 0],
|
63
|
-
].map((arr) => `v${arr.join(".")}`)
|
64
|
-
)(`%s`, async (unsupportedVersion) => {
|
65
|
-
process.emitWarning = jest.fn();
|
66
|
-
emitWarningIfUnsupportedVersion(unsupportedVersion);
|
67
|
-
expect(process.emitWarning).not.toHaveBeenCalled();
|
68
|
-
});
|
69
|
-
});
|
70
|
-
});
|
@@ -1,26 +0,0 @@
|
|
1
|
-
// Stores whether the warning was already emitted.
|
2
|
-
let warningEmitted = false;
|
3
|
-
|
4
|
-
/**
|
5
|
-
* @internal
|
6
|
-
*
|
7
|
-
* Emits warning if the provided Node.js version string is
|
8
|
-
* pending deprecation by AWS SDK JSv3.
|
9
|
-
*
|
10
|
-
* @param version - The Node.js version string.
|
11
|
-
*/
|
12
|
-
export const emitWarningIfUnsupportedVersion = (version: string) => {
|
13
|
-
if (version && !warningEmitted && parseInt(version.substring(1, version.indexOf("."))) < 16) {
|
14
|
-
warningEmitted = true;
|
15
|
-
// ToDo: Turn back warning for future Node.js version deprecation
|
16
|
-
// process.emitWarning(
|
17
|
-
// `NodeDeprecationWarning: The AWS SDK for JavaScript (v3) will
|
18
|
-
// no longer support Node.js 14.x on May 1, 2024.
|
19
|
-
|
20
|
-
// To continue receiving updates to AWS services, bug fixes, and security
|
21
|
-
// updates please upgrade to an active Node.js LTS version.
|
22
|
-
|
23
|
-
// More information can be found at: https://a.co/dzr2AJd`
|
24
|
-
// );
|
25
|
-
}
|
26
|
-
};
|