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

webpack-dev-middleware

Package Overview
Dependencies
Maintainers
1
Versions
117
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

webpack-dev-middleware - npm Package Compare versions

Comparing version 1.0.8 to 1.0.9

12

middleware.js

@@ -110,7 +110,9 @@ /*

var localPrefix = options.publicPath || "/";
if(/^https?:\/\//.test(localPrefix)) {
localPrefix = "/" + localPrefix.replace(/^https?:\/\/[^\/]+\//, "");
if(url.indexOf(localPrefix) !== 0) {
if(/^https?:\/\//.test(localPrefix)) {
localPrefix = "/" + localPrefix.replace(/^https?:\/\/[^\/]+\//, "");
// fast exit if another directory requested
if(url.indexOf(localPrefix) !== 0) return false;
} else return false;
}
// fast exit if another directory requested
if(url.indexOf(localPrefix) !== 0) return false;
// get filename from request

@@ -121,3 +123,3 @@ var filename = url.substr(localPrefix.length);

}
return pathJoin(compiler.outputPath, filename);
return filename ? pathJoin(compiler.outputPath, filename) : compiler.outputPath;
}

@@ -124,0 +126,0 @@

{
"name": "webpack-dev-middleware",
"version": "1.0.8",
"version": "1.0.9",
"author": "Tobias Koppers @sokra",

@@ -5,0 +5,0 @@ "description": "Offers a dev middleware for webpack, which arguments a live bundle to a directory",

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