@jjrawlins/cdk-ami-builder 0.0.189 → 0.0.191
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.
- package/.jsii +12 -12
- package/cdkamibuilder/go.mod +1 -1
- package/cdkamibuilder/jsii/jsii.go +2 -2
- package/cdkamibuilder/version +1 -1
- package/e2e/app.ts +62 -0
- package/e2e/cleanup-post-destroy.sh +111 -0
- package/e2e/cleanup-pre-destroy.sh +45 -0
- package/lib/ImagePipeline/ImagePipeline.js +1 -1
- package/lib/Lambdas/CheckStateMachineStatus/CheckStateMachineStatus-function.js +1 -1
- package/lib/Lambdas/StartStateMachine/StartStateMachine-function.js +1 -1
- package/node_modules/@aws-sdk/client-ec2/dist-types/commands/BundleInstanceCommand.d.ts +4 -2
- package/node_modules/@aws-sdk/client-ec2/package.json +6 -6
- package/node_modules/@aws-sdk/client-ecs/README.md +91 -7
- package/node_modules/@aws-sdk/client-ecs/dist-cjs/index.js +530 -33
- package/node_modules/@aws-sdk/client-ecs/dist-cjs/models/errors.js +37 -11
- package/node_modules/@aws-sdk/client-ecs/dist-cjs/schemas/schemas_0.js +508 -100
- package/node_modules/@aws-sdk/client-ecs/dist-es/ECS.js +34 -0
- package/node_modules/@aws-sdk/client-ecs/dist-es/commands/CreateDaemonCommand.js +16 -0
- package/node_modules/@aws-sdk/client-ecs/dist-es/commands/DeleteDaemonCommand.js +16 -0
- package/node_modules/@aws-sdk/client-ecs/dist-es/commands/DeleteDaemonTaskDefinitionCommand.js +16 -0
- package/node_modules/@aws-sdk/client-ecs/dist-es/commands/DescribeDaemonCommand.js +16 -0
- package/node_modules/@aws-sdk/client-ecs/dist-es/commands/DescribeDaemonDeploymentsCommand.js +16 -0
- package/node_modules/@aws-sdk/client-ecs/dist-es/commands/DescribeDaemonRevisionsCommand.js +16 -0
- package/node_modules/@aws-sdk/client-ecs/dist-es/commands/DescribeDaemonTaskDefinitionCommand.js +16 -0
- package/node_modules/@aws-sdk/client-ecs/dist-es/commands/ListDaemonDeploymentsCommand.js +16 -0
- package/node_modules/@aws-sdk/client-ecs/dist-es/commands/ListDaemonTaskDefinitionsCommand.js +16 -0
- package/node_modules/@aws-sdk/client-ecs/dist-es/commands/ListDaemonsCommand.js +16 -0
- package/node_modules/@aws-sdk/client-ecs/dist-es/commands/RegisterDaemonTaskDefinitionCommand.js +16 -0
- package/node_modules/@aws-sdk/client-ecs/dist-es/commands/UpdateDaemonCommand.js +16 -0
- package/node_modules/@aws-sdk/client-ecs/dist-es/commands/index.js +12 -0
- package/node_modules/@aws-sdk/client-ecs/dist-es/index.js +1 -0
- package/node_modules/@aws-sdk/client-ecs/dist-es/models/enums.js +72 -33
- package/node_modules/@aws-sdk/client-ecs/dist-es/models/errors.js +32 -8
- package/node_modules/@aws-sdk/client-ecs/dist-es/models/models_1.js +1 -0
- package/node_modules/@aws-sdk/client-ecs/dist-es/schemas/schemas_0.js +500 -93
- package/node_modules/@aws-sdk/client-ecs/dist-es/waiters/index.js +5 -0
- package/node_modules/@aws-sdk/client-ecs/dist-es/waiters/waitForDaemonActive.js +40 -0
- package/node_modules/@aws-sdk/client-ecs/dist-es/waiters/waitForDaemonDeploymentStopped.js +54 -0
- package/node_modules/@aws-sdk/client-ecs/dist-es/waiters/waitForDaemonDeploymentSuccessful.js +99 -0
- package/node_modules/@aws-sdk/client-ecs/dist-es/waiters/waitForDaemonTaskDefinitionActive.js +49 -0
- package/node_modules/@aws-sdk/client-ecs/dist-es/waiters/waitForDaemonTaskDefinitionDeleted.js +31 -0
- package/node_modules/@aws-sdk/client-ecs/dist-types/ECS.d.ts +116 -0
- package/node_modules/@aws-sdk/client-ecs/dist-types/ECSClient.d.ts +14 -2
- package/node_modules/@aws-sdk/client-ecs/dist-types/commands/CreateDaemonCommand.d.ts +150 -0
- package/node_modules/@aws-sdk/client-ecs/dist-types/commands/CreateTaskSetCommand.d.ts +1 -1
- package/node_modules/@aws-sdk/client-ecs/dist-types/commands/DeleteDaemonCommand.d.ts +121 -0
- package/node_modules/@aws-sdk/client-ecs/dist-types/commands/DeleteDaemonTaskDefinitionCommand.d.ts +101 -0
- package/node_modules/@aws-sdk/client-ecs/dist-types/commands/DeleteTaskDefinitionsCommand.d.ts +1 -0
- package/node_modules/@aws-sdk/client-ecs/dist-types/commands/DeleteTaskSetCommand.d.ts +1 -1
- package/node_modules/@aws-sdk/client-ecs/dist-types/commands/DeregisterContainerInstanceCommand.d.ts +1 -1
- package/node_modules/@aws-sdk/client-ecs/dist-types/commands/DeregisterTaskDefinitionCommand.d.ts +1 -0
- package/node_modules/@aws-sdk/client-ecs/dist-types/commands/DescribeContainerInstancesCommand.d.ts +1 -1
- package/node_modules/@aws-sdk/client-ecs/dist-types/commands/DescribeDaemonCommand.d.ts +148 -0
- package/node_modules/@aws-sdk/client-ecs/dist-types/commands/DescribeDaemonDeploymentsCommand.d.ts +229 -0
- package/node_modules/@aws-sdk/client-ecs/dist-types/commands/DescribeDaemonRevisionsCommand.d.ts +155 -0
- package/node_modules/@aws-sdk/client-ecs/dist-types/commands/DescribeDaemonTaskDefinitionCommand.d.ts +286 -0
- package/node_modules/@aws-sdk/client-ecs/dist-types/commands/DescribeTaskDefinitionCommand.d.ts +1 -0
- package/node_modules/@aws-sdk/client-ecs/dist-types/commands/DescribeTaskSetsCommand.d.ts +1 -1
- package/node_modules/@aws-sdk/client-ecs/dist-types/commands/DescribeTasksCommand.d.ts +1 -1
- package/node_modules/@aws-sdk/client-ecs/dist-types/commands/GetTaskProtectionCommand.d.ts +1 -1
- package/node_modules/@aws-sdk/client-ecs/dist-types/commands/ListDaemonDeploymentsCommand.d.ts +145 -0
- package/node_modules/@aws-sdk/client-ecs/dist-types/commands/ListDaemonTaskDefinitionsCommand.d.ts +129 -0
- package/node_modules/@aws-sdk/client-ecs/dist-types/commands/ListDaemonsCommand.d.ts +133 -0
- package/node_modules/@aws-sdk/client-ecs/dist-types/commands/ListTaskDefinitionsCommand.d.ts +2 -1
- package/node_modules/@aws-sdk/client-ecs/dist-types/commands/ListTasksCommand.d.ts +1 -0
- package/node_modules/@aws-sdk/client-ecs/dist-types/commands/RegisterContainerInstanceCommand.d.ts +1 -1
- package/node_modules/@aws-sdk/client-ecs/dist-types/commands/RegisterDaemonTaskDefinitionCommand.d.ts +277 -0
- package/node_modules/@aws-sdk/client-ecs/dist-types/commands/RegisterTaskDefinitionCommand.d.ts +2 -1
- package/node_modules/@aws-sdk/client-ecs/dist-types/commands/RunTaskCommand.d.ts +1 -1
- package/node_modules/@aws-sdk/client-ecs/dist-types/commands/StartTaskCommand.d.ts +1 -1
- package/node_modules/@aws-sdk/client-ecs/dist-types/commands/StopTaskCommand.d.ts +1 -1
- package/node_modules/@aws-sdk/client-ecs/dist-types/commands/UntagResourceCommand.d.ts +1 -1
- package/node_modules/@aws-sdk/client-ecs/dist-types/commands/UpdateContainerAgentCommand.d.ts +1 -1
- package/node_modules/@aws-sdk/client-ecs/dist-types/commands/UpdateContainerInstancesStateCommand.d.ts +1 -1
- package/node_modules/@aws-sdk/client-ecs/dist-types/commands/UpdateDaemonCommand.d.ts +149 -0
- package/node_modules/@aws-sdk/client-ecs/dist-types/commands/UpdateTaskProtectionCommand.d.ts +1 -1
- package/node_modules/@aws-sdk/client-ecs/dist-types/commands/UpdateTaskSetCommand.d.ts +1 -1
- package/node_modules/@aws-sdk/client-ecs/dist-types/commands/index.d.ts +12 -0
- package/node_modules/@aws-sdk/client-ecs/dist-types/index.d.ts +1 -0
- package/node_modules/@aws-sdk/client-ecs/dist-types/models/enums.d.ts +155 -60
- package/node_modules/@aws-sdk/client-ecs/dist-types/models/errors.d.ts +32 -8
- package/node_modules/@aws-sdk/client-ecs/dist-types/models/models_0.d.ts +2630 -2613
- package/node_modules/@aws-sdk/client-ecs/dist-types/models/models_1.d.ts +1245 -0
- package/node_modules/@aws-sdk/client-ecs/dist-types/schemas/schemas_0.d.ts +58 -0
- package/node_modules/@aws-sdk/client-ecs/dist-types/ts3.4/ECS.d.ts +251 -0
- package/node_modules/@aws-sdk/client-ecs/dist-types/ts3.4/ECSClient.d.ts +72 -0
- package/node_modules/@aws-sdk/client-ecs/dist-types/ts3.4/commands/CreateDaemonCommand.d.ts +47 -0
- package/node_modules/@aws-sdk/client-ecs/dist-types/ts3.4/commands/CreateTaskSetCommand.d.ts +1 -1
- package/node_modules/@aws-sdk/client-ecs/dist-types/ts3.4/commands/DeleteDaemonCommand.d.ts +47 -0
- package/node_modules/@aws-sdk/client-ecs/dist-types/ts3.4/commands/DeleteDaemonTaskDefinitionCommand.d.ts +51 -0
- package/node_modules/@aws-sdk/client-ecs/dist-types/ts3.4/commands/DeleteTaskSetCommand.d.ts +1 -1
- package/node_modules/@aws-sdk/client-ecs/dist-types/ts3.4/commands/DescribeDaemonCommand.d.ts +50 -0
- package/node_modules/@aws-sdk/client-ecs/dist-types/ts3.4/commands/DescribeDaemonDeploymentsCommand.d.ts +51 -0
- package/node_modules/@aws-sdk/client-ecs/dist-types/ts3.4/commands/DescribeDaemonRevisionsCommand.d.ts +51 -0
- package/node_modules/@aws-sdk/client-ecs/dist-types/ts3.4/commands/DescribeDaemonTaskDefinitionCommand.d.ts +51 -0
- package/node_modules/@aws-sdk/client-ecs/dist-types/ts3.4/commands/DescribeTaskSetsCommand.d.ts +1 -1
- package/node_modules/@aws-sdk/client-ecs/dist-types/ts3.4/commands/DescribeTasksCommand.d.ts +1 -1
- package/node_modules/@aws-sdk/client-ecs/dist-types/ts3.4/commands/GetTaskProtectionCommand.d.ts +1 -1
- package/node_modules/@aws-sdk/client-ecs/dist-types/ts3.4/commands/ListDaemonDeploymentsCommand.d.ts +51 -0
- package/node_modules/@aws-sdk/client-ecs/dist-types/ts3.4/commands/ListDaemonTaskDefinitionsCommand.d.ts +51 -0
- package/node_modules/@aws-sdk/client-ecs/dist-types/ts3.4/commands/ListDaemonsCommand.d.ts +47 -0
- package/node_modules/@aws-sdk/client-ecs/dist-types/ts3.4/commands/ListTaskDefinitionsCommand.d.ts +2 -4
- package/node_modules/@aws-sdk/client-ecs/dist-types/ts3.4/commands/RegisterDaemonTaskDefinitionCommand.d.ts +51 -0
- package/node_modules/@aws-sdk/client-ecs/dist-types/ts3.4/commands/RegisterTaskDefinitionCommand.d.ts +1 -1
- package/node_modules/@aws-sdk/client-ecs/dist-types/ts3.4/commands/RunTaskCommand.d.ts +1 -1
- package/node_modules/@aws-sdk/client-ecs/dist-types/ts3.4/commands/StartTaskCommand.d.ts +1 -1
- package/node_modules/@aws-sdk/client-ecs/dist-types/ts3.4/commands/StopTaskCommand.d.ts +1 -1
- package/node_modules/@aws-sdk/client-ecs/dist-types/ts3.4/commands/UntagResourceCommand.d.ts +1 -1
- package/node_modules/@aws-sdk/client-ecs/dist-types/ts3.4/commands/UpdateDaemonCommand.d.ts +47 -0
- package/node_modules/@aws-sdk/client-ecs/dist-types/ts3.4/commands/UpdateTaskProtectionCommand.d.ts +1 -1
- package/node_modules/@aws-sdk/client-ecs/dist-types/ts3.4/commands/UpdateTaskSetCommand.d.ts +1 -1
- package/node_modules/@aws-sdk/client-ecs/dist-types/ts3.4/commands/index.d.ts +12 -0
- package/node_modules/@aws-sdk/client-ecs/dist-types/ts3.4/index.d.ts +1 -0
- package/node_modules/@aws-sdk/client-ecs/dist-types/ts3.4/models/enums.d.ts +92 -40
- package/node_modules/@aws-sdk/client-ecs/dist-types/ts3.4/models/errors.d.ts +21 -7
- package/node_modules/@aws-sdk/client-ecs/dist-types/ts3.4/models/models_0.d.ts +338 -324
- package/node_modules/@aws-sdk/client-ecs/dist-types/ts3.4/models/models_1.d.ts +322 -0
- package/node_modules/@aws-sdk/client-ecs/dist-types/ts3.4/schemas/schemas_0.d.ts +58 -0
- package/node_modules/@aws-sdk/client-ecs/dist-types/ts3.4/waiters/index.d.ts +5 -0
- package/node_modules/@aws-sdk/client-ecs/dist-types/ts3.4/waiters/waitForDaemonActive.d.ts +11 -0
- package/node_modules/@aws-sdk/client-ecs/dist-types/ts3.4/waiters/waitForDaemonDeploymentStopped.d.ts +11 -0
- package/node_modules/@aws-sdk/client-ecs/dist-types/ts3.4/waiters/waitForDaemonDeploymentSuccessful.d.ts +11 -0
- package/node_modules/@aws-sdk/client-ecs/dist-types/ts3.4/waiters/waitForDaemonTaskDefinitionActive.d.ts +11 -0
- package/node_modules/@aws-sdk/client-ecs/dist-types/ts3.4/waiters/waitForDaemonTaskDefinitionDeleted.d.ts +11 -0
- package/node_modules/@aws-sdk/client-ecs/dist-types/waiters/index.d.ts +5 -0
- package/node_modules/@aws-sdk/client-ecs/dist-types/waiters/waitForDaemonActive.d.ts +14 -0
- package/node_modules/@aws-sdk/client-ecs/dist-types/waiters/waitForDaemonDeploymentStopped.d.ts +14 -0
- package/node_modules/@aws-sdk/client-ecs/dist-types/waiters/waitForDaemonDeploymentSuccessful.d.ts +14 -0
- package/node_modules/@aws-sdk/client-ecs/dist-types/waiters/waitForDaemonTaskDefinitionActive.d.ts +14 -0
- package/node_modules/@aws-sdk/client-ecs/dist-types/waiters/waitForDaemonTaskDefinitionDeleted.d.ts +14 -0
- package/node_modules/@aws-sdk/client-ecs/package.json +6 -6
- package/node_modules/@aws-sdk/client-kms/package.json +6 -6
- package/node_modules/@aws-sdk/client-s3/dist-cjs/index.js +1 -0
- package/node_modules/@aws-sdk/client-s3/dist-es/commands/ListBucketMetricsConfigurationsCommand.js +1 -0
- package/node_modules/@aws-sdk/client-s3/dist-types/commands/DeleteBucketInventoryConfigurationCommand.d.ts +4 -0
- package/node_modules/@aws-sdk/client-s3/dist-types/commands/DeleteBucketMetricsConfigurationCommand.d.ts +39 -8
- package/node_modules/@aws-sdk/client-s3/dist-types/commands/GetBucketMetricsConfigurationCommand.d.ts +39 -8
- package/node_modules/@aws-sdk/client-s3/dist-types/commands/ListBucketMetricsConfigurationsCommand.d.ts +39 -8
- package/node_modules/@aws-sdk/client-s3/dist-types/commands/PutBucketMetricsConfigurationCommand.d.ts +39 -8
- package/node_modules/@aws-sdk/client-s3/dist-types/models/models_0.d.ts +51 -0
- package/node_modules/@aws-sdk/client-s3/package.json +7 -7
- package/node_modules/@aws-sdk/client-secrets-manager/package.json +6 -6
- package/node_modules/@aws-sdk/client-sfn/package.json +6 -6
- package/node_modules/@aws-sdk/client-sns/package.json +6 -6
- package/node_modules/@aws-sdk/client-sqs/package.json +6 -6
- package/node_modules/@aws-sdk/client-ssm/package.json +6 -6
- package/node_modules/@aws-sdk/credential-provider-ini/package.json +5 -5
- package/node_modules/@aws-sdk/credential-provider-login/package.json +2 -2
- package/node_modules/@aws-sdk/credential-provider-node/package.json +4 -4
- package/node_modules/@aws-sdk/credential-provider-sso/package.json +3 -3
- package/node_modules/@aws-sdk/credential-provider-web-identity/package.json +2 -2
- package/node_modules/@aws-sdk/middleware-user-agent/package.json +2 -2
- package/node_modules/@aws-sdk/nested-clients/package.json +5 -5
- package/node_modules/@aws-sdk/token-providers/package.json +2 -2
- package/node_modules/@aws-sdk/util-user-agent-node/package.json +2 -2
- package/node_modules/@smithy/middleware-retry/package.json +2 -2
- package/node_modules/@smithy/util-retry/dist-cjs/index.js +9 -7
- package/node_modules/@smithy/util-retry/dist-es/DefaultRateLimiter.js +9 -7
- package/node_modules/@smithy/util-retry/dist-types/DefaultRateLimiter.d.ts +71 -1
- package/node_modules/@smithy/util-retry/dist-types/ts3.4/DefaultRateLimiter.d.ts +71 -1
- package/node_modules/@smithy/util-retry/package.json +1 -1
- package/node_modules/lodash/README.md +2 -2
- package/node_modules/lodash/_baseOrderBy.js +1 -1
- package/node_modules/lodash/_baseUnset.js +7 -20
- package/node_modules/lodash/_setCacheHas.js +1 -1
- package/node_modules/lodash/compact.js +1 -1
- package/node_modules/lodash/core.js +3 -3
- package/node_modules/lodash/core.min.js +26 -25
- package/node_modules/lodash/fromPairs.js +3 -1
- package/node_modules/lodash/lodash.js +38 -27
- package/node_modules/lodash/lodash.min.js +125 -129
- package/node_modules/lodash/package.json +4 -2
- package/node_modules/lodash/random.js +9 -0
- package/node_modules/lodash/template.js +16 -4
- package/node_modules/lodash/templateSettings.js +4 -0
- package/node_modules/path-expression-matcher/lib/pem.cjs +1 -1
- package/node_modules/path-expression-matcher/lib/pem.min.js +1 -1
- package/node_modules/path-expression-matcher/lib/pem.min.js.map +1 -1
- package/node_modules/path-expression-matcher/package.json +1 -1
- package/node_modules/path-expression-matcher/src/Matcher.js +20 -6
- package/package.json +14 -15
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@aws-sdk/client-sfn",
|
|
3
3
|
"description": "AWS SDK for JavaScript Sfn Client for Node.js, Browser and React Native",
|
|
4
|
-
"version": "3.
|
|
4
|
+
"version": "3.1024.0",
|
|
5
5
|
"scripts": {
|
|
6
6
|
"build": "concurrently 'yarn:build:types' 'yarn:build:es' && yarn build:cjs",
|
|
7
7
|
"build:cjs": "node ../../scripts/compilation/inline client-sfn",
|
|
@@ -22,16 +22,16 @@
|
|
|
22
22
|
"@aws-crypto/sha256-browser": "5.2.0",
|
|
23
23
|
"@aws-crypto/sha256-js": "5.2.0",
|
|
24
24
|
"@aws-sdk/core": "^3.973.26",
|
|
25
|
-
"@aws-sdk/credential-provider-node": "^3.972.
|
|
25
|
+
"@aws-sdk/credential-provider-node": "^3.972.29",
|
|
26
26
|
"@aws-sdk/middleware-host-header": "^3.972.8",
|
|
27
27
|
"@aws-sdk/middleware-logger": "^3.972.8",
|
|
28
28
|
"@aws-sdk/middleware-recursion-detection": "^3.972.9",
|
|
29
|
-
"@aws-sdk/middleware-user-agent": "^3.972.
|
|
29
|
+
"@aws-sdk/middleware-user-agent": "^3.972.28",
|
|
30
30
|
"@aws-sdk/region-config-resolver": "^3.972.10",
|
|
31
31
|
"@aws-sdk/types": "^3.973.6",
|
|
32
32
|
"@aws-sdk/util-endpoints": "^3.996.5",
|
|
33
33
|
"@aws-sdk/util-user-agent-browser": "^3.972.8",
|
|
34
|
-
"@aws-sdk/util-user-agent-node": "^3.973.
|
|
34
|
+
"@aws-sdk/util-user-agent-node": "^3.973.14",
|
|
35
35
|
"@smithy/config-resolver": "^4.4.13",
|
|
36
36
|
"@smithy/core": "^3.23.13",
|
|
37
37
|
"@smithy/fetch-http-handler": "^5.3.15",
|
|
@@ -39,7 +39,7 @@
|
|
|
39
39
|
"@smithy/invalid-dependency": "^4.2.12",
|
|
40
40
|
"@smithy/middleware-content-length": "^4.2.12",
|
|
41
41
|
"@smithy/middleware-endpoint": "^4.4.28",
|
|
42
|
-
"@smithy/middleware-retry": "^4.4.
|
|
42
|
+
"@smithy/middleware-retry": "^4.4.46",
|
|
43
43
|
"@smithy/middleware-serde": "^4.2.16",
|
|
44
44
|
"@smithy/middleware-stack": "^4.2.12",
|
|
45
45
|
"@smithy/node-config-provider": "^4.3.12",
|
|
@@ -55,7 +55,7 @@
|
|
|
55
55
|
"@smithy/util-defaults-mode-node": "^4.2.48",
|
|
56
56
|
"@smithy/util-endpoints": "^3.3.3",
|
|
57
57
|
"@smithy/util-middleware": "^4.2.12",
|
|
58
|
-
"@smithy/util-retry": "^4.2.
|
|
58
|
+
"@smithy/util-retry": "^4.2.13",
|
|
59
59
|
"@smithy/util-utf8": "^4.2.2",
|
|
60
60
|
"tslib": "^2.6.2"
|
|
61
61
|
},
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@aws-sdk/client-sns",
|
|
3
3
|
"description": "AWS SDK for JavaScript Sns Client for Node.js, Browser and React Native",
|
|
4
|
-
"version": "3.
|
|
4
|
+
"version": "3.1024.0",
|
|
5
5
|
"scripts": {
|
|
6
6
|
"build": "concurrently 'yarn:build:types' 'yarn:build:es' && yarn build:cjs",
|
|
7
7
|
"build:cjs": "node ../../scripts/compilation/inline client-sns",
|
|
@@ -24,16 +24,16 @@
|
|
|
24
24
|
"@aws-crypto/sha256-browser": "5.2.0",
|
|
25
25
|
"@aws-crypto/sha256-js": "5.2.0",
|
|
26
26
|
"@aws-sdk/core": "^3.973.26",
|
|
27
|
-
"@aws-sdk/credential-provider-node": "^3.972.
|
|
27
|
+
"@aws-sdk/credential-provider-node": "^3.972.29",
|
|
28
28
|
"@aws-sdk/middleware-host-header": "^3.972.8",
|
|
29
29
|
"@aws-sdk/middleware-logger": "^3.972.8",
|
|
30
30
|
"@aws-sdk/middleware-recursion-detection": "^3.972.9",
|
|
31
|
-
"@aws-sdk/middleware-user-agent": "^3.972.
|
|
31
|
+
"@aws-sdk/middleware-user-agent": "^3.972.28",
|
|
32
32
|
"@aws-sdk/region-config-resolver": "^3.972.10",
|
|
33
33
|
"@aws-sdk/types": "^3.973.6",
|
|
34
34
|
"@aws-sdk/util-endpoints": "^3.996.5",
|
|
35
35
|
"@aws-sdk/util-user-agent-browser": "^3.972.8",
|
|
36
|
-
"@aws-sdk/util-user-agent-node": "^3.973.
|
|
36
|
+
"@aws-sdk/util-user-agent-node": "^3.973.14",
|
|
37
37
|
"@smithy/config-resolver": "^4.4.13",
|
|
38
38
|
"@smithy/core": "^3.23.13",
|
|
39
39
|
"@smithy/fetch-http-handler": "^5.3.15",
|
|
@@ -41,7 +41,7 @@
|
|
|
41
41
|
"@smithy/invalid-dependency": "^4.2.12",
|
|
42
42
|
"@smithy/middleware-content-length": "^4.2.12",
|
|
43
43
|
"@smithy/middleware-endpoint": "^4.4.28",
|
|
44
|
-
"@smithy/middleware-retry": "^4.4.
|
|
44
|
+
"@smithy/middleware-retry": "^4.4.46",
|
|
45
45
|
"@smithy/middleware-serde": "^4.2.16",
|
|
46
46
|
"@smithy/middleware-stack": "^4.2.12",
|
|
47
47
|
"@smithy/node-config-provider": "^4.3.12",
|
|
@@ -57,7 +57,7 @@
|
|
|
57
57
|
"@smithy/util-defaults-mode-node": "^4.2.48",
|
|
58
58
|
"@smithy/util-endpoints": "^3.3.3",
|
|
59
59
|
"@smithy/util-middleware": "^4.2.12",
|
|
60
|
-
"@smithy/util-retry": "^4.2.
|
|
60
|
+
"@smithy/util-retry": "^4.2.13",
|
|
61
61
|
"@smithy/util-utf8": "^4.2.2",
|
|
62
62
|
"tslib": "^2.6.2"
|
|
63
63
|
},
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@aws-sdk/client-sqs",
|
|
3
3
|
"description": "AWS SDK for JavaScript Sqs Client for Node.js, Browser and React Native",
|
|
4
|
-
"version": "3.
|
|
4
|
+
"version": "3.1024.0",
|
|
5
5
|
"scripts": {
|
|
6
6
|
"build": "concurrently 'yarn:build:types' 'yarn:build:es' && yarn build:cjs",
|
|
7
7
|
"build:cjs": "node ../../scripts/compilation/inline client-sqs",
|
|
@@ -30,17 +30,17 @@
|
|
|
30
30
|
"@aws-crypto/sha256-browser": "5.2.0",
|
|
31
31
|
"@aws-crypto/sha256-js": "5.2.0",
|
|
32
32
|
"@aws-sdk/core": "^3.973.26",
|
|
33
|
-
"@aws-sdk/credential-provider-node": "^3.972.
|
|
33
|
+
"@aws-sdk/credential-provider-node": "^3.972.29",
|
|
34
34
|
"@aws-sdk/middleware-host-header": "^3.972.8",
|
|
35
35
|
"@aws-sdk/middleware-logger": "^3.972.8",
|
|
36
36
|
"@aws-sdk/middleware-recursion-detection": "^3.972.9",
|
|
37
37
|
"@aws-sdk/middleware-sdk-sqs": "^3.972.18",
|
|
38
|
-
"@aws-sdk/middleware-user-agent": "^3.972.
|
|
38
|
+
"@aws-sdk/middleware-user-agent": "^3.972.28",
|
|
39
39
|
"@aws-sdk/region-config-resolver": "^3.972.10",
|
|
40
40
|
"@aws-sdk/types": "^3.973.6",
|
|
41
41
|
"@aws-sdk/util-endpoints": "^3.996.5",
|
|
42
42
|
"@aws-sdk/util-user-agent-browser": "^3.972.8",
|
|
43
|
-
"@aws-sdk/util-user-agent-node": "^3.973.
|
|
43
|
+
"@aws-sdk/util-user-agent-node": "^3.973.14",
|
|
44
44
|
"@smithy/config-resolver": "^4.4.13",
|
|
45
45
|
"@smithy/core": "^3.23.13",
|
|
46
46
|
"@smithy/fetch-http-handler": "^5.3.15",
|
|
@@ -49,7 +49,7 @@
|
|
|
49
49
|
"@smithy/md5-js": "^4.2.12",
|
|
50
50
|
"@smithy/middleware-content-length": "^4.2.12",
|
|
51
51
|
"@smithy/middleware-endpoint": "^4.4.28",
|
|
52
|
-
"@smithy/middleware-retry": "^4.4.
|
|
52
|
+
"@smithy/middleware-retry": "^4.4.46",
|
|
53
53
|
"@smithy/middleware-serde": "^4.2.16",
|
|
54
54
|
"@smithy/middleware-stack": "^4.2.12",
|
|
55
55
|
"@smithy/node-config-provider": "^4.3.12",
|
|
@@ -65,7 +65,7 @@
|
|
|
65
65
|
"@smithy/util-defaults-mode-node": "^4.2.48",
|
|
66
66
|
"@smithy/util-endpoints": "^3.3.3",
|
|
67
67
|
"@smithy/util-middleware": "^4.2.12",
|
|
68
|
-
"@smithy/util-retry": "^4.2.
|
|
68
|
+
"@smithy/util-retry": "^4.2.13",
|
|
69
69
|
"@smithy/util-utf8": "^4.2.2",
|
|
70
70
|
"tslib": "^2.6.2"
|
|
71
71
|
},
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@aws-sdk/client-ssm",
|
|
3
3
|
"description": "AWS SDK for JavaScript Ssm Client for Node.js, Browser and React Native",
|
|
4
|
-
"version": "3.
|
|
4
|
+
"version": "3.1024.0",
|
|
5
5
|
"scripts": {
|
|
6
6
|
"build": "concurrently 'yarn:build:types' 'yarn:build:es' && yarn build:cjs",
|
|
7
7
|
"build:cjs": "node ../../scripts/compilation/inline client-ssm",
|
|
@@ -24,16 +24,16 @@
|
|
|
24
24
|
"@aws-crypto/sha256-browser": "5.2.0",
|
|
25
25
|
"@aws-crypto/sha256-js": "5.2.0",
|
|
26
26
|
"@aws-sdk/core": "^3.973.26",
|
|
27
|
-
"@aws-sdk/credential-provider-node": "^3.972.
|
|
27
|
+
"@aws-sdk/credential-provider-node": "^3.972.29",
|
|
28
28
|
"@aws-sdk/middleware-host-header": "^3.972.8",
|
|
29
29
|
"@aws-sdk/middleware-logger": "^3.972.8",
|
|
30
30
|
"@aws-sdk/middleware-recursion-detection": "^3.972.9",
|
|
31
|
-
"@aws-sdk/middleware-user-agent": "^3.972.
|
|
31
|
+
"@aws-sdk/middleware-user-agent": "^3.972.28",
|
|
32
32
|
"@aws-sdk/region-config-resolver": "^3.972.10",
|
|
33
33
|
"@aws-sdk/types": "^3.973.6",
|
|
34
34
|
"@aws-sdk/util-endpoints": "^3.996.5",
|
|
35
35
|
"@aws-sdk/util-user-agent-browser": "^3.972.8",
|
|
36
|
-
"@aws-sdk/util-user-agent-node": "^3.973.
|
|
36
|
+
"@aws-sdk/util-user-agent-node": "^3.973.14",
|
|
37
37
|
"@smithy/config-resolver": "^4.4.13",
|
|
38
38
|
"@smithy/core": "^3.23.13",
|
|
39
39
|
"@smithy/fetch-http-handler": "^5.3.15",
|
|
@@ -41,7 +41,7 @@
|
|
|
41
41
|
"@smithy/invalid-dependency": "^4.2.12",
|
|
42
42
|
"@smithy/middleware-content-length": "^4.2.12",
|
|
43
43
|
"@smithy/middleware-endpoint": "^4.4.28",
|
|
44
|
-
"@smithy/middleware-retry": "^4.4.
|
|
44
|
+
"@smithy/middleware-retry": "^4.4.46",
|
|
45
45
|
"@smithy/middleware-serde": "^4.2.16",
|
|
46
46
|
"@smithy/middleware-stack": "^4.2.12",
|
|
47
47
|
"@smithy/node-config-provider": "^4.3.12",
|
|
@@ -57,7 +57,7 @@
|
|
|
57
57
|
"@smithy/util-defaults-mode-node": "^4.2.48",
|
|
58
58
|
"@smithy/util-endpoints": "^3.3.3",
|
|
59
59
|
"@smithy/util-middleware": "^4.2.12",
|
|
60
|
-
"@smithy/util-retry": "^4.2.
|
|
60
|
+
"@smithy/util-retry": "^4.2.13",
|
|
61
61
|
"@smithy/util-utf8": "^4.2.2",
|
|
62
62
|
"@smithy/util-waiter": "^4.2.14",
|
|
63
63
|
"tslib": "^2.6.2"
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@aws-sdk/credential-provider-ini",
|
|
3
|
-
"version": "3.972.
|
|
3
|
+
"version": "3.972.28",
|
|
4
4
|
"description": "AWS credential provider that sources credentials from ~/.aws/credentials and ~/.aws/config",
|
|
5
5
|
"main": "./dist-cjs/index.js",
|
|
6
6
|
"module": "./dist-es/index.js",
|
|
@@ -31,11 +31,11 @@
|
|
|
31
31
|
"@aws-sdk/core": "^3.973.26",
|
|
32
32
|
"@aws-sdk/credential-provider-env": "^3.972.24",
|
|
33
33
|
"@aws-sdk/credential-provider-http": "^3.972.26",
|
|
34
|
-
"@aws-sdk/credential-provider-login": "^3.972.
|
|
34
|
+
"@aws-sdk/credential-provider-login": "^3.972.28",
|
|
35
35
|
"@aws-sdk/credential-provider-process": "^3.972.24",
|
|
36
|
-
"@aws-sdk/credential-provider-sso": "^3.972.
|
|
37
|
-
"@aws-sdk/credential-provider-web-identity": "^3.972.
|
|
38
|
-
"@aws-sdk/nested-clients": "^3.996.
|
|
36
|
+
"@aws-sdk/credential-provider-sso": "^3.972.28",
|
|
37
|
+
"@aws-sdk/credential-provider-web-identity": "^3.972.28",
|
|
38
|
+
"@aws-sdk/nested-clients": "^3.996.18",
|
|
39
39
|
"@aws-sdk/types": "^3.973.6",
|
|
40
40
|
"@smithy/credential-provider-imds": "^4.2.12",
|
|
41
41
|
"@smithy/property-provider": "^4.2.12",
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@aws-sdk/credential-provider-login",
|
|
3
|
-
"version": "3.972.
|
|
3
|
+
"version": "3.972.28",
|
|
4
4
|
"description": "AWS credential provider that sources credentials from aws login cached tokens",
|
|
5
5
|
"main": "./dist-cjs/index.js",
|
|
6
6
|
"module": "./dist-es/index.js",
|
|
@@ -29,7 +29,7 @@
|
|
|
29
29
|
"license": "Apache-2.0",
|
|
30
30
|
"dependencies": {
|
|
31
31
|
"@aws-sdk/core": "^3.973.26",
|
|
32
|
-
"@aws-sdk/nested-clients": "^3.996.
|
|
32
|
+
"@aws-sdk/nested-clients": "^3.996.18",
|
|
33
33
|
"@aws-sdk/types": "^3.973.6",
|
|
34
34
|
"@smithy/property-provider": "^4.2.12",
|
|
35
35
|
"@smithy/protocol-http": "^5.3.12",
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@aws-sdk/credential-provider-node",
|
|
3
|
-
"version": "3.972.
|
|
3
|
+
"version": "3.972.29",
|
|
4
4
|
"description": "AWS credential provider that sources credentials from a Node.JS environment. ",
|
|
5
5
|
"engines": {
|
|
6
6
|
"node": ">=20.0.0"
|
|
@@ -33,10 +33,10 @@
|
|
|
33
33
|
"dependencies": {
|
|
34
34
|
"@aws-sdk/credential-provider-env": "^3.972.24",
|
|
35
35
|
"@aws-sdk/credential-provider-http": "^3.972.26",
|
|
36
|
-
"@aws-sdk/credential-provider-ini": "^3.972.
|
|
36
|
+
"@aws-sdk/credential-provider-ini": "^3.972.28",
|
|
37
37
|
"@aws-sdk/credential-provider-process": "^3.972.24",
|
|
38
|
-
"@aws-sdk/credential-provider-sso": "^3.972.
|
|
39
|
-
"@aws-sdk/credential-provider-web-identity": "^3.972.
|
|
38
|
+
"@aws-sdk/credential-provider-sso": "^3.972.28",
|
|
39
|
+
"@aws-sdk/credential-provider-web-identity": "^3.972.28",
|
|
40
40
|
"@aws-sdk/types": "^3.973.6",
|
|
41
41
|
"@smithy/credential-provider-imds": "^4.2.12",
|
|
42
42
|
"@smithy/property-provider": "^4.2.12",
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@aws-sdk/credential-provider-sso",
|
|
3
|
-
"version": "3.972.
|
|
3
|
+
"version": "3.972.28",
|
|
4
4
|
"description": "AWS credential provider that exchanges a resolved SSO login token file for temporary AWS credentials",
|
|
5
5
|
"main": "./dist-cjs/index.js",
|
|
6
6
|
"module": "./dist-es/index.js",
|
|
@@ -27,8 +27,8 @@
|
|
|
27
27
|
"license": "Apache-2.0",
|
|
28
28
|
"dependencies": {
|
|
29
29
|
"@aws-sdk/core": "^3.973.26",
|
|
30
|
-
"@aws-sdk/nested-clients": "^3.996.
|
|
31
|
-
"@aws-sdk/token-providers": "3.
|
|
30
|
+
"@aws-sdk/nested-clients": "^3.996.18",
|
|
31
|
+
"@aws-sdk/token-providers": "3.1021.0",
|
|
32
32
|
"@aws-sdk/types": "^3.973.6",
|
|
33
33
|
"@smithy/property-provider": "^4.2.12",
|
|
34
34
|
"@smithy/shared-ini-file-loader": "^4.4.7",
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@aws-sdk/credential-provider-web-identity",
|
|
3
|
-
"version": "3.972.
|
|
3
|
+
"version": "3.972.28",
|
|
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",
|
|
@@ -35,7 +35,7 @@
|
|
|
35
35
|
"license": "Apache-2.0",
|
|
36
36
|
"dependencies": {
|
|
37
37
|
"@aws-sdk/core": "^3.973.26",
|
|
38
|
-
"@aws-sdk/nested-clients": "^3.996.
|
|
38
|
+
"@aws-sdk/nested-clients": "^3.996.18",
|
|
39
39
|
"@aws-sdk/types": "^3.973.6",
|
|
40
40
|
"@smithy/property-provider": "^4.2.12",
|
|
41
41
|
"@smithy/shared-ini-file-loader": "^4.4.7",
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@aws-sdk/middleware-user-agent",
|
|
3
|
-
"version": "3.972.
|
|
3
|
+
"version": "3.972.28",
|
|
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",
|
|
@@ -31,7 +31,7 @@
|
|
|
31
31
|
"@smithy/core": "^3.23.13",
|
|
32
32
|
"@smithy/protocol-http": "^5.3.12",
|
|
33
33
|
"@smithy/types": "^4.13.1",
|
|
34
|
-
"@smithy/util-retry": "^4.2.
|
|
34
|
+
"@smithy/util-retry": "^4.2.13",
|
|
35
35
|
"tslib": "^2.6.2"
|
|
36
36
|
},
|
|
37
37
|
"devDependencies": {
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@aws-sdk/nested-clients",
|
|
3
|
-
"version": "3.996.
|
|
3
|
+
"version": "3.996.18",
|
|
4
4
|
"description": "Nested clients for AWS SDK packages.",
|
|
5
5
|
"main": "./dist-cjs/index.js",
|
|
6
6
|
"module": "./dist-es/index.js",
|
|
@@ -33,12 +33,12 @@
|
|
|
33
33
|
"@aws-sdk/middleware-host-header": "^3.972.8",
|
|
34
34
|
"@aws-sdk/middleware-logger": "^3.972.8",
|
|
35
35
|
"@aws-sdk/middleware-recursion-detection": "^3.972.9",
|
|
36
|
-
"@aws-sdk/middleware-user-agent": "^3.972.
|
|
36
|
+
"@aws-sdk/middleware-user-agent": "^3.972.28",
|
|
37
37
|
"@aws-sdk/region-config-resolver": "^3.972.10",
|
|
38
38
|
"@aws-sdk/types": "^3.973.6",
|
|
39
39
|
"@aws-sdk/util-endpoints": "^3.996.5",
|
|
40
40
|
"@aws-sdk/util-user-agent-browser": "^3.972.8",
|
|
41
|
-
"@aws-sdk/util-user-agent-node": "^3.973.
|
|
41
|
+
"@aws-sdk/util-user-agent-node": "^3.973.14",
|
|
42
42
|
"@smithy/config-resolver": "^4.4.13",
|
|
43
43
|
"@smithy/core": "^3.23.13",
|
|
44
44
|
"@smithy/fetch-http-handler": "^5.3.15",
|
|
@@ -46,7 +46,7 @@
|
|
|
46
46
|
"@smithy/invalid-dependency": "^4.2.12",
|
|
47
47
|
"@smithy/middleware-content-length": "^4.2.12",
|
|
48
48
|
"@smithy/middleware-endpoint": "^4.4.28",
|
|
49
|
-
"@smithy/middleware-retry": "^4.4.
|
|
49
|
+
"@smithy/middleware-retry": "^4.4.46",
|
|
50
50
|
"@smithy/middleware-serde": "^4.2.16",
|
|
51
51
|
"@smithy/middleware-stack": "^4.2.12",
|
|
52
52
|
"@smithy/node-config-provider": "^4.3.12",
|
|
@@ -62,7 +62,7 @@
|
|
|
62
62
|
"@smithy/util-defaults-mode-node": "^4.2.48",
|
|
63
63
|
"@smithy/util-endpoints": "^3.3.3",
|
|
64
64
|
"@smithy/util-middleware": "^4.2.12",
|
|
65
|
-
"@smithy/util-retry": "^4.2.
|
|
65
|
+
"@smithy/util-retry": "^4.2.13",
|
|
66
66
|
"@smithy/util-utf8": "^4.2.2",
|
|
67
67
|
"tslib": "^2.6.2"
|
|
68
68
|
},
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@aws-sdk/token-providers",
|
|
3
|
-
"version": "3.
|
|
3
|
+
"version": "3.1021.0",
|
|
4
4
|
"description": "A collection of token providers",
|
|
5
5
|
"main": "./dist-cjs/index.js",
|
|
6
6
|
"module": "./dist-es/index.js",
|
|
@@ -30,7 +30,7 @@
|
|
|
30
30
|
"license": "Apache-2.0",
|
|
31
31
|
"dependencies": {
|
|
32
32
|
"@aws-sdk/core": "^3.973.26",
|
|
33
|
-
"@aws-sdk/nested-clients": "^3.996.
|
|
33
|
+
"@aws-sdk/nested-clients": "^3.996.18",
|
|
34
34
|
"@aws-sdk/types": "^3.973.6",
|
|
35
35
|
"@smithy/property-provider": "^4.2.12",
|
|
36
36
|
"@smithy/shared-ini-file-loader": "^4.4.7",
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@aws-sdk/util-user-agent-node",
|
|
3
|
-
"version": "3.973.
|
|
3
|
+
"version": "3.973.14",
|
|
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",
|
|
@@ -24,7 +24,7 @@
|
|
|
24
24
|
},
|
|
25
25
|
"license": "Apache-2.0",
|
|
26
26
|
"dependencies": {
|
|
27
|
-
"@aws-sdk/middleware-user-agent": "^3.972.
|
|
27
|
+
"@aws-sdk/middleware-user-agent": "^3.972.28",
|
|
28
28
|
"@aws-sdk/types": "^3.973.6",
|
|
29
29
|
"@smithy/node-config-provider": "^4.3.12",
|
|
30
30
|
"@smithy/types": "^4.13.1",
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@smithy/middleware-retry",
|
|
3
|
-
"version": "4.4.
|
|
3
|
+
"version": "4.4.46",
|
|
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",
|
|
@@ -40,7 +40,7 @@
|
|
|
40
40
|
"@smithy/smithy-client": "^4.12.8",
|
|
41
41
|
"@smithy/types": "^4.13.1",
|
|
42
42
|
"@smithy/util-middleware": "^4.2.12",
|
|
43
|
-
"@smithy/util-retry": "^4.2.
|
|
43
|
+
"@smithy/util-retry": "^4.2.13",
|
|
44
44
|
"@smithy/uuid": "^1.1.2",
|
|
45
45
|
"tslib": "^2.6.2"
|
|
46
46
|
},
|
|
@@ -17,8 +17,8 @@ class DefaultRateLimiter {
|
|
|
17
17
|
minFillRate;
|
|
18
18
|
scaleConstant;
|
|
19
19
|
smooth;
|
|
20
|
-
currentCapacity = 0;
|
|
21
20
|
enabled = false;
|
|
21
|
+
availableTokens = 0;
|
|
22
22
|
lastMaxRate = 0;
|
|
23
23
|
measuredTxRate = 0;
|
|
24
24
|
requestCount = 0;
|
|
@@ -51,11 +51,11 @@ class DefaultRateLimiter {
|
|
|
51
51
|
return;
|
|
52
52
|
}
|
|
53
53
|
this.refillTokenBucket();
|
|
54
|
-
if (amount > this.
|
|
55
|
-
const delay = ((amount - this.
|
|
54
|
+
if (amount > this.availableTokens) {
|
|
55
|
+
const delay = ((amount - this.availableTokens) / this.fillRate) * 1000;
|
|
56
56
|
await new Promise((resolve) => DefaultRateLimiter.setTimeoutFn(resolve, delay));
|
|
57
57
|
}
|
|
58
|
-
this.
|
|
58
|
+
this.availableTokens = this.availableTokens - amount;
|
|
59
59
|
}
|
|
60
60
|
refillTokenBucket() {
|
|
61
61
|
const timestamp = this.getCurrentTimeInSeconds();
|
|
@@ -64,13 +64,15 @@ class DefaultRateLimiter {
|
|
|
64
64
|
return;
|
|
65
65
|
}
|
|
66
66
|
const fillAmount = (timestamp - this.lastTimestamp) * this.fillRate;
|
|
67
|
-
this.
|
|
67
|
+
this.availableTokens = Math.min(this.maxCapacity, this.availableTokens + fillAmount);
|
|
68
68
|
this.lastTimestamp = timestamp;
|
|
69
69
|
}
|
|
70
70
|
updateClientSendingRate(response) {
|
|
71
71
|
let calculatedRate;
|
|
72
72
|
this.updateMeasuredRate();
|
|
73
|
-
|
|
73
|
+
const retryErrorInfo = response;
|
|
74
|
+
const isThrottling = retryErrorInfo?.errorType === "THROTTLING" || serviceErrorClassification.isThrottlingError(retryErrorInfo?.error ?? response);
|
|
75
|
+
if (isThrottling) {
|
|
74
76
|
const rateToUse = !this.enabled ? this.measuredTxRate : Math.min(this.measuredTxRate, this.fillRate);
|
|
75
77
|
this.lastMaxRate = rateToUse;
|
|
76
78
|
this.calculateTimeWindow();
|
|
@@ -101,7 +103,7 @@ class DefaultRateLimiter {
|
|
|
101
103
|
this.refillTokenBucket();
|
|
102
104
|
this.fillRate = Math.max(newRate, this.minFillRate);
|
|
103
105
|
this.maxCapacity = Math.max(newRate, this.minCapacity);
|
|
104
|
-
this.
|
|
106
|
+
this.availableTokens = Math.min(this.availableTokens, this.maxCapacity);
|
|
105
107
|
}
|
|
106
108
|
updateMeasuredRate() {
|
|
107
109
|
const t = this.getCurrentTimeInSeconds();
|
|
@@ -6,8 +6,8 @@ export class DefaultRateLimiter {
|
|
|
6
6
|
minFillRate;
|
|
7
7
|
scaleConstant;
|
|
8
8
|
smooth;
|
|
9
|
-
currentCapacity = 0;
|
|
10
9
|
enabled = false;
|
|
10
|
+
availableTokens = 0;
|
|
11
11
|
lastMaxRate = 0;
|
|
12
12
|
measuredTxRate = 0;
|
|
13
13
|
requestCount = 0;
|
|
@@ -40,11 +40,11 @@ export class DefaultRateLimiter {
|
|
|
40
40
|
return;
|
|
41
41
|
}
|
|
42
42
|
this.refillTokenBucket();
|
|
43
|
-
if (amount > this.
|
|
44
|
-
const delay = ((amount - this.
|
|
43
|
+
if (amount > this.availableTokens) {
|
|
44
|
+
const delay = ((amount - this.availableTokens) / this.fillRate) * 1000;
|
|
45
45
|
await new Promise((resolve) => DefaultRateLimiter.setTimeoutFn(resolve, delay));
|
|
46
46
|
}
|
|
47
|
-
this.
|
|
47
|
+
this.availableTokens = this.availableTokens - amount;
|
|
48
48
|
}
|
|
49
49
|
refillTokenBucket() {
|
|
50
50
|
const timestamp = this.getCurrentTimeInSeconds();
|
|
@@ -53,13 +53,15 @@ export class DefaultRateLimiter {
|
|
|
53
53
|
return;
|
|
54
54
|
}
|
|
55
55
|
const fillAmount = (timestamp - this.lastTimestamp) * this.fillRate;
|
|
56
|
-
this.
|
|
56
|
+
this.availableTokens = Math.min(this.maxCapacity, this.availableTokens + fillAmount);
|
|
57
57
|
this.lastTimestamp = timestamp;
|
|
58
58
|
}
|
|
59
59
|
updateClientSendingRate(response) {
|
|
60
60
|
let calculatedRate;
|
|
61
61
|
this.updateMeasuredRate();
|
|
62
|
-
|
|
62
|
+
const retryErrorInfo = response;
|
|
63
|
+
const isThrottling = retryErrorInfo?.errorType === "THROTTLING" || isThrottlingError(retryErrorInfo?.error ?? response);
|
|
64
|
+
if (isThrottling) {
|
|
63
65
|
const rateToUse = !this.enabled ? this.measuredTxRate : Math.min(this.measuredTxRate, this.fillRate);
|
|
64
66
|
this.lastMaxRate = rateToUse;
|
|
65
67
|
this.calculateTimeWindow();
|
|
@@ -90,7 +92,7 @@ export class DefaultRateLimiter {
|
|
|
90
92
|
this.refillTokenBucket();
|
|
91
93
|
this.fillRate = Math.max(newRate, this.minFillRate);
|
|
92
94
|
this.maxCapacity = Math.max(newRate, this.minCapacity);
|
|
93
|
-
this.
|
|
95
|
+
this.availableTokens = Math.min(this.availableTokens, this.maxCapacity);
|
|
94
96
|
}
|
|
95
97
|
updateMeasuredRate() {
|
|
96
98
|
const t = this.getCurrentTimeInSeconds();
|
|
@@ -3,10 +3,30 @@ import type { RateLimiter } from "./types";
|
|
|
3
3
|
* @public
|
|
4
4
|
*/
|
|
5
5
|
export interface DefaultRateLimiterOptions {
|
|
6
|
+
/**
|
|
7
|
+
* Coefficient for controlling how aggressively the rate decreases on throttle.
|
|
8
|
+
* @defaultValue 0.7
|
|
9
|
+
*/
|
|
6
10
|
beta?: number;
|
|
11
|
+
/**
|
|
12
|
+
* Minimum token bucket capacity in adaptive-tokens.
|
|
13
|
+
* @defaultValue 1
|
|
14
|
+
*/
|
|
7
15
|
minCapacity?: number;
|
|
16
|
+
/**
|
|
17
|
+
* Minimum fill rate in adaptive-tokens per second.
|
|
18
|
+
* @defaultValue 0.5
|
|
19
|
+
*/
|
|
8
20
|
minFillRate?: number;
|
|
21
|
+
/**
|
|
22
|
+
* Scale constant used in the cubic rate calculation.
|
|
23
|
+
* @defaultValue 0.4
|
|
24
|
+
*/
|
|
9
25
|
scaleConstant?: number;
|
|
26
|
+
/**
|
|
27
|
+
* Smoothing factor for the exponential moving average of the measured send rate.
|
|
28
|
+
* @defaultValue 0.8
|
|
29
|
+
*/
|
|
10
30
|
smooth?: number;
|
|
11
31
|
}
|
|
12
32
|
/**
|
|
@@ -22,16 +42,51 @@ export declare class DefaultRateLimiter implements RateLimiter {
|
|
|
22
42
|
private minFillRate;
|
|
23
43
|
private scaleConstant;
|
|
24
44
|
private smooth;
|
|
25
|
-
|
|
45
|
+
/**
|
|
46
|
+
* Whether adaptive retry rate limiting is active.
|
|
47
|
+
* Remains `false` until a throttling error is detected.
|
|
48
|
+
*/
|
|
26
49
|
private enabled;
|
|
50
|
+
/**
|
|
51
|
+
* Current number of available adaptive-tokens. When exhausted, requests wait based on fill rate.
|
|
52
|
+
*/
|
|
53
|
+
private availableTokens;
|
|
54
|
+
/**
|
|
55
|
+
* The most recent maximum fill rate in adaptive-tokens per second, recorded at the last throttle event.
|
|
56
|
+
*/
|
|
27
57
|
private lastMaxRate;
|
|
58
|
+
/**
|
|
59
|
+
* Smoothed measured send rate in requests per second.
|
|
60
|
+
*/
|
|
28
61
|
private measuredTxRate;
|
|
62
|
+
/**
|
|
63
|
+
* Number of requests observed in the current measurement time bucket.
|
|
64
|
+
*/
|
|
29
65
|
private requestCount;
|
|
66
|
+
/**
|
|
67
|
+
* Current token bucket fill rate in adaptive-tokens per second. Defaults to {@link minFillRate}.
|
|
68
|
+
*/
|
|
30
69
|
private fillRate;
|
|
70
|
+
/**
|
|
71
|
+
* Timestamp in seconds of the most recent throttle event.
|
|
72
|
+
*/
|
|
31
73
|
private lastThrottleTime;
|
|
74
|
+
/**
|
|
75
|
+
* Timestamp in seconds of the last token bucket refill.
|
|
76
|
+
*/
|
|
32
77
|
private lastTimestamp;
|
|
78
|
+
/**
|
|
79
|
+
* The time bucket (in seconds) used for measuring the send rate.
|
|
80
|
+
*/
|
|
33
81
|
private lastTxRateBucket;
|
|
82
|
+
/**
|
|
83
|
+
* Maximum token bucket capacity in adaptive-tokens. Defaults to {@link minCapacity}.
|
|
84
|
+
* Updated in {@link updateTokenBucketRate} to match the new fill rate, floored by {@link minCapacity}.
|
|
85
|
+
*/
|
|
34
86
|
private maxCapacity;
|
|
87
|
+
/**
|
|
88
|
+
* Calculated time window in seconds used in the cubic rate recovery function.
|
|
89
|
+
*/
|
|
35
90
|
private timeWindow;
|
|
36
91
|
constructor(options?: DefaultRateLimiterOptions);
|
|
37
92
|
private getCurrentTimeInSeconds;
|
|
@@ -40,9 +95,24 @@ export declare class DefaultRateLimiter implements RateLimiter {
|
|
|
40
95
|
private refillTokenBucket;
|
|
41
96
|
updateClientSendingRate(response: any): void;
|
|
42
97
|
private calculateTimeWindow;
|
|
98
|
+
/**
|
|
99
|
+
* Returns a new fill rate in adaptive-tokens per second by reducing
|
|
100
|
+
* the given rate by a factor of {@link beta}.
|
|
101
|
+
*/
|
|
43
102
|
private cubicThrottle;
|
|
103
|
+
/**
|
|
104
|
+
* Returns a new fill rate in adaptive-tokens per second using a CUBIC
|
|
105
|
+
* congestion control curve. The rate recovers toward {@link lastMaxRate},
|
|
106
|
+
* then continues growing beyond it. The caller caps the result at
|
|
107
|
+
* `2 * measuredTxRate`.
|
|
108
|
+
*/
|
|
44
109
|
private cubicSuccess;
|
|
45
110
|
private enableTokenBucket;
|
|
111
|
+
/**
|
|
112
|
+
* Set a new fill rate for adaptive-tokens.
|
|
113
|
+
* The max capacity is updated to allow for one second of time to approximately
|
|
114
|
+
* refill the adaptive-token capacity.
|
|
115
|
+
*/
|
|
46
116
|
private updateTokenBucketRate;
|
|
47
117
|
private updateMeasuredRate;
|
|
48
118
|
private getPrecise;
|