@helloxiaohu/plugin-mineru 0.0.14 → 0.0.15

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 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AACxB,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,sBAAsB,CAAC;AAcxD,QAAA,MAAM,YAAY,gDAChB,CAAC;AAEH,QAAA,MAAM,MAAM,EAAE,WAAW,CAAC,CAAC,CAAC,KAAK,CAAC,OAAO,YAAY,CAAC,CA4BrD,CAAC;AAEF,eAAe,MAAM,CAAC"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AACxB,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,sBAAsB,CAAC;AAexD,QAAA,MAAM,YAAY,gDAChB,CAAC;AAEH,QAAA,MAAM,MAAM,EAAE,WAAW,CAAC,CAAC,CAAC,KAAK,CAAC,OAAO,YAAY,CAAC,CA4BrD,CAAC;AAEF,eAAe,MAAM,CAAC"}
package/dist/index.js CHANGED
@@ -1,11 +1,12 @@
1
1
  import { z } from 'zod';
2
2
  import { readFileSync } from 'fs';
3
- import { join } from 'path';
3
+ import { fileURLToPath } from 'url';
4
+ import { dirname, join } from 'path';
4
5
  import { MinerUPlugin } from './lib/mineru.plugin.js';
5
6
  import { icon } from './lib/types.js';
6
- import { getModuleMeta } from './lib/path-meta.js';
7
- const { __filename, __dirname } = getModuleMeta(import.meta);
8
- const packageJson = JSON.parse(readFileSync(join(__dirname, '../package.json'), 'utf8'));
7
+ const __filename = fileURLToPath(import.meta.url);
8
+ const dir_name = dirname(__filename);
9
+ const packageJson = JSON.parse(readFileSync(join(dir_name, '../package.json'), 'utf8'));
9
10
  const ConfigSchema = z.object({});
10
11
  const plugin = {
11
12
  meta: {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@helloxiaohu/plugin-mineru",
3
- "version": "0.0.14",
3
+ "version": "0.0.15",
4
4
  "license": "AGPL-3.0",
5
5
  "description": "MinerU PDF to Markdown converter plugin for XpertAI platform with toolset support",
6
6
  "keywords": [
@@ -34,6 +34,7 @@
34
34
  },
35
35
  "files": [
36
36
  "dist",
37
+ "package.json",
37
38
  "!**/*.tsbuildinfo"
38
39
  ],
39
40
  "dependencies": {