Socket
Socket
Sign inDemoInstall

webpack-monitor

Package Overview
Dependencies
198
Maintainers
1
Versions
15
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

Comparing version 1.0.4 to 1.0.5

12

monitor.js

@@ -39,3 +39,3 @@ const fs = require('fs');

const minified = source.split(/\r\n|\r|\n/).length < 25;
const miniSize = minified ? false : babel.transform(source, { compact: false }).code.length;
const miniSize = minified ? false : babel.transform(source, { compact: true }).code.length;
const obj = {

@@ -90,12 +90,12 @@ name: file,

const prev = data[data.length - 1];
const parsed = parseStats(stats, target);
// Check if new data exists
if (
!data.length ||
stats.hash !== prev.hash ||
stats.size !== prev.size ||
stats.assets.length !== prev.assets.length ||
stats.chunks.length !== prev.chunks.length
parsed.hash !== prev.hash ||
parsed.size !== prev.size ||
parsed.assets.length !== prev.assets.length ||
parsed.chunks.length !== prev.chunks.length
) {
console.log('Writing new build');
const parsed = parseStats(stats, target);
// Add minified data

@@ -102,0 +102,0 @@ parsed.assets.forEach((asset) => {

{
"name": "webpack-monitor",
"version": "1.0.4",
"description": "Collect stats on your builds",
"version": "1.0.5",
"description": "Monitor your production builds throughout the development process with rich analysis tool",
"author": "Jon Roach, Gordon Yu, Balal Zuhair",

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

Sorry, the diff of this file is not supported yet

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc