@llamaindex/liteparse 1.3.0 → 1.3.1

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,5 +1,5 @@
1
1
  export declare function importPdfJs(): Promise<{
2
2
  fn: any;
3
- dir: import("url").URL;
3
+ dir: string;
4
4
  }>;
5
5
  //# sourceMappingURL=pdfjsImporter.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"pdfjsImporter.d.ts","sourceRoot":"","sources":["../../../../src/engines/pdf/pdfjsImporter.ts"],"names":[],"mappings":"AAAA,wBAAsB,WAAW;;;GAQhC"}
1
+ {"version":3,"file":"pdfjsImporter.d.ts","sourceRoot":"","sources":["../../../../src/engines/pdf/pdfjsImporter.ts"],"names":[],"mappings":"AAGA,wBAAsB,WAAW;;;GAShC"}
@@ -1,9 +1,12 @@
1
+ import { fileURLToPath } from "node:url";
2
+ import { dirname } from "node:path";
1
3
  export async function importPdfJs() {
2
4
  const pdfUrl = new URL("../../vendor/pdfjs/pdf.mjs", import.meta.url);
3
5
  const pdfjs = await import(pdfUrl.href);
6
+ const dirPath = dirname(fileURLToPath(pdfUrl));
4
7
  return {
5
8
  fn: pdfjs.getDocument,
6
- dir: pdfUrl,
9
+ dir: dirPath,
7
10
  };
8
11
  }
9
12
  //# sourceMappingURL=pdfjsImporter.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"pdfjsImporter.js","sourceRoot":"","sources":["../../../../src/engines/pdf/pdfjsImporter.ts"],"names":[],"mappings":"AAAA,MAAM,CAAC,KAAK,UAAU,WAAW;IAC/B,MAAM,MAAM,GAAG,IAAI,GAAG,CAAC,4BAA4B,EAAE,MAAM,CAAC,IAAI,CAAC,GAAG,CAAC,CAAC;IACtE,MAAM,KAAK,GAAG,MAAM,MAAM,CAAC,MAAM,CAAC,IAAI,CAAC,CAAC;IAExC,OAAO;QACL,EAAE,EAAE,KAAK,CAAC,WAAW;QACrB,GAAG,EAAE,MAAM;KACZ,CAAC;AACJ,CAAC"}
1
+ {"version":3,"file":"pdfjsImporter.js","sourceRoot":"","sources":["../../../../src/engines/pdf/pdfjsImporter.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,aAAa,EAAE,MAAM,UAAU,CAAC;AACzC,OAAO,EAAE,OAAO,EAAE,MAAM,WAAW,CAAC;AAEpC,MAAM,CAAC,KAAK,UAAU,WAAW;IAC/B,MAAM,MAAM,GAAG,IAAI,GAAG,CAAC,4BAA4B,EAAE,MAAM,CAAC,IAAI,CAAC,GAAG,CAAC,CAAC;IACtE,MAAM,KAAK,GAAG,MAAM,MAAM,CAAC,MAAM,CAAC,IAAI,CAAC,CAAC;IAExC,MAAM,OAAO,GAAG,OAAO,CAAC,aAAa,CAAC,MAAM,CAAC,CAAC,CAAC;IAC/C,OAAO;QACL,EAAE,EAAE,KAAK,CAAC,WAAW;QACrB,GAAG,EAAE,OAAO;KACb,CAAC;AACJ,CAAC"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@llamaindex/liteparse",
3
- "version": "1.3.0",
3
+ "version": "1.3.1",
4
4
  "description": "Open-source PDF parsing with spatial text extraction and OCR processing",
5
5
  "type": "module",
6
6
  "main": "./dist/src/lib.js",