fern-api 0.16.12-rc0 → 0.16.12-rc1
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/bundle.cjs +12 -7
- package/package.json +1 -1
package/bundle.cjs
CHANGED
|
@@ -736685,7 +736685,7 @@ var AccessTokenPosthogManager = class {
|
|
|
736685
736685
|
properties: {
|
|
736686
736686
|
...event,
|
|
736687
736687
|
...event.properties,
|
|
736688
|
-
version: "0.16.12-
|
|
736688
|
+
version: "0.16.12-rc1",
|
|
736689
736689
|
usingAccessToken: true
|
|
736690
736690
|
}
|
|
736691
736691
|
});
|
|
@@ -736747,7 +736747,7 @@ var UserPosthogManager = class {
|
|
|
736747
736747
|
distinctId: this.userId ?? await this.getPersistedDistinctId(),
|
|
736748
736748
|
event: "CLI",
|
|
736749
736749
|
properties: {
|
|
736750
|
-
version: "0.16.12-
|
|
736750
|
+
version: "0.16.12-rc1",
|
|
736751
736751
|
...event,
|
|
736752
736752
|
...event.properties
|
|
736753
736753
|
}
|
|
@@ -750113,7 +750113,7 @@ function buildFernDefinition(context) {
|
|
|
750113
750113
|
const typeDeclaration = buildTypeDeclaration({ schema: schema2, context, declarationFile });
|
|
750114
750114
|
if (isRawAliasDefinition(typeDeclaration.schema)) {
|
|
750115
750115
|
const aliasType = getTypeFromTypeReference(typeDeclaration.schema);
|
|
750116
|
-
if (typeDeclaration.name ===
|
|
750116
|
+
if (aliasType === (typeDeclaration.name ?? id) || aliasType === `optional<${typeDeclaration.name ?? id}>`) {
|
|
750117
750117
|
continue;
|
|
750118
750118
|
}
|
|
750119
750119
|
}
|
|
@@ -751739,14 +751739,19 @@ function convertSchemaObject(schema2, wrapAsNullable, context, breadcrumbs, prop
|
|
|
751739
751739
|
groupName
|
|
751740
751740
|
});
|
|
751741
751741
|
}
|
|
751742
|
+
const hasNullValue = schema2.oneOf.filter((schema3) => {
|
|
751743
|
+
return !isReferenceObject(schema3) && schema3.type === "null";
|
|
751744
|
+
}).length > 0;
|
|
751742
751745
|
return convertUndiscriminatedOneOf({
|
|
751743
751746
|
nameOverride,
|
|
751744
751747
|
generatedName,
|
|
751745
751748
|
breadcrumbs,
|
|
751746
751749
|
description,
|
|
751747
|
-
wrapAsNullable,
|
|
751750
|
+
wrapAsNullable: wrapAsNullable || hasNullValue,
|
|
751748
751751
|
context,
|
|
751749
|
-
subtypes: schema2.oneOf
|
|
751752
|
+
subtypes: schema2.oneOf.filter((schema3) => {
|
|
751753
|
+
return isReferenceObject(schema3) || schema3.type !== "null";
|
|
751754
|
+
}),
|
|
751750
751755
|
groupName
|
|
751751
751756
|
});
|
|
751752
751757
|
}
|
|
@@ -761221,10 +761226,10 @@ var CliContext = class {
|
|
|
761221
761226
|
return "fern-api";
|
|
761222
761227
|
}
|
|
761223
761228
|
getPackageVersion() {
|
|
761224
|
-
if ("0.16.12-
|
|
761229
|
+
if ("0.16.12-rc1" == null) {
|
|
761225
761230
|
this.logger.error("CLI_VERSION is not defined");
|
|
761226
761231
|
}
|
|
761227
|
-
return "0.16.12-
|
|
761232
|
+
return "0.16.12-rc1";
|
|
761228
761233
|
}
|
|
761229
761234
|
getCliName() {
|
|
761230
761235
|
if ("fern" == null) {
|