@fern-api/fern-api-dev 5.56.3 → 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 +13 -8
- 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");
|
|
@@ -900534,7 +900539,7 @@ var LegacyDocsPublisher = class {
|
|
|
900534
900539
|
previewId,
|
|
900535
900540
|
disableTemplates: void 0,
|
|
900536
900541
|
skipUpload,
|
|
900537
|
-
cliVersion: "5.56.
|
|
900542
|
+
cliVersion: "5.56.4",
|
|
900538
900543
|
loginCommand: "fern auth login"
|
|
900539
900544
|
});
|
|
900540
900545
|
if (taskContext.getResult() === TaskResult.Failure) {
|
|
@@ -966803,7 +966808,7 @@ function getAutomationContextFromEnv() {
|
|
|
966803
966808
|
config_branch: process.env.FERN_CONFIG_BRANCH,
|
|
966804
966809
|
config_pr_number: process.env.FERN_CONFIG_PR_NUMBER,
|
|
966805
966810
|
trigger: process.env.GITHUB_EVENT_NAME,
|
|
966806
|
-
cli_version: "5.56.
|
|
966811
|
+
cli_version: "5.56.4"
|
|
966807
966812
|
};
|
|
966808
966813
|
}
|
|
966809
966814
|
function isAutomationMode() {
|
|
@@ -967635,7 +967640,7 @@ var CliContext = class _CliContext {
|
|
|
967635
967640
|
if (false) {
|
|
967636
967641
|
this.logger.error("CLI_VERSION is not defined");
|
|
967637
967642
|
}
|
|
967638
|
-
return "5.56.
|
|
967643
|
+
return "5.56.4";
|
|
967639
967644
|
}
|
|
967640
967645
|
getCliName() {
|
|
967641
967646
|
if (false) {
|
package/package.json
CHANGED