@fern-api/fern-api-dev 5.37.11 → 5.37.12
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/cli.cjs +25 -14
- package/package.json +1 -1
package/cli.cjs
CHANGED
|
@@ -669322,7 +669322,7 @@ var AccessTokenPosthogManager = class {
|
|
|
669322
669322
|
properties: {
|
|
669323
669323
|
...event,
|
|
669324
669324
|
...event.properties,
|
|
669325
|
-
version: "5.37.
|
|
669325
|
+
version: "5.37.12",
|
|
669326
669326
|
usingAccessToken: true,
|
|
669327
669327
|
...getRunIdProperties()
|
|
669328
669328
|
}
|
|
@@ -669386,7 +669386,7 @@ var UserPosthogManager = class {
|
|
|
669386
669386
|
distinctId: this.userId ?? await this.getPersistedDistinctId(),
|
|
669387
669387
|
event: "CLI",
|
|
669388
669388
|
properties: {
|
|
669389
|
-
version: "5.37.
|
|
669389
|
+
version: "5.37.12",
|
|
669390
669390
|
...event,
|
|
669391
669391
|
...event.properties,
|
|
669392
669392
|
usingAccessToken: false,
|
|
@@ -832855,7 +832855,7 @@ function urlMatchesInstanceHost(url3, instanceUrls) {
|
|
|
832855
832855
|
init_js();
|
|
832856
832856
|
function buildPageIdToSlugMap2(root6) {
|
|
832857
832857
|
const collector = navigation_exports.NodeCollector.collect(root6);
|
|
832858
|
-
const
|
|
832858
|
+
const pageIdToSlugs = /* @__PURE__ */ new Map();
|
|
832859
832859
|
for (const entry of collector.getSlugMapWithParents().values()) {
|
|
832860
832860
|
const { node: node4, parents } = entry;
|
|
832861
832861
|
if (!navigation_exports.isPage(node4)) {
|
|
@@ -832872,9 +832872,14 @@ function buildPageIdToSlugMap2(root6) {
|
|
|
832872
832872
|
slug = changelogParent.canonicalSlug ?? changelogParent.slug;
|
|
832873
832873
|
}
|
|
832874
832874
|
}
|
|
832875
|
-
|
|
832875
|
+
const existing = pageIdToSlugs.get(pageId);
|
|
832876
|
+
if (existing != null) {
|
|
832877
|
+
existing.add(slug);
|
|
832878
|
+
} else {
|
|
832879
|
+
pageIdToSlugs.set(pageId, /* @__PURE__ */ new Set([slug]));
|
|
832880
|
+
}
|
|
832876
832881
|
}
|
|
832877
|
-
return
|
|
832882
|
+
return pageIdToSlugs;
|
|
832878
832883
|
}
|
|
832879
832884
|
|
|
832880
832885
|
// ../../../node_modules/.pnpm/path-to-regexp@6.3.0/node_modules/path-to-regexp/dist.es2015/index.js
|
|
@@ -833290,20 +833295,26 @@ function isSlugCoveredByRedirect(oldSlug, redirects, basePath) {
|
|
|
833290
833295
|
return matchPath(source2, oldPath);
|
|
833291
833296
|
});
|
|
833292
833297
|
}
|
|
833293
|
-
function findRemovedSlugs(publishedEntries,
|
|
833294
|
-
const activeSlugs = new Set(
|
|
833298
|
+
function findRemovedSlugs(publishedEntries, localPageIdToSlugs) {
|
|
833299
|
+
const activeSlugs = /* @__PURE__ */ new Set();
|
|
833300
|
+
for (const slugs of localPageIdToSlugs.values()) {
|
|
833301
|
+
for (const slug of slugs) {
|
|
833302
|
+
activeSlugs.add(slug);
|
|
833303
|
+
}
|
|
833304
|
+
}
|
|
833295
833305
|
const removed = [];
|
|
833296
833306
|
for (const publishedEntry of publishedEntries) {
|
|
833297
|
-
const
|
|
833298
|
-
if (
|
|
833307
|
+
const localSlugs = localPageIdToSlugs.get(publishedEntry.pageId);
|
|
833308
|
+
if (localSlugs == null) {
|
|
833299
833309
|
if (activeSlugs.has(publishedEntry.slug)) {
|
|
833300
833310
|
continue;
|
|
833301
833311
|
}
|
|
833302
833312
|
removed.push({ pageId: publishedEntry.pageId, oldSlug: publishedEntry.slug, newSlug: void 0 });
|
|
833303
|
-
} else if (
|
|
833313
|
+
} else if (!localSlugs.has(publishedEntry.slug)) {
|
|
833304
833314
|
if (activeSlugs.has(publishedEntry.slug)) {
|
|
833305
833315
|
continue;
|
|
833306
833316
|
}
|
|
833317
|
+
const newSlug = localSlugs.values().next().value;
|
|
833307
833318
|
removed.push({ pageId: publishedEntry.pageId, oldSlug: publishedEntry.slug, newSlug });
|
|
833308
833319
|
}
|
|
833309
833320
|
}
|
|
@@ -860219,7 +860230,7 @@ var LOCAL_STORAGE_FOLDER4 = ".fern-dev";
|
|
|
860219
860230
|
var LOGS_FOLDER_NAME = "logs";
|
|
860220
860231
|
var MAX_LOGS_DIR_SIZE_BYTES = 100 * 1024 * 1024;
|
|
860221
860232
|
function getCliSource() {
|
|
860222
|
-
const version7 = "5.37.
|
|
860233
|
+
const version7 = "5.37.12";
|
|
860223
860234
|
return `cli@${version7}`;
|
|
860224
860235
|
}
|
|
860225
860236
|
var DebugLogger = class {
|
|
@@ -880820,7 +880831,7 @@ var LegacyDocsPublisher = class {
|
|
|
880820
880831
|
previewId,
|
|
880821
880832
|
disableTemplates: void 0,
|
|
880822
880833
|
skipUpload,
|
|
880823
|
-
cliVersion: "5.37.
|
|
880834
|
+
cliVersion: "5.37.12",
|
|
880824
880835
|
loginCommand: "fern auth login"
|
|
880825
880836
|
});
|
|
880826
880837
|
if (taskContext.getResult() === TaskResult.Failure) {
|
|
@@ -955741,7 +955752,7 @@ function getAutomationContextFromEnv() {
|
|
|
955741
955752
|
config_branch: process.env.FERN_CONFIG_BRANCH,
|
|
955742
955753
|
config_pr_number: process.env.FERN_CONFIG_PR_NUMBER,
|
|
955743
955754
|
trigger: process.env.GITHUB_EVENT_NAME,
|
|
955744
|
-
cli_version: "5.37.
|
|
955755
|
+
cli_version: "5.37.12"
|
|
955745
955756
|
};
|
|
955746
955757
|
}
|
|
955747
955758
|
function isAutomationMode() {
|
|
@@ -956567,7 +956578,7 @@ var CliContext = class _CliContext {
|
|
|
956567
956578
|
if (false) {
|
|
956568
956579
|
this.logger.error("CLI_VERSION is not defined");
|
|
956569
956580
|
}
|
|
956570
|
-
return "5.37.
|
|
956581
|
+
return "5.37.12";
|
|
956571
956582
|
}
|
|
956572
956583
|
getCliName() {
|
|
956573
956584
|
if (false) {
|
package/package.json
CHANGED