New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

@digitalbazaar/http-client

Package Overview
Dependencies
Maintainers
6
Versions
15
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@digitalbazaar/http-client - npm Package Compare versions

Comparing version 3.0.0 to 3.0.1

10

lib/httpClient.js

@@ -12,5 +12,5 @@ /*!

// methods to proxy from ky
const PROXY_METHODS = [
const PROXY_METHODS = new Set([
'get', 'post', 'put', 'push', 'patch', 'head', 'delete'
];
]);

@@ -49,2 +49,6 @@ /**

const ky = await kyPromise;
const method = ((args[1] && args[1].method) || 'get').toLowerCase();
if(PROXY_METHODS.has(method)) {
return httpClient[method].apply(ky[method], args);
}
return ky.apply(ky, args);

@@ -56,3 +60,3 @@ }

const ky = await kyPromise;
return _handleResponse(ky, ky, args);
return _handleResponse(ky[method], ky, args);
};

@@ -59,0 +63,0 @@ }

{
"name": "@digitalbazaar/http-client",
"version": "3.0.0",
"version": "3.0.1",
"description": "An opinionated, isomorphic HTTP client.",

@@ -5,0 +5,0 @@ "license": "BSD-3-Clause",

Sorry, the diff of this file is not supported yet

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