@fern-api/fern-api-dev 5.28.0 → 5.28.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 +24 -7
  2. package/package.json +1 -1
package/cli.cjs CHANGED
@@ -668113,7 +668113,7 @@ var AccessTokenPosthogManager = class {
668113
668113
  properties: {
668114
668114
  ...event,
668115
668115
  ...event.properties,
668116
- version: "5.28.0",
668116
+ version: "5.28.1",
668117
668117
  usingAccessToken: true,
668118
668118
  ...getRunIdProperties()
668119
668119
  }
@@ -668177,7 +668177,7 @@ var UserPosthogManager = class {
668177
668177
  distinctId: this.userId ?? await this.getPersistedDistinctId(),
668178
668178
  event: "CLI",
668179
668179
  properties: {
668180
- version: "5.28.0",
668180
+ version: "5.28.1",
668181
668181
  ...event,
668182
668182
  ...event.properties,
668183
668183
  usingAccessToken: false,
@@ -825352,6 +825352,7 @@ function convertAvailability5(availability) {
825352
825352
  }
825353
825353
 
825354
825354
  // ../docs-resolver/lib/stitchGlobalTheme.js
825355
+ init_lib4();
825355
825356
  init_lib8();
825356
825357
  init_lib6();
825357
825358
  var import_promises66 = require("fs/promises");
@@ -825486,6 +825487,18 @@ async function resolveThemeFileUrls(themeConfig, tmpDir) {
825486
825487
  }
825487
825488
  return cfg;
825488
825489
  }
825490
+ function deepMergeGlobalWins(local, global3) {
825491
+ const result = { ...local };
825492
+ for (const [key2, globalValue] of Object.entries(global3)) {
825493
+ const localValue = local[key2];
825494
+ if (isPlainObject4(globalValue) && isPlainObject4(localValue)) {
825495
+ result[key2] = deepMergeGlobalWins(localValue, globalValue);
825496
+ } else {
825497
+ result[key2] = globalValue;
825498
+ }
825499
+ }
825500
+ return result;
825501
+ }
825489
825502
  var THEME_FIELD_POLICIES = {
825490
825503
  logo: "global",
825491
825504
  favicon: "global",
@@ -825539,7 +825552,11 @@ function mergeThemeOverride(local, themeOverride) {
825539
825552
  const localHasValue = localValue !== void 0 && localValue !== null;
825540
825553
  if (policy === "global") {
825541
825554
  if (themeHasValue) {
825542
- merged[key2] = themeValue;
825555
+ if (isPlainObject4(themeValue) && isPlainObject4(localValue)) {
825556
+ merged[key2] = deepMergeGlobalWins(localValue, themeValue);
825557
+ } else {
825558
+ merged[key2] = themeValue;
825559
+ }
825543
825560
  }
825544
825561
  } else {
825545
825562
  if (localHasValue) {
@@ -859851,7 +859868,7 @@ var LOCAL_STORAGE_FOLDER4 = ".fern-dev";
859851
859868
  var LOGS_FOLDER_NAME = "logs";
859852
859869
  var MAX_LOGS_DIR_SIZE_BYTES = 100 * 1024 * 1024;
859853
859870
  function getCliSource() {
859854
- const version7 = "5.28.0";
859871
+ const version7 = "5.28.1";
859855
859872
  return `cli@${version7}`;
859856
859873
  }
859857
859874
  var DebugLogger = class {
@@ -873860,7 +873877,7 @@ var LegacyDocsPublisher = class {
873860
873877
  previewId,
873861
873878
  disableTemplates: void 0,
873862
873879
  skipUpload,
873863
- cliVersion: "5.28.0",
873880
+ cliVersion: "5.28.1",
873864
873881
  loginCommand: "fern auth login"
873865
873882
  });
873866
873883
  if (taskContext.getResult() === TaskResult.Failure) {
@@ -948265,7 +948282,7 @@ function getAutomationContextFromEnv() {
948265
948282
  config_branch: process.env.FERN_CONFIG_BRANCH,
948266
948283
  config_pr_number: process.env.FERN_CONFIG_PR_NUMBER,
948267
948284
  trigger: process.env.GITHUB_EVENT_NAME,
948268
- cli_version: "5.28.0"
948285
+ cli_version: "5.28.1"
948269
948286
  };
948270
948287
  }
948271
948288
  function isAutomationMode() {
@@ -949091,7 +949108,7 @@ var CliContext = class _CliContext {
949091
949108
  if (false) {
949092
949109
  this.logger.error("CLI_VERSION is not defined");
949093
949110
  }
949094
- return "5.28.0";
949111
+ return "5.28.1";
949095
949112
  }
949096
949113
  getCliName() {
949097
949114
  if (false) {
package/package.json CHANGED
@@ -1,5 +1,5 @@
1
1
  {
2
- "version": "5.28.0",
2
+ "version": "5.28.1",
3
3
  "repository": {
4
4
  "type": "git",
5
5
  "url": "git+https://github.com/fern-api/fern.git",