express-json-rpc-router
Advanced tools
Comparing version 0.3.1 to 0.3.2
@@ -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. |
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