@cdk8s/awscdk-resolver 0.0.589 → 0.0.591

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 (74) hide show
  1. package/.jsii +3 -3
  2. package/lib/resolve.js +1 -1
  3. package/node_modules/@aws-sdk/client-cloudformation/README.md +1 -1
  4. package/node_modules/@aws-sdk/client-cloudformation/dist-types/CloudFormation.d.ts +1 -1
  5. package/node_modules/@aws-sdk/client-cloudformation/dist-types/CloudFormationClient.d.ts +1 -1
  6. package/node_modules/@aws-sdk/client-cloudformation/dist-types/index.d.ts +1 -1
  7. package/node_modules/@aws-sdk/client-cloudformation/dist-types/models/models_0.d.ts +1 -1
  8. package/node_modules/@aws-sdk/client-cloudformation/package.json +5 -5
  9. package/node_modules/@aws-sdk/core/dist-cjs/index.js +12 -6
  10. package/node_modules/@aws-sdk/core/dist-cjs/submodules/httpAuthSchemes/index.js +12 -6
  11. package/node_modules/@aws-sdk/core/dist-es/submodules/httpAuthSchemes/aws_sdk/AwsSdkSigV4ASigner.js +1 -0
  12. package/node_modules/@aws-sdk/core/dist-es/submodules/httpAuthSchemes/aws_sdk/AwsSdkSigV4Signer.js +11 -6
  13. package/node_modules/@aws-sdk/core/package.json +4 -4
  14. package/node_modules/@aws-sdk/credential-provider-env/package.json +4 -4
  15. package/node_modules/@aws-sdk/credential-provider-http/package.json +4 -4
  16. package/node_modules/@aws-sdk/credential-provider-ini/package.json +11 -11
  17. package/node_modules/@aws-sdk/credential-provider-login/package.json +5 -5
  18. package/node_modules/@aws-sdk/credential-provider-node/package.json +9 -9
  19. package/node_modules/@aws-sdk/credential-provider-process/package.json +4 -4
  20. package/node_modules/@aws-sdk/credential-provider-sso/package.json +6 -6
  21. package/node_modules/@aws-sdk/credential-provider-web-identity/package.json +5 -5
  22. package/node_modules/@aws-sdk/nested-clients/dist-cjs/submodules/cognito-identity/index.js +99 -106
  23. package/node_modules/@aws-sdk/nested-clients/dist-cjs/submodules/signin/index.js +62 -120
  24. package/node_modules/@aws-sdk/nested-clients/dist-cjs/submodules/sso/index.js +55 -86
  25. package/node_modules/@aws-sdk/nested-clients/dist-cjs/submodules/sso-oidc/index.js +73 -104
  26. package/node_modules/@aws-sdk/nested-clients/dist-cjs/submodules/sts/index.js +102 -185
  27. package/node_modules/@aws-sdk/nested-clients/dist-es/submodules/cognito-identity/auth/httpAuthSchemeProvider.js +4 -5
  28. package/node_modules/@aws-sdk/nested-clients/dist-es/submodules/cognito-identity/endpoint/bdd.js +21 -57
  29. package/node_modules/@aws-sdk/nested-clients/dist-es/submodules/cognito-identity/runtimeConfig.browser.js +1 -2
  30. package/node_modules/@aws-sdk/nested-clients/dist-es/submodules/cognito-identity/runtimeConfig.js +2 -4
  31. package/node_modules/@aws-sdk/nested-clients/dist-es/submodules/cognito-identity/schemas/schemas_0.js +73 -41
  32. package/node_modules/@aws-sdk/nested-clients/dist-es/submodules/signin/auth/httpAuthSchemeProvider.js +4 -5
  33. package/node_modules/@aws-sdk/nested-clients/dist-es/submodules/signin/endpoint/bdd.js +20 -52
  34. package/node_modules/@aws-sdk/nested-clients/dist-es/submodules/signin/runtimeConfig.browser.js +1 -2
  35. package/node_modules/@aws-sdk/nested-clients/dist-es/submodules/signin/runtimeConfig.js +2 -4
  36. package/node_modules/@aws-sdk/nested-clients/dist-es/submodules/signin/schemas/schemas_0.js +36 -59
  37. package/node_modules/@aws-sdk/nested-clients/dist-es/submodules/sso/auth/httpAuthSchemeProvider.js +4 -5
  38. package/node_modules/@aws-sdk/nested-clients/dist-es/submodules/sso/endpoint/bdd.js +17 -45
  39. package/node_modules/@aws-sdk/nested-clients/dist-es/submodules/sso/runtimeConfig.browser.js +1 -2
  40. package/node_modules/@aws-sdk/nested-clients/dist-es/submodules/sso/runtimeConfig.js +2 -4
  41. package/node_modules/@aws-sdk/nested-clients/dist-es/submodules/sso/schemas/schemas_0.js +32 -32
  42. package/node_modules/@aws-sdk/nested-clients/dist-es/submodules/sso-oidc/auth/httpAuthSchemeProvider.js +4 -5
  43. package/node_modules/@aws-sdk/nested-clients/dist-es/submodules/sso-oidc/endpoint/bdd.js +17 -45
  44. package/node_modules/@aws-sdk/nested-clients/dist-es/submodules/sso-oidc/runtimeConfig.browser.js +1 -2
  45. package/node_modules/@aws-sdk/nested-clients/dist-es/submodules/sso-oidc/runtimeConfig.js +2 -4
  46. package/node_modules/@aws-sdk/nested-clients/dist-es/submodules/sso-oidc/schemas/schemas_0.js +50 -50
  47. package/node_modules/@aws-sdk/nested-clients/dist-es/submodules/sts/auth/httpAuthSchemeProvider.js +4 -5
  48. package/node_modules/@aws-sdk/nested-clients/dist-es/submodules/sts/defaultRoleAssumers.js +1 -1
  49. package/node_modules/@aws-sdk/nested-clients/dist-es/submodules/sts/endpoint/bdd.js +34 -96
  50. package/node_modules/@aws-sdk/nested-clients/dist-es/submodules/sts/runtimeConfig.browser.js +1 -2
  51. package/node_modules/@aws-sdk/nested-clients/dist-es/submodules/sts/runtimeConfig.js +3 -6
  52. package/node_modules/@aws-sdk/nested-clients/dist-es/submodules/sts/schemas/schemas_0.js +63 -80
  53. package/node_modules/@aws-sdk/nested-clients/package.json +5 -5
  54. package/node_modules/@aws-sdk/signature-v4-multi-region/package.json +3 -3
  55. package/node_modules/@aws-sdk/token-providers/package.json +5 -5
  56. package/node_modules/@aws-sdk/types/package.json +2 -2
  57. package/node_modules/@aws-sdk/util-locate-window/package.json +2 -2
  58. package/node_modules/@aws-sdk/xml-builder/package.json +2 -2
  59. package/node_modules/@smithy/credential-provider-imds/dist-es/remoteProvider/httpRequest.js +2 -2
  60. package/node_modules/@smithy/credential-provider-imds/dist-es/remoteProvider/node-http.js +2 -0
  61. package/node_modules/@smithy/credential-provider-imds/dist-types/remoteProvider/httpRequest.d.ts +1 -1
  62. package/node_modules/@smithy/credential-provider-imds/dist-types/remoteProvider/node-http.d.ts +2 -0
  63. package/node_modules/@smithy/credential-provider-imds/package.json +1 -1
  64. package/node_modules/@smithy/node-http-handler/dist-cjs/index.js +6 -4
  65. package/node_modules/@smithy/node-http-handler/dist-es/node-http-handler.js +7 -6
  66. package/node_modules/@smithy/node-http-handler/dist-es/node-http2-handler.js +2 -1
  67. package/node_modules/@smithy/node-http-handler/dist-es/node-http2.js +2 -0
  68. package/node_modules/@smithy/node-http-handler/dist-es/node-https.js +2 -0
  69. package/node_modules/@smithy/node-http-handler/dist-types/node-http-handler.d.ts +2 -2
  70. package/node_modules/@smithy/node-http-handler/dist-types/node-http2-handler.d.ts +1 -1
  71. package/node_modules/@smithy/node-http-handler/dist-types/node-http2.d.ts +2 -0
  72. package/node_modules/@smithy/node-http-handler/dist-types/node-https.d.ts +2 -0
  73. package/node_modules/@smithy/node-http-handler/package.json +1 -1
  74. package/package.json +4 -4
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@aws-sdk/xml-builder",
3
- "version": "3.972.27",
3
+ "version": "3.972.28",
4
4
  "description": "XML utilities for the AWS SDK",
5
5
  "dependencies": {
6
6
  "@smithy/types": "^4.14.3",
@@ -21,7 +21,7 @@
21
21
  "sideEffects": false,
22
22
  "author": {
23
23
  "name": "AWS SDK for JavaScript Team",
24
- "url": "https://aws.amazon.com/javascript/"
24
+ "url": "https://aws.amazon.com/sdk-for-javascript/"
25
25
  },
26
26
  "license": "Apache-2.0",
27
27
  "main": "./dist-cjs/index.js",
@@ -1,8 +1,8 @@
1
- import { request } from "node:http";
2
1
  import { ProviderError } from "@smithy/core/config";
2
+ import { node_http } from "./node-http";
3
3
  export function httpRequest(options) {
4
4
  return new Promise((resolve, reject) => {
5
- const req = request({
5
+ const req = node_http.request({
6
6
  method: "GET",
7
7
  ...options,
8
8
  hostname: options.hostname?.replace(/^\[(.+)\]$/, "$1"),
@@ -0,0 +1,2 @@
1
+ import node_http from "node:http";
2
+ export { node_http };
@@ -1,4 +1,4 @@
1
- import { type RequestOptions } from "node:http";
1
+ import type { RequestOptions } from "node:http";
2
2
  /**
3
3
  * @internal
4
4
  */
@@ -0,0 +1,2 @@
1
+ import node_http from "node:http";
2
+ export { node_http };
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@smithy/credential-provider-imds",
3
- "version": "4.3.7",
3
+ "version": "4.3.8",
4
4
  "description": "AWS credential provider that sources credentials from the EC2 instance metadata service and ECS container metadata service",
5
5
  "main": "./dist-cjs/index.js",
6
6
  "module": "./dist-es/index.js",
@@ -1,7 +1,7 @@
1
1
  'use strict';
2
2
 
3
- var node_https = require('node:https');
4
3
  var protocols = require('@smithy/core/protocols');
4
+ var node_https = require('node:https');
5
5
  var node_stream = require('node:stream');
6
6
  var http2 = require('node:http2');
7
7
 
@@ -414,7 +414,8 @@ or increase socketAcquisitionWarningTimeout=(millis) in the NodeHttpHandler conf
414
414
  socketAcquisitionWarningTimeout,
415
415
  throwOnRequestTimeout,
416
416
  httpAgentProvider: async () => {
417
- const { Agent, request } = await import('node:http');
417
+ const node_http = await import('node:http');
418
+ const { Agent, request } = node_http.default ?? node_http;
418
419
  hRequest = request;
419
420
  hAgent = Agent;
420
421
  if (httpAgent instanceof hAgent || typeof httpAgent?.destroy === "function") {
@@ -666,6 +667,7 @@ class NodeHttp2ConnectionManager {
666
667
  }
667
668
  }
668
669
 
670
+ const { constants } = http2;
669
671
  class NodeHttp2Handler {
670
672
  config;
671
673
  configProvider;
@@ -760,8 +762,8 @@ class NodeHttp2Handler {
760
762
  }
761
763
  const clientHttp2Stream = session.request({
762
764
  ...request.headers,
763
- [http2.constants.HTTP2_HEADER_PATH]: path,
764
- [http2.constants.HTTP2_HEADER_METHOD]: method,
765
+ [constants.HTTP2_HEADER_PATH]: path,
766
+ [constants.HTTP2_HEADER_METHOD]: method,
765
767
  });
766
768
  if (effectiveRequestTimeout) {
767
769
  clientHttp2Stream.setTimeout(effectiveRequestTimeout, () => {
@@ -1,8 +1,8 @@
1
- import { Agent as hsAgent, request as hsRequest } from "node:https";
2
1
  import { HttpResponse, buildQueryString } from "@smithy/core/protocols";
3
2
  import { buildAbortError } from "./build-abort-error";
4
3
  import { NODEJS_TIMEOUT_ERROR_CODES } from "./constants";
5
4
  import { getTransformedHeaders } from "./get-transformed-headers";
5
+ import { node_https } from "./node-https";
6
6
  import { setConnectionTimeout } from "./set-connection-timeout";
7
7
  import { setRequestTimeout } from "./set-request-timeout";
8
8
  import { setSocketKeepAlive } from "./set-socket-keep-alive";
@@ -107,7 +107,7 @@ or increase socketAcquisitionWarningTimeout=(millis) in the NodeHttpHandler conf
107
107
  const expectContinue = headers ? (headers.Expect ?? headers.expect) === "100-continue" : false;
108
108
  let agent = isSSL ? config.httpsAgent : config.httpAgent;
109
109
  if (expectContinue && !this.externalAgent) {
110
- agent = new (isSSL ? hsAgent : hAgent)({
110
+ agent = new (isSSL ? node_https.Agent : hAgent)({
111
111
  keepAlive: false,
112
112
  maxSockets: Infinity,
113
113
  });
@@ -145,7 +145,7 @@ or increase socketAcquisitionWarningTimeout=(millis) in the NodeHttpHandler conf
145
145
  agent,
146
146
  auth,
147
147
  };
148
- const requestFunc = isSSL ? hsRequest : hRequest;
148
+ const requestFunc = isSSL ? node_https.request : hRequest;
149
149
  const req = requestFunc(nodeHttpsOptions, (res) => {
150
150
  const httpResponse = new HttpResponse({
151
151
  statusCode: res.statusCode || -1,
@@ -218,7 +218,8 @@ or increase socketAcquisitionWarningTimeout=(millis) in the NodeHttpHandler conf
218
218
  socketAcquisitionWarningTimeout,
219
219
  throwOnRequestTimeout,
220
220
  httpAgentProvider: async () => {
221
- const { Agent, request } = await import("node:http");
221
+ const node_http = await import("node:http");
222
+ const { Agent, request } = node_http.default ?? node_http;
222
223
  hRequest = request;
223
224
  hAgent = Agent;
224
225
  if (httpAgent instanceof hAgent || typeof httpAgent?.destroy === "function") {
@@ -228,11 +229,11 @@ or increase socketAcquisitionWarningTimeout=(millis) in the NodeHttpHandler conf
228
229
  return new hAgent({ keepAlive, maxSockets, ...httpAgent });
229
230
  },
230
231
  httpsAgent: (() => {
231
- if (httpsAgent instanceof hsAgent || typeof httpsAgent?.destroy === "function") {
232
+ if (httpsAgent instanceof node_https.Agent || typeof httpsAgent?.destroy === "function") {
232
233
  this.externalAgent = true;
233
234
  return httpsAgent;
234
235
  }
235
- return new hsAgent({ keepAlive, maxSockets, ...httpsAgent });
236
+ return new node_https.Agent({ keepAlive, maxSockets, ...httpsAgent });
236
237
  })(),
237
238
  logger,
238
239
  };
@@ -1,9 +1,10 @@
1
- import { constants } from "node:http2";
2
1
  import { HttpResponse, buildQueryString } from "@smithy/core/protocols";
3
2
  import { buildAbortError } from "./build-abort-error";
4
3
  import { getTransformedHeaders } from "./get-transformed-headers";
4
+ import { node_http2 } from "./node-http2";
5
5
  import { NodeHttp2ConnectionManager } from "./node-http2-connection-manager";
6
6
  import { writeRequestBody } from "./write-request-body";
7
+ const { constants } = node_http2;
7
8
  export class NodeHttp2Handler {
8
9
  config;
9
10
  configProvider;
@@ -0,0 +1,2 @@
1
+ import node_http2 from "node:http2";
2
+ export { node_http2 };
@@ -0,0 +1,2 @@
1
+ import node_https from "node:https";
2
+ export { node_https };
@@ -1,5 +1,5 @@
1
1
  import type { Agent as hAgentType } from "node:http";
2
- import { Agent as hsAgent } from "node:https";
2
+ import type { Agent as hsAgentType } from "node:https";
3
3
  import { HttpResponse, type HttpHandler, type HttpRequest } from "@smithy/core/protocols";
4
4
  import type { HttpHandlerOptions, Logger, NodeHttpHandlerOptions, Provider } from "@smithy/types";
5
5
  export { NodeHttpHandlerOptions };
@@ -35,7 +35,7 @@ export declare class NodeHttpHandler implements HttpHandler<NodeHttpHandlerOptio
35
35
  * @param logger - channel for the warning.
36
36
  * @returns timestamp of last emitted warning.
37
37
  */
38
- static checkSocketUsage(agent: hAgentType | hsAgent, socketWarningTimestamp: number, logger?: Logger): number;
38
+ static checkSocketUsage(agent: hAgentType | hsAgentType, socketWarningTimestamp: number, logger?: Logger): number;
39
39
  constructor(options?: NodeHttpHandlerOptions | Provider<NodeHttpHandlerOptions | void>);
40
40
  destroy(): void;
41
41
  handle(request: HttpRequest, { abortSignal, requestTimeout }?: HttpHandlerOptions): Promise<{
@@ -1,4 +1,4 @@
1
- import { type ClientSessionOptions, type SecureClientSessionOptions } from "node:http2";
1
+ import type { ClientSessionOptions, SecureClientSessionOptions } from "node:http2";
2
2
  import { HttpResponse, type HttpHandler, type HttpRequest } from "@smithy/core/protocols";
3
3
  import type { HttpHandlerOptions, Provider } from "@smithy/types";
4
4
  /**
@@ -0,0 +1,2 @@
1
+ import node_http2 from "node:http2";
2
+ export { node_http2 };
@@ -0,0 +1,2 @@
1
+ import node_https from "node:https";
2
+ export { node_https };
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@smithy/node-http-handler",
3
- "version": "4.7.6",
3
+ "version": "4.7.7",
4
4
  "description": "Provides a way to make requests",
5
5
  "scripts": {
6
6
  "build": "concurrently 'yarn:build:types' 'yarn:build:es:cjs'",
package/package.json CHANGED
@@ -42,7 +42,7 @@
42
42
  "organization": false
43
43
  },
44
44
  "devDependencies": {
45
- "@cdk8s/projen-common": "0.0.705",
45
+ "@cdk8s/projen-common": "0.0.708",
46
46
  "@stylistic/eslint-plugin": "^2",
47
47
  "@types/fs-extra": "^11.0.4",
48
48
  "@types/jest": "^27",
@@ -52,7 +52,7 @@
52
52
  "aws-cdk": "^2.1126.0",
53
53
  "aws-cdk-lib": "2.195.0",
54
54
  "cdk8s": "2.68.91",
55
- "cdk8s-cli": "^2.207.15",
55
+ "cdk8s-cli": "^2.207.16",
56
56
  "commit-and-tag-version": "^12",
57
57
  "constructs": "10.3.0",
58
58
  "eslint": "^9",
@@ -77,7 +77,7 @@
77
77
  "constructs": "^10.3.0"
78
78
  },
79
79
  "dependencies": {
80
- "@aws-sdk/client-cloudformation": "^3.1061.0"
80
+ "@aws-sdk/client-cloudformation": "^3.1063.0"
81
81
  },
82
82
  "bundledDependencies": [
83
83
  "@aws-sdk/client-cloudformation"
@@ -93,7 +93,7 @@
93
93
  "publishConfig": {
94
94
  "access": "public"
95
95
  },
96
- "version": "0.0.589",
96
+ "version": "0.0.591",
97
97
  "jest": {
98
98
  "coverageProvider": "v8",
99
99
  "testMatch": [