@fern-api/fern-api-dev 5.44.7 → 5.44.8

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 +34 -9
  2. package/package.json +1 -1
package/cli.cjs CHANGED
@@ -649382,10 +649382,10 @@ var ExampleConverter = class _ExampleConverter extends AbstractConverter {
649382
649382
  *
649383
649383
  * Precedence: the override's fields win; the base's fields fill in anything missing.
649384
649384
  */
649385
- mergeAllOfProperties(resolvedSchema) {
649385
+ mergeAllOfProperties(resolvedSchema, visited = /* @__PURE__ */ new Set(), depth = 0) {
649386
649386
  const directProps = resolvedSchema.properties ?? {};
649387
649387
  const directRequired = resolvedSchema.required ?? [];
649388
- if (resolvedSchema.allOf == null || resolvedSchema.allOf.length === 0) {
649388
+ if (depth > this.MAX_DEPTH || resolvedSchema.allOf == null || resolvedSchema.allOf.length === 0) {
649389
649389
  return { mergedProperties: directProps, mergedRequired: directRequired };
649390
649390
  }
649391
649391
  const baseProps = {};
@@ -649399,6 +649399,31 @@ var ExampleConverter = class _ExampleConverter extends AbstractConverter {
649399
649399
  if (resolved == null) {
649400
649400
  continue;
649401
649401
  }
649402
+ const refKey = this.context.isReferenceObject(subSchema) ? subSchema.$ref : void 0;
649403
+ if (refKey != null && visited.has(refKey)) {
649404
+ continue;
649405
+ }
649406
+ if (resolved.allOf != null && resolved.allOf.length > 0) {
649407
+ const childVisited = new Set(visited);
649408
+ if (refKey != null) {
649409
+ childVisited.add(refKey);
649410
+ }
649411
+ const nested = this.mergeAllOfProperties(resolved, childVisited, depth + 1);
649412
+ for (const req of nested.mergedRequired) {
649413
+ baseRequired.add(req);
649414
+ }
649415
+ for (const [key2, value2] of Object.entries(nested.mergedProperties)) {
649416
+ if (typeof value2 === "object" && value2 !== null) {
649417
+ const existing = baseProps[key2];
649418
+ if (existing != null && isInlineSchema(existing) && isInlineSchema(value2)) {
649419
+ baseProps[key2] = { ...existing, ...value2 };
649420
+ } else {
649421
+ baseProps[key2] = value2;
649422
+ }
649423
+ }
649424
+ }
649425
+ continue;
649426
+ }
649402
649427
  if (resolved.required != null) {
649403
649428
  for (const req of resolved.required) {
649404
649429
  baseRequired.add(req);
@@ -669537,7 +669562,7 @@ var AccessTokenPosthogManager = class {
669537
669562
  properties: {
669538
669563
  ...event,
669539
669564
  ...event.properties,
669540
- version: "5.44.7",
669565
+ version: "5.44.8",
669541
669566
  usingAccessToken: true,
669542
669567
  ...getRunIdProperties()
669543
669568
  }
@@ -669601,7 +669626,7 @@ var UserPosthogManager = class {
669601
669626
  distinctId: this.userId ?? await this.getPersistedDistinctId(),
669602
669627
  event: "CLI",
669603
669628
  properties: {
669604
- version: "5.44.7",
669629
+ version: "5.44.8",
669605
669630
  ...event,
669606
669631
  ...event.properties,
669607
669632
  usingAccessToken: false,
@@ -861287,7 +861312,7 @@ var LOCAL_STORAGE_FOLDER4 = ".fern-dev";
861287
861312
  var LOGS_FOLDER_NAME = "logs";
861288
861313
  var MAX_LOGS_DIR_SIZE_BYTES = 100 * 1024 * 1024;
861289
861314
  function getCliSource() {
861290
- const version7 = "5.44.7";
861315
+ const version7 = "5.44.8";
861291
861316
  return `cli@${version7}`;
861292
861317
  }
861293
861318
  var DebugLogger = class {
@@ -892379,7 +892404,7 @@ var LegacyDocsPublisher = class {
892379
892404
  previewId,
892380
892405
  disableTemplates: void 0,
892381
892406
  skipUpload,
892382
- cliVersion: "5.44.7",
892407
+ cliVersion: "5.44.8",
892383
892408
  loginCommand: "fern auth login"
892384
892409
  });
892385
892410
  if (taskContext.getResult() === TaskResult.Failure) {
@@ -921933,7 +921958,7 @@ var ClassReference3 = class extends AstNode4 {
921933
921958
  }
921934
921959
  write(writer2) {
921935
921960
  writer2.addReference(this);
921936
- const refString = this.fullyQualified ? `\\${this.namespace}\\${this.name}` : this.name;
921961
+ const refString = this.fullyQualified ? this.namespace === GLOBAL_NAMESPACE ? `\\${this.name}` : `\\${this.namespace}\\${this.name}` : this.name;
921937
921962
  writer2.write(`${refString}`);
921938
921963
  }
921939
921964
  };
@@ -957466,7 +957491,7 @@ function getAutomationContextFromEnv() {
957466
957491
  config_branch: process.env.FERN_CONFIG_BRANCH,
957467
957492
  config_pr_number: process.env.FERN_CONFIG_PR_NUMBER,
957468
957493
  trigger: process.env.GITHUB_EVENT_NAME,
957469
- cli_version: "5.44.7"
957494
+ cli_version: "5.44.8"
957470
957495
  };
957471
957496
  }
957472
957497
  function isAutomationMode() {
@@ -958292,7 +958317,7 @@ var CliContext = class _CliContext {
958292
958317
  if (false) {
958293
958318
  this.logger.error("CLI_VERSION is not defined");
958294
958319
  }
958295
- return "5.44.7";
958320
+ return "5.44.8";
958296
958321
  }
958297
958322
  getCliName() {
958298
958323
  if (false) {
package/package.json CHANGED
@@ -1,5 +1,5 @@
1
1
  {
2
- "version": "5.44.7",
2
+ "version": "5.44.8",
3
3
  "repository": {
4
4
  "type": "git",
5
5
  "url": "git+https://github.com/fern-api/fern.git",