@digipair/skill-markitdown 0.113.1 → 0.114.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.
- package/README.md +7 -0
- package/{index.cjs.js → dist/index.cjs.js} +1 -5
- package/{index.esm.js → dist/index.esm.js} +1 -3
- package/{libs/skill-markitdown → dist}/src/index.d.ts +1 -0
- package/dist/src/index.d.ts.map +1 -0
- package/{libs/skill-markitdown → dist}/src/lib/skill-markitdown.d.ts +1 -0
- package/dist/src/lib/skill-markitdown.d.ts.map +1 -0
- package/package.json +26 -5
- package/index.d.ts +0 -1
- /package/{index.cjs.d.ts → dist/index.d.ts} +0 -0
- /package/{schema.fr.json → dist/schema.fr.json} +0 -0
- /package/{schema.json → dist/schema.json} +0 -0
package/README.md
ADDED
|
@@ -1,14 +1,10 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
|
-
|
|
5
3
|
var child_process = require('child_process');
|
|
6
4
|
|
|
7
5
|
let MaikitdownService = class MaikitdownService {
|
|
8
6
|
async convert(params, _pinsSettingsList, context) {
|
|
9
|
-
|
|
10
|
-
var _context_privates_MARKITDOWN_PATH, _ref;
|
|
11
|
-
const { file, path = (_ref = (_context_privates_MARKITDOWN_PATH = (_context_privates = context.privates) == null ? void 0 : _context_privates.MARKITDOWN_PATH) != null ? _context_privates_MARKITDOWN_PATH : process.env['MARKITDOWN_PATH']) != null ? _ref : 'markitdown' } = params;
|
|
7
|
+
const { file, path = context.privates?.MARKITDOWN_PATH ?? process.env['MARKITDOWN_PATH'] ?? 'markitdown' } = params;
|
|
12
8
|
return new Promise((resolve, reject)=>{
|
|
13
9
|
// Spawn the markitdown process
|
|
14
10
|
const markitdown = child_process.spawn(path);
|
|
@@ -2,9 +2,7 @@ import { spawn } from 'child_process';
|
|
|
2
2
|
|
|
3
3
|
let MaikitdownService = class MaikitdownService {
|
|
4
4
|
async convert(params, _pinsSettingsList, context) {
|
|
5
|
-
|
|
6
|
-
var _context_privates_MARKITDOWN_PATH, _ref;
|
|
7
|
-
const { file, path = (_ref = (_context_privates_MARKITDOWN_PATH = (_context_privates = context.privates) == null ? void 0 : _context_privates.MARKITDOWN_PATH) != null ? _context_privates_MARKITDOWN_PATH : process.env['MARKITDOWN_PATH']) != null ? _ref : 'markitdown' } = params;
|
|
5
|
+
const { file, path = context.privates?.MARKITDOWN_PATH ?? process.env['MARKITDOWN_PATH'] ?? 'markitdown' } = params;
|
|
8
6
|
return new Promise((resolve, reject)=>{
|
|
9
7
|
// Spawn the markitdown process
|
|
10
8
|
const markitdown = spawn(path);
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/index.ts"],"names":[],"mappings":"AAAA,cAAc,wBAAwB,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"skill-markitdown.d.ts","sourceRoot":"","sources":["../../../src/lib/skill-markitdown.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,YAAY,EAAE,MAAM,kBAAkB,CAAC;AA0ChD,eAAO,MAAM,OAAO,GAAI,QAAQ,GAAG,EAAE,kBAAkB,YAAY,EAAE,EAAE,SAAS,GAAG,iBACf,CAAC"}
|
package/package.json
CHANGED
|
@@ -1,12 +1,33 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@digipair/skill-markitdown",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.114.1",
|
|
4
|
+
"main": "./dist/index.cjs.js",
|
|
5
|
+
"module": "./dist/index.esm.js",
|
|
6
|
+
"types": "./dist/index.d.ts",
|
|
4
7
|
"keywords": [
|
|
5
8
|
"digipair",
|
|
6
9
|
"service",
|
|
7
10
|
"tool"
|
|
8
11
|
],
|
|
9
|
-
"
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
12
|
+
"exports": {
|
|
13
|
+
".": {
|
|
14
|
+
"types": "./dist/index.d.ts",
|
|
15
|
+
"import": "./dist/index.esm.js",
|
|
16
|
+
"default": "./dist/index.cjs.js"
|
|
17
|
+
},
|
|
18
|
+
"./index.esm.js": "./dist/index.esm.js",
|
|
19
|
+
"./index.cjs.js": "./dist/index.cjs.js",
|
|
20
|
+
"./package.json": "./package.json",
|
|
21
|
+
"./schema.json": "./dist/schema.json",
|
|
22
|
+
"./schema.fr.json": "./dist/schema.fr.json"
|
|
23
|
+
},
|
|
24
|
+
"files": [
|
|
25
|
+
"dist",
|
|
26
|
+
"README.md",
|
|
27
|
+
"package.json"
|
|
28
|
+
],
|
|
29
|
+
"nx": {
|
|
30
|
+
"name": "skill-markitdown"
|
|
31
|
+
},
|
|
32
|
+
"dependencies": {}
|
|
33
|
+
}
|
package/index.d.ts
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export * from './libs/skill-markitdown/src/index';
|
|
File without changes
|
|
File without changes
|
|
File without changes
|