webpack-hot-client
Advanced tools
Comparing version 4.1.0 to 4.1.1
@@ -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", |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
42992
844