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

hc-service-client

Package Overview
Dependencies
Maintainers
5
Versions
21
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

hc-service-client - npm Package Compare versions

Comparing version 1.1.8 to 1.2.1

46

lib/service_client.js

@@ -135,2 +135,3 @@ 'use strict';

}
let headers = options.headers;

@@ -232,30 +233,31 @@ let signatureHeader = this.signatureHeader;

}
return urllib.request(href, options, cb);
}).catch(() => {});
});
if (callback) {
return undefined;
} else {
return result.then(d => {
const body = d.data;
const res = d.res;
}
const processedData = this.responseWrapper(body);
if (processedData instanceof Error) {
this.log.debug('promise request got error: ', processedData);
throw processedData;
}
return result.then(d => {
const body = d.data;
const res = d.res;
if (res instanceof http.IncomingMessage) {
this.log.debug('promise request return result with http.IncomingMessage.');
return {
data: processedData,
res
};
} else {
this.log.debug('promise request return result without http.IncomingMessage.');
return processedData;
}
});
}
const processedData = this.responseWrapper(body);
if (processedData instanceof Error) {
this.log.debug('promise request got error: ', processedData);
throw processedData;
}
if (res instanceof http.IncomingMessage) {
this.log.debug('promise request return result with http.IncomingMessage.');
return {
data: processedData,
res
};
} else {
this.log.debug('promise request return result without http.IncomingMessage.');
return processedData;
}
});
}

@@ -262,0 +264,0 @@

{
"name": "hc-service-client",
"version": "1.1.8",
"version": "1.2.1",
"description": "Service Client Extension for Honeybee",

@@ -22,3 +22,3 @@ "main": "index.js",

"qs": "6.4.0",
"urllib": "2.34.1",
"urllib": "2.38.0",
"uuid": "^8.3.0"

@@ -25,0 +25,0 @@ },

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