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

webpack-dev-server

Package Overview
Dependencies
Maintainers
4
Versions
219
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

webpack-dev-server - npm Package Compare versions

Comparing version 4.10.0 to 4.10.1

23

client/utils/log.js

@@ -1,13 +0,1 @@

function _slicedToArray(arr, i) { return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) || _unsupportedIterableToArray(arr, i) || _nonIterableRest(); }
function _nonIterableRest() { throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); }
function _unsupportedIterableToArray(o, minLen) { if (!o) return; if (typeof o === "string") return _arrayLikeToArray(o, minLen); var n = Object.prototype.toString.call(o).slice(8, -1); if (n === "Object" && o.constructor) n = o.constructor.name; if (n === "Map" || n === "Set") return Array.from(o); if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _arrayLikeToArray(o, minLen); }
function _arrayLikeToArray(arr, len) { if (len == null || len > arr.length) len = arr.length; for (var i = 0, arr2 = new Array(len); i < len; i++) { arr2[i] = arr[i]; } return arr2; }
function _iterableToArrayLimit(arr, i) { var _i = arr == null ? null : typeof Symbol !== "undefined" && arr[Symbol.iterator] || arr["@@iterator"]; if (_i == null) return; var _arr = []; var _n = true; var _d = false; var _s, _e; try { for (_i = _i.call(arr); !(_n = (_s = _i.next()).done); _n = true) { _arr.push(_s.value); if (i && _arr.length === i) break; } } catch (err) { _d = true; _e = err; } finally { try { if (!_n && _i["return"] != null) _i["return"](); } finally { if (_d) throw _e; } } return _arr; }
function _arrayWithHoles(arr) { if (Array.isArray(arr)) return arr; }
import logger from "../modules/logger/index.js";

@@ -34,3 +22,3 @@ var name = "webpack-dev-server"; // default level is set on the client side, so it does not need

var logEnabledFeatures = function logEnabledFeatures(features) {
var enabledFeatures = Object.entries(features);
var enabledFeatures = Object.keys(features);

@@ -43,8 +31,5 @@ if (!features || enabledFeatures.length === 0) {

for (var _i = 0, _Object$entries = Object.entries(features); _i < _Object$entries.length; _i++) {
var _Object$entries$_i = _slicedToArray(_Object$entries[_i], 2),
key = _Object$entries$_i[0],
value = _Object$entries$_i[1];
logString += " ".concat(key, " ").concat(value ? "enabled" : "disabled", ",");
for (var i = 0; i < enabledFeatures.length; i++) {
var key = enabledFeatures[i];
logString += " ".concat(key, " ").concat(features[key] ? "enabled" : "disabled", ",");
} // replace last comma with a period

@@ -51,0 +36,0 @@

7

package.json
{
"name": "webpack-dev-server",
"version": "4.10.0",
"version": "4.10.1",
"description": "Serves a webpack app. Updates the browser on changes.",

@@ -93,3 +93,3 @@ "bin": "bin/webpack-dev-server.js",

"acorn": "^8.2.4",
"babel-jest": "^27.5.1",
"babel-jest": "^28.1.3",
"babel-loader": "^8.2.4",

@@ -108,3 +108,4 @@ "body-parser": "^1.19.2",

"husky": "^7.0.0",
"jest": "^27.5.1",
"jest": "^28.1.3",
"jest-environment-jsdom": "^28.1.3",
"klona": "^2.0.4",

@@ -111,0 +112,0 @@ "less": "^4.1.1",

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