@fern-api/fern-api-dev 5.7.2 → 5.7.3-1-g21f3674b6c2
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 +16 -13
- package/package.json +1 -1
package/cli.cjs
CHANGED
|
@@ -44325,7 +44325,7 @@ function convertToFernHostRelativeFilePath(path106) {
|
|
|
44325
44325
|
}
|
|
44326
44326
|
function convertToFernHostPath(path106) {
|
|
44327
44327
|
let unixPath = path106;
|
|
44328
|
-
if (/^[a-zA-Z]
|
|
44328
|
+
if (/^[a-zA-Z]:[/\\]/.test(path106)) {
|
|
44329
44329
|
unixPath = path106.substring(2);
|
|
44330
44330
|
}
|
|
44331
44331
|
return unixPath.replace(/\\/g, "/");
|
|
@@ -44375,13 +44375,14 @@ var init_cwd = __esm({
|
|
|
44375
44375
|
|
|
44376
44376
|
// ../../commons/fs-utils/lib/dirname.js
|
|
44377
44377
|
function dirname6(filepath) {
|
|
44378
|
-
return import_path10.default.dirname(filepath);
|
|
44378
|
+
return convertToOsPath(import_path10.default.dirname(filepath));
|
|
44379
44379
|
}
|
|
44380
44380
|
var import_path10;
|
|
44381
44381
|
var init_dirname2 = __esm({
|
|
44382
44382
|
"../../commons/fs-utils/lib/dirname.js"() {
|
|
44383
44383
|
"use strict";
|
|
44384
44384
|
import_path10 = __toESM(require("path"), 1);
|
|
44385
|
+
init_osPathConverter();
|
|
44385
44386
|
}
|
|
44386
44387
|
});
|
|
44387
44388
|
|
|
@@ -44494,13 +44495,14 @@ var init_getAllFilesInDirectoryRelative = __esm({
|
|
|
44494
44495
|
|
|
44495
44496
|
// ../../commons/fs-utils/lib/join.js
|
|
44496
44497
|
function join8(...parts) {
|
|
44497
|
-
return import_path12.default.join(...parts);
|
|
44498
|
+
return convertToOsPath(import_path12.default.join(...parts));
|
|
44498
44499
|
}
|
|
44499
44500
|
var import_path12;
|
|
44500
44501
|
var init_join2 = __esm({
|
|
44501
44502
|
"../../commons/fs-utils/lib/join.js"() {
|
|
44502
44503
|
"use strict";
|
|
44503
44504
|
import_path12 = __toESM(require("path"), 1);
|
|
44505
|
+
init_osPathConverter();
|
|
44504
44506
|
}
|
|
44505
44507
|
});
|
|
44506
44508
|
|
|
@@ -50912,13 +50914,14 @@ var init_moveFolder = __esm({
|
|
|
50912
50914
|
|
|
50913
50915
|
// ../../commons/fs-utils/lib/relative.js
|
|
50914
50916
|
function relative4(from4, to10) {
|
|
50915
|
-
return RelativeFilePath2.of(import_path15.default.relative(from4, to10));
|
|
50917
|
+
return RelativeFilePath2.of(convertToOsPath(import_path15.default.relative(from4, to10)));
|
|
50916
50918
|
}
|
|
50917
50919
|
var import_path15;
|
|
50918
50920
|
var init_relative2 = __esm({
|
|
50919
50921
|
"../../commons/fs-utils/lib/relative.js"() {
|
|
50920
50922
|
"use strict";
|
|
50921
50923
|
import_path15 = __toESM(require("path"), 1);
|
|
50924
|
+
init_osPathConverter();
|
|
50922
50925
|
init_RelativeFilePath2();
|
|
50923
50926
|
}
|
|
50924
50927
|
});
|
|
@@ -50938,7 +50941,7 @@ var init_relativize = __esm({
|
|
|
50938
50941
|
|
|
50939
50942
|
// ../../commons/fs-utils/lib/resolve.js
|
|
50940
50943
|
function resolve6(...paths) {
|
|
50941
|
-
return import_path17.default.resolve(...paths.map(convertToOsPath));
|
|
50944
|
+
return convertToOsPath(import_path17.default.resolve(...paths.map(convertToOsPath)));
|
|
50942
50945
|
}
|
|
50943
50946
|
var import_path17;
|
|
50944
50947
|
var init_resolve = __esm({
|
|
@@ -622604,7 +622607,7 @@ var AccessTokenPosthogManager = class {
|
|
|
622604
622607
|
properties: {
|
|
622605
622608
|
...event,
|
|
622606
622609
|
...event.properties,
|
|
622607
|
-
version: "5.7.
|
|
622610
|
+
version: "5.7.3-1-g21f3674b6c2",
|
|
622608
622611
|
usingAccessToken: true
|
|
622609
622612
|
}
|
|
622610
622613
|
});
|
|
@@ -622658,7 +622661,7 @@ var UserPosthogManager = class {
|
|
|
622658
622661
|
distinctId: this.userId ?? await this.getPersistedDistinctId(),
|
|
622659
622662
|
event: "CLI",
|
|
622660
622663
|
properties: {
|
|
622661
|
-
version: "5.7.
|
|
622664
|
+
version: "5.7.3-1-g21f3674b6c2",
|
|
622662
622665
|
...event,
|
|
622663
622666
|
...event.properties,
|
|
622664
622667
|
usingAccessToken: false,
|
|
@@ -803402,7 +803405,7 @@ function resolvePath4(pathToImage, { absolutePathToFernFolder, absolutePathToMar
|
|
|
803402
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.`);
|
|
803403
803406
|
}
|
|
803404
803407
|
const filepath = resolve6(pathToImage.startsWith("/") ? absolutePathToFernFolder : dirname6(absolutePathToMarkdownFile), RelativeFilePath2.of(pathToImage.replace(/^\//, "")));
|
|
803405
|
-
return filepath;
|
|
803408
|
+
return convertToFernHostAbsoluteFilePath(filepath);
|
|
803406
803409
|
}
|
|
803407
803410
|
function isExternalUrl(url3) {
|
|
803408
803411
|
if (/^https?:\/\//.test(url3)) {
|
|
@@ -803461,8 +803464,8 @@ function replaceImagePathsAndUrls(markdown, fileIdsMap, markdownFilesToPathName,
|
|
|
803461
803464
|
if (image3 == null || isExternalUrl(image3) || isDataUrl(image3)) {
|
|
803462
803465
|
return void 0;
|
|
803463
803466
|
}
|
|
803464
|
-
if ((0, import_path51.isAbsolute)(image3)) {
|
|
803465
|
-
const absolutePath = AbsoluteFilePath2.of(image3);
|
|
803467
|
+
if ((0, import_path51.isAbsolute)(image3) || isWindowsAbsolutePath(image3)) {
|
|
803468
|
+
const absolutePath = convertToFernHostAbsoluteFilePath(AbsoluteFilePath2.of(image3));
|
|
803466
803469
|
const fileId = fileIdsMap.get(absolutePath);
|
|
803467
803470
|
if (fileId) {
|
|
803468
803471
|
return `file:${fileId}`;
|
|
@@ -847018,7 +847021,7 @@ var LOCAL_STORAGE_FOLDER4 = ".fern-dev";
|
|
|
847018
847021
|
var LOGS_FOLDER_NAME = "logs";
|
|
847019
847022
|
var MAX_LOGS_DIR_SIZE_BYTES = 100 * 1024 * 1024;
|
|
847020
847023
|
function getCliSource() {
|
|
847021
|
-
const version7 = "5.7.
|
|
847024
|
+
const version7 = "5.7.3-1-g21f3674b6c2";
|
|
847022
847025
|
return `cli@${version7}`;
|
|
847023
847026
|
}
|
|
847024
847027
|
var DebugLogger = class {
|
|
@@ -859573,7 +859576,7 @@ var LegacyDocsPublisher = class {
|
|
|
859573
859576
|
previewId,
|
|
859574
859577
|
disableTemplates: void 0,
|
|
859575
859578
|
skipUpload,
|
|
859576
|
-
cliVersion: "5.7.
|
|
859579
|
+
cliVersion: "5.7.3-1-g21f3674b6c2",
|
|
859577
859580
|
loginCommand: "fern auth login"
|
|
859578
859581
|
});
|
|
859579
859582
|
if (taskContext.getResult() === TaskResult.Failure) {
|
|
@@ -933998,7 +934001,7 @@ var CliContext = class _CliContext {
|
|
|
933998
934001
|
if (false) {
|
|
933999
934002
|
this.logger.error("CLI_VERSION is not defined");
|
|
934000
934003
|
}
|
|
934001
|
-
return "5.7.
|
|
934004
|
+
return "5.7.3-1-g21f3674b6c2";
|
|
934002
934005
|
}
|
|
934003
934006
|
getCliName() {
|
|
934004
934007
|
if (false) {
|
package/package.json
CHANGED