@jjrawlins/cdk-diff-pr-github-action 1.5.6 → 1.5.7

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 (105) hide show
  1. package/.jsii +4 -4
  2. package/lib/CdkDiffIamTemplate.js +2 -2
  3. package/lib/CdkDiffIamTemplateStackSet.js +2 -2
  4. package/lib/CdkDiffStackWorkflow.js +1 -1
  5. package/lib/CdkDriftDetectionWorkflow.js +1 -1
  6. package/lib/CdkDriftIamTemplate.js +2 -2
  7. package/node_modules/@aws-sdk/client-cloudformation/package.json +34 -34
  8. package/node_modules/@aws-sdk/core/dist-es/submodules/account-id-endpoint/AccountIdEndpointModeConfigResolver.js +1 -1
  9. package/node_modules/@aws-sdk/core/dist-es/submodules/account-id-endpoint/NodeAccountIdEndpointModeConfigOptions.js +1 -1
  10. package/node_modules/@aws-sdk/core/dist-types/submodules/account-id-endpoint/AccountIdEndpointModeConfigResolver.d.ts +1 -1
  11. package/node_modules/@aws-sdk/core/dist-types/submodules/account-id-endpoint/NodeAccountIdEndpointModeConfigOptions.d.ts +2 -2
  12. package/node_modules/@aws-sdk/core/dist-types/submodules/httpAuthSchemes/aws_sdk/AwsSdkSigV4Signer.d.ts +1 -1
  13. package/node_modules/@aws-sdk/core/dist-types/submodules/httpAuthSchemes/aws_sdk/NODE_AUTH_SCHEME_PREFERENCE_OPTIONS.d.ts +1 -1
  14. package/node_modules/@aws-sdk/core/dist-types/submodules/httpAuthSchemes/aws_sdk/resolveAwsSdkSigV4AConfig.d.ts +1 -1
  15. package/node_modules/@aws-sdk/core/dist-types/submodules/httpAuthSchemes/aws_sdk/resolveAwsSdkSigV4Config.d.ts +1 -1
  16. package/node_modules/@aws-sdk/core/dist-types/submodules/protocols/ProtocolLib.d.ts +1 -1
  17. package/node_modules/@aws-sdk/core/dist-types/submodules/protocols/json/JsonShapeDeserializer.d.ts +1 -1
  18. package/node_modules/@aws-sdk/core/dist-types/submodules/protocols/xml/XmlShapeSerializer.d.ts +1 -1
  19. package/node_modules/@aws-sdk/core/package.json +11 -11
  20. package/node_modules/@aws-sdk/credential-provider-env/dist-types/fromEnv.d.ts +1 -1
  21. package/node_modules/@aws-sdk/credential-provider-env/package.json +5 -5
  22. package/node_modules/@aws-sdk/credential-provider-http/dist-cjs/fromHttp/fromHttp.js +1 -1
  23. package/node_modules/@aws-sdk/credential-provider-http/dist-es/fromHttp/fromHttp.js +1 -1
  24. package/node_modules/@aws-sdk/credential-provider-http/dist-types/fromHttp/checkUrl.d.ts +1 -1
  25. package/node_modules/@aws-sdk/credential-provider-http/dist-types/fromHttp/fromHttp.browser.d.ts +1 -1
  26. package/node_modules/@aws-sdk/credential-provider-http/dist-types/fromHttp/fromHttp.d.ts +1 -1
  27. package/node_modules/@aws-sdk/credential-provider-http/dist-types/fromHttp/requestHelpers.d.ts +2 -2
  28. package/node_modules/@aws-sdk/credential-provider-http/package.json +10 -10
  29. package/node_modules/@aws-sdk/credential-provider-ini/dist-types/fromIni.d.ts +2 -2
  30. package/node_modules/@aws-sdk/credential-provider-ini/dist-types/resolveAssumeRoleCredentials.d.ts +2 -2
  31. package/node_modules/@aws-sdk/credential-provider-ini/dist-types/resolveCredentialSource.d.ts +1 -1
  32. package/node_modules/@aws-sdk/credential-provider-ini/dist-types/resolveProcessCredentials.d.ts +2 -2
  33. package/node_modules/@aws-sdk/credential-provider-ini/dist-types/resolveProfileData.d.ts +1 -1
  34. package/node_modules/@aws-sdk/credential-provider-ini/dist-types/resolveStaticCredentials.d.ts +2 -2
  35. package/node_modules/@aws-sdk/credential-provider-ini/dist-types/resolveWebIdentityCredentials.d.ts +2 -2
  36. package/node_modules/@aws-sdk/credential-provider-ini/package.json +14 -14
  37. package/node_modules/@aws-sdk/credential-provider-login/package.json +8 -8
  38. package/node_modules/@aws-sdk/credential-provider-node/package.json +12 -12
  39. package/node_modules/@aws-sdk/credential-provider-process/dist-cjs/index.js +3 -3
  40. package/node_modules/@aws-sdk/credential-provider-process/dist-es/resolveProcessCredentials.js +2 -2
  41. package/node_modules/@aws-sdk/credential-provider-process/dist-types/fromProcess.d.ts +1 -1
  42. package/node_modules/@aws-sdk/credential-provider-process/dist-types/getValidatedProcessCredentials.d.ts +2 -2
  43. package/node_modules/@aws-sdk/credential-provider-process/dist-types/resolveProcessCredentials.d.ts +1 -1
  44. package/node_modules/@aws-sdk/credential-provider-process/package.json +6 -6
  45. package/node_modules/@aws-sdk/credential-provider-sso/dist-types/fromSSO.d.ts +1 -1
  46. package/node_modules/@aws-sdk/credential-provider-sso/dist-types/isSsoProfile.d.ts +2 -2
  47. package/node_modules/@aws-sdk/credential-provider-sso/dist-types/resolveSSOCredentials.d.ts +2 -2
  48. package/node_modules/@aws-sdk/credential-provider-sso/dist-types/types.d.ts +1 -1
  49. package/node_modules/@aws-sdk/credential-provider-sso/dist-types/validateSsoProfile.d.ts +2 -2
  50. package/node_modules/@aws-sdk/credential-provider-sso/package.json +8 -8
  51. package/node_modules/@aws-sdk/credential-provider-web-identity/dist-cjs/fromTokenFile.js +2 -2
  52. package/node_modules/@aws-sdk/credential-provider-web-identity/dist-es/fromTokenFile.js +1 -1
  53. package/node_modules/@aws-sdk/credential-provider-web-identity/dist-types/fromTokenFile.d.ts +1 -1
  54. package/node_modules/@aws-sdk/credential-provider-web-identity/package.json +7 -7
  55. package/node_modules/@aws-sdk/middleware-host-header/dist-types/index.d.ts +1 -1
  56. package/node_modules/@aws-sdk/middleware-host-header/package.json +4 -4
  57. package/node_modules/@aws-sdk/middleware-logger/package.json +3 -3
  58. package/node_modules/@aws-sdk/middleware-recursion-detection/dist-types/configuration.d.ts +1 -1
  59. package/node_modules/@aws-sdk/middleware-recursion-detection/dist-types/getRecursionDetectionPlugin.d.ts +1 -1
  60. package/node_modules/@aws-sdk/middleware-recursion-detection/dist-types/recursionDetectionMiddleware.browser.d.ts +1 -1
  61. package/node_modules/@aws-sdk/middleware-recursion-detection/dist-types/recursionDetectionMiddleware.d.ts +1 -1
  62. package/node_modules/@aws-sdk/middleware-recursion-detection/dist-types/recursionDetectionMiddleware.native.d.ts +1 -1
  63. package/node_modules/@aws-sdk/middleware-recursion-detection/package.json +4 -4
  64. package/node_modules/@aws-sdk/middleware-user-agent/dist-types/configurations.d.ts +1 -1
  65. package/node_modules/@aws-sdk/middleware-user-agent/package.json +7 -7
  66. package/node_modules/@aws-sdk/nested-clients/package.json +32 -32
  67. package/node_modules/@aws-sdk/region-config-resolver/package.json +5 -5
  68. package/node_modules/@aws-sdk/token-providers/dist-cjs/index.js +2 -2
  69. package/node_modules/@aws-sdk/token-providers/dist-es/writeSSOTokenToFile.js +1 -1
  70. package/node_modules/@aws-sdk/token-providers/dist-types/fromSso.d.ts +2 -2
  71. package/node_modules/@aws-sdk/token-providers/dist-types/fromStatic.d.ts +1 -1
  72. package/node_modules/@aws-sdk/token-providers/dist-types/getNewSsoOidcToken.d.ts +2 -2
  73. package/node_modules/@aws-sdk/token-providers/dist-types/getSsoOidcClient.d.ts +1 -1
  74. package/node_modules/@aws-sdk/token-providers/dist-types/nodeProvider.d.ts +2 -2
  75. package/node_modules/@aws-sdk/token-providers/dist-types/validateTokenExpiry.d.ts +1 -1
  76. package/node_modules/@aws-sdk/token-providers/dist-types/writeSSOTokenToFile.d.ts +1 -1
  77. package/node_modules/@aws-sdk/token-providers/package.json +7 -7
  78. package/node_modules/@aws-sdk/types/dist-types/credentials.d.ts +3 -3
  79. package/node_modules/@aws-sdk/types/dist-types/extensions/index.d.ts +1 -1
  80. package/node_modules/@aws-sdk/types/dist-types/http.d.ts +1 -1
  81. package/node_modules/@aws-sdk/types/dist-types/identity/AnonymousIdentity.d.ts +1 -1
  82. package/node_modules/@aws-sdk/types/dist-types/identity/LoginIdentity.d.ts +1 -1
  83. package/node_modules/@aws-sdk/types/dist-types/middleware.d.ts +2 -2
  84. package/node_modules/@aws-sdk/types/dist-types/token.d.ts +2 -2
  85. package/node_modules/@aws-sdk/types/package.json +2 -2
  86. package/node_modules/@aws-sdk/util-endpoints/package.json +5 -5
  87. package/node_modules/@aws-sdk/util-user-agent-browser/dist-types/index.d.ts +1 -1
  88. package/node_modules/@aws-sdk/util-user-agent-browser/dist-types/index.native.d.ts +2 -2
  89. package/node_modules/@aws-sdk/util-user-agent-browser/package.json +3 -3
  90. package/node_modules/@aws-sdk/util-user-agent-node/dist-cjs/index.js +51 -8
  91. package/node_modules/@aws-sdk/util-user-agent-node/dist-es/defaultUserAgent.js +7 -2
  92. package/node_modules/@aws-sdk/util-user-agent-node/dist-es/getRuntimeUserAgentPair.js +1 -1
  93. package/node_modules/@aws-sdk/util-user-agent-node/dist-es/getTypeScriptPackageJsonPath.js +14 -0
  94. package/node_modules/@aws-sdk/util-user-agent-node/dist-es/getTypeScriptUserAgentPair.js +24 -0
  95. package/node_modules/@aws-sdk/util-user-agent-node/dist-types/getTypeScriptPackageJsonPath.d.ts +9 -0
  96. package/node_modules/@aws-sdk/util-user-agent-node/dist-types/getTypeScriptUserAgentPair.d.ts +6 -0
  97. package/node_modules/@aws-sdk/util-user-agent-node/dist-types/is-crt-available.d.ts +1 -1
  98. package/node_modules/@aws-sdk/util-user-agent-node/dist-types/nodeAppIdConfigOptions.d.ts +1 -1
  99. package/node_modules/@aws-sdk/util-user-agent-node/dist-types/ts3.4/getTypeScriptPackageJsonPath.d.ts +1 -0
  100. package/node_modules/@aws-sdk/util-user-agent-node/dist-types/ts3.4/getTypeScriptUserAgentPair.d.ts +4 -0
  101. package/node_modules/@aws-sdk/util-user-agent-node/package.json +8 -6
  102. package/node_modules/@aws-sdk/xml-builder/dist-types/XmlNode.d.ts +1 -1
  103. package/node_modules/@aws-sdk/xml-builder/dist-types/XmlText.d.ts +1 -1
  104. package/node_modules/@aws-sdk/xml-builder/package.json +2 -2
  105. package/package.json +6 -6
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@aws-sdk/nested-clients",
3
- "version": "3.996.1",
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,40 +29,40 @@
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.13",
33
- "@aws-sdk/middleware-host-header": "^3.972.4",
34
- "@aws-sdk/middleware-logger": "^3.972.4",
35
- "@aws-sdk/middleware-recursion-detection": "^3.972.4",
36
- "@aws-sdk/middleware-user-agent": "^3.972.13",
37
- "@aws-sdk/region-config-resolver": "^3.972.4",
38
- "@aws-sdk/types": "^3.973.2",
39
- "@aws-sdk/util-endpoints": "^3.996.1",
40
- "@aws-sdk/util-user-agent-browser": "^3.972.4",
41
- "@aws-sdk/util-user-agent-node": "^3.972.12",
42
- "@smithy/config-resolver": "^4.4.7",
43
- "@smithy/core": "^3.23.4",
44
- "@smithy/fetch-http-handler": "^5.3.10",
45
- "@smithy/hash-node": "^4.2.9",
46
- "@smithy/invalid-dependency": "^4.2.9",
47
- "@smithy/middleware-content-length": "^4.2.9",
48
- "@smithy/middleware-endpoint": "^4.4.18",
49
- "@smithy/middleware-retry": "^4.4.35",
50
- "@smithy/middleware-serde": "^4.2.10",
51
- "@smithy/middleware-stack": "^4.2.9",
52
- "@smithy/node-config-provider": "^4.3.9",
53
- "@smithy/node-http-handler": "^4.4.11",
54
- "@smithy/protocol-http": "^5.3.9",
55
- "@smithy/smithy-client": "^4.11.7",
56
- "@smithy/types": "^4.12.1",
57
- "@smithy/url-parser": "^4.2.9",
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
+ "@smithy/config-resolver": "^4.4.9",
43
+ "@smithy/core": "^3.23.6",
44
+ "@smithy/fetch-http-handler": "^5.3.11",
45
+ "@smithy/hash-node": "^4.2.10",
46
+ "@smithy/invalid-dependency": "^4.2.10",
47
+ "@smithy/middleware-content-length": "^4.2.10",
48
+ "@smithy/middleware-endpoint": "^4.4.20",
49
+ "@smithy/middleware-retry": "^4.4.37",
50
+ "@smithy/middleware-serde": "^4.2.11",
51
+ "@smithy/middleware-stack": "^4.2.10",
52
+ "@smithy/node-config-provider": "^4.3.10",
53
+ "@smithy/node-http-handler": "^4.4.12",
54
+ "@smithy/protocol-http": "^5.3.10",
55
+ "@smithy/smithy-client": "^4.12.0",
56
+ "@smithy/types": "^4.13.0",
57
+ "@smithy/url-parser": "^4.2.10",
58
58
  "@smithy/util-base64": "^4.3.1",
59
59
  "@smithy/util-body-length-browser": "^4.2.1",
60
60
  "@smithy/util-body-length-node": "^4.2.2",
61
- "@smithy/util-defaults-mode-browser": "^4.3.34",
62
- "@smithy/util-defaults-mode-node": "^4.2.37",
63
- "@smithy/util-endpoints": "^3.2.9",
64
- "@smithy/util-middleware": "^4.2.9",
65
- "@smithy/util-retry": "^4.2.9",
61
+ "@smithy/util-defaults-mode-browser": "^4.3.36",
62
+ "@smithy/util-defaults-mode-node": "^4.2.39",
63
+ "@smithy/util-endpoints": "^3.3.1",
64
+ "@smithy/util-middleware": "^4.2.10",
65
+ "@smithy/util-retry": "^4.2.10",
66
66
  "@smithy/util-utf8": "^4.2.1",
67
67
  "tslib": "^2.6.2"
68
68
  },
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@aws-sdk/region-config-resolver",
3
- "version": "3.972.4",
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,10 +23,10 @@
23
23
  },
24
24
  "license": "Apache-2.0",
25
25
  "dependencies": {
26
- "@aws-sdk/types": "^3.973.2",
27
- "@smithy/config-resolver": "^4.4.7",
28
- "@smithy/node-config-provider": "^4.3.9",
29
- "@smithy/types": "^4.12.1",
26
+ "@aws-sdk/types": "^3.973.4",
27
+ "@smithy/config-resolver": "^4.4.9",
28
+ "@smithy/node-config-provider": "^4.3.10",
29
+ "@smithy/types": "^4.13.0",
30
30
  "tslib": "^2.6.2"
31
31
  },
32
32
  "devDependencies": {
@@ -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.997.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,12 +29,12 @@
29
29
  },
30
30
  "license": "Apache-2.0",
31
31
  "dependencies": {
32
- "@aws-sdk/core": "^3.973.13",
33
- "@aws-sdk/nested-clients": "^3.996.1",
34
- "@aws-sdk/types": "^3.973.2",
35
- "@smithy/property-provider": "^4.2.9",
36
- "@smithy/shared-ini-file-loader": "^4.4.4",
37
- "@smithy/types": "^4.12.1",
32
+ "@aws-sdk/core": "^3.973.15",
33
+ "@aws-sdk/nested-clients": "^3.996.3",
34
+ "@aws-sdk/types": "^3.973.4",
35
+ "@smithy/property-provider": "^4.2.10",
36
+ "@smithy/shared-ini-file-loader": "^4.4.5",
37
+ "@smithy/types": "^4.13.0",
38
38
  "tslib": "^2.6.2"
39
39
  },
40
40
  "devDependencies": {
@@ -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.2",
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",
@@ -42,7 +42,7 @@
42
42
  "directory": "packages-internal/types"
43
43
  },
44
44
  "dependencies": {
45
- "@smithy/types": "^4.12.1",
45
+ "@smithy/types": "^4.13.0",
46
46
  "tslib": "^2.6.2"
47
47
  },
48
48
  "devDependencies": {
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@aws-sdk/util-endpoints",
3
- "version": "3.996.1",
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,10 +25,10 @@
25
25
  },
26
26
  "license": "Apache-2.0",
27
27
  "dependencies": {
28
- "@aws-sdk/types": "^3.973.2",
29
- "@smithy/types": "^4.12.1",
30
- "@smithy/url-parser": "^4.2.9",
31
- "@smithy/util-endpoints": "^3.2.9",
28
+ "@aws-sdk/types": "^3.973.4",
29
+ "@smithy/types": "^4.13.0",
30
+ "@smithy/url-parser": "^4.2.10",
31
+ "@smithy/util-endpoints": "^3.3.1",
32
32
  "tslib": "^2.6.2"
33
33
  },
34
34
  "engines": {
@@ -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.4",
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,8 +24,8 @@
24
24
  "license": "Apache-2.0",
25
25
  "react-native": "dist-es/index.native.js",
26
26
  "dependencies": {
27
- "@aws-sdk/types": "^3.973.2",
28
- "@smithy/types": "^4.12.1",
27
+ "@aws-sdk/types": "^3.973.4",
28
+ "@smithy/types": "^4.13.0",
29
29
  "bowser": "^2.11.0",
30
30
  "tslib": "^2.6.2"
31
31
  },
@@ -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
  */
@@ -1,4 +1,4 @@
1
- import { LoadedConfigSelectors } from "@smithy/node-config-provider";
1
+ import type { LoadedConfigSelectors } from "@smithy/node-config-provider";
2
2
  /**
3
3
  * @internal
4
4
  */
@@ -0,0 +1 @@
1
+ export declare const getTypeScriptPackageJsonPath: (dirname?: string) => string;
@@ -0,0 +1,4 @@
1
+ import { UserAgentPair } from "@smithy/types";
2
+ export declare const getTypeScriptUserAgentPair: () => Promise<
3
+ UserAgentPair | undefined
4
+ >;
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@aws-sdk/util-user-agent-node",
3
- "version": "3.972.12",
3
+ "version": "3.973.0",
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-node",
@@ -10,7 +10,9 @@
10
10
  "build:types:downlevel": "downlevel-dts dist-types dist-types/ts3.4",
11
11
  "clean": "premove dist-cjs dist-es dist-types tsconfig.cjs.tsbuildinfo tsconfig.es.tsbuildinfo tsconfig.types.tsbuildinfo",
12
12
  "test": "yarn g:vitest run",
13
- "test:watch": "yarn g:vitest watch"
13
+ "test:integration": "yarn g:vitest run -c vitest.config.integ.mts",
14
+ "test:watch": "yarn g:vitest watch",
15
+ "test:integration:watch": "yarn g:vitest watch -c vitest.config.integ.mts"
14
16
  },
15
17
  "main": "./dist-cjs/index.js",
16
18
  "module": "./dist-es/index.js",
@@ -22,10 +24,10 @@
22
24
  },
23
25
  "license": "Apache-2.0",
24
26
  "dependencies": {
25
- "@aws-sdk/middleware-user-agent": "^3.972.13",
26
- "@aws-sdk/types": "^3.973.2",
27
- "@smithy/node-config-provider": "^4.3.9",
28
- "@smithy/types": "^4.12.1",
27
+ "@aws-sdk/middleware-user-agent": "^3.972.15",
28
+ "@aws-sdk/types": "^3.973.4",
29
+ "@smithy/node-config-provider": "^4.3.10",
30
+ "@smithy/types": "^4.13.0",
29
31
  "tslib": "^2.6.2"
30
32
  },
31
33
  "devDependencies": {
@@ -1,4 +1,4 @@
1
- import { Stringable } from "./stringable";
1
+ import type { Stringable } from "./stringable";
2
2
  /**
3
3
  * @internal
4
4
  *
@@ -1,4 +1,4 @@
1
- import { Stringable } from "./stringable";
1
+ import type { Stringable } from "./stringable";
2
2
  /**
3
3
  * @internal
4
4
  *
@@ -1,9 +1,9 @@
1
1
  {
2
2
  "name": "@aws-sdk/xml-builder",
3
- "version": "3.972.6",
3
+ "version": "3.972.8",
4
4
  "description": "XML utilities for the AWS SDK",
5
5
  "dependencies": {
6
- "@smithy/types": "^4.12.1",
6
+ "@smithy/types": "^4.13.0",
7
7
  "fast-xml-parser": "5.3.6",
8
8
  "tslib": "^2.6.2"
9
9
  },