@mintlify/cli 4.0.1442 → 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.
@@ -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) => nestedKey === "position" && isMdastPosition(nestedValue) ? void 0 : 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.1442",
3
+ "version": "4.0.1443",
4
4
  "description": "The Mintlify CLI",
5
5
  "engines": {
6
6
  "node": ">=18.0.0"
@@ -86,7 +86,7 @@
86
86
  "keytar": "7.9.0"
87
87
  },
88
88
  "devDependencies": {
89
- "@mintlify/editor": "0.0.332",
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": "6ffe8a60281f02316e83b94101162e3f9c768f1e"
108
+ "gitHead": "98ca91b8cd73da3be34c827d0b7ced17fa49b620"
109
109
  }