express-json-rpc-router
Advanced tools
Comparing version 1.3.0 to 1.3.1
{ | ||
"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. |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
12984