fern-api 0.15.8 → 0.15.9
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 +14 -6
- package/package.json +1 -1
package/bundle.cjs
CHANGED
|
@@ -718941,7 +718941,7 @@ var AccessTokenPosthogManager = class {
|
|
|
718941
718941
|
properties: {
|
|
718942
718942
|
...event,
|
|
718943
718943
|
...event.properties,
|
|
718944
|
-
version: "0.15.
|
|
718944
|
+
version: "0.15.9",
|
|
718945
718945
|
usingAccessToken: true
|
|
718946
718946
|
}
|
|
718947
718947
|
});
|
|
@@ -719003,7 +719003,7 @@ var UserPosthogManager = class {
|
|
|
719003
719003
|
distinctId: this.userId ?? await this.getPersistedDistinctId(),
|
|
719004
719004
|
event: "CLI",
|
|
719005
719005
|
properties: {
|
|
719006
|
-
version: "0.15.
|
|
719006
|
+
version: "0.15.9",
|
|
719007
719007
|
...event,
|
|
719008
719008
|
...event.properties
|
|
719009
719009
|
}
|
|
@@ -743249,10 +743249,10 @@ var CliContext = class {
|
|
|
743249
743249
|
return "fern-api";
|
|
743250
743250
|
}
|
|
743251
743251
|
getPackageVersion() {
|
|
743252
|
-
if ("0.15.
|
|
743252
|
+
if ("0.15.9" == null) {
|
|
743253
743253
|
this.logger.error("CLI_VERSION is not defined");
|
|
743254
743254
|
}
|
|
743255
|
-
return "0.15.
|
|
743255
|
+
return "0.15.9";
|
|
743256
743256
|
}
|
|
743257
743257
|
getCliName() {
|
|
743258
743258
|
if ("fern" == null) {
|
|
@@ -745436,7 +745436,15 @@ function getOriginalTypeDeclarationForProperty({ typeName, wirePropertyKey, rawO
|
|
|
745436
745436
|
var _a2;
|
|
745437
745437
|
const rawPropertyType = (_a2 = rawObject.properties) == null ? void 0 : _a2[wirePropertyKey];
|
|
745438
745438
|
if (rawPropertyType != null) {
|
|
745439
|
-
|
|
745439
|
+
const resolvedType = typeResolver.resolveTypeOrThrow({
|
|
745440
|
+
type: typeof rawPropertyType === "string" ? rawPropertyType : rawPropertyType.type,
|
|
745441
|
+
file
|
|
745442
|
+
});
|
|
745443
|
+
if (resolvedType._type === "named") {
|
|
745444
|
+
return { typeName, rawPropertyType, file: resolvedType.file };
|
|
745445
|
+
} else {
|
|
745446
|
+
return { typeName, rawPropertyType, file };
|
|
745447
|
+
}
|
|
745440
745448
|
} else {
|
|
745441
745449
|
return getOriginalTypeDeclarationForPropertyFromExtensions({
|
|
745442
745450
|
wirePropertyKey,
|
|
@@ -745752,7 +745760,7 @@ function convertExampleRequestBody({ endpoint, example, typeResolver, exampleRes
|
|
|
745752
745760
|
rawTypeBeingExemplified: typeof originalTypeDeclaration.rawPropertyType === "string" ? originalTypeDeclaration.rawPropertyType : originalTypeDeclaration.rawPropertyType.type,
|
|
745753
745761
|
typeResolver,
|
|
745754
745762
|
exampleResolver,
|
|
745755
|
-
fileContainingRawTypeReference: file,
|
|
745763
|
+
fileContainingRawTypeReference: originalTypeDeclaration.file,
|
|
745756
745764
|
fileContainingExample: file
|
|
745757
745765
|
}),
|
|
745758
745766
|
originalTypeDeclaration: originalTypeDeclaration.typeName
|