Socket
Socket
Sign inDemoInstall

@types/webpack-dev-middleware

Package Overview
Dependencies
Maintainers
1
Versions
37
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@types/webpack-dev-middleware - npm Package Compare versions

Comparing version 4.1.3 to 4.2.0

15

webpack-dev-middleware/index.d.ts

@@ -1,2 +0,2 @@

// Type definitions for webpack-dev-middleware 4.1
// Type definitions for webpack-dev-middleware 4.2
// Project: https://github.com/webpack/webpack-dev-middleware

@@ -11,4 +11,5 @@ // Definitions by: Benjamin Lim <https://github.com/bumbleblym>

import * as webpack from 'webpack';
import { NextHandleFunction } from 'connect';
import * as webpack from "webpack";
import { IncomingMessage, NextHandleFunction } from "connect";
import { ServerResponse } from "http";

@@ -39,5 +40,3 @@ export = WebpackDevMiddleware;

/** This property allows a user to pass custom HTTP headers on each request. eg. { "X-Custom-Header": "yes" } */
headers?: {
[name: string]: string;
};
headers?: Record<string, string> | HeadersHandle;
/** The public path that the middleware is bound to */

@@ -84,2 +83,6 @@ publicPath?: string;

}
interface HeadersHandle {
(req: IncomingMessage, res: ServerResponse, context: Context): Record<string, string> | void;
}
}

4

webpack-dev-middleware/package.json
{
"name": "@types/webpack-dev-middleware",
"version": "4.1.3",
"version": "4.2.0",
"description": "TypeScript definitions for webpack-dev-middleware",

@@ -46,4 +46,4 @@ "license": "MIT",

},
"typesPublisherContentHash": "5daf74dbba393c781bf696e0e9cfbab3c4d2c9980d6629c454ae8224322e2035",
"typesPublisherContentHash": "f25e6c35fbba1ea0607cc1141c7596bc3cb7e836d80884897fb1a8dba422507c",
"typeScriptVersion": "3.7"
}

@@ -11,3 +11,3 @@ # Installation

### Additional Details
* Last updated: Sun, 09 May 2021 12:31:25 GMT
* Last updated: Wed, 12 May 2021 09:01:22 GMT
* Dependencies: [@types/webpack](https://npmjs.com/package/@types/webpack), [@types/connect](https://npmjs.com/package/@types/connect)

@@ -14,0 +14,0 @@ * Global values: none

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