@fern-api/fern-api-dev 5.23.3-1220-g1df406742cc → 5.23.3-1227-g154bbdebd5d
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 +35 -38
- package/package.json +1 -1
package/cli.cjs
CHANGED
|
@@ -233556,17 +233556,9 @@ function parseLibrariesConfiguration(libraries) {
|
|
|
233556
233556
|
}
|
|
233557
233557
|
const result = {};
|
|
233558
233558
|
for (const [name2, config5] of Object.entries(libraries)) {
|
|
233559
|
-
|
|
233560
|
-
throw new CliError({
|
|
233561
|
-
message: `Library '${name2}' uses 'path' input which is not yet supported. Please use 'git' input.`,
|
|
233562
|
-
code: CliError.Code.ConfigError
|
|
233563
|
-
});
|
|
233564
|
-
}
|
|
233559
|
+
const input3 = isGitLibraryInput(config5.input) ? { type: "git", git: config5.input.git, subpath: config5.input.subpath } : { type: "path", path: config5.input.path };
|
|
233565
233560
|
result[name2] = {
|
|
233566
|
-
input:
|
|
233567
|
-
git: config5.input.git,
|
|
233568
|
-
subpath: config5.input.subpath
|
|
233569
|
-
},
|
|
233561
|
+
input: input3,
|
|
233570
233562
|
output: {
|
|
233571
233563
|
path: config5.output.path
|
|
233572
233564
|
},
|
|
@@ -688639,7 +688631,7 @@ var AccessTokenPosthogManager = class {
|
|
|
688639
688631
|
properties: {
|
|
688640
688632
|
...event,
|
|
688641
688633
|
...event.properties,
|
|
688642
|
-
version: "5.23.3-
|
|
688634
|
+
version: "5.23.3-1227-g154bbdebd5d",
|
|
688643
688635
|
usingAccessToken: true,
|
|
688644
688636
|
...getRunIdProperties()
|
|
688645
688637
|
}
|
|
@@ -688705,7 +688697,7 @@ var UserPosthogManager = class {
|
|
|
688705
688697
|
distinctId: this.userId ?? await this.getPersistedDistinctId(),
|
|
688706
688698
|
event: "CLI",
|
|
688707
688699
|
properties: {
|
|
688708
|
-
version: "5.23.3-
|
|
688700
|
+
version: "5.23.3-1227-g154bbdebd5d",
|
|
688709
688701
|
...event,
|
|
688710
688702
|
...event.properties,
|
|
688711
688703
|
usingAccessToken: false,
|
|
@@ -841880,8 +841872,8 @@ __export(rules_exports, {
|
|
|
841880
841872
|
CHANGELOG_FEED_ALLOWED_SLUGS: () => CHANGELOG_FEED_ALLOWED_SLUGS,
|
|
841881
841873
|
FilepathsExistRule: () => FilepathsExistRule,
|
|
841882
841874
|
MissingRedirectsRule: () => MissingRedirectsRule,
|
|
841875
|
+
NavigationConflicts: () => NavigationConflicts,
|
|
841883
841876
|
NoCircularRedirectsRule: () => NoCircularRedirectsRule,
|
|
841884
|
-
OnlyVersionedNavigation: () => OnlyVersionedNavigation,
|
|
841885
841877
|
TabWithHrefRule: () => TabWithHrefRule,
|
|
841886
841878
|
TranslationDirectoriesExistRule: () => TranslationDirectoriesExistRule,
|
|
841887
841879
|
ValidChangelogSlugRule: () => ValidChangelogSlugRule,
|
|
@@ -842747,6 +842739,31 @@ function makeSkipVisitor(fetchResult) {
|
|
|
842747
842739
|
}
|
|
842748
842740
|
}
|
|
842749
842741
|
|
|
842742
|
+
// ../yaml/docs-validator/lib/rules/navigation-conflicts/navigation-conflicts.js
|
|
842743
|
+
var NavigationConflicts = {
|
|
842744
|
+
name: "navigation-conflicts",
|
|
842745
|
+
create: () => {
|
|
842746
|
+
return {
|
|
842747
|
+
file: async ({ config: config5 }) => {
|
|
842748
|
+
const violations = [];
|
|
842749
|
+
if (config5.navigation != null && config5.versions != null) {
|
|
842750
|
+
violations.push({
|
|
842751
|
+
severity: "fatal",
|
|
842752
|
+
message: "Cannot contain both navigation and versions. If you want versioned docs, use versions. Otherwise use navigation."
|
|
842753
|
+
});
|
|
842754
|
+
}
|
|
842755
|
+
if (config5.navigation != null && config5.products != null) {
|
|
842756
|
+
violations.push({
|
|
842757
|
+
severity: "fatal",
|
|
842758
|
+
message: "Cannot contain both navigation and products. If you want multi-product docs, define navigation inside each product file. Otherwise use navigation."
|
|
842759
|
+
});
|
|
842760
|
+
}
|
|
842761
|
+
return violations;
|
|
842762
|
+
}
|
|
842763
|
+
};
|
|
842764
|
+
}
|
|
842765
|
+
};
|
|
842766
|
+
|
|
842750
842767
|
// ../yaml/docs-validator/lib/rules/no-circular-redirects/no-circular-redirects.js
|
|
842751
842768
|
function normalizeRedirectPath(path119) {
|
|
842752
842769
|
if (path119 !== "/" && path119.endsWith("/")) {
|
|
@@ -842844,26 +842861,6 @@ var NoCircularRedirectsRule = {
|
|
|
842844
842861
|
}
|
|
842845
842862
|
};
|
|
842846
842863
|
|
|
842847
|
-
// ../yaml/docs-validator/lib/rules/only-versioned-navigation/only-versioned-navigation.js
|
|
842848
|
-
var OnlyVersionedNavigation = {
|
|
842849
|
-
name: "only-versioned-navigation",
|
|
842850
|
-
create: () => {
|
|
842851
|
-
return {
|
|
842852
|
-
file: async ({ config: config5 }) => {
|
|
842853
|
-
if (config5.navigation != null && config5.versions != null) {
|
|
842854
|
-
return [
|
|
842855
|
-
{
|
|
842856
|
-
severity: "fatal",
|
|
842857
|
-
message: "Cannot contain both navigation and versions. If you want versioned docs, use versions. Otherwise use navigation."
|
|
842858
|
-
}
|
|
842859
|
-
];
|
|
842860
|
-
}
|
|
842861
|
-
return [];
|
|
842862
|
-
}
|
|
842863
|
-
};
|
|
842864
|
-
}
|
|
842865
|
-
};
|
|
842866
|
-
|
|
842867
842864
|
// ../yaml/docs-validator/lib/rules/tab-with-href/index.js
|
|
842868
842865
|
var TabWithHrefRule = {
|
|
842869
842866
|
name: "tab-with-href",
|
|
@@ -865977,7 +865974,7 @@ var allRules = [
|
|
|
865977
865974
|
// Check non-component references (will skip v2 files)
|
|
865978
865975
|
ValidLocalReferencesRule,
|
|
865979
865976
|
// Validate that local references actually exist
|
|
865980
|
-
|
|
865977
|
+
NavigationConflicts,
|
|
865981
865978
|
ValidateVersionFileRule,
|
|
865982
865979
|
ValidateProductFileRule,
|
|
865983
865980
|
ValidInstanceUrlRule,
|
|
@@ -869801,7 +869798,7 @@ var LOCAL_STORAGE_FOLDER4 = ".fern-dev";
|
|
|
869801
869798
|
var LOGS_FOLDER_NAME = "logs";
|
|
869802
869799
|
var MAX_LOGS_DIR_SIZE_BYTES = 100 * 1024 * 1024;
|
|
869803
869800
|
function getCliSource() {
|
|
869804
|
-
const version7 = "5.23.3-
|
|
869801
|
+
const version7 = "5.23.3-1227-g154bbdebd5d";
|
|
869805
869802
|
return `cli@${version7}`;
|
|
869806
869803
|
}
|
|
869807
869804
|
var DebugLogger = class {
|
|
@@ -902363,7 +902360,7 @@ var LegacyDocsPublisher = class {
|
|
|
902363
902360
|
previewId,
|
|
902364
902361
|
disableTemplates: void 0,
|
|
902365
902362
|
skipUpload,
|
|
902366
|
-
cliVersion: "5.23.3-
|
|
902363
|
+
cliVersion: "5.23.3-1227-g154bbdebd5d",
|
|
902367
902364
|
loginCommand: "fern auth login"
|
|
902368
902365
|
});
|
|
902369
902366
|
if (taskContext.getResult() === TaskResult.Failure) {
|
|
@@ -968692,7 +968689,7 @@ function getAutomationContextFromEnv() {
|
|
|
968692
968689
|
config_branch: process.env.FERN_CONFIG_BRANCH,
|
|
968693
968690
|
config_pr_number: process.env.FERN_CONFIG_PR_NUMBER,
|
|
968694
968691
|
trigger: process.env.GITHUB_EVENT_NAME,
|
|
968695
|
-
cli_version: "5.23.3-
|
|
968692
|
+
cli_version: "5.23.3-1227-g154bbdebd5d"
|
|
968696
968693
|
};
|
|
968697
968694
|
}
|
|
968698
968695
|
function isAutomationMode() {
|
|
@@ -969524,7 +969521,7 @@ var CliContext = class _CliContext {
|
|
|
969524
969521
|
if (false) {
|
|
969525
969522
|
this.logger.error("CLI_VERSION is not defined");
|
|
969526
969523
|
}
|
|
969527
|
-
return "5.23.3-
|
|
969524
|
+
return "5.23.3-1227-g154bbdebd5d";
|
|
969528
969525
|
}
|
|
969529
969526
|
getCliName() {
|
|
969530
969527
|
if (false) {
|
package/package.json
CHANGED