fix(build): modernize project tooling and package metadata
This commit is contained in:
@@ -0,0 +1,42 @@
|
|||||||
|
{
|
||||||
|
"@git.zone/cli": {
|
||||||
|
"projectType": "npm",
|
||||||
|
"module": {
|
||||||
|
"githost": "code.foss.global",
|
||||||
|
"gitscope": "push.rocks",
|
||||||
|
"gitrepo": "smartantivirus",
|
||||||
|
"description": "A Node.js package providing integration with ClamAV for anti-virus scanning, facilitating both Docker containerized management and direct connection to a ClamAV daemon.",
|
||||||
|
"npmPackagename": "@push.rocks/smartantivirus",
|
||||||
|
"license": "MIT",
|
||||||
|
"keywords": [
|
||||||
|
"antivirus",
|
||||||
|
"Node.js",
|
||||||
|
"ClamAV",
|
||||||
|
"virus scanning",
|
||||||
|
"security",
|
||||||
|
"Docker",
|
||||||
|
"in-memory scanning",
|
||||||
|
"file scanning",
|
||||||
|
"stream scanning",
|
||||||
|
"data protection",
|
||||||
|
"network security",
|
||||||
|
"buffer scanning",
|
||||||
|
"software testing"
|
||||||
|
]
|
||||||
|
},
|
||||||
|
"release": {
|
||||||
|
"registries": [
|
||||||
|
"https://verdaccio.lossless.digital",
|
||||||
|
"https://registry.npmjs.org"
|
||||||
|
],
|
||||||
|
"accessLevel": "public"
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"@git.zone/tsdoc": {
|
||||||
|
"legal": "\n## License and Legal Information\n\nThis repository contains open-source code that is licensed under the MIT License. A copy of the MIT License can be found in the [license](license) file within this repository. \n\n**Please note:** The MIT License does not grant permission to use the trade names, trademarks, service marks, or product names of the project, except as required for reasonable and customary use in describing the origin of the work and reproducing the content of the NOTICE file.\n\n### Trademarks\n\nThis project is owned and maintained by Task Venture Capital GmbH. The names and logos associated with Task Venture Capital GmbH and any related products or services are trademarks of Task Venture Capital GmbH and are not included within the scope of the MIT license granted herein. Use of these trademarks must comply with Task Venture Capital GmbH's Trademark Guidelines, and any usage must be approved in writing by Task Venture Capital GmbH.\n\n### Company Information\n\nTask Venture Capital GmbH \nRegistered at District court Bremen HRB 35230 HB, Germany\n\nFor any legal inquiries or if you require further information, please contact us via email at hello@task.vc.\n\nBy using this repository, you acknowledge that you have read this section, agree to comply with its terms, and understand that the licensing of the code does not imply endorsement by Task Venture Capital GmbH of any derivative works.\n"
|
||||||
|
},
|
||||||
|
"@ship.zone/szci": {
|
||||||
|
"npmGlobalTools": [],
|
||||||
|
"npmRegistryUrl": "registry.npmjs.org"
|
||||||
|
}
|
||||||
|
}
|
||||||
@@ -1,5 +1,12 @@
|
|||||||
# Changelog
|
# Changelog
|
||||||
|
|
||||||
|
## 2026-05-01 - 1.3.3 - fix(build)
|
||||||
|
modernize project tooling and package metadata
|
||||||
|
|
||||||
|
- update build and test toolchain to current @git.zone packages and tapbundle import paths
|
||||||
|
- tighten TypeScript configuration with explicit node types and noImplicitAny-compatible code fixes
|
||||||
|
- refresh package metadata and published files, including smartconfig, license, and registry settings
|
||||||
|
|
||||||
## 2025-08-16 - 1.3.2 - fix(build)
|
## 2025-08-16 - 1.3.2 - fix(build)
|
||||||
Bump dependencies, improve test/build scripts, expand documentation and add project metadata
|
Bump dependencies, improve test/build scripts, expand documentation and add project metadata
|
||||||
|
|
||||||
|
|||||||
@@ -1,4 +1,6 @@
|
|||||||
Copyright (c) 2025 Task Venture Capital GmbH (hello@task.vc)
|
The MIT License (MIT)
|
||||||
|
|
||||||
|
Copyright (c) 2026 Task Venture Capital GmbH
|
||||||
|
|
||||||
Permission is hereby granted, free of charge, to any person obtaining a copy
|
Permission is hereby granted, free of charge, to any person obtaining a copy
|
||||||
of this software and associated documentation files (the "Software"), to deal
|
of this software and associated documentation files (the "Software"), to deal
|
||||||
@@ -16,4 +18,4 @@ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|||||||
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
||||||
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
||||||
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
||||||
SOFTWARE.
|
SOFTWARE.
|
||||||
|
|||||||
+14
-5
@@ -1,5 +1,5 @@
|
|||||||
{
|
{
|
||||||
"gitzone": {
|
"@git.zone/cli": {
|
||||||
"projectType": "npm",
|
"projectType": "npm",
|
||||||
"module": {
|
"module": {
|
||||||
"githost": "code.foss.global",
|
"githost": "code.foss.global",
|
||||||
@@ -8,7 +8,6 @@
|
|||||||
"description": "A Node.js package providing integration with ClamAV for anti-virus scanning, facilitating both Docker containerized management and direct connection to a ClamAV daemon.",
|
"description": "A Node.js package providing integration with ClamAV for anti-virus scanning, facilitating both Docker containerized management and direct connection to a ClamAV daemon.",
|
||||||
"npmPackagename": "@push.rocks/smartantivirus",
|
"npmPackagename": "@push.rocks/smartantivirus",
|
||||||
"license": "MIT",
|
"license": "MIT",
|
||||||
"projectDomain": "push.rocks",
|
|
||||||
"keywords": [
|
"keywords": [
|
||||||
"antivirus",
|
"antivirus",
|
||||||
"Node.js",
|
"Node.js",
|
||||||
@@ -24,10 +23,20 @@
|
|||||||
"buffer scanning",
|
"buffer scanning",
|
||||||
"software testing"
|
"software testing"
|
||||||
]
|
]
|
||||||
|
},
|
||||||
|
"release": {
|
||||||
|
"registries": [
|
||||||
|
"https://verdaccio.lossless.digital",
|
||||||
|
"https://registry.npmjs.org"
|
||||||
|
],
|
||||||
|
"accessLevel": "public"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"npmci": {
|
"@git.zone/tsdoc": {
|
||||||
|
"legal": "\n## License and Legal Information\n\nThis repository contains open-source code that is licensed under the MIT License. A copy of the MIT License can be found in the [license](license) file within this repository. \n\n**Please note:** The MIT License does not grant permission to use the trade names, trademarks, service marks, or product names of the project, except as required for reasonable and customary use in describing the origin of the work and reproducing the content of the NOTICE file.\n\n### Trademarks\n\nThis project is owned and maintained by Task Venture Capital GmbH. The names and logos associated with Task Venture Capital GmbH and any related products or services are trademarks of Task Venture Capital GmbH and are not included within the scope of the MIT license granted herein. Use of these trademarks must comply with Task Venture Capital GmbH's Trademark Guidelines, and any usage must be approved in writing by Task Venture Capital GmbH.\n\n### Company Information\n\nTask Venture Capital GmbH \nRegistered at District court Bremen HRB 35230 HB, Germany\n\nFor any legal inquiries or if you require further information, please contact us via email at hello@task.vc.\n\nBy using this repository, you acknowledge that you have read this section, agree to comply with its terms, and understand that the licensing of the code does not imply endorsement by Task Venture Capital GmbH of any derivative works.\n"
|
||||||
|
},
|
||||||
|
"@ship.zone/szci": {
|
||||||
"npmGlobalTools": [],
|
"npmGlobalTools": [],
|
||||||
"npmAccessLevel": "public"
|
"npmRegistryUrl": "registry.npmjs.org"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
+16
-19
@@ -6,37 +6,32 @@
|
|||||||
"main": "dist_ts/index.js",
|
"main": "dist_ts/index.js",
|
||||||
"typings": "dist_ts/index.d.ts",
|
"typings": "dist_ts/index.d.ts",
|
||||||
"type": "module",
|
"type": "module",
|
||||||
"author": "Task Venture Capital GmbH",
|
"author": "Task Venture Capital GmbH <hello@task.vc>",
|
||||||
"license": "MIT",
|
"license": "MIT",
|
||||||
"scripts": {
|
"scripts": {
|
||||||
"test": "(tstest test/ --web --verbose --logfile --timeout 120)",
|
"test": "tstest test/ --verbose --timeout 120",
|
||||||
"build": "(tsbuild --web --allowimplicitany)",
|
"build": "tsbuild --web",
|
||||||
"buildDocs": "(tsdoc)"
|
"format": "gitzone format",
|
||||||
|
"buildDocs": "tsdoc"
|
||||||
},
|
},
|
||||||
"devDependencies": {
|
"devDependencies": {
|
||||||
"@git.zone/tsbuild": "^2.6.4",
|
"@git.zone/tsbuild": "^4.4.0",
|
||||||
"@git.zone/tsbundle": "^2.5.1",
|
"@git.zone/tsrun": "^2.0.3",
|
||||||
"@git.zone/tsrun": "^1.2.46",
|
"@git.zone/tstest": "^3.6.3",
|
||||||
"@git.zone/tstest": "^2.3.4",
|
"@types/node": "^25.6.0"
|
||||||
"@push.rocks/tapbundle": "^6.0.3",
|
|
||||||
"@types/node": "^24.3.0",
|
|
||||||
"typescript": "^5.9.2"
|
|
||||||
},
|
},
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"@push.rocks/smartfile": "^11.2.5",
|
|
||||||
"@push.rocks/smartpath": "^6.0.0",
|
"@push.rocks/smartpath": "^6.0.0",
|
||||||
"@push.rocks/smartstream": "^3.2.5",
|
"@push.rocks/smartstream": "^3.4.2"
|
||||||
"axios": "^1.11.0",
|
|
||||||
"tar": "^7.4.3"
|
|
||||||
},
|
},
|
||||||
"repository": {
|
"repository": {
|
||||||
"type": "git",
|
"type": "git",
|
||||||
"url": "git+https://code.foss.global/push.rocks/smartantivirus.git"
|
"url": "https://code.foss.global/push.rocks/smartantivirus.git"
|
||||||
},
|
},
|
||||||
"bugs": {
|
"bugs": {
|
||||||
"url": "https://code.foss.global/push.rocks/smartantivirus/issues"
|
"url": "https://gitlab.com/push.rocks/smartantivirus/issues"
|
||||||
},
|
},
|
||||||
"homepage": "https://code.foss.global/push.rocks/smartantivirus#readme",
|
"homepage": "https://code.foss.global/push.rocks/smartantivirus",
|
||||||
"files": [
|
"files": [
|
||||||
"ts/**/*",
|
"ts/**/*",
|
||||||
"ts_web/**/*",
|
"ts_web/**/*",
|
||||||
@@ -46,6 +41,8 @@
|
|||||||
"dist_ts_web/**/*",
|
"dist_ts_web/**/*",
|
||||||
"assets/**/*",
|
"assets/**/*",
|
||||||
"cli.js",
|
"cli.js",
|
||||||
|
".smartconfig.json",
|
||||||
|
"license",
|
||||||
"npmextra.json",
|
"npmextra.json",
|
||||||
"readme.md"
|
"readme.md"
|
||||||
],
|
],
|
||||||
@@ -64,5 +61,5 @@
|
|||||||
"buffer scanning",
|
"buffer scanning",
|
||||||
"software testing"
|
"software testing"
|
||||||
],
|
],
|
||||||
"packageManager": "pnpm@10.14.0+sha512.ad27a79641b49c3e481a16a805baa71817a04bbe06a38d17e60e2eaee83f6a146c6a688125f5792e48dd5ba30e7da52a5cda4c3992b9ccf333f9ce223af84748"
|
"packageManager": "pnpm@10.28.2"
|
||||||
}
|
}
|
||||||
|
|||||||
Generated
+3264
-5813
File diff suppressed because it is too large
Load Diff
@@ -1,4 +1,4 @@
|
|||||||
import { expect, tap } from '@push.rocks/tapbundle';
|
import { expect, tap } from '@git.zone/tstest/tapbundle';
|
||||||
import type { ClamAVLogEvent } from '../ts/classes.clamav.manager.js';
|
import type { ClamAVLogEvent } from '../ts/classes.clamav.manager.js';
|
||||||
import { setupClamAV, cleanupClamAV, getManager } from './helpers/clamav.helper.js';
|
import { setupClamAV, cleanupClamAV, getManager } from './helpers/clamav.helper.js';
|
||||||
|
|
||||||
@@ -70,4 +70,4 @@ tap.test('cleanup', async () => {
|
|||||||
await cleanupClamAV();
|
await cleanupClamAV();
|
||||||
});
|
});
|
||||||
|
|
||||||
tap.start();
|
export default tap.start();
|
||||||
|
|||||||
+2
-5
@@ -1,4 +1,4 @@
|
|||||||
import { tap, expect } from '@push.rocks/tapbundle';
|
import { tap, expect } from '@git.zone/tstest/tapbundle';
|
||||||
import * as smartantivirus from '../ts/index.js';
|
import * as smartantivirus from '../ts/index.js';
|
||||||
import { setupClamAV, cleanupClamAV } from './helpers/clamav.helper.js';
|
import { setupClamAV, cleanupClamAV } from './helpers/clamav.helper.js';
|
||||||
|
|
||||||
@@ -34,7 +34,4 @@ tap.test('cleanup', async () => {
|
|||||||
await cleanupClamAV();
|
await cleanupClamAV();
|
||||||
});
|
});
|
||||||
|
|
||||||
tap.start();
|
export default tap.start();
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
@@ -3,6 +3,6 @@
|
|||||||
*/
|
*/
|
||||||
export const commitinfo = {
|
export const commitinfo = {
|
||||||
name: '@push.rocks/smartantivirus',
|
name: '@push.rocks/smartantivirus',
|
||||||
version: '1.3.2',
|
version: '1.3.3',
|
||||||
description: 'A Node.js package providing integration with ClamAV for anti-virus scanning, facilitating both Docker containerized management and direct connection to a ClamAV daemon.'
|
description: 'A Node.js package providing integration with ClamAV for anti-virus scanning, facilitating both Docker containerized management and direct connection to a ClamAV daemon.'
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -110,8 +110,11 @@ export class ClamAVManager extends EventEmitter {
|
|||||||
}
|
}
|
||||||
} catch (error) {
|
} catch (error) {
|
||||||
// Check if the error is due to freshclam already running
|
// Check if the error is due to freshclam already running
|
||||||
if (error.stderr?.includes('ERROR: Problem with internal logger') ||
|
const execError = error as { stderr?: string; stdout?: string };
|
||||||
error.stdout?.includes('Resource temporarily unavailable')) {
|
if (
|
||||||
|
execError.stderr?.includes('ERROR: Problem with internal logger') ||
|
||||||
|
execError.stdout?.includes('Resource temporarily unavailable')
|
||||||
|
) {
|
||||||
console.log('Freshclam is already running, skipping manual update');
|
console.log('Freshclam is already running, skipping manual update');
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
@@ -153,7 +156,7 @@ export class ClamAVManager extends EventEmitter {
|
|||||||
|
|
||||||
logProcess.stdout.on('data', (data) => {
|
logProcess.stdout.on('data', (data) => {
|
||||||
const lines = data.toString().split('\n');
|
const lines = data.toString().split('\n');
|
||||||
lines.forEach(line => {
|
lines.forEach((line: string) => {
|
||||||
if (!line.trim()) return;
|
if (!line.trim()) return;
|
||||||
|
|
||||||
const event: ClamAVLogEvent = {
|
const event: ClamAVLogEvent = {
|
||||||
@@ -255,7 +258,8 @@ export class ClamAVManager extends EventEmitter {
|
|||||||
// Service not ready yet, will retry
|
// Service not ready yet, will retry
|
||||||
if (checkCount >= maxChecks) {
|
if (checkCount >= maxChecks) {
|
||||||
cleanup();
|
cleanup();
|
||||||
reject(new Error(`ClamAV initialization timed out after ${maxChecks} seconds. Last error: ${error.message}`));
|
const errorMessage = error instanceof Error ? error.message : String(error);
|
||||||
|
reject(new Error(`ClamAV initialization timed out after ${maxChecks} seconds. Last error: ${errorMessage}`));
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
checkCount++;
|
checkCount++;
|
||||||
|
|||||||
+2
-11
@@ -17,26 +17,17 @@ export {
|
|||||||
EventEmitter,
|
EventEmitter,
|
||||||
net,
|
net,
|
||||||
http,
|
http,
|
||||||
https
|
https,
|
||||||
};
|
};
|
||||||
|
|
||||||
// @push.rocks scope
|
// @push.rocks scope
|
||||||
import * as smartpath from '@push.rocks/smartpath';
|
import * as smartpath from '@push.rocks/smartpath';
|
||||||
import * as smartfile from '@push.rocks/smartfile';
|
|
||||||
import * as smartstream from '@push.rocks/smartstream';
|
import * as smartstream from '@push.rocks/smartstream';
|
||||||
|
|
||||||
export {
|
export {
|
||||||
smartpath,
|
smartpath,
|
||||||
smartfile,
|
|
||||||
smartstream,
|
smartstream,
|
||||||
};
|
};
|
||||||
|
|
||||||
// Third party scope
|
|
||||||
import axios from 'axios';
|
|
||||||
|
|
||||||
export {
|
|
||||||
axios
|
|
||||||
};
|
|
||||||
|
|
||||||
// Common utilities
|
// Common utilities
|
||||||
export const execAsync = promisify(exec);
|
export const execAsync = promisify(exec);
|
||||||
|
|||||||
+4
-6
@@ -5,12 +5,10 @@
|
|||||||
"target": "ES2022",
|
"target": "ES2022",
|
||||||
"module": "NodeNext",
|
"module": "NodeNext",
|
||||||
"moduleResolution": "NodeNext",
|
"moduleResolution": "NodeNext",
|
||||||
|
"noImplicitAny": true,
|
||||||
"esModuleInterop": true,
|
"esModuleInterop": true,
|
||||||
"verbatimModuleSyntax": true,
|
"verbatimModuleSyntax": true,
|
||||||
"baseUrl": ".",
|
"types": ["node"]
|
||||||
"paths": {}
|
|
||||||
},
|
},
|
||||||
"exclude": [
|
"exclude": ["dist_*/**/*.d.ts"]
|
||||||
"dist_*/**/*.d.ts"
|
}
|
||||||
]
|
|
||||||
}
|
|
||||||
|
|||||||
Reference in New Issue
Block a user