@fern-api/fern-api-dev 5.23.3-459-gc7f48c6da37 → 5.23.3-462-g871d5a038fb
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 +13 -9
- package/package.json +1 -1
package/cli.cjs
CHANGED
|
@@ -660747,7 +660747,7 @@ var NoConflictingParameterNamesRule = {
|
|
|
660747
660747
|
const mergedParams = mergeParameters(pathLevelParams, operationParams);
|
|
660748
660748
|
const nameToParams = {};
|
|
660749
660749
|
for (const param of mergedParams) {
|
|
660750
|
-
const normalizedName = toCamelCase3(param.name);
|
|
660750
|
+
const normalizedName = toCamelCase3(param.fernParameterName ?? param.name);
|
|
660751
660751
|
if (normalizedName === "") {
|
|
660752
660752
|
continue;
|
|
660753
660753
|
}
|
|
@@ -660762,7 +660762,10 @@ var NoConflictingParameterNamesRule = {
|
|
|
660762
660762
|
if (distinctTypes.size <= 1) {
|
|
660763
660763
|
continue;
|
|
660764
660764
|
}
|
|
660765
|
-
const paramDescriptions = params2.map((p14) =>
|
|
660765
|
+
const paramDescriptions = params2.map((p14) => {
|
|
660766
|
+
const effectiveName = p14.fernParameterName ?? p14.name;
|
|
660767
|
+
return `${p14.in} parameter '${effectiveName}'`;
|
|
660768
|
+
}).join(", ");
|
|
660766
660769
|
violations.push({
|
|
660767
660770
|
name: "no-conflicting-parameter-names",
|
|
660768
660771
|
severity: "error",
|
|
@@ -660821,7 +660824,8 @@ function resolveParam(param, api2, visited = /* @__PURE__ */ new Set()) {
|
|
|
660821
660824
|
return void 0;
|
|
660822
660825
|
}
|
|
660823
660826
|
if (typeof paramObj.in === "string" && typeof paramObj.name === "string") {
|
|
660824
|
-
|
|
660827
|
+
const fernParameterName = typeof paramObj["x-fern-parameter-name"] === "string" ? paramObj["x-fern-parameter-name"] : void 0;
|
|
660828
|
+
return { in: paramObj.in, name: paramObj.name, fernParameterName };
|
|
660825
660829
|
}
|
|
660826
660830
|
return void 0;
|
|
660827
660831
|
}
|
|
@@ -669562,7 +669566,7 @@ var AccessTokenPosthogManager = class {
|
|
|
669562
669566
|
properties: {
|
|
669563
669567
|
...event,
|
|
669564
669568
|
...event.properties,
|
|
669565
|
-
version: "5.23.3-
|
|
669569
|
+
version: "5.23.3-462-g871d5a038fb",
|
|
669566
669570
|
usingAccessToken: true,
|
|
669567
669571
|
...getRunIdProperties()
|
|
669568
669572
|
}
|
|
@@ -669626,7 +669630,7 @@ var UserPosthogManager = class {
|
|
|
669626
669630
|
distinctId: this.userId ?? await this.getPersistedDistinctId(),
|
|
669627
669631
|
event: "CLI",
|
|
669628
669632
|
properties: {
|
|
669629
|
-
version: "5.23.3-
|
|
669633
|
+
version: "5.23.3-462-g871d5a038fb",
|
|
669630
669634
|
...event,
|
|
669631
669635
|
...event.properties,
|
|
669632
669636
|
usingAccessToken: false,
|
|
@@ -861367,7 +861371,7 @@ var LOCAL_STORAGE_FOLDER4 = ".fern-dev";
|
|
|
861367
861371
|
var LOGS_FOLDER_NAME = "logs";
|
|
861368
861372
|
var MAX_LOGS_DIR_SIZE_BYTES = 100 * 1024 * 1024;
|
|
861369
861373
|
function getCliSource() {
|
|
861370
|
-
const version7 = "5.23.3-
|
|
861374
|
+
const version7 = "5.23.3-462-g871d5a038fb";
|
|
861371
861375
|
return `cli@${version7}`;
|
|
861372
861376
|
}
|
|
861373
861377
|
var DebugLogger = class {
|
|
@@ -892459,7 +892463,7 @@ var LegacyDocsPublisher = class {
|
|
|
892459
892463
|
previewId,
|
|
892460
892464
|
disableTemplates: void 0,
|
|
892461
892465
|
skipUpload,
|
|
892462
|
-
cliVersion: "5.23.3-
|
|
892466
|
+
cliVersion: "5.23.3-462-g871d5a038fb",
|
|
892463
892467
|
loginCommand: "fern auth login"
|
|
892464
892468
|
});
|
|
892465
892469
|
if (taskContext.getResult() === TaskResult.Failure) {
|
|
@@ -957620,7 +957624,7 @@ function getAutomationContextFromEnv() {
|
|
|
957620
957624
|
config_branch: process.env.FERN_CONFIG_BRANCH,
|
|
957621
957625
|
config_pr_number: process.env.FERN_CONFIG_PR_NUMBER,
|
|
957622
957626
|
trigger: process.env.GITHUB_EVENT_NAME,
|
|
957623
|
-
cli_version: "5.23.3-
|
|
957627
|
+
cli_version: "5.23.3-462-g871d5a038fb"
|
|
957624
957628
|
};
|
|
957625
957629
|
}
|
|
957626
957630
|
function isAutomationMode() {
|
|
@@ -958446,7 +958450,7 @@ var CliContext = class _CliContext {
|
|
|
958446
958450
|
if (false) {
|
|
958447
958451
|
this.logger.error("CLI_VERSION is not defined");
|
|
958448
958452
|
}
|
|
958449
|
-
return "5.23.3-
|
|
958453
|
+
return "5.23.3-462-g871d5a038fb";
|
|
958450
958454
|
}
|
|
958451
958455
|
getCliName() {
|
|
958452
958456
|
if (false) {
|
package/package.json
CHANGED