@fern-api/fern-api-dev 5.70.1 → 5.70.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 +35 -8
- package/package.json +1 -1
package/cli.cjs
CHANGED
|
@@ -167522,6 +167522,20 @@ function detectMultipleBaseUrls(servers1, servers2) {
|
|
|
167522
167522
|
}
|
|
167523
167523
|
return allMatch && allDifferent;
|
|
167524
167524
|
}
|
|
167525
|
+
function dedupeServers(servers) {
|
|
167526
|
+
const seen = /* @__PURE__ */ new Set();
|
|
167527
|
+
return servers.filter((server) => {
|
|
167528
|
+
if (server.type === "grouped") {
|
|
167529
|
+
return true;
|
|
167530
|
+
}
|
|
167531
|
+
const key2 = `${getEnvironmentName2(server)}\0${server.url}`;
|
|
167532
|
+
if (seen.has(key2)) {
|
|
167533
|
+
return false;
|
|
167534
|
+
}
|
|
167535
|
+
seen.add(key2);
|
|
167536
|
+
return true;
|
|
167537
|
+
});
|
|
167538
|
+
}
|
|
167525
167539
|
function getPreferredUrlForNameExtraction(server) {
|
|
167526
167540
|
return server.defaultUrl ?? server.url;
|
|
167527
167541
|
}
|
|
@@ -167737,7 +167751,7 @@ function merge6(ir1, ir22, options2) {
|
|
|
167737
167751
|
description: ir1.description ?? ir22.description,
|
|
167738
167752
|
basePath: ir1.basePath ?? ir22.basePath,
|
|
167739
167753
|
basePathParameters: ir1.basePathParameters ?? ir22.basePathParameters,
|
|
167740
|
-
servers: [...ir1.servers, ...ir22.servers],
|
|
167754
|
+
servers: dedupeServers([...ir1.servers, ...ir22.servers]),
|
|
167741
167755
|
websocketServers: [...ir1.websocketServers, ...ir22.websocketServers],
|
|
167742
167756
|
tags: {
|
|
167743
167757
|
tagsById: {
|
|
@@ -262016,7 +262030,15 @@ function computeName(inputName, opts, config5) {
|
|
|
262016
262030
|
return word2;
|
|
262017
262031
|
}).join("") + nameTrailing);
|
|
262018
262032
|
}
|
|
262019
|
-
const smartSnakeFn = (n2) => n2.split(" ").map((part) =>
|
|
262033
|
+
const smartSnakeFn = (n2) => n2.split(" ").map((part) => {
|
|
262034
|
+
const segments = part.split(/(\d+)/);
|
|
262035
|
+
return segments.map((segment, index3) => {
|
|
262036
|
+
const casedSegment = snakeCase_default(segment);
|
|
262037
|
+
const previousSegment = segments[index3 - 1];
|
|
262038
|
+
const startsNewWord = casedSegment !== "" && previousSegment != null && /^\d+$/.test(previousSegment) && /^[^a-z0-9]/.test(segment);
|
|
262039
|
+
return startsNewWord ? `_${casedSegment}` : casedSegment;
|
|
262040
|
+
}).join("");
|
|
262041
|
+
}).join("_");
|
|
262020
262042
|
snakeCaseName = preserve ? withUnderscorePreservation(name2, smartSnakeFn) : smartSnakeFn(name2);
|
|
262021
262043
|
}
|
|
262022
262044
|
return {
|
|
@@ -689329,7 +689351,7 @@ var AccessTokenPosthogManager = class {
|
|
|
689329
689351
|
properties: {
|
|
689330
689352
|
...event,
|
|
689331
689353
|
...event.properties,
|
|
689332
|
-
version: "5.70.
|
|
689354
|
+
version: "5.70.3",
|
|
689333
689355
|
usingAccessToken: true,
|
|
689334
689356
|
...getRunIdProperties()
|
|
689335
689357
|
}
|
|
@@ -689395,7 +689417,7 @@ var UserPosthogManager = class {
|
|
|
689395
689417
|
distinctId: this.userId ?? await this.getPersistedDistinctId(),
|
|
689396
689418
|
event: "CLI",
|
|
689397
689419
|
properties: {
|
|
689398
|
-
version: "5.70.
|
|
689420
|
+
version: "5.70.3",
|
|
689399
689421
|
...event,
|
|
689400
689422
|
...event.properties,
|
|
689401
689423
|
usingAccessToken: false,
|
|
@@ -870496,7 +870518,7 @@ var LOCAL_STORAGE_FOLDER4 = ".fern-dev";
|
|
|
870496
870518
|
var LOGS_FOLDER_NAME = "logs";
|
|
870497
870519
|
var MAX_LOGS_DIR_SIZE_BYTES = 100 * 1024 * 1024;
|
|
870498
870520
|
function getCliSource() {
|
|
870499
|
-
const version7 = "5.70.
|
|
870521
|
+
const version7 = "5.70.3";
|
|
870500
870522
|
return `cli@${version7}`;
|
|
870501
870523
|
}
|
|
870502
870524
|
var DebugLogger = class {
|
|
@@ -903068,7 +903090,7 @@ var LegacyDocsPublisher = class {
|
|
|
903068
903090
|
previewId,
|
|
903069
903091
|
disableTemplates: void 0,
|
|
903070
903092
|
skipUpload,
|
|
903071
|
-
cliVersion: "5.70.
|
|
903093
|
+
cliVersion: "5.70.3",
|
|
903072
903094
|
loginCommand: "fern auth login"
|
|
903073
903095
|
});
|
|
903074
903096
|
if (taskContext.getResult() === TaskResult.Failure) {
|
|
@@ -922958,6 +922980,11 @@ var Generation = class {
|
|
|
922958
922980
|
multipartMethodNameForCollection: "AddFileParameterParts",
|
|
922959
922981
|
isReferenceType: true
|
|
922960
922982
|
}),
|
|
922983
|
+
/** Factory for the default HttpClient with automatic response decompression */
|
|
922984
|
+
DefaultHttpClientFactory: () => this.csharp.classReference({
|
|
922985
|
+
namespace: this.namespaces.core,
|
|
922986
|
+
origin: this.model.staticExplicit("DefaultHttpClientFactory")
|
|
922987
|
+
}),
|
|
922961
922988
|
/** HTTP header management utilities */
|
|
922962
922989
|
Headers: () => this.csharp.classReference({
|
|
922963
922990
|
namespace: this.namespaces.core,
|
|
@@ -969489,7 +969516,7 @@ function getAutomationContextFromEnv() {
|
|
|
969489
969516
|
config_branch: process.env.FERN_CONFIG_BRANCH,
|
|
969490
969517
|
config_pr_number: process.env.FERN_CONFIG_PR_NUMBER,
|
|
969491
969518
|
trigger: process.env.GITHUB_EVENT_NAME,
|
|
969492
|
-
cli_version: "5.70.
|
|
969519
|
+
cli_version: "5.70.3"
|
|
969493
969520
|
};
|
|
969494
969521
|
}
|
|
969495
969522
|
function isAutomationMode() {
|
|
@@ -970321,7 +970348,7 @@ var CliContext = class _CliContext {
|
|
|
970321
970348
|
if (false) {
|
|
970322
970349
|
this.logger.error("CLI_VERSION is not defined");
|
|
970323
970350
|
}
|
|
970324
|
-
return "5.70.
|
|
970351
|
+
return "5.70.3";
|
|
970325
970352
|
}
|
|
970326
970353
|
getCliName() {
|
|
970327
970354
|
if (false) {
|
package/package.json
CHANGED