@fern-api/fern-api-dev 3.67.0 → 3.67.1
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 +10 -6
- package/package.json +1 -1
package/cli.cjs
CHANGED
|
@@ -1427240,7 +1427240,7 @@ var AccessTokenPosthogManager = class {
|
|
|
1427240
1427240
|
properties: {
|
|
1427241
1427241
|
...event,
|
|
1427242
1427242
|
...event.properties,
|
|
1427243
|
-
version: "3.67.
|
|
1427243
|
+
version: "3.67.1",
|
|
1427244
1427244
|
usingAccessToken: true
|
|
1427245
1427245
|
}
|
|
1427246
1427246
|
});
|
|
@@ -1427339,7 +1427339,7 @@ var UserPosthogManager = class {
|
|
|
1427339
1427339
|
distinctId: this.userId ?? await this.getPersistedDistinctId(),
|
|
1427340
1427340
|
event: "CLI",
|
|
1427341
1427341
|
properties: {
|
|
1427342
|
-
version: "3.67.
|
|
1427342
|
+
version: "3.67.1",
|
|
1427343
1427343
|
...event,
|
|
1427344
1427344
|
...event.properties,
|
|
1427345
1427345
|
usingAccessToken: false,
|
|
@@ -1509617,11 +1509617,15 @@ async function expandFolderConfiguration({ rawConfig, absolutePathToFernFolder,
|
|
|
1509617
1509617
|
if (!await doesPathExist(folderPath)) {
|
|
1509618
1509618
|
context2.failAndThrow(`Folder not found: ${rawConfig.folder}`);
|
|
1509619
1509619
|
}
|
|
1509620
|
-
const contents = await buildNavigationForDirectory({
|
|
1509620
|
+
const contents = await buildNavigationForDirectory({
|
|
1509621
|
+
directoryPath: folderPath,
|
|
1509622
|
+
titleSource: rawConfig.titleSource
|
|
1509623
|
+
});
|
|
1509621
1509624
|
const indexPage = contents.find((item) => item.type === "page" && (item.slug === "index" || item.absolutePath.toLowerCase().endsWith("/index.mdx") || item.absolutePath.toLowerCase().endsWith("/index.md")));
|
|
1509622
1509625
|
const filteredContents = indexPage ? contents.filter((item) => item !== indexPage) : contents;
|
|
1509623
1509626
|
const folderName = import_path20.default.basename(folderPath);
|
|
1509624
|
-
const
|
|
1509627
|
+
const indexFrontmatterTitle = rawConfig.titleSource === "frontmatter" && indexPage?.type === "page" ? await getFrontmatterTitle({ absolutePath: indexPage.absolutePath }) : void 0;
|
|
1509628
|
+
const title4 = rawConfig.title ?? indexFrontmatterTitle ?? nameToTitle({ name: folderName });
|
|
1509625
1509629
|
const slug = rawConfig.slug ?? nameToSlug({ name: folderName });
|
|
1509626
1509630
|
return {
|
|
1509627
1509631
|
type: "section",
|
|
@@ -1714266,7 +1714270,7 @@ var CliContext = class {
|
|
|
1714266
1714270
|
if (false) {
|
|
1714267
1714271
|
this.logger.error("CLI_VERSION is not defined");
|
|
1714268
1714272
|
}
|
|
1714269
|
-
return "3.67.
|
|
1714273
|
+
return "3.67.1";
|
|
1714270
1714274
|
}
|
|
1714271
1714275
|
getCliName() {
|
|
1714272
1714276
|
if (false) {
|
|
@@ -1717386,7 +1717390,7 @@ var import_path56 = __toESM(require("path"), 1);
|
|
|
1717386
1717390
|
var LOCAL_STORAGE_FOLDER4 = ".fern-dev";
|
|
1717387
1717391
|
var LOGS_FOLDER_NAME = "logs";
|
|
1717388
1717392
|
function getCliSource() {
|
|
1717389
|
-
const version7 = "3.67.
|
|
1717393
|
+
const version7 = "3.67.1";
|
|
1717390
1717394
|
return `cli@${version7}`;
|
|
1717391
1717395
|
}
|
|
1717392
1717396
|
var DebugLogger = class {
|
package/package.json
CHANGED