@mintlify/cli 4.0.937 → 4.0.938

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/migrateMdx.js CHANGED
@@ -92,7 +92,8 @@ function processNav(nav) {
92
92
  return __awaiter(this, void 0, void 0, function* () {
93
93
  let newNav = Object.assign({}, nav);
94
94
  if ('pages' in newNav) {
95
- newNav.pages = yield Promise.all(newNav.pages.map((page) => __awaiter(this, void 0, void 0, function* () {
95
+ const newPages = yield Promise.all(newNav.pages.map((page) => __awaiter(this, void 0, void 0, function* () {
96
+ // eslint-disable-next-line @typescript-eslint/no-unnecessary-condition
96
97
  if (typeof page === 'object' && page !== null && 'group' in page) {
97
98
  return processNav(page);
98
99
  }
@@ -166,6 +167,8 @@ function processNav(nav) {
166
167
  }
167
168
  return page;
168
169
  })));
170
+ // eslint-disable-next-line @typescript-eslint/no-explicit-any
171
+ newNav.pages = newPages;
169
172
  }
170
173
  for (const division of ['groups', ...divisions]) {
171
174
  if (division in newNav) {