@elizaos/plugin-pdf 2.0.0-alpha.14 → 2.0.0-alpha.16

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,20 +1,16 @@
1
1
  var __defProp = Object.defineProperty;
2
- var __returnValue = (v) => v;
3
- function __exportSetter(name, newValue) {
4
- this[name] = __returnValue.bind(null, newValue);
5
- }
6
2
  var __export = (target, all) => {
7
3
  for (var name in all)
8
4
  __defProp(target, name, {
9
5
  get: all[name],
10
6
  enumerable: true,
11
7
  configurable: true,
12
- set: __exportSetter.bind(all, name)
8
+ set: (newValue) => all[name] = () => newValue
13
9
  });
14
10
  };
15
11
  var __esm = (fn, res) => () => (fn && (res = fn(fn = 0)), res);
16
12
 
17
- // ../node_modules/.bun/unpdf@1.4.0+b49fa9fdb04b5b62/node_modules/unpdf/dist/pdfjs.mjs
13
+ // node_modules/unpdf/dist/pdfjs.mjs
18
14
  var exports_pdfjs = {};
19
15
  __export(exports_pdfjs, {
20
16
  version: () => lh,
@@ -38289,7 +38285,7 @@ var init_pdfjs = __esm(() => {
38289
38285
  // services/pdf.ts
38290
38286
  import { logger, Service, ServiceType } from "@elizaos/core";
38291
38287
 
38292
- // ../node_modules/.bun/unpdf@1.4.0+b49fa9fdb04b5b62/node_modules/unpdf/dist/index.mjs
38288
+ // node_modules/unpdf/dist/index.mjs
38293
38289
  var resolvedModule;
38294
38290
  var isNode = globalThis.process?.release?.name === "node";
38295
38291
  async function getDocumentProxy(data, options = {}) {
@@ -38378,7 +38374,7 @@ class PdfService extends Service {
38378
38374
  return service;
38379
38375
  }
38380
38376
  static async stop(runtime) {
38381
- const service = runtime.getService(ServiceType.PDF);
38377
+ const service = await runtime.getService(ServiceType.PDF);
38382
38378
  if (service) {
38383
38379
  await service.stop();
38384
38380
  }
@@ -38502,4 +38498,4 @@ export {
38502
38498
  PdfService
38503
38499
  };
38504
38500
 
38505
- //# debugId=786B1DAE6C9DAE3664756E2164756E21
38501
+ //# debugId=C4087FF84868624864756E2164756E21