@fern-api/fern-api-dev 5.4.1-1-g17393ac251c → 5.4.1
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 +5 -36
- 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.1
|
|
622390
|
+
version: "5.4.1",
|
|
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.1
|
|
622444
|
+
version: "5.4.1",
|
|
622445
622445
|
...event,
|
|
622446
622446
|
...event.properties,
|
|
622447
622447
|
usingAccessToken: false,
|
|
@@ -829143,31 +829143,6 @@ 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
|
-
|
|
829171
829146
|
// ../yaml/docs-validator/lib/rules/valid-markdown-link/check-if-pathname-exists.js
|
|
829172
829147
|
async function checkIfPathnameExists({ pathname, markdown, absoluteFilepath, workspaceAbsoluteFilePath, pageSlugs, absoluteFilePathsToSlugs, redirects = [], baseUrl, versionSlugs = [], productSlugs = [] }) {
|
|
829173
829148
|
pathname = removeTrailingSlash3(pathname);
|
|
@@ -829191,12 +829166,6 @@ async function checkIfPathnameExists({ pathname, markdown, absoluteFilepath, wor
|
|
|
829191
829166
|
if (markdown && pageSlugs.has(removeLeadingSlash(redirectedPath))) {
|
|
829192
829167
|
return true;
|
|
829193
829168
|
}
|
|
829194
|
-
if (markdown) {
|
|
829195
|
-
const basePathPrefixed = withBasePathPrepended(redirectedPath, baseUrl.basePath);
|
|
829196
|
-
if (basePathPrefixed != null && pageSlugs.has(basePathPrefixed)) {
|
|
829197
|
-
return true;
|
|
829198
|
-
}
|
|
829199
|
-
}
|
|
829200
829169
|
const contextSlugs = [...versionSlugs, ...productSlugs];
|
|
829201
829170
|
if (markdown && contextSlugs.length > 0) {
|
|
829202
829171
|
for (const slug of slugs) {
|
|
@@ -834810,7 +834779,7 @@ var LOCAL_STORAGE_FOLDER4 = ".fern-dev";
|
|
|
834810
834779
|
var LOGS_FOLDER_NAME = "logs";
|
|
834811
834780
|
var MAX_LOGS_DIR_SIZE_BYTES = 100 * 1024 * 1024;
|
|
834812
834781
|
function getCliSource() {
|
|
834813
|
-
const version7 = "5.4.1
|
|
834782
|
+
const version7 = "5.4.1";
|
|
834814
834783
|
return `cli@${version7}`;
|
|
834815
834784
|
}
|
|
834816
834785
|
var DebugLogger = class {
|
|
@@ -847272,7 +847241,7 @@ var LegacyDocsPublisher = class {
|
|
|
847272
847241
|
previewId,
|
|
847273
847242
|
disableTemplates: void 0,
|
|
847274
847243
|
skipUpload,
|
|
847275
|
-
cliVersion: "5.4.1
|
|
847244
|
+
cliVersion: "5.4.1",
|
|
847276
847245
|
loginCommand: "fern auth login"
|
|
847277
847246
|
});
|
|
847278
847247
|
if (taskContext.getResult() === TaskResult.Failure) {
|
|
@@ -921604,7 +921573,7 @@ var CliContext = class _CliContext {
|
|
|
921604
921573
|
if (false) {
|
|
921605
921574
|
this.logger.error("CLI_VERSION is not defined");
|
|
921606
921575
|
}
|
|
921607
|
-
return "5.4.1
|
|
921576
|
+
return "5.4.1";
|
|
921608
921577
|
}
|
|
921609
921578
|
getCliName() {
|
|
921610
921579
|
if (false) {
|
package/package.json
CHANGED