@fern-api/fern-api-dev 5.23.1 → 5.23.2-1-g21ff4168238

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 +10 -6
  2. package/package.json +1 -1
package/cli.cjs CHANGED
@@ -605753,6 +605753,10 @@ function generateIntermediateRepresentation({ workspace, generationLanguage, key
605753
605753
  const hasFileDownloadEndpoints = Object.values(intermediateRepresentationForAudiences.services).some((service) => {
605754
605754
  return service.endpoints.some((endpoint3) => endpoint3.response?.body?.type === "fileDownload");
605755
605755
  });
605756
+ const hasCustomUserAgentHeader = intermediateRepresentationForAudiences.headers.some((header) => {
605757
+ const wireValue = typeof header.name === "string" ? header.name : header.name.wireValue;
605758
+ return wireValue.toLowerCase() === "user-agent";
605759
+ });
605756
605760
  const sdkConfig = {
605757
605761
  isAuthMandatory,
605758
605762
  hasStreamingEndpoints,
@@ -605762,7 +605766,7 @@ function generateIntermediateRepresentation({ workspace, generationLanguage, key
605762
605766
  language: "X-Fern-Language",
605763
605767
  sdkName: "X-Fern-SDK-Name",
605764
605768
  sdkVersion: "X-Fern-SDK-Version",
605765
- userAgent: version7 != null && packageName != null ? {
605769
+ userAgent: !hasCustomUserAgentHeader && version7 != null && packageName != null ? {
605766
605770
  header: "User-Agent",
605767
605771
  value: `${packageName}/${version7}`
605768
605772
  } : void 0
@@ -661754,7 +661758,7 @@ var AccessTokenPosthogManager = class {
661754
661758
  properties: {
661755
661759
  ...event,
661756
661760
  ...event.properties,
661757
- version: "5.23.1",
661761
+ version: "5.23.2-1-g21ff4168238",
661758
661762
  usingAccessToken: true,
661759
661763
  ...getRunIdProperties()
661760
661764
  }
@@ -661809,7 +661813,7 @@ var UserPosthogManager = class {
661809
661813
  distinctId: this.userId ?? await this.getPersistedDistinctId(),
661810
661814
  event: "CLI",
661811
661815
  properties: {
661812
- version: "5.23.1",
661816
+ version: "5.23.2-1-g21ff4168238",
661813
661817
  ...event,
661814
661818
  ...event.properties,
661815
661819
  usingAccessToken: false,
@@ -853089,7 +853093,7 @@ var LOCAL_STORAGE_FOLDER4 = ".fern-dev";
853089
853093
  var LOGS_FOLDER_NAME = "logs";
853090
853094
  var MAX_LOGS_DIR_SIZE_BYTES = 100 * 1024 * 1024;
853091
853095
  function getCliSource() {
853092
- const version7 = "5.23.1";
853096
+ const version7 = "5.23.2-1-g21ff4168238";
853093
853097
  return `cli@${version7}`;
853094
853098
  }
853095
853099
  var DebugLogger = class {
@@ -865913,7 +865917,7 @@ var LegacyDocsPublisher = class {
865913
865917
  previewId,
865914
865918
  disableTemplates: void 0,
865915
865919
  skipUpload,
865916
- cliVersion: "5.23.1",
865920
+ cliVersion: "5.23.2-1-g21ff4168238",
865917
865921
  loginCommand: "fern auth login"
865918
865922
  });
865919
865923
  if (taskContext.getResult() === TaskResult.Failure) {
@@ -940658,7 +940662,7 @@ var CliContext = class _CliContext {
940658
940662
  if (false) {
940659
940663
  this.logger.error("CLI_VERSION is not defined");
940660
940664
  }
940661
- return "5.23.1";
940665
+ return "5.23.2-1-g21ff4168238";
940662
940666
  }
940663
940667
  getCliName() {
940664
940668
  if (false) {
package/package.json CHANGED
@@ -1,5 +1,5 @@
1
1
  {
2
- "version": "5.23.1",
2
+ "version": "5.23.2-1-g21ff4168238",
3
3
  "repository": {
4
4
  "type": "git",
5
5
  "url": "git+https://github.com/fern-api/fern.git",