@fern-api/fern-api-dev 4.85.1 → 4.85.2

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 +11 -6
  2. package/package.json +1 -1
package/cli.cjs CHANGED
@@ -614772,7 +614772,7 @@ var AccessTokenPosthogManager = class {
614772
614772
  properties: {
614773
614773
  ...event,
614774
614774
  ...event.properties,
614775
- version: "4.85.1",
614775
+ version: "4.85.2",
614776
614776
  usingAccessToken: true
614777
614777
  }
614778
614778
  });
@@ -614826,7 +614826,7 @@ var UserPosthogManager = class {
614826
614826
  distinctId: this.userId ?? await this.getPersistedDistinctId(),
614827
614827
  event: "CLI",
614828
614828
  properties: {
614829
- version: "4.85.1",
614829
+ version: "4.85.2",
614830
614830
  ...event,
614831
614831
  ...event.properties,
614832
614832
  usingAccessToken: false,
@@ -832324,7 +832324,7 @@ var LOCAL_STORAGE_FOLDER4 = ".fern-dev";
832324
832324
  var LOGS_FOLDER_NAME = "logs";
832325
832325
  var MAX_LOGS_DIR_SIZE_BYTES = 100 * 1024 * 1024;
832326
832326
  function getCliSource() {
832327
- const version7 = "4.85.1";
832327
+ const version7 = "4.85.2";
832328
832328
  return `cli@${version7}`;
832329
832329
  }
832330
832330
  var DebugLogger = class {
@@ -841933,7 +841933,12 @@ async function startJob({ intermediateRepresentation, generatorInvocation, job,
841933
841933
  }
841934
841934
  }
841935
841935
  function extractErrorMessage2(error50) {
841936
- const body = error50?.content?.reason === "status-code" ? error50.content.body : void 0;
841936
+ let body;
841937
+ if (error50?.reason === "status-code") {
841938
+ body = error50.body;
841939
+ } else if (error50?.content?.reason === "status-code") {
841940
+ body = error50.content.body;
841941
+ }
841937
841942
  if (typeof body?.content?.message === "string") {
841938
841943
  return body.content.message;
841939
841944
  }
@@ -843971,7 +843976,7 @@ var LegacyDocsPublisher = class {
843971
843976
  previewId,
843972
843977
  disableTemplates: void 0,
843973
843978
  skipUpload,
843974
- cliVersion: "4.85.1"
843979
+ cliVersion: "4.85.2"
843975
843980
  });
843976
843981
  if (taskContext.getResult() === TaskResult.Failure) {
843977
843982
  return { success: false };
@@ -919359,7 +919364,7 @@ var CliContext = class _CliContext {
919359
919364
  if (false) {
919360
919365
  this.logger.error("CLI_VERSION is not defined");
919361
919366
  }
919362
- return "4.85.1";
919367
+ return "4.85.2";
919363
919368
  }
919364
919369
  getCliName() {
919365
919370
  if (false) {
package/package.json CHANGED
@@ -1,5 +1,5 @@
1
1
  {
2
- "version": "4.85.1",
2
+ "version": "4.85.2",
3
3
  "repository": {
4
4
  "type": "git",
5
5
  "url": "git+https://github.com/fern-api/fern.git",