fern-api 0.16.37 → 0.16.38
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 +16 -8
- package/package.json +1 -1
package/bundle.cjs
CHANGED
|
@@ -739545,7 +739545,7 @@ var AccessTokenPosthogManager = class {
|
|
|
739545
739545
|
properties: {
|
|
739546
739546
|
...event,
|
|
739547
739547
|
...event.properties,
|
|
739548
|
-
version: "0.16.
|
|
739548
|
+
version: "0.16.38",
|
|
739549
739549
|
usingAccessToken: true
|
|
739550
739550
|
}
|
|
739551
739551
|
});
|
|
@@ -739607,7 +739607,7 @@ var UserPosthogManager = class {
|
|
|
739607
739607
|
distinctId: this.userId ?? await this.getPersistedDistinctId(),
|
|
739608
739608
|
event: "CLI",
|
|
739609
739609
|
properties: {
|
|
739610
|
-
version: "0.16.
|
|
739610
|
+
version: "0.16.38",
|
|
739611
739611
|
...event,
|
|
739612
739612
|
...event.properties
|
|
739613
739613
|
}
|
|
@@ -754335,7 +754335,10 @@ function getApplicationJsonSchemaMediaObject(media) {
|
|
|
754335
754335
|
}
|
|
754336
754336
|
if (mediaObject.examples != null && Object.keys(mediaObject.examples).length > 0) {
|
|
754337
754337
|
fullExamples.push(...Object.entries(mediaObject.examples).map(([name2, value]) => {
|
|
754338
|
-
|
|
754338
|
+
if (isReferenceObject(value)) {
|
|
754339
|
+
return { name: void 0, value: void 0 };
|
|
754340
|
+
}
|
|
754341
|
+
return { name: name2, value: value.value };
|
|
754339
754342
|
}));
|
|
754340
754343
|
}
|
|
754341
754344
|
if (schema2 != null) {
|
|
@@ -755974,7 +755977,7 @@ var ExampleEndpointFactory = class {
|
|
|
755974
755977
|
schema: requestSchemaIdResponse.schema,
|
|
755975
755978
|
example: (_a2 = requestSchemaIdResponse.example) == null ? void 0 : _a2.value,
|
|
755976
755979
|
isOptional: !required,
|
|
755977
|
-
parameter:
|
|
755980
|
+
parameter: false
|
|
755978
755981
|
});
|
|
755979
755982
|
if (required && requestExample == null) {
|
|
755980
755983
|
return void 0;
|
|
@@ -755987,7 +755990,7 @@ var ExampleEndpointFactory = class {
|
|
|
755987
755990
|
schema: responseSchemaIdResponse.schema,
|
|
755988
755991
|
example: (_b2 = responseSchemaIdResponse.example) == null ? void 0 : _b2.value,
|
|
755989
755992
|
isOptional: !required,
|
|
755990
|
-
parameter:
|
|
755993
|
+
parameter: false
|
|
755991
755994
|
});
|
|
755992
755995
|
if (required && responseExample == null) {
|
|
755993
755996
|
return void 0;
|
|
@@ -757001,7 +757004,12 @@ function buildEndpoint({ endpoint, declarationFile, context }) {
|
|
|
757001
757004
|
}
|
|
757002
757005
|
function convertEndpointExamples({ endpointExamples, context }) {
|
|
757003
757006
|
return endpointExamples.map((endpointExample) => {
|
|
757004
|
-
|
|
757007
|
+
try {
|
|
757008
|
+
return buildEndpointExample({ endpointExample, context });
|
|
757009
|
+
} catch (e) {
|
|
757010
|
+
console.error(`Error building endpoint example: ${e}`);
|
|
757011
|
+
throw e;
|
|
757012
|
+
}
|
|
757005
757013
|
});
|
|
757006
757014
|
}
|
|
757007
757015
|
function getRequest({ declarationFile, context, request, requestNameOverride, generatedRequestName, queryParameters, nonRequestReferencedSchemas, headers, usedNames }) {
|
|
@@ -764953,10 +764961,10 @@ var CliContext = class {
|
|
|
764953
764961
|
return "fern-api";
|
|
764954
764962
|
}
|
|
764955
764963
|
getPackageVersion() {
|
|
764956
|
-
if ("0.16.
|
|
764964
|
+
if ("0.16.38" == null) {
|
|
764957
764965
|
this.logger.error("CLI_VERSION is not defined");
|
|
764958
764966
|
}
|
|
764959
|
-
return "0.16.
|
|
764967
|
+
return "0.16.38";
|
|
764960
764968
|
}
|
|
764961
764969
|
getCliName() {
|
|
764962
764970
|
if ("fern" == null) {
|