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

nodecommons-rest

Package Overview
Dependencies
Maintainers
1
Versions
68
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

nodecommons-rest - npm Package Compare versions

Comparing version 2.0.0 to 2.1.0

18

dist/services/commons-rest-client.service.js

@@ -84,3 +84,3 @@ "use strict";

if (res.statusCode >= 400) {
reject(buffer);
reject({ code: res.statusCode, message: buffer.toString() });
return;

@@ -107,13 +107,7 @@ }

try {
let json;
try {
json = JSON.parse(concat);
}
catch (e) {
json = undefined;
}
reject(json);
const json = JSON.parse(concat);
reject({ code: res.statusCode, message: json });
}
catch (e) {
reject(concat);
reject({ code: res.statusCode, message: concat });
}

@@ -183,6 +177,6 @@ return;

const json = JSON.parse(data);
reject(json);
reject({ code: res.statusCode, message: json });
}
catch (e) {
reject(data);
reject({ code: res.statusCode, message: data });
}

@@ -189,0 +183,0 @@ return;

{
"name": "nodecommons-rest",
"version": "2.0.0",
"version": "2.1.0",
"description": "",

@@ -17,3 +17,3 @@ "scripts": {

"nodecommons-url": "^1.1.2",
"tscommons-core": "^1.0.25"
"tscommons-core": "^1.1.0"
},

@@ -20,0 +20,0 @@ "files": [

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