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

webpack-bundle-diff

Package Overview
Dependencies
Maintainers
1
Versions
18
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

webpack-bundle-diff - npm Package Compare versions

Comparing version 1.2.2 to 1.2.3

1

lib/types/StatsOrComiplationModule.d.ts

@@ -5,2 +5,3 @@ import { Compilation, Module } from 'webpack';

readableIdentifier(requestShortener: Compilation['requestShortener']): string;
modules?: Module[];
});

10

lib/util/getModuleName.js

@@ -5,8 +5,8 @@ "use strict";

function getModuleName(module, stats) {
return 'readableIdentifier' in module
? module.readableIdentifier(stats.requestShortener)
: module.modules
? module.modules[0].name
: module.name;
var _a, _b;
const rootModule = (_b = (_a = module.modules) === null || _a === void 0 ? void 0 : _a[0]) !== null && _b !== void 0 ? _b : module;
return 'readableIdentifier' in rootModule
? rootModule.readableIdentifier(stats.requestShortener)
: rootModule.name;
}
exports.getModuleName = getModuleName;
{
"name": "webpack-bundle-diff",
"version": "1.2.2",
"version": "1.2.3",
"description": "Understand changes in webpack bundle size",

@@ -5,0 +5,0 @@ "main": "./lib/index.js",

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