@fern-api/fern-api-dev 3.55.3 → 3.55.5

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 +15 -6
  2. package/package.json +1 -1
package/cli.cjs CHANGED
@@ -1484538,8 +1484538,9 @@ function getSingleUnionTypeName({ unionKey, rawSingleUnionType }) {
1484538
1484538
  function getSingleUnionTypeProperties({ rawSingleUnionType, rawValueType, parsedValueType, file: file4, typeResolver }) {
1484539
1484539
  const singlePropertyKey = typeof rawSingleUnionType !== "string" ? rawSingleUnionType.key : void 0;
1484540
1484540
  const resolvedType = typeResolver.resolveTypeOrThrow({ type: rawValueType, file: file4 });
1484541
+ const isOptionalOrNullable = isWrappedInOptionalOrNullable(resolvedType);
1484541
1484542
  const unwrappedType = unwrapNullableAndOptional(resolvedType);
1484542
- if (unwrappedType._type === "named" && isRawObjectDefinition(unwrappedType.declaration) && singlePropertyKey == null) {
1484543
+ if (!isOptionalOrNullable && unwrappedType._type === "named" && isRawObjectDefinition(unwrappedType.declaration) && singlePropertyKey == null) {
1484543
1484544
  return SingleUnionTypeProperties.samePropertiesAsObject(unwrappedType.name);
1484544
1484545
  }
1484545
1484546
  return SingleUnionTypeProperties.singleProperty({
@@ -1484568,6 +1484569,14 @@ function getSinglePropertyKeyValue(rawSingleUnionType) {
1484568
1484569
  }
1484569
1484570
  return DEFAULT_UNION_VALUE_PROPERTY_VALUE;
1484570
1484571
  }
1484572
+ function isWrappedInOptionalOrNullable(resolvedType) {
1484573
+ if (resolvedType._type === "container") {
1484574
+ if (resolvedType.container._type === "nullable" || resolvedType.container._type === "optional") {
1484575
+ return true;
1484576
+ }
1484577
+ }
1484578
+ return false;
1484579
+ }
1484571
1484580
  function unwrapNullableAndOptional(resolvedType) {
1484572
1484581
  if (resolvedType._type === "container") {
1484573
1484582
  if (resolvedType.container._type === "nullable" || resolvedType.container._type === "optional") {
@@ -1530793,7 +1530802,7 @@ function convertLayoutConfig(layout) {
1530793
1530802
  sidebarWidth: parseSizeConfig(layout.sidebarWidth),
1530794
1530803
  headerHeight: parseSizeConfig(layout.headerHeight),
1530795
1530804
  searchbarPlacement: layout.searchbarPlacement === "header" ? FdrAPI_exports.docs.v1.commons.SearchbarPlacement.Header : layout.searchbarPlacement === "header-tabs" ? FdrAPI_exports.docs.v1.commons.SearchbarPlacement.HeaderTabs : FdrAPI_exports.docs.v1.commons.SearchbarPlacement.Sidebar,
1530796
- switcherPlacement: layout.switcherPlacement === "header" ? FdrAPI_exports.docs.v1.commons.SwitcherPlacement.Header : FdrAPI_exports.docs.v1.commons.SwitcherPlacement.Sidebar,
1530805
+ switcherPlacement: !layout.switcherPlacement || layout.switcherPlacement === "header" ? FdrAPI_exports.docs.v1.commons.SwitcherPlacement.Header : FdrAPI_exports.docs.v1.commons.SwitcherPlacement.Sidebar,
1530797
1530806
  tabsPlacement: layout.tabsPlacement === "header" ? FdrAPI_exports.docs.v1.commons.TabsPlacement.Header : FdrAPI_exports.docs.v1.commons.TabsPlacement.Sidebar,
1530798
1530807
  contentAlignment: layout.contentAlignment === "left" ? FdrAPI_exports.docs.v1.commons.ContentAlignment.Left : FdrAPI_exports.docs.v1.commons.ContentAlignment.Center,
1530799
1530808
  headerPosition: layout.headerPosition === "static" ? FdrAPI_exports.docs.v1.commons.HeaderPosition.Absolute : FdrAPI_exports.docs.v1.commons.HeaderPosition.Fixed,
@@ -1654818,7 +1654827,7 @@ var AccessTokenPosthogManager = class {
1654818
1654827
  properties: {
1654819
1654828
  ...event,
1654820
1654829
  ...event.properties,
1654821
- version: "3.55.3",
1654830
+ version: "3.55.5",
1654822
1654831
  usingAccessToken: true
1654823
1654832
  }
1654824
1654833
  });
@@ -1654868,7 +1654877,7 @@ var UserPosthogManager = class {
1654868
1654877
  distinctId: this.userId ?? await this.getPersistedDistinctId(),
1654869
1654878
  event: "CLI",
1654870
1654879
  properties: {
1654871
- version: "3.55.3",
1654880
+ version: "3.55.5",
1654872
1654881
  ...event,
1654873
1654882
  ...event.properties,
1654874
1654883
  usingAccessToken: false,
@@ -1688010,7 +1688019,7 @@ var CliContext = class {
1688010
1688019
  if (false) {
1688011
1688020
  this.logger.error("CLI_VERSION is not defined");
1688012
1688021
  }
1688013
- return "3.55.3";
1688022
+ return "3.55.5";
1688014
1688023
  }
1688015
1688024
  getCliName() {
1688016
1688025
  if (false) {
@@ -1691123,7 +1691132,7 @@ var import_path54 = __toESM(require("path"), 1);
1691123
1691132
  var LOCAL_STORAGE_FOLDER4 = ".fern-dev";
1691124
1691133
  var LOGS_FOLDER_NAME = "logs";
1691125
1691134
  function getCliSource() {
1691126
- const version7 = "3.55.3";
1691135
+ const version7 = "3.55.5";
1691127
1691136
  return `cli@${version7}`;
1691128
1691137
  }
1691129
1691138
  var DebugLogger = class {
package/package.json CHANGED
@@ -1,5 +1,5 @@
1
1
  {
2
- "version": "3.55.3",
2
+ "version": "3.55.5",
3
3
  "repository": {
4
4
  "type": "git",
5
5
  "url": "git+https://github.com/fern-api/fern.git",