Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@podium/client

Package Overview
Dependencies
Maintainers
0
Versions
200
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@podium/client - npm Package Compare versions

Comparing version 5.1.10-next.1 to 5.1.10-next.2

7

CHANGELOG.md

@@ -0,1 +1,8 @@

## [5.1.10-next.2](https://github.com/podium-lib/client/compare/v5.1.10-next.1...v5.1.10-next.2) (2024-08-26)
### Bug Fixes
* use AbortController instead of AbortSignal to avoid unhandled exception ([#412](https://github.com/podium-lib/client/issues/412)) ([87f5ffe](https://github.com/podium-lib/client/commit/87f5ffe553aa49189658a9be0e19d1323878a55a))
## [5.1.10-next.1](https://github.com/podium-lib/client/compare/v5.1.9...v5.1.10-next.1) (2024-08-22)

@@ -2,0 +9,0 @@

26

lib/http.js

@@ -25,11 +25,21 @@ import { request as undiciRequest } from 'undici';

async request(url, options) {
const { statusCode, headers, body } = await this.requestFn(
new URL(url),
{
...options,
signal: AbortSignal.timeout(options.timeout || 1000),
},
);
return { statusCode, headers, body };
const abortController = new AbortController();
const timeoutId = setTimeout(() => {
abortController.abort();
}, options.timeout || 1000);
try {
const { statusCode, headers, body } = await this.requestFn(
new URL(url),
{
...options,
signal: abortController.signal,
},
);
return { statusCode, headers, body };
} finally {
clearTimeout(timeoutId);
}
}
}
{
"name": "@podium/client",
"version": "5.1.10-next.1",
"version": "5.1.10-next.2",
"type": "module",

@@ -5,0 +5,0 @@ "license": "MIT",

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc