Socket
Socket
Sign inDemoInstall

sirv

Package Overview
Dependencies
3
Maintainers
1
Versions
47
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

Comparing version 1.0.15 to 1.0.16

3

build.js

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

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

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

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

@@ -23,3 +23,3 @@ "repository": "lukeed/sirv",

"dependencies": {
"@polka/url": "^1.0.0-next.17",
"@polka/url": "^1.0.0-next.19",
"mime": "^2.3.1",

@@ -26,0 +26,0 @@ "totalist": "^1.0.0"

Sorry, the diff of this file is not supported yet

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc