@fern-api/fern-api-dev 4.71.3 → 4.71.4

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 +44 -6
  2. package/package.json +1 -1
package/cli.cjs CHANGED
@@ -521218,7 +521218,45 @@ function buildEnvironments(context3) {
521218
521218
  }
521219
521219
  }
521220
521220
  }
521221
- if (apiToUrls.size > 0) {
521221
+ const endpointServerNamesSet = new Set(apiToUrls.keys());
521222
+ const topLevelServerNamesSet = new Set(Object.keys(topLevelServersWithName));
521223
+ const endpointServersReferenceTopLevel = endpointServerNamesSet.size > 0 && [...endpointServerNamesSet].every((name2) => topLevelServerNamesSet.has(name2));
521224
+ if (apiToUrls.size > 0 && endpointServersReferenceTopLevel) {
521225
+ const entries23 = Object.entries(topLevelServersWithName);
521226
+ const firstEntry = entries23[0];
521227
+ if (firstEntry) {
521228
+ const [envName, firstSchema] = firstEntry;
521229
+ const baseUrl = typeof firstSchema === "string" ? firstSchema : isRawMultipleBaseUrlsEnvironment(firstSchema) ? Object.values(firstSchema.urls)[0] : firstSchema["default-url"] ?? firstSchema.url;
521230
+ const urls = {};
521231
+ if (baseUrl != null) {
521232
+ urls[DEFAULT_URL_NAME] = baseUrl;
521233
+ context3.setUrlId(baseUrl, DEFAULT_URL_NAME);
521234
+ }
521235
+ for (let i11 = 1; i11 < entries23.length; i11++) {
521236
+ const entry = entries23[i11];
521237
+ if (entry == null) {
521238
+ continue;
521239
+ }
521240
+ const [name2, schema2] = entry;
521241
+ const url3 = typeof schema2 === "string" ? schema2 : isRawMultipleBaseUrlsEnvironment(schema2) ? Object.values(schema2.urls)[0] : schema2["default-url"] ?? schema2.url;
521242
+ if (url3 != null) {
521243
+ urls[name2] = url3;
521244
+ context3.setUrlId(url3, name2);
521245
+ }
521246
+ }
521247
+ if (hasWebsocketServersWithName) {
521248
+ Object.assign(urls, extractUrlsFromEnvironmentSchema(websocketServersWithName));
521249
+ }
521250
+ context3.builder.addEnvironment({
521251
+ name: envName,
521252
+ schema: { urls }
521253
+ });
521254
+ if (context3.options.inferDefaultEnvironment !== false) {
521255
+ context3.builder.setDefaultEnvironment(envName);
521256
+ }
521257
+ context3.builder.setDefaultUrl(DEFAULT_URL_NAME);
521258
+ }
521259
+ } else if (apiToUrls.size > 0) {
521222
521260
  let firstEnvironment = true;
521223
521261
  for (const [envName, envSchema] of Object.entries(topLevelServersWithName)) {
521224
521262
  const baseUrl = typeof envSchema === "string" ? envSchema : isRawMultipleBaseUrlsEnvironment(envSchema) ? Object.values(envSchema.urls)[0] : envSchema["default-url"] ?? envSchema.url;
@@ -621355,7 +621393,7 @@ var AccessTokenPosthogManager = class {
621355
621393
  properties: {
621356
621394
  ...event,
621357
621395
  ...event.properties,
621358
- version: "4.71.3",
621396
+ version: "4.71.4",
621359
621397
  usingAccessToken: true
621360
621398
  }
621361
621399
  });
@@ -621409,7 +621447,7 @@ var UserPosthogManager = class {
621409
621447
  distinctId: this.userId ?? await this.getPersistedDistinctId(),
621410
621448
  event: "CLI",
621411
621449
  properties: {
621412
- version: "4.71.3",
621450
+ version: "4.71.4",
621413
621451
  ...event,
621414
621452
  ...event.properties,
621415
621453
  usingAccessToken: false,
@@ -838508,7 +838546,7 @@ var LOCAL_STORAGE_FOLDER4 = ".fern-dev";
838508
838546
  var LOGS_FOLDER_NAME = "logs";
838509
838547
  var MAX_LOGS_DIR_SIZE_BYTES = 100 * 1024 * 1024;
838510
838548
  function getCliSource() {
838511
- const version7 = "4.71.3";
838549
+ const version7 = "4.71.4";
838512
838550
  return `cli@${version7}`;
838513
838551
  }
838514
838552
  var DebugLogger = class {
@@ -849755,7 +849793,7 @@ var LegacyDocsPublisher = class {
849755
849793
  previewId,
849756
849794
  disableTemplates: void 0,
849757
849795
  skipUpload,
849758
- cliVersion: "4.71.3"
849796
+ cliVersion: "4.71.4"
849759
849797
  });
849760
849798
  if (taskContext.getResult() === TaskResult.Failure) {
849761
849799
  return { success: false };
@@ -924108,7 +924146,7 @@ var CliContext = class _CliContext {
924108
924146
  if (false) {
924109
924147
  this.logger.error("CLI_VERSION is not defined");
924110
924148
  }
924111
- return "4.71.3";
924149
+ return "4.71.4";
924112
924150
  }
924113
924151
  getCliName() {
924114
924152
  if (false) {
package/package.json CHANGED
@@ -1,5 +1,5 @@
1
1
  {
2
- "version": "4.71.3",
2
+ "version": "4.71.4",
3
3
  "repository": {
4
4
  "type": "git",
5
5
  "url": "git+https://github.com/fern-api/fern.git",