@cdk8s/awscdk-resolver 0.0.496 → 0.0.498

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 (101) hide show
  1. package/.jsii +4 -4
  2. package/lib/resolve.js +1 -1
  3. package/node_modules/@aws-sdk/client-cloudformation/package.json +12 -12
  4. package/node_modules/@aws-sdk/core/dist-es/submodules/account-id-endpoint/AccountIdEndpointModeConfigResolver.js +1 -1
  5. package/node_modules/@aws-sdk/core/dist-es/submodules/account-id-endpoint/NodeAccountIdEndpointModeConfigOptions.js +1 -1
  6. package/node_modules/@aws-sdk/core/dist-types/submodules/account-id-endpoint/AccountIdEndpointModeConfigResolver.d.ts +1 -1
  7. package/node_modules/@aws-sdk/core/dist-types/submodules/account-id-endpoint/NodeAccountIdEndpointModeConfigOptions.d.ts +2 -2
  8. package/node_modules/@aws-sdk/core/dist-types/submodules/httpAuthSchemes/aws_sdk/AwsSdkSigV4Signer.d.ts +1 -1
  9. package/node_modules/@aws-sdk/core/dist-types/submodules/httpAuthSchemes/aws_sdk/NODE_AUTH_SCHEME_PREFERENCE_OPTIONS.d.ts +1 -1
  10. package/node_modules/@aws-sdk/core/dist-types/submodules/httpAuthSchemes/aws_sdk/resolveAwsSdkSigV4AConfig.d.ts +1 -1
  11. package/node_modules/@aws-sdk/core/dist-types/submodules/httpAuthSchemes/aws_sdk/resolveAwsSdkSigV4Config.d.ts +1 -1
  12. package/node_modules/@aws-sdk/core/dist-types/submodules/protocols/ProtocolLib.d.ts +1 -1
  13. package/node_modules/@aws-sdk/core/dist-types/submodules/protocols/json/JsonShapeDeserializer.d.ts +1 -1
  14. package/node_modules/@aws-sdk/core/dist-types/submodules/protocols/xml/XmlShapeSerializer.d.ts +1 -1
  15. package/node_modules/@aws-sdk/core/package.json +3 -3
  16. package/node_modules/@aws-sdk/credential-provider-env/dist-types/fromEnv.d.ts +1 -1
  17. package/node_modules/@aws-sdk/credential-provider-env/package.json +3 -3
  18. package/node_modules/@aws-sdk/credential-provider-http/dist-cjs/fromHttp/fromHttp.js +1 -1
  19. package/node_modules/@aws-sdk/credential-provider-http/dist-es/fromHttp/fromHttp.js +1 -1
  20. package/node_modules/@aws-sdk/credential-provider-http/dist-types/fromHttp/checkUrl.d.ts +1 -1
  21. package/node_modules/@aws-sdk/credential-provider-http/dist-types/fromHttp/fromHttp.browser.d.ts +1 -1
  22. package/node_modules/@aws-sdk/credential-provider-http/dist-types/fromHttp/fromHttp.d.ts +1 -1
  23. package/node_modules/@aws-sdk/credential-provider-http/dist-types/fromHttp/requestHelpers.d.ts +2 -2
  24. package/node_modules/@aws-sdk/credential-provider-http/package.json +3 -3
  25. package/node_modules/@aws-sdk/credential-provider-ini/dist-types/fromIni.d.ts +2 -2
  26. package/node_modules/@aws-sdk/credential-provider-ini/dist-types/resolveAssumeRoleCredentials.d.ts +2 -2
  27. package/node_modules/@aws-sdk/credential-provider-ini/dist-types/resolveCredentialSource.d.ts +1 -1
  28. package/node_modules/@aws-sdk/credential-provider-ini/dist-types/resolveProcessCredentials.d.ts +2 -2
  29. package/node_modules/@aws-sdk/credential-provider-ini/dist-types/resolveProfileData.d.ts +1 -1
  30. package/node_modules/@aws-sdk/credential-provider-ini/dist-types/resolveStaticCredentials.d.ts +2 -2
  31. package/node_modules/@aws-sdk/credential-provider-ini/dist-types/resolveWebIdentityCredentials.d.ts +2 -2
  32. package/node_modules/@aws-sdk/credential-provider-ini/package.json +10 -10
  33. package/node_modules/@aws-sdk/credential-provider-login/package.json +4 -4
  34. package/node_modules/@aws-sdk/credential-provider-node/package.json +8 -8
  35. package/node_modules/@aws-sdk/credential-provider-process/dist-cjs/index.js +3 -3
  36. package/node_modules/@aws-sdk/credential-provider-process/dist-es/resolveProcessCredentials.js +2 -2
  37. package/node_modules/@aws-sdk/credential-provider-process/dist-types/fromProcess.d.ts +1 -1
  38. package/node_modules/@aws-sdk/credential-provider-process/dist-types/getValidatedProcessCredentials.d.ts +2 -2
  39. package/node_modules/@aws-sdk/credential-provider-process/dist-types/resolveProcessCredentials.d.ts +1 -1
  40. package/node_modules/@aws-sdk/credential-provider-process/package.json +3 -3
  41. package/node_modules/@aws-sdk/credential-provider-sso/dist-types/fromSSO.d.ts +1 -1
  42. package/node_modules/@aws-sdk/credential-provider-sso/dist-types/isSsoProfile.d.ts +2 -2
  43. package/node_modules/@aws-sdk/credential-provider-sso/dist-types/resolveSSOCredentials.d.ts +2 -2
  44. package/node_modules/@aws-sdk/credential-provider-sso/dist-types/types.d.ts +1 -1
  45. package/node_modules/@aws-sdk/credential-provider-sso/dist-types/validateSsoProfile.d.ts +2 -2
  46. package/node_modules/@aws-sdk/credential-provider-sso/package.json +5 -5
  47. package/node_modules/@aws-sdk/credential-provider-web-identity/dist-cjs/fromTokenFile.js +2 -2
  48. package/node_modules/@aws-sdk/credential-provider-web-identity/dist-es/fromTokenFile.js +1 -1
  49. package/node_modules/@aws-sdk/credential-provider-web-identity/dist-types/fromTokenFile.d.ts +1 -1
  50. package/node_modules/@aws-sdk/credential-provider-web-identity/package.json +4 -4
  51. package/node_modules/@aws-sdk/middleware-host-header/dist-types/index.d.ts +1 -1
  52. package/node_modules/@aws-sdk/middleware-host-header/package.json +2 -2
  53. package/node_modules/@aws-sdk/middleware-logger/package.json +2 -2
  54. package/node_modules/@aws-sdk/middleware-recursion-detection/dist-types/configuration.d.ts +1 -1
  55. package/node_modules/@aws-sdk/middleware-recursion-detection/dist-types/getRecursionDetectionPlugin.d.ts +1 -1
  56. package/node_modules/@aws-sdk/middleware-recursion-detection/dist-types/recursionDetectionMiddleware.browser.d.ts +1 -1
  57. package/node_modules/@aws-sdk/middleware-recursion-detection/dist-types/recursionDetectionMiddleware.d.ts +1 -1
  58. package/node_modules/@aws-sdk/middleware-recursion-detection/dist-types/recursionDetectionMiddleware.native.d.ts +1 -1
  59. package/node_modules/@aws-sdk/middleware-recursion-detection/package.json +2 -2
  60. package/node_modules/@aws-sdk/middleware-user-agent/dist-types/configurations.d.ts +1 -1
  61. package/node_modules/@aws-sdk/middleware-user-agent/package.json +4 -4
  62. package/node_modules/@aws-sdk/nested-clients/package.json +11 -11
  63. package/node_modules/@aws-sdk/region-config-resolver/package.json +2 -2
  64. package/node_modules/@aws-sdk/token-providers/dist-cjs/index.js +2 -2
  65. package/node_modules/@aws-sdk/token-providers/dist-es/writeSSOTokenToFile.js +1 -1
  66. package/node_modules/@aws-sdk/token-providers/dist-types/fromSso.d.ts +2 -2
  67. package/node_modules/@aws-sdk/token-providers/dist-types/fromStatic.d.ts +1 -1
  68. package/node_modules/@aws-sdk/token-providers/dist-types/getNewSsoOidcToken.d.ts +2 -2
  69. package/node_modules/@aws-sdk/token-providers/dist-types/getSsoOidcClient.d.ts +1 -1
  70. package/node_modules/@aws-sdk/token-providers/dist-types/nodeProvider.d.ts +2 -2
  71. package/node_modules/@aws-sdk/token-providers/dist-types/validateTokenExpiry.d.ts +1 -1
  72. package/node_modules/@aws-sdk/token-providers/dist-types/writeSSOTokenToFile.d.ts +1 -1
  73. package/node_modules/@aws-sdk/token-providers/package.json +4 -4
  74. package/node_modules/@aws-sdk/types/dist-types/credentials.d.ts +3 -3
  75. package/node_modules/@aws-sdk/types/dist-types/extensions/index.d.ts +1 -1
  76. package/node_modules/@aws-sdk/types/dist-types/http.d.ts +1 -1
  77. package/node_modules/@aws-sdk/types/dist-types/identity/AnonymousIdentity.d.ts +1 -1
  78. package/node_modules/@aws-sdk/types/dist-types/identity/LoginIdentity.d.ts +1 -1
  79. package/node_modules/@aws-sdk/types/dist-types/middleware.d.ts +2 -2
  80. package/node_modules/@aws-sdk/types/dist-types/token.d.ts +2 -2
  81. package/node_modules/@aws-sdk/types/package.json +1 -1
  82. package/node_modules/@aws-sdk/util-endpoints/package.json +2 -2
  83. package/node_modules/@aws-sdk/util-user-agent-browser/dist-types/index.d.ts +1 -1
  84. package/node_modules/@aws-sdk/util-user-agent-browser/dist-types/index.native.d.ts +2 -2
  85. package/node_modules/@aws-sdk/util-user-agent-browser/package.json +2 -2
  86. package/node_modules/@aws-sdk/util-user-agent-node/dist-cjs/index.js +51 -8
  87. package/node_modules/@aws-sdk/util-user-agent-node/dist-es/defaultUserAgent.js +7 -2
  88. package/node_modules/@aws-sdk/util-user-agent-node/dist-es/getRuntimeUserAgentPair.js +1 -1
  89. package/node_modules/@aws-sdk/util-user-agent-node/dist-es/getTypeScriptPackageJsonPath.js +14 -0
  90. package/node_modules/@aws-sdk/util-user-agent-node/dist-es/getTypeScriptUserAgentPair.js +24 -0
  91. package/node_modules/@aws-sdk/util-user-agent-node/dist-types/getTypeScriptPackageJsonPath.d.ts +9 -0
  92. package/node_modules/@aws-sdk/util-user-agent-node/dist-types/getTypeScriptUserAgentPair.d.ts +6 -0
  93. package/node_modules/@aws-sdk/util-user-agent-node/dist-types/is-crt-available.d.ts +1 -1
  94. package/node_modules/@aws-sdk/util-user-agent-node/dist-types/nodeAppIdConfigOptions.d.ts +1 -1
  95. package/node_modules/@aws-sdk/util-user-agent-node/dist-types/ts3.4/getTypeScriptPackageJsonPath.d.ts +1 -0
  96. package/node_modules/@aws-sdk/util-user-agent-node/dist-types/ts3.4/getTypeScriptUserAgentPair.d.ts +4 -0
  97. package/node_modules/@aws-sdk/util-user-agent-node/package.json +3 -3
  98. package/node_modules/@aws-sdk/xml-builder/dist-types/XmlNode.d.ts +1 -1
  99. package/node_modules/@aws-sdk/xml-builder/dist-types/XmlText.d.ts +1 -1
  100. package/node_modules/@aws-sdk/xml-builder/package.json +1 -1
  101. package/package.json +6 -6
@@ -1,7 +1,7 @@
1
1
  import { setCredentialFeature } from "@aws-sdk/core/client";
2
2
  import { CredentialsProviderError } from "@smithy/property-provider";
3
3
  import { externalDataInterceptor } from "@smithy/shared-ini-file-loader";
4
- import { readFileSync } from "fs";
4
+ import { readFileSync } from "node:fs";
5
5
  import { fromWebToken } from "./fromWebToken";
6
6
  const ENV_TOKEN_FILE = "AWS_WEB_IDENTITY_TOKEN_FILE";
7
7
  const ENV_ROLE_ARN = "AWS_ROLE_ARN";
@@ -1,5 +1,5 @@
1
1
  import type { CredentialProviderOptions, RuntimeConfigAwsCredentialIdentityProvider } from "@aws-sdk/types";
2
- import { FromWebTokenInit } from "./fromWebToken";
2
+ import type { FromWebTokenInit } from "./fromWebToken";
3
3
  /**
4
4
  * @public
5
5
  */
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@aws-sdk/credential-provider-web-identity",
3
- "version": "3.972.12",
3
+ "version": "3.972.13",
4
4
  "description": "AWS credential provider that calls STS assumeRole for temporary AWS credentials",
5
5
  "main": "./dist-cjs/index.js",
6
6
  "module": "./dist-es/index.js",
@@ -34,9 +34,9 @@
34
34
  },
35
35
  "license": "Apache-2.0",
36
36
  "dependencies": {
37
- "@aws-sdk/core": "^3.973.14",
38
- "@aws-sdk/nested-clients": "^3.996.2",
39
- "@aws-sdk/types": "^3.973.3",
37
+ "@aws-sdk/core": "^3.973.15",
38
+ "@aws-sdk/nested-clients": "^3.996.3",
39
+ "@aws-sdk/types": "^3.973.4",
40
40
  "@smithy/property-provider": "^4.2.10",
41
41
  "@smithy/shared-ini-file-loader": "^4.4.5",
42
42
  "@smithy/types": "^4.13.0",
@@ -1,4 +1,4 @@
1
- import { AbsoluteLocation, BuildHandlerOptions, BuildMiddleware, Pluggable, RequestHandler } from "@smithy/types";
1
+ import type { AbsoluteLocation, BuildHandlerOptions, BuildMiddleware, Pluggable, RequestHandler } from "@smithy/types";
2
2
  /**
3
3
  * @public
4
4
  */
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@aws-sdk/middleware-host-header",
3
- "version": "3.972.5",
3
+ "version": "3.972.6",
4
4
  "scripts": {
5
5
  "build": "concurrently 'yarn:build:types' 'yarn:build:es' && yarn build:cjs",
6
6
  "build:cjs": "node ../../scripts/compilation/inline middleware-host-header",
@@ -25,7 +25,7 @@
25
25
  },
26
26
  "license": "Apache-2.0",
27
27
  "dependencies": {
28
- "@aws-sdk/types": "^3.973.3",
28
+ "@aws-sdk/types": "^3.973.4",
29
29
  "@smithy/protocol-http": "^5.3.10",
30
30
  "@smithy/types": "^4.13.0",
31
31
  "tslib": "^2.6.2"
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@aws-sdk/middleware-logger",
3
- "version": "3.972.5",
3
+ "version": "3.972.6",
4
4
  "scripts": {
5
5
  "build": "concurrently 'yarn:build:types' 'yarn:build:es' && yarn build:cjs",
6
6
  "build:cjs": "node ../../scripts/compilation/inline middleware-logger",
@@ -25,7 +25,7 @@
25
25
  "module": "./dist-es/index.js",
26
26
  "types": "./dist-types/index.d.ts",
27
27
  "dependencies": {
28
- "@aws-sdk/types": "^3.973.3",
28
+ "@aws-sdk/types": "^3.973.4",
29
29
  "@smithy/types": "^4.13.0",
30
30
  "tslib": "^2.6.2"
31
31
  },
@@ -1,4 +1,4 @@
1
- import { AbsoluteLocation, BuildHandlerOptions } from "@smithy/types";
1
+ import type { AbsoluteLocation, BuildHandlerOptions } from "@smithy/types";
2
2
  /**
3
3
  * @internal
4
4
  */
@@ -1,4 +1,4 @@
1
- import { Pluggable } from "@smithy/types";
1
+ import type { Pluggable } from "@smithy/types";
2
2
  /**
3
3
  * @internal
4
4
  */
@@ -1,4 +1,4 @@
1
- import { BuildMiddleware } from "@smithy/types";
1
+ import type { BuildMiddleware } from "@smithy/types";
2
2
  /**
3
3
  * No-op middleware for runtimes outside of Node.js
4
4
  * @internal
@@ -1,4 +1,4 @@
1
- import { BuildMiddleware } from "@smithy/types";
1
+ import type { BuildMiddleware } from "@smithy/types";
2
2
  /**
3
3
  * Inject to trace ID to request header to detect recursion invocation in Lambda.
4
4
  * @internal
@@ -1,4 +1,4 @@
1
- import { BuildMiddleware } from "@smithy/types";
1
+ import type { BuildMiddleware } from "@smithy/types";
2
2
  /**
3
3
  * No-op middleware for runtimes outside of Node.js
4
4
  * @internal
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@aws-sdk/middleware-recursion-detection",
3
- "version": "3.972.5",
3
+ "version": "3.972.6",
4
4
  "scripts": {
5
5
  "build": "concurrently 'yarn:build:types' 'yarn:build:es' && yarn build:cjs",
6
6
  "build:cjs": "node ../../scripts/compilation/inline middleware-recursion-detection",
@@ -24,7 +24,7 @@
24
24
  },
25
25
  "license": "Apache-2.0",
26
26
  "dependencies": {
27
- "@aws-sdk/types": "^3.973.3",
27
+ "@aws-sdk/types": "^3.973.4",
28
28
  "@aws/lambda-invoke-store": "^0.2.2",
29
29
  "@smithy/protocol-http": "^5.3.10",
30
30
  "@smithy/types": "^4.13.0",
@@ -1,4 +1,4 @@
1
- import { Logger, Provider, UserAgent } from "@smithy/types";
1
+ import type { Logger, Provider, UserAgent } from "@smithy/types";
2
2
  /**
3
3
  * @internal
4
4
  */
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@aws-sdk/middleware-user-agent",
3
- "version": "3.972.14",
3
+ "version": "3.972.15",
4
4
  "scripts": {
5
5
  "build": "concurrently 'yarn:build:types' 'yarn:build:es' && yarn build:cjs",
6
6
  "build:cjs": "node ../../scripts/compilation/inline middleware-user-agent",
@@ -25,9 +25,9 @@
25
25
  },
26
26
  "license": "Apache-2.0",
27
27
  "dependencies": {
28
- "@aws-sdk/core": "^3.973.14",
29
- "@aws-sdk/types": "^3.973.3",
30
- "@aws-sdk/util-endpoints": "^3.996.2",
28
+ "@aws-sdk/core": "^3.973.15",
29
+ "@aws-sdk/types": "^3.973.4",
30
+ "@aws-sdk/util-endpoints": "^3.996.3",
31
31
  "@smithy/core": "^3.23.6",
32
32
  "@smithy/protocol-http": "^5.3.10",
33
33
  "@smithy/types": "^4.13.0",
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@aws-sdk/nested-clients",
3
- "version": "3.996.2",
3
+ "version": "3.996.3",
4
4
  "description": "Nested clients for AWS SDK packages.",
5
5
  "main": "./dist-cjs/index.js",
6
6
  "module": "./dist-es/index.js",
@@ -29,16 +29,16 @@
29
29
  "dependencies": {
30
30
  "@aws-crypto/sha256-browser": "5.2.0",
31
31
  "@aws-crypto/sha256-js": "5.2.0",
32
- "@aws-sdk/core": "^3.973.14",
33
- "@aws-sdk/middleware-host-header": "^3.972.5",
34
- "@aws-sdk/middleware-logger": "^3.972.5",
35
- "@aws-sdk/middleware-recursion-detection": "^3.972.5",
36
- "@aws-sdk/middleware-user-agent": "^3.972.14",
37
- "@aws-sdk/region-config-resolver": "^3.972.5",
38
- "@aws-sdk/types": "^3.973.3",
39
- "@aws-sdk/util-endpoints": "^3.996.2",
40
- "@aws-sdk/util-user-agent-browser": "^3.972.5",
41
- "@aws-sdk/util-user-agent-node": "^3.972.13",
32
+ "@aws-sdk/core": "^3.973.15",
33
+ "@aws-sdk/middleware-host-header": "^3.972.6",
34
+ "@aws-sdk/middleware-logger": "^3.972.6",
35
+ "@aws-sdk/middleware-recursion-detection": "^3.972.6",
36
+ "@aws-sdk/middleware-user-agent": "^3.972.15",
37
+ "@aws-sdk/region-config-resolver": "^3.972.6",
38
+ "@aws-sdk/types": "^3.973.4",
39
+ "@aws-sdk/util-endpoints": "^3.996.3",
40
+ "@aws-sdk/util-user-agent-browser": "^3.972.6",
41
+ "@aws-sdk/util-user-agent-node": "^3.973.0",
42
42
  "@smithy/config-resolver": "^4.4.9",
43
43
  "@smithy/core": "^3.23.6",
44
44
  "@smithy/fetch-http-handler": "^5.3.11",
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@aws-sdk/region-config-resolver",
3
- "version": "3.972.5",
3
+ "version": "3.972.6",
4
4
  "scripts": {
5
5
  "build": "concurrently 'yarn:build:types' 'yarn:build:es' && yarn build:cjs",
6
6
  "build:cjs": "node ../../scripts/compilation/inline region-config-resolver",
@@ -23,7 +23,7 @@
23
23
  },
24
24
  "license": "Apache-2.0",
25
25
  "dependencies": {
26
- "@aws-sdk/types": "^3.973.3",
26
+ "@aws-sdk/types": "^3.973.4",
27
27
  "@smithy/config-resolver": "^4.4.9",
28
28
  "@smithy/node-config-provider": "^4.3.10",
29
29
  "@smithy/types": "^4.13.0",
@@ -4,7 +4,7 @@ var client = require('@aws-sdk/core/client');
4
4
  var httpAuthSchemes = require('@aws-sdk/core/httpAuthSchemes');
5
5
  var propertyProvider = require('@smithy/property-provider');
6
6
  var sharedIniFileLoader = require('@smithy/shared-ini-file-loader');
7
- var fs = require('fs');
7
+ var node_fs = require('node:fs');
8
8
 
9
9
  const fromEnvSigningName = ({ logger, signingName } = {}) => async () => {
10
10
  logger?.debug?.("@aws-sdk/token-providers - fromEnvSigningName");
@@ -57,7 +57,7 @@ const validateTokenKey = (key, value, forRefresh = false) => {
57
57
  }
58
58
  };
59
59
 
60
- const { writeFile } = fs.promises;
60
+ const { writeFile } = node_fs.promises;
61
61
  const writeSSOTokenToFile = (id, ssoToken) => {
62
62
  const tokenFilepath = sharedIniFileLoader.getSSOTokenFilepath(id);
63
63
  const tokenString = JSON.stringify(ssoToken, null, 2);
@@ -1,5 +1,5 @@
1
1
  import { getSSOTokenFilepath } from "@smithy/shared-ini-file-loader";
2
- import { promises as fsPromises } from "fs";
2
+ import { promises as fsPromises } from "node:fs";
3
3
  const { writeFile } = fsPromises;
4
4
  export const writeSSOTokenToFile = (id, ssoToken) => {
5
5
  const tokenFilepath = getSSOTokenFilepath(id);
@@ -1,5 +1,5 @@
1
- import { CredentialProviderOptions, RuntimeConfigIdentityProvider, TokenIdentity } from "@aws-sdk/types";
2
- import { SourceProfileInit } from "@smithy/shared-ini-file-loader";
1
+ import type { CredentialProviderOptions, RuntimeConfigIdentityProvider, TokenIdentity } from "@aws-sdk/types";
2
+ import type { SourceProfileInit } from "@smithy/shared-ini-file-loader";
3
3
  export interface FromSsoInit extends SourceProfileInit, CredentialProviderOptions {
4
4
  /**
5
5
  * @see SSOOIDCClientConfig in \@aws-sdk/client-sso-oidc.
@@ -1,4 +1,4 @@
1
- import { CredentialProviderOptions, TokenIdentity, TokenIdentityProvider } from "@aws-sdk/types";
1
+ import type { CredentialProviderOptions, TokenIdentity, TokenIdentityProvider } from "@aws-sdk/types";
2
2
  export interface FromStaticInit extends CredentialProviderOptions {
3
3
  token?: TokenIdentity;
4
4
  }
@@ -1,6 +1,6 @@
1
1
  import type { AwsIdentityProperties } from "@aws-sdk/types";
2
- import { SSOToken } from "@smithy/shared-ini-file-loader";
3
- import { FromSsoInit } from "./fromSso";
2
+ import type { SSOToken } from "@smithy/shared-ini-file-loader";
3
+ import type { FromSsoInit } from "./fromSso";
4
4
  /**
5
5
  * Returns a new SSO OIDC token from SSOOIDC::createToken() API call.
6
6
  * @internal
@@ -1,5 +1,5 @@
1
1
  import type { AwsIdentityProperties } from "@aws-sdk/types";
2
- import { FromSsoInit } from "./fromSso";
2
+ import type { FromSsoInit } from "./fromSso";
3
3
  /**
4
4
  * Returns a SSOOIDC client for the given region.
5
5
  * @internal
@@ -1,5 +1,5 @@
1
- import { TokenIdentityProvider } from "@aws-sdk/types";
2
- import { FromSsoInit } from "./fromSso";
1
+ import type { TokenIdentityProvider } from "@aws-sdk/types";
2
+ import type { FromSsoInit } from "./fromSso";
3
3
  /**
4
4
  * Creates a token provider that will attempt to find token from the
5
5
  * following sources (listed in order of precedence):
@@ -1,4 +1,4 @@
1
- import { TokenIdentity } from "@aws-sdk/types";
1
+ import type { TokenIdentity } from "@aws-sdk/types";
2
2
  /**
3
3
  * Throws TokenProviderError is token is expired.
4
4
  */
@@ -1,4 +1,4 @@
1
- import { SSOToken } from "@smithy/shared-ini-file-loader";
1
+ import type { SSOToken } from "@smithy/shared-ini-file-loader";
2
2
  /**
3
3
  * Writes SSO token to file based on filepath computed from ssoStartUrl or session name.
4
4
  */
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@aws-sdk/token-providers",
3
- "version": "3.998.0",
3
+ "version": "3.999.0",
4
4
  "description": "A collection of token providers",
5
5
  "main": "./dist-cjs/index.js",
6
6
  "module": "./dist-es/index.js",
@@ -29,9 +29,9 @@
29
29
  },
30
30
  "license": "Apache-2.0",
31
31
  "dependencies": {
32
- "@aws-sdk/core": "^3.973.14",
33
- "@aws-sdk/nested-clients": "^3.996.2",
34
- "@aws-sdk/types": "^3.973.3",
32
+ "@aws-sdk/core": "^3.973.15",
33
+ "@aws-sdk/nested-clients": "^3.996.3",
34
+ "@aws-sdk/types": "^3.973.4",
35
35
  "@smithy/property-provider": "^4.2.10",
36
36
  "@smithy/shared-ini-file-loader": "^4.4.5",
37
37
  "@smithy/types": "^4.13.0",
@@ -1,6 +1,6 @@
1
- import { Logger } from "@smithy/types";
2
- import { AwsCredentialIdentity } from "./identity";
3
- import { Provider } from "./util";
1
+ import type { Logger } from "@smithy/types";
2
+ import type { AwsCredentialIdentity } from "./identity";
3
+ import type { Provider } from "./util";
4
4
  /**
5
5
  * @public
6
6
  *
@@ -1,4 +1,4 @@
1
- import { Provider } from "@smithy/types";
1
+ import type { Provider } from "@smithy/types";
2
2
  /**
3
3
  * @internal
4
4
  */
@@ -1,4 +1,4 @@
1
- import { HttpResponse } from "@smithy/types";
1
+ import type { HttpResponse } from "@smithy/types";
2
2
  export { Endpoint, HeaderBag, HttpHandlerOptions, HttpMessage, HttpRequest, HttpResponse, QueryParameterBag, } from "@smithy/types";
3
3
  /**
4
4
  * @public
@@ -1,4 +1,4 @@
1
- import { Identity } from "./Identity";
1
+ import type { Identity } from "./Identity";
2
2
  /**
3
3
  * @public
4
4
  */
@@ -1,4 +1,4 @@
1
- import { Identity, IdentityProvider } from "./Identity";
1
+ import type { Identity, IdentityProvider } from "./Identity";
2
2
  /**
3
3
  * @public
4
4
  */
@@ -1,5 +1,5 @@
1
- import { HandlerExecutionContext } from "@smithy/types";
2
- import { AwsSdkFeatures } from "./feature-ids";
1
+ import type { HandlerExecutionContext } from "@smithy/types";
2
+ import type { AwsSdkFeatures } from "./feature-ids";
3
3
  export { AbsoluteLocation, BuildHandler, BuildHandlerArguments, BuildHandlerOptions, BuildHandlerOutput, BuildMiddleware, DeserializeHandler, DeserializeHandlerArguments, DeserializeHandlerOptions, DeserializeHandlerOutput, DeserializeMiddleware, FinalizeHandler, FinalizeHandlerArguments, FinalizeHandlerOutput, FinalizeRequestHandlerOptions, FinalizeRequestMiddleware, Handler, HandlerExecutionContext, HandlerOptions, InitializeHandler, InitializeHandlerArguments, InitializeHandlerOptions, InitializeHandlerOutput, InitializeMiddleware, MiddlewareStack, MiddlewareType, Pluggable, Priority, Relation, RelativeLocation, RelativeMiddlewareOptions, SerializeHandler, SerializeHandlerArguments, SerializeHandlerOptions, SerializeHandlerOutput, SerializeMiddleware, Step, Terminalware, } from "@smithy/types";
4
4
  /**
5
5
  * @internal
@@ -1,5 +1,5 @@
1
- import { TokenIdentity } from "./identity";
2
- import { Provider } from "./util";
1
+ import type { TokenIdentity } from "./identity";
2
+ import type { Provider } from "./util";
3
3
  /**
4
4
  * @public
5
5
  *
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@aws-sdk/types",
3
- "version": "3.973.3",
3
+ "version": "3.973.4",
4
4
  "main": "./dist-cjs/index.js",
5
5
  "module": "./dist-es/index.js",
6
6
  "types": "./dist-types/index.d.ts",
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@aws-sdk/util-endpoints",
3
- "version": "3.996.2",
3
+ "version": "3.996.3",
4
4
  "description": "Utilities to help with endpoint resolution",
5
5
  "main": "./dist-cjs/index.js",
6
6
  "module": "./dist-es/index.js",
@@ -25,7 +25,7 @@
25
25
  },
26
26
  "license": "Apache-2.0",
27
27
  "dependencies": {
28
- "@aws-sdk/types": "^3.973.3",
28
+ "@aws-sdk/types": "^3.973.4",
29
29
  "@smithy/types": "^4.13.0",
30
30
  "@smithy/url-parser": "^4.2.10",
31
31
  "@smithy/util-endpoints": "^3.3.1",
@@ -1,4 +1,4 @@
1
- import { Provider, UserAgent } from "@smithy/types";
1
+ import type { Provider, UserAgent } from "@smithy/types";
2
2
  import type { DefaultUserAgentOptions } from "./configurations";
3
3
  export { createUserAgentStringParsingProvider } from "./createUserAgentStringParsingProvider";
4
4
  /**
@@ -1,5 +1,5 @@
1
- import { Provider, UserAgent } from "@smithy/types";
2
- import { DefaultUserAgentOptions } from "./configurations";
1
+ import type { Provider, UserAgent } from "@smithy/types";
2
+ import type { DefaultUserAgentOptions } from "./configurations";
3
3
  /**
4
4
  * @internal
5
5
  */
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@aws-sdk/util-user-agent-browser",
3
- "version": "3.972.5",
3
+ "version": "3.972.6",
4
4
  "scripts": {
5
5
  "build": "concurrently 'yarn:build:types' 'yarn:build:es' && yarn build:cjs",
6
6
  "build:cjs": "node ../../scripts/compilation/inline util-user-agent-browser",
@@ -24,7 +24,7 @@
24
24
  "license": "Apache-2.0",
25
25
  "react-native": "dist-es/index.native.js",
26
26
  "dependencies": {
27
- "@aws-sdk/types": "^3.973.3",
27
+ "@aws-sdk/types": "^3.973.4",
28
28
  "@smithy/types": "^4.13.0",
29
29
  "bowser": "^2.11.0",
30
30
  "tslib": "^2.6.2"
@@ -1,17 +1,56 @@
1
1
  'use strict';
2
2
 
3
- var os = require('os');
4
- var process = require('process');
3
+ var node_os = require('node:os');
4
+ var node_process = require('node:process');
5
+ var promises = require('node:fs/promises');
6
+ var node_path = require('node:path');
5
7
  var middlewareUserAgent = require('@aws-sdk/middleware-user-agent');
6
8
 
7
9
  const getRuntimeUserAgentPair = () => {
8
10
  const runtimesToCheck = ["deno", "bun", "llrt"];
9
11
  for (const runtime of runtimesToCheck) {
10
- if (process.versions[runtime]) {
11
- return [`md/${runtime}`, process.versions[runtime]];
12
+ if (node_process.versions[runtime]) {
13
+ return [`md/${runtime}`, node_process.versions[runtime]];
12
14
  }
13
15
  }
14
- return ["md/nodejs", process.versions.node];
16
+ return ["md/nodejs", node_process.versions.node];
17
+ };
18
+
19
+ const getTypeScriptPackageJsonPath = (dirname = "") => {
20
+ let nodeModulesPath;
21
+ const normalizedPath = node_path.normalize(dirname);
22
+ const parts = normalizedPath.split(node_path.sep);
23
+ const nodeModulesIndex = parts.indexOf("node_modules");
24
+ if (nodeModulesIndex !== -1) {
25
+ nodeModulesPath = parts.slice(0, nodeModulesIndex).join(node_path.sep);
26
+ }
27
+ else {
28
+ nodeModulesPath = dirname;
29
+ }
30
+ return node_path.join(nodeModulesPath, "node_modules", "typescript", "package.json");
31
+ };
32
+
33
+ let tscVersion;
34
+ const getTypeScriptUserAgentPair = async () => {
35
+ if (tscVersion === null) {
36
+ return undefined;
37
+ }
38
+ else if (typeof tscVersion === "string") {
39
+ return ["md/tsc", tscVersion];
40
+ }
41
+ try {
42
+ const packageJson = await promises.readFile(getTypeScriptPackageJsonPath(__dirname), "utf-8");
43
+ const { version } = JSON.parse(packageJson);
44
+ if (typeof version !== "string") {
45
+ tscVersion = null;
46
+ return undefined;
47
+ }
48
+ tscVersion = version;
49
+ return ["md/tsc", tscVersion];
50
+ }
51
+ catch {
52
+ tscVersion = null;
53
+ }
15
54
  };
16
55
 
17
56
  const crtAvailability = {
@@ -31,10 +70,14 @@ const createDefaultUserAgentProvider = ({ serviceId, clientVersion }) => {
31
70
  const sections = [
32
71
  ["aws-sdk-js", clientVersion],
33
72
  ["ua", "2.1"],
34
- [`os/${os.platform()}`, os.release()],
73
+ [`os/${node_os.platform()}`, node_os.release()],
35
74
  ["lang/js"],
36
75
  runtimeUserAgentPair,
37
76
  ];
77
+ const typescriptUserAgentPair = await getTypeScriptUserAgentPair();
78
+ if (typescriptUserAgentPair) {
79
+ sections.push(typescriptUserAgentPair);
80
+ }
38
81
  const crtAvailable = isCrtAvailable();
39
82
  if (crtAvailable) {
40
83
  sections.push(crtAvailable);
@@ -42,8 +85,8 @@ const createDefaultUserAgentProvider = ({ serviceId, clientVersion }) => {
42
85
  if (serviceId) {
43
86
  sections.push([`api/${serviceId}`, clientVersion]);
44
87
  }
45
- if (process.env.AWS_EXECUTION_ENV) {
46
- sections.push([`exec-env/${process.env.AWS_EXECUTION_ENV}`]);
88
+ if (node_process.env.AWS_EXECUTION_ENV) {
89
+ sections.push([`exec-env/${node_process.env.AWS_EXECUTION_ENV}`]);
47
90
  }
48
91
  const appId = await config?.userAgentAppId?.();
49
92
  const resolvedUserAgent = appId ? [...sections, [`app/${appId}`]] : [...sections];
@@ -1,6 +1,7 @@
1
- import { platform, release } from "os";
2
- import { env } from "process";
1
+ import { platform, release } from "node:os";
2
+ import { env } from "node:process";
3
3
  import { getRuntimeUserAgentPair } from "./getRuntimeUserAgentPair";
4
+ import { getTypeScriptUserAgentPair } from "./getTypeScriptUserAgentPair";
4
5
  import { isCrtAvailable } from "./is-crt-available";
5
6
  export { crtAvailability } from "./crt-availability";
6
7
  export const createDefaultUserAgentProvider = ({ serviceId, clientVersion }) => {
@@ -13,6 +14,10 @@ export const createDefaultUserAgentProvider = ({ serviceId, clientVersion }) =>
13
14
  ["lang/js"],
14
15
  runtimeUserAgentPair,
15
16
  ];
17
+ const typescriptUserAgentPair = await getTypeScriptUserAgentPair();
18
+ if (typescriptUserAgentPair) {
19
+ sections.push(typescriptUserAgentPair);
20
+ }
16
21
  const crtAvailable = isCrtAvailable();
17
22
  if (crtAvailable) {
18
23
  sections.push(crtAvailable);
@@ -1,4 +1,4 @@
1
- import { versions } from "process";
1
+ import { versions } from "node:process";
2
2
  export const getRuntimeUserAgentPair = () => {
3
3
  const runtimesToCheck = ["deno", "bun", "llrt"];
4
4
  for (const runtime of runtimesToCheck) {
@@ -0,0 +1,14 @@
1
+ import { join, normalize, sep } from "node:path";
2
+ export const getTypeScriptPackageJsonPath = (dirname = "") => {
3
+ let nodeModulesPath;
4
+ const normalizedPath = normalize(dirname);
5
+ const parts = normalizedPath.split(sep);
6
+ const nodeModulesIndex = parts.indexOf("node_modules");
7
+ if (nodeModulesIndex !== -1) {
8
+ nodeModulesPath = parts.slice(0, nodeModulesIndex).join(sep);
9
+ }
10
+ else {
11
+ nodeModulesPath = dirname;
12
+ }
13
+ return join(nodeModulesPath, "node_modules", "typescript", "package.json");
14
+ };
@@ -0,0 +1,24 @@
1
+ import { readFile } from "node:fs/promises";
2
+ import { getTypeScriptPackageJsonPath } from "./getTypeScriptPackageJsonPath";
3
+ let tscVersion;
4
+ export const getTypeScriptUserAgentPair = async () => {
5
+ if (tscVersion === null) {
6
+ return undefined;
7
+ }
8
+ else if (typeof tscVersion === "string") {
9
+ return ["md/tsc", tscVersion];
10
+ }
11
+ try {
12
+ const packageJson = await readFile(getTypeScriptPackageJsonPath(__dirname), "utf-8");
13
+ const { version } = JSON.parse(packageJson);
14
+ if (typeof version !== "string") {
15
+ tscVersion = null;
16
+ return undefined;
17
+ }
18
+ tscVersion = version;
19
+ return ["md/tsc", tscVersion];
20
+ }
21
+ catch {
22
+ tscVersion = null;
23
+ }
24
+ };
@@ -0,0 +1,9 @@
1
+ /**
2
+ * Returns the path to the TypeScript package.json file relative to the given directory.
3
+ *
4
+ * @param dirname - The directory path to resolve from.
5
+ * @returns The path to the TypeScript package.json file.
6
+ *
7
+ * @internal
8
+ */
9
+ export declare const getTypeScriptPackageJsonPath: (dirname?: string) => string;
@@ -0,0 +1,6 @@
1
+ import type { UserAgentPair } from "@smithy/types";
2
+ /**
3
+ * Returns the tyescript name and version as a user agent pair, if present.
4
+ * @internal
5
+ */
6
+ export declare const getTypeScriptUserAgentPair: () => Promise<UserAgentPair | undefined>;
@@ -1,4 +1,4 @@
1
- import { UserAgentPair } from "@smithy/types";
1
+ import type { UserAgentPair } from "@smithy/types";
2
2
  /**
3
3
  * @internal
4
4
  */