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

@podium/client

Package Overview
Dependencies
Maintainers
6
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.0.14 to 5.0.15

7

CHANGELOG.md

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

## [5.0.15](https://github.com/podium-lib/client/compare/v5.0.14...v5.0.15) (2024-05-07)
### Bug Fixes
* Requests hang on http errors ([a9c82b6](https://github.com/podium-lib/client/commit/a9c82b6a931d92540c69c2cbf911184710dc54ee))
## [5.0.14](https://github.com/podium-lib/client/compare/v5.0.13...v5.0.14) (2024-05-02)

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

19

lib/http.js

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

import { Client } from 'undici';
import { request } from 'undici';
export default class HTTP {
// #client;
// constructor() {
// // this.#client = { request };
// }
async request(url, options) {
const u = new URL(url);
const client = new Client(u.origin, {
...options,
connect: { rejectUnauthorized: options.rejectUnauthorized },
});
const { statusCode, headers, body } = await client.request({
...options,
path: u.pathname,
});
const { statusCode, headers, body } = await request(new URL(url), options);
return { statusCode, headers, body };
}
}
{
"name": "@podium/client",
"version": "5.0.14",
"version": "5.0.15",
"type": "module",

@@ -38,3 +38,3 @@ "license": "MIT",

"dependencies": {
"@hapi/boom": "^10.0.0",
"@hapi/boom": "10.0.1",
"@metrics/client": "2.5.2",

@@ -47,3 +47,3 @@ "@podium/schemas": "5.0.1",

"ttl-mem-cache": "4.1.0",
"undici": "^6.0.0"
"undici": "6.13.0"
},

@@ -55,5 +55,5 @@ "devDependencies": {

"@babel/eslint-parser": "7.24.5",
"@semantic-release/github": "9.2.6",
"@semantic-release/npm": "11.0.3",
"@semantic-release/release-notes-generator": "12.1.0",
"@semantic-release/github": "10.0.3",
"@semantic-release/npm": "12.0.0",
"@semantic-release/release-notes-generator": "13.0.0",
"@sinonjs/fake-timers": "11.2.2",

@@ -60,0 +60,0 @@ "benchmark": "2.1.4",

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