pompelmi 0.13.0-dev.16 → 0.13.0-dev.17
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +20 -3
- package/package.json +6 -2
package/README.md
CHANGED
|
@@ -16,15 +16,16 @@
|
|
|
16
16
|
<img alt="node" src="https://img.shields.io/badge/node-%3E%3D18-339933?logo=node.js&logoColor=white">
|
|
17
17
|
<img alt="types" src="https://img.shields.io/badge/types-TypeScript-3178C6?logo=typescript&logoColor=white">
|
|
18
18
|
<a href="https://github.com/pompelmi/pompelmi/blob/main/LICENSE"><img alt="license" src="https://img.shields.io/npm/l/pompelmi"></a>
|
|
19
|
-
<a href="https://app.codecov.io/gh/pompelmi/pompelmi"><img alt="coverage" src="https://
|
|
19
|
+
<a href="https://app.codecov.io/gh/pompelmi/pompelmi"><img alt="coverage (core)" src="https://img.shields.io/codecov/c/github/pompelmi/pompelmi?branch=main&label=coverage%20(core)&cacheSeconds=300"/></a>
|
|
20
20
|
<a href="https://github.com/pompelmi/pompelmi/stargazers"><img alt="GitHub stars" src="https://img.shields.io/github/stars/pompelmi/pompelmi?style=social"></a>
|
|
21
21
|
<a href="https://github.com/pompelmi/pompelmi/actions/workflows/ci-release-publish.yml"><img alt="CI / Release / Publish" src="https://img.shields.io/github/actions/workflow/status/pompelmi/pompelmi/ci-release-publish.yml?branch=main&label=CI%20%2F%20Release%20%2F%20Publish"></a>
|
|
22
22
|
<a href="https://github.com/pompelmi/pompelmi/issues"><img alt="open issues" src="https://img.shields.io/github/issues/pompelmi/pompelmi"></a>
|
|
23
23
|
<img alt="PRs welcome" src="https://img.shields.io/badge/PRs-welcome-brightgreen.svg">
|
|
24
24
|
</p>
|
|
25
25
|
|
|
26
|
-
<p align="center">
|
|
27
|
-
|
|
26
|
+
<p align="center"><em>Coverage badge reflects core library (<code>src/**</code>); adapters are measured separately.</em></p>
|
|
27
|
+
|
|
28
|
+
<p align="center"><a href="https://pompelmi.github.io/pompelmi/">Documentation</a> ·
|
|
28
29
|
<a href="#installation">Install</a> ·
|
|
29
30
|
<a href="#quick-start">Quick‑start</a> ·
|
|
30
31
|
<a href="#github-action">GitHub Action</a> ·
|
|
@@ -403,6 +404,22 @@ Archives are traversed with limits to reduce archive‑bomb risk. Keep your size
|
|
|
403
404
|
|
|
404
405
|
---
|
|
405
406
|
|
|
407
|
+
## Tests & Coverage
|
|
408
|
+
|
|
409
|
+
Run tests locally with coverage:
|
|
410
|
+
|
|
411
|
+
```bash
|
|
412
|
+
pnpm vitest run --coverage --passWithNoTests
|
|
413
|
+
```
|
|
414
|
+
|
|
415
|
+
The badge tracks the **core library** (`src/**`). Adapters and engines are reported separately for now and will be folded into global coverage as their suites grow.
|
|
416
|
+
|
|
417
|
+
If you integrate Codecov in CI, upload `coverage/lcov.info` and you can use this Shields badge (cached 5 minutes):
|
|
418
|
+
|
|
419
|
+
```md
|
|
420
|
+
[&cacheSeconds=300)](https://codecov.io/gh/pompelmi/pompelmi)
|
|
421
|
+
```
|
|
422
|
+
|
|
406
423
|
## Contributing
|
|
407
424
|
|
|
408
425
|
PRs and issues welcome! Start with:
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "pompelmi",
|
|
3
|
-
"version": "0.13.0-dev.
|
|
3
|
+
"version": "0.13.0-dev.17",
|
|
4
4
|
"description": "RFI-safe file uploads for Node.js — Express/Koa/Next.js middleware with deep ZIP inspection, MIME/size checks, and optional YARA scanning.",
|
|
5
5
|
"main": "dist/pompelmi.cjs.js",
|
|
6
6
|
"module": "dist/pompelmi.esm.js",
|
|
@@ -57,7 +57,9 @@
|
|
|
57
57
|
"@types/node": "^24.3.0",
|
|
58
58
|
"@types/react": "^19.1.8",
|
|
59
59
|
"@types/react-dom": "^19.1.6",
|
|
60
|
+
"@types/supertest": "^6.0.3",
|
|
60
61
|
"@types/unzipper": "^0.10.11",
|
|
62
|
+
"@vitest/coverage-v8": "^2",
|
|
61
63
|
"cors": "^2.8.5",
|
|
62
64
|
"express": "^5.1.0",
|
|
63
65
|
"gh-pages": "^6.3.0",
|
|
@@ -66,10 +68,12 @@
|
|
|
66
68
|
"react-dom": "^18.0.0",
|
|
67
69
|
"rollup": "^4.x",
|
|
68
70
|
"rollup-plugin-peer-deps-external": "^2.2.4",
|
|
71
|
+
"supertest": "^7.0.0",
|
|
69
72
|
"tslib": "^2.8.1",
|
|
70
73
|
"tsx": "^4.20.3",
|
|
71
74
|
"typescript": "^5.9.2",
|
|
72
|
-
"vitest": "2.1.9"
|
|
75
|
+
"vitest": "2.1.9",
|
|
76
|
+
"yazl": "^3.3.1"
|
|
73
77
|
},
|
|
74
78
|
"dependencies": {
|
|
75
79
|
"file-type": "^21.0.0",
|