@mintlify/cli 4.0.1609 → 4.0.1611
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/vendor/converter.js
CHANGED
|
@@ -2911,12 +2911,13 @@ var YAML_DUMP_OPTIONS = {
|
|
|
2911
2911
|
quotingType: '"',
|
|
2912
2912
|
forceQuotes: true
|
|
2913
2913
|
};
|
|
2914
|
-
|
|
2914
|
+
var THUMBNAIL_EMPTY_OVERRIDE_KEYS = /* @__PURE__ */ new Set(["background", "eyebrow"]);
|
|
2915
|
+
function deepFilterEmptyValues(value, preservedEmptyKeys) {
|
|
2915
2916
|
if (Array.isArray(value)) {
|
|
2916
|
-
return value.map(deepFilterEmptyValues);
|
|
2917
|
+
return value.map((entry) => deepFilterEmptyValues(entry));
|
|
2917
2918
|
}
|
|
2918
2919
|
if (typeof value === "object" && value !== null && !(value instanceof Date)) {
|
|
2919
|
-
return Object.fromEntries(Object.entries(value).filter(([
|
|
2920
|
+
return Object.fromEntries(Object.entries(value).filter(([key, v]) => isNonEmptyFrontmatterValue(v) || v === "" && Boolean(preservedEmptyKeys === null || preservedEmptyKeys === void 0 ? void 0 : preservedEmptyKeys.has(key))).map(([k, v]) => [k, deepFilterEmptyValues(v)]));
|
|
2920
2921
|
}
|
|
2921
2922
|
return value;
|
|
2922
2923
|
}
|
|
@@ -2929,7 +2930,8 @@ function formatFrontmatterValue(key, value) {
|
|
|
2929
2930
|
if (normalized === void 0) {
|
|
2930
2931
|
normalized = null;
|
|
2931
2932
|
}
|
|
2932
|
-
|
|
2933
|
+
const preservedEmptyKeys = key === "thumbnail" ? THUMBNAIL_EMPTY_OVERRIDE_KEYS : void 0;
|
|
2934
|
+
return yaml.dump({ [key]: deepFilterEmptyValues(normalized, preservedEmptyKeys) }, YAML_DUMP_OPTIONS).trimEnd();
|
|
2933
2935
|
}
|
|
2934
2936
|
|
|
2935
2937
|
// ../editor/dist/converter/serialize/handlers/components.js
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@mintlify/cli",
|
|
3
|
-
"version": "4.0.
|
|
3
|
+
"version": "4.0.1611",
|
|
4
4
|
"description": "The Mintlify CLI",
|
|
5
5
|
"engines": {
|
|
6
6
|
"node": ">=18.0.0"
|
|
@@ -45,13 +45,13 @@
|
|
|
45
45
|
},
|
|
46
46
|
"dependencies": {
|
|
47
47
|
"@inquirer/prompts": "7.9.0",
|
|
48
|
-
"@mintlify/common": "1.0.
|
|
49
|
-
"@mintlify/link-rot": "3.0.
|
|
48
|
+
"@mintlify/common": "1.0.1227",
|
|
49
|
+
"@mintlify/link-rot": "3.0.1436",
|
|
50
50
|
"@mintlify/models": "0.0.369",
|
|
51
|
-
"@mintlify/og": "0.0.
|
|
52
|
-
"@mintlify/prebuild": "1.0.
|
|
53
|
-
"@mintlify/previewing": "4.0.
|
|
54
|
-
"@mintlify/validation": "0.1.
|
|
51
|
+
"@mintlify/og": "0.0.25",
|
|
52
|
+
"@mintlify/prebuild": "1.0.1386",
|
|
53
|
+
"@mintlify/previewing": "4.0.1459",
|
|
54
|
+
"@mintlify/validation": "0.1.902",
|
|
55
55
|
"adm-zip": "0.6.0",
|
|
56
56
|
"chalk": "5.2.0",
|
|
57
57
|
"color": "4.2.3",
|
|
@@ -87,7 +87,7 @@
|
|
|
87
87
|
"keytar": "7.9.0"
|
|
88
88
|
},
|
|
89
89
|
"devDependencies": {
|
|
90
|
-
"@mintlify/editor": "0.0.
|
|
90
|
+
"@mintlify/editor": "0.0.483",
|
|
91
91
|
"@mintlify/ts-config": "2.0.2",
|
|
92
92
|
"@tsconfig/recommended": "1.0.2",
|
|
93
93
|
"@types/detect-port": "1.3.2",
|
|
@@ -106,5 +106,5 @@
|
|
|
106
106
|
"vitest": "2.1.9",
|
|
107
107
|
"vitest-mock-process": "1.0.4"
|
|
108
108
|
},
|
|
109
|
-
"gitHead": "
|
|
109
|
+
"gitHead": "236eb5b41f0130a511aa3f4893c3cdf80b995d02"
|
|
110
110
|
}
|