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

@statoscope/webpack-model

Package Overview
Dependencies
Maintainers
1
Versions
56
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@statoscope/webpack-model - npm Package Compare versions

Comparing version 5.25.1 to 5.26.2

19

dist/handleCompilation.js

@@ -103,3 +103,3 @@ "use strict";

entrypoints: (0, indexer_1.default)((item) => item.name),
modules: (0, indexer_1.default)((item) => rawIndexes.getModuleIdentifier(item.identifier), null, {
modules: (0, indexer_1.default)((item) => item.identifier, null, {
idModifier: moduleIdModifier,

@@ -113,19 +113,6 @@ }),

entrypoints: (0, indexer_1.default)((item) => item.name),
modules: (0, indexer_1.default)((item) => rawIndexes.getModuleIdentifier(item.identifier), null, {
modules: (0, indexer_1.default)((item) => item.identifier, null, {
idModifier: moduleIdModifier,
}),
chunkAssets: new Map(),
longModulesIds: new Map(),
getModuleIdentifier(identifier) {
if (identifier.length >= 300) {
let shortId = this.longModulesIds.get(identifier);
if (shortId) {
return shortId;
}
shortId = 'long_module_id_' + (0, md5_1.default)(identifier);
this.longModulesIds.set(identifier, shortId);
return shortId;
}
return identifier;
},
};

@@ -146,3 +133,2 @@ const resolvers = {

for (const module of (0, collector_1.collectRawModules)(compilation)) {
module.identifier = rawIndexes.getModuleIdentifier(module.identifier);
processingContext.rawIndexes.modules.add(module);

@@ -284,3 +270,2 @@ }

for (const item of innerModules.values()) {
item.identifier = context.rawIndexes.getModuleIdentifier(item.identifier);
newInnerModules.push(context.rawIndexes.modules.get(item.identifier));

@@ -287,0 +272,0 @@ (_d = item.chunks) !== null && _d !== void 0 ? _d : (item.chunks = []);

4

package.json
{
"name": "@statoscope/webpack-model",
"version": "5.25.1",
"version": "5.26.2",
"description": "This package contains helpers to process webpack stats",

@@ -36,3 +36,3 @@ "main": "./dist/index.js",

},
"gitHead": "b86badb119c486c3e0f4fe4c8c233e61fd2b133b"
"gitHead": "228b7f1d677df062c35d8fd72e87b1d67ef4d562"
}

@@ -15,3 +15,2 @@ import { ResolverFn } from '@statoscope/helpers/dist/entity-resolver';

import RawReason = Webpack.RawReason;
import ModuleID = Webpack.ModuleID;

@@ -123,4 +122,2 @@ export type CompilationResolvers = {

chunkAssets: Map<ChunkID, Set<RawAsset>>;
longModulesIds: Map<ModuleID, string>;
getModuleIdentifier(module: string): string;
entrypoints: IndexAPI<string, EntrypointItem>;

@@ -127,0 +124,0 @@ };

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