@fern-api/fern-api-dev 3.35.1-2-g1c68092ffb → 3.35.1-4-gf680a2133c
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 +15 -9
- package/package.json +1 -1
package/cli.cjs
CHANGED
|
@@ -1413767,7 +1413767,7 @@ var AccessTokenPosthogManager = class {
|
|
|
1413767
1413767
|
properties: {
|
|
1413768
1413768
|
...event,
|
|
1413769
1413769
|
...event.properties,
|
|
1413770
|
-
version: "3.35.1-
|
|
1413770
|
+
version: "3.35.1-4-gf680a2133c",
|
|
1413771
1413771
|
usingAccessToken: true
|
|
1413772
1413772
|
}
|
|
1413773
1413773
|
});
|
|
@@ -1413866,7 +1413866,7 @@ var UserPosthogManager = class {
|
|
|
1413866
1413866
|
distinctId: this.userId ?? await this.getPersistedDistinctId(),
|
|
1413867
1413867
|
event: "CLI",
|
|
1413868
1413868
|
properties: {
|
|
1413869
|
-
version: "3.35.1-
|
|
1413869
|
+
version: "3.35.1-4-gf680a2133c",
|
|
1413870
1413870
|
...event,
|
|
1413871
1413871
|
...event.properties,
|
|
1413872
1413872
|
usingAccessToken: false,
|
|
@@ -1493970,7 +1493970,7 @@ var CliContext = class {
|
|
|
1493970
1493970
|
if (false) {
|
|
1493971
1493971
|
this.logger.error("CLI_VERSION is not defined");
|
|
1493972
1493972
|
}
|
|
1493973
|
-
return "3.35.1-
|
|
1493973
|
+
return "3.35.1-4-gf680a2133c";
|
|
1493974
1493974
|
}
|
|
1493975
1493975
|
getCliName() {
|
|
1493976
1493976
|
if (false) {
|
|
@@ -1588918,7 +1588918,7 @@ var import_path35 = __toESM(require("path"), 1);
|
|
|
1588918
1588918
|
var LOCAL_STORAGE_FOLDER4 = ".fern-dev";
|
|
1588919
1588919
|
var LOGS_FOLDER_NAME = "logs";
|
|
1588920
1588920
|
function getCliSource() {
|
|
1588921
|
-
const version6 = "3.35.1-
|
|
1588921
|
+
const version6 = "3.35.1-4-gf680a2133c";
|
|
1588922
1588922
|
return `cli@${version6}`;
|
|
1588923
1588923
|
}
|
|
1588924
1588924
|
var DebugLogger = class {
|
|
@@ -1608491,12 +1608491,14 @@ function extractLicenseInfo(generatorInvocation, absolutePathToFernConfig) {
|
|
|
1608491
1608491
|
function getGithubPublishConfig(githubPublishInfo) {
|
|
1608492
1608492
|
return githubPublishInfo != null ? import_api2.GithubPublishInfo._visit(githubPublishInfo, {
|
|
1608493
1608493
|
npm: (value) => {
|
|
1608494
|
-
const token = (value.token
|
|
1608494
|
+
const token = (value.token ?? "").trim();
|
|
1608495
1608495
|
const useOidc = token === "<USE_OIDC>" || token === "OIDC";
|
|
1608496
|
+
const hasToken = token !== "";
|
|
1608496
1608497
|
return import_generator_exec_sdk.FernGeneratorExec.GithubPublishInfo.npm({
|
|
1608497
1608498
|
registryUrl: value.registryUrl,
|
|
1608498
1608499
|
packageName: value.packageName,
|
|
1608499
|
-
tokenEnvironmentVariable: (0, import_api3.EnvironmentVariable)(useOidc ? "<USE_OIDC>" : token.startsWith("${") && token.endsWith("}") ? token.slice(2, -1).trim() : "")
|
|
1608500
|
+
tokenEnvironmentVariable: (0, import_api3.EnvironmentVariable)(useOidc ? "<USE_OIDC>" : token.startsWith("${") && token.endsWith("}") ? token.slice(2, -1).trim() : ""),
|
|
1608501
|
+
shouldGeneratePublishWorkflow: useOidc || hasToken
|
|
1608500
1608502
|
});
|
|
1608501
1608503
|
},
|
|
1608502
1608504
|
maven: (value) => import_generator_exec_sdk.FernGeneratorExec.GithubPublishInfo.maven({
|
|
@@ -1608652,7 +1608654,7 @@ function newDummyPublishOutputConfig(version6, multipleOutputMode, generatorInvo
|
|
|
1608652
1608654
|
let repoUrl = "";
|
|
1608653
1608655
|
if (generatorInvocation.raw?.github != null) {
|
|
1608654
1608656
|
if (isGithubSelfhosted(generatorInvocation.raw.github)) {
|
|
1608655
|
-
repoUrl = generatorInvocation.raw.github.uri
|
|
1608657
|
+
repoUrl = `https://github.com/${generatorInvocation.raw.github.uri}`;
|
|
1608656
1608658
|
} else {
|
|
1608657
1608659
|
repoUrl = generatorInvocation.raw?.github.repository;
|
|
1608658
1608660
|
}
|
|
@@ -1627443,8 +1627445,8 @@ generators:
|
|
|
1627443
1627445
|
githubRepository: selfhostedGithubConfig.uri,
|
|
1627444
1627446
|
installationToken: selfhostedGithubConfig.token,
|
|
1627445
1627447
|
targetDirectory: absolutePathToLocalOutput,
|
|
1627446
|
-
timeoutMs:
|
|
1627447
|
-
//
|
|
1627448
|
+
timeoutMs: 3e4
|
|
1627449
|
+
// 30 seconds timeout for credential/network issues
|
|
1627448
1627450
|
});
|
|
1627449
1627451
|
const mode = selfhostedGithubConfig.mode ?? "push";
|
|
1627450
1627452
|
if (mode === "push" && selfhostedGithubConfig.branch != null) {
|
|
@@ -1627506,6 +1627508,10 @@ function getPackageNameFromGeneratorConfig(generatorInvocation) {
|
|
|
1627506
1627508
|
if (packageName != null) {
|
|
1627507
1627509
|
return packageName;
|
|
1627508
1627510
|
}
|
|
1627511
|
+
const coordinate = generatorInvocation.raw.output.coordinate;
|
|
1627512
|
+
if (coordinate != null) {
|
|
1627513
|
+
return coordinate;
|
|
1627514
|
+
}
|
|
1627509
1627515
|
}
|
|
1627510
1627516
|
if (typeof generatorInvocation.raw?.config === "object" && generatorInvocation.raw?.config !== null) {
|
|
1627511
1627517
|
const packageName = generatorInvocation.raw.config.package_name;
|
package/package.json
CHANGED