
Security News
Socket Releases Free Certified Patches for Critical vm2 Sandbox Escape
A critical vm2 sandbox escape can allow untrusted JavaScript to break isolation and execute commands on the host Node.js process.
@types/webpack-hot-client
Advanced tools
TypeScript definitions for webpack-hot-client
npm install --save @types/webpack-hot-client
This package contains type definitions for webpack-hot-client (https://github.com/webpack-contrib/webpack-hot-client).
Files were exported from https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/webpack-hot-client.
/// <reference types="node" />
import * as net from "net";
import webpack = require("webpack");
import { Server } from "ws";
export = WebpackHotClient;
declare function WebpackHotClient(
compiler: webpack.Compiler | webpack.MultiCompiler,
options: WebpackHotClient.Options,
): WebpackHotClient.Client;
declare namespace WebpackHotClient {
interface WebSocketServer extends Server {
/** Forwards a message to each open client on the WebSocketServer */
broadcast(data: any): void;
/** Processes stats and sends messages through broadcast() */
send(stats: webpack.Stats): void;
}
interface Client {
/** Function that closes the WebSocketServer opened by the module. */
close(callback?: () => void): void;
/** WebSocketServer instance with some hot-client specific method overrides */
server: WebSocketServer;
/** Readonly version of the options after applying defaults */
options: Readonly<Options>;
}
interface WebpackHotHost {
/** Client hostname that is used in the browser by WebSockets */
client: string;
/** Server hostname */
server: string;
}
interface Options {
/** Automatically configure every entry */
allEntries?: boolean | undefined;
/** Auto configure the given webpack config with the hot configuration */
autoConfigure?: boolean | undefined;
/** Host that the WebSocket listens on */
host?: WebpackHotHost | string | undefined;
/** Enable hot module reloading */
hmr?: boolean | undefined;
/** Enable HTTPS */
https?: boolean | undefined;
/** Level of information for webpack-hot-client to output */
logLevel?: "trace" | "debug" | "info" | "warn" | "error" | "silent" | undefined;
/** Prepend timestamp to each log line */
logTime?: boolean | undefined;
/** Port that the WebSocket listens on */
port?: number | undefined;
/** Reload the page if a patch cannot be applied by webpack */
reload?: boolean | undefined;
/** Server instance for webpack-hot-client to connect to */
server?: net.Server | undefined;
/** Webpack stats configuration */
stats?: webpack.Options.Stats | undefined;
/** Webpack compile target */
validTargets?: string[] | undefined;
}
}
These definitions were written by ZSkycat, and Brian Armstrong.
FAQs
TypeScript definitions for webpack-hot-client
The npm package @types/webpack-hot-client receives a total of 999 weekly downloads. As such, @types/webpack-hot-client popularity was classified as not popular.
We found that @types/webpack-hot-client demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Security News
A critical vm2 sandbox escape can allow untrusted JavaScript to break isolation and execute commands on the host Node.js process.

Research
Five malicious NuGet packages impersonate Chinese .NET libraries to deploy a stealer targeting browser credentials, crypto wallets, SSH keys, and local files.

Security News
pnpm 11 turns on a 1-day Minimum Release Age and blocks exotic subdeps by default, adding safeguards against fast-moving supply chain attacks.