@fern-api/fern-api-dev 5.27.2 → 5.27.3

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 +30 -8
  2. package/package.json +1 -1
package/cli.cjs CHANGED
@@ -587451,7 +587451,18 @@ async function getVersionedNavigationConfiguration({ versions, absolutePathToFer
587451
587451
  const versionedNavbars = [];
587452
587452
  for (const version7 of versions) {
587453
587453
  const absoluteFilepathToVersionFile = resolve6(absolutePathToFernFolder, version7.path);
587454
- const versionContent = jsYaml.load((await (0, import_promises14.readFile)(absoluteFilepathToVersionFile)).toString());
587454
+ let versionContent;
587455
+ try {
587456
+ versionContent = jsYaml.load((await (0, import_promises14.readFile)(absoluteFilepathToVersionFile)).toString());
587457
+ } catch (error50) {
587458
+ if (error50 instanceof jsYaml.YAMLException) {
587459
+ throw new CliError({
587460
+ message: `Failed to parse version file ${version7.path}: ${error50.message}`,
587461
+ code: CliError.Code.ParseError
587462
+ });
587463
+ }
587464
+ throw error50;
587465
+ }
587455
587466
  const removedPaths = [];
587456
587467
  const sanitizedVersionContent = sanitizeNullValues(versionContent, [], removedPaths);
587457
587468
  if (removedPaths.length > 0) {
@@ -587501,7 +587512,18 @@ async function getNavigationConfiguration({ tabs, products, versions, navigation
587501
587512
  if ("path" in product) {
587502
587513
  let navigation3;
587503
587514
  const absoluteFilepathToProductFile = resolve6(absolutePathToFernFolder, product.path);
587504
- const content5 = jsYaml.load((await (0, import_promises14.readFile)(absoluteFilepathToProductFile)).toString());
587515
+ let content5;
587516
+ try {
587517
+ content5 = jsYaml.load((await (0, import_promises14.readFile)(absoluteFilepathToProductFile)).toString());
587518
+ } catch (error50) {
587519
+ if (error50 instanceof jsYaml.YAMLException) {
587520
+ throw new CliError({
587521
+ message: `Failed to parse product file ${product.path}: ${error50.message}`,
587522
+ code: CliError.Code.ParseError
587523
+ });
587524
+ }
587525
+ throw error50;
587526
+ }
587505
587527
  const removedPaths = [];
587506
587528
  const sanitizedContent = sanitizeNullValues(content5, [], removedPaths);
587507
587529
  if (removedPaths.length > 0) {
@@ -667943,7 +667965,7 @@ var AccessTokenPosthogManager = class {
667943
667965
  properties: {
667944
667966
  ...event,
667945
667967
  ...event.properties,
667946
- version: "5.27.2",
667968
+ version: "5.27.3",
667947
667969
  usingAccessToken: true,
667948
667970
  ...getRunIdProperties()
667949
667971
  }
@@ -668007,7 +668029,7 @@ var UserPosthogManager = class {
668007
668029
  distinctId: this.userId ?? await this.getPersistedDistinctId(),
668008
668030
  event: "CLI",
668009
668031
  properties: {
668010
- version: "5.27.2",
668032
+ version: "5.27.3",
668011
668033
  ...event,
668012
668034
  ...event.properties,
668013
668035
  usingAccessToken: false,
@@ -859579,7 +859601,7 @@ var LOCAL_STORAGE_FOLDER4 = ".fern-dev";
859579
859601
  var LOGS_FOLDER_NAME = "logs";
859580
859602
  var MAX_LOGS_DIR_SIZE_BYTES = 100 * 1024 * 1024;
859581
859603
  function getCliSource() {
859582
- const version7 = "5.27.2";
859604
+ const version7 = "5.27.3";
859583
859605
  return `cli@${version7}`;
859584
859606
  }
859585
859607
  var DebugLogger = class {
@@ -873569,7 +873591,7 @@ var LegacyDocsPublisher = class {
873569
873591
  previewId,
873570
873592
  disableTemplates: void 0,
873571
873593
  skipUpload,
873572
- cliVersion: "5.27.2",
873594
+ cliVersion: "5.27.3",
873573
873595
  loginCommand: "fern auth login"
873574
873596
  });
873575
873597
  if (taskContext.getResult() === TaskResult.Failure) {
@@ -947974,7 +947996,7 @@ function getAutomationContextFromEnv() {
947974
947996
  config_branch: process.env.FERN_CONFIG_BRANCH,
947975
947997
  config_pr_number: process.env.FERN_CONFIG_PR_NUMBER,
947976
947998
  trigger: process.env.GITHUB_EVENT_NAME,
947977
- cli_version: "5.27.2"
947999
+ cli_version: "5.27.3"
947978
948000
  };
947979
948001
  }
947980
948002
  function isAutomationMode() {
@@ -948800,7 +948822,7 @@ var CliContext = class _CliContext {
948800
948822
  if (false) {
948801
948823
  this.logger.error("CLI_VERSION is not defined");
948802
948824
  }
948803
- return "5.27.2";
948825
+ return "5.27.3";
948804
948826
  }
948805
948827
  getCliName() {
948806
948828
  if (false) {
package/package.json CHANGED
@@ -1,5 +1,5 @@
1
1
  {
2
- "version": "5.27.2",
2
+ "version": "5.27.3",
3
3
  "repository": {
4
4
  "type": "git",
5
5
  "url": "git+https://github.com/fern-api/fern.git",