@fern-api/fern-api-dev 5.56.2 → 5.56.4
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 +16 -9
- package/package.json +1 -1
package/cli.cjs
CHANGED
|
@@ -686971,7 +686971,7 @@ var AccessTokenPosthogManager = class {
|
|
|
686971
686971
|
properties: {
|
|
686972
686972
|
...event,
|
|
686973
686973
|
...event.properties,
|
|
686974
|
-
version: "5.56.
|
|
686974
|
+
version: "5.56.4",
|
|
686975
686975
|
usingAccessToken: true,
|
|
686976
686976
|
...getRunIdProperties()
|
|
686977
686977
|
}
|
|
@@ -687037,7 +687037,7 @@ var UserPosthogManager = class {
|
|
|
687037
687037
|
distinctId: this.userId ?? await this.getPersistedDistinctId(),
|
|
687038
687038
|
event: "CLI",
|
|
687039
687039
|
properties: {
|
|
687040
|
-
version: "5.56.
|
|
687040
|
+
version: "5.56.4",
|
|
687041
687041
|
...event,
|
|
687042
687042
|
...event.properties,
|
|
687043
687043
|
usingAccessToken: false,
|
|
@@ -868132,7 +868132,7 @@ var LOCAL_STORAGE_FOLDER4 = ".fern-dev";
|
|
|
868132
868132
|
var LOGS_FOLDER_NAME = "logs";
|
|
868133
868133
|
var MAX_LOGS_DIR_SIZE_BYTES = 100 * 1024 * 1024;
|
|
868134
868134
|
function getCliSource() {
|
|
868135
|
-
const version7 = "5.56.
|
|
868135
|
+
const version7 = "5.56.4";
|
|
868136
868136
|
return `cli@${version7}`;
|
|
868137
868137
|
}
|
|
868138
868138
|
var DebugLogger = class {
|
|
@@ -897581,9 +897581,12 @@ async function downloadFilesForTask({ s3PreSignedReadUrl, absolutePathToLocalOut
|
|
|
897581
897581
|
context3.failAndThrow("Failed to download files", e2, { code: CliError.Code.NetworkError });
|
|
897582
897582
|
}
|
|
897583
897583
|
}
|
|
897584
|
+
var S3_DOWNLOAD_TIMEOUT_MS = 5 * 60 * 1e3;
|
|
897584
897585
|
async function downloadZipForTask({ s3PreSignedReadUrl, absolutePathToLocalOutput }) {
|
|
897585
897586
|
const request7 = await axios_default.get(s3PreSignedReadUrl, {
|
|
897586
|
-
responseType: "stream"
|
|
897587
|
+
responseType: "stream",
|
|
897588
|
+
timeout: 6e4,
|
|
897589
|
+
signal: AbortSignal.timeout(S3_DOWNLOAD_TIMEOUT_MS)
|
|
897587
897590
|
});
|
|
897588
897591
|
const tmpDir = await import_tmp_promise13.default.dir({ prefix: "fern", unsafeCleanup: true });
|
|
897589
897592
|
const outputZipPath = import_path79.default.join(tmpDir.path, "output.zip");
|
|
@@ -897685,7 +897688,9 @@ async function downloadFilesWithFernIgnoreInTempRepo({ s3PreSignedReadUrl, absol
|
|
|
897685
897688
|
}
|
|
897686
897689
|
async function downloadAndExtractZipToDirectory({ s3PreSignedReadUrl, outputPath }) {
|
|
897687
897690
|
const request7 = await axios_default.get(s3PreSignedReadUrl, {
|
|
897688
|
-
responseType: "stream"
|
|
897691
|
+
responseType: "stream",
|
|
897692
|
+
timeout: 6e4,
|
|
897693
|
+
signal: AbortSignal.timeout(S3_DOWNLOAD_TIMEOUT_MS)
|
|
897689
897694
|
});
|
|
897690
897695
|
const tmpDir = await import_tmp_promise13.default.dir({ prefix: "fern", unsafeCleanup: true });
|
|
897691
897696
|
const outputZipPath = import_path79.default.join(tmpDir.path, "output.zip");
|
|
@@ -898817,7 +898822,7 @@ function buildLedgerInput({ docsDefinition, git, apiDefinitions, fileManifest, f
|
|
|
898817
898822
|
};
|
|
898818
898823
|
return { localeEntry, blobs };
|
|
898819
898824
|
}
|
|
898820
|
-
async function publishDocsViaLedger({ docsDefinition, organization, domain: domain3, basepath, previewId, customDomains, git, token, fdrOrigin, headers: headers2, context: context3, apiDefinitions, fileManifest, filePaths, fileIdToPath, editThisPage, resolver: resolver2 }) {
|
|
898825
|
+
async function publishDocsViaLedger({ docsDefinition, organization, domain: domain3, basepath, basepathAware, previewId, customDomains, git, token, fdrOrigin, headers: headers2, context: context3, apiDefinitions, fileManifest, filePaths, fileIdToPath, editThisPage, resolver: resolver2 }) {
|
|
898821
898826
|
const { localeEntry: baseLocale, blobs } = buildLedgerInput({
|
|
898822
898827
|
docsDefinition,
|
|
898823
898828
|
git,
|
|
@@ -898848,6 +898853,7 @@ async function publishDocsViaLedger({ docsDefinition, organization, domain: doma
|
|
|
898848
898853
|
orgId: organization,
|
|
898849
898854
|
domain: domain3,
|
|
898850
898855
|
basepath: basepath ?? "",
|
|
898856
|
+
...basepathAware && { basepathAware: true },
|
|
898851
898857
|
customDomains: customDomains ?? [],
|
|
898852
898858
|
previewId: previewId ?? null,
|
|
898853
898859
|
defaultLocale: baseLocale.locale,
|
|
@@ -899610,6 +899616,7 @@ ${JSON.stringify(errorDetails, void 0, 2)}`);
|
|
|
899610
899616
|
organization,
|
|
899611
899617
|
domain: domain3,
|
|
899612
899618
|
basepath: basePath,
|
|
899619
|
+
basepathAware: isBasepathAware,
|
|
899613
899620
|
previewId,
|
|
899614
899621
|
customDomains,
|
|
899615
899622
|
git: ledgerGit,
|
|
@@ -900532,7 +900539,7 @@ var LegacyDocsPublisher = class {
|
|
|
900532
900539
|
previewId,
|
|
900533
900540
|
disableTemplates: void 0,
|
|
900534
900541
|
skipUpload,
|
|
900535
|
-
cliVersion: "5.56.
|
|
900542
|
+
cliVersion: "5.56.4",
|
|
900536
900543
|
loginCommand: "fern auth login"
|
|
900537
900544
|
});
|
|
900538
900545
|
if (taskContext.getResult() === TaskResult.Failure) {
|
|
@@ -966801,7 +966808,7 @@ function getAutomationContextFromEnv() {
|
|
|
966801
966808
|
config_branch: process.env.FERN_CONFIG_BRANCH,
|
|
966802
966809
|
config_pr_number: process.env.FERN_CONFIG_PR_NUMBER,
|
|
966803
966810
|
trigger: process.env.GITHUB_EVENT_NAME,
|
|
966804
|
-
cli_version: "5.56.
|
|
966811
|
+
cli_version: "5.56.4"
|
|
966805
966812
|
};
|
|
966806
966813
|
}
|
|
966807
966814
|
function isAutomationMode() {
|
|
@@ -967633,7 +967640,7 @@ var CliContext = class _CliContext {
|
|
|
967633
967640
|
if (false) {
|
|
967634
967641
|
this.logger.error("CLI_VERSION is not defined");
|
|
967635
967642
|
}
|
|
967636
|
-
return "5.56.
|
|
967643
|
+
return "5.56.4";
|
|
967637
967644
|
}
|
|
967638
967645
|
getCliName() {
|
|
967639
967646
|
if (false) {
|
package/package.json
CHANGED