@fern-api/fern-api-dev 4.98.0 → 4.99.0-13-geaae3d08453
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 -7
- package/package.json +1 -1
package/cli.cjs
CHANGED
|
@@ -588607,6 +588607,16 @@ var definitions = {
|
|
|
588607
588607
|
type: "null"
|
|
588608
588608
|
}
|
|
588609
588609
|
]
|
|
588610
|
+
},
|
|
588611
|
+
placeholder: {
|
|
588612
|
+
oneOf: [
|
|
588613
|
+
{
|
|
588614
|
+
type: "string"
|
|
588615
|
+
},
|
|
588616
|
+
{
|
|
588617
|
+
type: "null"
|
|
588618
|
+
}
|
|
588619
|
+
]
|
|
588610
588620
|
}
|
|
588611
588621
|
},
|
|
588612
588622
|
required: [
|
|
@@ -588646,6 +588656,16 @@ var definitions = {
|
|
|
588646
588656
|
type: "null"
|
|
588647
588657
|
}
|
|
588648
588658
|
]
|
|
588659
|
+
},
|
|
588660
|
+
placeholder: {
|
|
588661
|
+
oneOf: [
|
|
588662
|
+
{
|
|
588663
|
+
type: "string"
|
|
588664
|
+
},
|
|
588665
|
+
{
|
|
588666
|
+
type: "null"
|
|
588667
|
+
}
|
|
588668
|
+
]
|
|
588649
588669
|
}
|
|
588650
588670
|
},
|
|
588651
588671
|
additionalProperties: false
|
|
@@ -620802,7 +620822,7 @@ var AccessTokenPosthogManager = class {
|
|
|
620802
620822
|
properties: {
|
|
620803
620823
|
...event,
|
|
620804
620824
|
...event.properties,
|
|
620805
|
-
version: "4.
|
|
620825
|
+
version: "4.99.0-13-geaae3d08453",
|
|
620806
620826
|
usingAccessToken: true
|
|
620807
620827
|
}
|
|
620808
620828
|
});
|
|
@@ -620856,7 +620876,7 @@ var UserPosthogManager = class {
|
|
|
620856
620876
|
distinctId: this.userId ?? await this.getPersistedDistinctId(),
|
|
620857
620877
|
event: "CLI",
|
|
620858
620878
|
properties: {
|
|
620859
|
-
version: "4.
|
|
620879
|
+
version: "4.99.0-13-geaae3d08453",
|
|
620860
620880
|
...event,
|
|
620861
620881
|
...event.properties,
|
|
620862
620882
|
usingAccessToken: false,
|
|
@@ -832078,7 +832098,7 @@ var LOCAL_STORAGE_FOLDER4 = ".fern-dev";
|
|
|
832078
832098
|
var LOGS_FOLDER_NAME = "logs";
|
|
832079
832099
|
var MAX_LOGS_DIR_SIZE_BYTES = 100 * 1024 * 1024;
|
|
832080
832100
|
function getCliSource() {
|
|
832081
|
-
const version7 = "4.
|
|
832101
|
+
const version7 = "4.99.0-13-geaae3d08453";
|
|
832082
832102
|
return `cli@${version7}`;
|
|
832083
832103
|
}
|
|
832084
832104
|
var DebugLogger = class {
|
|
@@ -833855,11 +833875,15 @@ ${err.stack}`);
|
|
|
833855
833875
|
const editedAbsoluteFilepaths = [];
|
|
833856
833876
|
function buildDocsLoadResponse() {
|
|
833857
833877
|
const definition3 = docsDefinition ?? EMPTY_DOCS_DEFINITION;
|
|
833878
|
+
const translationsConfig = definition3.config.translations;
|
|
833858
833879
|
return {
|
|
833859
833880
|
baseUrl: { domain: instance.host, basePath: instance.pathname },
|
|
833860
833881
|
definition: definition3,
|
|
833861
833882
|
lightModeEnabled: definition3.config.colorsV3?.type !== "dark",
|
|
833862
|
-
orgId: navigation_exports.OrgId(initialProject.config.organization)
|
|
833883
|
+
orgId: navigation_exports.OrgId(initialProject.config.organization),
|
|
833884
|
+
// Include translations config for language switcher support in preview mode
|
|
833885
|
+
defaultLocale: translationsConfig?.defaultLocale,
|
|
833886
|
+
translations: translationsConfig?.translations
|
|
833863
833887
|
};
|
|
833864
833888
|
}
|
|
833865
833889
|
app.post("/v2/registry/docs/load-with-url", async (_7, res) => {
|
|
@@ -834236,6 +834260,7 @@ ${err.stack}`);
|
|
|
834236
834260
|
app.post("/v2/registry/docs/load-with-url", async (_7, res) => {
|
|
834237
834261
|
try {
|
|
834238
834262
|
const definition3 = docsDefinition ?? EMPTY_DOCS_DEFINITION2;
|
|
834263
|
+
const translationsConfig = definition3.config.translations;
|
|
834239
834264
|
const response = {
|
|
834240
834265
|
baseUrl: {
|
|
834241
834266
|
domain: instance.host,
|
|
@@ -834243,7 +834268,10 @@ ${err.stack}`);
|
|
|
834243
834268
|
},
|
|
834244
834269
|
definition: definition3,
|
|
834245
834270
|
lightModeEnabled: definition3.config.colorsV3?.type !== "dark",
|
|
834246
|
-
orgId: navigation_exports.OrgId(initialProject.config.organization)
|
|
834271
|
+
orgId: navigation_exports.OrgId(initialProject.config.organization),
|
|
834272
|
+
// Include translations config for language switcher support in preview mode
|
|
834273
|
+
defaultLocale: translationsConfig?.defaultLocale,
|
|
834274
|
+
translations: translationsConfig?.translations
|
|
834247
834275
|
};
|
|
834248
834276
|
res.send(response);
|
|
834249
834277
|
} catch (error50) {
|
|
@@ -844157,7 +844185,7 @@ var LegacyDocsPublisher = class {
|
|
|
844157
844185
|
previewId,
|
|
844158
844186
|
disableTemplates: void 0,
|
|
844159
844187
|
skipUpload,
|
|
844160
|
-
cliVersion: "4.
|
|
844188
|
+
cliVersion: "4.99.0-13-geaae3d08453",
|
|
844161
844189
|
loginCommand: "fern auth login"
|
|
844162
844190
|
});
|
|
844163
844191
|
if (taskContext.getResult() === TaskResult.Failure) {
|
|
@@ -918248,7 +918276,7 @@ var CliContext = class _CliContext {
|
|
|
918248
918276
|
if (false) {
|
|
918249
918277
|
this.logger.error("CLI_VERSION is not defined");
|
|
918250
918278
|
}
|
|
918251
|
-
return "4.
|
|
918279
|
+
return "4.99.0-13-geaae3d08453";
|
|
918252
918280
|
}
|
|
918253
918281
|
getCliName() {
|
|
918254
918282
|
if (false) {
|
package/package.json
CHANGED