route-cache
Advanced tools
Comparing version 0.4.4 to 0.4.5
@@ -145,3 +145,3 @@ 'use strict' | ||
cacheStore.set('redirect:' + key, {url: address, status: status}, ttl) | ||
cacheStore.set('redirect:' + key, { url: address, status: status }, ttl) | ||
res.original_redirect(status, address) | ||
@@ -148,0 +148,0 @@ return drainQueue(key) |
// app.js | ||
var express = require('express') | ||
// var logger = require('morgan') | ||
var routeCache = require('./../index') | ||
@@ -112,7 +111,5 @@ | ||
process.exit(1) | ||
break | ||
case 'EADDRINUSE': | ||
console.error(bind + ' is already in use') | ||
process.exit(1) | ||
break | ||
default: | ||
@@ -119,0 +116,0 @@ throw error |
{ | ||
"name": "route-cache", | ||
"version": "0.4.4", | ||
"version": "0.4.5", | ||
"description": "express middleware for caching your routes", | ||
"main": "index.js", | ||
"scripts": { | ||
"test": "standard && DEBUG=route-cache mocha -R spec test" | ||
"format": "standard --fix", | ||
"test": "standard && cross-env DEBUG=route-cache mocha -R spec test" | ||
}, | ||
@@ -26,7 +27,7 @@ "repository": { | ||
"devDependencies": { | ||
"express": "4.14.0", | ||
"mocha": "2.5.3", | ||
"morgan": "1.7.0", | ||
"standard": "8.0.0", | ||
"supertest": "1.2.0" | ||
"cross-env": "^5.2.0", | ||
"express": "^4.16.4", | ||
"mocha": "^7.2.0", | ||
"standard": "^12.0.1", | ||
"supertest": "^4.0.2" | ||
}, | ||
@@ -33,0 +34,0 @@ "standard": { |
@@ -33,5 +33,5 @@ 'use strict'; | ||
.get('/send-buffer') | ||
.expect('Content-Length', 11) | ||
.expect('Content-Length', '11') | ||
.expect('Content-Type', 'application/octet-stream') | ||
.expect('Test Buffer', done); | ||
.expect(undefined, done); | ||
}); | ||
@@ -42,3 +42,3 @@ | ||
.get('/send-png') | ||
.expect('Content-Length', 8) | ||
.expect('Content-Length', '8') | ||
.expect('Content-Type', 'image/png') | ||
@@ -51,3 +51,3 @@ .expect(undefined, done); | ||
.get('/send-png') | ||
.expect('Content-Length', 8) | ||
.expect('Content-Length', '8') | ||
.expect('Content-Type', 'image/png') | ||
@@ -60,3 +60,3 @@ .expect(undefined, done); | ||
.get('/send-gif') | ||
.expect('Content-Length', 11) | ||
.expect('Content-Length', '11') | ||
.expect('Content-Type', 'image/gif') | ||
@@ -63,0 +63,0 @@ .expect(undefined, done); |
Sorry, the diff of this file is not supported yet
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
Major refactor
Supply chain riskPackage has recently undergone a major refactor. It may be unstable or indicate significant internal changes. Use caution when updating to versions that include significant changes.
Found 1 instance in 1 package
1
839