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

webpack-dev-middleware

Package Overview
Dependencies
Maintainers
4
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 5.3.1 to 5.3.2

2

dist/utils/getFilenameFromUrl.js

@@ -92,3 +92,3 @@ "use strict";

const pathname = urlObject.pathname.substr(publicPathObject.pathname.length);
const pathname = urlObject.pathname.slice(publicPathObject.pathname.length);

@@ -95,0 +95,0 @@ if (pathname) {

@@ -63,3 +63,3 @@ "use strict";

if (queryStringIdx >= 0) {
targetFile = targetFile.substr(0, queryStringIdx);
targetFile = targetFile.slice(0, queryStringIdx);
}

@@ -66,0 +66,0 @@

{
"name": "webpack-dev-middleware",
"version": "5.3.1",
"version": "5.3.2",
"description": "A development middleware for webpack",

@@ -51,3 +51,3 @@ "license": "MIT",

"colorette": "^2.0.10",
"memfs": "^3.4.1",
"memfs": "^3.4.3",
"mime-types": "^2.1.31",

@@ -61,9 +61,10 @@ "range-parser": "^1.2.1",

"@babel/preset-env": "^7.16.7",
"@commitlint/cli": "^16.1.0",
"@commitlint/config-conventional": "^16.0.0",
"@commitlint/cli": "^17.0.0",
"@commitlint/config-conventional": "^17.0.0",
"@types/connect": "^3.4.35",
"@types/express": "^4.17.13",
"@types/mime-types": "^2.1.1",
"@types/node": "^12.20.43",
"@webpack-contrib/eslint-config-webpack": "^3.0.0",
"babel-jest": "^27.4.6",
"babel-jest": "^28.1.0",
"chokidar": "^3.5.1",

@@ -82,3 +83,3 @@ "connect": "^3.7.0",

"husky": "^7.0.0",
"jest": "^27.4.7",
"jest": "^28.1.0",
"lint-staged": "^12.1.7",

@@ -90,3 +91,3 @@ "npm-run-all": "^4.1.5",

"supertest": "^6.1.3",
"webpack": "^5.64.4"
"webpack": "^5.68.0"
},

@@ -93,0 +94,0 @@ "keywords": [

@@ -168,3 +168,3 @@ /// <reference types="node" />

methods?: string | undefined;
headers?: Headers<Request_1, Response_1>;
headers?: Headers<Request, Response>;
publicPath?: NonNullable<Configuration["output"]>["publicPath"];

@@ -179,4 +179,3 @@ stats?: Configuration["stats"];

Response_1 extends ServerResponse
> = Middleware<Request_1, Response_1> &
AdditionalMethods<Request_1, Response_1>;
> = Middleware<Request, Response> & AdditionalMethods<Request, Response>;
type Schema = import("schema-utils/declarations/validate").Schema;

@@ -206,3 +205,3 @@ type Configuration = import("webpack").Configuration;

createReadStream?: typeof import("fs").createReadStream;
statSync?: import("fs").StatSyncFn;
statSync?: typeof import("fs").statSync;
lstat?: typeof import("fs").lstat;

@@ -222,3 +221,3 @@ readFileSync?: typeof import("fs").readFileSync;

callbacks: Callback[];
options: Options<Request_1, Response_1>;
options: Options<Request, Response>;
compiler: Compiler | MultiCompiler;

@@ -239,5 +238,5 @@ watching: Watching | MultiWatching;

| ((
req: Request_1,
res: Response_1,
context: Context<Request_1, Response_1>
req: Request,
res: Response,
context: Context<Request, Response>
) => void | undefined | Record<string, string | number>)

@@ -248,3 +247,3 @@ | undefined;

Response_1 extends ServerResponse
> = (req: Request_1, res: Response_1, next: NextFunction) => Promise<void>;
> = (req: Request, res: Response, next: NextFunction) => Promise<void>;
type GetFilenameFromUrl = (url: string) => string | undefined;

@@ -262,3 +261,3 @@ type WaitUntilValid = (callback: Callback) => any;

close: Close;
context: Context<Request_1, Response_1>;
context: Context<Request, Response>;
};
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