@fern-api/fern-api-dev 4.68.0 → 4.68.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 +21 -9
  2. package/package.json +1 -1
package/cli.cjs CHANGED
@@ -627624,14 +627624,17 @@ var AccessTokenPosthogManager = class {
627624
627624
  properties: {
627625
627625
  ...event,
627626
627626
  ...event.properties,
627627
- version: "4.68.0",
627627
+ version: "4.68.1",
627628
627628
  usingAccessToken: true
627629
627629
  }
627630
627630
  });
627631
627631
  }
627632
627632
  }
627633
627633
  async flush() {
627634
- await this.posthog.flush();
627634
+ try {
627635
+ await Promise.race([this.posthog.flush(), new Promise((resolve13) => setTimeout(resolve13, 3e3))]);
627636
+ } catch {
627637
+ }
627635
627638
  }
627636
627639
  };
627637
627640
 
@@ -627675,7 +627678,7 @@ var UserPosthogManager = class {
627675
627678
  distinctId: this.userId ?? await this.getPersistedDistinctId(),
627676
627679
  event: "CLI",
627677
627680
  properties: {
627678
- version: "4.68.0",
627681
+ version: "4.68.1",
627679
627682
  ...event,
627680
627683
  ...event.properties,
627681
627684
  usingAccessToken: false,
@@ -627684,7 +627687,10 @@ var UserPosthogManager = class {
627684
627687
  });
627685
627688
  }
627686
627689
  async flush() {
627687
- await this.posthog.flush();
627690
+ try {
627691
+ await Promise.race([this.posthog.flush(), new Promise((resolve13) => setTimeout(resolve13, 3e3))]);
627692
+ } catch {
627693
+ }
627688
627694
  }
627689
627695
  userEmail;
627690
627696
  async getUserEmail() {
@@ -631201,7 +631207,10 @@ var TelemetryClient = class _TelemetryClient {
631201
631207
  async flush() {
631202
631208
  const promises = [];
631203
631209
  if (this.posthog != null) {
631204
- promises.push(this.posthog.shutdown().catch(() => void 0));
631210
+ promises.push(Promise.race([
631211
+ this.posthog.shutdown().catch(() => void 0),
631212
+ new Promise((resolve13) => setTimeout(resolve13, 3e3))
631213
+ ]));
631205
631214
  }
631206
631215
  if (this.sentry !== void 0) {
631207
631216
  promises.push(Promise.resolve(this.sentry.flush(2e3)).catch(() => void 0));
@@ -843944,7 +843953,7 @@ var LOCAL_STORAGE_FOLDER4 = ".fern-dev";
843944
843953
  var LOGS_FOLDER_NAME = "logs";
843945
843954
  var MAX_LOGS_DIR_SIZE_BYTES = 100 * 1024 * 1024;
843946
843955
  function getCliSource() {
843947
- const version7 = "4.68.0";
843956
+ const version7 = "4.68.1";
843948
843957
  return `cli@${version7}`;
843949
843958
  }
843950
843959
  var DebugLogger = class {
@@ -855192,7 +855201,7 @@ var LegacyDocsPublisher = class {
855192
855201
  previewId,
855193
855202
  disableTemplates: void 0,
855194
855203
  skipUpload,
855195
- cliVersion: "4.68.0"
855204
+ cliVersion: "4.68.1"
855196
855205
  });
855197
855206
  if (taskContext.getResult() === TaskResult.Failure) {
855198
855207
  return { success: false };
@@ -928934,7 +928943,7 @@ var CliContext = class _CliContext {
928934
928943
  if (false) {
928935
928944
  this.logger.error("CLI_VERSION is not defined");
928936
928945
  }
928937
- return "4.68.0";
928946
+ return "4.68.1";
928938
928947
  }
928939
928948
  getCliName() {
928940
928949
  if (false) {
@@ -928990,7 +928999,10 @@ var CliContext = class _CliContext {
928990
928999
  await this.nudgeUpgradeIfAvailable();
928991
929000
  }
928992
929001
  this.ttyAwareLogger.finish();
928993
- await this.posthogManager.flush();
929002
+ try {
929003
+ await this.posthogManager.flush();
929004
+ } catch {
929005
+ }
928994
929006
  await this.sentryClient.flush();
928995
929007
  this.exitProgram({ code: code5 });
928996
929008
  }
package/package.json CHANGED
@@ -1,5 +1,5 @@
1
1
  {
2
- "version": "4.68.0",
2
+ "version": "4.68.1",
3
3
  "repository": {
4
4
  "type": "git",
5
5
  "url": "git+https://github.com/fern-api/fern.git",