@fern-api/fern-api-dev 5.4.1 → 5.4.2-2-g5d2c5e39955
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 +36 -5
- package/package.json +1 -1
package/cli.cjs
CHANGED
|
@@ -622387,7 +622387,7 @@ var AccessTokenPosthogManager = class {
|
|
|
622387
622387
|
properties: {
|
|
622388
622388
|
...event,
|
|
622389
622389
|
...event.properties,
|
|
622390
|
-
version: "5.4.
|
|
622390
|
+
version: "5.4.2-2-g5d2c5e39955",
|
|
622391
622391
|
usingAccessToken: true
|
|
622392
622392
|
}
|
|
622393
622393
|
});
|
|
@@ -622441,7 +622441,7 @@ var UserPosthogManager = class {
|
|
|
622441
622441
|
distinctId: this.userId ?? await this.getPersistedDistinctId(),
|
|
622442
622442
|
event: "CLI",
|
|
622443
622443
|
properties: {
|
|
622444
|
-
version: "5.4.
|
|
622444
|
+
version: "5.4.2-2-g5d2c5e39955",
|
|
622445
622445
|
...event,
|
|
622446
622446
|
...event.properties,
|
|
622447
622447
|
usingAccessToken: false,
|
|
@@ -829143,6 +829143,31 @@ function withBasepath2(source2, basePath) {
|
|
|
829143
829143
|
return basePath == null ? source2 : source2.startsWith(basePath) ? source2 : (0, import_url_join22.default)(basePath, source2);
|
|
829144
829144
|
}
|
|
829145
829145
|
|
|
829146
|
+
// ../yaml/docs-validator/lib/rules/valid-markdown-link/with-base-path-prepended.js
|
|
829147
|
+
function withBasePathPrepended(pathname, basePath) {
|
|
829148
|
+
if (basePath == null) {
|
|
829149
|
+
return null;
|
|
829150
|
+
}
|
|
829151
|
+
const basePathSlug = stripSlashes(basePath);
|
|
829152
|
+
if (basePathSlug === "") {
|
|
829153
|
+
return null;
|
|
829154
|
+
}
|
|
829155
|
+
const bare = stripLeadingSlash2(pathname);
|
|
829156
|
+
if (bare === basePathSlug || bare.startsWith(basePathSlug + "/")) {
|
|
829157
|
+
return null;
|
|
829158
|
+
}
|
|
829159
|
+
return `${basePathSlug}/${bare}`;
|
|
829160
|
+
}
|
|
829161
|
+
function stripLeadingSlash2(value2) {
|
|
829162
|
+
return value2.startsWith("/") ? value2.slice(1) : value2;
|
|
829163
|
+
}
|
|
829164
|
+
function stripTrailingSlash(value2) {
|
|
829165
|
+
return value2.endsWith("/") ? value2.slice(0, -1) : value2;
|
|
829166
|
+
}
|
|
829167
|
+
function stripSlashes(value2) {
|
|
829168
|
+
return stripLeadingSlash2(stripTrailingSlash(value2));
|
|
829169
|
+
}
|
|
829170
|
+
|
|
829146
829171
|
// ../yaml/docs-validator/lib/rules/valid-markdown-link/check-if-pathname-exists.js
|
|
829147
829172
|
async function checkIfPathnameExists({ pathname, markdown, absoluteFilepath, workspaceAbsoluteFilePath, pageSlugs, absoluteFilePathsToSlugs, redirects = [], baseUrl, versionSlugs = [], productSlugs = [] }) {
|
|
829148
829173
|
pathname = removeTrailingSlash3(pathname);
|
|
@@ -829166,6 +829191,12 @@ async function checkIfPathnameExists({ pathname, markdown, absoluteFilepath, wor
|
|
|
829166
829191
|
if (markdown && pageSlugs.has(removeLeadingSlash(redirectedPath))) {
|
|
829167
829192
|
return true;
|
|
829168
829193
|
}
|
|
829194
|
+
if (markdown) {
|
|
829195
|
+
const basePathPrefixed = withBasePathPrepended(redirectedPath, baseUrl.basePath);
|
|
829196
|
+
if (basePathPrefixed != null && pageSlugs.has(basePathPrefixed)) {
|
|
829197
|
+
return true;
|
|
829198
|
+
}
|
|
829199
|
+
}
|
|
829169
829200
|
const contextSlugs = [...versionSlugs, ...productSlugs];
|
|
829170
829201
|
if (markdown && contextSlugs.length > 0) {
|
|
829171
829202
|
for (const slug of slugs) {
|
|
@@ -834779,7 +834810,7 @@ var LOCAL_STORAGE_FOLDER4 = ".fern-dev";
|
|
|
834779
834810
|
var LOGS_FOLDER_NAME = "logs";
|
|
834780
834811
|
var MAX_LOGS_DIR_SIZE_BYTES = 100 * 1024 * 1024;
|
|
834781
834812
|
function getCliSource() {
|
|
834782
|
-
const version7 = "5.4.
|
|
834813
|
+
const version7 = "5.4.2-2-g5d2c5e39955";
|
|
834783
834814
|
return `cli@${version7}`;
|
|
834784
834815
|
}
|
|
834785
834816
|
var DebugLogger = class {
|
|
@@ -847241,7 +847272,7 @@ var LegacyDocsPublisher = class {
|
|
|
847241
847272
|
previewId,
|
|
847242
847273
|
disableTemplates: void 0,
|
|
847243
847274
|
skipUpload,
|
|
847244
|
-
cliVersion: "5.4.
|
|
847275
|
+
cliVersion: "5.4.2-2-g5d2c5e39955",
|
|
847245
847276
|
loginCommand: "fern auth login"
|
|
847246
847277
|
});
|
|
847247
847278
|
if (taskContext.getResult() === TaskResult.Failure) {
|
|
@@ -921573,7 +921604,7 @@ var CliContext = class _CliContext {
|
|
|
921573
921604
|
if (false) {
|
|
921574
921605
|
this.logger.error("CLI_VERSION is not defined");
|
|
921575
921606
|
}
|
|
921576
|
-
return "5.4.
|
|
921607
|
+
return "5.4.2-2-g5d2c5e39955";
|
|
921577
921608
|
}
|
|
921578
921609
|
getCliName() {
|
|
921579
921610
|
if (false) {
|
package/package.json
CHANGED