res-interceptor
Advanced tools
Comparing version 0.1.0 to 1.0.0
@@ -7,3 +7,3 @@ var express = require('express'); | ||
interceptor (function (req,res,next,data) { | ||
console.log(data); // { headers: { 'x-powered-by': 'Express', id: '1' }, status: 200, body: 'hello world' } | ||
console.log(data); // => { headers: { 'x-powered-by': 'Express', id: '1' }, status: 200, body: 'hello world' } | ||
this.set('id','2'); // overwrite response headers in middleware. | ||
@@ -10,0 +10,0 @@ // or |
{ | ||
"name": "res-interceptor", | ||
"version": "0.1.0", | ||
"description": "Get response in middleware with Express.", | ||
"version": "1.0.0", | ||
"description": "Get & overwrite response in middleware with Express.", | ||
"main": "./index.js", | ||
@@ -6,0 +6,0 @@ "repository": { |
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
No v1
QualityPackage is not semver >=1. This means it is not stable and does not support ^ ranges.
Found 1 instance in 1 package
4497
0