@fern-api/fern-api-dev 5.7.3 → 5.7.4-1-g291d120139f
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 +15 -9
- package/package.json +1 -1
package/cli.cjs
CHANGED
|
@@ -50914,13 +50914,14 @@ var init_moveFolder = __esm({
|
|
|
50914
50914
|
|
|
50915
50915
|
// ../../commons/fs-utils/lib/relative.js
|
|
50916
50916
|
function relative4(from4, to10) {
|
|
50917
|
-
return RelativeFilePath2.of(import_path15.default.relative(from4, to10));
|
|
50917
|
+
return RelativeFilePath2.of(convertToOsPath(import_path15.default.relative(from4, to10)));
|
|
50918
50918
|
}
|
|
50919
50919
|
var import_path15;
|
|
50920
50920
|
var init_relative2 = __esm({
|
|
50921
50921
|
"../../commons/fs-utils/lib/relative.js"() {
|
|
50922
50922
|
"use strict";
|
|
50923
50923
|
import_path15 = __toESM(require("path"), 1);
|
|
50924
|
+
init_osPathConverter();
|
|
50924
50925
|
init_RelativeFilePath2();
|
|
50925
50926
|
}
|
|
50926
50927
|
});
|
|
@@ -622606,7 +622607,7 @@ var AccessTokenPosthogManager = class {
|
|
|
622606
622607
|
properties: {
|
|
622607
622608
|
...event,
|
|
622608
622609
|
...event.properties,
|
|
622609
|
-
version: "5.7.
|
|
622610
|
+
version: "5.7.4-1-g291d120139f",
|
|
622610
622611
|
usingAccessToken: true
|
|
622611
622612
|
}
|
|
622612
622613
|
});
|
|
@@ -622660,7 +622661,7 @@ var UserPosthogManager = class {
|
|
|
622660
622661
|
distinctId: this.userId ?? await this.getPersistedDistinctId(),
|
|
622661
622662
|
event: "CLI",
|
|
622662
622663
|
properties: {
|
|
622663
|
-
version: "5.7.
|
|
622664
|
+
version: "5.7.4-1-g291d120139f",
|
|
622664
622665
|
...event,
|
|
622665
622666
|
...event.properties,
|
|
622666
622667
|
usingAccessToken: false,
|
|
@@ -803404,7 +803405,7 @@ function resolvePath4(pathToImage, { absolutePathToFernFolder, absolutePathToMar
|
|
|
803404
803405
|
throw new Error(`Invalid image path "${pathToImage}". Paths starting with "//" are reserved for external URLs (e.g., //cdn.example.com/image.png). For local files, use "/${pathToImage.slice(2)}" or a relative path instead.`);
|
|
803405
803406
|
}
|
|
803406
803407
|
const filepath = resolve6(pathToImage.startsWith("/") ? absolutePathToFernFolder : dirname6(absolutePathToMarkdownFile), RelativeFilePath2.of(pathToImage.replace(/^\//, "")));
|
|
803407
|
-
return filepath;
|
|
803408
|
+
return convertToFernHostAbsoluteFilePath(filepath);
|
|
803408
803409
|
}
|
|
803409
803410
|
function isExternalUrl(url3) {
|
|
803410
803411
|
if (/^https?:\/\//.test(url3)) {
|
|
@@ -803463,8 +803464,8 @@ function replaceImagePathsAndUrls(markdown, fileIdsMap, markdownFilesToPathName,
|
|
|
803463
803464
|
if (image3 == null || isExternalUrl(image3) || isDataUrl(image3)) {
|
|
803464
803465
|
return void 0;
|
|
803465
803466
|
}
|
|
803466
|
-
if ((0, import_path51.isAbsolute)(image3)) {
|
|
803467
|
-
const absolutePath = AbsoluteFilePath2.of(image3);
|
|
803467
|
+
if ((0, import_path51.isAbsolute)(image3) || isWindowsAbsolutePath(image3)) {
|
|
803468
|
+
const absolutePath = convertToFernHostAbsoluteFilePath(AbsoluteFilePath2.of(image3));
|
|
803468
803469
|
const fileId = fileIdsMap.get(absolutePath);
|
|
803469
803470
|
if (fileId) {
|
|
803470
803471
|
return `file:${fileId}`;
|
|
@@ -847020,7 +847021,7 @@ var LOCAL_STORAGE_FOLDER4 = ".fern-dev";
|
|
|
847020
847021
|
var LOGS_FOLDER_NAME = "logs";
|
|
847021
847022
|
var MAX_LOGS_DIR_SIZE_BYTES = 100 * 1024 * 1024;
|
|
847022
847023
|
function getCliSource() {
|
|
847023
|
-
const version7 = "5.7.
|
|
847024
|
+
const version7 = "5.7.4-1-g291d120139f";
|
|
847024
847025
|
return `cli@${version7}`;
|
|
847025
847026
|
}
|
|
847026
847027
|
var DebugLogger = class {
|
|
@@ -858857,6 +858858,11 @@ ${JSON.stringify(errorDetails, void 0, 2)}`);
|
|
|
858857
858858
|
},
|
|
858858
858859
|
body: JSON.stringify({
|
|
858859
858860
|
domain: translationDomain,
|
|
858861
|
+
// Send customDomains in production so FDR fans the translation
|
|
858862
|
+
// S3 write out across every URL the docs are published to.
|
|
858863
|
+
// Skipped in preview because preview deploys to a single
|
|
858864
|
+
// ephemeral URL with no custom-domain mirrors.
|
|
858865
|
+
customDomains: preview ? [] : customDomains,
|
|
858860
858866
|
orgId: organization,
|
|
858861
858867
|
locale,
|
|
858862
858868
|
docsDefinition: translatedDefinition
|
|
@@ -859575,7 +859581,7 @@ var LegacyDocsPublisher = class {
|
|
|
859575
859581
|
previewId,
|
|
859576
859582
|
disableTemplates: void 0,
|
|
859577
859583
|
skipUpload,
|
|
859578
|
-
cliVersion: "5.7.
|
|
859584
|
+
cliVersion: "5.7.4-1-g291d120139f",
|
|
859579
859585
|
loginCommand: "fern auth login"
|
|
859580
859586
|
});
|
|
859581
859587
|
if (taskContext.getResult() === TaskResult.Failure) {
|
|
@@ -934000,7 +934006,7 @@ var CliContext = class _CliContext {
|
|
|
934000
934006
|
if (false) {
|
|
934001
934007
|
this.logger.error("CLI_VERSION is not defined");
|
|
934002
934008
|
}
|
|
934003
|
-
return "5.7.
|
|
934009
|
+
return "5.7.4-1-g291d120139f";
|
|
934004
934010
|
}
|
|
934005
934011
|
getCliName() {
|
|
934006
934012
|
if (false) {
|
package/package.json
CHANGED