@fern-api/fern-api-dev 5.66.0 → 5.66.1
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 +8 -11
- package/package.json +1 -1
package/cli.cjs
CHANGED
|
@@ -688843,7 +688843,7 @@ var AccessTokenPosthogManager = class {
|
|
|
688843
688843
|
properties: {
|
|
688844
688844
|
...event,
|
|
688845
688845
|
...event.properties,
|
|
688846
|
-
version: "5.66.
|
|
688846
|
+
version: "5.66.1",
|
|
688847
688847
|
usingAccessToken: true,
|
|
688848
688848
|
...getRunIdProperties()
|
|
688849
688849
|
}
|
|
@@ -688909,7 +688909,7 @@ var UserPosthogManager = class {
|
|
|
688909
688909
|
distinctId: this.userId ?? await this.getPersistedDistinctId(),
|
|
688910
688910
|
event: "CLI",
|
|
688911
688911
|
properties: {
|
|
688912
|
-
version: "5.66.
|
|
688912
|
+
version: "5.66.1",
|
|
688913
688913
|
...event,
|
|
688914
688914
|
...event.properties,
|
|
688915
688915
|
usingAccessToken: false,
|
|
@@ -870010,7 +870010,7 @@ var LOCAL_STORAGE_FOLDER4 = ".fern-dev";
|
|
|
870010
870010
|
var LOGS_FOLDER_NAME = "logs";
|
|
870011
870011
|
var MAX_LOGS_DIR_SIZE_BYTES = 100 * 1024 * 1024;
|
|
870012
870012
|
function getCliSource() {
|
|
870013
|
-
const version7 = "5.66.
|
|
870013
|
+
const version7 = "5.66.1";
|
|
870014
870014
|
return `cli@${version7}`;
|
|
870015
870015
|
}
|
|
870016
870016
|
var DebugLogger = class {
|
|
@@ -900440,7 +900440,7 @@ function validateBasepathAlignment(instanceUrl, customDomains, context3) {
|
|
|
900440
900440
|
for (const customDomain of customDomains) {
|
|
900441
900441
|
const customDomainBasepath = getBasepath(customDomain);
|
|
900442
900442
|
if (urlBasepath !== customDomainBasepath) {
|
|
900443
|
-
context3.failAndThrow(`Basepath mismatch between Fern url and custom-domain.
|
|
900443
|
+
context3.failAndThrow(`Basepath mismatch between Fern url and custom-domain. The instance 'url' and 'custom-domain' must share the same basepath, since navigation links and redirects are generated relative to the basepath and would break on a custom domain with a different one. Instance url '${instanceUrl}' has basepath '${urlBasepath}' but custom-domain '${customDomain}' has basepath '${customDomainBasepath}'.`, void 0, { code: CliError.Code.ConfigError });
|
|
900444
900444
|
}
|
|
900445
900445
|
}
|
|
900446
900446
|
}
|
|
@@ -902481,10 +902481,7 @@ ${available}` : `No docs instance found. Failed to register.`, void 0, { code: C
|
|
|
902481
902481
|
return;
|
|
902482
902482
|
}
|
|
902483
902483
|
const customDomains = (typeof maybeInstance.customDomain === "string" ? [maybeInstance.customDomain] : maybeInstance.customDomain ?? []).map(stripCustomDomainProtocol);
|
|
902484
|
-
|
|
902485
|
-
if (isBasepathAware) {
|
|
902486
|
-
validateBasepathAlignment(maybeInstance.url, customDomains, context3);
|
|
902487
|
-
}
|
|
902484
|
+
validateBasepathAlignment(maybeInstance.url, customDomains, context3);
|
|
902488
902485
|
context3.logger.info(`Starting docs publishing for ${preview ? "preview" : "production"}: ${maybeInstance.url}`);
|
|
902489
902486
|
context3.logger.debug(`Organization: ${organization}, Preview: ${preview}, APIs: ${apiWorkspaces.length}, OSS: ${ossWorkspaces.length}`);
|
|
902490
902487
|
let publishedUrl;
|
|
@@ -902572,7 +902569,7 @@ var LegacyDocsPublisher = class {
|
|
|
902572
902569
|
previewId,
|
|
902573
902570
|
disableTemplates: void 0,
|
|
902574
902571
|
skipUpload,
|
|
902575
|
-
cliVersion: "5.66.
|
|
902572
|
+
cliVersion: "5.66.1",
|
|
902576
902573
|
loginCommand: "fern auth login"
|
|
902577
902574
|
});
|
|
902578
902575
|
if (taskContext.getResult() === TaskResult.Failure) {
|
|
@@ -968901,7 +968898,7 @@ function getAutomationContextFromEnv() {
|
|
|
968901
968898
|
config_branch: process.env.FERN_CONFIG_BRANCH,
|
|
968902
968899
|
config_pr_number: process.env.FERN_CONFIG_PR_NUMBER,
|
|
968903
968900
|
trigger: process.env.GITHUB_EVENT_NAME,
|
|
968904
|
-
cli_version: "5.66.
|
|
968901
|
+
cli_version: "5.66.1"
|
|
968905
968902
|
};
|
|
968906
968903
|
}
|
|
968907
968904
|
function isAutomationMode() {
|
|
@@ -969733,7 +969730,7 @@ var CliContext = class _CliContext {
|
|
|
969733
969730
|
if (false) {
|
|
969734
969731
|
this.logger.error("CLI_VERSION is not defined");
|
|
969735
969732
|
}
|
|
969736
|
-
return "5.66.
|
|
969733
|
+
return "5.66.1";
|
|
969737
969734
|
}
|
|
969738
969735
|
getCliName() {
|
|
969739
969736
|
if (false) {
|
package/package.json
CHANGED