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

@eonasdan/parvus-server

Package Overview
Dependencies
Maintainers
1
Versions
9
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@eonasdan/parvus-server - npm Package Compare versions

Comparing version 1.1.7 to 1.1.9

11

dist/server.js

@@ -62,3 +62,3 @@ 'use strict';

this.subfolder = config.subfolder;
config.middlewares.forEach(x => this.addMiddleware(x.middleware, x.route));
config.middlewares?.forEach(x => this.addMiddleware(x.middleware, x.route));
}

@@ -100,3 +100,3 @@ }

const next = generateNext();
const matching = this.middlewares.filter(x => x.pattern.test(req.url)).map(x => x.middleware);
const matching = this.middlewares?.filter(x => x.pattern.test(req.url)).map(x => x.middleware);
for (let middleware of matching) {

@@ -141,3 +141,8 @@ next.reset();

const filePath = path__namespace.join(directory, url);
let fileExists = await fs.promises.stat(filePath);
let fileExists = null;
try {
fileExists = await fs.promises.stat(filePath);
}
catch {
}
if (!fileExists) {

@@ -144,0 +149,0 @@ res.statusCode = 404;

{
"name": "@eonasdan/parvus-server",
"version": "1.1.7",
"version": "1.1.9",
"description": "",

@@ -5,0 +5,0 @@ "main": "dist/server.js",

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