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

help-esb

Package Overview
Dependencies
Maintainers
1
Versions
19
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

help-esb - npm Package Compare versions

Comparing version 0.1.2 to 0.2.0

15

help-esb.js

@@ -172,7 +172,10 @@ (function(root, factory) {

return this._send(
{meta: meta, data: _.extend({result: 'SUCCESS'}, data)}
{meta: _.extend({result: 'SUCCESS'}, meta), data: data}
);
}.bind(this)).catch(function(error) {
return this._send(
{meta: meta, data: {result: 'FAILURE', reason: error}}
{
meta: _.extend({result: 'FAILURE', reason: error}, meta),
data: data
}
);

@@ -215,8 +218,8 @@ }.bind(this));

// successful.
HelpEsb.Client.prototype._checkRpcResult = function(response) {
if (response.result !== 'SUCCESS') {
return Promise.reject(response);
HelpEsb.Client.prototype._checkRpcResult = function(data, meta) {
if (meta.result !== 'SUCCESS') {
return Promise.reject(meta.reason);
}
return Promise.resolve(response);
return Promise.resolve(data);
};

@@ -223,0 +226,0 @@

2

package.json
{
"name": "help-esb",
"version": "0.1.2",
"version": "0.2.0",
"description": "A client for the Help.com team's ESB.",

@@ -5,0 +5,0 @@ "main": "help-esb.js",

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