@socketsecurity/sdk
Advanced tools
Comparing version
@@ -8,2 +8,3 @@ import events from 'node:events'; | ||
import abortSignal from '@socketsecurity/registry/lib/constants/abort-signal'; | ||
import { pRetry } from '@socketsecurity/registry/lib/promises'; | ||
// @ts-ignore: Avoid TS import attributes error. | ||
@@ -290,3 +291,5 @@ import rootPkgJson from '../package.json' with { type: 'json' }; | ||
try { | ||
res = await this.#createBatchPurlRequest(queryParams, componentsObj); | ||
res = await pRetry(() => this.#createBatchPurlRequest(queryParams, componentsObj), { | ||
retries: 4 | ||
}); | ||
} | ||
@@ -293,0 +296,0 @@ catch (e) { |
{ | ||
"name": "@socketsecurity/sdk", | ||
"version": "1.4.36", | ||
"version": "1.4.37", | ||
"license": "MIT", | ||
@@ -86,16 +86,16 @@ "description": "SDK for the Socket API client", | ||
"dependencies": { | ||
"@socketsecurity/registry": "1.0.181" | ||
"@socketsecurity/registry": "1.0.194" | ||
}, | ||
"devDependencies": { | ||
"@biomejs/biome": "1.9.4", | ||
"@dotenvx/dotenvx": "1.44.0", | ||
"@dotenvx/dotenvx": "1.44.1", | ||
"@eslint/compat": "1.2.9", | ||
"@eslint/js": "9.27.0", | ||
"@types/node": "22.15.18", | ||
"@types/node": "22.15.21", | ||
"@typescript-eslint/parser": "8.32.1", | ||
"@vitest/coverage-v8": "3.1.3", | ||
"@vitest/coverage-v8": "3.1.4", | ||
"del-cli": "6.0.0", | ||
"eslint": "9.27.0", | ||
"eslint-import-resolver-typescript": "4.3.4", | ||
"eslint-plugin-import-x": "4.11.1", | ||
"eslint-import-resolver-typescript": "4.3.5", | ||
"eslint-plugin-import-x": "4.12.2", | ||
"eslint-plugin-jsdoc": "50.6.17", | ||
@@ -107,6 +107,6 @@ "eslint-plugin-n": "17.18.0", | ||
"husky": "9.1.7", | ||
"knip": "5.56.0", | ||
"knip": "5.57.1", | ||
"lint-staged": "16.0.0", | ||
"nock": "14.0.4", | ||
"npm-run-all2": "8.0.2", | ||
"npm-run-all2": "8.0.3", | ||
"openapi-typescript": "6.7.6", | ||
@@ -117,3 +117,3 @@ "oxlint": "0.16.11", | ||
"typescript-eslint": "8.32.1", | ||
"vitest": "3.1.3" | ||
"vitest": "3.1.4" | ||
}, | ||
@@ -120,0 +120,0 @@ "overrides": { |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
529442
0.09%12803
0.05%+ Added
- Removed