dat-middleware
Advanced tools
Comparing version 1.5.6 to 1.5.7
@@ -19,3 +19,2 @@ var isString = require('101/is-string'); | ||
kpArgs = [kpArgs[0]].concat(replaceKeypaths(req, kpArgs.slice(1), true)); | ||
console.log(kpArgs); | ||
} | ||
@@ -33,3 +32,2 @@ kpArgs = [req].concat(kpArgs); | ||
return function (req, res, next) { | ||
console.log(keypathArgs); | ||
var args = keypathArgs[2]? // if exact=true, dont replace keypaths | ||
@@ -36,0 +34,0 @@ keypathArgs.slice(0,2): |
{ | ||
"name": "dat-middleware", | ||
"version": "1.5.6", | ||
"version": "1.5.7", | ||
"description": "common request, response, body, query, and param validation, transformation, and flow control middleware", | ||
@@ -38,3 +38,3 @@ "main": "index.js", | ||
"fn-object": "^0.2.2", | ||
"keypather": "^1.6.0", | ||
"keypather": "^1.7.0", | ||
"middleware-flow": "^0.2.0", | ||
@@ -41,0 +41,0 @@ "map-utils": "~0.4.0" |
@@ -65,5 +65,9 @@ var createAppWithMiddleware = require('./fixtures/createAppWithMiddleware'); | ||
mw.query().set('func', function (a) { | ||
return a; | ||
return { | ||
toJSON: function () { | ||
return a; | ||
} | ||
}; | ||
}), | ||
mw.res.json(201, ['query.func(%)', 'body']) | ||
mw.res.json(201, ['query.func(%).toJSON()', 'body']) | ||
); | ||
@@ -70,0 +74,0 @@ }); |
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
62041
1688
Updatedkeypather@^1.7.0