@credal/actions 0.2.136 → 0.2.137

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/dist/utils/pdf.js CHANGED
@@ -11,9 +11,9 @@ import DOMMatrix from "@thednp/dommatrix";
11
11
  // Set global DOMMatrix
12
12
  // eslint-disable-next-line @typescript-eslint/no-explicit-any
13
13
  global.DOMMatrix = DOMMatrix;
14
- import { getDocument } from "pdfjs-dist/legacy/build/pdf.mjs";
15
14
  export function extractTextFromPdf(input) {
16
15
  return __awaiter(this, void 0, void 0, function* () {
16
+ const { getDocument } = yield import("pdfjs-dist/legacy/build/pdf.mjs");
17
17
  // Convert Buffer or ArrayBuffer -> plain Uint8Array
18
18
  const data = input instanceof Uint8Array && !(typeof Buffer !== "undefined" && Buffer.isBuffer(input))
19
19
  ? input
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@credal/actions",
3
- "version": "0.2.136",
3
+ "version": "0.2.137",
4
4
  "type": "module",
5
5
  "description": "AI Actions by Credal AI",
6
6
  "sideEffects": false,