@jjrawlins/cdk-iam-policy-builder-helper 0.0.70 → 0.0.72

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 (102) hide show
  1. package/.jsii +3 -3
  2. package/cdk-iam-policy-builder-helper/go.mod +1 -1
  3. package/cdk-iam-policy-builder-helper/jsii/jsii.go +2 -2
  4. package/cdk-iam-policy-builder-helper/version +1 -1
  5. package/lib/constructs/Actions.d.ts +17 -0
  6. package/lib/constructs/Actions.js +18 -1
  7. package/methods_list.txt +17 -0
  8. package/node_modules/@aws-sdk/client-iam/package.json +34 -34
  9. package/node_modules/@aws-sdk/client-sso/dist-cjs/endpoint/ruleset.js +1 -1
  10. package/node_modules/@aws-sdk/client-sso/dist-es/endpoint/ruleset.js +1 -1
  11. package/node_modules/@aws-sdk/client-sso/package.json +32 -32
  12. package/node_modules/@aws-sdk/core/package.json +11 -11
  13. package/node_modules/@aws-sdk/credential-provider-env/package.json +5 -5
  14. package/node_modules/@aws-sdk/credential-provider-http/package.json +10 -10
  15. package/node_modules/@aws-sdk/credential-provider-ini/package.json +13 -13
  16. package/node_modules/@aws-sdk/credential-provider-node/package.json +12 -12
  17. package/node_modules/@aws-sdk/credential-provider-process/package.json +6 -6
  18. package/node_modules/@aws-sdk/credential-provider-sso/dist-cjs/index.js +1 -0
  19. package/node_modules/@aws-sdk/credential-provider-sso/dist-es/resolveSSOCredentials.js +1 -0
  20. package/node_modules/@aws-sdk/credential-provider-sso/package.json +8 -8
  21. package/node_modules/@aws-sdk/credential-provider-web-identity/package.json +7 -7
  22. package/node_modules/@aws-sdk/middleware-host-header/package.json +4 -4
  23. package/node_modules/@aws-sdk/middleware-logger/package.json +3 -3
  24. package/node_modules/@aws-sdk/middleware-recursion-detection/package.json +4 -4
  25. package/node_modules/@aws-sdk/middleware-user-agent/dist-cjs/index.js +3 -3
  26. package/node_modules/@aws-sdk/middleware-user-agent/dist-es/constants.js +2 -2
  27. package/node_modules/@aws-sdk/middleware-user-agent/dist-es/user-agent-middleware.js +1 -1
  28. package/node_modules/@aws-sdk/middleware-user-agent/package.json +7 -7
  29. package/node_modules/@aws-sdk/nested-clients/dist-cjs/submodules/sso-oidc/endpoint/ruleset.js +1 -1
  30. package/node_modules/@aws-sdk/nested-clients/dist-cjs/submodules/sts/endpoint/ruleset.js +1 -1
  31. package/node_modules/@aws-sdk/nested-clients/dist-cjs/submodules/sts/index.js +4 -2
  32. package/node_modules/@aws-sdk/nested-clients/dist-es/submodules/sso-oidc/endpoint/ruleset.js +1 -1
  33. package/node_modules/@aws-sdk/nested-clients/dist-es/submodules/sts/defaultStsRoleAssumers.js +4 -2
  34. package/node_modules/@aws-sdk/nested-clients/dist-es/submodules/sts/endpoint/ruleset.js +1 -1
  35. package/node_modules/@aws-sdk/nested-clients/dist-types/submodules/sts/defaultStsRoleAssumers.d.ts +1 -1
  36. package/node_modules/@aws-sdk/nested-clients/dist-types/ts3.4/submodules/sts/defaultStsRoleAssumers.d.ts +1 -1
  37. package/node_modules/@aws-sdk/nested-clients/package.json +32 -32
  38. package/node_modules/@aws-sdk/region-config-resolver/package.json +5 -5
  39. package/node_modules/@aws-sdk/token-providers/dist-cjs/index.js +3 -1
  40. package/node_modules/@aws-sdk/token-providers/dist-es/getSsoOidcClient.js +3 -1
  41. package/node_modules/@aws-sdk/token-providers/package.json +7 -7
  42. package/node_modules/@aws-sdk/types/dist-types/credentials.d.ts +1 -0
  43. package/node_modules/@aws-sdk/types/dist-types/identity/AwsCredentialIdentity.d.ts +1 -0
  44. package/node_modules/@aws-sdk/types/dist-types/ts3.4/credentials.d.ts +1 -0
  45. package/node_modules/@aws-sdk/types/dist-types/ts3.4/identity/AwsCredentialIdentity.d.ts +1 -0
  46. package/node_modules/@aws-sdk/types/package.json +2 -2
  47. package/node_modules/@aws-sdk/util-endpoints/package.json +5 -5
  48. package/node_modules/@aws-sdk/util-user-agent-browser/package.json +3 -3
  49. package/node_modules/@aws-sdk/util-user-agent-node/package.json +5 -5
  50. package/node_modules/@aws-sdk/xml-builder/package.json +2 -2
  51. package/node_modules/@smithy/abort-controller/package.json +2 -2
  52. package/node_modules/@smithy/config-resolver/package.json +5 -5
  53. package/node_modules/@smithy/core/dist-cjs/submodules/serde/index.js +5 -14
  54. package/node_modules/@smithy/core/dist-es/submodules/serde/schema-serde-lib/schema-date-utils.js +5 -14
  55. package/node_modules/@smithy/core/package.json +7 -7
  56. package/node_modules/@smithy/credential-provider-imds/package.json +5 -5
  57. package/node_modules/@smithy/fetch-http-handler/package.json +5 -5
  58. package/node_modules/@smithy/hash-node/package.json +2 -2
  59. package/node_modules/@smithy/invalid-dependency/package.json +2 -2
  60. package/node_modules/@smithy/middleware-content-length/package.json +3 -3
  61. package/node_modules/@smithy/middleware-endpoint/package.json +8 -8
  62. package/node_modules/@smithy/middleware-retry/package.json +8 -8
  63. package/node_modules/@smithy/middleware-serde/package.json +3 -3
  64. package/node_modules/@smithy/middleware-stack/package.json +2 -2
  65. package/node_modules/@smithy/node-config-provider/package.json +4 -4
  66. package/node_modules/@smithy/node-http-handler/dist-cjs/index.js +7 -4
  67. package/node_modules/@smithy/node-http-handler/dist-es/node-http-handler.js +5 -2
  68. package/node_modules/@smithy/node-http-handler/dist-es/write-request-body.js +2 -2
  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/ts3.4/node-http-handler.d.ts +2 -2
  71. package/node_modules/@smithy/node-http-handler/dist-types/ts3.4/write-request-body.d.ts +2 -1
  72. package/node_modules/@smithy/node-http-handler/dist-types/write-request-body.d.ts +2 -1
  73. package/node_modules/@smithy/node-http-handler/package.json +5 -5
  74. package/node_modules/@smithy/property-provider/package.json +2 -2
  75. package/node_modules/@smithy/protocol-http/package.json +2 -2
  76. package/node_modules/@smithy/querystring-builder/package.json +2 -2
  77. package/node_modules/@smithy/querystring-parser/package.json +2 -2
  78. package/node_modules/@smithy/service-error-classification/package.json +2 -2
  79. package/node_modules/@smithy/shared-ini-file-loader/package.json +2 -2
  80. package/node_modules/@smithy/signature-v4/package.json +4 -4
  81. package/node_modules/@smithy/smithy-client/package.json +7 -7
  82. package/node_modules/@smithy/types/dist-es/index.js +1 -0
  83. package/node_modules/@smithy/types/dist-types/index.d.ts +1 -0
  84. package/node_modules/@smithy/types/dist-types/ts3.4/index.d.ts +1 -0
  85. package/node_modules/@smithy/types/package.json +1 -1
  86. package/node_modules/@smithy/url-parser/package.json +3 -3
  87. package/node_modules/@smithy/util-defaults-mode-browser/package.json +4 -4
  88. package/node_modules/@smithy/util-defaults-mode-node/package.json +7 -7
  89. package/node_modules/@smithy/util-endpoints/package.json +3 -3
  90. package/node_modules/@smithy/util-middleware/package.json +2 -2
  91. package/node_modules/@smithy/util-retry/package.json +3 -3
  92. package/node_modules/@smithy/util-stream/package.json +4 -4
  93. package/node_modules/@smithy/util-waiter/dist-cjs/index.js +17 -4
  94. package/node_modules/@smithy/util-waiter/dist-es/circularReplacer.js +12 -0
  95. package/node_modules/@smithy/util-waiter/dist-es/poller.js +2 -1
  96. package/node_modules/@smithy/util-waiter/dist-es/waiter.js +4 -3
  97. package/node_modules/@smithy/util-waiter/dist-types/circularReplacer.d.ts +6 -0
  98. package/node_modules/@smithy/util-waiter/dist-types/poller.d.ts +1 -1
  99. package/node_modules/@smithy/util-waiter/dist-types/ts3.4/circularReplacer.d.ts +6 -0
  100. package/node_modules/@smithy/util-waiter/dist-types/ts3.4/poller.d.ts +1 -1
  101. package/node_modules/@smithy/util-waiter/package.json +3 -3
  102. package/package.json +3 -3
@@ -506,12 +506,8 @@ const _parseRfc3339DateTimeWithOffset = (value) => {
506
506
  range(hours, 0, 23);
507
507
  range(minutes, 0, 59);
508
508
  range(seconds, 0, 60);
509
- const date = new Date();
510
- date.setUTCFullYear(Number(yearStr), Number(monthStr) - 1, Number(dayStr));
511
- date.setUTCHours(Number(hours));
512
- date.setUTCMinutes(Number(minutes));
513
- date.setUTCSeconds(Number(seconds));
514
- date.setUTCMilliseconds(Number(ms) ? Math.round(parseFloat(`0.${ms}`) * 1000) : 0);
509
+ const date = new Date(Date.UTC(Number(yearStr), Number(monthStr) - 1, Number(dayStr), Number(hours), Number(minutes), Number(seconds), Number(ms) ? Math.round(parseFloat(`0.${ms}`) * 1000) : 0));
510
+ date.setUTCFullYear(Number(yearStr));
515
511
  if (offsetStr.toUpperCase() != "Z") {
516
512
  const [, sign, offsetH, offsetM] = /([+-])(\d\d):(\d\d)/.exec(offsetStr) || [void 0, "+", 0, 0];
517
513
  const scalar = sign === "-" ? 1 : -1;
@@ -545,18 +541,13 @@ const _parseRfc7231DateTime = (value) => {
545
541
  [, month, day, hour, minute, second, fraction, year] = matches;
546
542
  }
547
543
  if (year && second) {
548
- const date = new Date();
549
- date.setUTCFullYear(Number(year));
550
- date.setUTCMonth(months.indexOf(month));
544
+ const timestamp = Date.UTC(Number(year), months.indexOf(month), Number(day), Number(hour), Number(minute), Number(second), fraction ? Math.round(parseFloat(`0.${fraction}`) * 1000) : 0);
551
545
  range(day, 1, 31);
552
- date.setUTCDate(Number(day));
553
546
  range(hour, 0, 23);
554
- date.setUTCHours(Number(hour));
555
547
  range(minute, 0, 59);
556
- date.setUTCMinutes(Number(minute));
557
548
  range(second, 0, 60);
558
- date.setUTCSeconds(Number(second));
559
- date.setUTCMilliseconds(fraction ? Math.round(parseFloat(`0.${fraction}`) * 1000) : 0);
549
+ const date = new Date(timestamp);
550
+ date.setUTCFullYear(Number(year));
560
551
  return date;
561
552
  }
562
553
  throw new TypeError(`Invalid RFC7231 date-time value ${value}.`);
@@ -47,12 +47,8 @@ export const _parseRfc3339DateTimeWithOffset = (value) => {
47
47
  range(hours, 0, 23);
48
48
  range(minutes, 0, 59);
49
49
  range(seconds, 0, 60);
50
- const date = new Date();
51
- date.setUTCFullYear(Number(yearStr), Number(monthStr) - 1, Number(dayStr));
52
- date.setUTCHours(Number(hours));
53
- date.setUTCMinutes(Number(minutes));
54
- date.setUTCSeconds(Number(seconds));
55
- date.setUTCMilliseconds(Number(ms) ? Math.round(parseFloat(`0.${ms}`) * 1000) : 0);
50
+ const date = new Date(Date.UTC(Number(yearStr), Number(monthStr) - 1, Number(dayStr), Number(hours), Number(minutes), Number(seconds), Number(ms) ? Math.round(parseFloat(`0.${ms}`) * 1000) : 0));
51
+ date.setUTCFullYear(Number(yearStr));
56
52
  if (offsetStr.toUpperCase() != "Z") {
57
53
  const [, sign, offsetH, offsetM] = /([+-])(\d\d):(\d\d)/.exec(offsetStr) || [void 0, "+", 0, 0];
58
54
  const scalar = sign === "-" ? 1 : -1;
@@ -86,18 +82,13 @@ export const _parseRfc7231DateTime = (value) => {
86
82
  [, month, day, hour, minute, second, fraction, year] = matches;
87
83
  }
88
84
  if (year && second) {
89
- const date = new Date();
90
- date.setUTCFullYear(Number(year));
91
- date.setUTCMonth(months.indexOf(month));
85
+ const timestamp = Date.UTC(Number(year), months.indexOf(month), Number(day), Number(hour), Number(minute), Number(second), fraction ? Math.round(parseFloat(`0.${fraction}`) * 1000) : 0);
92
86
  range(day, 1, 31);
93
- date.setUTCDate(Number(day));
94
87
  range(hour, 0, 23);
95
- date.setUTCHours(Number(hour));
96
88
  range(minute, 0, 59);
97
- date.setUTCMinutes(Number(minute));
98
89
  range(second, 0, 60);
99
- date.setUTCSeconds(Number(second));
100
- date.setUTCMilliseconds(fraction ? Math.round(parseFloat(`0.${fraction}`) * 1000) : 0);
90
+ const date = new Date(timestamp);
91
+ date.setUTCFullYear(Number(year));
101
92
  return date;
102
93
  }
103
94
  throw new TypeError(`Invalid RFC7231 date-time value ${value}.`);
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@smithy/core",
3
- "version": "3.17.1",
3
+ "version": "3.17.2",
4
4
  "scripts": {
5
5
  "build": "yarn lint && concurrently 'yarn:build:cjs' 'yarn:build:es' 'yarn:build:types && yarn build:types:downlevel'",
6
6
  "build:cjs": "node ../../scripts/inline core",
@@ -77,13 +77,13 @@
77
77
  "license": "Apache-2.0",
78
78
  "sideEffects": false,
79
79
  "dependencies": {
80
- "@smithy/middleware-serde": "^4.2.3",
81
- "@smithy/protocol-http": "^5.3.3",
82
- "@smithy/types": "^4.8.0",
80
+ "@smithy/middleware-serde": "^4.2.4",
81
+ "@smithy/protocol-http": "^5.3.4",
82
+ "@smithy/types": "^4.8.1",
83
83
  "@smithy/util-base64": "^4.3.0",
84
84
  "@smithy/util-body-length-browser": "^4.2.0",
85
- "@smithy/util-middleware": "^4.2.3",
86
- "@smithy/util-stream": "^4.5.4",
85
+ "@smithy/util-middleware": "^4.2.4",
86
+ "@smithy/util-stream": "^4.5.5",
87
87
  "@smithy/util-utf8": "^4.2.0",
88
88
  "@smithy/uuid": "^1.1.0",
89
89
  "tslib": "^2.6.2"
@@ -118,7 +118,7 @@
118
118
  "directory": "packages/core"
119
119
  },
120
120
  "devDependencies": {
121
- "@smithy/eventstream-serde-node": "^4.2.3",
121
+ "@smithy/eventstream-serde-node": "^4.2.4",
122
122
  "@types/node": "^18.11.9",
123
123
  "concurrently": "7.0.0",
124
124
  "downlevel-dts": "0.10.1",
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@smithy/credential-provider-imds",
3
- "version": "4.2.3",
3
+ "version": "4.2.4",
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",
@@ -28,10 +28,10 @@
28
28
  "license": "Apache-2.0",
29
29
  "sideEffects": false,
30
30
  "dependencies": {
31
- "@smithy/node-config-provider": "^4.3.3",
32
- "@smithy/property-provider": "^4.2.3",
33
- "@smithy/types": "^4.8.0",
34
- "@smithy/url-parser": "^4.2.3",
31
+ "@smithy/node-config-provider": "^4.3.4",
32
+ "@smithy/property-provider": "^4.2.4",
33
+ "@smithy/types": "^4.8.1",
34
+ "@smithy/url-parser": "^4.2.4",
35
35
  "tslib": "^2.6.2"
36
36
  },
37
37
  "devDependencies": {
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@smithy/fetch-http-handler",
3
- "version": "5.3.4",
3
+ "version": "5.3.5",
4
4
  "description": "Provides a way to make requests",
5
5
  "scripts": {
6
6
  "build": "concurrently 'yarn:build:cjs' 'yarn:build:es' 'yarn:build:types && yarn build:types:downlevel'",
@@ -28,14 +28,14 @@
28
28
  "module": "./dist-es/index.js",
29
29
  "types": "./dist-types/index.d.ts",
30
30
  "dependencies": {
31
- "@smithy/protocol-http": "^5.3.3",
32
- "@smithy/querystring-builder": "^4.2.3",
33
- "@smithy/types": "^4.8.0",
31
+ "@smithy/protocol-http": "^5.3.4",
32
+ "@smithy/querystring-builder": "^4.2.4",
33
+ "@smithy/types": "^4.8.1",
34
34
  "@smithy/util-base64": "^4.3.0",
35
35
  "tslib": "^2.6.2"
36
36
  },
37
37
  "devDependencies": {
38
- "@smithy/abort-controller": "^4.2.3",
38
+ "@smithy/abort-controller": "^4.2.4",
39
39
  "concurrently": "7.0.0",
40
40
  "downlevel-dts": "0.10.1",
41
41
  "rimraf": "3.0.2",
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@smithy/hash-node",
3
- "version": "4.2.3",
3
+ "version": "4.2.4",
4
4
  "scripts": {
5
5
  "build": "concurrently 'yarn:build:cjs' 'yarn:build:es' 'yarn:build:types && yarn build:types:downlevel'",
6
6
  "build:cjs": "node ../../scripts/inline hash-node",
@@ -32,7 +32,7 @@
32
32
  "typedoc": "0.23.23"
33
33
  },
34
34
  "dependencies": {
35
- "@smithy/types": "^4.8.0",
35
+ "@smithy/types": "^4.8.1",
36
36
  "@smithy/util-buffer-from": "^4.2.0",
37
37
  "@smithy/util-utf8": "^4.2.0",
38
38
  "tslib": "^2.6.2"
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@smithy/invalid-dependency",
3
- "version": "4.2.3",
3
+ "version": "4.2.4",
4
4
  "scripts": {
5
5
  "build": "concurrently 'yarn:build:cjs' 'yarn:build:es' 'yarn:build:types && yarn build:types:downlevel'",
6
6
  "build:cjs": "node ../../scripts/inline invalid-dependency",
@@ -24,7 +24,7 @@
24
24
  "license": "Apache-2.0",
25
25
  "sideEffects": false,
26
26
  "dependencies": {
27
- "@smithy/types": "^4.8.0",
27
+ "@smithy/types": "^4.8.1",
28
28
  "tslib": "^2.6.2"
29
29
  },
30
30
  "typesVersions": {
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@smithy/middleware-content-length",
3
- "version": "4.2.3",
3
+ "version": "4.2.4",
4
4
  "scripts": {
5
5
  "build": "concurrently 'yarn:build:cjs' 'yarn:build:es' 'yarn:build:types && yarn build:types:downlevel'",
6
6
  "build:cjs": "node ../../scripts/inline middleware-content-length",
@@ -25,8 +25,8 @@
25
25
  "license": "Apache-2.0",
26
26
  "sideEffects": false,
27
27
  "dependencies": {
28
- "@smithy/protocol-http": "^5.3.3",
29
- "@smithy/types": "^4.8.0",
28
+ "@smithy/protocol-http": "^5.3.4",
29
+ "@smithy/types": "^4.8.1",
30
30
  "tslib": "^2.6.2"
31
31
  },
32
32
  "engines": {
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@smithy/middleware-endpoint",
3
- "version": "4.3.5",
3
+ "version": "4.3.6",
4
4
  "scripts": {
5
5
  "build": "concurrently 'yarn:build:cjs' 'yarn:build:es' 'yarn:build:types && yarn build:types:downlevel'",
6
6
  "build:cjs": "node ../../scripts/inline middleware-endpoint",
@@ -25,13 +25,13 @@
25
25
  "license": "Apache-2.0",
26
26
  "sideEffects": false,
27
27
  "dependencies": {
28
- "@smithy/core": "^3.17.1",
29
- "@smithy/middleware-serde": "^4.2.3",
30
- "@smithy/node-config-provider": "^4.3.3",
31
- "@smithy/shared-ini-file-loader": "^4.3.3",
32
- "@smithy/types": "^4.8.0",
33
- "@smithy/url-parser": "^4.2.3",
34
- "@smithy/util-middleware": "^4.2.3",
28
+ "@smithy/core": "^3.17.2",
29
+ "@smithy/middleware-serde": "^4.2.4",
30
+ "@smithy/node-config-provider": "^4.3.4",
31
+ "@smithy/shared-ini-file-loader": "^4.3.4",
32
+ "@smithy/types": "^4.8.1",
33
+ "@smithy/url-parser": "^4.2.4",
34
+ "@smithy/util-middleware": "^4.2.4",
35
35
  "tslib": "^2.6.2"
36
36
  },
37
37
  "devDependencies": {
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@smithy/middleware-retry",
3
- "version": "4.4.5",
3
+ "version": "4.4.6",
4
4
  "scripts": {
5
5
  "build": "concurrently 'yarn:build:cjs' 'yarn:build:es' 'yarn:build:types && yarn build:types:downlevel'",
6
6
  "build:cjs": "node ../../scripts/inline middleware-retry",
@@ -34,13 +34,13 @@
34
34
  "license": "Apache-2.0",
35
35
  "sideEffects": false,
36
36
  "dependencies": {
37
- "@smithy/node-config-provider": "^4.3.3",
38
- "@smithy/protocol-http": "^5.3.3",
39
- "@smithy/service-error-classification": "^4.2.3",
40
- "@smithy/smithy-client": "^4.9.1",
41
- "@smithy/types": "^4.8.0",
42
- "@smithy/util-middleware": "^4.2.3",
43
- "@smithy/util-retry": "^4.2.3",
37
+ "@smithy/node-config-provider": "^4.3.4",
38
+ "@smithy/protocol-http": "^5.3.4",
39
+ "@smithy/service-error-classification": "^4.2.4",
40
+ "@smithy/smithy-client": "^4.9.2",
41
+ "@smithy/types": "^4.8.1",
42
+ "@smithy/util-middleware": "^4.2.4",
43
+ "@smithy/util-retry": "^4.2.4",
44
44
  "@smithy/uuid": "^1.1.0",
45
45
  "tslib": "^2.6.2"
46
46
  },
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@smithy/middleware-serde",
3
- "version": "4.2.3",
3
+ "version": "4.2.4",
4
4
  "scripts": {
5
5
  "build": "concurrently 'yarn:build:cjs' 'yarn:build:es' 'yarn:build:types && yarn build:types:downlevel'",
6
6
  "build:cjs": "node ../../scripts/inline middleware-serde",
@@ -26,8 +26,8 @@
26
26
  "license": "Apache-2.0",
27
27
  "sideEffects": false,
28
28
  "dependencies": {
29
- "@smithy/protocol-http": "^5.3.3",
30
- "@smithy/types": "^4.8.0",
29
+ "@smithy/protocol-http": "^5.3.4",
30
+ "@smithy/types": "^4.8.1",
31
31
  "tslib": "^2.6.2"
32
32
  },
33
33
  "engines": {
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@smithy/middleware-stack",
3
- "version": "4.2.3",
3
+ "version": "4.2.4",
4
4
  "description": "Provides a means for composing multiple middleware functions into a single handler",
5
5
  "scripts": {
6
6
  "build": "concurrently 'yarn:build:cjs' 'yarn:build:es' 'yarn:build:types && yarn build:types:downlevel'",
@@ -27,7 +27,7 @@
27
27
  "module": "./dist-es/index.js",
28
28
  "types": "./dist-types/index.d.ts",
29
29
  "dependencies": {
30
- "@smithy/types": "^4.8.0",
30
+ "@smithy/types": "^4.8.1",
31
31
  "tslib": "^2.6.2"
32
32
  },
33
33
  "devDependencies": {
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@smithy/node-config-provider",
3
- "version": "4.3.3",
3
+ "version": "4.3.4",
4
4
  "description": "Load config default values from ini config files and environmental variable",
5
5
  "scripts": {
6
6
  "build": "concurrently 'yarn:build:cjs' 'yarn:build:es' 'yarn:build:types && yarn build:types:downlevel'",
@@ -26,9 +26,9 @@
26
26
  "module": "./dist-es/index.js",
27
27
  "types": "./dist-types/index.d.ts",
28
28
  "dependencies": {
29
- "@smithy/property-provider": "^4.2.3",
30
- "@smithy/shared-ini-file-loader": "^4.3.3",
31
- "@smithy/types": "^4.8.0",
29
+ "@smithy/property-provider": "^4.2.4",
30
+ "@smithy/shared-ini-file-loader": "^4.3.4",
31
+ "@smithy/types": "^4.8.1",
32
32
  "tslib": "^2.6.2"
33
33
  },
34
34
  "devDependencies": {
@@ -126,12 +126,12 @@ const setSocketTimeout = (request, reject, timeoutInMs = 0) => {
126
126
  };
127
127
 
128
128
  const MIN_WAIT_TIME = 6_000;
129
- async function writeRequestBody(httpRequest, request, maxContinueTimeoutMs = MIN_WAIT_TIME) {
129
+ async function writeRequestBody(httpRequest, request, maxContinueTimeoutMs = MIN_WAIT_TIME, externalAgent = false) {
130
130
  const headers = request.headers ?? {};
131
131
  const expect = headers.Expect || headers.expect;
132
132
  let timeoutId = -1;
133
133
  let sendBody = true;
134
- if (expect === "100-continue") {
134
+ if (!externalAgent && expect === "100-continue") {
135
135
  sendBody = await Promise.race([
136
136
  new Promise((resolve) => {
137
137
  timeoutId = Number(timing.setTimeout(() => resolve(true), Math.max(MIN_WAIT_TIME, maxContinueTimeoutMs)));
@@ -185,6 +185,7 @@ class NodeHttpHandler {
185
185
  config;
186
186
  configProvider;
187
187
  socketWarningTimestamp = 0;
188
+ externalAgent = false;
188
189
  metadata = { handlerProtocol: "http/1.1" };
189
190
  static create(instanceOrOptions) {
190
191
  if (typeof instanceOrOptions?.handle === "function") {
@@ -241,12 +242,14 @@ or increase socketAcquisitionWarningTimeout=(millis) in the NodeHttpHandler conf
241
242
  throwOnRequestTimeout,
242
243
  httpAgent: (() => {
243
244
  if (httpAgent instanceof http.Agent || typeof httpAgent?.destroy === "function") {
245
+ this.externalAgent = true;
244
246
  return httpAgent;
245
247
  }
246
248
  return new http.Agent({ keepAlive, maxSockets, ...httpAgent });
247
249
  })(),
248
250
  httpsAgent: (() => {
249
251
  if (httpsAgent instanceof https.Agent || typeof httpsAgent?.destroy === "function") {
252
+ this.externalAgent = true;
250
253
  return httpsAgent;
251
254
  }
252
255
  return new https.Agent({ keepAlive, maxSockets, ...httpsAgent });
@@ -286,7 +289,7 @@ or increase socketAcquisitionWarningTimeout=(millis) in the NodeHttpHandler conf
286
289
  const headers = request.headers ?? {};
287
290
  const expectContinue = (headers.Expect ?? headers.expect) === "100-continue";
288
291
  let agent = isSSL ? config.httpsAgent : config.httpAgent;
289
- if (expectContinue) {
292
+ if (expectContinue && !this.externalAgent) {
290
293
  agent = new (isSSL ? https.Agent : http.Agent)({
291
294
  keepAlive: false,
292
295
  maxSockets: Infinity,
@@ -370,7 +373,7 @@ or increase socketAcquisitionWarningTimeout=(millis) in the NodeHttpHandler conf
370
373
  keepAliveMsecs: httpAgent.keepAliveMsecs,
371
374
  }));
372
375
  }
373
- writeRequestBodyPromise = writeRequestBody(req, request, effectiveRequestTimeout).catch((e) => {
376
+ writeRequestBodyPromise = writeRequestBody(req, request, effectiveRequestTimeout, this.externalAgent).catch((e) => {
374
377
  timeouts.forEach(timing.clearTimeout);
375
378
  return _reject(e);
376
379
  });
@@ -15,6 +15,7 @@ export class NodeHttpHandler {
15
15
  config;
16
16
  configProvider;
17
17
  socketWarningTimestamp = 0;
18
+ externalAgent = false;
18
19
  metadata = { handlerProtocol: "http/1.1" };
19
20
  static create(instanceOrOptions) {
20
21
  if (typeof instanceOrOptions?.handle === "function") {
@@ -71,12 +72,14 @@ or increase socketAcquisitionWarningTimeout=(millis) in the NodeHttpHandler conf
71
72
  throwOnRequestTimeout,
72
73
  httpAgent: (() => {
73
74
  if (httpAgent instanceof hAgent || typeof httpAgent?.destroy === "function") {
75
+ this.externalAgent = true;
74
76
  return httpAgent;
75
77
  }
76
78
  return new hAgent({ keepAlive, maxSockets, ...httpAgent });
77
79
  })(),
78
80
  httpsAgent: (() => {
79
81
  if (httpsAgent instanceof hsAgent || typeof httpsAgent?.destroy === "function") {
82
+ this.externalAgent = true;
80
83
  return httpsAgent;
81
84
  }
82
85
  return new hsAgent({ keepAlive, maxSockets, ...httpsAgent });
@@ -116,7 +119,7 @@ or increase socketAcquisitionWarningTimeout=(millis) in the NodeHttpHandler conf
116
119
  const headers = request.headers ?? {};
117
120
  const expectContinue = (headers.Expect ?? headers.expect) === "100-continue";
118
121
  let agent = isSSL ? config.httpsAgent : config.httpAgent;
119
- if (expectContinue) {
122
+ if (expectContinue && !this.externalAgent) {
120
123
  agent = new (isSSL ? hsAgent : hAgent)({
121
124
  keepAlive: false,
122
125
  maxSockets: Infinity,
@@ -200,7 +203,7 @@ or increase socketAcquisitionWarningTimeout=(millis) in the NodeHttpHandler conf
200
203
  keepAliveMsecs: httpAgent.keepAliveMsecs,
201
204
  }));
202
205
  }
203
- writeRequestBodyPromise = writeRequestBody(req, request, effectiveRequestTimeout).catch((e) => {
206
+ writeRequestBodyPromise = writeRequestBody(req, request, effectiveRequestTimeout, this.externalAgent).catch((e) => {
204
207
  timeouts.forEach(timing.clearTimeout);
205
208
  return _reject(e);
206
209
  });
@@ -1,12 +1,12 @@
1
1
  import { Readable } from "stream";
2
2
  import { timing } from "./timing";
3
3
  const MIN_WAIT_TIME = 6_000;
4
- export async function writeRequestBody(httpRequest, request, maxContinueTimeoutMs = MIN_WAIT_TIME) {
4
+ export async function writeRequestBody(httpRequest, request, maxContinueTimeoutMs = MIN_WAIT_TIME, externalAgent = false) {
5
5
  const headers = request.headers ?? {};
6
6
  const expect = headers.Expect || headers.expect;
7
7
  let timeoutId = -1;
8
8
  let sendBody = true;
9
- if (expect === "100-continue") {
9
+ if (!externalAgent && expect === "100-continue") {
10
10
  sendBody = await Promise.race([
11
11
  new Promise((resolve) => {
12
12
  timeoutId = Number(timing.setTimeout(() => resolve(true), Math.max(MIN_WAIT_TIME, maxContinueTimeoutMs)));
@@ -1,7 +1,6 @@
1
1
  import type { HttpHandler, HttpRequest } from "@smithy/protocol-http";
2
2
  import { HttpResponse } from "@smithy/protocol-http";
3
- import type { Logger, NodeHttpHandlerOptions } from "@smithy/types";
4
- import type { HttpHandlerOptions, Provider } from "@smithy/types";
3
+ import type { HttpHandlerOptions, Logger, NodeHttpHandlerOptions, Provider } from "@smithy/types";
5
4
  import { Agent as hAgent } from "http";
6
5
  import { Agent as hsAgent } from "https";
7
6
  export { NodeHttpHandlerOptions };
@@ -18,6 +17,7 @@ export declare class NodeHttpHandler implements HttpHandler<NodeHttpHandlerOptio
18
17
  private config?;
19
18
  private configProvider;
20
19
  private socketWarningTimestamp;
20
+ private externalAgent;
21
21
  readonly metadata: {
22
22
  handlerProtocol: string;
23
23
  };
@@ -1,7 +1,6 @@
1
1
  import { HttpHandler, HttpRequest } from "@smithy/protocol-http";
2
2
  import { HttpResponse } from "@smithy/protocol-http";
3
- import { Logger, NodeHttpHandlerOptions } from "@smithy/types";
4
- import { HttpHandlerOptions, Provider } from "@smithy/types";
3
+ import { HttpHandlerOptions, Logger, NodeHttpHandlerOptions, Provider } from "@smithy/types";
5
4
  import { Agent as hAgent } from "http";
6
5
  import { Agent as hsAgent } from "https";
7
6
  export { NodeHttpHandlerOptions };
@@ -18,6 +17,7 @@ export declare class NodeHttpHandler implements HttpHandler<NodeHttpHandlerOptio
18
17
  private config?;
19
18
  private configProvider;
20
19
  private socketWarningTimestamp;
20
+ private externalAgent;
21
21
  readonly metadata: {
22
22
  handlerProtocol: string;
23
23
  };
@@ -7,5 +7,6 @@ import { ClientHttp2Stream } from "http2";
7
7
  * @param httpRequest - opened Node.js request.
8
8
  * @param request - container with the request body.
9
9
  * @param maxContinueTimeoutMs - time to wait for the continue event.
10
+ * @param externalAgent - whether agent is owned by caller code.
10
11
  */
11
- export declare function writeRequestBody(httpRequest: ClientRequest | ClientHttp2Stream, request: HttpRequest, maxContinueTimeoutMs?: number): Promise<void>;
12
+ export declare function writeRequestBody(httpRequest: ClientRequest | ClientHttp2Stream, request: HttpRequest, maxContinueTimeoutMs?: number, externalAgent?: boolean): Promise<void>;
@@ -7,5 +7,6 @@ import type { ClientHttp2Stream } from "http2";
7
7
  * @param httpRequest - opened Node.js request.
8
8
  * @param request - container with the request body.
9
9
  * @param maxContinueTimeoutMs - time to wait for the continue event.
10
+ * @param externalAgent - whether agent is owned by caller code.
10
11
  */
11
- export declare function writeRequestBody(httpRequest: ClientRequest | ClientHttp2Stream, request: HttpRequest, maxContinueTimeoutMs?: number): Promise<void>;
12
+ export declare function writeRequestBody(httpRequest: ClientRequest | ClientHttp2Stream, request: HttpRequest, maxContinueTimeoutMs?: number, externalAgent?: boolean): Promise<void>;
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@smithy/node-http-handler",
3
- "version": "4.4.3",
3
+ "version": "4.4.4",
4
4
  "description": "Provides a way to make requests",
5
5
  "scripts": {
6
6
  "build": "concurrently 'yarn:build:cjs' 'yarn:build:es' 'yarn:build:types && yarn build:types:downlevel'",
@@ -27,10 +27,10 @@
27
27
  "module": "./dist-es/index.js",
28
28
  "types": "./dist-types/index.d.ts",
29
29
  "dependencies": {
30
- "@smithy/abort-controller": "^4.2.3",
31
- "@smithy/protocol-http": "^5.3.3",
32
- "@smithy/querystring-builder": "^4.2.3",
33
- "@smithy/types": "^4.8.0",
30
+ "@smithy/abort-controller": "^4.2.4",
31
+ "@smithy/protocol-http": "^5.3.4",
32
+ "@smithy/querystring-builder": "^4.2.4",
33
+ "@smithy/types": "^4.8.1",
34
34
  "tslib": "^2.6.2"
35
35
  },
36
36
  "devDependencies": {
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@smithy/property-provider",
3
- "version": "4.2.3",
3
+ "version": "4.2.4",
4
4
  "scripts": {
5
5
  "build": "concurrently 'yarn:build:cjs' 'yarn:build:es' 'yarn:build:types && yarn build:types:downlevel'",
6
6
  "build:cjs": "node ../../scripts/inline property-provider",
@@ -24,7 +24,7 @@
24
24
  "license": "Apache-2.0",
25
25
  "sideEffects": false,
26
26
  "dependencies": {
27
- "@smithy/types": "^4.8.0",
27
+ "@smithy/types": "^4.8.1",
28
28
  "tslib": "^2.6.2"
29
29
  },
30
30
  "engines": {
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@smithy/protocol-http",
3
- "version": "5.3.3",
3
+ "version": "5.3.4",
4
4
  "scripts": {
5
5
  "build": "concurrently 'yarn:build:cjs' 'yarn:build:es' 'yarn:build:types && yarn build:types:downlevel'",
6
6
  "build:cjs": "node ../../scripts/inline protocol-http",
@@ -25,7 +25,7 @@
25
25
  "license": "Apache-2.0",
26
26
  "sideEffects": false,
27
27
  "dependencies": {
28
- "@smithy/types": "^4.8.0",
28
+ "@smithy/types": "^4.8.1",
29
29
  "tslib": "^2.6.2"
30
30
  },
31
31
  "engines": {
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@smithy/querystring-builder",
3
- "version": "4.2.3",
3
+ "version": "4.2.4",
4
4
  "scripts": {
5
5
  "build": "concurrently 'yarn:build:cjs' 'yarn:build:es' 'yarn:build:types && yarn build:types:downlevel'",
6
6
  "build:cjs": "node ../../scripts/inline querystring-builder",
@@ -23,7 +23,7 @@
23
23
  "license": "Apache-2.0",
24
24
  "sideEffects": false,
25
25
  "dependencies": {
26
- "@smithy/types": "^4.8.0",
26
+ "@smithy/types": "^4.8.1",
27
27
  "@smithy/util-uri-escape": "^4.2.0",
28
28
  "tslib": "^2.6.2"
29
29
  },
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@smithy/querystring-parser",
3
- "version": "4.2.3",
3
+ "version": "4.2.4",
4
4
  "scripts": {
5
5
  "build": "concurrently 'yarn:build:cjs' 'yarn:build:es' 'yarn:build:types && yarn build:types:downlevel'",
6
6
  "build:cjs": "node ../../scripts/inline querystring-parser",
@@ -24,7 +24,7 @@
24
24
  "license": "Apache-2.0",
25
25
  "sideEffects": false,
26
26
  "dependencies": {
27
- "@smithy/types": "^4.8.0",
27
+ "@smithy/types": "^4.8.1",
28
28
  "tslib": "^2.6.2"
29
29
  },
30
30
  "engines": {
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@smithy/service-error-classification",
3
- "version": "4.2.3",
3
+ "version": "4.2.4",
4
4
  "scripts": {
5
5
  "build": "concurrently 'yarn:build:cjs' 'yarn:build:es' 'yarn:build:types && yarn build:types:downlevel'",
6
6
  "build:cjs": "node ../../scripts/inline service-error-classification",
@@ -55,6 +55,6 @@
55
55
  "directory": ".release/package"
56
56
  },
57
57
  "dependencies": {
58
- "@smithy/types": "^4.8.0"
58
+ "@smithy/types": "^4.8.1"
59
59
  }
60
60
  }
@@ -1,8 +1,8 @@
1
1
  {
2
2
  "name": "@smithy/shared-ini-file-loader",
3
- "version": "4.3.3",
3
+ "version": "4.3.4",
4
4
  "dependencies": {
5
- "@smithy/types": "^4.8.0",
5
+ "@smithy/types": "^4.8.1",
6
6
  "tslib": "^2.6.2"
7
7
  },
8
8
  "devDependencies": {