mdat 1.3.1 → 1.3.2
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 +4 -3
- package/dist/index.js +3 -2
- package/package.json +2 -2
- package/readme.md +1 -1
package/bin/cli.js
CHANGED
|
@@ -4614,7 +4614,7 @@ var yargs_default = Yargs;
|
|
|
4614
4614
|
|
|
4615
4615
|
//#endregion
|
|
4616
4616
|
//#region package.json
|
|
4617
|
-
var version = "1.3.
|
|
4617
|
+
var version = "1.3.2";
|
|
4618
4618
|
|
|
4619
4619
|
//#endregion
|
|
4620
4620
|
//#region node_modules/.pnpm/irregular-plurals@4.2.0/node_modules/irregular-plurals/irregular-plurals.json
|
|
@@ -27682,8 +27682,9 @@ var badges_default = { badges: {
|
|
|
27682
27682
|
const packageJson$1 = await getPackageJson();
|
|
27683
27683
|
const { name } = packageJson$1;
|
|
27684
27684
|
const badges = [];
|
|
27685
|
-
if (
|
|
27686
|
-
|
|
27685
|
+
if (validOptions?.npm === void 0) {
|
|
27686
|
+
if (!packageJson$1.name.startsWith("@") || packageJson$1.publishConfig?.access === "public") badges.push(`[](https://npmjs.com/package/${name})`);
|
|
27687
|
+
} else for (const name$1 of validOptions.npm) badges.push(`[](https://npmjs.com/package/${name$1})`);
|
|
27687
27688
|
const { license } = packageJson$1;
|
|
27688
27689
|
if (license !== void 0) badges.push(`[](https://opensource.org/licenses/${license})`);
|
|
27689
27690
|
if (validOptions?.custom !== void 0) for (const [name$1, { image: image$1, link: link$1 }] of Object.entries(validOptions.custom)) badges.push(`[](${link$1})`);
|
package/dist/index.js
CHANGED
|
@@ -23400,8 +23400,9 @@ var badges_default = { badges: {
|
|
|
23400
23400
|
const packageJson$1 = await getPackageJson();
|
|
23401
23401
|
const { name } = packageJson$1;
|
|
23402
23402
|
const badges = [];
|
|
23403
|
-
if (
|
|
23404
|
-
|
|
23403
|
+
if (validOptions?.npm === void 0) {
|
|
23404
|
+
if (!packageJson$1.name.startsWith("@") || packageJson$1.publishConfig?.access === "public") badges.push(`[](https://npmjs.com/package/${name})`);
|
|
23405
|
+
} else for (const name$1 of validOptions.npm) badges.push(`[](https://npmjs.com/package/${name$1})`);
|
|
23405
23406
|
const { license } = packageJson$1;
|
|
23406
23407
|
if (license !== void 0) badges.push(`[](https://opensource.org/licenses/${license})`);
|
|
23407
23408
|
if (validOptions?.custom !== void 0) for (const [name$1, { image: image$1, link: link$1 }] of Object.entries(validOptions.custom)) badges.push(`[](${link$1})`);
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "mdat",
|
|
3
|
-
"version": "1.3.
|
|
3
|
+
"version": "1.3.2",
|
|
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",
|
|
@@ -52,7 +52,7 @@
|
|
|
52
52
|
"vfile": "^6.0.3"
|
|
53
53
|
},
|
|
54
54
|
"devDependencies": {
|
|
55
|
-
"@kitschpatrol/shared-config": "^5.9.
|
|
55
|
+
"@kitschpatrol/shared-config": "^5.9.1",
|
|
56
56
|
"bumpp": "^10.3.1",
|
|
57
57
|
"execa": "^9.6.0",
|
|
58
58
|
"find-up": "^8.0.0",
|
package/readme.md
CHANGED
|
@@ -749,7 +749,7 @@ 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.
|
|
752
|
+
| package.json | 2.4 kB | 1.1 kB | 966 B |
|
|
753
753
|
| readme.md | 64 kB | 11.7 kB | 9.3 kB |
|
|
754
754
|
|
|
755
755
|
<!-- /size-table -->
|