@mdgate/converters 0.1.0 → 0.1.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/dist/index.js +1 -5
- package/package.json +8 -8
- package/dist/all.js +0 -5
- package/dist/to-markdown.js +0 -11
package/dist/index.js
CHANGED
|
@@ -1,5 +1 @@
|
|
|
1
|
-
|
|
2
|
-
export { office } from '@mdgate/office';
|
|
3
|
-
export { pdf } from '@mdgate/pdf';
|
|
4
|
-
export { all } from './all.js';
|
|
5
|
-
export { toMarkdown } from './to-markdown.js';
|
|
1
|
+
import{ConvertError as w,create as z}from"@mdgate/core";import{office as D}from"@mdgate/office";import{pdf as G}from"@mdgate/pdf";import{office as p}from"@mdgate/office";import{pdf as t}from"@mdgate/pdf";function r(){return[p(),t()]}import{create as f}from"@mdgate/core";var C=f(r());function x(o,m){return C(o,m)}export{x as toMarkdown,G as pdf,D as office,z as create,r as all,w as ConvertError};
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@mdgate/converters",
|
|
3
|
-
"version": "0.1.
|
|
3
|
+
"version": "0.1.1",
|
|
4
4
|
"description": "Official mdgate converter bundle",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"license": "MIT",
|
|
@@ -14,17 +14,17 @@
|
|
|
14
14
|
"main": "./dist/index.js",
|
|
15
15
|
"types": "./dist/index.d.ts",
|
|
16
16
|
"files": [
|
|
17
|
-
"dist",
|
|
18
|
-
"
|
|
17
|
+
"dist/**/*.js",
|
|
18
|
+
"dist/**/*.d.ts"
|
|
19
19
|
],
|
|
20
20
|
"scripts": {
|
|
21
|
-
"build": "
|
|
22
|
-
"prepublishOnly": "
|
|
21
|
+
"build": "bun ../../scripts/build-package.ts",
|
|
22
|
+
"prepublishOnly": "bun run build"
|
|
23
23
|
},
|
|
24
24
|
"dependencies": {
|
|
25
|
-
"@mdgate/core": "0.1.
|
|
26
|
-
"@mdgate/office": "0.1.
|
|
27
|
-
"@mdgate/pdf": "0.1.
|
|
25
|
+
"@mdgate/core": "0.1.1",
|
|
26
|
+
"@mdgate/office": "0.1.1",
|
|
27
|
+
"@mdgate/pdf": "0.1.1"
|
|
28
28
|
},
|
|
29
29
|
"publishConfig": {
|
|
30
30
|
"access": "public"
|
package/dist/all.js
DELETED
package/dist/to-markdown.js
DELETED
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
import { create } from '@mdgate/core';
|
|
2
|
-
import { all } from './all.js';
|
|
3
|
-
const convert = create(all());
|
|
4
|
-
/**
|
|
5
|
-
* Batteries-included local conversion. Works in Node, Edge, and browsers.
|
|
6
|
-
* Pass file bytes; `hint.path` is only a sniff hint (e.g. `.csv`), never read.
|
|
7
|
-
* Prefer `create([...])` to pick families.
|
|
8
|
-
*/
|
|
9
|
-
export function toMarkdown(bytes, hint) {
|
|
10
|
-
return convert(bytes, hint);
|
|
11
|
-
}
|