New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.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.1.0-alpha.0 to 5.1.0-alpha.1

10

dist/entity-resolver.js

@@ -32,3 +32,5 @@ "use strict";

for (const entity of entities) {
if (getId(entity) === id) {
// disable eqeqeq cause id may be string or number
// eslint-disable-next-line eqeqeq
if (getId(entity) == id) {
result = entity;

@@ -41,3 +43,4 @@ break;

for (const [, entity] of entities) {
if (getId(entity) === id) {
// eslint-disable-next-line eqeqeq
if (getId(entity) == id) {
result = entity;

@@ -51,3 +54,4 @@ break;

const entity = entities[name];
if (getId(entity) === id) {
// eslint-disable-next-line eqeqeq
if (getId(entity) == id) {
result = entity;

@@ -54,0 +58,0 @@ break;

@@ -1,2 +0,1 @@

import { Webpack } from '../webpack';
import { NormalizedModule, NormalizedReason } from './normalize';

@@ -8,4 +7,4 @@ export declare const extractFileRx: RegExp;

export declare function moduleNameResource(name: string | null): string | null;
export declare function moduleResource(module: NormalizedModule | Webpack.Module | null): string | null;
export declare function moduleReasonResource(reason: NormalizedReason | Webpack.Reason | null): string | null;
export declare function moduleResource(module: NormalizedModule | null): string | null;
export declare function moduleReasonResource(reason: NormalizedReason | null): string | null;
export declare type NodeModule = {

@@ -12,0 +11,0 @@ path: string;

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

page: 'module',
id: module.id || module.name,
id: String(module.id || module.name),
};

@@ -51,0 +51,0 @@ }

import { Webpack } from '../webpack';
import { ValidationResult } from './validate';
import { Resolver } from './entity-resolver';
import ChunkID = Webpack.ChunkID;
export declare type NormalizedChunk = Omit<Webpack.Chunk, 'modules' | 'files' | 'children' | 'parents' | 'siblings'> & {

@@ -79,3 +80,3 @@ modules: NormalizedModule[];

resolveModule: Resolver<string, NormalizedModule>;
resolveChunk: Resolver<string, NormalizedChunk>;
resolveChunk: Resolver<ChunkID, NormalizedChunk>;
resolveAsset: Resolver<string, NormalizedAsset>;

@@ -82,0 +83,0 @@ resolvePackage: Resolver<string, NormalizedPackage>;

@@ -115,7 +115,7 @@ "use strict";

compilation.modules.length = 0;
for (const module of modules) {
for (const module of [...modules]) {
compilation.modules.push(module);
for (const innerModule of module.modules || []) {
modules.push(innerModule);
compilation.modules.push(module);
compilation.modules.push(innerModule);
}

@@ -132,3 +132,3 @@ }

module.chunks = module.chunks
.map((c) => resolveChunk(typeof c === 'string' ? c : c.id))
.map((c) => resolveChunk(typeof c === 'string' || typeof c === 'number' ? c : c.id))
.filter(Boolean);

@@ -177,3 +177,3 @@ }

chunk.children = chunk.children
.map((c) => resolveChunk(typeof c === 'string' ? c : c.id))
.map((c) => resolveChunk(typeof c === 'string' || typeof c === 'number' ? c : c.id))
.filter(Boolean);

@@ -186,3 +186,3 @@ }

chunk.siblings = chunk.siblings
.map((c) => resolveChunk(typeof c === 'string' ? c : c.id))
.map((c) => resolveChunk(typeof c === 'string' || typeof c === 'number' ? c : c.id))
.filter(Boolean);

@@ -195,3 +195,3 @@ }

chunk.parents = chunk.parents
.map((c) => resolveChunk(typeof c === 'string' ? c : c.id))
.map((c) => resolveChunk(typeof c === 'string' || typeof c === 'number' ? c : c.id))
.filter(Boolean);

@@ -216,3 +216,3 @@ }

asset.chunks = asset.chunks
.map((c) => resolveChunk(typeof c === 'string' ? c : c.id))
.map((c) => resolveChunk(typeof c === 'string' || typeof c === 'number' ? c : c.id))
.filter(Boolean);

@@ -232,3 +232,3 @@ }

entry.chunks = entry.chunks
.map((c) => resolveChunk(typeof c === 'string' ? c : c.id))
.map((c) => resolveChunk(typeof c === 'string' || typeof c === 'number' ? c : c.id))
.filter(Boolean);

@@ -235,0 +235,0 @@ }

{
"name": "@statoscope/webpack-model",
"version": "5.1.0-alpha.0",
"version": "5.1.0-alpha.1",
"description": "This package contains helpers to process webpack stats",
"main": "./dist/index.js",
"scripts": {
"build": "../../node_modules/.bin/tsc"
"build": "../../node_modules/.bin/tsc",
"prepublishOnly": "npm run build"
},

@@ -30,3 +31,3 @@ "repository": "https://github.com/statoscope/statoscope.git",

},
"gitHead": "06db3ad9799680a03da119197203ea5131ff146c"
"gitHead": "f9aa9507cc79562a7fd412f229eccee3f75e2078"
}

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

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