express-request-to-json
Advanced tools
Comparing version 1.1.0 to 1.1.1
@@ -17,4 +17,4 @@ const debug = require('debug')('express-request-to-json'); | ||
module.exports = function (req) { | ||
let keys = Object.keys(req); | ||
let ret = {}; | ||
const keys = Object.keys(req); | ||
const ret = {}; | ||
keys.forEach((key) => { | ||
@@ -21,0 +21,0 @@ if (constructors.some((c) => req[key] instanceof c)) { |
{ | ||
"name": "express-request-to-json", | ||
"description": "Filter out noise from express req before logging.", | ||
"version": "1.1.0", | ||
"version": "1.1.1", | ||
"author": "Tim Allen <tim@noblesamurai.com>", | ||
@@ -9,3 +9,3 @@ "license": "BSD", | ||
"scripts": { | ||
"coverage": "nyc -a -c -r html -r text npm test", | ||
"coverage": "c8 npm test", | ||
"pretest": "semistandard --env mocha", | ||
@@ -24,6 +24,2 @@ "test": "mocha --recursive test", | ||
}, | ||
"engines": { | ||
"node": ">= 6.x", | ||
"npm": "3.x" | ||
}, | ||
"peerDependencies": { | ||
@@ -33,10 +29,10 @@ "express": "*" | ||
"devDependencies": { | ||
"chai": "^3.5.0", | ||
"dirty-chai": "^1.2.2", | ||
"c8": "^7.7.1", | ||
"chai": "^4.3.4", | ||
"dirty-chai": "^2.0.1", | ||
"express": "^4.15.3", | ||
"jsdoc-to-markdown": "~3.0.0", | ||
"mocha": "~3.3.0", | ||
"nyc": "^10.1.2", | ||
"jsdoc-to-markdown": "^7.0.1", | ||
"mocha": "^8.3.2", | ||
"semistandard": "*", | ||
"supertest": "^3.0.0" | ||
"supertest": "^6.1.3" | ||
}, | ||
@@ -49,11 +45,15 @@ "keywords": [ | ||
], | ||
"nyc": { | ||
"exclude": [ | ||
"coverage", | ||
"test" | ||
"c8": { | ||
"all": true, | ||
"include": [ | ||
"index.js" | ||
], | ||
"reporter": [ | ||
"lcov", | ||
"text" | ||
] | ||
}, | ||
"dependencies": { | ||
"debug": "^2.6.7" | ||
"debug": "^4.3.1" | ||
} | ||
} |
New author
Supply chain riskA new npm collaborator published a version of the package for the first time. New collaborators are usually benign additions to a project, but do indicate a change to the security surface area of a package.
Found 1 instance in 1 package
7008
7
4
Updateddebug@^4.3.1