Socket
Socket
Sign inDemoInstall

express-json-rpc-router

Package Overview
Dependencies
Maintainers
1
Versions
12
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

express-json-rpc-router - npm Package Compare versions

Comparing version 0.3.1 to 0.3.2

4

index.js

@@ -78,6 +78,6 @@ /*!

*/
module.exports = function(userConfig) {
module.exports = userConfig => {
validateConfig(userConfig)
setConfig(config, userConfig)
return async function(req, res, next) {
return async (req, res, next) => {
const rpcData = req.body

@@ -84,0 +84,0 @@ if (Array.isArray(rpcData)) {

{
"name": "express-json-rpc-router",
"description": "Json-rpc middleware router for express",
"version": "0.3.1",
"version": "0.3.2",
"author": "Valerii Kuzivanov <valerii.kuzivanov@gmail.com>",

@@ -6,0 +6,0 @@ "license": "MIT",

@@ -144,3 +144,3 @@ # JSON-RPC node.js implementation

##### afterMethods `type: Object<function(params)|Array<function(params, execResult)>>`
##### afterMethods `type: Object<function(params, execResult)|Array<function(params, execResult)>>`
You can provide function or array of functions, which will be called after main method with same name are called.

@@ -147,0 +147,0 @@ This is the best place to write logs.

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