@fern-api/fern-api-dev 5.38.0 → 5.38.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.
Files changed (2) hide show
  1. package/cli.cjs +16 -11
  2. 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.38.0",
669325
+ version: "5.38.1",
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.38.0",
669389
+ version: "5.38.1",
669390
669390
  ...event,
669391
669391
  ...event.properties,
669392
669392
  usingAccessToken: false,
@@ -855497,6 +855497,7 @@ var ValidMarkdownLinks = {
855497
855497
  }
855498
855498
  }
855499
855499
  }
855500
+ const apiReferenceTitle = typeof config5.api === "string" ? config5.api : "API Reference";
855500
855501
  const pathToCheckViolations = await Promise.all([...uniquePathnames.values()].map(async (pathnameToCheck) => {
855501
855502
  const exists2 = await checkIfPathnameExists({
855502
855503
  pathname: pathnameToCheck.pathname,
@@ -855512,17 +855513,17 @@ var ValidMarkdownLinks = {
855512
855513
  if (exists2 === true) {
855513
855514
  return [];
855514
855515
  }
855515
- return exists2.map((brokenPathname) => {
855516
- const [message, relFilePath] = createLinkViolationMessage({
855516
+ const numBrokenSourceContexts = exists2.length > 0 ? exists2.length : 1;
855517
+ return Array.from({ length: numBrokenSourceContexts }, () => {
855518
+ const [message, relFilePath] = createApiReferenceLinkViolationMessage({
855517
855519
  pathnameToCheck,
855518
- targetPathname: brokenPathname,
855519
- absoluteFilepathToWorkspace: workspace.absoluteFilePath
855520
+ apiReferenceTitle
855520
855521
  });
855521
855522
  return {
855522
855523
  name: ValidMarkdownLinks.name,
855523
855524
  severity: "error",
855524
855525
  message,
855525
- relFilepath: relFilePath
855526
+ relativeFilepath: relFilePath
855526
855527
  };
855527
855528
  });
855528
855529
  }));
@@ -855547,6 +855548,10 @@ function createLinkViolationMessage({ pathnameToCheck, targetPathname, absoluteF
855547
855548
  fix here: ${relativeFilepath}:${position4.start.line}:${position4.start.column}`;
855548
855549
  return [msg, relativeFilepath];
855549
855550
  }
855551
+ function createApiReferenceLinkViolationMessage({ pathnameToCheck, apiReferenceTitle }) {
855552
+ const msg = `broken link to ${source_default.bold(pathnameToCheck.pathname)} in ${apiReferenceTitle} description`;
855553
+ return [msg, RelativeFilePath2.of("")];
855554
+ }
855550
855555
  function toLatest(apiDefinition) {
855551
855556
  const latest2 = api_definition_exports.ApiDefinitionV1ToLatest.from(apiDefinition).migrate();
855552
855557
  return latest2;
@@ -860294,7 +860299,7 @@ var LOCAL_STORAGE_FOLDER4 = ".fern-dev";
860294
860299
  var LOGS_FOLDER_NAME = "logs";
860295
860300
  var MAX_LOGS_DIR_SIZE_BYTES = 100 * 1024 * 1024;
860296
860301
  function getCliSource() {
860297
- const version7 = "5.38.0";
860302
+ const version7 = "5.38.1";
860298
860303
  return `cli@${version7}`;
860299
860304
  }
860300
860305
  var DebugLogger = class {
@@ -880895,7 +880900,7 @@ var LegacyDocsPublisher = class {
880895
880900
  previewId,
880896
880901
  disableTemplates: void 0,
880897
880902
  skipUpload,
880898
- cliVersion: "5.38.0",
880903
+ cliVersion: "5.38.1",
880899
880904
  loginCommand: "fern auth login"
880900
880905
  });
880901
880906
  if (taskContext.getResult() === TaskResult.Failure) {
@@ -955815,7 +955820,7 @@ function getAutomationContextFromEnv() {
955815
955820
  config_branch: process.env.FERN_CONFIG_BRANCH,
955816
955821
  config_pr_number: process.env.FERN_CONFIG_PR_NUMBER,
955817
955822
  trigger: process.env.GITHUB_EVENT_NAME,
955818
- cli_version: "5.38.0"
955823
+ cli_version: "5.38.1"
955819
955824
  };
955820
955825
  }
955821
955826
  function isAutomationMode() {
@@ -956641,7 +956646,7 @@ var CliContext = class _CliContext {
956641
956646
  if (false) {
956642
956647
  this.logger.error("CLI_VERSION is not defined");
956643
956648
  }
956644
- return "5.38.0";
956649
+ return "5.38.1";
956645
956650
  }
956646
956651
  getCliName() {
956647
956652
  if (false) {
package/package.json CHANGED
@@ -1,5 +1,5 @@
1
1
  {
2
- "version": "5.38.0",
2
+ "version": "5.38.1",
3
3
  "repository": {
4
4
  "type": "git",
5
5
  "url": "git+https://github.com/fern-api/fern.git",