New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

connect-static

Package Overview
Dependencies
Maintainers
1
Versions
19
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

connect-static - npm Package Compare versions

Comparing version 1.0.1 to 1.0.2

4

index.js

@@ -9,2 +9,3 @@ var zlib = require('zlib');

var mime = require('mime');
var url = require('url');
var StreamSink = require('streamsink');

@@ -54,3 +55,4 @@

function middleware(req, resp, next) {
var c = cache[req.url];
var parsedUrl = url.parse(req.url);
var c = cache[parsedUrl.pathname];
if (!c) return next();

@@ -57,0 +59,0 @@ var sink = c.sink;

{
"name": "connect-static",
"version": "1.0.1",
"version": "1.0.2",
"description": "static file server middleware for connect. loads files once at startup and saves gzipped versions in memory",

@@ -5,0 +5,0 @@ "main": "index.js",

@@ -21,3 +21,3 @@ # static caching gzipping file server middleware for connect

ignoreFile: function(fullPath) {
var basename = path.basename(file);
var basename = path.basename(fullPath);
return /^\./.test(basename) || /~$/.test(basename);

@@ -24,0 +24,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