lingo.dev 0.87.6 → 0.87.7
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/build/cli.cjs +5 -4
- package/build/cli.cjs.map +1 -1
- package/build/cli.mjs +5 -4
- package/build/cli.mjs.map +1 -1
- package/package.json +1 -1
package/build/cli.cjs
CHANGED
|
@@ -3109,16 +3109,17 @@ function ensureTrailingFenceNewline(_content) {
|
|
|
3109
3109
|
const matches = workingContent.match(fenceRegex);
|
|
3110
3110
|
if (matches) {
|
|
3111
3111
|
const match = matches[0];
|
|
3112
|
-
|
|
3112
|
+
const replacement = match.trim().startsWith(">") ? match : `
|
|
3113
3113
|
|
|
3114
3114
|
${match}
|
|
3115
3115
|
|
|
3116
|
-
|
|
3116
|
+
`;
|
|
3117
|
+
content = content.replace(match, replacement);
|
|
3117
3118
|
workingContent = workingContent.replace(match, "");
|
|
3118
3119
|
found = true;
|
|
3119
3120
|
}
|
|
3120
3121
|
} while (found);
|
|
3121
|
-
content = _lodash2.default.chain(content).split("\n\n").map((section) =>
|
|
3122
|
+
content = _lodash2.default.chain(content).split("\n\n").map((section) => _lodash2.default.trim(section, "\n")).filter(Boolean).join("\n\n").value();
|
|
3122
3123
|
return content;
|
|
3123
3124
|
}
|
|
3124
3125
|
function extractCodePlaceholders(content) {
|
|
@@ -5645,7 +5646,7 @@ function validateParams2(i18nConfig, flags) {
|
|
|
5645
5646
|
// package.json
|
|
5646
5647
|
var package_default = {
|
|
5647
5648
|
name: "lingo.dev",
|
|
5648
|
-
version: "0.87.
|
|
5649
|
+
version: "0.87.7",
|
|
5649
5650
|
description: "Lingo.dev CLI",
|
|
5650
5651
|
private: false,
|
|
5651
5652
|
publishConfig: {
|