Socket
Socket
Sign inDemoInstall

sirv

Package Overview
Dependencies
Maintainers
1
Versions
47
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

sirv - npm Package Compare versions

Comparing version 1.0.14 to 1.0.15

3

build.js

@@ -163,3 +163,4 @@ const fs = require('fs');

let pathname = !!req._decoded && req.path || parse(req, true).pathname;
// todo: fix me later (dangle in parser)
let pathname = !!req._decoded && req._parsedUrl && req._parsedUrl.pathname || parse(req, true).pathname;
let data = lookup(pathname, extns) || isSPA && !isMatch(pathname, ignores) && lookup(fallback, extns);

@@ -166,0 +167,0 @@ if (!data) return next ? next() : isNotFound(req, res);

{
"name": "sirv",
"version": "1.0.14",
"version": "1.0.15",
"description": "The optimized & lightweight middleware for serving requests to static assets",

@@ -5,0 +5,0 @@ "repository": "lukeed/sirv",

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