@fern-api/fern-api-dev 5.26.1 → 5.26.3
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 +20 -8
- package/package.json +1 -1
package/cli.cjs
CHANGED
|
@@ -369468,8 +369468,9 @@ var require_pushSignedCommit = __commonJS({
|
|
|
369468
369468
|
exports2.pushSignedCommit = pushSignedCommit;
|
|
369469
369469
|
exports2.isNonFastForwardError = isNonFastForwardError;
|
|
369470
369470
|
var core_utils_1 = (init_lib4(), __toCommonJS(lib_exports));
|
|
369471
|
+
var constants_1 = require_constants3();
|
|
369471
369472
|
var MAX_CONCURRENT_PUSH_RETRIES = 3;
|
|
369472
|
-
async function pushSignedCommit({ repository, octokit, owner, repo, branch, force, rebaseOnConflict = false, logger: logger4 }) {
|
|
369473
|
+
async function pushSignedCommit({ repository, octokit, owner, repo, branch, force, rebaseOnConflict = false, author, logger: logger4 }) {
|
|
369473
369474
|
const tempRef = `refs/temp/fern-${Date.now()}`;
|
|
369474
369475
|
let tempRefPushed = false;
|
|
369475
369476
|
try {
|
|
@@ -369482,12 +369483,18 @@ var require_pushSignedCommit = __commonJS({
|
|
|
369482
369483
|
await repository.pushObjectToRef(localHeadSha, tempRef);
|
|
369483
369484
|
tempRefPushed = true;
|
|
369484
369485
|
for (let attempt = 0; attempt < MAX_CONCURRENT_PUSH_RETRIES; attempt++) {
|
|
369486
|
+
const commitAuthor = {
|
|
369487
|
+
name: author?.name ?? constants_1.FERN_BOT_NAME,
|
|
369488
|
+
email: author?.email ?? constants_1.FERN_BOT_EMAIL
|
|
369489
|
+
};
|
|
369485
369490
|
const { data: signedCommit } = await octokit.git.createCommit({
|
|
369486
369491
|
owner,
|
|
369487
369492
|
repo,
|
|
369488
369493
|
message,
|
|
369489
369494
|
tree: treeSha,
|
|
369490
|
-
parents
|
|
369495
|
+
parents,
|
|
369496
|
+
author: commitAuthor,
|
|
369497
|
+
committer: commitAuthor
|
|
369491
369498
|
});
|
|
369492
369499
|
const signedSha = signedCommit.sha;
|
|
369493
369500
|
try {
|
|
@@ -369862,6 +369869,7 @@ var require_GithubStep = __commonJS({
|
|
|
369862
369869
|
repo,
|
|
369863
369870
|
branch: prBranch,
|
|
369864
369871
|
force: isUpdatingExistingPR,
|
|
369872
|
+
author: this.config.author,
|
|
369865
369873
|
logger: this.logger
|
|
369866
369874
|
});
|
|
369867
369875
|
const pushedBranch = await repository.getCurrentBranch();
|
|
@@ -369972,6 +369980,7 @@ var require_GithubStep = __commonJS({
|
|
|
369972
369980
|
branch: baseBranch,
|
|
369973
369981
|
force: false,
|
|
369974
369982
|
rebaseOnConflict: true,
|
|
369983
|
+
author: this.config.author,
|
|
369975
369984
|
logger: this.logger
|
|
369976
369985
|
});
|
|
369977
369986
|
const pushedBranch = await repository.getCurrentBranch();
|
|
@@ -667708,7 +667717,7 @@ var AccessTokenPosthogManager = class {
|
|
|
667708
667717
|
properties: {
|
|
667709
667718
|
...event,
|
|
667710
667719
|
...event.properties,
|
|
667711
|
-
version: "5.26.
|
|
667720
|
+
version: "5.26.3",
|
|
667712
667721
|
usingAccessToken: true,
|
|
667713
667722
|
...getRunIdProperties()
|
|
667714
667723
|
}
|
|
@@ -667763,7 +667772,7 @@ var UserPosthogManager = class {
|
|
|
667763
667772
|
distinctId: this.userId ?? await this.getPersistedDistinctId(),
|
|
667764
667773
|
event: "CLI",
|
|
667765
667774
|
properties: {
|
|
667766
|
-
version: "5.26.
|
|
667775
|
+
version: "5.26.3",
|
|
667767
667776
|
...event,
|
|
667768
667777
|
...event.properties,
|
|
667769
667778
|
usingAccessToken: false,
|
|
@@ -859201,7 +859210,7 @@ var LOCAL_STORAGE_FOLDER4 = ".fern-dev";
|
|
|
859201
859210
|
var LOGS_FOLDER_NAME = "logs";
|
|
859202
859211
|
var MAX_LOGS_DIR_SIZE_BYTES = 100 * 1024 * 1024;
|
|
859203
859212
|
function getCliSource() {
|
|
859204
|
-
const version7 = "5.26.
|
|
859213
|
+
const version7 = "5.26.3";
|
|
859205
859214
|
return `cli@${version7}`;
|
|
859206
859215
|
}
|
|
859207
859216
|
var DebugLogger = class {
|
|
@@ -860400,7 +860409,8 @@ async function applyGlobalThemeIfNeeded(docsWorkspace, organization, context3) {
|
|
|
860400
860409
|
if (themeName == null) {
|
|
860401
860410
|
return docsWorkspace;
|
|
860402
860411
|
}
|
|
860403
|
-
const
|
|
860412
|
+
const storedToken = await getUserToken();
|
|
860413
|
+
const token = storedToken?.value ?? process.env.FERN_TOKEN;
|
|
860404
860414
|
if (token == null) {
|
|
860405
860415
|
context3.logger.warn(`docs.yml declares global-theme "${themeName}" but FERN_TOKEN is not set \u2014 theme will not be applied in dev mode. Set FERN_TOKEN or run 'fern login' to enable it.`);
|
|
860406
860416
|
return docsWorkspace;
|
|
@@ -873139,7 +873149,7 @@ var LegacyDocsPublisher = class {
|
|
|
873139
873149
|
previewId,
|
|
873140
873150
|
disableTemplates: void 0,
|
|
873141
873151
|
skipUpload,
|
|
873142
|
-
cliVersion: "5.26.
|
|
873152
|
+
cliVersion: "5.26.3",
|
|
873143
873153
|
loginCommand: "fern auth login"
|
|
873144
873154
|
});
|
|
873145
873155
|
if (taskContext.getResult() === TaskResult.Failure) {
|
|
@@ -947937,7 +947947,7 @@ var CliContext = class _CliContext {
|
|
|
947937
947947
|
if (false) {
|
|
947938
947948
|
this.logger.error("CLI_VERSION is not defined");
|
|
947939
947949
|
}
|
|
947940
|
-
return "5.26.
|
|
947950
|
+
return "5.26.3";
|
|
947941
947951
|
}
|
|
947942
947952
|
getCliName() {
|
|
947943
947953
|
if (false) {
|
|
@@ -950282,6 +950292,8 @@ async function generateAPIWorkspaces({
|
|
|
950282
950292
|
});
|
|
950283
950293
|
}
|
|
950284
950294
|
token = currentToken;
|
|
950295
|
+
} else {
|
|
950296
|
+
token = await getToken2();
|
|
950285
950297
|
}
|
|
950286
950298
|
await confirmOutputDirectoriesForEligibleGenerators({
|
|
950287
950299
|
project,
|
package/package.json
CHANGED