Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

dat-middleware

Package Overview
Dependencies
Maintainers
1
Versions
40
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

dat-middleware - npm Package Compare versions

Comparing version 1.5.6 to 1.5.7

2

lib/res.js

@@ -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):

4

package.json
{
"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 @@ });

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