fern-api 0.31.22-rc1 → 0.31.22-rc2
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/bundle.cjs +18 -12
- package/package.json +1 -1
package/bundle.cjs
CHANGED
|
@@ -1117485,19 +1117485,21 @@ if (symIterator2) {
|
|
|
1117485
1117485
|
|
|
1117486
1117486
|
// pnp:/home/runner/work/fern/fern/packages/cli/configuration/lib/docs-yml/getAllPages.js
|
|
1117487
1117487
|
var BATCH_SIZE = 100;
|
|
1117488
|
-
async function loadBatch(files, absolutePathToFernFolder) {
|
|
1117488
|
+
async function loadBatch({ files, absolutePathToFernFolder }) {
|
|
1117489
1117489
|
const pairs2 = await Promise.all(files.map(async (file) => {
|
|
1117490
1117490
|
const content5 = await (0, import_promises7.readFile)(file, "utf-8");
|
|
1117491
1117491
|
return [await relativize(absolutePathToFernFolder, file), content5];
|
|
1117492
1117492
|
}));
|
|
1117493
1117493
|
return Object.fromEntries(pairs2);
|
|
1117494
1117494
|
}
|
|
1117495
|
-
async function loadAllPages(
|
|
1117496
|
-
const files = await filesPromise;
|
|
1117495
|
+
async function loadAllPages({ files, absolutePathToFernFolder }) {
|
|
1117497
1117496
|
const result2 = {};
|
|
1117498
1117497
|
for (let i2 = 0; i2 < files.length; i2 += BATCH_SIZE) {
|
|
1117499
1117498
|
const batch = files.slice(i2, i2 + BATCH_SIZE);
|
|
1117500
|
-
const batchResult = await loadBatch(
|
|
1117499
|
+
const batchResult = await loadBatch({
|
|
1117500
|
+
files: batch,
|
|
1117501
|
+
absolutePathToFernFolder
|
|
1117502
|
+
});
|
|
1117501
1117503
|
Object.assign(result2, batchResult);
|
|
1117502
1117504
|
}
|
|
1117503
1117505
|
return result2;
|
|
@@ -1117750,7 +1117752,10 @@ async function parseDocsConfiguration({ rawDocsConfiguration, absolutePathToFern
|
|
|
1117750
1117752
|
absolutePathToConfig: absoluteFilepathToDocsConfig,
|
|
1117751
1117753
|
context
|
|
1117752
1117754
|
});
|
|
1117753
|
-
const pagesPromise =
|
|
1117755
|
+
const pagesPromise = convertedNavigationPromise.then((convertedNavigation) => loadAllPages({
|
|
1117756
|
+
files: getAllPages({ navigation: convertedNavigation, landingPage }),
|
|
1117757
|
+
absolutePathToFernFolder
|
|
1117758
|
+
}));
|
|
1117754
1117759
|
const logo = convertLogoReference(rawLogo, absoluteFilepathToDocsConfig);
|
|
1117755
1117760
|
const favicon = resolveFilepath(faviconRef, absoluteFilepathToDocsConfig);
|
|
1117756
1117761
|
const backgroundImage = convertBackgroundImage(rawBackgroundImage, absoluteFilepathToDocsConfig);
|
|
@@ -1122298,7 +1122303,7 @@ var AccessTokenPosthogManager = class {
|
|
|
1122298
1122303
|
properties: {
|
|
1122299
1122304
|
...event,
|
|
1122300
1122305
|
...event.properties,
|
|
1122301
|
-
version: "0.31.22-
|
|
1122306
|
+
version: "0.31.22-rc2",
|
|
1122302
1122307
|
usingAccessToken: true
|
|
1122303
1122308
|
}
|
|
1122304
1122309
|
});
|
|
@@ -1122360,7 +1122365,7 @@ var UserPosthogManager = class {
|
|
|
1122360
1122365
|
distinctId: this.userId ?? await this.getPersistedDistinctId(),
|
|
1122361
1122366
|
event: "CLI",
|
|
1122362
1122367
|
properties: {
|
|
1122363
|
-
version: "0.31.22-
|
|
1122368
|
+
version: "0.31.22-rc2",
|
|
1122364
1122369
|
...event,
|
|
1122365
1122370
|
...event.properties
|
|
1122366
1122371
|
}
|
|
@@ -1149944,10 +1149949,10 @@ var CliContext = class {
|
|
|
1149944
1149949
|
return "fern-api";
|
|
1149945
1149950
|
}
|
|
1149946
1149951
|
getPackageVersion() {
|
|
1149947
|
-
if ("0.31.22-
|
|
1149952
|
+
if ("0.31.22-rc2" == null) {
|
|
1149948
1149953
|
this.logger.error("CLI_VERSION is not defined");
|
|
1149949
1149954
|
}
|
|
1149950
|
-
return "0.31.22-
|
|
1149955
|
+
return "0.31.22-rc2";
|
|
1149951
1149956
|
}
|
|
1149952
1149957
|
getCliName() {
|
|
1149953
1149958
|
if ("fern" == null) {
|
|
@@ -1186828,6 +1186833,7 @@ var ALLOWED_FILE_TYPES = /* @__PURE__ */ new Set([
|
|
|
1186828
1186833
|
"audio/ogg",
|
|
1186829
1186834
|
"audio/wav",
|
|
1186830
1186835
|
"application/pdf",
|
|
1186836
|
+
"application/xml",
|
|
1186831
1186837
|
"font/woff",
|
|
1186832
1186838
|
"font/woff2",
|
|
1186833
1186839
|
"font/otf",
|
|
@@ -1197379,11 +1197385,11 @@ var V48_TO_V47_MIGRATION = {
|
|
|
1197379
1197385
|
laterVersion: "v48",
|
|
1197380
1197386
|
earlierVersion: "v47",
|
|
1197381
1197387
|
firstGeneratorVersionToConsumeNewIR: {
|
|
1197382
|
-
[GeneratorName.TYPESCRIPT_NODE_SDK]:
|
|
1197383
|
-
[GeneratorName.TYPESCRIPT_BROWSER_SDK]:
|
|
1197388
|
+
[GeneratorName.TYPESCRIPT_NODE_SDK]: "0.29.0",
|
|
1197389
|
+
[GeneratorName.TYPESCRIPT_BROWSER_SDK]: "0.29.0",
|
|
1197384
1197390
|
[GeneratorName.TYPESCRIPT]: GeneratorWasNeverUpdatedToConsumeNewIR,
|
|
1197385
1197391
|
[GeneratorName.TYPESCRIPT_SDK]: GeneratorWasNeverUpdatedToConsumeNewIR,
|
|
1197386
|
-
[GeneratorName.TYPESCRIPT_EXPRESS]:
|
|
1197392
|
+
[GeneratorName.TYPESCRIPT_EXPRESS]: "0.17.0",
|
|
1197387
1197393
|
[GeneratorName.JAVA]: GeneratorWasNeverUpdatedToConsumeNewIR,
|
|
1197388
1197394
|
[GeneratorName.JAVA_MODEL]: GeneratorWasNeverUpdatedToConsumeNewIR,
|
|
1197389
1197395
|
[GeneratorName.JAVA_SDK]: GeneratorWasNeverUpdatedToConsumeNewIR,
|