@fern-api/fern-api-dev 3.95.3 → 3.95.4

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 +22 -6
  2. package/package.json +1 -1
package/cli.cjs CHANGED
@@ -577366,7 +577366,7 @@ var AccessTokenPosthogManager = class {
577366
577366
  properties: {
577367
577367
  ...event,
577368
577368
  ...event.properties,
577369
- version: "3.95.3",
577369
+ version: "3.95.4",
577370
577370
  usingAccessToken: true
577371
577371
  }
577372
577372
  });
@@ -577475,7 +577475,7 @@ var UserPosthogManager = class {
577475
577475
  distinctId: this.userId ?? await this.getPersistedDistinctId(),
577476
577476
  event: "CLI",
577477
577477
  properties: {
577478
- version: "3.95.3",
577478
+ version: "3.95.4",
577479
577479
  ...event,
577480
577480
  ...event.properties,
577481
577481
  usingAccessToken: false,
@@ -659634,6 +659634,14 @@ async function loadRawGeneratorsConfiguration({ absolutePathToWorkspace, context
659634
659634
  ${e6.mark.snippet}`;
659635
659635
  }
659636
659636
  }
659637
+ if (e6.mark != null && (e6.reason === "bad indentation of a mapping entry" || e6.reason === "unexpected end of the stream within a flow collection")) {
659638
+ const fileContent = contentsStr.toString();
659639
+ const lines = fileContent.split("\n");
659640
+ const errorLine = e6.mark.line >= 0 && e6.mark.line < lines.length ? lines[e6.mark.line] : void 0;
659641
+ if (errorLine != null && /:\s+@/.test(errorLine)) {
659642
+ errorMessage += '\n\nHint: Values starting with "@" (such as scoped npm packages) must be wrapped in quotes.\n Example: package-name: "@scope/package"';
659643
+ }
659644
+ }
659637
659645
  context2.failAndThrow(errorMessage);
659638
659646
  } else {
659639
659647
  throw e6;
@@ -709789,8 +709797,9 @@ var GeneratorsYmlMigrator = class {
709789
709797
  ]
709790
709798
  };
709791
709799
  }
709800
+ let content5;
709792
709801
  try {
709793
- const content5 = await (0, import_promises50.readFile)(absoluteFilePath, "utf-8");
709802
+ content5 = await (0, import_promises50.readFile)(absoluteFilePath, "utf-8");
709794
709803
  const config3 = jsYaml.load(content5);
709795
709804
  if (config3 == null || typeof config3 !== "object") {
709796
709805
  return {
@@ -709830,7 +709839,14 @@ var GeneratorsYmlMigrator = class {
709830
709839
  absoluteFilePath
709831
709840
  };
709832
709841
  } catch (error49) {
709833
- const message = error49 instanceof Error ? error49.message : String(error49);
709842
+ let message = error49 instanceof Error ? error49.message : String(error49);
709843
+ if (error49 instanceof jsYaml.YAMLException && error49.mark != null && content5 != null && (error49.reason === "bad indentation of a mapping entry" || error49.reason === "unexpected end of the stream within a flow collection")) {
709844
+ const lines = content5.split("\n");
709845
+ const errorLine = error49.mark.line >= 0 && error49.mark.line < lines.length ? lines[error49.mark.line] : void 0;
709846
+ if (errorLine != null && /:\s+@/.test(errorLine)) {
709847
+ message += '\n\nHint: Values starting with "@" (such as scoped npm packages) must be wrapped in quotes.\n Example: package-name: "@scope/package"';
709848
+ }
709849
+ }
709834
709850
  return {
709835
709851
  success: false,
709836
709852
  warnings: [
@@ -763344,7 +763360,7 @@ var import_path40 = __toESM(require("path"), 1);
763344
763360
  var LOCAL_STORAGE_FOLDER4 = ".fern-dev";
763345
763361
  var LOGS_FOLDER_NAME = "logs";
763346
763362
  function getCliSource() {
763347
- const version7 = "3.95.3";
763363
+ const version7 = "3.95.4";
763348
763364
  return `cli@${version7}`;
763349
763365
  }
763350
763366
  var DebugLogger = class {
@@ -1127046,7 +1127062,7 @@ var CliContext = class {
1127046
1127062
  if (false) {
1127047
1127063
  this.logger.error("CLI_VERSION is not defined");
1127048
1127064
  }
1127049
- return "3.95.3";
1127065
+ return "3.95.4";
1127050
1127066
  }
1127051
1127067
  getCliName() {
1127052
1127068
  if (false) {
package/package.json CHANGED
@@ -1,5 +1,5 @@
1
1
  {
2
- "version": "3.95.3",
2
+ "version": "3.95.4",
3
3
  "repository": {
4
4
  "type": "git",
5
5
  "url": "git+https://github.com/fern-api/fern.git",