@fern-api/fern-api-dev 4.39.0-4-g22e82f8aac8 → 4.40.0

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.
Files changed (2) hide show
  1. package/cli.cjs +7 -7
  2. package/package.json +1 -1
package/cli.cjs CHANGED
@@ -513537,8 +513537,8 @@ async function getFrontmatterTitle({ absolutePath, readFileFn = (path90, encodin
513537
513537
  async function buildNavigationForDirectory({ directoryPath, titleSource, getDir = getDirectoryContents, readFileFn = (path90, encoding) => (0, import_promises13.readFile)(path90, encoding) }) {
513538
513538
  const contents = await getDir(directoryPath);
513539
513539
  const useFrontmatterTitles = titleSource === "frontmatter";
513540
- const markdownFiles = contents.filter((item) => item.type === "file" && (item.name.toLowerCase().endsWith(".md") || item.name.toLowerCase().endsWith(".mdx")));
513541
- const subdirectories = contents.filter((item) => item.type === "directory");
513540
+ const markdownFiles = contents.filter((item) => item.type === "file" && !item.name.startsWith("_") && (item.name.toLowerCase().endsWith(".md") || item.name.toLowerCase().endsWith(".mdx")));
513541
+ const subdirectories = contents.filter((item) => item.type === "directory" && !item.name.startsWith("_"));
513542
513542
  const [pagePositions, pageTitles] = await Promise.all([
513543
513543
  Promise.all(markdownFiles.map((file4) => getFrontmatterPosition({ absolutePath: file4.absolutePath, readFileFn }))),
513544
513544
  useFrontmatterTitles ? Promise.all(markdownFiles.map((file4) => getFrontmatterTitle({ absolutePath: file4.absolutePath, readFileFn }))) : Promise.resolve(markdownFiles.map(() => void 0))
@@ -581651,7 +581651,7 @@ var AccessTokenPosthogManager = class {
581651
581651
  properties: {
581652
581652
  ...event,
581653
581653
  ...event.properties,
581654
- version: "4.39.0-4-g22e82f8aac8",
581654
+ version: "4.40.0",
581655
581655
  usingAccessToken: true
581656
581656
  }
581657
581657
  });
@@ -581702,7 +581702,7 @@ var UserPosthogManager = class {
581702
581702
  distinctId: this.userId ?? await this.getPersistedDistinctId(),
581703
581703
  event: "CLI",
581704
581704
  properties: {
581705
- version: "4.39.0-4-g22e82f8aac8",
581705
+ version: "4.40.0",
581706
581706
  ...event,
581707
581707
  ...event.properties,
581708
581708
  usingAccessToken: false,
@@ -787805,7 +787805,7 @@ var import_path51 = __toESM(require("path"), 1);
787805
787805
  var LOCAL_STORAGE_FOLDER4 = ".fern-dev";
787806
787806
  var LOGS_FOLDER_NAME = "logs";
787807
787807
  function getCliSource() {
787808
- const version8 = "4.39.0-4-g22e82f8aac8";
787808
+ const version8 = "4.40.0";
787809
787809
  return `cli@${version8}`;
787810
787810
  }
787811
787811
  var DebugLogger = class {
@@ -798616,7 +798616,7 @@ var LegacyDocsPublisher = class {
798616
798616
  previewId: void 0,
798617
798617
  disableTemplates: void 0,
798618
798618
  skipUpload,
798619
- cliVersion: "4.39.0-4-g22e82f8aac8"
798619
+ cliVersion: "4.40.0"
798620
798620
  });
798621
798621
  if (taskContext.getResult() === TaskResult.Failure) {
798622
798622
  return { success: false };
@@ -871223,7 +871223,7 @@ var CliContext = class {
871223
871223
  if (false) {
871224
871224
  this.logger.error("CLI_VERSION is not defined");
871225
871225
  }
871226
- return "4.39.0-4-g22e82f8aac8";
871226
+ return "4.40.0";
871227
871227
  }
871228
871228
  getCliName() {
871229
871229
  if (false) {
package/package.json CHANGED
@@ -1,5 +1,5 @@
1
1
  {
2
- "version": "4.39.0-4-g22e82f8aac8",
2
+ "version": "4.40.0",
3
3
  "repository": {
4
4
  "type": "git",
5
5
  "url": "git+https://github.com/fern-api/fern.git",