From 81deab19540787aa8b210d9f59292cbc509d3841 Mon Sep 17 00:00:00 2001 From: Xavier Abad <77491413+xabg2@users.noreply.github.com> Date: Thu, 16 Jan 2025 12:37:23 +0100 Subject: [PATCH 1/2] fix: actions --- .github/workflows/publish.yml | 7 +++++-- package.json | 2 +- 2 files changed, 6 insertions(+), 3 deletions(-) diff --git a/.github/workflows/publish.yml b/.github/workflows/publish.yml index e7b9e31..5df91f7 100644 --- a/.github/workflows/publish.yml +++ b/.github/workflows/publish.yml @@ -1,4 +1,4 @@ -name: Publish package in github package registry +name: Publish Scan package in github package registry on: release: types: [created] @@ -7,6 +7,9 @@ on: jobs: build: runs-on: ubuntu-latest + strategy: + matrix: + node-version: [22.12.0] permissions: contents: read packages: write @@ -15,7 +18,7 @@ jobs: # Setup .npmrc file to publish to GitHub Packages - uses: actions/setup-node@v2 with: - node-version: '20.x' + node-version: ${{matrix.node-version}} registry-url: 'https://npm.pkg.github.com' - run: yarn env: diff --git a/package.json b/package.json index 0234848..b210006 100755 --- a/package.json +++ b/package.json @@ -32,7 +32,7 @@ ], "license": "MIT", "engines": { - "node": ">=16.0.0" + "node": ">=18.0.0" }, "devDependencies": { "@babel/eslint-parser": "^7.19.1", From e12062ace3adefc5c85a0365f9b25b7784115860 Mon Sep 17 00:00:00 2001 From: Xavier Abad <77491413+xabg2@users.noreply.github.com> Date: Thu, 16 Jan 2025 12:50:42 +0100 Subject: [PATCH 2/2] fix: minor changes --- index.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/index.js b/index.js index 7750f3d..54d6acb 100755 --- a/index.js +++ b/index.js @@ -1687,7 +1687,7 @@ class NodeClam { const { isInfected, viruses } = self._processResult(stdout, path); if (err) { - // Error code 1 means viruses were found... + // Error code 1 means viruses were found if (Object.prototype.hasOwnProperty.call(err, 'code') && err.code === 1) { return hasCb ? endCb(null, [], [path], viruses)