@uploadista/flow-security-nodes 0.1.4-beta.1 → 1.0.0-beta.2

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,30 +1,30 @@
1
1
 
2
- > @uploadista/flow-security-nodes@0.1.4-beta.1 build /home/runner/work/uploadista-sdk/uploadista-sdk/packages/flow/security/nodes
2
+ > @uploadista/flow-security-nodes@1.0.0-beta.2 build /home/runner/work/uploadista-sdk/uploadista-sdk/packages/flow/security/nodes
3
3
  > tsc --noEmit && tsdown
4
4
 
5
- ℹ tsdown v0.20.1 powered by rolldown v1.0.0-rc.1
5
+ ℹ tsdown v0.20.3 powered by rolldown v1.0.0-rc.3
6
6
  ℹ config file: /home/runner/work/uploadista-sdk/uploadista-sdk/packages/flow/security/nodes/tsdown.config.ts
7
7
  ℹ entry: src/index.ts
8
8
  ℹ tsconfig: tsconfig.json
9
9
  ℹ Build start
10
- ℹ [CJS] dist/index.cjs 1.23 kB │ gzip: 0.69 kB
11
- ℹ [CJS] 1 files, total: 1.23 kB
12
- [PLUGIN_TIMINGS] Warning: Your build spent significant time in plugin `tsdown:external`. See https://rolldown.rs/options/checks#plugintimings for more details.
10
+ ℹ [CJS] dist/index.cjs 1.29 kB │ gzip: 0.73 kB
11
+ ℹ [CJS] 1 files, total: 1.29 kB
12
+ [PLUGIN_TIMINGS] Warning: Your build spent significant time in plugins. Here is a breakdown:
13
+ - tsdown:external (50%)
14
+ - tsdown:report (50%)
15
+ See https://rolldown.rs/options/checks#plugintimings for more details.
13
16
 
14
17
  ℹ [ESM] dist/index.mjs 1.26 kB │ gzip: 0.73 kB
15
18
  ℹ [ESM] dist/index.mjs.map 5.64 kB │ gzip: 2.19 kB
16
19
  ℹ [ESM] dist/index.d.mts.map 0.48 kB │ gzip: 0.27 kB
17
20
  ℹ [ESM] dist/index.d.mts 3.29 kB │ gzip: 1.21 kB
18
21
  ℹ [ESM] 4 files, total: 10.67 kB
19
- ✔ Build complete in 11675ms
20
22
  [PLUGIN_TIMINGS] Warning: Your build spent significant time in plugin `rolldown-plugin-dts:generate`. See https://rolldown.rs/options/checks#plugintimings for more details.
21
23
 
24
+ ✔ Build complete in 12387ms
22
25
  ℹ [CJS] dist/index.d.cts.map 0.48 kB │ gzip: 0.27 kB
23
26
  ℹ [CJS] dist/index.d.cts 3.29 kB │ gzip: 1.20 kB
24
27
  ℹ [CJS] 2 files, total: 3.77 kB
25
- [PLUGIN_TIMINGS] Warning: Your build spent significant time in plugins. Here is a breakdown:
26
- - rolldown-plugin-dts:generate (66%)
27
- - rolldown-plugin-dts:resolver (29%)
28
- See https://rolldown.rs/options/checks#plugintimings for more details.
28
+ [PLUGIN_TIMINGS] Warning: Your build spent significant time in plugin `rolldown-plugin-dts:generate`. See https://rolldown.rs/options/checks#plugintimings for more details.
29
29
 
30
- ✔ Build complete in 11685ms
30
+ ✔ Build complete in 12424ms
package/dist/index.cjs CHANGED
@@ -1 +1 @@
1
- let e=require(`@uploadista/core/errors`),t=require(`@uploadista/core/flow`),n=require(`effect`),r=require(`zod`);const i=r.z.enum([`fail`,`pass`]),a=r.z.object({action:i.default(`fail`),timeout:r.z.number().min(1e3).max(3e5).optional().default(6e4)});function o(r,i={action:`fail`,timeout:6e4},o){return n.Effect.gen(function*(){let s=yield*t.VirusScanPlugin,c=a.parse(i);return yield*(0,t.createTransformNode)({id:r,name:`Scan Virus`,description:`Scans files for viruses and malware using ClamAV`,nodeTypeId:`scan-virus`,outputTypeId:t.STORAGE_OUTPUT_TYPE_ID,keepOutput:o?.keepOutput,circuitBreaker:{enabled:!0,failureThreshold:5,resetTimeout:6e4,fallback:{type:`fail`}},transform:(t,r)=>n.Effect.gen(function*(){let n=yield*s.scan(t),i=yield*s.getVersion(),a={scanned:!0,isClean:n.isClean,detectedViruses:n.detectedViruses,scanDate:new Date().toISOString(),engineVersion:i,definitionsDate:new Date().toISOString()};if(!n.isClean){let t=`Virus detected: ${n.detectedViruses.join(`, `)}`;if(c.action===`fail`)return yield*(0,e.httpFailure)(`VIRUS_DETECTED`,{body:t,details:{scanMetadata:a}})}return{bytes:t,metadata:{...r.metadata,virusScan:a}}})})})}exports.ScanAction=i,exports.ScanVirusParams=a,exports.createScanVirusNode=o;
1
+ Object.defineProperty(exports,Symbol.toStringTag,{value:`Module`});let e=require(`@uploadista/core/errors`),t=require(`@uploadista/core/flow`),n=require(`effect`),r=require(`zod`);const i=r.z.enum([`fail`,`pass`]),a=r.z.object({action:i.default(`fail`),timeout:r.z.number().min(1e3).max(3e5).optional().default(6e4)});function o(r,i={action:`fail`,timeout:6e4},o){return n.Effect.gen(function*(){let s=yield*t.VirusScanPlugin,c=a.parse(i);return yield*(0,t.createTransformNode)({id:r,name:`Scan Virus`,description:`Scans files for viruses and malware using ClamAV`,nodeTypeId:`scan-virus`,outputTypeId:t.STORAGE_OUTPUT_TYPE_ID,keepOutput:o?.keepOutput,circuitBreaker:{enabled:!0,failureThreshold:5,resetTimeout:6e4,fallback:{type:`fail`}},transform:(t,r)=>n.Effect.gen(function*(){let n=yield*s.scan(t),i=yield*s.getVersion(),a={scanned:!0,isClean:n.isClean,detectedViruses:n.detectedViruses,scanDate:new Date().toISOString(),engineVersion:i,definitionsDate:new Date().toISOString()};if(!n.isClean){let t=`Virus detected: ${n.detectedViruses.join(`, `)}`;if(c.action===`fail`)return yield*(0,e.httpFailure)(`VIRUS_DETECTED`,{body:t,details:{scanMetadata:a}})}return{bytes:t,metadata:{...r.metadata,virusScan:a}}})})})}exports.ScanAction=i,exports.ScanVirusParams=a,exports.createScanVirusNode=o;
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.cts","names":[],"sources":["../src/scan-virus-node.ts"],"mappings":";;;;;;;;;;;;cAaa,UAAA,EAAU,CAAA,CAAA,OAAA;;;;KACX,UAAA,GAAa,CAAA,CAAE,KAAA,QAAa,UAAA;;;;cAK3B,eAAA,EAAe,CAAA,CAAA,SAAA;;;;;;;KAgBhB,eAAA,GAAkB,CAAA,CAAE,KAAA,QAAa,eAAA;;;;;;;AAhB7C;;;;;;;;;;;;;;;;;;;;;;iBA8CgB,mBAAA,CACd,EAAA,UACA,MAAA,GAAQ,eAAA,EACR,OAAA;EAAY,UAAA;AAAA,IAAsB,MAAA,CAAA,MAAA,CAD0B,sBAAA,CAC1B,YAAA;yBAAA,uBAAA,CAAA,UAAA;;;;;;;aAqEw+7M,MAAA;;iEAAA,uBAAA,CAAA,UAAA"}
1
+ {"version":3,"file":"index.d.cts","names":[],"sources":["../src/scan-virus-node.ts"],"mappings":";;;;;;;;;;;;cAaa,UAAA,EAAU,CAAA,CAAA,OAAA;;;;KACX,UAAA,GAAa,CAAA,CAAE,KAAA,QAAa,UAAA;;;;cAK3B,eAAA,EAAe,CAAA,CAAA,SAAA;;;;;;;KAgBhB,eAAA,GAAkB,CAAA,CAAE,KAAA,QAAa,eAAA;;;;;;;AAhB7C;;;;;;;;;;;;;;;;;;;;;;iBA8CgB,mBAAA,CACd,EAAA,UACA,MAAA,GAAQ,eAAA,EACR,OAAA;EAAY,UAAA;AAAA,IAAsB,MAAA,CAAA,MAAA,CAD0B,sBAAA,CAC1B,YAAA;yBAAA,uBAAA,CAAA,UAAA;;;;;;;aAqEkgnE,MAAA;;iEAAA,uBAAA,CAAA,UAAA"}
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.mts","names":[],"sources":["../src/scan-virus-node.ts"],"mappings":";;;;;;;;;;;;cAaa,UAAA,EAAU,CAAA,CAAA,OAAA;;;;KACX,UAAA,GAAa,CAAA,CAAE,KAAA,QAAa,UAAA;;;;cAK3B,eAAA,EAAe,CAAA,CAAA,SAAA;;;;;;;KAgBhB,eAAA,GAAkB,CAAA,CAAE,KAAA,QAAa,eAAA;;;;;;;AAhB7C;;;;;;;;;;;;;;;;;;;;;;iBA8CgB,mBAAA,CACd,EAAA,UACA,MAAA,GAAQ,eAAA,EACR,OAAA;EAAY,UAAA;AAAA,IAAsB,MAAA,CAAA,MAAA,CAD0B,sBAAA,CAC1B,YAAA;yBAAA,uBAAA,CAAA,UAAA;;;;;;;aAqEw+7M,MAAA;;iEAAA,uBAAA,CAAA,UAAA"}
1
+ {"version":3,"file":"index.d.mts","names":[],"sources":["../src/scan-virus-node.ts"],"mappings":";;;;;;;;;;;;cAaa,UAAA,EAAU,CAAA,CAAA,OAAA;;;;KACX,UAAA,GAAa,CAAA,CAAE,KAAA,QAAa,UAAA;;;;cAK3B,eAAA,EAAe,CAAA,CAAA,SAAA;;;;;;;KAgBhB,eAAA,GAAkB,CAAA,CAAE,KAAA,QAAa,eAAA;;;;;;;AAhB7C;;;;;;;;;;;;;;;;;;;;;;iBA8CgB,mBAAA,CACd,EAAA,UACA,MAAA,GAAQ,eAAA,EACR,OAAA;EAAY,UAAA;AAAA,IAAsB,MAAA,CAAA,MAAA,CAD0B,sBAAA,CAC1B,YAAA;yBAAA,uBAAA,CAAA,UAAA;;;;;;;aAqEkgnE,MAAA;;iEAAA,uBAAA,CAAA,UAAA"}
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@uploadista/flow-security-nodes",
3
3
  "type": "module",
4
- "version": "0.1.4-beta.1",
4
+ "version": "1.0.0-beta.2",
5
5
  "description": "Security processing nodes for Uploadista Flow",
6
6
  "license": "MIT",
7
7
  "author": "Uploadista",
@@ -14,7 +14,7 @@
14
14
  }
15
15
  },
16
16
  "dependencies": {
17
- "@uploadista/core": "0.1.4-beta.1"
17
+ "@uploadista/core": "1.0.0-beta.2"
18
18
  },
19
19
  "peerDependencies": {
20
20
  "effect": "^3.0.0",
@@ -23,11 +23,11 @@
23
23
  "devDependencies": {
24
24
  "@effect/vitest": "0.27.0",
25
25
  "@types/node": "24.10.9",
26
- "effect": "3.19.15",
27
- "tsdown": "0.20.1",
26
+ "effect": "3.19.19",
27
+ "tsdown": "0.20.3",
28
28
  "vitest": "4.0.18",
29
29
  "zod": "4.3.6",
30
- "@uploadista/typescript-config": "0.1.4-beta.1"
30
+ "@uploadista/typescript-config": "1.0.0-beta.2"
31
31
  },
32
32
  "scripts": {
33
33
  "build": "tsc --noEmit && tsdown",