@digipair/skill-markitdown 0.113.1 → 0.114.2

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 ADDED
@@ -0,0 +1,7 @@
1
+ # skill-test
2
+
3
+ This library was generated with [Nx](https://nx.dev).
4
+
5
+ ## Building
6
+
7
+ Run `nx build skill-markitdown` to build the library.
@@ -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
- var _context_privates;
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
- var _context_privates;
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);
@@ -1 +1,2 @@
1
1
  export * from './lib/skill-markitdown';
2
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/index.ts"],"names":[],"mappings":"AAAA,cAAc,wBAAwB,CAAC"}
@@ -1,2 +1,3 @@
1
1
  import { PinsSettings } from '@digipair/engine';
2
2
  export declare const convert: (params: any, pinsSettingsList: PinsSettings[], context: any) => Promise<any>;
3
+ //# sourceMappingURL=skill-markitdown.d.ts.map
@@ -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.113.1",
3
+ "version": "0.114.2",
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
- "dependencies": {},
10
- "main": "./index.cjs.js",
11
- "module": "./index.esm.js"
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