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