@uploadista/flow-documents-nodes 0.1.3 → 0.2.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,44 +1,41 @@
1
1
 
2
- > @uploadista/flow-documents-nodes@0.1.3 build /home/runner/work/uploadista-sdk/uploadista-sdk/packages/flow/documents/nodes
2
+ > @uploadista/flow-documents-nodes@0.2.0 build /home/runner/work/uploadista-sdk/uploadista-sdk/packages/flow/documents/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/documents/nodes/tsdown.config.ts
7
7
  ℹ entry: src/index.ts, src/types/index.ts
8
8
  ℹ tsconfig: tsconfig.json
9
9
  ℹ Build start
10
- ℹ [CJS] dist/index.cjs 11.65 kB │ gzip: 2.80 kB
11
- ℹ [CJS] dist/types/index.cjs  0.25 kB │ gzip: 0.15 kB
12
- ℹ [CJS] dist/types-Cz0s5Dxw.cjs  1.09 kB │ gzip: 0.36 kB
13
- ℹ [CJS] 3 files, total: 12.99 kB
10
+ ℹ [CJS] dist/index.cjs 11.75 kB │ gzip: 2.86 kB
11
+ ℹ [CJS] dist/types/index.cjs  0.33 kB │ gzip: 0.21 kB
12
+ ℹ [CJS] dist/split-pdf-node-Bz85H5mE.cjs  1.09 kB │ gzip: 0.36 kB
13
+ ℹ [CJS] 3 files, total: 13.17 kB
14
14
  [PLUGIN_TIMINGS] Warning: Your build spent significant time in plugin `tsdown:external`. See https://rolldown.rs/options/checks#plugintimings for more details.
15
15
 
16
- ℹ [CJS] dist/index.d.cts.map  2.30 kB │ gzip: 0.41 kB
17
- ℹ [CJS] dist/index-CC_AxLer.d.cts.map  0.86 kB │ gzip: 0.34 kB
18
- ℹ [CJS] dist/index.d.cts 36.62 kB │ gzip: 2.00 kB
19
- ℹ [CJS] dist/types/index.d.cts  0.63 kB │ gzip: 0.23 kB
20
- ℹ [CJS] dist/index-CC_AxLer.d.cts  2.33 kB │ gzip: 0.64 kB
21
- ℹ [CJS] 5 files, total: 42.74 kB
22
- [PLUGIN_TIMINGS] Warning: Your build spent significant time in plugins. Here is a breakdown:
23
- - rolldown-plugin-dts:resolver (73%)
24
- - rolldown-plugin-dts:generate (24%)
25
- See https://rolldown.rs/options/checks#plugintimings for more details.
16
+ ℹ [CJS] dist/index.d.cts.map  2.30 kB │ gzip: 0.41 kB
17
+ ℹ [CJS] dist/split-pdf-node-lXy-nLE3.d.cts.map  0.87 kB │ gzip: 0.35 kB
18
+ ℹ [CJS] dist/index.d.cts 36.62 kB │ gzip: 2.01 kB
19
+ ℹ [CJS] dist/types/index.d.cts  0.67 kB │ gzip: 0.26 kB
20
+ ℹ [CJS] dist/split-pdf-node-lXy-nLE3.d.cts  2.34 kB │ gzip: 0.64 kB
21
+ ℹ [CJS] 5 files, total: 42.80 kB
22
+ [PLUGIN_TIMINGS] Warning: Your build spent significant time in plugin `rolldown-plugin-dts:resolver`. See https://rolldown.rs/options/checks#plugintimings for more details.
26
23
 
27
- ✔ Build complete in 17615ms
28
- ℹ [ESM] dist/index.mjs 10.28 kB │ gzip: 2.87 kB
29
- ℹ [ESM] dist/types/index.mjs  0.25 kB │ gzip: 0.17 kB
30
- ℹ [ESM] dist/index.mjs.map 38.38 kB │ gzip: 6.57 kB
31
- ℹ [ESM] dist/types-B9hxQ57l.mjs.map  2.55 kB │ gzip: 0.75 kB
32
- ℹ [ESM] dist/index.d.mts.map  2.30 kB │ gzip: 0.41 kB
33
- ℹ [ESM] dist/index-BUVU_SCU.d.mts.map  0.86 kB │ gzip: 0.34 kB
34
- ℹ [ESM] dist/types-B9hxQ57l.mjs  0.70 kB │ gzip: 0.35 kB
35
- ℹ [ESM] dist/index.d.mts 36.62 kB │ gzip: 2.00 kB
36
- ℹ [ESM] dist/types/index.d.mts  0.63 kB │ gzip: 0.24 kB
37
- ℹ [ESM] dist/index-BUVU_SCU.d.mts  2.33 kB │ gzip: 0.64 kB
38
- ℹ [ESM] 10 files, total: 94.90 kB
24
+ ✔ Build complete in 17212ms
25
+ ℹ [ESM] dist/index.mjs 10.32 kB │ gzip: 2.88 kB
26
+ ℹ [ESM] dist/types/index.mjs  0.26 kB │ gzip: 0.17 kB
27
+ ℹ [ESM] dist/index.mjs.map 38.38 kB │ gzip: 6.57 kB
28
+ ℹ [ESM] dist/split-pdf-node-lCLhevrT.mjs.map  2.56 kB │ gzip: 0.76 kB
29
+ ℹ [ESM] dist/index.d.mts.map  2.30 kB │ gzip: 0.41 kB
30
+ ℹ [ESM] dist/split-pdf-node-BX6rgXm6.d.mts.map  0.87 kB │ gzip: 0.35 kB
31
+ ℹ [ESM] dist/split-pdf-node-lCLhevrT.mjs  0.71 kB │ gzip: 0.35 kB
32
+ ℹ [ESM] dist/index.d.mts 36.64 kB │ gzip: 2.02 kB
33
+ ℹ [ESM] dist/types/index.d.mts  0.67 kB │ gzip: 0.26 kB
34
+ ℹ [ESM] dist/split-pdf-node-BX6rgXm6.d.mts  2.34 kB │ gzip: 0.64 kB
35
+ ℹ [ESM] 10 files, total: 95.04 kB
39
36
  [PLUGIN_TIMINGS] Warning: Your build spent significant time in plugins. Here is a breakdown:
40
- - rolldown-plugin-dts:generate (72%)
41
- - rolldown-plugin-dts:resolver (22%)
37
+ - rolldown-plugin-dts:generate (76%)
38
+ - rolldown-plugin-dts:fake-js (18%)
42
39
  See https://rolldown.rs/options/checks#plugintimings for more details.
43
40
 
44
- ✔ Build complete in 17644ms
41
+ ✔ Build complete in 17228ms
package/dist/index.cjs CHANGED
@@ -1,4 +1,4 @@
1
- const e=require(`./types-Cz0s5Dxw.cjs`);let t=require(`@uploadista/core/errors`),n=require(`@uploadista/core/flow`),r=require(`@uploadista/core/types`),i=require(`@uploadista/core/upload`),a=require(`effect`),o=require(`zod`);function s(e,o={}){return a.Effect.gen(function*(){let s=yield*n.DocumentPlugin,c=yield*n.DocumentAiPlugin,l=yield*i.UploadEngine;return yield*(0,n.createFlowNode)({id:e,name:`Convert to Markdown`,description:`Convert documents to Markdown format (intelligently uses OCR if needed)`,type:n.NodeType.process,nodeTypeId:`convert-to-markdown`,outputTypeId:n.STORAGE_OUTPUT_TYPE_ID,keepOutput:o.keepOutput,inputSchema:r.uploadFileSchema,outputSchema:r.uploadFileSchema,circuitBreaker:{enabled:!0,failureThreshold:5,resetTimeout:6e4,fallback:{type:`skip`,passThrough:!0}},run:({data:r,flowId:i,jobId:u,clientId:d})=>a.Effect.gen(function*(){let f={flowId:i,nodeId:e,jobId:u};yield*a.Effect.logInfo(`Converting file ${r.id} to Markdown`);let p=yield*l.read(r.id,d),m=yield*s.extractText(p).pipe(a.Effect.either),h,g;if(a.Either.isRight(m)&&m.right.trim().length>0){let e=m.right;yield*a.Effect.logInfo(`Successfully extracted ${e.length} characters from searchable PDF`),h=e.split(`
1
+ Object.defineProperty(exports,Symbol.toStringTag,{value:`Module`});const e=require(`./split-pdf-node-Bz85H5mE.cjs`);require(`./types/index.cjs`);let t=require(`@uploadista/core/errors`),n=require(`@uploadista/core/flow`),r=require(`@uploadista/core/types`),i=require(`@uploadista/core/upload`),a=require(`effect`),o=require(`zod`);function s(e,o={}){return a.Effect.gen(function*(){let s=yield*n.DocumentPlugin,c=yield*n.DocumentAiPlugin,l=yield*i.UploadEngine;return yield*(0,n.createFlowNode)({id:e,name:`Convert to Markdown`,description:`Convert documents to Markdown format (intelligently uses OCR if needed)`,type:n.NodeType.process,nodeTypeId:`convert-to-markdown`,outputTypeId:n.STORAGE_OUTPUT_TYPE_ID,keepOutput:o.keepOutput,inputSchema:r.uploadFileSchema,outputSchema:r.uploadFileSchema,circuitBreaker:{enabled:!0,failureThreshold:5,resetTimeout:6e4,fallback:{type:`skip`,passThrough:!0}},run:({data:r,flowId:i,jobId:u,clientId:d})=>a.Effect.gen(function*(){let f={flowId:i,nodeId:e,jobId:u};yield*a.Effect.logInfo(`Converting file ${r.id} to Markdown`);let p=yield*l.read(r.id,d),m=yield*s.extractText(p).pipe(a.Effect.either),h,g;if(a.Either.isRight(m)&&m.right.trim().length>0){let e=m.right;yield*a.Effect.logInfo(`Successfully extracted ${e.length} characters from searchable PDF`),h=e.split(`
2
2
 
3
3
  `).map(e=>e.trim()).filter(e=>e.length>0).join(`
4
4