fern-api 0.18.3-rc2 → 0.18.3
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 +18 -5
- package/package.json +1 -1
package/bundle.cjs
CHANGED
|
@@ -797715,7 +797715,7 @@ var AccessTokenPosthogManager = class {
|
|
|
797715
797715
|
properties: {
|
|
797716
797716
|
...event,
|
|
797717
797717
|
...event.properties,
|
|
797718
|
-
version: "0.18.3
|
|
797718
|
+
version: "0.18.3",
|
|
797719
797719
|
usingAccessToken: true
|
|
797720
797720
|
}
|
|
797721
797721
|
});
|
|
@@ -797777,7 +797777,7 @@ var UserPosthogManager = class {
|
|
|
797777
797777
|
distinctId: this.userId ?? await this.getPersistedDistinctId(),
|
|
797778
797778
|
event: "CLI",
|
|
797779
797779
|
properties: {
|
|
797780
|
-
version: "0.18.3
|
|
797780
|
+
version: "0.18.3",
|
|
797781
797781
|
...event,
|
|
797782
797782
|
...event.properties
|
|
797783
797783
|
}
|
|
@@ -824400,10 +824400,10 @@ var CliContext = class {
|
|
|
824400
824400
|
return "fern-api";
|
|
824401
824401
|
}
|
|
824402
824402
|
getPackageVersion() {
|
|
824403
|
-
if ("0.18.3
|
|
824403
|
+
if ("0.18.3" == null) {
|
|
824404
824404
|
this.logger.error("CLI_VERSION is not defined");
|
|
824405
824405
|
}
|
|
824406
|
-
return "0.18.3
|
|
824406
|
+
return "0.18.3";
|
|
824407
824407
|
}
|
|
824408
824408
|
getCliName() {
|
|
824409
824409
|
if ("fern" == null) {
|
|
@@ -830802,7 +830802,7 @@ var ComplexQueryParamTypeDetector = class {
|
|
|
830802
830802
|
return false;
|
|
830803
830803
|
}
|
|
830804
830804
|
visited.add(type2.rawName);
|
|
830805
|
-
if (isRawDiscriminatedUnionDefinition(type2.declaration)
|
|
830805
|
+
if (isRawDiscriminatedUnionDefinition(type2.declaration)) {
|
|
830806
830806
|
return true;
|
|
830807
830807
|
}
|
|
830808
830808
|
if (isRawEnumDefinition(type2.declaration)) {
|
|
@@ -830816,6 +830816,19 @@ var ComplexQueryParamTypeDetector = class {
|
|
|
830816
830816
|
visited
|
|
830817
830817
|
});
|
|
830818
830818
|
}
|
|
830819
|
+
if (isRawUndiscriminatedUnionDefinition(type2.declaration)) {
|
|
830820
|
+
for (const variant of type2.declaration.union) {
|
|
830821
|
+
const variantType = typeof variant === "string" ? variant : variant.type;
|
|
830822
|
+
const isVariantComplex = this.isTypeComplex(variantType, {
|
|
830823
|
+
contents: file.definitionFile,
|
|
830824
|
+
relativeFilepath: file.relativeFilepath
|
|
830825
|
+
});
|
|
830826
|
+
if (isVariantComplex != null && isVariantComplex) {
|
|
830827
|
+
return true;
|
|
830828
|
+
}
|
|
830829
|
+
}
|
|
830830
|
+
return false;
|
|
830831
|
+
}
|
|
830819
830832
|
assertNever(type2.declaration);
|
|
830820
830833
|
}
|
|
830821
830834
|
objectHasComplexProperties({ typeName, objectDeclaration, file, visited }) {
|