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

webpack-hot-client

Package Overview
Dependencies
Maintainers
1
Versions
38
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

webpack-hot-client - npm Package Compare versions

Comparing version 4.1.0 to 4.1.1

7

lib/options.js

@@ -67,7 +67,7 @@ const { Server: HttpsServer } = require('https');

};
} else if (!options.port.server) {
} else if (isNaN(parseInt(options.port.server, 10))) {
throw new HotClientError(
'`port.server` must be defined when setting host to an Object'
);
} else if (!options.port.client) {
} else if (isNaN(parseInt(options.port.client, 10))) {
throw new HotClientError(

@@ -91,3 +91,4 @@ '`port.client` must be defined when setting host to an Object'

host: server.address().address,
port: server.address().port,
// a port.client value of 0 will be falsy, so it should pull the server port
port: options.port.client || server.address().port,
};

@@ -94,0 +95,0 @@ } else {

@@ -107,3 +107,4 @@ const stringify = require('json-stringify-safe');

server.port = port;
options.webSocket.port = port;
// a port.client value of 0 will be falsy, so it should pull the server port
options.webSocket.port = options.port.client || port;

@@ -110,0 +111,0 @@ log.info(`WebSocket Server Listening on ${host.server}:${port}`);

{
"name": "webpack-hot-client",
"version": "4.1.0",
"version": "4.1.1",
"description": "A client for enabling, and interacting with, webpack Hot Module Replacement",

@@ -5,0 +5,0 @@ "license": "MIT",

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