@cdk8s/awscdk-resolver 0.0.62 → 0.0.64

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 (137) hide show
  1. package/.jsii +3 -3
  2. package/lib/resolve.js +1 -1
  3. package/node_modules/@aws-sdk/client-cloudformation/dist-cjs/runtimeConfig.browser.js +1 -1
  4. package/node_modules/@aws-sdk/client-cloudformation/dist-cjs/runtimeConfig.js +1 -1
  5. package/node_modules/@aws-sdk/client-cloudformation/dist-es/runtimeConfig.browser.js +1 -1
  6. package/node_modules/@aws-sdk/client-cloudformation/dist-es/runtimeConfig.js +1 -1
  7. package/node_modules/@aws-sdk/client-cloudformation/dist-types/CloudFormationClient.d.ts +4 -4
  8. package/node_modules/@aws-sdk/client-cloudformation/dist-types/runtimeConfig.browser.d.ts +1 -4
  9. package/node_modules/@aws-sdk/client-cloudformation/dist-types/runtimeConfig.d.ts +1 -4
  10. package/node_modules/@aws-sdk/client-cloudformation/dist-types/runtimeConfig.native.d.ts +1 -4
  11. package/node_modules/@aws-sdk/client-cloudformation/dist-types/ts3.4/CloudFormationClient.d.ts +3 -3
  12. package/node_modules/@aws-sdk/client-cloudformation/dist-types/ts3.4/runtimeConfig.browser.d.ts +1 -13
  13. package/node_modules/@aws-sdk/client-cloudformation/dist-types/ts3.4/runtimeConfig.d.ts +2 -14
  14. package/node_modules/@aws-sdk/client-cloudformation/dist-types/ts3.4/runtimeConfig.native.d.ts +4 -13
  15. package/node_modules/@aws-sdk/client-cloudformation/package.json +35 -35
  16. package/node_modules/@aws-sdk/client-sso/dist-cjs/runtimeConfig.browser.js +1 -1
  17. package/node_modules/@aws-sdk/client-sso/dist-cjs/runtimeConfig.js +1 -1
  18. package/node_modules/@aws-sdk/client-sso/dist-es/runtimeConfig.browser.js +1 -1
  19. package/node_modules/@aws-sdk/client-sso/dist-es/runtimeConfig.js +1 -1
  20. package/node_modules/@aws-sdk/client-sso/dist-types/SSOClient.d.ts +4 -4
  21. package/node_modules/@aws-sdk/client-sso/dist-types/runtimeConfig.browser.d.ts +1 -4
  22. package/node_modules/@aws-sdk/client-sso/dist-types/runtimeConfig.d.ts +1 -4
  23. package/node_modules/@aws-sdk/client-sso/dist-types/runtimeConfig.native.d.ts +1 -4
  24. package/node_modules/@aws-sdk/client-sso/dist-types/ts3.4/SSOClient.d.ts +3 -3
  25. package/node_modules/@aws-sdk/client-sso/dist-types/ts3.4/runtimeConfig.browser.d.ts +1 -13
  26. package/node_modules/@aws-sdk/client-sso/dist-types/ts3.4/runtimeConfig.d.ts +2 -14
  27. package/node_modules/@aws-sdk/client-sso/dist-types/ts3.4/runtimeConfig.native.d.ts +4 -13
  28. package/node_modules/@aws-sdk/client-sso/package.json +32 -32
  29. package/node_modules/@aws-sdk/client-sso-oidc/dist-cjs/runtimeConfig.browser.js +1 -1
  30. package/node_modules/@aws-sdk/client-sso-oidc/dist-cjs/runtimeConfig.js +1 -1
  31. package/node_modules/@aws-sdk/client-sso-oidc/dist-es/runtimeConfig.browser.js +1 -1
  32. package/node_modules/@aws-sdk/client-sso-oidc/dist-es/runtimeConfig.js +1 -1
  33. package/node_modules/@aws-sdk/client-sso-oidc/dist-types/SSOOIDCClient.d.ts +4 -4
  34. package/node_modules/@aws-sdk/client-sso-oidc/dist-types/runtimeConfig.browser.d.ts +1 -4
  35. package/node_modules/@aws-sdk/client-sso-oidc/dist-types/runtimeConfig.d.ts +1 -4
  36. package/node_modules/@aws-sdk/client-sso-oidc/dist-types/runtimeConfig.native.d.ts +1 -4
  37. package/node_modules/@aws-sdk/client-sso-oidc/dist-types/ts3.4/SSOOIDCClient.d.ts +3 -3
  38. package/node_modules/@aws-sdk/client-sso-oidc/dist-types/ts3.4/runtimeConfig.browser.d.ts +1 -13
  39. package/node_modules/@aws-sdk/client-sso-oidc/dist-types/ts3.4/runtimeConfig.d.ts +2 -14
  40. package/node_modules/@aws-sdk/client-sso-oidc/dist-types/ts3.4/runtimeConfig.native.d.ts +4 -13
  41. package/node_modules/@aws-sdk/client-sso-oidc/package.json +34 -34
  42. package/node_modules/@aws-sdk/client-sts/dist-cjs/runtimeConfig.browser.js +1 -1
  43. package/node_modules/@aws-sdk/client-sts/dist-cjs/runtimeConfig.js +1 -1
  44. package/node_modules/@aws-sdk/client-sts/dist-es/runtimeConfig.browser.js +1 -1
  45. package/node_modules/@aws-sdk/client-sts/dist-es/runtimeConfig.js +1 -1
  46. package/node_modules/@aws-sdk/client-sts/dist-types/STSClient.d.ts +4 -4
  47. package/node_modules/@aws-sdk/client-sts/dist-types/runtimeConfig.browser.d.ts +1 -4
  48. package/node_modules/@aws-sdk/client-sts/dist-types/runtimeConfig.d.ts +1 -4
  49. package/node_modules/@aws-sdk/client-sts/dist-types/runtimeConfig.native.d.ts +1 -4
  50. package/node_modules/@aws-sdk/client-sts/dist-types/ts3.4/STSClient.d.ts +3 -3
  51. package/node_modules/@aws-sdk/client-sts/dist-types/ts3.4/runtimeConfig.browser.d.ts +1 -13
  52. package/node_modules/@aws-sdk/client-sts/dist-types/ts3.4/runtimeConfig.d.ts +2 -14
  53. package/node_modules/@aws-sdk/client-sts/dist-types/ts3.4/runtimeConfig.native.d.ts +4 -13
  54. package/node_modules/@aws-sdk/client-sts/package.json +33 -33
  55. package/node_modules/@aws-sdk/core/CHANGELOG.md +11 -0
  56. package/node_modules/@aws-sdk/core/integ/request-handlers/request-handlers.integ.spec.ts +158 -0
  57. package/node_modules/@aws-sdk/core/jest.config.integ.js +4 -0
  58. package/node_modules/@aws-sdk/core/package.json +7 -6
  59. package/node_modules/@aws-sdk/core/tsconfig.cjs.tsbuildinfo +1 -1
  60. package/node_modules/@aws-sdk/core/tsconfig.es.tsbuildinfo +1 -1
  61. package/node_modules/@aws-sdk/core/tsconfig.types.tsbuildinfo +1 -1
  62. package/node_modules/@aws-sdk/credential-provider-env/package.json +3 -3
  63. package/node_modules/@aws-sdk/credential-provider-http/package.json +8 -8
  64. package/node_modules/@aws-sdk/credential-provider-ini/package.json +8 -8
  65. package/node_modules/@aws-sdk/credential-provider-node/package.json +9 -9
  66. package/node_modules/@aws-sdk/credential-provider-process/package.json +3 -3
  67. package/node_modules/@aws-sdk/credential-provider-sso/package.json +5 -5
  68. package/node_modules/@aws-sdk/credential-provider-web-identity/package.json +4 -4
  69. package/node_modules/@aws-sdk/middleware-host-header/package.json +4 -4
  70. package/node_modules/@aws-sdk/middleware-logger/package.json +3 -3
  71. package/node_modules/@aws-sdk/middleware-recursion-detection/package.json +4 -4
  72. package/node_modules/@aws-sdk/middleware-user-agent/package.json +5 -5
  73. package/node_modules/@aws-sdk/region-config-resolver/package.json +5 -5
  74. package/node_modules/@aws-sdk/token-providers/package.json +4 -4
  75. package/node_modules/@aws-sdk/types/package.json +2 -2
  76. package/node_modules/@aws-sdk/util-endpoints/package.json +4 -4
  77. package/node_modules/@aws-sdk/util-user-agent-browser/package.json +3 -3
  78. package/node_modules/@aws-sdk/util-user-agent-node/package.json +4 -4
  79. package/node_modules/@smithy/abort-controller/dist-cjs/index.js +1 -4
  80. package/node_modules/@smithy/abort-controller/package.json +2 -2
  81. package/node_modules/@smithy/config-resolver/dist-cjs/index.js +10 -10
  82. package/node_modules/@smithy/config-resolver/package.json +4 -4
  83. package/node_modules/@smithy/core/package.json +8 -8
  84. package/node_modules/@smithy/credential-provider-imds/dist-cjs/index.js +5 -5
  85. package/node_modules/@smithy/credential-provider-imds/package.json +5 -5
  86. package/node_modules/@smithy/eventstream-codec/package.json +2 -2
  87. package/node_modules/@smithy/fetch-http-handler/dist-cjs/index.js +1 -1
  88. package/node_modules/@smithy/fetch-http-handler/package.json +5 -5
  89. package/node_modules/@smithy/hash-node/package.json +2 -2
  90. package/node_modules/@smithy/invalid-dependency/package.json +2 -2
  91. package/node_modules/@smithy/middleware-content-length/package.json +4 -4
  92. package/node_modules/@smithy/middleware-endpoint/dist-cjs/index.js +4 -4
  93. package/node_modules/@smithy/middleware-endpoint/package.json +7 -7
  94. package/node_modules/@smithy/middleware-retry/dist-cjs/index.js +10 -10
  95. package/node_modules/@smithy/middleware-retry/package.json +9 -9
  96. package/node_modules/@smithy/middleware-serde/dist-cjs/index.js +2 -2
  97. package/node_modules/@smithy/middleware-serde/package.json +3 -3
  98. package/node_modules/@smithy/middleware-stack/package.json +2 -2
  99. package/node_modules/@smithy/node-config-provider/package.json +4 -4
  100. package/node_modules/@smithy/node-http-handler/dist-cjs/index.js +54 -4
  101. package/node_modules/@smithy/node-http-handler/dist-es/node-http-handler.js +41 -3
  102. package/node_modules/@smithy/node-http-handler/dist-types/node-http-handler.d.ts +12 -0
  103. package/node_modules/@smithy/node-http-handler/dist-types/ts3.4/node-http-handler.d.ts +11 -0
  104. package/node_modules/@smithy/node-http-handler/package.json +5 -5
  105. package/node_modules/@smithy/property-provider/package.json +2 -2
  106. package/node_modules/@smithy/protocol-http/dist-cjs/index.js +3 -3
  107. package/node_modules/@smithy/protocol-http/dist-types/httpHandler.d.ts +22 -3
  108. package/node_modules/@smithy/protocol-http/dist-types/ts3.4/httpHandler.d.ts +20 -1
  109. package/node_modules/@smithy/protocol-http/package.json +2 -2
  110. package/node_modules/@smithy/querystring-builder/package.json +2 -2
  111. package/node_modules/@smithy/querystring-parser/package.json +2 -2
  112. package/node_modules/@smithy/service-error-classification/dist-cjs/index.js +3 -3
  113. package/node_modules/@smithy/service-error-classification/package.json +2 -2
  114. package/node_modules/@smithy/shared-ini-file-loader/dist-cjs/index.js +6 -6
  115. package/node_modules/@smithy/shared-ini-file-loader/package.json +2 -2
  116. package/node_modules/@smithy/signature-v4/dist-cjs/index.js +5 -5
  117. package/node_modules/@smithy/signature-v4/package.json +5 -5
  118. package/node_modules/@smithy/smithy-client/dist-cjs/index.js +38 -38
  119. package/node_modules/@smithy/smithy-client/dist-types/client.d.ts +6 -3
  120. package/node_modules/@smithy/smithy-client/dist-types/ts3.4/client.d.ts +6 -3
  121. package/node_modules/@smithy/smithy-client/package.json +6 -6
  122. package/node_modules/@smithy/types/dist-cjs/index.js +7 -7
  123. package/node_modules/@smithy/types/dist-types/http/httpHandlerInitialization.d.ts +18 -4
  124. package/node_modules/@smithy/types/dist-types/ts3.4/http/httpHandlerInitialization.d.ts +18 -4
  125. package/node_modules/@smithy/types/package.json +1 -1
  126. package/node_modules/@smithy/url-parser/package.json +3 -3
  127. package/node_modules/@smithy/util-defaults-mode-browser/package.json +4 -4
  128. package/node_modules/@smithy/util-defaults-mode-node/package.json +7 -7
  129. package/node_modules/@smithy/util-endpoints/dist-cjs/index.js +3 -3
  130. package/node_modules/@smithy/util-endpoints/package.json +3 -3
  131. package/node_modules/@smithy/util-middleware/package.json +2 -2
  132. package/node_modules/@smithy/util-retry/dist-cjs/index.js +10 -10
  133. package/node_modules/@smithy/util-retry/package.json +3 -3
  134. package/node_modules/@smithy/util-stream/package.json +5 -5
  135. package/node_modules/@smithy/util-waiter/dist-cjs/index.js +3 -3
  136. package/node_modules/@smithy/util-waiter/package.json +3 -3
  137. package/package.json +5 -5
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@aws-sdk/client-sts",
3
3
  "description": "AWS SDK for JavaScript Sts Client for Node.js, Browser and React Native",
4
- "version": "3.515.0",
4
+ "version": "3.521.0",
5
5
  "scripts": {
6
6
  "build": "concurrently 'yarn:build:cjs' 'yarn:build:es' 'yarn:build:types'",
7
7
  "build:cjs": "node ../../scripts/compilation/inline client-sts",
@@ -22,40 +22,40 @@
22
22
  "dependencies": {
23
23
  "@aws-crypto/sha256-browser": "3.0.0",
24
24
  "@aws-crypto/sha256-js": "3.0.0",
25
- "@aws-sdk/core": "3.513.0",
26
- "@aws-sdk/middleware-host-header": "3.515.0",
27
- "@aws-sdk/middleware-logger": "3.515.0",
28
- "@aws-sdk/middleware-recursion-detection": "3.515.0",
29
- "@aws-sdk/middleware-user-agent": "3.515.0",
30
- "@aws-sdk/region-config-resolver": "3.515.0",
31
- "@aws-sdk/types": "3.515.0",
32
- "@aws-sdk/util-endpoints": "3.515.0",
33
- "@aws-sdk/util-user-agent-browser": "3.515.0",
34
- "@aws-sdk/util-user-agent-node": "3.515.0",
35
- "@smithy/config-resolver": "^2.1.1",
36
- "@smithy/core": "^1.3.2",
37
- "@smithy/fetch-http-handler": "^2.4.1",
38
- "@smithy/hash-node": "^2.1.1",
39
- "@smithy/invalid-dependency": "^2.1.1",
40
- "@smithy/middleware-content-length": "^2.1.1",
41
- "@smithy/middleware-endpoint": "^2.4.1",
42
- "@smithy/middleware-retry": "^2.1.1",
43
- "@smithy/middleware-serde": "^2.1.1",
44
- "@smithy/middleware-stack": "^2.1.1",
45
- "@smithy/node-config-provider": "^2.2.1",
46
- "@smithy/node-http-handler": "^2.3.1",
47
- "@smithy/protocol-http": "^3.1.1",
48
- "@smithy/smithy-client": "^2.3.1",
49
- "@smithy/types": "^2.9.1",
50
- "@smithy/url-parser": "^2.1.1",
25
+ "@aws-sdk/core": "3.521.0",
26
+ "@aws-sdk/middleware-host-header": "3.521.0",
27
+ "@aws-sdk/middleware-logger": "3.521.0",
28
+ "@aws-sdk/middleware-recursion-detection": "3.521.0",
29
+ "@aws-sdk/middleware-user-agent": "3.521.0",
30
+ "@aws-sdk/region-config-resolver": "3.521.0",
31
+ "@aws-sdk/types": "3.521.0",
32
+ "@aws-sdk/util-endpoints": "3.521.0",
33
+ "@aws-sdk/util-user-agent-browser": "3.521.0",
34
+ "@aws-sdk/util-user-agent-node": "3.521.0",
35
+ "@smithy/config-resolver": "^2.1.2",
36
+ "@smithy/core": "^1.3.3",
37
+ "@smithy/fetch-http-handler": "^2.4.2",
38
+ "@smithy/hash-node": "^2.1.2",
39
+ "@smithy/invalid-dependency": "^2.1.2",
40
+ "@smithy/middleware-content-length": "^2.1.2",
41
+ "@smithy/middleware-endpoint": "^2.4.2",
42
+ "@smithy/middleware-retry": "^2.1.2",
43
+ "@smithy/middleware-serde": "^2.1.2",
44
+ "@smithy/middleware-stack": "^2.1.2",
45
+ "@smithy/node-config-provider": "^2.2.2",
46
+ "@smithy/node-http-handler": "^2.4.0",
47
+ "@smithy/protocol-http": "^3.2.0",
48
+ "@smithy/smithy-client": "^2.4.0",
49
+ "@smithy/types": "^2.10.0",
50
+ "@smithy/url-parser": "^2.1.2",
51
51
  "@smithy/util-base64": "^2.1.1",
52
52
  "@smithy/util-body-length-browser": "^2.1.1",
53
53
  "@smithy/util-body-length-node": "^2.2.1",
54
- "@smithy/util-defaults-mode-browser": "^2.1.1",
55
- "@smithy/util-defaults-mode-node": "^2.2.0",
56
- "@smithy/util-endpoints": "^1.1.1",
57
- "@smithy/util-middleware": "^2.1.1",
58
- "@smithy/util-retry": "^2.1.1",
54
+ "@smithy/util-defaults-mode-browser": "^2.1.2",
55
+ "@smithy/util-defaults-mode-node": "^2.2.1",
56
+ "@smithy/util-endpoints": "^1.1.2",
57
+ "@smithy/util-middleware": "^2.1.2",
58
+ "@smithy/util-retry": "^2.1.2",
59
59
  "@smithy/util-utf8": "^2.1.1",
60
60
  "fast-xml-parser": "4.2.5",
61
61
  "tslib": "^2.5.0"
@@ -88,7 +88,7 @@
88
88
  },
89
89
  "license": "Apache-2.0",
90
90
  "peerDependencies": {
91
- "@aws-sdk/credential-provider-node": "^3.515.0"
91
+ "@aws-sdk/credential-provider-node": "^3.521.0"
92
92
  },
93
93
  "browser": {
94
94
  "./dist-es/runtimeConfig": "./dist-es/runtimeConfig.browser"
@@ -3,6 +3,17 @@
3
3
  All notable changes to this project will be documented in this file.
4
4
  See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
5
5
 
6
+ # [3.521.0](https://github.com/aws/aws-sdk-js-v3/compare/v3.520.0...v3.521.0) (2024-02-23)
7
+
8
+
9
+ ### Features
10
+
11
+ * 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))
12
+
13
+
14
+
15
+
16
+
6
17
  # [3.513.0](https://github.com/aws/aws-sdk-js-v3/compare/v3.512.0...v3.513.0) (2024-02-13)
7
18
 
8
19
 
@@ -0,0 +1,158 @@
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
+ });
@@ -0,0 +1,4 @@
1
+ module.exports = {
2
+ preset: "ts-jest",
3
+ testMatch: ["**/*.integ.spec.ts"],
4
+ };
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@aws-sdk/core",
3
- "version": "3.513.0",
3
+ "version": "3.521.0",
4
4
  "description": "Core functions & classes shared by multiple AWS SDK clients",
5
5
  "scripts": {
6
6
  "build": "concurrently 'yarn:build:cjs' 'yarn:build:es' 'yarn:build:types'",
@@ -12,7 +12,8 @@
12
12
  "lint": "node ./scripts/lint.js",
13
13
  "clean": "rimraf ./dist-* && rimraf *.tsbuildinfo",
14
14
  "extract:docs": "api-extractor run --local",
15
- "test": "jest"
15
+ "test": "jest",
16
+ "test:integration": "jest -c jest.config.integ.js"
16
17
  },
17
18
  "main": "./dist-cjs/index.js",
18
19
  "module": "./dist-es/index.js",
@@ -24,11 +25,11 @@
24
25
  },
25
26
  "license": "Apache-2.0",
26
27
  "dependencies": {
27
- "@smithy/core": "^1.3.2",
28
- "@smithy/protocol-http": "^3.1.1",
28
+ "@smithy/core": "^1.3.3",
29
+ "@smithy/protocol-http": "^3.2.0",
29
30
  "@smithy/signature-v4": "^2.1.1",
30
- "@smithy/smithy-client": "^2.3.1",
31
- "@smithy/types": "^2.9.1",
31
+ "@smithy/smithy-client": "^2.4.0",
32
+ "@smithy/types": "^2.10.0",
32
33
  "tslib": "^2.5.0"
33
34
  },
34
35
  "devDependencies": {