From 03ee540a6dcadc22238fff2935b759a916818662 Mon Sep 17 00:00:00 2001 From: fraxken Date: Mon, 22 Dec 2025 15:43:28 +0100 Subject: [PATCH] chore: update js-x-ray to v11.x.x --- .changeset/tough-years-play.md | 6 ++++++ workspaces/rc/package.json | 2 +- workspaces/scanner/package.json | 2 +- workspaces/tarball/package.json | 2 +- workspaces/tarball/src/class/SourceCodeScanner.class.ts | 5 ++--- workspaces/tree-walker/package.json | 2 +- 6 files changed, 12 insertions(+), 7 deletions(-) create mode 100644 .changeset/tough-years-play.md diff --git a/.changeset/tough-years-play.md b/.changeset/tough-years-play.md new file mode 100644 index 00000000..54d4539b --- /dev/null +++ b/.changeset/tough-years-play.md @@ -0,0 +1,6 @@ +--- +"@nodesecure/scanner": major +"@nodesecure/tarball": major +--- + +Update JS-X-Ray to major v11 diff --git a/workspaces/rc/package.json b/workspaces/rc/package.json index a72fad95..73c7cd66 100644 --- a/workspaces/rc/package.json +++ b/workspaces/rc/package.json @@ -45,7 +45,7 @@ "ajv": "6.12.6" }, "dependencies": { - "@nodesecure/js-x-ray": "^10.0.0", + "@nodesecure/js-x-ray": "11.0.1", "@nodesecure/npm-types": "^1.2.0", "@nodesecure/vulnera": "^2.0.1", "@openally/config": "^1.0.1", diff --git a/workspaces/scanner/package.json b/workspaces/scanner/package.json index 219843e4..2c3a2ae6 100644 --- a/workspaces/scanner/package.json +++ b/workspaces/scanner/package.json @@ -68,7 +68,7 @@ "@nodesecure/contact": "^3.0.0", "@nodesecure/flags": "^3.0.3", "@nodesecure/i18n": "^4.0.2", - "@nodesecure/js-x-ray": "^10.0.0", + "@nodesecure/js-x-ray": "11.0.1", "@nodesecure/mama": "^2.0.2", "@nodesecure/npm-registry-sdk": "^4.4.0", "@nodesecure/npm-types": "^1.3.0", diff --git a/workspaces/tarball/package.json b/workspaces/tarball/package.json index d51e4a27..ec603b03 100644 --- a/workspaces/tarball/package.json +++ b/workspaces/tarball/package.json @@ -47,7 +47,7 @@ "dependencies": { "@nodesecure/conformance": "^1.2.0", "@nodesecure/fs-walk": "^2.0.0", - "@nodesecure/js-x-ray": "^10.0.0", + "@nodesecure/js-x-ray": "11.0.1", "@nodesecure/mama": "^2.0.0", "@nodesecure/npm-types": "^1.2.0", "@nodesecure/utils": "^2.3.0", diff --git a/workspaces/tarball/src/class/SourceCodeScanner.class.ts b/workspaces/tarball/src/class/SourceCodeScanner.class.ts index 6679ee20..d80b0351 100644 --- a/workspaces/tarball/src/class/SourceCodeScanner.class.ts +++ b/workspaces/tarball/src/class/SourceCodeScanner.class.ts @@ -201,7 +201,7 @@ export class SourceCodeScanner< const { location, - document: { name: packageName, type } + document: { name: packageName } } = this.manifest; await Promise.allSettled( @@ -210,8 +210,7 @@ export class SourceCodeScanner< const fileReport = await this.#astAnalyser.analyseFile( filePath, { - packageName, - module: type === "module" + packageName } ); diff --git a/workspaces/tree-walker/package.json b/workspaces/tree-walker/package.json index 1991d363..c50786cf 100644 --- a/workspaces/tree-walker/package.json +++ b/workspaces/tree-walker/package.json @@ -37,7 +37,7 @@ }, "homepage": "https://github.com/NodeSecure/tree/master/workspaces/tree-walker#readme", "dependencies": { - "@nodesecure/js-x-ray": "^10.0.0", + "@nodesecure/js-x-ray": "11.0.1", "@nodesecure/npm-registry-sdk": "^4.0.0", "@nodesecure/npm-types": "^1.1.0", "@npmcli/arborist": "^9.0.2",