@fern-api/fern-api-dev 4.62.2-37-g40f8f6b21d3 → 4.62.3-1-g4f6e811596d

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 +25 -11
  2. package/package.json +1 -1
package/cli.cjs CHANGED
@@ -602754,7 +602754,7 @@ var AccessTokenPosthogManager = class {
602754
602754
  properties: {
602755
602755
  ...event,
602756
602756
  ...event.properties,
602757
- version: "4.62.2-37-g40f8f6b21d3",
602757
+ version: "4.62.3-1-g4f6e811596d",
602758
602758
  usingAccessToken: true
602759
602759
  }
602760
602760
  });
@@ -602805,7 +602805,7 @@ var UserPosthogManager = class {
602805
602805
  distinctId: this.userId ?? await this.getPersistedDistinctId(),
602806
602806
  event: "CLI",
602807
602807
  properties: {
602808
- version: "4.62.2-37-g40f8f6b21d3",
602808
+ version: "4.62.3-1-g4f6e811596d",
602809
602809
  ...event,
602810
602810
  ...event.properties,
602811
602811
  usingAccessToken: false,
@@ -603850,9 +603850,17 @@ function constructAuth0Url({ origin: origin2, auth0Domain: auth0Domain2, auth0Cl
603850
603850
 
603851
603851
  // ../login/lib/auth0-login/resolveSsoConnection.js
603852
603852
  async function resolveSsoConnection({ dashboardBaseUrl, email: email3 }) {
603853
- const response = await axios_default.post(`${dashboardBaseUrl}/api/sso/resolve`, { email: email3 }, {
603854
- headers: { "Content-Type": "application/json" }
603855
- });
603853
+ let response;
603854
+ try {
603855
+ response = await axios_default.post(`${dashboardBaseUrl}/api/sso/resolve`, { email: email3 }, {
603856
+ headers: { "Content-Type": "application/json" }
603857
+ });
603858
+ } catch (error50) {
603859
+ if (axios_default.isAxiosError(error50) && error50.response?.status === 404) {
603860
+ throw new Error(`No SSO connection associated with email: ${email3}`);
603861
+ }
603862
+ throw error50;
603863
+ }
603856
603864
  const responseData = response.data;
603857
603865
  if (typeof responseData !== "object" || responseData == null) {
603858
603866
  throw new Error("Invalid response format from SSO resolve endpoint");
@@ -840093,7 +840101,7 @@ var import_path54 = __toESM(require("path"), 1);
840093
840101
  var LOCAL_STORAGE_FOLDER4 = ".fern-dev";
840094
840102
  var LOGS_FOLDER_NAME = "logs";
840095
840103
  function getCliSource() {
840096
- const version7 = "4.62.2-37-g40f8f6b21d3";
840104
+ const version7 = "4.62.3-1-g4f6e811596d";
840097
840105
  return `cli@${version7}`;
840098
840106
  }
840099
840107
  var DebugLogger = class {
@@ -851201,7 +851209,7 @@ var LegacyDocsPublisher = class {
851201
851209
  previewId,
851202
851210
  disableTemplates: void 0,
851203
851211
  skipUpload,
851204
- cliVersion: "4.62.2-37-g40f8f6b21d3"
851212
+ cliVersion: "4.62.3-1-g4f6e811596d"
851205
851213
  });
851206
851214
  if (taskContext.getResult() === TaskResult.Failure) {
851207
851215
  return { success: false };
@@ -924501,7 +924509,7 @@ var CliContext = class {
924501
924509
  if (false) {
924502
924510
  this.logger.error("CLI_VERSION is not defined");
924503
924511
  }
924504
- return "4.62.2-37-g40f8f6b21d3";
924512
+ return "4.62.3-1-g4f6e811596d";
924505
924513
  }
924506
924514
  getCliName() {
924507
924515
  if (false) {
@@ -944355,9 +944363,15 @@ function addReplayInitCommand(cli, cliContext) {
944355
944363
  githubRepo = githubRepo ?? resolved.githubRepo;
944356
944364
  token = token ?? resolved.token;
944357
944365
  }
944358
- if (githubRepo == null || token == null) {
944359
- const hint = githubRepo != null ? "Repository found but no token. Pass --token or set GITHUB_TOKEN environment variable." : "Either use --group to read from generators.yml, or provide --github and --token directly.";
944360
- return cliContext.failAndThrow(`Missing required github config. ${hint}`);
944366
+ if (githubRepo == null) {
944367
+ return cliContext.failAndThrow(
944368
+ "Missing required github config. Either use --group to read from generators.yml, or provide --github directly."
944369
+ );
944370
+ }
944371
+ if (token == null) {
944372
+ cliContext.logger.warn(
944373
+ "No GitHub token found. Clone may fail for private repos. Set GITHUB_TOKEN or pass --token."
944374
+ );
944361
944375
  }
944362
944376
  cliContext.logger.info(`Initializing Replay for: ${githubRepo}`);
944363
944377
  if (argv.dryRun) {
package/package.json CHANGED
@@ -1,5 +1,5 @@
1
1
  {
2
- "version": "4.62.2-37-g40f8f6b21d3",
2
+ "version": "4.62.3-1-g4f6e811596d",
3
3
  "repository": {
4
4
  "type": "git",
5
5
  "url": "git+https://github.com/fern-api/fern.git",