@fern-api/fern-api-dev 3.55.3-1-g5a2af452f44 → 3.55.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.
- package/cli.cjs +14 -5
- 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") {
|
|
@@ -1654818,7 +1654827,7 @@ var AccessTokenPosthogManager = class {
|
|
|
1654818
1654827
|
properties: {
|
|
1654819
1654828
|
...event,
|
|
1654820
1654829
|
...event.properties,
|
|
1654821
|
-
version: "3.55.
|
|
1654830
|
+
version: "3.55.4",
|
|
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.
|
|
1654880
|
+
version: "3.55.4",
|
|
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.
|
|
1688022
|
+
return "3.55.4";
|
|
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.
|
|
1691135
|
+
const version7 = "3.55.4";
|
|
1691127
1691136
|
return `cli@${version7}`;
|
|
1691128
1691137
|
}
|
|
1691129
1691138
|
var DebugLogger = class {
|
package/package.json
CHANGED