@fern-api/fern-api-dev 5.65.1 → 5.65.2
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 +24 -7
- package/package.json +1 -1
package/cli.cjs
CHANGED
|
@@ -688404,7 +688404,7 @@ var AccessTokenPosthogManager = class {
|
|
|
688404
688404
|
properties: {
|
|
688405
688405
|
...event,
|
|
688406
688406
|
...event.properties,
|
|
688407
|
-
version: "5.65.
|
|
688407
|
+
version: "5.65.2",
|
|
688408
688408
|
usingAccessToken: true,
|
|
688409
688409
|
...getRunIdProperties()
|
|
688410
688410
|
}
|
|
@@ -688470,7 +688470,7 @@ var UserPosthogManager = class {
|
|
|
688470
688470
|
distinctId: this.userId ?? await this.getPersistedDistinctId(),
|
|
688471
688471
|
event: "CLI",
|
|
688472
688472
|
properties: {
|
|
688473
|
-
version: "5.65.
|
|
688473
|
+
version: "5.65.2",
|
|
688474
688474
|
...event,
|
|
688475
688475
|
...event.properties,
|
|
688476
688476
|
usingAccessToken: false,
|
|
@@ -869566,7 +869566,7 @@ var LOCAL_STORAGE_FOLDER4 = ".fern-dev";
|
|
|
869566
869566
|
var LOGS_FOLDER_NAME = "logs";
|
|
869567
869567
|
var MAX_LOGS_DIR_SIZE_BYTES = 100 * 1024 * 1024;
|
|
869568
869568
|
function getCliSource() {
|
|
869569
|
-
const version7 = "5.65.
|
|
869569
|
+
const version7 = "5.65.2";
|
|
869570
869570
|
return `cli@${version7}`;
|
|
869571
869571
|
}
|
|
869572
869572
|
var DebugLogger = class {
|
|
@@ -900760,6 +900760,22 @@ function sanitizePreviewId2(id) {
|
|
|
900760
900760
|
}
|
|
900761
900761
|
return sanitized;
|
|
900762
900762
|
}
|
|
900763
|
+
function formatLedgerError(error50) {
|
|
900764
|
+
if (error50 == null) {
|
|
900765
|
+
return "Unknown error";
|
|
900766
|
+
}
|
|
900767
|
+
const msg = error50 instanceof Error ? error50.message : String(error50);
|
|
900768
|
+
const data2 = error50.data;
|
|
900769
|
+
if (data2?.issues != null && Array.isArray(data2.issues) && data2.issues.length > 0) {
|
|
900770
|
+
const issueLines = data2.issues.map((issue2) => {
|
|
900771
|
+
const path119 = issue2.path?.join(".") ?? "";
|
|
900772
|
+
const message = issue2.message ?? "invalid";
|
|
900773
|
+
return path119 ? ` - ${path119}: ${message}` : ` - ${message}`;
|
|
900774
|
+
}).join("\n");
|
|
900775
|
+
return msg + "\n" + issueLines;
|
|
900776
|
+
}
|
|
900777
|
+
return msg;
|
|
900778
|
+
}
|
|
900763
900779
|
var DocsPublishConflictError = class extends Error {
|
|
900764
900780
|
constructor() {
|
|
900765
900781
|
super("Another docs publish is currently in progress for this domain.");
|
|
@@ -901227,7 +901243,8 @@ ${JSON.stringify(errorDetails, void 0, 2)}`);
|
|
|
901227
901243
|
try {
|
|
901228
901244
|
await runLedgerPublish();
|
|
901229
901245
|
} catch (error50) {
|
|
901230
|
-
|
|
901246
|
+
const detail = formatLedgerError(error50);
|
|
901247
|
+
return context3.failAndThrow("Failed to publish docs via ledger to " + domain3 + ": " + detail, error50, {
|
|
901231
901248
|
code: CliError.Code.NetworkError
|
|
901232
901249
|
});
|
|
901233
901250
|
}
|
|
@@ -902128,7 +902145,7 @@ var LegacyDocsPublisher = class {
|
|
|
902128
902145
|
previewId,
|
|
902129
902146
|
disableTemplates: void 0,
|
|
902130
902147
|
skipUpload,
|
|
902131
|
-
cliVersion: "5.65.
|
|
902148
|
+
cliVersion: "5.65.2",
|
|
902132
902149
|
loginCommand: "fern auth login"
|
|
902133
902150
|
});
|
|
902134
902151
|
if (taskContext.getResult() === TaskResult.Failure) {
|
|
@@ -968462,7 +968479,7 @@ function getAutomationContextFromEnv() {
|
|
|
968462
968479
|
config_branch: process.env.FERN_CONFIG_BRANCH,
|
|
968463
968480
|
config_pr_number: process.env.FERN_CONFIG_PR_NUMBER,
|
|
968464
968481
|
trigger: process.env.GITHUB_EVENT_NAME,
|
|
968465
|
-
cli_version: "5.65.
|
|
968482
|
+
cli_version: "5.65.2"
|
|
968466
968483
|
};
|
|
968467
968484
|
}
|
|
968468
968485
|
function isAutomationMode() {
|
|
@@ -969294,7 +969311,7 @@ var CliContext = class _CliContext {
|
|
|
969294
969311
|
if (false) {
|
|
969295
969312
|
this.logger.error("CLI_VERSION is not defined");
|
|
969296
969313
|
}
|
|
969297
|
-
return "5.65.
|
|
969314
|
+
return "5.65.2";
|
|
969298
969315
|
}
|
|
969299
969316
|
getCliName() {
|
|
969300
969317
|
if (false) {
|
package/package.json
CHANGED