Build your personal knowledge base with Trilium Notes
TypeScript electronelectron-appknowledge-baseknowledge-graphknowledge-managementknowledge-management-graphlocal-firstnote-managmentnote-takernote-takingnotebooknotesnotes-apppersonal-knowledge-basepersonal-wikiscriptableself-hostedself-hostingwiki
chore(deps): replace sqlite/sqlite3 with better-sqlite3 in db-compare
Elian Dorand9d3dc0dac88
diff --git a/apps/db-compare/package.json b/apps/db-compare/package.jsonindex f3858ed624..d7797bfbd9 100644--- a/apps/db-compare/package.json+++ b/apps/db-compare/package.json@@ -4,13 +4,17 @@"private": true,"description": "Tool to compare content of Trilium databases. Useful for debugging sync problems.","dependencies": {+ "better-sqlite3": "12.10.0","colors": "1.4.0",- "diff": "9.0.0",- "sqlite": "5.1.1",- "sqlite3": "6.0.1"+ "diff": "9.0.0"+ },+ "devDependencies": {+ "@types/better-sqlite3": "7.6.13",+ "vitest": "4.1.7"},"scripts": {"dev": "tsx src/compare.ts",- "build": "esbuild --platform=node --format=cjs --outdir=dist src/compare.ts"+ "build": "esbuild --platform=node --format=cjs --outdir=dist src/compare.ts",+ "test": "vitest run"}}diff --git a/apps/db-compare/src/comparator.ts b/apps/db-compare/src/comparator.tsnew file mode 100644index 0000000000..f72ca4c7ed--- /dev/null+++ b/apps/db-compare/src/comparator.ts@@ -0,0 +1,140 @@+import type { Database as DatabaseType } from "better-sqlite3";++import sql, { type Row } from "./sql.js";++export interface Comparison {+ table: string;+ column: string;+ query: string;+}++export interface RowDifference {+ id: string;+ left: string;+ right: string;+}++export interface TableComparison {+ table: string;+ column: string;+ leftCount: number;+ rightCount: number;+ /** IDs present in the left database but absent from the right one. */+ missingFromRight: string[];+ /** IDs present in the right database but absent from the left one. */+ missingFromLeft: string[];+ differingRows: RowDifference[];+}++/**+ * The set of tables compared between two databases. Note that these queries currently target+ * the legacy (v214) database structure, see the README for details.+ */+export const COMPARISONS: Comparison[] = [+ {+ table: "branches",+ column: "branchId",+ query: "SELECT branchId, noteId, parentNoteId, notePosition, utcDateModified, isDeleted, prefix FROM branches"+ },+ {+ table: "notes",+ column: "noteId",+ query: "SELECT noteId, title, dateCreated, utcDateCreated, isProtected, isDeleted FROM notes WHERE isDeleted = 0"+ },+ {+ table: "note_contents",+ column: "noteId",+ query: "SELECT note_contents.noteId, note_contents.content FROM note_contents JOIN notes USING(noteId) WHERE isDeleted = 0"+ },+ {+ table: "note_revisions",+ column: "noteRevisionId",+ query: "SELECT noteRevisionId, noteId, title, dateCreated, dateLastEdited, utcDateCreated, utcDateLastEdited, isProtected FROM note_revisions"+ },+ {+ table: "note_revision_contents",+ column: "noteRevisionId",+ query: "SELECT noteRevisionId, content FROM note_revision_contents"+ },+ {+ table: "options",+ column: "name",+ query: "SELECT name, value, utcDateModified FROM options WHERE isSynced = 1"+ },+ {+ table: "attributes",+ column: "attributeId",+ query: "SELECT attributeId, noteId, type, name, value FROM attributes"+ },+ {+ table: "etapi_tokens",+ column: "etapiTokenId",+ query: "SELECT etapiTokenId, name, tokenHash, utcDateCreated, utcDateModified, isDeleted FROM etapi_tokens"+ },+ {+ table: "entity_changes",+ column: "uniqueId",+ query: "SELECT entityName || '-' || entityId AS uniqueId, hash, isErased, utcDateChanged FROM entity_changes WHERE isSynced = 1"+ }+];++/** Returns the items of `ids1` that are not present in `ids2`. */+export function findMissing(ids1: string[], ids2: string[]) {+ return ids1.filter(item => ids2.indexOf(item) < 0);+}++/** Normalizes a row whose `content` column is a Buffer into a plain string so it can be compared. */+export function handleBuffer(obj: Row): Row {+ if (Buffer.isBuffer(obj.content)) {+ obj.content = obj.content.toString();+ }++ return obj;+}++/** Compares two indexed row sets belonging to a single table and returns a structured diff. */+export function compareRows(table: string, column: string, rsLeft: Record<string, Row>, rsRight: Record<string, Row>): TableComparison {+ const leftIds = Object.keys(rsLeft);+ const rightIds = Object.keys(rsRight);++ const commonIds = leftIds.filter(item => rightIds.includes(item));+ const differingRows: RowDifference[] = [];++ for (const id of commonIds) {+ const left = JSON.stringify(handleBuffer(rsLeft[id]), null, 2);+ const right = JSON.stringify(handleBuffer(rsRight[id]), null, 2);++ if (left !== right) {+ differingRows.push({ id, left, right });+ }+ }++ return {+ table,+ column,+ leftCount: leftIds.length,+ rightCount: rightIds.length,+ missingFromRight: findMissing(leftIds, rightIds),+ missingFromLeft: findMissing(rightIds, leftIds),+ differingRows+ };+}++/**+ * Compares a single table between two open databases. Throws if the query cannot run against+ * either database (e.g. the table does not exist because the two databases use different schema+ * versions); callers that compare across schema versions should handle that per table.+ */+export function compareTable(dbLeft: DatabaseType, dbRight: DatabaseType, comparison: Comparison): TableComparison {+ const { table, column, query } = comparison;++ const rsLeft = sql.getIndexed(dbLeft, column, query);+ const rsRight = sql.getIndexed(dbRight, column, query);++ return compareRows(table, column, rsLeft, rsRight);+}++/** Runs every comparison between two open databases and returns the structured results. */+export function compareDatabases(dbLeft: DatabaseType, dbRight: DatabaseType, comparisons: Comparison[] = COMPARISONS): TableComparison[] {+ return comparisons.map(comparison => compareTable(dbLeft, dbRight, comparison));+}diff --git a/apps/db-compare/src/compare.spec.ts b/apps/db-compare/src/compare.spec.tsnew file mode 100644index 0000000000..d5653ee75c--- /dev/null+++ b/apps/db-compare/src/compare.spec.ts@@ -0,0 +1,150 @@+import Database, { type Database as DatabaseType } from "better-sqlite3";+import { describe, expect, it } from "vitest";++import {+ compareDatabases,+ compareRows,+ compareTable,+ type Comparison,+ COMPARISONS,+ findMissing,+ handleBuffer+} from "./comparator.js";++/** Builds an in-memory database with the (legacy v214) schema the comparison queries expect. */+function createDatabase(): DatabaseType {+ const db = new Database(":memory:");++ db.exec(`+ CREATE TABLE branches (branchId TEXT PRIMARY KEY, noteId TEXT, parentNoteId TEXT, notePosition INT, utcDateModified TEXT, isDeleted INT, prefix TEXT);+ CREATE TABLE notes (noteId TEXT PRIMARY KEY, title TEXT, dateCreated TEXT, utcDateCreated TEXT, isProtected INT, isDeleted INT);+ CREATE TABLE note_contents (noteId TEXT PRIMARY KEY, content);+ CREATE TABLE note_revisions (noteRevisionId TEXT PRIMARY KEY, noteId TEXT, title TEXT, dateCreated TEXT, dateLastEdited TEXT, utcDateCreated TEXT, utcDateLastEdited TEXT, isProtected INT);+ CREATE TABLE note_revision_contents (noteRevisionId TEXT PRIMARY KEY, content);+ CREATE TABLE options (name TEXT PRIMARY KEY, value TEXT, utcDateModified TEXT, isSynced INT);+ CREATE TABLE attributes (attributeId TEXT PRIMARY KEY, noteId TEXT, type TEXT, name TEXT, value TEXT);+ CREATE TABLE etapi_tokens (etapiTokenId TEXT PRIMARY KEY, name TEXT, tokenHash TEXT, utcDateCreated TEXT, utcDateModified TEXT, isDeleted INT);+ CREATE TABLE entity_changes (entityName TEXT, entityId TEXT, hash TEXT, isErased INT, isSynced INT, utcDateChanged TEXT);+ `);++ return db;+}++describe("comparison logic", () => {+ it("findMissing returns items of the first list absent from the second", () => {+ expect(findMissing(["a", "b", "c"], ["b"])).toEqual(["a", "c"]);+ expect(findMissing(["a"], ["a"])).toEqual([]);+ expect(findMissing([], ["a"])).toEqual([]);+ });++ it("handleBuffer stringifies Buffer content but leaves strings untouched", () => {+ expect(handleBuffer({ content: Buffer.from("hello") })).toEqual({ content: "hello" });++ const asString = { content: "already a string" };+ expect(handleBuffer(asString)).toBe(asString);+ expect(asString.content).toBe("already a string");+ });++ it("compareRows reports counts, IDs missing on each side, and differing rows", () => {+ const left = { a: { id: "a", v: 1 }, b: { id: "b", v: 2 }, c: { id: "c", v: 3 } };+ const right = { b: { id: "b", v: 2 }, c: { id: "c", v: 999 }, d: { id: "d", v: 4 } };++ const result = compareRows("notes", "id", left, right);++ expect(result).toMatchObject({+ table: "notes",+ column: "id",+ leftCount: 3,+ rightCount: 3,+ missingFromRight: ["a"],+ missingFromLeft: ["d"]+ });+ // "b" is identical on both sides and must not be reported; "c" differs.+ expect(result.differingRows.map(row => row.id)).toEqual(["c"]);+ expect(result.differingRows[0].left).toContain("\"v\": 3");+ expect(result.differingRows[0].right).toContain("\"v\": 999");+ });++ it("compareRows normalizes Buffer content before diffing, so equal content does not differ", () => {+ const left = { n1: { noteId: "n1", content: Buffer.from("same") } };+ const right = { n1: { noteId: "n1", content: "same" } };++ expect(compareRows("note_contents", "noteId", left, right).differingRows).toEqual([]);+ });+});++describe("compareDatabases (better-sqlite3)", () => {+ it("compares rows read from two databases for a given query", () => {+ const left = createDatabase();+ const right = createDatabase();++ const insertNote = (db: DatabaseType, noteId: string, title: string) =>+ db.prepare("INSERT INTO notes (noteId, title, isDeleted) VALUES (?, ?, 0)").run(noteId, title);++ insertNote(left, "n1", "Left title");+ insertNote(left, "n2", "Only on the left");+ insertNote(right, "n1", "Right title");+ insertNote(right, "n3", "Only on the right");++ const queries: Comparison[] = [+ { table: "notes", column: "noteId", query: "SELECT noteId, title FROM notes WHERE isDeleted = 0" }+ ];++ const [notes] = compareDatabases(left, right, queries);++ expect(notes).toMatchObject({+ table: "notes",+ leftCount: 2,+ rightCount: 2,+ missingFromRight: ["n2"],+ missingFromLeft: ["n3"]+ });+ expect(notes.differingRows.map(row => row.id)).toEqual(["n1"]);++ left.close();+ right.close();+ });++ it("compareTable throws when a table is missing (e.g. databases on different schema versions)", () => {+ const left = createDatabase();+ const right = new Database(":memory:"); // right is missing the `notes` table entirely++ const comparison: Comparison = { table: "notes", column: "noteId", query: "SELECT noteId FROM notes" };++ expect(() => compareTable(left, right, comparison)).toThrowError(/no such table: notes/);++ left.close();+ right.close();+ });++ it("runs every default comparison against the real schema", () => {+ const left = createDatabase();+ const right = createDatabase();++ // An option added only on the right (mirrors options introduced by a migration).+ right.prepare("INSERT INTO options (name, value, isSynced) VALUES ('newOption', '42', 1)").run();+ // Options that are not synced must be excluded by the WHERE clause.+ left.prepare("INSERT INTO options (name, value, isSynced) VALUES ('localOnly', 'x', 0)").run();+ right.prepare("INSERT INTO options (name, value, isSynced) VALUES ('localOnly', 'y', 0)").run();+ // A synced entity change whose hash differs between the two databases.+ left.prepare("INSERT INTO entity_changes (entityName, entityId, hash, isErased, isSynced) VALUES ('notes', 'n1', 'h1', 0, 1)").run();+ right.prepare("INSERT INTO entity_changes (entityName, entityId, hash, isErased, isSynced) VALUES ('notes', 'n1', 'h2', 0, 1)").run();++ const results = compareDatabases(left, right);++ // Every configured table produces a result, proving all the default SQL queries execute.+ expect(results.map(result => result.table)).toEqual(COMPARISONS.map(comparison => comparison.table));++ const options = results.find(result => result.table === "options");+ expect(options?.missingFromLeft).toEqual(["newOption"]);+ // "localOnly" is filtered out by `isSynced = 1` on both sides.+ expect(options?.differingRows).toEqual([]);++ const entityChanges = results.find(result => result.table === "entity_changes");+ // The `entityName || '-' || entityId` expression is used as the unique id.+ expect(entityChanges?.differingRows.map(row => row.id)).toEqual(["notes-n1"]);++ left.close();+ right.close();+ });+});diff --git a/apps/db-compare/src/compare.ts b/apps/db-compare/src/compare.tsindex 64410cafee..aed5bd218b 100644--- a/apps/db-compare/src/compare.ts+++ b/apps/db-compare/src/compare.ts@@ -1,73 +1,55 @@-"use strict";+import "colors";+import Database, { type Database as DatabaseType } from "better-sqlite3";import * as jsDiff from "diff";-import * as sqlite from "sqlite";-import * as sqlite3 from "sqlite3";-import sql from "./sql.js";--import "colors";import path from "path";+import { compareTable, COMPARISONS, type TableComparison } from "./comparator.js";+function printDiff(one: string, two: string) {const diff = jsDiff.diffChars(one, two);- diff.forEach(function(part){+ diff.forEach((part) => {// green for additions, red for deletions// grey for common parts- const color = part.added ? 'green' :- part.removed ? 'red' : 'grey';+ const color = part.added ? "green" :+ part.removed ? "red" : "grey";process.stderr.write(part.value[color]);});console.log("");}-function checkMissing(table: string, name: string, ids1: string[], ids2: string[]) {- const missing = ids1.filter(item => ids2.indexOf(item) < 0);+function printComparison(result: TableComparison) {+ console.log("");+ console.log("--------------------------------------------------------");+ console.log(`${result.table} - ${result.leftCount}/${result.rightCount}`);- if (missing.length > 0) {- console.log("Missing IDs from " + name + " table " + table + ": ", missing);+ if (result.missingFromRight.length > 0) {+ console.log(`Missing IDs from right table ${result.table}: `, result.missingFromRight);}-}-function handleBuffer(obj: { content: Buffer | string }) {- if (obj && Buffer.isBuffer(obj.content)) {- obj.content = obj.content.toString();+ if (result.missingFromLeft.length > 0) {+ console.log(`Missing IDs from left table ${result.table}: `, result.missingFromLeft);}- return obj;+ for (const { id, left, right } of result.differingRows) {+ console.log(`Table ${result.table} row with ${result.column}=${id} differs:`);+ console.log("Left: ", left);+ console.log("Right: ", right);+ printDiff(left, right);+ }}-function compareRows(table: string, rsLeft: Record<string, any>, rsRight: Record<string, any>, column: string) {- const leftIds = Object.keys(rsLeft);- const rightIds = Object.keys(rsRight);-- console.log("");- console.log("--------------------------------------------------------");- console.log(`${table} - ${leftIds.length}/${rightIds.length}`);-- checkMissing(table, "right", leftIds, rightIds);- checkMissing(table, "left", rightIds, leftIds);-- const commonIds = leftIds.filter(item => rightIds.includes(item));-- for (const id of commonIds) {- const valueLeft = handleBuffer(rsLeft[id]);- const valueRight = handleBuffer(rsRight[id]);-- const left = JSON.stringify(valueLeft, null, 2);- const right = JSON.stringify(valueRight, null, 2);+function openDatabase(filePath: string): DatabaseType {+ return new Database(filePath, { readonly: true, fileMustExist: true });+}- if (left !== right) {- console.log("Table " + table + " row with " + column + "=" + id + " differs:");- console.log("Left: ", left);- console.log("Right: ", right);- printDiff(left, right);- }- }+function describeError(e: unknown) {+ return e instanceof Error ? e.message : String(e);}-async function main() {+function main() {const dbLeftPath = process.argv.at(-2);const dbRightPath = process.argv.at(-1);@@ -76,62 +58,41 @@ async function main() {process.exit(1);}- let dbLeft: sqlite.Database;- let dbRight: sqlite.Database;+ let dbLeft: DatabaseType;+ let dbRight: DatabaseType;try {- dbLeft = await sqlite.open({filename: dbLeftPath, driver: sqlite3.Database});- } catch (e: any) {- console.error(`Could not load first database at ${path.resolve(dbRightPath)} due to: ${e.message}`);+ dbLeft = openDatabase(dbLeftPath);+ } catch (e) {+ console.error(`Could not load first database at ${path.resolve(dbLeftPath)} due to: ${describeError(e)}`);process.exit(2);}try {- dbRight = await sqlite.open({filename: dbRightPath, driver: sqlite3.Database});- } catch (e: any) {- console.error(`Could not load second database at ${path.resolve(dbRightPath)} due to: ${e.message}`);+ dbRight = openDatabase(dbRightPath);+ } catch (e) {+ console.error(`Could not load second database at ${path.resolve(dbRightPath)} due to: ${describeError(e)}`);process.exit(3);}- async function compare(table: string, column: string, query: string) {- const rsLeft = await sql.getIndexed(dbLeft, column, query);- const rsRight = await sql.getIndexed(dbRight, column, query);-- compareRows(table, rsLeft, rsRight, column);- }-- await compare("branches", "branchId",- "SELECT branchId, noteId, parentNoteId, notePosition, utcDateModified, isDeleted, prefix FROM branches");-- await compare("notes", "noteId",- "SELECT noteId, title, dateCreated, utcDateCreated, isProtected, isDeleted FROM notes WHERE isDeleted = 0");-- await compare("note_contents", "noteId",- "SELECT note_contents.noteId, note_contents.content FROM note_contents JOIN notes USING(noteId) WHERE isDeleted = 0");-- await compare("note_revisions", "noteRevisionId",- "SELECT noteRevisionId, noteId, title, dateCreated, dateLastEdited, utcDateCreated, utcDateLastEdited, isProtected FROM note_revisions");-- await compare("note_revision_contents", "noteRevisionId",- "SELECT noteRevisionId, content FROM note_revision_contents");+ for (const comparison of COMPARISONS) {+ let result: TableComparison;- await compare("options", "name",- `SELECT name, value, utcDateModified FROM options WHERE isSynced = 1`);-- await compare("attributes", "attributeId",- "SELECT attributeId, noteId, type, name, value FROM attributes");-- await compare("etapi_tokens", "etapiTokenId",- "SELECT etapiTokenId, name, tokenHash, utcDateCreated, utcDateModified, isDeleted FROM etapi_tokens");+ try {+ result = compareTable(dbLeft, dbRight, comparison);+ } catch (e) {+ // The two databases may use different schema versions, so a table present in one might+ // be missing from the other. Skip it rather than aborting the whole comparison.+ console.error(`Skipping table ${comparison.table}: ${describeError(e)}`);+ continue;+ }- await compare("entity_changes", "uniqueId",- "SELECT entityName || '-' || entityId AS uniqueId, hash, isErased, utcDateChanged FROM entity_changes WHERE isSynced = 1");+ printComparison(result);+ }}-(async () => {- try {- await main();- } catch (e) {- console.error(e);- }-})();+try {+ main();+} catch (e) {+ console.error(e);+}diff --git a/apps/db-compare/src/sql.ts b/apps/db-compare/src/sql.tsindex adb03e4eb6..2cd3f054f6 100644--- a/apps/db-compare/src/sql.ts+++ b/apps/db-compare/src/sql.ts@@ -1,90 +1,25 @@-"use strict";+import type { Database } from "better-sqlite3";-import type { Database } from "sqlite";+/** A single database row, keyed by column name. */+export type Row = Record<string, unknown>;-async function getSingleResult(db: Database, query: string, params: any[] = []) {- return await wrap(db, async db => db.get(query, ...params));+function getResults(db: Database, query: string): Row[] {+ return db.prepare(query).all() as Row[];}-async function getSingleResultOrNull(db: Database, query: string, params: any[] = []) {- const all = await wrap(db, async db => db.all(query, ...params));+function getIndexed(db: Database, column: string, query: string): Record<string, Row> {+ const results = getResults(db, query);- return all.length > 0 ? all[0] : null;-}--async function getSingleValue(db: Database, query: string, params: any[] = []) {- const row = await getSingleResultOrNull(db, query, params);-- if (!row) {- return null;- }-- return row[Object.keys(row)[0]];-}--async function getResults(db: Database, query: string, params: any[] = []) {- return await wrap(db, async db => db.all(query, ...params));-}--async function getIndexed(db: Database, column: string, query: string, params: any[] = []) {- const results = await getResults(db, query, params);-- const map: Record<string, any> = {};-- for (const row of results) {- map[row[column]] = row;- }-- return map;-}--async function getMap(db: Database, query: string, params: any[] = []) {- const map: Record<string, any> = {};- const results = await getResults(db, query, params);+ const map: Record<string, Row> = {};for (const row of results) {- const keys = Object.keys(row);-- map[row[keys[0]]] = row[keys[1]];+ map[String(row[column])] = row;}return map;}-async function getFlattenedResults<T>(db: Database, key: string, query: string, params: any[] = []) {- const list: T[] = [];- const result = await getResults(db, query, params);-- for (const row of result) {- list.push(row[key]);- }-- return list;-}--async function execute(db: Database, query: string, params: any[] = []) {- return await wrap(db, async db => db.run(query, ...params));-}--async function wrap<T>(db: Database, func: (db: Database) => Promise<T>) {- const thisError = new Error();-- try {- return await func(db);- } catch (e: any) {- console.error("Error executing query. Inner exception: " + e.stack + thisError.stack);-- throw thisError;- }-}-export default {- getSingleValue,- getSingleResult,- getSingleResultOrNull,getResults,- getIndexed,- getMap,- getFlattenedResults,- execute+ getIndexed};diff --git a/apps/db-compare/vitest.config.ts b/apps/db-compare/vitest.config.tsnew file mode 100644index 0000000000..773d7b9eb3--- /dev/null+++ b/apps/db-compare/vitest.config.ts@@ -0,0 +1,15 @@+import { defineConfig } from "vitest/config";++export default defineConfig({+ test: {+ environment: "node",+ include: ["src/**/*.spec.ts"],+ coverage: {+ provider: "v8",+ include: ["src/**/*.{ts,js}"],+ exclude: ["**/*.{test,spec}.{ts,mts,cts,tsx,js,jsx}", "**/*.d.ts"],+ reporter: ["text", "lcov"],+ reportsDirectory: "./test-output/vitest/coverage"+ }+ }+});diff --git a/pnpm-lock.yaml b/pnpm-lock.yamlindex 88e3370793..4078725de5 100644--- a/pnpm-lock.yaml+++ b/pnpm-lock.yaml@@ -423,18 +423,22 @@ importers:apps/db-compare:dependencies:+ better-sqlite3:+ specifier: 12.10.0+ version: 12.10.0colors:specifier: 1.4.0version: 1.4.0diff:specifier: 9.0.0version: 9.0.0- sqlite:- specifier: 5.1.1- version: 5.1.1- sqlite3:- specifier: 6.0.1- version: 6.0.1+ devDependencies:+ '@types/better-sqlite3':+ specifier: 7.6.13+ version: 7.6.13+ vitest:+ specifier: 4.1.7+ version: 4.1.7(@opentelemetry/[email protected])(@types/[email protected])(@vitest/[email protected])(@vitest/[email protected])(@vitest/[email protected])(@vitest/[email protected])([email protected])([email protected](@types/[email protected])([email protected])([email protected])([email protected])([email protected])([email protected]))apps/desktop:dependencies:@@ -10685,10 +10689,6 @@ packages:resolution: {integrity: sha512-Erq5w/t3syw3s4sDsUaX4QttIdBPsGKTT1DTRsCkTonGggczhlDKm/wDX3o+HPJpQ41EjXCbcmXf0tgr5YZJXw==}engines: {node: '>=22.12.0'}- resolution: {integrity: sha512-9MdFxmkKaOYVTV+XVRG8ArDwwQ77XIgIPyKASB1k3JPq3M8fGQQQE3YpMOrKm6g//Ktx8ivZr8xo1Qmtqub+GA==}- engines: {node: ^18 || ^20 || >= 21}-resolution: {integrity: sha512-2xP/IGGMmmSQpI1+O/k72jF/ykvZ89JeuKX3TLJAYPDVLUalrshrLHkeVcCCZqG/eEa635cr8IBYzgnDvM2O8Q==}@@ -12239,13 +12239,6 @@ packages:resolution: {integrity: sha512-Oo+0REFV59/rz3gfJNKQiBlwfHaSESl1pcGyABQsnnIfWOFt6JNj5gCog2U6MLZ//IGYD+nA8nI+mTShREReaA==}- resolution: {integrity: sha512-X0czUUMG2tmSqJpEQa3tCuZSHKIx8PwM53vLZzKp/o6Rpy25fiVfjdbnZ988M8+O3ZWR1ih0K255VumCb3MAnQ==}- engines: {node: '>=20.17.0'}-- resolution: {integrity: sha512-oBkezXa2hnkfuJwUo44Hl9hS3er+YFtueifoajrgidvqsJRQFpc5fKoAkAor1O5ZnLoa28GBScfHXs8j0K358Q==}-resolution: {integrity: sha512-o57Wcn66jMQvfHG1FlYbWeZWW/dHZhJXjpIcTfXldXEk5nz5lStPo3mK0OJQfGR3RbZUlbISexbljkJzuEj/8Q==}engines: {node: ^12.13.0 || ^14.15.0 || >=16.0.0}@@ -25506,8 +25499,6 @@ snapshots:dependencies:semver: 7.8.0- [email protected]: {}-dependencies:semver: 7.8.0@@ -27348,17 +27339,6 @@ snapshots:optional: true- dependencies:- bindings: 1.5.0- node-addon-api: 8.7.0- prebuild-install: 7.1.3- tar: 7.5.15- optionalDependencies:- node-gyp: 12.3.0-- [email protected]: {}-dependencies:minipass: 3.3.6