@fern-api/fern-api-dev 5.92.0 → 5.92.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 +13 -7
  2. package/package.json +1 -1
package/cli.cjs CHANGED
@@ -84773,6 +84773,10 @@ function getPackageNameFromGeneratorConfig(generatorInvocation) {
84773
84773
  if (packageName != null) {
84774
84774
  return packageName;
84775
84775
  }
84776
+ const kebabCasePackageName = generatorInvocation.raw.config["package-name"];
84777
+ if (typeof kebabCasePackageName === "string") {
84778
+ return kebabCasePackageName;
84779
+ }
84776
84780
  const modulePath = generatorInvocation.raw.config.module?.path;
84777
84781
  if (modulePath != null) {
84778
84782
  return modulePath;
@@ -103311,7 +103315,7 @@ function getFilesystemPublishTarget({ generatorInvocation, version: version7, us
103311
103315
  artifactId: packageName
103312
103316
  };
103313
103317
  } else if (typeof configObj["package-prefix"] === "string" && !packageName) {
103314
- context3.logger.warn("Java generator has package-prefix configured but packageName is missing");
103318
+ context3.logger.warn("Java generator has package-prefix configured but no package name could be resolved. Set 'package-name' (or 'group' and 'artifact') in the generator config to stamp Maven coordinates.");
103315
103319
  }
103316
103320
  return void 0;
103317
103321
  })();
@@ -702673,7 +702677,7 @@ var AccessTokenPosthogManager = class {
702673
702677
  properties: {
702674
702678
  ...event,
702675
702679
  ...event.properties,
702676
- version: "5.92.0",
702680
+ version: "5.92.1",
702677
702681
  usingAccessToken: true,
702678
702682
  ...getRunIdProperties()
702679
702683
  }
@@ -702739,7 +702743,7 @@ var UserPosthogManager = class {
702739
702743
  distinctId: this.userId ?? await this.getPersistedDistinctId(),
702740
702744
  event: "CLI",
702741
702745
  properties: {
702742
- version: "5.92.0",
702746
+ version: "5.92.1",
702743
702747
  ...event,
702744
702748
  ...event.properties,
702745
702749
  usingAccessToken: false,
@@ -883905,7 +883909,7 @@ var LOCAL_STORAGE_FOLDER4 = ".fern-dev";
883905
883909
  var LOGS_FOLDER_NAME = "logs";
883906
883910
  var MAX_LOGS_DIR_SIZE_BYTES = 100 * 1024 * 1024;
883907
883911
  function getCliSource() {
883908
- const version7 = "5.92.0";
883912
+ const version7 = "5.92.1";
883909
883913
  return `cli@${version7}`;
883910
883914
  }
883911
883915
  var DebugLogger = class {
@@ -909221,7 +909225,7 @@ var LegacyDocsPublisher = class {
909221
909225
  previewId,
909222
909226
  disableTemplates: void 0,
909223
909227
  skipUpload,
909224
- cliVersion: "5.92.0",
909228
+ cliVersion: "5.92.1",
909225
909229
  loginCommand: "fern auth login"
909226
909230
  });
909227
909231
  if (taskContext.getResult() === TaskResult.Failure) {
@@ -928955,6 +928959,8 @@ var Generation = class {
928955
928959
  extraDependencies: () => this.customConfig["extra-dependencies"] ?? {},
928956
928960
  /** When true, omits Fern platform headers (X-Fern-Language, SDK name/version, User-Agent) from generated SDK requests. Default: false. */
928957
928961
  omitFernHeaders: () => this.customConfig["omit-fern-headers"] ?? false,
928962
+ /** When true, explicitly provided constructor auth credentials take precedence over env-var defaults when selecting the auth scheme (explicit basic auth wins over OAuth env vars). Default: false. */
928963
+ preferExplicitAuth: () => this.customConfig["prefer-explicit-auth"] ?? false,
928958
928964
  /** When true, emits the platform observability headers (X-Fern-Runtime, X-Fern-Runtime-Version, X-Fern-Platform). Default: false. Still subject to omitFernHeaders. */
928959
928965
  includePlatformHeaders: () => this.customConfig["include-platform-headers"] ?? false,
928960
928966
  /** When true, exposes an `AppInfo` client option whose sanitized product token is appended to the `User-Agent` header (RFC 9110). Default: false. Independent of includePlatformHeaders; still subject to omitFernHeaders. */
@@ -976135,7 +976141,7 @@ function getAutomationContextFromEnv() {
976135
976141
  config_branch: process.env.FERN_CONFIG_BRANCH,
976136
976142
  config_pr_number: process.env.FERN_CONFIG_PR_NUMBER,
976137
976143
  trigger: process.env.GITHUB_EVENT_NAME,
976138
- cli_version: "5.92.0"
976144
+ cli_version: "5.92.1"
976139
976145
  };
976140
976146
  }
976141
976147
  function isAutomationMode() {
@@ -976967,7 +976973,7 @@ var CliContext = class _CliContext {
976967
976973
  if (false) {
976968
976974
  this.logger.error("CLI_VERSION is not defined");
976969
976975
  }
976970
- return "5.92.0";
976976
+ return "5.92.1";
976971
976977
  }
976972
976978
  getCliName() {
976973
976979
  if (false) {
package/package.json CHANGED
@@ -1,5 +1,5 @@
1
1
  {
2
- "version": "5.92.0",
2
+ "version": "5.92.1",
3
3
  "repository": {
4
4
  "type": "git",
5
5
  "url": "git+https://github.com/fern-api/fern.git",