@uploadista/flow-security-clamscan 0.1.0-beta.5 → 0.1.0

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.
@@ -1,23 +1,21 @@
1
-
2
- 
3
- > @uploadista/flow-security-clamscan@0.1.0-beta.4 build /Users/denislaboureyras/Documents/uploadista/dev/uploadista-workspace/uploadista-sdk/packages/flow/security/clamscan
4
- > tsc --noEmit && tsdown
5
-
6
- ℹ tsdown v0.19.0 powered by rolldown v1.0.0-beta.59
7
- ℹ config file: /Users/denislaboureyras/Documents/uploadista/dev/uploadista-workspace/uploadista-sdk/packages/flow/security/clamscan/tsdown.config.ts
8
- ℹ entry: src/index.ts
9
- ℹ tsconfig: tsconfig.json
10
- ℹ Build start
11
- ℹ Cleaning 7 files
12
- ℹ [CJS] dist/index.cjs 2.89 kB │ gzip: 1.22 kB
13
- ℹ [CJS] 1 files, total: 2.89 kB
14
- ℹ [CJS] dist/index.d.cts.map 0.25 kB │ gzip: 0.17 kB
15
- ℹ [CJS] dist/index.d.cts 1.68 kB │ gzip: 0.73 kB
16
- ℹ [CJS] 2 files, total: 1.92 kB
17
- ✔ Build complete in 6173ms
18
- ℹ [ESM] dist/index.mjs 2.27 kB │ gzip: 0.97 kB
19
- ℹ [ESM] dist/index.mjs.map 9.40 kB │ gzip: 2.93 kB
20
- ℹ [ESM] dist/index.d.mts.map 0.25 kB │ gzip: 0.17 kB
21
- ℹ [ESM] dist/index.d.mts 1.68 kB │ gzip: 0.73 kB
22
- ℹ [ESM] 4 files, total: 13.59 kB
23
- ✔ Build complete in 6202ms
1
+
2
+ > @uploadista/flow-security-clamscan@0.1.0 build /home/runner/work/uploadista-sdk/uploadista-sdk/packages/flow/security/clamscan
3
+ > tsc --noEmit && tsdown
4
+
5
+ ℹ tsdown v0.19.0 powered by rolldown v1.0.0-beta.59
6
+ ℹ config file: /home/runner/work/uploadista-sdk/uploadista-sdk/packages/flow/security/clamscan/tsdown.config.ts
7
+ ℹ entry: src/index.ts
8
+ ℹ tsconfig: tsconfig.json
9
+ ℹ Build start
10
+ ℹ [CJS] dist/index.cjs 2.89 kB │ gzip: 1.22 kB
11
+ ℹ [CJS] 1 files, total: 2.89 kB
12
+ ℹ [ESM] dist/index.mjs 2.27 kB │ gzip: 0.97 kB
13
+ ℹ [ESM] dist/index.mjs.map 9.40 kB │ gzip: 2.93 kB
14
+ ℹ [ESM] dist/index.d.mts.map 0.25 kB │ gzip: 0.17 kB
15
+ ℹ [ESM] dist/index.d.mts 1.68 kB │ gzip: 0.73 kB
16
+ ℹ [ESM] 4 files, total: 13.59 kB
17
+ ✔ Build complete in 27670ms
18
+ ℹ [CJS] dist/index.d.cts.map 0.25 kB │ gzip: 0.17 kB
19
+ ℹ [CJS] dist/index.d.cts 1.68 kB │ gzip: 0.73 kB
20
+ ℹ [CJS] 2 files, total: 1.92 kB
21
+ ✔ Build complete in 27669ms
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@uploadista/flow-security-clamscan",
3
3
  "type": "module",
4
- "version": "0.1.0-beta.5",
4
+ "version": "0.1.0",
5
5
  "description": "ClamAV virus scanning plugin for Uploadista Flow",
6
6
  "license": "MIT",
7
7
  "author": "Uploadista",
@@ -15,8 +15,8 @@
15
15
  },
16
16
  "dependencies": {
17
17
  "clamscan": "^2.3.3",
18
- "@uploadista/core": "0.1.0-beta.5",
19
- "@uploadista/observability": "0.1.0-beta.5"
18
+ "@uploadista/core": "0.1.0",
19
+ "@uploadista/observability": "0.1.0"
20
20
  },
21
21
  "peerDependencies": {
22
22
  "effect": "^3.0.0",
@@ -29,7 +29,7 @@
29
29
  "tsdown": "0.19.0",
30
30
  "vitest": "4.0.17",
31
31
  "zod": "4.3.5",
32
- "@uploadista/typescript-config": "0.1.0-beta.5"
32
+ "@uploadista/typescript-config": "0.1.0"
33
33
  },
34
34
  "scripts": {
35
35
  "build": "tsc --noEmit && tsdown",
@@ -1,6 +0,0 @@
1
-
2
- 
3
- > @uploadista/flow-security-clamscan@0.1.0-beta.2 check /Users/denislaboureyras/Documents/uploadista/dev/uploadista-workspace/uploadista-sdk/packages/flow/security/clamscan
4
- > biome check --write ./src
5
-
6
- Checked 3 files in 57ms. No fixes applied.
@@ -1,136 +0,0 @@
1
-
2
- 
3
- > @uploadista/flow-security-clamscan@0.1.0-beta.2 test /Users/denislaboureyras/Documents/uploadista/dev/uploadista-workspace/uploadista-sdk/packages/flow/security/clamscan
4
- > vitest run
5
-
6
- [?25l
7
-  RUN  v4.0.17 /Users/denislaboureyras/Documents/uploadista/dev/uploadista-workspace/uploadista-sdk/packages/flow/security/clamscan
8
-
9
- [?2026h
10
-  ❯ tests/clamscan-plugin.test.ts [queued]
11
-
12
-  Test Files 0 passed (1)
13
-  Tests 0 passed (0)
14
-  Start at 16:59:24
15
-  Duration 424ms
16
- [?2026l[?2026h
17
-  ❯ tests/clamscan-plugin.test.ts [queued]
18
-
19
-  Test Files 0 passed (1)
20
-  Tests 0 passed (0)
21
-  Start at 16:59:24
22
-  Duration 954ms
23
- [?2026l[?2026h
24
-  ❯ tests/clamscan-plugin.test.ts [queued]
25
-
26
-  Test Files 0 passed (1)
27
-  Tests 0 passed (0)
28
-  Start at 16:59:24
29
-  Duration 2.14s
30
- [?2026l[?2026h
31
-  ❯ tests/clamscan-plugin.test.ts [queued]
32
-
33
-  Test Files 0 passed (1)
34
-  Tests 0 passed (0)
35
-  Start at 16:59:24
36
-  Duration 3.10s
37
- [?2026l[?2026h
38
-  ❯ tests/clamscan-plugin.test.ts [queued]
39
-
40
-  Test Files 0 passed (1)
41
-  Tests 0 passed (0)
42
-  Start at 16:59:24
43
-  Duration 4.07s
44
- [?2026l[?2026h
45
-  ❯ tests/clamscan-plugin.test.ts [queued]
46
-
47
-  Test Files 0 passed (1)
48
-  Tests 0 passed (0)
49
-  Start at 16:59:24
50
-  Duration 5.11s
51
- [?2026l[?2026h
52
-  ❯ tests/clamscan-plugin.test.ts 0/25
53
-
54
-  Test Files 0 passed (1)
55
-  Tests 0 passed (25)
56
-  Start at 16:59:24
57
-  Duration 5.64s
58
- [?2026l[?2026h
59
-  ❯ tests/clamscan-plugin.test.ts 1/25
60
-
61
-  Test Files 0 passed (1)
62
-  Tests 1 passed (25)
63
-  Start at 16:59:24
64
-  Duration 5.84s
65
- [?2026l[?2026h
66
-  ❯ tests/clamscan-plugin.test.ts 8/25
67
-
68
-  Test Files 0 passed (1)
69
-  Tests 8 passed (25)
70
-  Start at 16:59:24
71
-  Duration 6.05s
72
- [?2026l[?2026h
73
-  ❯ tests/clamscan-plugin.test.ts 9/25
74
-
75
-  Test Files 0 passed (1)
76
-  Tests 9 passed (25)
77
-  Start at 16:59:24
78
-  Duration 6.16s
79
- [?2026l[?2026h
80
-  ❯ tests/clamscan-plugin.test.ts 20/25
81
-
82
-  Test Files 0 passed (1)
83
-  Tests 20 passed (25)
84
-  Start at 16:59:24
85
-  Duration 6.26s
86
- [?2026l[?2026h
87
-  ❯ tests/clamscan-plugin.test.ts 24/25
88
-
89
-  Test Files 0 passed (1)
90
-  Tests 24 passed (25)
91
-  Start at 16:59:24
92
-  Duration 6.36s
93
- [?2026l ✓ tests/clamscan-plugin.test.ts (25 tests) 628ms
94
- ✓ ClamScan Virus Plugin (25)
95
- ✓ virusScanPlugin factory (2)
96
- ✓ should create a plugin layer with default configuration 9ms
97
- ✓ should create a plugin layer with custom configuration 6ms
98
- ✓ scan method (5)
99
- ✓ should return clean result for non-infected file 87ms
100
- ✓ should return infected result with virus names 14ms
101
- ✓ should handle null virus array for infected files 15ms
102
- ✓ should handle binary data correctly 10ms
103
- ✓ should handle large file data 18ms
104
- ✓ getVersion method (3)
105
- ✓ should return ClamAV version string 45ms
106
- ✓ should return 'Unknown' when version is undefined 5ms
107
- ✓ should return 'Unknown' when version is empty 3ms
108
- ✓ error handling (3)
109
- ✓ should fail with CLAMAV_NOT_INSTALLED when initialization fails 24ms
110
- ✓ should fail with VIRUS_SCAN_FAILED when scan fails 48ms
111
- ✓ should fail with VIRUS_SCAN_FAILED when getVersion fails 1ms
112
- ✓ configuration options (6)
113
- ✓ should accept clamdscan preference 0ms
114
- ✓ should accept clamscan preference 0ms
115
- ✓ should accept socket configuration for clamd 0ms
116
- ✓ should accept TCP host and port for clamd 0ms
117
- ✓ should accept debug mode configuration 0ms
118
- ✓ should accept remove_infected configuration 0ms
119
- ✓ EICAR test file detection (1)
120
- ✓ should detect EICAR test file as infected 40ms
121
- ✓ temporary file handling (2)
122
- ✓ should clean up temporary files after successful scan 18ms
123
- ✓ should clean up temporary files even when scan fails 27ms
124
- ✓ lazy initialization (1)
125
- ✓ should initialize scanner lazily on first use 23ms
126
- ✓ multiple virus detection (1)
127
- ✓ should report multiple viruses when detected 85ms
128
- ✓ empty file handling (1)
129
- ✓ should handle empty file input 32ms
130
-
131
-  Test Files  1 passed (1)
132
-  Tests  25 passed (25)
133
-  Start at  16:59:24
134
-  Duration  6.49s (transform 1.52s, setup 0ms, import 5.22s, tests 628ms, environment 0ms)
135
-
136
- [?25h