@mdgate/pages 0.5.2 → 0.5.4
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 -1
- package/package.json +5 -5
package/dist/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
import{documentToMarkdown as
|
|
1
|
+
import{documentToMarkdown as s}from"@mdgate/document";import{detectIWorkKind as g}from"@mdgate/iwork-common";import{fileExtension as k}from"@mdgate/utils";import{ConvertError as p}from"@mdgate/core";import{emptyDocument as u}from"@mdgate/document";import{bodyStorageFromPages as c,openIWork as f,parsePreIwa as i,storageToBlocks as d}from"@mdgate/iwork-common";function a(r){let o;try{o=f(r,"pages")}catch(e){if(e instanceof p&&e.code==="encrypted")throw e;return i(r,"pages")}let n=c(o);if(n===void 0)throw p.malformed("pages document has no body storage");let m=u();return m.blocks.push(...d(o,n)),m}function t(){return{id:"pages",sniff(r,o){if(g(r)==="pages")return 2;if(o?.path!==void 0&&k(o.path)==="pages")return 1;return 0},convert(r){return{markdown:s(a(r))}}}}import{create as v}from"@mdgate/core";var y=v([t()]);function C(r,o){return y(r,o)}export{C as toMarkdown,t as pages};
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@mdgate/pages",
|
|
3
|
-
"version": "0.5.
|
|
3
|
+
"version": "0.5.4",
|
|
4
4
|
"description": "mdgate Apple Pages converter",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"license": "MIT",
|
|
@@ -22,10 +22,10 @@
|
|
|
22
22
|
"prepublishOnly": "bun run build"
|
|
23
23
|
},
|
|
24
24
|
"dependencies": {
|
|
25
|
-
"@mdgate/core": "0.5.
|
|
26
|
-
"@mdgate/document": "0.5.
|
|
27
|
-
"@mdgate/iwork-common": "0.5.
|
|
28
|
-
"@mdgate/utils": "0.5.
|
|
25
|
+
"@mdgate/core": "0.5.4",
|
|
26
|
+
"@mdgate/document": "0.5.4",
|
|
27
|
+
"@mdgate/iwork-common": "0.5.4",
|
|
28
|
+
"@mdgate/utils": "0.5.4"
|
|
29
29
|
},
|
|
30
30
|
"publishConfig": {
|
|
31
31
|
"access": "public"
|