mdat 3.2.1 → 3.3.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/dist/bin/cli.js +2 -3
- package/dist/lib/index.js +1 -1
- package/dist/{lib-BkjaGFsm.js → lib-rgEemFQ8.js} +2 -4
- package/package.json +9 -8
- package/readme.md +6 -0
package/dist/bin/cli.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
|
-
import { S as version, a as expand, b as setLogger$1, d as templates_default, f as ensureArray, l as createReadme, r as collapse, s as strip, t as check, u as createReadmeInteractive, x as name, y as log } from "../lib-
|
|
2
|
+
import { S as version, a as expand, b as setLogger$1, d as templates_default, f as ensureArray, l as createReadme, r as collapse, s as strip, t as check, u as createReadmeInteractive, x as name, y as log } from "../lib-rgEemFQ8.js";
|
|
3
3
|
import { createLogger } from "lognow";
|
|
4
4
|
import picocolors from "picocolors";
|
|
5
5
|
import prettyMilliseconds from "pretty-ms";
|
|
@@ -167,8 +167,7 @@ function logConflicts(args) {
|
|
|
167
167
|
if (args.print && args.name !== void 0 && args.name !== "") log.warn(`Ignoring --name option because --print is set`);
|
|
168
168
|
}
|
|
169
169
|
function collectConfig(config) {
|
|
170
|
-
|
|
171
|
-
return ensureArray(config);
|
|
170
|
+
return config === void 0 ? void 0 : ensureArray(config);
|
|
172
171
|
}
|
|
173
172
|
function getExitCode(results) {
|
|
174
173
|
return getMdatReports(results).reduce((count, report) => count + report.errors.length, 0) > 0 ? 1 : 0;
|
package/dist/lib/index.js
CHANGED
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
import { _ as getReadmeMetadata, a as expand, b as setLogger, c as stripString, g as getContextMetadata, h as mergeConfig, i as collapseString, l as createReadme, m as loadConfig, n as checkString, o as expandString, p as defineConfig, r as collapse, s as strip, t as check, u as createReadmeInteractive, v as resetMetadataCaches } from "../lib-
|
|
1
|
+
import { _ as getReadmeMetadata, a as expand, b as setLogger, c as stripString, g as getContextMetadata, h as mergeConfig, i as collapseString, l as createReadme, m as loadConfig, n as checkString, o as expandString, p as defineConfig, r as collapse, s as strip, t as check, u as createReadmeInteractive, v as resetMetadataCaches } from "../lib-rgEemFQ8.js";
|
|
2
2
|
|
|
3
3
|
export { check, checkString, collapse, collapseString, createReadme as create, createReadmeInteractive as createInteractive, defineConfig, expand, expandString, getContextMetadata, getReadmeMetadata, loadConfig, mergeConfig, resetMetadataCaches, setLogger, strip, stripString };
|
|
@@ -25,7 +25,7 @@ import { confirm, group, intro, note, outro, select } from "@clack/prompts";
|
|
|
25
25
|
|
|
26
26
|
//#region package.json
|
|
27
27
|
var name = "mdat";
|
|
28
|
-
var version = "3.
|
|
28
|
+
var version = "3.3.0";
|
|
29
29
|
|
|
30
30
|
//#endregion
|
|
31
31
|
//#region src/lib/deep-merge-defined.ts
|
|
@@ -342,9 +342,7 @@ async function getBannerSrc() {
|
|
|
342
342
|
function isUrl(text, lenient = true) {
|
|
343
343
|
if (typeof text !== "string") throw new TypeError("Expected a string");
|
|
344
344
|
text = text.trim();
|
|
345
|
-
|
|
346
|
-
if (URL.canParse(text)) return true;
|
|
347
|
-
return lenient && URL.canParse(`https://${text}`);
|
|
345
|
+
return !text.includes(" ") && (URL.canParse(text) || lenient && URL.canParse(`https://${text}`));
|
|
348
346
|
}
|
|
349
347
|
|
|
350
348
|
//#endregion
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "mdat",
|
|
3
|
-
"version": "3.
|
|
3
|
+
"version": "3.3.0",
|
|
4
4
|
"description": "CLI tool and TypeScript 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.",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"mdat",
|
|
@@ -48,7 +48,7 @@
|
|
|
48
48
|
"cosmiconfig-typescript-loader": "^6.3.0",
|
|
49
49
|
"deepmerge-ts": "^8.0.2",
|
|
50
50
|
"globby": "^16.2.4",
|
|
51
|
-
"lognow": "^0.8.
|
|
51
|
+
"lognow": "^0.8.4",
|
|
52
52
|
"mdast-util-toc": "^7.1.0",
|
|
53
53
|
"metascope": "^0.12.0",
|
|
54
54
|
"path-type": "^6.0.0",
|
|
@@ -58,30 +58,31 @@
|
|
|
58
58
|
"pretty-ms": "^9.3.1",
|
|
59
59
|
"remark": "^15.0.1",
|
|
60
60
|
"remark-gfm": "^4.0.1",
|
|
61
|
-
"remark-mdat": "^3.0
|
|
61
|
+
"remark-mdat": "^3.1.0",
|
|
62
62
|
"to-vfile": "^8.0.0",
|
|
63
|
-
"type-fest": "^5.
|
|
63
|
+
"type-fest": "^5.10.0",
|
|
64
64
|
"unified-engine": "^11.2.2",
|
|
65
65
|
"untildify": "^6.0.0",
|
|
66
66
|
"vfile": "^6.0.3",
|
|
67
|
-
"yargs": "^18.
|
|
67
|
+
"yargs": "^18.2.0",
|
|
68
68
|
"zod": "^4.6.5"
|
|
69
69
|
},
|
|
70
70
|
"devDependencies": {
|
|
71
71
|
"@arethetypeswrong/core": "^0.18.5",
|
|
72
|
-
"@kitschpatrol/shared-config": "^8.
|
|
72
|
+
"@kitschpatrol/shared-config": "^8.10.0",
|
|
73
73
|
"@types/mdast": "^4.0.4",
|
|
74
74
|
"@types/node": "~24.13.4",
|
|
75
75
|
"@types/unist": "^3.0.3",
|
|
76
76
|
"@types/yargs": "^17.0.35",
|
|
77
77
|
"@vitest/coverage-v8": "^5.0.1",
|
|
78
|
+
"brewpub": "^0.4.0",
|
|
78
79
|
"bumpp": "^12.3.0",
|
|
79
80
|
"execa": "^10.0.1",
|
|
80
81
|
"mdat-plugin-cli-help": "^3.2.0",
|
|
81
82
|
"mdat-plugin-example": "^3.0.0",
|
|
82
83
|
"mdat-plugin-tldraw": "^3.0.0",
|
|
83
84
|
"nanoid": "^6.0.1",
|
|
84
|
-
"prettier": "^3.9.
|
|
85
|
+
"prettier": "^3.9.8",
|
|
85
86
|
"publint": "^0.3.24",
|
|
86
87
|
"shx": "^0.4.0",
|
|
87
88
|
"tsdown": "^0.23.0",
|
|
@@ -108,7 +109,7 @@
|
|
|
108
109
|
"coverage": "vitest --coverage --run",
|
|
109
110
|
"fix": "ksc fix",
|
|
110
111
|
"lint": "ksc lint",
|
|
111
|
-
"release": "bumpp --commit 'Release: %s' && pnpm build && pnpm publish --otp $(op item get npm --otp)",
|
|
112
|
+
"release": "bumpp --commit 'Release: %s' && pnpm build && pnpm publish --otp $(op item get npm --otp) && brewpub --tap kitschpatrol/tap",
|
|
112
113
|
"test": "vitest run"
|
|
113
114
|
}
|
|
114
115
|
}
|
package/readme.md
CHANGED