mdat 1.3.2 → 1.3.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 +200 -204
- package/dist/index.js +36 -38
- package/license.txt +1 -1
- package/package.json +13 -13
- package/readme.md +2 -2
package/dist/index.js
CHANGED
|
@@ -22,10 +22,8 @@ var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
|
22
22
|
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
23
23
|
var __getProtoOf = Object.getPrototypeOf;
|
|
24
24
|
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
25
|
-
var
|
|
26
|
-
|
|
27
|
-
};
|
|
28
|
-
var __export = (all$2, symbols) => {
|
|
25
|
+
var __commonJSMin = (cb, mod) => () => (mod || cb((mod = { exports: {} }).exports, mod), mod.exports);
|
|
26
|
+
var __exportAll = (all$2, symbols) => {
|
|
29
27
|
let target = {};
|
|
30
28
|
for (var name in all$2) {
|
|
31
29
|
__defProp(target, name, {
|
|
@@ -59,9 +57,9 @@ var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__ge
|
|
|
59
57
|
|
|
60
58
|
//#endregion
|
|
61
59
|
//#region node_modules/.pnpm/picocolors@1.1.1/node_modules/picocolors/picocolors.js
|
|
62
|
-
var require_picocolors = /* @__PURE__ */
|
|
63
|
-
let p = process || {}, argv = p.argv || [], env
|
|
64
|
-
let isColorSupported = !(!!env
|
|
60
|
+
var require_picocolors = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
61
|
+
let p = process || {}, argv = p.argv || [], env = p.env || {};
|
|
62
|
+
let isColorSupported = !(!!env.NO_COLOR || argv.includes("--no-color")) && (!!env.FORCE_COLOR || argv.includes("--color") || p.platform === "win32" || (p.stdout || {}).isTTY && env.TERM !== "dumb" || !!env.CI);
|
|
65
63
|
let formatter = (open, close, replace$1 = open) => (input) => {
|
|
66
64
|
let string$2 = "" + input, index$2 = string$2.indexOf(close, open.length);
|
|
67
65
|
return ~index$2 ? open + replaceClose(string$2, close, replace$1, index$2) + close : open + string$2 + close;
|
|
@@ -124,7 +122,7 @@ var require_picocolors = /* @__PURE__ */ __commonJS({ "node_modules/.pnpm/picoco
|
|
|
124
122
|
};
|
|
125
123
|
module.exports = createColors();
|
|
126
124
|
module.exports.createColors = createColors;
|
|
127
|
-
})
|
|
125
|
+
}));
|
|
128
126
|
|
|
129
127
|
//#endregion
|
|
130
128
|
//#region node_modules/.pnpm/irregular-plurals@4.2.0/node_modules/irregular-plurals/irregular-plurals.json
|
|
@@ -6625,7 +6623,7 @@ const characterEntities = {
|
|
|
6625
6623
|
};
|
|
6626
6624
|
|
|
6627
6625
|
//#endregion
|
|
6628
|
-
//#region node_modules/.pnpm/decode-named-character-reference@1.
|
|
6626
|
+
//#region node_modules/.pnpm/decode-named-character-reference@1.3.0/node_modules/decode-named-character-reference/index.js
|
|
6629
6627
|
const own$5 = {}.hasOwnProperty;
|
|
6630
6628
|
/**
|
|
6631
6629
|
* Decode a single character reference (without the `&` or `;`).
|
|
@@ -7133,7 +7131,7 @@ function factorySpace(effects, ok$2, type, max) {
|
|
|
7133
7131
|
* } from 'micromark-util-types'
|
|
7134
7132
|
*/
|
|
7135
7133
|
/** @type {InitialConstruct} */
|
|
7136
|
-
const content = { tokenize: initializeContent };
|
|
7134
|
+
const content$1 = { tokenize: initializeContent };
|
|
7137
7135
|
/**
|
|
7138
7136
|
* @this {TokenizeContext}
|
|
7139
7137
|
* Context.
|
|
@@ -7209,7 +7207,7 @@ function initializeContent(effects) {
|
|
|
7209
7207
|
* Construct and its state.
|
|
7210
7208
|
*/
|
|
7211
7209
|
/** @type {InitialConstruct} */
|
|
7212
|
-
const document = { tokenize: initializeDocument };
|
|
7210
|
+
const document$1 = { tokenize: initializeDocument };
|
|
7213
7211
|
/** @type {Construct} */
|
|
7214
7212
|
const containerConstruct = { tokenize: tokenizeContainer };
|
|
7215
7213
|
/**
|
|
@@ -9430,7 +9428,7 @@ function subcontent(events, eventIndex) {
|
|
|
9430
9428
|
* No name because it must not be turned off.
|
|
9431
9429
|
* @type {Construct}
|
|
9432
9430
|
*/
|
|
9433
|
-
const content
|
|
9431
|
+
const content = {
|
|
9434
9432
|
resolve: resolveContent,
|
|
9435
9433
|
tokenize: tokenizeContent
|
|
9436
9434
|
};
|
|
@@ -13080,7 +13078,7 @@ function tokenizeSetextUnderline(effects, ok$2, nok) {
|
|
|
13080
13078
|
* } from 'micromark-util-types'
|
|
13081
13079
|
*/
|
|
13082
13080
|
/** @type {InitialConstruct} */
|
|
13083
|
-
const flow = { tokenize: initializeFlow };
|
|
13081
|
+
const flow$1 = { tokenize: initializeFlow };
|
|
13084
13082
|
/**
|
|
13085
13083
|
* @this {TokenizeContext}
|
|
13086
13084
|
* Self.
|
|
@@ -13089,7 +13087,7 @@ const flow = { tokenize: initializeFlow };
|
|
|
13089
13087
|
*/
|
|
13090
13088
|
function initializeFlow(effects) {
|
|
13091
13089
|
const self$2 = this;
|
|
13092
|
-
const initial = effects.attempt(blankLine, atBlankEnding, effects.attempt(this.parser.constructs.flowInitial, afterConstruct, factorySpace(effects, effects.attempt(this.parser.constructs.flow, afterConstruct, effects.attempt(content
|
|
13090
|
+
const initial = effects.attempt(blankLine, atBlankEnding, effects.attempt(this.parser.constructs.flowInitial, afterConstruct, factorySpace(effects, effects.attempt(this.parser.constructs.flow, afterConstruct, effects.attempt(content, afterConstruct)), "linePrefix")));
|
|
13093
13091
|
return initial;
|
|
13094
13092
|
/** @type {State} */
|
|
13095
13093
|
function atBlankEnding(code$2) {
|
|
@@ -13130,8 +13128,8 @@ function initializeFlow(effects) {
|
|
|
13130
13128
|
* } from 'micromark-util-types'
|
|
13131
13129
|
*/
|
|
13132
13130
|
const resolver = { resolveAll: createResolver() };
|
|
13133
|
-
const string = initializeFactory("string");
|
|
13134
|
-
const text$
|
|
13131
|
+
const string$1 = initializeFactory("string");
|
|
13132
|
+
const text$3 = initializeFactory("text");
|
|
13135
13133
|
/**
|
|
13136
13134
|
* @param {'string' | 'text'} field
|
|
13137
13135
|
* Field.
|
|
@@ -13300,19 +13298,19 @@ function resolveAllLineSuffixes(events, context) {
|
|
|
13300
13298
|
/**
|
|
13301
13299
|
* @import {Extension} from 'micromark-util-types'
|
|
13302
13300
|
*/
|
|
13303
|
-
var constructs_exports = /* @__PURE__ */
|
|
13301
|
+
var constructs_exports = /* @__PURE__ */ __exportAll({
|
|
13304
13302
|
attentionMarkers: () => attentionMarkers,
|
|
13305
13303
|
contentInitial: () => contentInitial,
|
|
13306
13304
|
disable: () => disable,
|
|
13307
|
-
document: () => document
|
|
13308
|
-
flow: () => flow
|
|
13305
|
+
document: () => document,
|
|
13306
|
+
flow: () => flow,
|
|
13309
13307
|
flowInitial: () => flowInitial,
|
|
13310
13308
|
insideSpan: () => insideSpan,
|
|
13311
|
-
string: () => string
|
|
13312
|
-
text: () => text$
|
|
13309
|
+
string: () => string,
|
|
13310
|
+
text: () => text$2
|
|
13313
13311
|
});
|
|
13314
13312
|
/** @satisfies {Extension['document']} */
|
|
13315
|
-
const document
|
|
13313
|
+
const document = {
|
|
13316
13314
|
[42]: list$2,
|
|
13317
13315
|
[43]: list$2,
|
|
13318
13316
|
[45]: list$2,
|
|
@@ -13337,7 +13335,7 @@ const flowInitial = {
|
|
|
13337
13335
|
[32]: codeIndented
|
|
13338
13336
|
};
|
|
13339
13337
|
/** @satisfies {Extension['flow']} */
|
|
13340
|
-
const flow
|
|
13338
|
+
const flow = {
|
|
13341
13339
|
[35]: headingAtx,
|
|
13342
13340
|
[42]: thematicBreak$1,
|
|
13343
13341
|
[45]: [setextUnderline, thematicBreak$1],
|
|
@@ -13348,12 +13346,12 @@ const flow$1 = {
|
|
|
13348
13346
|
[126]: codeFenced
|
|
13349
13347
|
};
|
|
13350
13348
|
/** @satisfies {Extension['string']} */
|
|
13351
|
-
const string
|
|
13349
|
+
const string = {
|
|
13352
13350
|
[38]: characterReference,
|
|
13353
13351
|
[92]: characterEscape
|
|
13354
13352
|
};
|
|
13355
13353
|
/** @satisfies {Extension['text']} */
|
|
13356
|
-
const text$
|
|
13354
|
+
const text$2 = {
|
|
13357
13355
|
[-5]: lineEnding,
|
|
13358
13356
|
[-4]: lineEnding,
|
|
13359
13357
|
[-3]: lineEnding,
|
|
@@ -13865,13 +13863,13 @@ function parse(options) {
|
|
|
13865
13863
|
/** @type {ParseContext} */
|
|
13866
13864
|
const parser = {
|
|
13867
13865
|
constructs: combineExtensions([constructs_exports, ...(options || {}).extensions || []]),
|
|
13868
|
-
content: create(content),
|
|
13866
|
+
content: create(content$1),
|
|
13869
13867
|
defined: [],
|
|
13870
|
-
document: create(document),
|
|
13871
|
-
flow: create(flow),
|
|
13868
|
+
document: create(document$1),
|
|
13869
|
+
flow: create(flow$1),
|
|
13872
13870
|
lazy: {},
|
|
13873
|
-
string: create(string),
|
|
13874
|
-
text: create(text$
|
|
13871
|
+
string: create(string$1),
|
|
13872
|
+
text: create(text$3)
|
|
13875
13873
|
};
|
|
13876
13874
|
return parser;
|
|
13877
13875
|
/**
|
|
@@ -18017,16 +18015,16 @@ function bail(error) {
|
|
|
18017
18015
|
|
|
18018
18016
|
//#endregion
|
|
18019
18017
|
//#region node_modules/.pnpm/extend@3.0.2/node_modules/extend/index.js
|
|
18020
|
-
var require_extend = /* @__PURE__ */
|
|
18018
|
+
var require_extend = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
18021
18019
|
var hasOwn = Object.prototype.hasOwnProperty;
|
|
18022
18020
|
var toStr = Object.prototype.toString;
|
|
18023
18021
|
var defineProperty = Object.defineProperty;
|
|
18024
18022
|
var gOPD = Object.getOwnPropertyDescriptor;
|
|
18025
|
-
var isArray = function isArray
|
|
18023
|
+
var isArray = function isArray(arr) {
|
|
18026
18024
|
if (typeof Array.isArray === "function") return Array.isArray(arr);
|
|
18027
18025
|
return toStr.call(arr) === "[object Array]";
|
|
18028
18026
|
};
|
|
18029
|
-
var isPlainObject
|
|
18027
|
+
var isPlainObject = function isPlainObject$1(obj) {
|
|
18030
18028
|
if (!obj || toStr.call(obj) !== "[object Object]") return false;
|
|
18031
18029
|
var hasOwnConstructor = hasOwn.call(obj, "constructor");
|
|
18032
18030
|
var hasIsPrototypeOf = obj.constructor && obj.constructor.prototype && hasOwn.call(obj.constructor.prototype, "isPrototypeOf");
|
|
@@ -18035,7 +18033,7 @@ var require_extend = /* @__PURE__ */ __commonJS({ "node_modules/.pnpm/extend@3.0
|
|
|
18035
18033
|
for (key in obj);
|
|
18036
18034
|
return typeof key === "undefined" || hasOwn.call(obj, key);
|
|
18037
18035
|
};
|
|
18038
|
-
var setProperty = function setProperty
|
|
18036
|
+
var setProperty = function setProperty(target, options) {
|
|
18039
18037
|
if (defineProperty && options.name === "__proto__") defineProperty(target, options.name, {
|
|
18040
18038
|
enumerable: true,
|
|
18041
18039
|
configurable: true,
|
|
@@ -18044,7 +18042,7 @@ var require_extend = /* @__PURE__ */ __commonJS({ "node_modules/.pnpm/extend@3.0
|
|
|
18044
18042
|
});
|
|
18045
18043
|
else target[options.name] = options.newValue;
|
|
18046
18044
|
};
|
|
18047
|
-
var getProperty = function getProperty
|
|
18045
|
+
var getProperty = function getProperty(obj, name) {
|
|
18048
18046
|
if (name === "__proto__") {
|
|
18049
18047
|
if (!hasOwn.call(obj, name)) return;
|
|
18050
18048
|
else if (gOPD) return gOPD(obj, name).value;
|
|
@@ -18069,11 +18067,11 @@ var require_extend = /* @__PURE__ */ __commonJS({ "node_modules/.pnpm/extend@3.0
|
|
|
18069
18067
|
src = getProperty(target, name);
|
|
18070
18068
|
copy = getProperty(options, name);
|
|
18071
18069
|
if (target !== copy) {
|
|
18072
|
-
if (deep && copy && (isPlainObject
|
|
18070
|
+
if (deep && copy && (isPlainObject(copy) || (copyIsArray = isArray(copy)))) {
|
|
18073
18071
|
if (copyIsArray) {
|
|
18074
18072
|
copyIsArray = false;
|
|
18075
18073
|
clone = src && isArray(src) ? src : [];
|
|
18076
|
-
} else clone = src && isPlainObject
|
|
18074
|
+
} else clone = src && isPlainObject(src) ? src : {};
|
|
18077
18075
|
setProperty(target, {
|
|
18078
18076
|
name,
|
|
18079
18077
|
newValue: extend$1(deep, clone, copy)
|
|
@@ -18087,7 +18085,7 @@ var require_extend = /* @__PURE__ */ __commonJS({ "node_modules/.pnpm/extend@3.0
|
|
|
18087
18085
|
}
|
|
18088
18086
|
return target;
|
|
18089
18087
|
};
|
|
18090
|
-
})
|
|
18088
|
+
}));
|
|
18091
18089
|
|
|
18092
18090
|
//#endregion
|
|
18093
18091
|
//#region node_modules/.pnpm/devlop@1.1.0/node_modules/devlop/lib/default.js
|
package/license.txt
CHANGED
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "mdat",
|
|
3
|
-
"version": "1.3.
|
|
3
|
+
"version": "1.3.4",
|
|
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",
|
|
@@ -39,27 +39,27 @@
|
|
|
39
39
|
"dependencies": {
|
|
40
40
|
"@clack/prompts": "^0.11.0",
|
|
41
41
|
"@types/mdast": "^4.0.4",
|
|
42
|
-
"@types/node": "^22.19.
|
|
42
|
+
"@types/node": "^22.19.7",
|
|
43
43
|
"@types/unist": "^3.0.3",
|
|
44
44
|
"@types/yargs": "^17.0.35",
|
|
45
45
|
"cosmiconfig": "^9.0.0",
|
|
46
46
|
"cosmiconfig-typescript-loader": "^6.2.0",
|
|
47
47
|
"globby": "^14.1.0",
|
|
48
48
|
"read-pkg": "^10.0.0",
|
|
49
|
-
"remark-mdat": "^1.2.
|
|
50
|
-
"type-fest": "^5.
|
|
49
|
+
"remark-mdat": "^1.2.2",
|
|
50
|
+
"type-fest": "^5.4.1",
|
|
51
51
|
"unified-engine": "^11.2.2",
|
|
52
52
|
"vfile": "^6.0.3"
|
|
53
53
|
},
|
|
54
54
|
"devDependencies": {
|
|
55
|
-
"@kitschpatrol/shared-config": "^5.
|
|
56
|
-
"bumpp": "^10.
|
|
57
|
-
"execa": "^9.6.
|
|
55
|
+
"@kitschpatrol/shared-config": "^5.12.0",
|
|
56
|
+
"bumpp": "^10.4.0",
|
|
57
|
+
"execa": "^9.6.1",
|
|
58
58
|
"find-up": "^8.0.0",
|
|
59
59
|
"mdast-util-toc": "^7.1.0",
|
|
60
|
-
"mdat-plugin-cli-help": "^1.0.
|
|
61
|
-
"mdat-plugin-example": "^1.0.
|
|
62
|
-
"mdat-plugin-tldraw": "^1.0.
|
|
60
|
+
"mdat-plugin-cli-help": "^1.0.4",
|
|
61
|
+
"mdat-plugin-example": "^1.0.2",
|
|
62
|
+
"mdat-plugin-tldraw": "^1.0.3",
|
|
63
63
|
"nanoid": "^5.1.6",
|
|
64
64
|
"package-directory": "^8.1.0",
|
|
65
65
|
"package-up": "^5.0.0",
|
|
@@ -71,11 +71,11 @@
|
|
|
71
71
|
"remark": "^15.0.1",
|
|
72
72
|
"remark-gfm": "^4.0.1",
|
|
73
73
|
"to-vfile": "^8.0.0",
|
|
74
|
-
"tsdown": "^0.
|
|
74
|
+
"tsdown": "^0.19.0",
|
|
75
75
|
"typescript": "~5.9.3",
|
|
76
|
-
"unplugin-raw": "^0.6.
|
|
76
|
+
"unplugin-raw": "^0.6.4",
|
|
77
77
|
"untildify": "^6.0.0",
|
|
78
|
-
"vitest": "^4.0.
|
|
78
|
+
"vitest": "^4.0.17",
|
|
79
79
|
"yargs": "^17.7.2",
|
|
80
80
|
"zod": "^3.25.76"
|
|
81
81
|
},
|
package/readme.md
CHANGED
|
@@ -749,8 +749,8 @@ See the [Examples section](https://github.com/kitschpatrol/remark-mdat#examples)
|
|
|
749
749
|
|
|
750
750
|
| File | Original | Gzip | Brotli |
|
|
751
751
|
| ------------ | -------- | ------- | ------ |
|
|
752
|
-
| package.json | 2.4 kB | 1.1 kB |
|
|
753
|
-
| readme.md | 64 kB | 11.
|
|
752
|
+
| package.json | 2.4 kB | 1.1 kB | 965 B |
|
|
753
|
+
| readme.md | 64 kB | 11.6 kB | 9.3 kB |
|
|
754
754
|
|
|
755
755
|
<!-- /size-table -->
|
|
756
756
|
|