@fern-api/fern-api-dev 5.89.0 → 5.89.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 +14 -12
- package/package.json +1 -1
package/cli.cjs
CHANGED
|
@@ -694311,7 +694311,7 @@ var AccessTokenPosthogManager = class {
|
|
|
694311
694311
|
properties: {
|
|
694312
694312
|
...event,
|
|
694313
694313
|
...event.properties,
|
|
694314
|
-
version: "5.89.
|
|
694314
|
+
version: "5.89.1",
|
|
694315
694315
|
usingAccessToken: true,
|
|
694316
694316
|
...getRunIdProperties()
|
|
694317
694317
|
}
|
|
@@ -694377,7 +694377,7 @@ var UserPosthogManager = class {
|
|
|
694377
694377
|
distinctId: this.userId ?? await this.getPersistedDistinctId(),
|
|
694378
694378
|
event: "CLI",
|
|
694379
694379
|
properties: {
|
|
694380
|
-
version: "5.89.
|
|
694380
|
+
version: "5.89.1",
|
|
694381
694381
|
...event,
|
|
694382
694382
|
...event.properties,
|
|
694383
694383
|
usingAccessToken: false,
|
|
@@ -875507,7 +875507,7 @@ var LOCAL_STORAGE_FOLDER4 = ".fern-dev";
|
|
|
875507
875507
|
var LOGS_FOLDER_NAME = "logs";
|
|
875508
875508
|
var MAX_LOGS_DIR_SIZE_BYTES = 100 * 1024 * 1024;
|
|
875509
875509
|
function getCliSource() {
|
|
875510
|
-
const version7 = "5.89.
|
|
875510
|
+
const version7 = "5.89.1";
|
|
875511
875511
|
return `cli@${version7}`;
|
|
875512
875512
|
}
|
|
875513
875513
|
var DebugLogger = class {
|
|
@@ -908217,7 +908217,7 @@ var LegacyDocsPublisher = class {
|
|
|
908217
908217
|
previewId,
|
|
908218
908218
|
disableTemplates: void 0,
|
|
908219
908219
|
skipUpload,
|
|
908220
|
-
cliVersion: "5.89.
|
|
908220
|
+
cliVersion: "5.89.1",
|
|
908221
908221
|
loginCommand: "fern auth login"
|
|
908222
908222
|
});
|
|
908223
908223
|
if (taskContext.getResult() === TaskResult.Failure) {
|
|
@@ -975092,7 +975092,7 @@ function getAutomationContextFromEnv() {
|
|
|
975092
975092
|
config_branch: process.env.FERN_CONFIG_BRANCH,
|
|
975093
975093
|
config_pr_number: process.env.FERN_CONFIG_PR_NUMBER,
|
|
975094
975094
|
trigger: process.env.GITHUB_EVENT_NAME,
|
|
975095
|
-
cli_version: "5.89.
|
|
975095
|
+
cli_version: "5.89.1"
|
|
975096
975096
|
};
|
|
975097
975097
|
}
|
|
975098
975098
|
function isAutomationMode() {
|
|
@@ -975924,7 +975924,7 @@ var CliContext = class _CliContext {
|
|
|
975924
975924
|
if (false) {
|
|
975925
975925
|
this.logger.error("CLI_VERSION is not defined");
|
|
975926
975926
|
}
|
|
975927
|
-
return "5.89.
|
|
975927
|
+
return "5.89.1";
|
|
975928
975928
|
}
|
|
975929
975929
|
getCliName() {
|
|
975930
975930
|
if (false) {
|
|
@@ -985535,6 +985535,13 @@ Example: acme-preview-abc123.docs.buildwithfern.com`,
|
|
|
985535
985535
|
init_lib26();
|
|
985536
985536
|
init_lib6();
|
|
985537
985537
|
init_source();
|
|
985538
|
+
function toPreviewDeployments(urls) {
|
|
985539
|
+
return urls.map((item) => ({
|
|
985540
|
+
url: item.basePath != null ? `${item.domain}${item.basePath}` : item.domain,
|
|
985541
|
+
organizationId: item.organizationId,
|
|
985542
|
+
updatedAt: item.updatedAt
|
|
985543
|
+
}));
|
|
985544
|
+
}
|
|
985538
985545
|
async function listDocsPreview({
|
|
985539
985546
|
cliContext,
|
|
985540
985547
|
limit,
|
|
@@ -985579,12 +985586,7 @@ async function listDocsPreview({
|
|
|
985579
985586
|
}
|
|
985580
985587
|
}
|
|
985581
985588
|
}
|
|
985582
|
-
const
|
|
985583
|
-
const previewDeployments = listResponse.urls.filter((item) => previewUrlPattern.test(item.domain)).map((item) => ({
|
|
985584
|
-
url: item.basePath != null ? `${item.domain}${item.basePath}` : item.domain,
|
|
985585
|
-
organizationId: item.organizationId,
|
|
985586
|
-
updatedAt: item.updatedAt
|
|
985587
|
-
}));
|
|
985589
|
+
const previewDeployments = toPreviewDeployments(listResponse.urls);
|
|
985588
985590
|
if (previewDeployments.length === 0) {
|
|
985589
985591
|
context3.logger.info("No preview deployments found.");
|
|
985590
985592
|
return;
|
package/package.json
CHANGED