@fern-api/fern-api-dev 4.50.5 → 4.51.0
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/cli.cjs +23 -11
- package/package.json +1 -1
package/cli.cjs
CHANGED
|
@@ -537958,10 +537958,22 @@ function generatePathParameterExamples2(pathParameters, options2) {
|
|
|
537958
537958
|
if (generatedExample.type === "failure") {
|
|
537959
537959
|
return generatedExample;
|
|
537960
537960
|
}
|
|
537961
|
-
|
|
537962
|
-
|
|
537963
|
-
|
|
537964
|
-
|
|
537961
|
+
const json3 = generatedExample.example.jsonExample;
|
|
537962
|
+
if (typeof json3 !== "string" && typeof json3 !== "number" && typeof json3 !== "boolean") {
|
|
537963
|
+
const fallback2 = p10.name.originalName;
|
|
537964
|
+
result.push({
|
|
537965
|
+
name: p10.name,
|
|
537966
|
+
value: {
|
|
537967
|
+
jsonExample: fallback2,
|
|
537968
|
+
shape: ExampleTypeReferenceShape.primitive(ExamplePrimitive.string({ original: fallback2 }))
|
|
537969
|
+
}
|
|
537970
|
+
});
|
|
537971
|
+
} else {
|
|
537972
|
+
result.push({
|
|
537973
|
+
name: p10.name,
|
|
537974
|
+
value: generatedExample.example
|
|
537975
|
+
});
|
|
537976
|
+
}
|
|
537965
537977
|
}
|
|
537966
537978
|
return { type: "success", example: result, jsonExample: void 0 };
|
|
537967
537979
|
}
|
|
@@ -602298,7 +602310,7 @@ var AccessTokenPosthogManager = class {
|
|
|
602298
602310
|
properties: {
|
|
602299
602311
|
...event,
|
|
602300
602312
|
...event.properties,
|
|
602301
|
-
version: "4.
|
|
602313
|
+
version: "4.51.0",
|
|
602302
602314
|
usingAccessToken: true
|
|
602303
602315
|
}
|
|
602304
602316
|
});
|
|
@@ -602349,7 +602361,7 @@ var UserPosthogManager = class {
|
|
|
602349
602361
|
distinctId: this.userId ?? await this.getPersistedDistinctId(),
|
|
602350
602362
|
event: "CLI",
|
|
602351
602363
|
properties: {
|
|
602352
|
-
version: "4.
|
|
602364
|
+
version: "4.51.0",
|
|
602353
602365
|
...event,
|
|
602354
602366
|
...event.properties,
|
|
602355
602367
|
usingAccessToken: false,
|
|
@@ -786761,7 +786773,7 @@ var DocsDefinitionResolver = class {
|
|
|
786761
786773
|
heap: void 0
|
|
786762
786774
|
},
|
|
786763
786775
|
announcement: this.parsedDocsConfig.announcement != null ? { text: this.parsedDocsConfig.announcement.message } : void 0,
|
|
786764
|
-
editThisPageLaunch: this.editThisPage?.launch ?? "
|
|
786776
|
+
editThisPageLaunch: this.editThisPage?.launch ?? "dashboard",
|
|
786765
786777
|
pageActions: this.convertPageActions(),
|
|
786766
786778
|
theme: this.parsedDocsConfig.theme != null ? {
|
|
786767
786779
|
sidebar: this.parsedDocsConfig.theme.sidebar,
|
|
@@ -787758,7 +787770,7 @@ https://buildwithfern.com/learn/docs/getting-started/project-structure#api-defin
|
|
|
787758
787770
|
}
|
|
787759
787771
|
};
|
|
787760
787772
|
function createEditThisPageUrl(editThisPage, pageFilepath) {
|
|
787761
|
-
const launch4 = editThisPage?.launch ?? "
|
|
787773
|
+
const launch4 = editThisPage?.launch ?? "dashboard";
|
|
787762
787774
|
if (editThisPage?.github == null) {
|
|
787763
787775
|
return { url: void 0, launch: launch4 };
|
|
787764
787776
|
}
|
|
@@ -826204,7 +826216,7 @@ var import_path54 = __toESM(require("path"), 1);
|
|
|
826204
826216
|
var LOCAL_STORAGE_FOLDER4 = ".fern-dev";
|
|
826205
826217
|
var LOGS_FOLDER_NAME = "logs";
|
|
826206
826218
|
function getCliSource() {
|
|
826207
|
-
const version7 = "4.
|
|
826219
|
+
const version7 = "4.51.0";
|
|
826208
826220
|
return `cli@${version7}`;
|
|
826209
826221
|
}
|
|
826210
826222
|
var DebugLogger = class {
|
|
@@ -837206,7 +837218,7 @@ var LegacyDocsPublisher = class {
|
|
|
837206
837218
|
previewId: void 0,
|
|
837207
837219
|
disableTemplates: void 0,
|
|
837208
837220
|
skipUpload,
|
|
837209
|
-
cliVersion: "4.
|
|
837221
|
+
cliVersion: "4.51.0"
|
|
837210
837222
|
});
|
|
837211
837223
|
if (taskContext.getResult() === TaskResult.Failure) {
|
|
837212
837224
|
return { success: false };
|
|
@@ -910325,7 +910337,7 @@ var CliContext = class {
|
|
|
910325
910337
|
if (false) {
|
|
910326
910338
|
this.logger.error("CLI_VERSION is not defined");
|
|
910327
910339
|
}
|
|
910328
|
-
return "4.
|
|
910340
|
+
return "4.51.0";
|
|
910329
910341
|
}
|
|
910330
910342
|
getCliName() {
|
|
910331
910343
|
if (false) {
|
package/package.json
CHANGED