From 16aa847293c88dea7a2e280941ec8297da412e27 Mon Sep 17 00:00:00 2001 From: jdalton Date: Thu, 26 Mar 2026 12:32:56 -0400 Subject: [PATCH 1/2] chore: bump @socketsecurity/lib to 5.11.3 --- package.json | 2 +- pnpm-lock.yaml | 10 +++++----- 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/package.json b/package.json index 729178e0..1a139c6d 100644 --- a/package.json +++ b/package.json @@ -65,7 +65,7 @@ }, "dependencies": { "@socketregistry/packageurl-js": "1.3.5", - "@socketsecurity/lib": "5.11.2", + "@socketsecurity/lib": "5.11.3", "form-data": "4.0.5" }, "devDependencies": { diff --git a/pnpm-lock.yaml b/pnpm-lock.yaml index 91c0223a..f9dc5870 100644 --- a/pnpm-lock.yaml +++ b/pnpm-lock.yaml @@ -15,8 +15,8 @@ importers: specifier: 1.3.5 version: 1.3.5 '@socketsecurity/lib': - specifier: 5.11.2 - version: 5.11.2(typescript@5.9.3) + specifier: 5.11.3 + version: 5.11.3(typescript@5.9.3) form-data: specifier: 4.0.5 version: 4.0.5 @@ -919,8 +919,8 @@ packages: resolution: {integrity: sha512-Fl4GNUJ/z3IBJBGj4IsJfuRGUBCRMgX0df0mb5x5buaCPDKC+NhMhAFuxpc3viLSHV12CO2rGaNCf4fBYWI0FA==} engines: {node: '>=18', pnpm: '>=10.16.0'} - '@socketsecurity/lib@5.11.2': - resolution: {integrity: sha512-TS6oTeakMCbOrz73mSin/0lOhAyAr6+tlvzAvaASnMhjhrcQ9tPP816be1ZgtDRYolvQHMT+WPSmajlTHTQHjw==} + '@socketsecurity/lib@5.11.3': + resolution: {integrity: sha512-Jp6TSn8ATHrTtw/kTFXmVr+cZwZVuX9wqym/FQ3n8GSAgByUPJJdzWMLzHVFK1HaQRK4kVdB5Db3IKXdFkpQ2Q==} engines: {node: '>=22', pnpm: '>=10.25.0'} peerDependencies: typescript: '>=5.0.0' @@ -2458,7 +2458,7 @@ snapshots: '@socketregistry/packageurl-js@1.3.5': {} - '@socketsecurity/lib@5.11.2(typescript@5.9.3)': + '@socketsecurity/lib@5.11.3(typescript@5.9.3)': optionalDependencies: typescript: 5.9.3 From 8acc8ec2e8be92769291e0ac7723b660569e9cd7 Mon Sep 17 00:00:00 2001 From: jdalton Date: Thu, 26 Mar 2026 13:16:49 -0400 Subject: [PATCH 2/2] fix(test): use zero retries for error handling test The upload error test was flaky because pRetry now tracks the latest error (not the first). With retries enabled, nock's single interceptor gets consumed on the first attempt, causing retry attempts to throw Nock: No match instead of ResponseError. --- test/unit/socket-sdk-upload.test.mts | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/test/unit/socket-sdk-upload.test.mts b/test/unit/socket-sdk-upload.test.mts index 5d89012e..eef4a7f7 100644 --- a/test/unit/socket-sdk-upload.test.mts +++ b/test/unit/socket-sdk-upload.test.mts @@ -379,6 +379,11 @@ describe('SocketSdk - Upload Manifest', () => { 'should handle errors in uploadManifestFiles', { retry: 2 }, async () => { + const noRetrySdk = new SocketSdk('test-token', { + ...FAST_TEST_CONFIG, + retries: 0, + }) + nock('https://api.socket.dev') .post('/v0/orgs/test-org/upload-manifest-files') .reply(400, { @@ -387,7 +392,7 @@ describe('SocketSdk - Upload Manifest', () => { }, }) - const result = await sdk.uploadManifestFiles('test-org', [ + const result = await noRetrySdk.uploadManifestFiles('test-org', [ packageJsonPath, ])