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 1.3.0 to 1.3.1

2

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

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

@@ -150,6 +150,6 @@ # JSON-RPC node.js implementation

##### methods `type: Object<function(params)>`
##### methods `type: Object<function(params, raw)>`
You can pass the object of your methods that will be called when a match is made via JSON-RPC `method` field.
##### beforeMethods `type: Object<function(params)|Array<function(params)>>`
##### beforeMethods `type: Object<function(params, _, raw)|Array<function(params, params, _, raw)>>`
You can provide function or array of functions, which will be called before main method with same name are called.

@@ -160,3 +160,3 @@ This is the best place for validation.

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

@@ -163,0 +163,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