Skip to content

Commit d21695e

Browse files
fix: update @nodesecure/scanner to v10 (#490)
1 parent 2a949f7 commit d21695e

4 files changed

Lines changed: 4 additions & 4 deletions

File tree

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ This project is designed to generate periodic security reports in both HTML and
2020

2121
## Features
2222

23-
- Automatically clones and scans Git repositories using **scanner.cwd**.
23+
- Automatically clones and scans Git repositories using **scanner.workingDir**.
2424
- Provides a visual overview of **security threats** and quality issues for multiple Git or NPM packages.
2525
- Facilitates visualization of changes over time.
2626
- Generates reports in both **HTML** and **PDF** formats.

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,7 @@
5454
"@nodesecure/flags": "^3.0.3",
5555
"@nodesecure/ossf-scorecard-sdk": "^3.2.1",
5656
"@nodesecure/rc": "^5.0.0",
57-
"@nodesecure/scanner": "^9.0.0",
57+
"@nodesecure/scanner": "^10.0.0",
5858
"@nodesecure/utils": "^2.2.0",
5959
"@openally/mutex": "^2.0.0",
6060
"@topcli/spinner": "^4.0.0",

src/analysis/scanner.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@ export async function cwd(
4545

4646
try {
4747
const name = `${path.basename(dir)}.json`;
48-
const { dependencies } = await scanner.cwd(dir, {
48+
const { dependencies } = await scanner.workingDir(dir, {
4949
maxDepth: 4,
5050
vulnerabilityStrategy: "none"
5151
});

test/api/report.spec.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -188,7 +188,7 @@ PDF or HTML for packages that don't have a scorecard`, async() => {
188188
});
189189
});
190190

191-
function isPDF(buf) {
191+
function isPDF(buf: Buffer) {
192192
return (
193193
Buffer.isBuffer(buf) && buf.lastIndexOf("%PDF-") === 0 && buf.lastIndexOf("%%EOF") > -1
194194
);

0 commit comments

Comments
 (0)