Socket
Socket
Sign inDemoInstall

http-call

Package Overview
Dependencies
Maintainers
4
Versions
62
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

http-call - npm Package Compare versions

Comparing version 5.2.0 to 5.2.1

3

lib/http.js

@@ -295,3 +295,4 @@ "use strict";

this.body = await concat(this.response);
let json = this.response.headers['content-type'] && deps_1.deps.contentType.parse(this.response).type.startsWith('application/json');
let type = this.response.headers['content-type'] ? deps_1.deps.contentType.parse(this.response).type : '';
let json = type.startsWith('application/json') || type.startsWith('application/vnd.api+json');
if (json)

@@ -298,0 +299,0 @@ this.body = JSON.parse(this.body);

{
"name": "http-call",
"description": "make http requests",
"version": "5.2.0",
"version": "5.2.1",
"author": "Jeff Dickey @jdxcode",

@@ -6,0 +6,0 @@ "bugs": "https://github.com/heroku/http-call/issues",

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