@mintlify/cli 4.0.1441 → 4.0.1443
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 +13 -2
- package/package.json +7 -7
package/bin/vendor/converter.js
CHANGED
|
@@ -155,7 +155,7 @@ var IGNORED_MERGE_ATTRS = /* @__PURE__ */ new Set([
|
|
|
155
155
|
"__isHidden",
|
|
156
156
|
"__editorOpen"
|
|
157
157
|
]);
|
|
158
|
-
var POSITION_STRIPPED_MERGE_ATTRS = /* @__PURE__ */ new Set(["mdxJsxNode"]);
|
|
158
|
+
var POSITION_STRIPPED_MERGE_ATTRS = /* @__PURE__ */ new Set(["mdxJsxNode", "mdastNode"]);
|
|
159
159
|
var HIDDEN_NODE_ATTRS = /* @__PURE__ */ new Set([
|
|
160
160
|
"__isHidden",
|
|
161
161
|
"__hasGroupParent",
|
|
@@ -8382,10 +8382,21 @@ var attrsEqual = (a, b) => {
|
|
|
8382
8382
|
return true;
|
|
8383
8383
|
};
|
|
8384
8384
|
var isMdastPosition = (v) => v !== null && typeof v === "object" && "start" in v && "end" in v;
|
|
8385
|
+
var isEstreeLoc = (v) => v !== null && typeof v === "object" && "start" in v && "end" in v;
|
|
8385
8386
|
var stringifyAttrValue = (key, value) => {
|
|
8386
8387
|
if (!POSITION_STRIPPED_MERGE_ATTRS.has(key))
|
|
8387
8388
|
return JSON.stringify(value);
|
|
8388
|
-
return JSON.stringify(value, (nestedKey, nestedValue)
|
|
8389
|
+
return JSON.stringify(value, function(nestedKey, nestedValue) {
|
|
8390
|
+
if (nestedKey === "position" && isMdastPosition(nestedValue))
|
|
8391
|
+
return void 0;
|
|
8392
|
+
if (nestedKey === "loc" && isEstreeLoc(nestedValue))
|
|
8393
|
+
return void 0;
|
|
8394
|
+
if ((nestedKey === "start" || nestedKey === "end") && typeof nestedValue === "number" && typeof this.start === "number" && typeof this.end === "number")
|
|
8395
|
+
return void 0;
|
|
8396
|
+
if (nestedKey === "range" && Array.isArray(nestedValue))
|
|
8397
|
+
return void 0;
|
|
8398
|
+
return nestedValue;
|
|
8399
|
+
});
|
|
8389
8400
|
};
|
|
8390
8401
|
var marksEqual = (a, b) => {
|
|
8391
8402
|
if (a === b)
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@mintlify/cli",
|
|
3
|
-
"version": "4.0.
|
|
3
|
+
"version": "4.0.1443",
|
|
4
4
|
"description": "The Mintlify CLI",
|
|
5
5
|
"engines": {
|
|
6
6
|
"node": ">=18.0.0"
|
|
@@ -45,11 +45,11 @@
|
|
|
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.1114",
|
|
49
|
+
"@mintlify/link-rot": "3.0.1316",
|
|
50
50
|
"@mintlify/models": "0.0.351",
|
|
51
|
-
"@mintlify/prebuild": "1.0.
|
|
52
|
-
"@mintlify/previewing": "4.0.
|
|
51
|
+
"@mintlify/prebuild": "1.0.1268",
|
|
52
|
+
"@mintlify/previewing": "4.0.1340",
|
|
53
53
|
"@mintlify/validation": "0.1.842",
|
|
54
54
|
"adm-zip": "0.6.0",
|
|
55
55
|
"chalk": "5.2.0",
|
|
@@ -86,7 +86,7 @@
|
|
|
86
86
|
"keytar": "7.9.0"
|
|
87
87
|
},
|
|
88
88
|
"devDependencies": {
|
|
89
|
-
"@mintlify/editor": "0.0.
|
|
89
|
+
"@mintlify/editor": "0.0.333",
|
|
90
90
|
"@mintlify/ts-config": "2.0.2",
|
|
91
91
|
"@tsconfig/recommended": "1.0.2",
|
|
92
92
|
"@types/detect-port": "1.3.2",
|
|
@@ -105,5 +105,5 @@
|
|
|
105
105
|
"vitest": "2.1.9",
|
|
106
106
|
"vitest-mock-process": "1.0.4"
|
|
107
107
|
},
|
|
108
|
-
"gitHead": "
|
|
108
|
+
"gitHead": "98ca91b8cd73da3be34c827d0b7ced17fa49b620"
|
|
109
109
|
}
|