fern-api 0.16.20 → 0.16.21
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 +11 -6
- package/package.json +1 -1
package/bundle.cjs
CHANGED
|
@@ -736945,7 +736945,7 @@ var AccessTokenPosthogManager = class {
|
|
|
736945
736945
|
properties: {
|
|
736946
736946
|
...event,
|
|
736947
736947
|
...event.properties,
|
|
736948
|
-
version: "0.16.
|
|
736948
|
+
version: "0.16.21",
|
|
736949
736949
|
usingAccessToken: true
|
|
736950
736950
|
}
|
|
736951
736951
|
});
|
|
@@ -737007,7 +737007,7 @@ var UserPosthogManager = class {
|
|
|
737007
737007
|
distinctId: this.userId ?? await this.getPersistedDistinctId(),
|
|
737008
737008
|
event: "CLI",
|
|
737009
737009
|
properties: {
|
|
737010
|
-
version: "0.16.
|
|
737010
|
+
version: "0.16.21",
|
|
737011
737011
|
...event,
|
|
737012
737012
|
...event.properties
|
|
737013
737013
|
}
|
|
@@ -752076,14 +752076,19 @@ function convertSchemaObject(schema2, wrapAsNullable, context, breadcrumbs, prop
|
|
|
752076
752076
|
groupName
|
|
752077
752077
|
});
|
|
752078
752078
|
}
|
|
752079
|
+
const hasNullValue = schema2.anyOf.filter((schema3) => {
|
|
752080
|
+
return !isReferenceObject(schema3) && schema3.type === "null";
|
|
752081
|
+
}).length > 0;
|
|
752079
752082
|
return convertUndiscriminatedOneOf({
|
|
752080
752083
|
nameOverride,
|
|
752081
752084
|
generatedName,
|
|
752082
752085
|
breadcrumbs,
|
|
752083
752086
|
description,
|
|
752084
|
-
wrapAsNullable,
|
|
752087
|
+
wrapAsNullable: wrapAsNullable || hasNullValue,
|
|
752085
752088
|
context,
|
|
752086
|
-
subtypes: schema2.anyOf
|
|
752089
|
+
subtypes: schema2.anyOf.filter((schema3) => {
|
|
752090
|
+
return isReferenceObject(schema3) || schema3.type !== "null";
|
|
752091
|
+
}),
|
|
752087
752092
|
groupName
|
|
752088
752093
|
});
|
|
752089
752094
|
}
|
|
@@ -761548,10 +761553,10 @@ var CliContext = class {
|
|
|
761548
761553
|
return "fern-api";
|
|
761549
761554
|
}
|
|
761550
761555
|
getPackageVersion() {
|
|
761551
|
-
if ("0.16.
|
|
761556
|
+
if ("0.16.21" == null) {
|
|
761552
761557
|
this.logger.error("CLI_VERSION is not defined");
|
|
761553
761558
|
}
|
|
761554
|
-
return "0.16.
|
|
761559
|
+
return "0.16.21";
|
|
761555
761560
|
}
|
|
761556
761561
|
getCliName() {
|
|
761557
761562
|
if ("fern" == null) {
|