@smithy/core
Advanced tools
@@ -253,3 +253,3 @@ 'use strict'; | ||
| class DefaultRateLimiter { | ||
| static setTimeoutFn = setTimeout; | ||
| static setTimeoutFn = (fn, delay) => setTimeout(fn, delay); | ||
| beta; | ||
@@ -694,5 +694,5 @@ minCapacity; | ||
| if (!Number.isNaN(retryAfterSeconds)) | ||
| return retryAfterSeconds * 1000; | ||
| return Math.min(retryAfterSeconds * 1000, 20_000); | ||
| const retryAfterDate = new Date(retryAfter); | ||
| return retryAfterDate.getTime() - Date.now(); | ||
| return Math.min(retryAfterDate.getTime() - Date.now(), 20_000); | ||
| }; | ||
@@ -699,0 +699,0 @@ |
@@ -255,3 +255,3 @@ 'use strict'; | ||
| class DefaultRateLimiter { | ||
| static setTimeoutFn = setTimeout; | ||
| static setTimeoutFn = (fn, delay) => setTimeout(fn, delay); | ||
| beta; | ||
@@ -696,5 +696,5 @@ minCapacity; | ||
| if (!Number.isNaN(retryAfterSeconds)) | ||
| return retryAfterSeconds * 1000; | ||
| return Math.min(retryAfterSeconds * 1000, 20_000); | ||
| const retryAfterDate = new Date(retryAfter); | ||
| return retryAfterDate.getTime() - Date.now(); | ||
| return Math.min(retryAfterDate.getTime() - Date.now(), 20_000); | ||
| }; | ||
@@ -701,0 +701,0 @@ |
@@ -92,5 +92,5 @@ import { HttpRequest, HttpResponse } from "@smithy/core/protocols"; | ||
| if (!Number.isNaN(retryAfterSeconds)) | ||
| return retryAfterSeconds * 1000; | ||
| return Math.min(retryAfterSeconds * 1000, 20_000); | ||
| const retryAfterDate = new Date(retryAfter); | ||
| return retryAfterDate.getTime() - Date.now(); | ||
| return Math.min(retryAfterDate.getTime() - Date.now(), 20_000); | ||
| }; |
| import { isThrottlingError } from "../service-error-classification/service-error-classification"; | ||
| export class DefaultRateLimiter { | ||
| static setTimeoutFn = setTimeout; | ||
| static setTimeoutFn = (fn, delay) => setTimeout(fn, delay); | ||
| beta; | ||
@@ -5,0 +5,0 @@ minCapacity; |
+17
-17
| { | ||
| "name": "@smithy/core", | ||
| "version": "3.24.6", | ||
| "version": "3.24.7", | ||
| "scripts": { | ||
| "build": "concurrently 'yarn:build:types' 'yarn:build:es:cjs'", | ||
| "build:es:cjs": "yarn g:tsc -p tsconfig.es.json && node ../../scripts/inline core", | ||
| "build": "yarn lint && concurrently 'yarn:build:types' 'yarn:build:es:cjs'", | ||
| "build:es:cjs": "yarn g:tsc -p tsconfig.es.json && node ../../scripts/inline", | ||
| "build:types": "yarn g:tsc -p tsconfig.types.json", | ||
| "build:types:downlevel": "premove dist-types/ts3.4 && downlevel-dts dist-types dist-types/ts3.4", | ||
| "clean": "premove dist-cjs dist-es dist-types tsconfig.cjs.tsbuildinfo tsconfig.es.tsbuildinfo tsconfig.types.tsbuildinfo", | ||
| "clean": "premove dist-cjs dist-es dist-types *.tsbuildinfo", | ||
| "extract:docs": "api-extractor run --local", | ||
| "format": "prettier --config ../../prettier.config.js --ignore-path ../../.prettierignore --write \"**/*.{ts,md,json}\"", | ||
| "lint": "npx eslint -c ../../.eslintrc.js \"src/**/*.ts\" --fix && node ./scripts/lint", | ||
| "lint": "node ../../scripts/validation/submodules-linter.js", | ||
| "stage-release": "premove .release && yarn pack && mkdir ./.release && tar zxvf ./package.tgz --directory ./.release && rm ./package.tgz", | ||
| "test": "yarn g:vitest run", | ||
| "test:cbor:perf": "node ./scripts/cbor-perf.mjs", | ||
| "test:watch": "yarn g:vitest watch", | ||
| "test:integration": "yarn g:vitest run -c vitest.config.integ.mts", | ||
| "test:integration:watch": "yarn g:vitest watch -c vitest.config.integ.mts", | ||
| "test:watch": "yarn g:vitest watch" | ||
| "test:cbor:perf": "node ./scripts/cbor-perf.mjs" | ||
| }, | ||
@@ -172,5 +172,14 @@ "main": "./dist-cjs/index.js", | ||
| "@aws-crypto/crc32": "5.2.0", | ||
| "@smithy/types": "^4.14.3", | ||
| "@smithy/types": "^4.14.4", | ||
| "tslib": "^2.6.2" | ||
| }, | ||
| "devDependencies": { | ||
| "@types/node": "^18.11.9", | ||
| "concurrently": "7.0.0", | ||
| "downlevel-dts": "0.10.1", | ||
| "hash-test-vectors": "^1.3.2", | ||
| "json-bigint": "^1.0.0", | ||
| "premove": "4.0.0", | ||
| "typedoc": "0.23.23" | ||
| }, | ||
| "engines": { | ||
@@ -217,11 +226,2 @@ "node": ">=18.0.0" | ||
| }, | ||
| "devDependencies": { | ||
| "@types/node": "^18.11.9", | ||
| "concurrently": "7.0.0", | ||
| "downlevel-dts": "0.10.1", | ||
| "hash-test-vectors": "^1.3.2", | ||
| "json-bigint": "^1.0.0", | ||
| "premove": "4.0.0", | ||
| "typedoc": "0.23.23" | ||
| }, | ||
| "typedoc": { | ||
@@ -228,0 +228,0 @@ "entryPoint": "src/index.ts" |
AI-detected potential code anomaly
Supply chain riskAI has identified unusual behaviors that may pose a security risk.
Found 1 instance in 1 package
URL strings
Supply chain riskPackage contains fragments of external URLs or IP addresses, which the package may be accessing at runtime.
Found 1 instance in 1 package
AI-detected potential code anomaly
Supply chain riskAI has identified unusual behaviors that may pose a security risk.
Found 1 instance in 1 package
URL strings
Supply chain riskPackage contains fragments of external URLs or IP addresses, which the package may be accessing at runtime.
Found 1 instance in 1 package
1317401
0.01%Updated