@fern-api/fern-api-dev 5.27.3 → 5.27.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 +11 -9
- package/package.json +1 -1
package/cli.cjs
CHANGED
|
@@ -667965,7 +667965,7 @@ var AccessTokenPosthogManager = class {
|
|
|
667965
667965
|
properties: {
|
|
667966
667966
|
...event,
|
|
667967
667967
|
...event.properties,
|
|
667968
|
-
version: "5.27.
|
|
667968
|
+
version: "5.27.4",
|
|
667969
667969
|
usingAccessToken: true,
|
|
667970
667970
|
...getRunIdProperties()
|
|
667971
667971
|
}
|
|
@@ -668029,7 +668029,7 @@ var UserPosthogManager = class {
|
|
|
668029
668029
|
distinctId: this.userId ?? await this.getPersistedDistinctId(),
|
|
668030
668030
|
event: "CLI",
|
|
668031
668031
|
properties: {
|
|
668032
|
-
version: "5.27.
|
|
668032
|
+
version: "5.27.4",
|
|
668033
668033
|
...event,
|
|
668034
668034
|
...event.properties,
|
|
668035
668035
|
usingAccessToken: false,
|
|
@@ -859601,7 +859601,7 @@ var LOCAL_STORAGE_FOLDER4 = ".fern-dev";
|
|
|
859601
859601
|
var LOGS_FOLDER_NAME = "logs";
|
|
859602
859602
|
var MAX_LOGS_DIR_SIZE_BYTES = 100 * 1024 * 1024;
|
|
859603
859603
|
function getCliSource() {
|
|
859604
|
-
const version7 = "5.27.
|
|
859604
|
+
const version7 = "5.27.4";
|
|
859605
859605
|
return `cli@${version7}`;
|
|
859606
859606
|
}
|
|
859607
859607
|
var DebugLogger = class {
|
|
@@ -861730,7 +861730,7 @@ ${err.stack}`);
|
|
|
861730
861730
|
try {
|
|
861731
861731
|
await startNextJsServer();
|
|
861732
861732
|
} catch (err) {
|
|
861733
|
-
context3.failAndThrow(`Docs preview server failed to start: ${extractErrorMessage(err)}. Run with --log-level debug for more details.`, void 0, { code: CliError.Code.
|
|
861733
|
+
context3.failAndThrow(`Docs preview server failed to start: ${extractErrorMessage(err)}. Run with --log-level debug for more details.`, void 0, { code: CliError.Code.EnvironmentError });
|
|
861734
861734
|
}
|
|
861735
861735
|
watcher.on("all", async (event, targetPath, _targetPathNext) => {
|
|
861736
861736
|
if (targetPath.includes(".fern/logs/") || targetPath.includes(".fern\\logs\\")) {
|
|
@@ -870924,7 +870924,7 @@ async function retryWithRateLimit({ fn: fn10, retryRateLimited, logger: logger4,
|
|
|
870924
870924
|
}
|
|
870925
870925
|
throw new CliError({
|
|
870926
870926
|
message: "Exceeded maximum retries for 429 Too Many Requests.",
|
|
870927
|
-
code: CliError.Code.
|
|
870927
|
+
code: CliError.Code.NetworkError
|
|
870928
870928
|
});
|
|
870929
870929
|
}
|
|
870930
870930
|
|
|
@@ -872326,7 +872326,9 @@ async function generateOne({ generatorInvocation, interactiveTaskContext, projec
|
|
|
872326
872326
|
generatorsYmlAbsolutePath,
|
|
872327
872327
|
generatorsYmlLineNumber: lineNumber
|
|
872328
872328
|
});
|
|
872329
|
-
interactiveTaskContext.failWithoutThrowing(message
|
|
872329
|
+
interactiveTaskContext.failWithoutThrowing(message, error50, {
|
|
872330
|
+
code: resolveErrorCode(error50)
|
|
872331
|
+
});
|
|
872330
872332
|
}
|
|
872331
872333
|
}
|
|
872332
872334
|
|
|
@@ -873591,7 +873593,7 @@ var LegacyDocsPublisher = class {
|
|
|
873591
873593
|
previewId,
|
|
873592
873594
|
disableTemplates: void 0,
|
|
873593
873595
|
skipUpload,
|
|
873594
|
-
cliVersion: "5.27.
|
|
873596
|
+
cliVersion: "5.27.4",
|
|
873595
873597
|
loginCommand: "fern auth login"
|
|
873596
873598
|
});
|
|
873597
873599
|
if (taskContext.getResult() === TaskResult.Failure) {
|
|
@@ -947996,7 +947998,7 @@ function getAutomationContextFromEnv() {
|
|
|
947996
947998
|
config_branch: process.env.FERN_CONFIG_BRANCH,
|
|
947997
947999
|
config_pr_number: process.env.FERN_CONFIG_PR_NUMBER,
|
|
947998
948000
|
trigger: process.env.GITHUB_EVENT_NAME,
|
|
947999
|
-
cli_version: "5.27.
|
|
948001
|
+
cli_version: "5.27.4"
|
|
948000
948002
|
};
|
|
948001
948003
|
}
|
|
948002
948004
|
function isAutomationMode() {
|
|
@@ -948822,7 +948824,7 @@ var CliContext = class _CliContext {
|
|
|
948822
948824
|
if (false) {
|
|
948823
948825
|
this.logger.error("CLI_VERSION is not defined");
|
|
948824
948826
|
}
|
|
948825
|
-
return "5.27.
|
|
948827
|
+
return "5.27.4";
|
|
948826
948828
|
}
|
|
948827
948829
|
getCliName() {
|
|
948828
948830
|
if (false) {
|
package/package.json
CHANGED