@fern-api/fern-api-dev 5.23.3-1168-gd37e4cdb643 → 5.23.3-1170-g8fc91f77060
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 +33 -9
- package/package.json +1 -1
package/cli.cjs
CHANGED
|
@@ -688404,7 +688404,7 @@ var AccessTokenPosthogManager = class {
|
|
|
688404
688404
|
properties: {
|
|
688405
688405
|
...event,
|
|
688406
688406
|
...event.properties,
|
|
688407
|
-
version: "5.23.3-
|
|
688407
|
+
version: "5.23.3-1170-g8fc91f77060",
|
|
688408
688408
|
usingAccessToken: true,
|
|
688409
688409
|
...getRunIdProperties()
|
|
688410
688410
|
}
|
|
@@ -688470,7 +688470,7 @@ var UserPosthogManager = class {
|
|
|
688470
688470
|
distinctId: this.userId ?? await this.getPersistedDistinctId(),
|
|
688471
688471
|
event: "CLI",
|
|
688472
688472
|
properties: {
|
|
688473
|
-
version: "5.23.3-
|
|
688473
|
+
version: "5.23.3-1170-g8fc91f77060",
|
|
688474
688474
|
...event,
|
|
688475
688475
|
...event.properties,
|
|
688476
688476
|
usingAccessToken: false,
|
|
@@ -869565,7 +869565,7 @@ var LOCAL_STORAGE_FOLDER4 = ".fern-dev";
|
|
|
869565
869565
|
var LOGS_FOLDER_NAME = "logs";
|
|
869566
869566
|
var MAX_LOGS_DIR_SIZE_BYTES = 100 * 1024 * 1024;
|
|
869567
869567
|
function getCliSource() {
|
|
869568
|
-
const version7 = "5.23.3-
|
|
869568
|
+
const version7 = "5.23.3-1170-g8fc91f77060";
|
|
869569
869569
|
return `cli@${version7}`;
|
|
869570
869570
|
}
|
|
869571
869571
|
var DebugLogger = class {
|
|
@@ -902082,7 +902082,7 @@ var LegacyDocsPublisher = class {
|
|
|
902082
902082
|
previewId,
|
|
902083
902083
|
disableTemplates: void 0,
|
|
902084
902084
|
skipUpload,
|
|
902085
|
-
cliVersion: "5.23.3-
|
|
902085
|
+
cliVersion: "5.23.3-1170-g8fc91f77060",
|
|
902086
902086
|
loginCommand: "fern auth login"
|
|
902087
902087
|
});
|
|
902088
902088
|
if (taskContext.getResult() === TaskResult.Failure) {
|
|
@@ -941458,7 +941458,8 @@ var EndpointSnippetGenerator6 = class {
|
|
|
941458
941458
|
args.push(...this.getNamedParameterArgs({
|
|
941459
941459
|
kind: "PathParameters",
|
|
941460
941460
|
namedParameters: pathParameters,
|
|
941461
|
-
values: snippet.pathParameters
|
|
941461
|
+
values: snippet.pathParameters,
|
|
941462
|
+
reservedNames: this.getInlinedBodyPropertyNames({ request: request7 })
|
|
941462
941463
|
}));
|
|
941463
941464
|
args.push(...this.getNamedParameterArgs({
|
|
941464
941465
|
kind: "QueryParameters",
|
|
@@ -941521,7 +941522,23 @@ var EndpointSnippetGenerator6 = class {
|
|
|
941521
941522
|
}
|
|
941522
941523
|
return args;
|
|
941523
941524
|
}
|
|
941524
|
-
|
|
941525
|
+
/**
|
|
941526
|
+
* Property names of an inlined request body (both Ruby names and wire values). Path
|
|
941527
|
+
* parameters that collide with these are renamed in the generated SDK, so snippets
|
|
941528
|
+
* must rename them the same way.
|
|
941529
|
+
*/
|
|
941530
|
+
getInlinedBodyPropertyNames({ request: request7 }) {
|
|
941531
|
+
const names2 = /* @__PURE__ */ new Set();
|
|
941532
|
+
if (request7.body?.type !== "properties") {
|
|
941533
|
+
return names2;
|
|
941534
|
+
}
|
|
941535
|
+
for (const property24 of request7.body.value) {
|
|
941536
|
+
names2.add(this.context.getPropertyName(property24.name.name));
|
|
941537
|
+
names2.add(property24.name.wireValue);
|
|
941538
|
+
}
|
|
941539
|
+
return names2;
|
|
941540
|
+
}
|
|
941541
|
+
getNamedParameterArgs({ kind, namedParameters, values: values2, reservedNames }) {
|
|
941525
941542
|
const args = [];
|
|
941526
941543
|
this.context.errors.scope(kind);
|
|
941527
941544
|
if (namedParameters != null) {
|
|
@@ -941535,8 +941552,15 @@ var EndpointSnippetGenerator6 = class {
|
|
|
941535
941552
|
if (ruby_exports.TypeLiteral.isNop(value2)) {
|
|
941536
941553
|
continue;
|
|
941537
941554
|
}
|
|
941555
|
+
let name2 = this.context.getPropertyName(parameter6.name.name);
|
|
941556
|
+
if (reservedNames != null && reservedNames.has(name2)) {
|
|
941557
|
+
name2 = `${name2}_path_param`;
|
|
941558
|
+
while (reservedNames.has(name2)) {
|
|
941559
|
+
name2 = `${name2}_`;
|
|
941560
|
+
}
|
|
941561
|
+
}
|
|
941538
941562
|
args.push(ruby_exports.keywordArgument({
|
|
941539
|
-
name:
|
|
941563
|
+
name: name2,
|
|
941540
941564
|
value: value2
|
|
941541
941565
|
}));
|
|
941542
941566
|
}
|
|
@@ -968392,7 +968416,7 @@ function getAutomationContextFromEnv() {
|
|
|
968392
968416
|
config_branch: process.env.FERN_CONFIG_BRANCH,
|
|
968393
968417
|
config_pr_number: process.env.FERN_CONFIG_PR_NUMBER,
|
|
968394
968418
|
trigger: process.env.GITHUB_EVENT_NAME,
|
|
968395
|
-
cli_version: "5.23.3-
|
|
968419
|
+
cli_version: "5.23.3-1170-g8fc91f77060"
|
|
968396
968420
|
};
|
|
968397
968421
|
}
|
|
968398
968422
|
function isAutomationMode() {
|
|
@@ -969224,7 +969248,7 @@ var CliContext = class _CliContext {
|
|
|
969224
969248
|
if (false) {
|
|
969225
969249
|
this.logger.error("CLI_VERSION is not defined");
|
|
969226
969250
|
}
|
|
969227
|
-
return "5.23.3-
|
|
969251
|
+
return "5.23.3-1170-g8fc91f77060";
|
|
969228
969252
|
}
|
|
969229
969253
|
getCliName() {
|
|
969230
969254
|
if (false) {
|
package/package.json
CHANGED