Socket
Socket
Sign inDemoInstall

rpcapi

Package Overview
Dependencies
181
Maintainers
1
Versions
30
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

Comparing version 2.6.1 to 2.6.2

2

package.json
{
"name": "rpcapi",
"version": "2.6.1",
"version": "2.6.2",
"description": "Provides a struture for hosting RPC style APIs, supports both http and websocket access out of the box",

@@ -5,0 +5,0 @@ "repository": {

@@ -83,2 +83,3 @@ "use strict";

}).catch(function (e) {
_this.api.handleError(e);
if (e instanceof customErrors_1.NotFoundError) {

@@ -115,5 +116,2 @@ debug("Request: " + endpointName + "/" + actionName + " %o: NotFound - " + e.message, req.body);

.end(_this.formatResult('Internal server error'));
if (_this.outputActionErrors) {
console.error(e);
}
debug("Request: " + endpointName + "/" + actionName + " %o: Unknown error - " + e.message, req.body);

@@ -135,2 +133,3 @@ });

var endpoint, actionParams, typedParams, paramName, actionParamType, strVal, epValue;
var _this = this;
return __generator(this, function (_a) {

@@ -162,3 +161,5 @@ switch (_a.label) {

epValue = _a.sent();
endpoint.callDisconnect().catch(console.error); //Run disconnect in background, can return before this completes
endpoint.callDisconnect().catch(function (e) {
_this.api.handleError(e);
}); //Run disconnect in background, can return before this completes
return [2 /*return*/, epValue];

@@ -165,0 +166,0 @@ }

@@ -111,2 +111,3 @@ "use strict";

.catch(function (e) {
_this.api.handleError(e);
if (e instanceof customErrors_1.NotFoundError) {

@@ -132,3 +133,2 @@ debug("epcid: '" + endpointConnectionId + "' called " + actionName + "(%o): failed: NotFound - " + e.message);

}
_this.api.handleError(e);
debug("epcid: '" + endpointConnectionId + "' called " + actionName + "(%o): failed: Unknown error - " + e.message);

@@ -135,0 +135,0 @@ cb('Internal server error', null);

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc