@fern-api/fern-api-dev 4.71.3-1-g09984eb5958 → 4.71.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 +6 -44
- package/package.json +1 -1
package/cli.cjs
CHANGED
|
@@ -521218,45 +521218,7 @@ function buildEnvironments(context3) {
|
|
|
521218
521218
|
}
|
|
521219
521219
|
}
|
|
521220
521220
|
}
|
|
521221
|
-
|
|
521222
|
-
const topLevelServerNamesSet = new Set(Object.keys(topLevelServersWithName));
|
|
521223
|
-
const endpointServersReferenceTopLevel = endpointServerNamesSet.size > 0 && [...endpointServerNamesSet].every((name2) => topLevelServerNamesSet.has(name2));
|
|
521224
|
-
if (apiToUrls.size > 0 && endpointServersReferenceTopLevel) {
|
|
521225
|
-
const entries23 = Object.entries(topLevelServersWithName);
|
|
521226
|
-
const firstEntry = entries23[0];
|
|
521227
|
-
if (firstEntry) {
|
|
521228
|
-
const [envName, firstSchema] = firstEntry;
|
|
521229
|
-
const baseUrl = typeof firstSchema === "string" ? firstSchema : isRawMultipleBaseUrlsEnvironment(firstSchema) ? Object.values(firstSchema.urls)[0] : firstSchema["default-url"] ?? firstSchema.url;
|
|
521230
|
-
const urls = {};
|
|
521231
|
-
if (baseUrl != null) {
|
|
521232
|
-
urls[DEFAULT_URL_NAME] = baseUrl;
|
|
521233
|
-
context3.setUrlId(baseUrl, DEFAULT_URL_NAME);
|
|
521234
|
-
}
|
|
521235
|
-
for (let i11 = 1; i11 < entries23.length; i11++) {
|
|
521236
|
-
const entry = entries23[i11];
|
|
521237
|
-
if (entry == null) {
|
|
521238
|
-
continue;
|
|
521239
|
-
}
|
|
521240
|
-
const [name2, schema2] = entry;
|
|
521241
|
-
const url3 = typeof schema2 === "string" ? schema2 : isRawMultipleBaseUrlsEnvironment(schema2) ? Object.values(schema2.urls)[0] : schema2["default-url"] ?? schema2.url;
|
|
521242
|
-
if (url3 != null) {
|
|
521243
|
-
urls[name2] = url3;
|
|
521244
|
-
context3.setUrlId(url3, name2);
|
|
521245
|
-
}
|
|
521246
|
-
}
|
|
521247
|
-
if (hasWebsocketServersWithName) {
|
|
521248
|
-
Object.assign(urls, extractUrlsFromEnvironmentSchema(websocketServersWithName));
|
|
521249
|
-
}
|
|
521250
|
-
context3.builder.addEnvironment({
|
|
521251
|
-
name: envName,
|
|
521252
|
-
schema: { urls }
|
|
521253
|
-
});
|
|
521254
|
-
if (context3.options.inferDefaultEnvironment !== false) {
|
|
521255
|
-
context3.builder.setDefaultEnvironment(envName);
|
|
521256
|
-
}
|
|
521257
|
-
context3.builder.setDefaultUrl(DEFAULT_URL_NAME);
|
|
521258
|
-
}
|
|
521259
|
-
} else if (apiToUrls.size > 0) {
|
|
521221
|
+
if (apiToUrls.size > 0) {
|
|
521260
521222
|
let firstEnvironment = true;
|
|
521261
521223
|
for (const [envName, envSchema] of Object.entries(topLevelServersWithName)) {
|
|
521262
521224
|
const baseUrl = typeof envSchema === "string" ? envSchema : isRawMultipleBaseUrlsEnvironment(envSchema) ? Object.values(envSchema.urls)[0] : envSchema["default-url"] ?? envSchema.url;
|
|
@@ -621393,7 +621355,7 @@ var AccessTokenPosthogManager = class {
|
|
|
621393
621355
|
properties: {
|
|
621394
621356
|
...event,
|
|
621395
621357
|
...event.properties,
|
|
621396
|
-
version: "4.71.3
|
|
621358
|
+
version: "4.71.3",
|
|
621397
621359
|
usingAccessToken: true
|
|
621398
621360
|
}
|
|
621399
621361
|
});
|
|
@@ -621447,7 +621409,7 @@ var UserPosthogManager = class {
|
|
|
621447
621409
|
distinctId: this.userId ?? await this.getPersistedDistinctId(),
|
|
621448
621410
|
event: "CLI",
|
|
621449
621411
|
properties: {
|
|
621450
|
-
version: "4.71.3
|
|
621412
|
+
version: "4.71.3",
|
|
621451
621413
|
...event,
|
|
621452
621414
|
...event.properties,
|
|
621453
621415
|
usingAccessToken: false,
|
|
@@ -838546,7 +838508,7 @@ var LOCAL_STORAGE_FOLDER4 = ".fern-dev";
|
|
|
838546
838508
|
var LOGS_FOLDER_NAME = "logs";
|
|
838547
838509
|
var MAX_LOGS_DIR_SIZE_BYTES = 100 * 1024 * 1024;
|
|
838548
838510
|
function getCliSource() {
|
|
838549
|
-
const version7 = "4.71.3
|
|
838511
|
+
const version7 = "4.71.3";
|
|
838550
838512
|
return `cli@${version7}`;
|
|
838551
838513
|
}
|
|
838552
838514
|
var DebugLogger = class {
|
|
@@ -849793,7 +849755,7 @@ var LegacyDocsPublisher = class {
|
|
|
849793
849755
|
previewId,
|
|
849794
849756
|
disableTemplates: void 0,
|
|
849795
849757
|
skipUpload,
|
|
849796
|
-
cliVersion: "4.71.3
|
|
849758
|
+
cliVersion: "4.71.3"
|
|
849797
849759
|
});
|
|
849798
849760
|
if (taskContext.getResult() === TaskResult.Failure) {
|
|
849799
849761
|
return { success: false };
|
|
@@ -924146,7 +924108,7 @@ var CliContext = class _CliContext {
|
|
|
924146
924108
|
if (false) {
|
|
924147
924109
|
this.logger.error("CLI_VERSION is not defined");
|
|
924148
924110
|
}
|
|
924149
|
-
return "4.71.3
|
|
924111
|
+
return "4.71.3";
|
|
924150
924112
|
}
|
|
924151
924113
|
getCliName() {
|
|
924152
924114
|
if (false) {
|
package/package.json
CHANGED