@fern-api/fern-api-dev 5.26.2 → 5.26.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 +7 -6
  2. package/package.json +1 -1
package/cli.cjs CHANGED
@@ -667717,7 +667717,7 @@ var AccessTokenPosthogManager = class {
667717
667717
  properties: {
667718
667718
  ...event,
667719
667719
  ...event.properties,
667720
- version: "5.26.2",
667720
+ version: "5.26.3",
667721
667721
  usingAccessToken: true,
667722
667722
  ...getRunIdProperties()
667723
667723
  }
@@ -667772,7 +667772,7 @@ var UserPosthogManager = class {
667772
667772
  distinctId: this.userId ?? await this.getPersistedDistinctId(),
667773
667773
  event: "CLI",
667774
667774
  properties: {
667775
- version: "5.26.2",
667775
+ version: "5.26.3",
667776
667776
  ...event,
667777
667777
  ...event.properties,
667778
667778
  usingAccessToken: false,
@@ -859210,7 +859210,7 @@ var LOCAL_STORAGE_FOLDER4 = ".fern-dev";
859210
859210
  var LOGS_FOLDER_NAME = "logs";
859211
859211
  var MAX_LOGS_DIR_SIZE_BYTES = 100 * 1024 * 1024;
859212
859212
  function getCliSource() {
859213
- const version7 = "5.26.2";
859213
+ const version7 = "5.26.3";
859214
859214
  return `cli@${version7}`;
859215
859215
  }
859216
859216
  var DebugLogger = class {
@@ -860409,7 +860409,8 @@ async function applyGlobalThemeIfNeeded(docsWorkspace, organization, context3) {
860409
860409
  if (themeName == null) {
860410
860410
  return docsWorkspace;
860411
860411
  }
860412
- const token = process.env.FERN_TOKEN;
860412
+ const storedToken = await getUserToken();
860413
+ const token = storedToken?.value ?? process.env.FERN_TOKEN;
860413
860414
  if (token == null) {
860414
860415
  context3.logger.warn(`docs.yml declares global-theme "${themeName}" but FERN_TOKEN is not set \u2014 theme will not be applied in dev mode. Set FERN_TOKEN or run 'fern login' to enable it.`);
860415
860416
  return docsWorkspace;
@@ -873148,7 +873149,7 @@ var LegacyDocsPublisher = class {
873148
873149
  previewId,
873149
873150
  disableTemplates: void 0,
873150
873151
  skipUpload,
873151
- cliVersion: "5.26.2",
873152
+ cliVersion: "5.26.3",
873152
873153
  loginCommand: "fern auth login"
873153
873154
  });
873154
873155
  if (taskContext.getResult() === TaskResult.Failure) {
@@ -947946,7 +947947,7 @@ var CliContext = class _CliContext {
947946
947947
  if (false) {
947947
947948
  this.logger.error("CLI_VERSION is not defined");
947948
947949
  }
947949
- return "5.26.2";
947950
+ return "5.26.3";
947950
947951
  }
947951
947952
  getCliName() {
947952
947953
  if (false) {
package/package.json CHANGED
@@ -1,5 +1,5 @@
1
1
  {
2
- "version": "5.26.2",
2
+ "version": "5.26.3",
3
3
  "repository": {
4
4
  "type": "git",
5
5
  "url": "git+https://github.com/fern-api/fern.git",