Latest Threat Research:SANDWORM_MODE: Shai-Hulud-Style npm Worm Hijacks CI Workflows and Poisons AI Toolchains.Details โ†’
Socket
Book a DemoInstallSign in
Socket

sonda

Package Overview
Dependencies
Maintainers
1
Versions
26
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

sonda - npm Package Compare versions

Comparing version
0.11.0
to
0.11.1
+9
-0
CHANGELOG.md
# Changelog
## 0.11.1
### Patch Changes
- ab088cb: Update the Connections node details panel to include incoming/outgoing connection lists with quick navigation.
- a9669ac: Fix some sources not being properly detected as CommonJS in Rollup.
- ab088cb: Updated the Connections graph to primarily flow left-to-right and keep directly linked nodes out of the same column where possible. It should no longer produce backtracking or same-column cross-links except in unavoidable circular dependency cases.
- a9669ac: Use the new `module.inputFormat` property added in Rolldown@v1.0.0-rc.5 to detect CommonJS sources.
## 0.11.0

@@ -4,0 +13,0 @@

+18
-18

@@ -174,3 +174,3 @@ import { styleText } from "util";

//#region package.json
var version = "0.11.0";
var version = "0.11.1";

@@ -213,7 +213,7 @@ //#endregion

const { dir, base } = parse(path);
const regex = /* @__PURE__ */ new RegExp("^" + base.replace("[index]", "(\\d+)") + "$");
const versions = (await getAllFiles(dir)).map((path$1) => basename(path$1).match(regex)).filter((match) => match !== null).map((match) => parseInt(match[1], 10));
const regex = new RegExp("^" + base.replace("[index]", "(\\d+)") + "$");
const versions = (await getAllFiles(dir)).map((path) => basename(path).match(regex)).filter((match) => match !== null).map((match) => parseInt(match[1], 10));
const maxVersion = Math.max(...versions, -1);
const version$1 = String(maxVersion + 1);
return path.replace("[index]", version$1);
const version = String(maxVersion + 1);
return path.replace("[index]", version);
}

@@ -467,5 +467,5 @@ };

}));
for (const [source, sizes$1] of sourcesSizes) {
for (const [source, sizes] of sourcesSizes) {
const name = normalizePath(source);
const type$1 = getTypeByName(source);
const type = getTypeByName(source);
const parent = parentMap[source] ? normalizePath(parentMap[source]) : null;

@@ -482,3 +482,3 @@ const existingSource = report.resources.find((resource) => resource.name === name && resource.kind === "filesystem");

name,
type: type$1,
type,
format: "other",

@@ -492,5 +492,5 @@ uncompressed,

name,
type: type$1,
type,
format: existingSource?.format || "other",
...sizes$1,
...sizes,
parent: assetName

@@ -623,5 +623,5 @@ });

const outputs = [];
for (const format$1 of this.config.format) {
const path = await new formatters[format$1](this.config).write(this.#getFormattedData());
if (this.config.open === true || this.config.open === format$1) await open(path);
for (const format of this.config.format) {
const path = await new formatters[format](this.config).write(this.#getFormattedData());
if (this.config.open === true || this.config.open === format) await open(path);
outputs.push(path);

@@ -710,6 +710,6 @@ }

name: "sonda/rollup",
async resolveId(source, importer, options$1) {
async resolveId(source, importer, options) {
if (!importer) return;
const resolved = await this.resolve(source, importer, {
...options$1,
...options,
skipSelf: true

@@ -748,3 +748,3 @@ });

const ext = extname(module.id);
return module.meta.commonjs?.isCommonJS === true || ext === ".cjs" || ext === ".cts" ? "cjs" : "esm";
return !!module.meta.commonjs?.isCommonJS || module.inputFormat === "cjs" || ext === ".cjs" || ext === ".cts" ? "cjs" : "esm";
}

@@ -794,3 +794,3 @@

*/
const sourceMapFilenameRegex = /* @__PURE__ */ new RegExp(`(?:webpack://)?(?:${namespace})?([^?]*)`);
const sourceMapFilenameRegex = new RegExp(`(?:webpack://)?(?:${namespace})?([^?]*)`);
compiler.hooks.afterEmit.tapPromise("SondaWebpackPlugin", async (compilation) => {

@@ -800,3 +800,3 @@ for (const mod of compilation.modules) {

if (!name) continue;
const module = mod.modules?.find((module$1) => module$1.nameForCondition() === name) || mod;
const module = mod.modules?.find((module) => module.nameForCondition() === name) || mod;
const normalizedName = normalizePath(name);

@@ -803,0 +803,0 @@ report.addResource({

{
"name": "sonda",
"version": "0.11.0",
"version": "0.11.1",
"description": "Universal bundle analyzer and visualizer that works with most popular bundlers and frameworks.",

@@ -5,0 +5,0 @@ "keywords": [

Sorry, the diff of this file is too big to display