@fern-api/fern-api-dev 5.23.3-311-gde30d4d171b → 5.23.3-313-g684cd92be05

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 +35 -7
  2. package/package.json +1 -1
package/cli.cjs CHANGED
@@ -669381,7 +669381,7 @@ var AccessTokenPosthogManager = class {
669381
669381
  properties: {
669382
669382
  ...event,
669383
669383
  ...event.properties,
669384
- version: "5.23.3-311-gde30d4d171b",
669384
+ version: "5.23.3-313-g684cd92be05",
669385
669385
  usingAccessToken: true,
669386
669386
  ...getRunIdProperties()
669387
669387
  }
@@ -669445,7 +669445,7 @@ var UserPosthogManager = class {
669445
669445
  distinctId: this.userId ?? await this.getPersistedDistinctId(),
669446
669446
  event: "CLI",
669447
669447
  properties: {
669448
- version: "5.23.3-311-gde30d4d171b",
669448
+ version: "5.23.3-313-g684cd92be05",
669449
669449
  ...event,
669450
669450
  ...event.properties,
669451
669451
  usingAccessToken: false,
@@ -854988,6 +854988,22 @@ var import_path58 = __toESM(require("path"), 1);
854988
854988
  // ../yaml/docs-validator/lib/rules/valid-markdown-link/check-if-pathname-exists.js
854989
854989
  init_lib8();
854990
854990
 
854991
+ // ../yaml/docs-validator/lib/rules/valid-markdown-link/dynamic-special-doc-page.js
854992
+ var DYNAMIC_SPEC_PATTERN = /^\/(openapi|asyncapi)\/.+\.(json|ya?ml)$/;
854993
+ function isDynamicSpecialDocPage(pathname, basePath) {
854994
+ if (DYNAMIC_SPEC_PATTERN.test(pathname)) {
854995
+ return true;
854996
+ }
854997
+ if (basePath != null) {
854998
+ const normalizedBase = basePath.startsWith("/") ? basePath : `/${basePath}`;
854999
+ if (pathname.startsWith(normalizedBase)) {
855000
+ const withoutBase = pathname.slice(normalizedBase.length);
855001
+ return DYNAMIC_SPEC_PATTERN.test(withoutBase);
855002
+ }
855003
+ }
855004
+ return false;
855005
+ }
855006
+
854991
855007
  // ../yaml/docs-validator/lib/rules/valid-markdown-link/redirect-for-path.js
854992
855008
  var import_url_join22 = __toESM(require_url_join(), 1);
854993
855009
  function matchPath2(pattern, path117) {
@@ -855077,6 +855093,9 @@ async function checkIfPathnameExists({ pathname, markdown, absoluteFilepath, wor
855077
855093
  if (isExternalUrl2(redirectedPath)) {
855078
855094
  return true;
855079
855095
  }
855096
+ if (isDynamicSpecialDocPage(redirectedPath, baseUrl.basePath)) {
855097
+ return true;
855098
+ }
855080
855099
  if (markdown && pageSlugs.has(removeLeadingSlash(redirectedPath))) {
855081
855100
  return true;
855082
855101
  }
@@ -855472,7 +855491,16 @@ var ValidMarkdownLinks = {
855472
855491
  });
855473
855492
  const versionSlugs = collector.getVersionNodes().map((v9) => v9.slug);
855474
855493
  const productSlugs = collector.getProductNodes().filter(navigation_exports.isInternalProductNode).map((p14) => p14.slug);
855475
- const specialDocPages = ["/llms-full.txt", "/llms.txt"];
855494
+ const specialDocPages = [
855495
+ "/llms-full.txt",
855496
+ "/llms.txt",
855497
+ "/openapi.json",
855498
+ "/openapi.yaml",
855499
+ "/openapi.yml",
855500
+ "/asyncapi.json",
855501
+ "/asyncapi.yaml",
855502
+ "/asyncapi.yml"
855503
+ ];
855476
855504
  for (const specialPage of specialDocPages) {
855477
855505
  const pageWithBasePath = baseUrl.basePath ? `${removeLeadingSlash(baseUrl.basePath)}${specialPage}` : removeLeadingSlash(specialPage);
855478
855506
  visitableSlugs.add(pageWithBasePath);
@@ -860358,7 +860386,7 @@ var LOCAL_STORAGE_FOLDER4 = ".fern-dev";
860358
860386
  var LOGS_FOLDER_NAME = "logs";
860359
860387
  var MAX_LOGS_DIR_SIZE_BYTES = 100 * 1024 * 1024;
860360
860388
  function getCliSource() {
860361
- const version7 = "5.23.3-311-gde30d4d171b";
860389
+ const version7 = "5.23.3-313-g684cd92be05";
860362
860390
  return `cli@${version7}`;
860363
860391
  }
860364
860392
  var DebugLogger = class {
@@ -880998,7 +881026,7 @@ var LegacyDocsPublisher = class {
880998
881026
  previewId,
880999
881027
  disableTemplates: void 0,
881000
881028
  skipUpload,
881001
- cliVersion: "5.23.3-311-gde30d4d171b",
881029
+ cliVersion: "5.23.3-313-g684cd92be05",
881002
881030
  loginCommand: "fern auth login"
881003
881031
  });
881004
881032
  if (taskContext.getResult() === TaskResult.Failure) {
@@ -955918,7 +955946,7 @@ function getAutomationContextFromEnv() {
955918
955946
  config_branch: process.env.FERN_CONFIG_BRANCH,
955919
955947
  config_pr_number: process.env.FERN_CONFIG_PR_NUMBER,
955920
955948
  trigger: process.env.GITHUB_EVENT_NAME,
955921
- cli_version: "5.23.3-311-gde30d4d171b"
955949
+ cli_version: "5.23.3-313-g684cd92be05"
955922
955950
  };
955923
955951
  }
955924
955952
  function isAutomationMode() {
@@ -956744,7 +956772,7 @@ var CliContext = class _CliContext {
956744
956772
  if (false) {
956745
956773
  this.logger.error("CLI_VERSION is not defined");
956746
956774
  }
956747
- return "5.23.3-311-gde30d4d171b";
956775
+ return "5.23.3-313-g684cd92be05";
956748
956776
  }
956749
956777
  getCliName() {
956750
956778
  if (false) {
package/package.json CHANGED
@@ -1,5 +1,5 @@
1
1
  {
2
- "version": "5.23.3-311-gde30d4d171b",
2
+ "version": "5.23.3-313-g684cd92be05",
3
3
  "repository": {
4
4
  "type": "git",
5
5
  "url": "git+https://github.com/fern-api/fern.git",