uniorg-parse 3.1.0 → 3.2.0
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/lib/parser.d.ts
CHANGED
package/lib/reader.d.ts
CHANGED
|
@@ -1,3 +1,5 @@
|
|
|
1
|
-
import type {
|
|
1
|
+
import type { Plugin } from 'unified';
|
|
2
|
+
import type { OrgData } from 'uniorg';
|
|
2
3
|
import type { ParseOptions } from './parse-options.js';
|
|
3
|
-
|
|
4
|
+
declare const orgParse: Plugin<[Partial<ParseOptions>?], string, OrgData>;
|
|
5
|
+
export default orgParse;
|
package/lib/unified-org-parse.js
CHANGED
|
@@ -1,8 +1,9 @@
|
|
|
1
1
|
import { parse } from './parser.js';
|
|
2
|
-
|
|
2
|
+
const orgParse = function orgParse(options = {}) {
|
|
3
3
|
const parser = (_doc, file) => {
|
|
4
4
|
return parse(file, options);
|
|
5
5
|
};
|
|
6
6
|
Object.assign(this, { Parser: parser });
|
|
7
|
-
}
|
|
7
|
+
};
|
|
8
|
+
export default orgParse;
|
|
8
9
|
//# sourceMappingURL=unified-org-parse.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"unified-org-parse.js","sourceRoot":"","sources":["../src/unified-org-parse.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,KAAK,EAAE,MAAM,aAAa,CAAC;AAIpC,MAAM,
|
|
1
|
+
{"version":3,"file":"unified-org-parse.js","sourceRoot":"","sources":["../src/unified-org-parse.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,KAAK,EAAE,MAAM,aAAa,CAAC;AAIpC,MAAM,QAAQ,GAAsD,SAAS,QAAQ,CACnF,UAAiC,EAAE;IAEnC,MAAM,MAAM,GAAoB,CAAC,IAAI,EAAE,IAAI,EAAE,EAAE;QAC7C,OAAO,KAAK,CAAC,IAAI,EAAE,OAAO,CAAC,CAAC;IAC9B,CAAC,CAAC;IAEF,MAAM,CAAC,MAAM,CAAC,IAAI,EAAE,EAAE,MAAM,EAAE,MAAM,EAAE,CAAC,CAAC;AAC1C,CAAC,CAAA;AAED,eAAe,QAAQ,CAAC"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "uniorg-parse",
|
|
3
|
-
"version": "3.
|
|
3
|
+
"version": "3.2.0",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"description": "uniorg plugin to parse org-mode",
|
|
6
6
|
"keywords": [
|
|
@@ -32,18 +32,18 @@
|
|
|
32
32
|
"devDependencies": {
|
|
33
33
|
"@types/jest": "29.5.12",
|
|
34
34
|
"@types/node": "^20.12.12",
|
|
35
|
-
"@types/unist": "3.0.2",
|
|
36
|
-
"jest": "29.7.0",
|
|
35
|
+
"@types/unist": "^3.0.2",
|
|
36
|
+
"jest": "^29.7.0",
|
|
37
37
|
"ts-jest": "^29.1.2",
|
|
38
|
-
"typescript": "5.4.5",
|
|
39
|
-
"unified": "^11.0.4",
|
|
40
|
-
"uniorg": "^1.2.0",
|
|
38
|
+
"typescript": "^5.4.5",
|
|
41
39
|
"yaml": "^2.4.2"
|
|
42
40
|
},
|
|
43
41
|
"dependencies": {
|
|
44
|
-
"
|
|
45
|
-
"
|
|
46
|
-
"
|
|
42
|
+
"unified": "^11.0.4",
|
|
43
|
+
"uniorg": "^1.3.0",
|
|
44
|
+
"unist-builder": "^4.0.0",
|
|
45
|
+
"vfile": "^6.0.1",
|
|
46
|
+
"vfile-location": "^5.0.2"
|
|
47
47
|
},
|
|
48
48
|
"scripts": {
|
|
49
49
|
"build": "rm -rf ./lib && tsc -p tsconfig.build.json",
|