New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

@perfsee/bundle-analyzer

Package Overview
Dependencies
Maintainers
3
Versions
15
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@perfsee/bundle-analyzer - npm Package Compare versions

Comparing version 1.3.0 to 1.4.0

4

CHANGELOG.md

@@ -6,2 +6,6 @@ # Change Log

# [1.4.0](https://github.com/perfsee/perfsee/compare/v1.3.0...v1.4.0) (2023-03-10)
**Note:** Version bump only for package @perfsee/bundle-analyzer
# [1.3.0](https://github.com/perfsee/perfsee/compare/v1.2.0...v1.3.0) (2023-02-27)

@@ -8,0 +12,0 @@

4

dist/stats-parser/index.d.ts
import { PerfseeReportStats } from '../stats';
import { Asset, Logger, BundleResult } from './types';
import { Asset, Logger, BundleResult, ModuleMap } from './types';
export declare class StatsParser {

@@ -32,3 +32,5 @@ private readonly stats;

assets: Asset[];
moduleMap: ModuleMap;
}>;
private serializeModuleMap;
private serializeResult;

@@ -35,0 +37,0 @@ private parseEntryPoints;

@@ -90,4 +90,16 @@ "use strict";

assets: Array.from(this.assetsMap.values()),
moduleMap: this.serializeModuleMap(),
};
}
serializeModuleMap() {
const moduleMap = {};
for (const module of this.modulesMap.values()) {
moduleMap[String(module.id)] = {
path: module.realPath,
packageRef: module.ref,
concatenatingLength: module.concatenating.length,
};
}
return moduleMap;
}
serializeResult() {

@@ -121,2 +133,3 @@ const entryPoints = Array.from(this.entryPointsMap.values());

.sort((a, b) => b.size.raw - a.size.raw),
moduleRefs: modules.map((m) => m.id),
};

@@ -129,2 +142,5 @@ }),

packages: Array.from(this.packagePathRefMap.values()),
repoPath: this.stats.repoPath,
buildPath: this.stats.buildPath,
buildTool: this.stats.buildTool,
};

@@ -200,2 +216,3 @@ }

name,
path: realName,
type,

@@ -202,0 +219,0 @@ modules,

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

import { BundleToolkit } from './stats';
export interface Size {

@@ -20,2 +21,3 @@ raw: number;

size: Size;
path?: string;
packageRefs: Array<{

@@ -110,3 +112,13 @@ ref: number;

packages: BasePackage[];
repoPath?: string;
buildPath?: string;
buildTool?: BundleToolkit;
}
export interface ModuleMap {
[moduleId: string]: {
path: string;
packageRef: number;
concatenatingLength: number;
};
}
export interface ModuleTreeNodeUnit {

@@ -113,0 +125,0 @@ label: string;

{
"name": "@perfsee/bundle-analyzer",
"version": "1.3.0",
"version": "1.4.0",
"description": "Bundle analyzer by perfsee",

@@ -29,3 +29,3 @@ "sideEffect": false,

},
"gitHead": "10319d51ec9cdd2bdcfa4470ce770227fa26161f"
"gitHead": "6ed106973367baab8f892f57c8622b54cb76afd4"
}

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