mdat 0.7.3 → 0.7.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/bin/cli.js +216 -216
- package/dist/.DS_Store +0 -0
- package/dist/api.d.ts +1 -1
- package/dist/index.js +40 -40
- package/dist/processors.d.ts +1 -1
- package/dist/readme/api.d.ts +1 -1
- package/dist/readme/config.d.ts +1 -1
- package/dist/readme/init.d.ts +1 -1
- package/package.json +9 -9
- package/readme.md +1 -1
package/dist/processors.d.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { type ConfigLoaded, type ConfigToLoad, type RulesToLoad, type loadConfig } from './config';
|
|
2
1
|
import { type Root } from 'mdast';
|
|
3
2
|
import { VFile } from 'vfile';
|
|
3
|
+
import { type ConfigLoaded, type ConfigToLoad, type loadConfig, type RulesToLoad } from './config';
|
|
4
4
|
type Loader = typeof loadConfig;
|
|
5
5
|
type ProcessorGetter = typeof getCleanProcessor | typeof getExpandProcessor;
|
|
6
6
|
export declare function processFiles(files: string | string[], loader: Loader, processorGetter: ProcessorGetter, name?: string, output?: string, config?: ConfigToLoad, rules?: RulesToLoad): Promise<VFile[]>;
|
package/dist/readme/api.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { type ConfigToLoad, type RulesToLoad } from '../config';
|
|
2
1
|
import { type VFile } from 'vfile';
|
|
2
|
+
import { type ConfigToLoad, type RulesToLoad } from '../config';
|
|
3
3
|
export declare function expandReadme(config?: ConfigToLoad, rules?: RulesToLoad): Promise<VFile[]>;
|
|
4
4
|
export declare function expandReadmeFiles(files?: string | string[], name?: string, output?: string, config?: ConfigToLoad, rules?: RulesToLoad): Promise<VFile[]>;
|
|
5
5
|
export declare function expandReadmeString(markdown: string, config?: ConfigToLoad, rules?: RulesToLoad): Promise<VFile>;
|
package/dist/readme/config.d.ts
CHANGED
package/dist/readme/init.d.ts
CHANGED
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "mdat",
|
|
3
|
-
"version": "0.7.
|
|
3
|
+
"version": "0.7.4",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"description": "CLI tool and library implementing the Markdown Autophagic Template (MDAT) system. MDAT lets you use comments as dynamic content templates in Markdown files, making it easy to generate and update readme boilerplate.",
|
|
6
6
|
"repository": {
|
|
@@ -45,22 +45,22 @@
|
|
|
45
45
|
],
|
|
46
46
|
"dependencies": {
|
|
47
47
|
"@clack/prompts": "^0.7.0",
|
|
48
|
-
"@kitschpatrol/tldraw-cli": "^4.6.
|
|
48
|
+
"@kitschpatrol/tldraw-cli": "^4.6.13",
|
|
49
49
|
"@types/mdast": "^4.0.4",
|
|
50
50
|
"@types/node": "18.19.0",
|
|
51
|
-
"@types/unist": "^3.0.
|
|
51
|
+
"@types/unist": "^3.0.3",
|
|
52
52
|
"@types/which": "^3.0.4",
|
|
53
53
|
"@types/yargs": "^17.0.33",
|
|
54
54
|
"cosmiconfig": "^9.0.0",
|
|
55
55
|
"cosmiconfig-typescript-loader": "^5.0.0",
|
|
56
|
-
"execa": "^9.3.
|
|
56
|
+
"execa": "^9.3.1",
|
|
57
57
|
"globby": "^14.0.2",
|
|
58
58
|
"read-pkg": "^9.0.1",
|
|
59
59
|
"which": "^4.0.0"
|
|
60
60
|
},
|
|
61
61
|
"devDependencies": {
|
|
62
|
-
"@kitschpatrol/shared-config": "^4.7.
|
|
63
|
-
"bumpp": "^9.5.
|
|
62
|
+
"@kitschpatrol/shared-config": "^4.7.5",
|
|
63
|
+
"bumpp": "^9.5.2",
|
|
64
64
|
"chalk": "^5.3.0",
|
|
65
65
|
"chevrotain": "^11.0.3",
|
|
66
66
|
"find-up": "^7.0.0",
|
|
@@ -74,14 +74,14 @@
|
|
|
74
74
|
"pretty-ms": "^9.1.0",
|
|
75
75
|
"remark": "^15.0.1",
|
|
76
76
|
"remark-gfm": "^4.0.0",
|
|
77
|
-
"remark-mdat": "^0.7.
|
|
77
|
+
"remark-mdat": "^0.7.2",
|
|
78
78
|
"rimraf": "^6.0.1",
|
|
79
79
|
"to-vfile": "^8.0.0",
|
|
80
80
|
"tsup": "^8.2.4",
|
|
81
|
-
"type-fest": "^4.
|
|
81
|
+
"type-fest": "^4.26.0",
|
|
82
82
|
"typescript": "^5.5.4",
|
|
83
83
|
"untildify": "^5.0.0",
|
|
84
|
-
"vfile": "^6.0.
|
|
84
|
+
"vfile": "^6.0.3",
|
|
85
85
|
"vitest": "^2.0.5",
|
|
86
86
|
"yargs": "^17.7.2",
|
|
87
87
|
"zod": "^3.23.8"
|
package/readme.md
CHANGED
|
@@ -789,7 +789,7 @@ This has been done several times before:
|
|
|
789
789
|
- Titus Wormer's [mdast-zone](https://github.com/syntax-tree/mdast-zone)\
|
|
790
790
|
Allows comments to be used as ranges or markers in Markdown files. Similar tree parsing and walking strategy to MDAT. Mdast-zone uses different syntax for arguments, and requires both opening and closing tags to be present for expansion to occur.
|
|
791
791
|
|
|
792
|
-
- Jason Dent's [inject-markdown](https://github.com/streetsidesoftware/inject-markdown)
|
|
792
|
+
- Jason Dent's [inject-markdown](https://github.com/streetsidesoftware/inject-markdown)
|
|
793
793
|
|
|
794
794
|
- lillallol's [md-in-place](https://www.npmjs.com/package/md-in-place)
|
|
795
795
|
|