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

route-cache

Package Overview
Dependencies
Maintainers
1
Versions
30
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

route-cache - npm Package Compare versions

Comparing version 0.4.4 to 0.4.5

2

index.js

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

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