Socket
Socket
Sign inDemoInstall

rpcapi

Package Overview
Dependencies
Maintainers
1
Versions
30
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

rpcapi - npm Package Compare versions

Comparing version 2.0.1 to 2.1.0

5

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

@@ -25,4 +25,2 @@ "repository": {

"devDependencies": {
"@types/socket.io-client": "^1.4.32",
"@types/ws": "^3.2.1",
"ava": "^0.24.0",

@@ -41,2 +39,3 @@ "node-fetch": "^1.7.3",

"@types/socket.io": "^1.4.31",
"@types/socket.io-client": "^1.4.32",
"body-parser": "^1.18.2",

@@ -43,0 +42,0 @@ "cors": "^2.8.4",

8

src/accessMethods/WebAPIAccessMethod/index.js

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

prefix: '/api',
outputActionErrors: false
outputActionErrors: true
};

@@ -51,5 +51,5 @@ var WebAPIAccessMethod = /** @class */ (function () {

if (config === void 0) { config = defaultConfig; }
this.outputActionErrors = true;
this.prefix = config.prefix || defaultConfig.prefix;
this.outputActionErrors = config.outputActionErrors || defaultConfig.outputActionErrors;
config = Object.assign({}, defaultConfig, config);
this.prefix = config.prefix;
this.outputActionErrors = config.outputActionErrors;
this.api = api;

@@ -56,0 +56,0 @@ }

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
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc