@fern-api/fern-api-dev 5.70.1 → 5.70.2

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 +26 -7
  2. package/package.json +1 -1
package/cli.cjs CHANGED
@@ -167522,6 +167522,20 @@ function detectMultipleBaseUrls(servers1, servers2) {
167522
167522
  }
167523
167523
  return allMatch && allDifferent;
167524
167524
  }
167525
+ function dedupeServers(servers) {
167526
+ const seen = /* @__PURE__ */ new Set();
167527
+ return servers.filter((server) => {
167528
+ if (server.type === "grouped") {
167529
+ return true;
167530
+ }
167531
+ const key2 = `${getEnvironmentName2(server)}\0${server.url}`;
167532
+ if (seen.has(key2)) {
167533
+ return false;
167534
+ }
167535
+ seen.add(key2);
167536
+ return true;
167537
+ });
167538
+ }
167525
167539
  function getPreferredUrlForNameExtraction(server) {
167526
167540
  return server.defaultUrl ?? server.url;
167527
167541
  }
@@ -167737,7 +167751,7 @@ function merge6(ir1, ir22, options2) {
167737
167751
  description: ir1.description ?? ir22.description,
167738
167752
  basePath: ir1.basePath ?? ir22.basePath,
167739
167753
  basePathParameters: ir1.basePathParameters ?? ir22.basePathParameters,
167740
- servers: [...ir1.servers, ...ir22.servers],
167754
+ servers: dedupeServers([...ir1.servers, ...ir22.servers]),
167741
167755
  websocketServers: [...ir1.websocketServers, ...ir22.websocketServers],
167742
167756
  tags: {
167743
167757
  tagsById: {
@@ -689329,7 +689343,7 @@ var AccessTokenPosthogManager = class {
689329
689343
  properties: {
689330
689344
  ...event,
689331
689345
  ...event.properties,
689332
- version: "5.70.1",
689346
+ version: "5.70.2",
689333
689347
  usingAccessToken: true,
689334
689348
  ...getRunIdProperties()
689335
689349
  }
@@ -689395,7 +689409,7 @@ var UserPosthogManager = class {
689395
689409
  distinctId: this.userId ?? await this.getPersistedDistinctId(),
689396
689410
  event: "CLI",
689397
689411
  properties: {
689398
- version: "5.70.1",
689412
+ version: "5.70.2",
689399
689413
  ...event,
689400
689414
  ...event.properties,
689401
689415
  usingAccessToken: false,
@@ -870496,7 +870510,7 @@ var LOCAL_STORAGE_FOLDER4 = ".fern-dev";
870496
870510
  var LOGS_FOLDER_NAME = "logs";
870497
870511
  var MAX_LOGS_DIR_SIZE_BYTES = 100 * 1024 * 1024;
870498
870512
  function getCliSource() {
870499
- const version7 = "5.70.1";
870513
+ const version7 = "5.70.2";
870500
870514
  return `cli@${version7}`;
870501
870515
  }
870502
870516
  var DebugLogger = class {
@@ -903068,7 +903082,7 @@ var LegacyDocsPublisher = class {
903068
903082
  previewId,
903069
903083
  disableTemplates: void 0,
903070
903084
  skipUpload,
903071
- cliVersion: "5.70.1",
903085
+ cliVersion: "5.70.2",
903072
903086
  loginCommand: "fern auth login"
903073
903087
  });
903074
903088
  if (taskContext.getResult() === TaskResult.Failure) {
@@ -922958,6 +922972,11 @@ var Generation = class {
922958
922972
  multipartMethodNameForCollection: "AddFileParameterParts",
922959
922973
  isReferenceType: true
922960
922974
  }),
922975
+ /** Factory for the default HttpClient with automatic response decompression */
922976
+ DefaultHttpClientFactory: () => this.csharp.classReference({
922977
+ namespace: this.namespaces.core,
922978
+ origin: this.model.staticExplicit("DefaultHttpClientFactory")
922979
+ }),
922961
922980
  /** HTTP header management utilities */
922962
922981
  Headers: () => this.csharp.classReference({
922963
922982
  namespace: this.namespaces.core,
@@ -969489,7 +969508,7 @@ function getAutomationContextFromEnv() {
969489
969508
  config_branch: process.env.FERN_CONFIG_BRANCH,
969490
969509
  config_pr_number: process.env.FERN_CONFIG_PR_NUMBER,
969491
969510
  trigger: process.env.GITHUB_EVENT_NAME,
969492
- cli_version: "5.70.1"
969511
+ cli_version: "5.70.2"
969493
969512
  };
969494
969513
  }
969495
969514
  function isAutomationMode() {
@@ -970321,7 +970340,7 @@ var CliContext = class _CliContext {
970321
970340
  if (false) {
970322
970341
  this.logger.error("CLI_VERSION is not defined");
970323
970342
  }
970324
- return "5.70.1";
970343
+ return "5.70.2";
970325
970344
  }
970326
970345
  getCliName() {
970327
970346
  if (false) {
package/package.json CHANGED
@@ -1,5 +1,5 @@
1
1
  {
2
- "version": "5.70.1",
2
+ "version": "5.70.2",
3
3
  "repository": {
4
4
  "type": "git",
5
5
  "url": "git+https://github.com/fern-api/fern.git",