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

supra-http

Package Overview
Dependencies
Maintainers
1
Versions
28
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

supra-http - npm Package Compare versions

Comparing version 1.7.0 to 1.8.0

jest.config.js

9

dist/client.js

@@ -28,4 +28,9 @@ "use strict";

if (options && options.json && res.body && res.response.headers["content-type"] && res.response.headers["content-type"].startsWith(enums_1.CONTENT_TYPE.ApplicationJson)) {
res.json = JSON.parse(res.body);
resolve(res);
try {
res.json = JSON.parse(res.body);
resolve(res);
}
catch (error) {
reject(error);
}
}

@@ -32,0 +37,0 @@ else {

@@ -5,3 +5,3 @@ /// <reference types="node" />

interface HttpRequestOptions {
method?: 'get' | 'post' | 'delete' | 'put' | 'head';
method?: 'get' | 'post' | 'delete' | 'put' | 'head' | 'patch';
body?: string | object;

@@ -8,0 +8,0 @@ form?: string | object;

{
"name": "supra-http",
"version": "1.7.0",
"version": "1.8.0",
"description": "Circuit breaking http client for NodeJs. And it is fast...",

@@ -28,4 +28,3 @@ "main": "./dist/index.js",

"fast-url-parser": "^1.1.3",
"opossum": "^4.1.0",
"opossum-hystrix": "0.0.1"
"opossum": "^4.1.0"
},

@@ -32,0 +31,0 @@ "devDependencies": {

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