alex-c-line 2.12.1 → 2.12.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/dist/index.cjs +4 -2
- package/dist/index.js +4 -2
- package/package.json +1 -1
package/dist/index.cjs
CHANGED
|
@@ -1131,7 +1131,9 @@ function replaceMarkdownPlaceholders(rawContent, templateVariables) {
|
|
|
1131
1131
|
let finalContent = content;
|
|
1132
1132
|
for (const placeholder of placeholders) {
|
|
1133
1133
|
if (!(placeholder in templateVariables)) throw new _alextheman_utility_v6.DataError({ placeholder }, "INVALID_PLACEHOLDER", "The placeholder found in frontmatter can not be found in the metadata.");
|
|
1134
|
-
finalContent = finalContent.replaceAll(`{{${placeholder}}}`,
|
|
1134
|
+
finalContent = finalContent.replaceAll(`{{${placeholder}}}`, () => {
|
|
1135
|
+
return templateVariables[placeholder];
|
|
1136
|
+
});
|
|
1135
1137
|
}
|
|
1136
1138
|
return finalContent;
|
|
1137
1139
|
}
|
|
@@ -1485,7 +1487,7 @@ function template(program) {
|
|
|
1485
1487
|
//#endregion
|
|
1486
1488
|
//#region package.json
|
|
1487
1489
|
var name = "alex-c-line";
|
|
1488
|
-
var version$1 = "2.12.
|
|
1490
|
+
var version$1 = "2.12.2";
|
|
1489
1491
|
var description = "Command-line tool with commands to streamline the developer workflow.";
|
|
1490
1492
|
//#endregion
|
|
1491
1493
|
//#region src/cli/notifications/updates/checkUpdate.ts
|
package/dist/index.js
CHANGED
|
@@ -1100,7 +1100,9 @@ function replaceMarkdownPlaceholders(rawContent, templateVariables) {
|
|
|
1100
1100
|
let finalContent = content;
|
|
1101
1101
|
for (const placeholder of placeholders) {
|
|
1102
1102
|
if (!(placeholder in templateVariables)) throw new DataError({ placeholder }, "INVALID_PLACEHOLDER", "The placeholder found in frontmatter can not be found in the metadata.");
|
|
1103
|
-
finalContent = finalContent.replaceAll(`{{${placeholder}}}`,
|
|
1103
|
+
finalContent = finalContent.replaceAll(`{{${placeholder}}}`, () => {
|
|
1104
|
+
return templateVariables[placeholder];
|
|
1105
|
+
});
|
|
1104
1106
|
}
|
|
1105
1107
|
return finalContent;
|
|
1106
1108
|
}
|
|
@@ -1454,7 +1456,7 @@ function template(program) {
|
|
|
1454
1456
|
//#endregion
|
|
1455
1457
|
//#region package.json
|
|
1456
1458
|
var name = "alex-c-line";
|
|
1457
|
-
var version$1 = "2.12.
|
|
1459
|
+
var version$1 = "2.12.2";
|
|
1458
1460
|
var description = "Command-line tool with commands to streamline the developer workflow.";
|
|
1459
1461
|
//#endregion
|
|
1460
1462
|
//#region src/cli/notifications/updates/checkUpdate.ts
|