@fern-api/fern-api-dev 4.62.1 → 4.62.2-35-gae6f79190ad
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 +18 -7
- package/package.json +1 -1
package/cli.cjs
CHANGED
|
@@ -529879,6 +529879,12 @@ function multipartOrJsonOrNone({ json: json3, multipart, document: document4, vi
|
|
|
529879
529879
|
const [, jsonMediaTypeObject] = json3 ?? [void 0, void 0];
|
|
529880
529880
|
const [, multipartMediaTypeObject] = multipart ?? [void 0, void 0];
|
|
529881
529881
|
if (!jsonMediaTypeObject?.schema && !multipartMediaTypeObject?.schema) {
|
|
529882
|
+
if (json3) {
|
|
529883
|
+
const hasExamples = jsonMediaTypeObject?.example != null || jsonMediaTypeObject?.examples != null && Object.keys(jsonMediaTypeObject.examples).length > 0;
|
|
529884
|
+
if (hasExamples) {
|
|
529885
|
+
return visitor.json(json3);
|
|
529886
|
+
}
|
|
529887
|
+
}
|
|
529882
529888
|
return visitor.neither();
|
|
529883
529889
|
}
|
|
529884
529890
|
if (jsonMediaTypeObject?.schema && multipartMediaTypeObject?.schema) {
|
|
@@ -602748,7 +602754,7 @@ var AccessTokenPosthogManager = class {
|
|
|
602748
602754
|
properties: {
|
|
602749
602755
|
...event,
|
|
602750
602756
|
...event.properties,
|
|
602751
|
-
version: "4.62.
|
|
602757
|
+
version: "4.62.2-35-gae6f79190ad",
|
|
602752
602758
|
usingAccessToken: true
|
|
602753
602759
|
}
|
|
602754
602760
|
});
|
|
@@ -602799,7 +602805,7 @@ var UserPosthogManager = class {
|
|
|
602799
602805
|
distinctId: this.userId ?? await this.getPersistedDistinctId(),
|
|
602800
602806
|
event: "CLI",
|
|
602801
602807
|
properties: {
|
|
602802
|
-
version: "4.62.
|
|
602808
|
+
version: "4.62.2-35-gae6f79190ad",
|
|
602803
602809
|
...event,
|
|
602804
602810
|
...event.properties,
|
|
602805
602811
|
usingAccessToken: false,
|
|
@@ -840087,7 +840093,7 @@ var import_path54 = __toESM(require("path"), 1);
|
|
|
840087
840093
|
var LOCAL_STORAGE_FOLDER4 = ".fern-dev";
|
|
840088
840094
|
var LOGS_FOLDER_NAME = "logs";
|
|
840089
840095
|
function getCliSource() {
|
|
840090
|
-
const version7 = "4.62.
|
|
840096
|
+
const version7 = "4.62.2-35-gae6f79190ad";
|
|
840091
840097
|
return `cli@${version7}`;
|
|
840092
840098
|
}
|
|
840093
840099
|
var DebugLogger = class {
|
|
@@ -851180,7 +851186,7 @@ var LegacyDocsPublisher = class {
|
|
|
851180
851186
|
/**
|
|
851181
851187
|
* Publish the docs workspace to the given instance.
|
|
851182
851188
|
*/
|
|
851183
|
-
async publish({ instanceUrl, preview, skipUpload }) {
|
|
851189
|
+
async publish({ instanceUrl, preview, previewId, skipUpload }) {
|
|
851184
851190
|
const taskContext = new TaskContextAdapter({ context: this.context, task: this.task });
|
|
851185
851191
|
try {
|
|
851186
851192
|
const url3 = await runRemoteGenerationForDocsWorkspace({
|
|
@@ -851192,10 +851198,10 @@ var LegacyDocsPublisher = class {
|
|
|
851192
851198
|
token: this.token,
|
|
851193
851199
|
instanceUrl,
|
|
851194
851200
|
preview,
|
|
851195
|
-
previewId
|
|
851201
|
+
previewId,
|
|
851196
851202
|
disableTemplates: void 0,
|
|
851197
851203
|
skipUpload,
|
|
851198
|
-
cliVersion: "4.62.
|
|
851204
|
+
cliVersion: "4.62.2-35-gae6f79190ad"
|
|
851199
851205
|
});
|
|
851200
851206
|
if (taskContext.getResult() === TaskResult.Failure) {
|
|
851201
851207
|
return { success: false };
|
|
@@ -851850,6 +851856,7 @@ var PublishCommand = class {
|
|
|
851850
851856
|
const result = await publisher.publish({
|
|
851851
851857
|
instanceUrl,
|
|
851852
851858
|
preview: args.preview,
|
|
851859
|
+
previewId: args.previewId,
|
|
851853
851860
|
skipUpload: args["skip-upload"] || void 0
|
|
851854
851861
|
});
|
|
851855
851862
|
if (!result.success) {
|
|
@@ -852033,6 +852040,7 @@ var PreviewCommand = class {
|
|
|
852033
852040
|
await this.publishCommand.handle(context3, {
|
|
852034
852041
|
...args,
|
|
852035
852042
|
preview: true,
|
|
852043
|
+
previewId: args.id,
|
|
852036
852044
|
force: true
|
|
852037
852045
|
});
|
|
852038
852046
|
}
|
|
@@ -852051,6 +852059,9 @@ function addPreviewCommand(cli) {
|
|
|
852051
852059
|
type: "boolean",
|
|
852052
852060
|
default: false,
|
|
852053
852061
|
description: "Treat all validation warnings as errors"
|
|
852062
|
+
}).option("id", {
|
|
852063
|
+
type: "string",
|
|
852064
|
+
description: "A stable identifier for the preview. Reusing the same ID overwrites the previous preview, keeping the URL stable."
|
|
852054
852065
|
}).option("skip-upload", {
|
|
852055
852066
|
type: "boolean",
|
|
852056
852067
|
default: false,
|
|
@@ -924478,7 +924489,7 @@ var CliContext = class {
|
|
|
924478
924489
|
if (false) {
|
|
924479
924490
|
this.logger.error("CLI_VERSION is not defined");
|
|
924480
924491
|
}
|
|
924481
|
-
return "4.62.
|
|
924492
|
+
return "4.62.2-35-gae6f79190ad";
|
|
924482
924493
|
}
|
|
924483
924494
|
getCliName() {
|
|
924484
924495
|
if (false) {
|
package/package.json
CHANGED