@fern-api/fern-api-dev 4.65.3-5-gd8cee996921 → 4.65.3-6-gfc20f801ab1
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 +23 -5
- package/package.json +1 -1
package/cli.cjs
CHANGED
|
@@ -627388,7 +627388,7 @@ var AccessTokenPosthogManager = class {
|
|
|
627388
627388
|
properties: {
|
|
627389
627389
|
...event,
|
|
627390
627390
|
...event.properties,
|
|
627391
|
-
version: "4.65.3-
|
|
627391
|
+
version: "4.65.3-6-gfc20f801ab1",
|
|
627392
627392
|
usingAccessToken: true
|
|
627393
627393
|
}
|
|
627394
627394
|
});
|
|
@@ -627439,7 +627439,7 @@ var UserPosthogManager = class {
|
|
|
627439
627439
|
distinctId: this.userId ?? await this.getPersistedDistinctId(),
|
|
627440
627440
|
event: "CLI",
|
|
627441
627441
|
properties: {
|
|
627442
|
-
version: "4.65.3-
|
|
627442
|
+
version: "4.65.3-6-gfc20f801ab1",
|
|
627443
627443
|
...event,
|
|
627444
627444
|
...event.properties,
|
|
627445
627445
|
usingAccessToken: false,
|
|
@@ -843668,7 +843668,7 @@ var LOCAL_STORAGE_FOLDER4 = ".fern-dev";
|
|
|
843668
843668
|
var LOGS_FOLDER_NAME = "logs";
|
|
843669
843669
|
var MAX_LOGS_DIR_SIZE_BYTES = 100 * 1024 * 1024;
|
|
843670
843670
|
function getCliSource() {
|
|
843671
|
-
const version7 = "4.65.3-
|
|
843671
|
+
const version7 = "4.65.3-6-gfc20f801ab1";
|
|
843672
843672
|
return `cli@${version7}`;
|
|
843673
843673
|
}
|
|
843674
843674
|
var DebugLogger = class {
|
|
@@ -854866,7 +854866,7 @@ var LegacyDocsPublisher = class {
|
|
|
854866
854866
|
previewId,
|
|
854867
854867
|
disableTemplates: void 0,
|
|
854868
854868
|
skipUpload,
|
|
854869
|
-
cliVersion: "4.65.3-
|
|
854869
|
+
cliVersion: "4.65.3-6-gfc20f801ab1"
|
|
854870
854870
|
});
|
|
854871
854871
|
if (taskContext.getResult() === TaskResult.Failure) {
|
|
854872
854872
|
return { success: false };
|
|
@@ -875035,6 +875035,9 @@ var DynamicLiteralMapper = class extends WithGeneration {
|
|
|
875035
875035
|
});
|
|
875036
875036
|
}
|
|
875037
875037
|
convertLiteral({ literal: literal3, value, fallbackToDefault }) {
|
|
875038
|
+
if (this.settings.generateLiterals) {
|
|
875039
|
+
return this.csharp.Literal.nop();
|
|
875040
|
+
}
|
|
875038
875041
|
switch (literal3.type) {
|
|
875039
875042
|
case "boolean": {
|
|
875040
875043
|
const bool2 = this.context.getValueAsBoolean({ value });
|
|
@@ -875101,6 +875104,15 @@ var DynamicLiteralMapper = class extends WithGeneration {
|
|
|
875101
875104
|
convertNamed({ named, value, as: as8, fallbackToDefault }) {
|
|
875102
875105
|
switch (named.type) {
|
|
875103
875106
|
case "alias":
|
|
875107
|
+
if (this.settings.generateLiterals && named.typeReference.type === "literal") {
|
|
875108
|
+
return this.csharp.Literal.reference(this.csharp.instantiateClass({
|
|
875109
|
+
classReference: this.csharp.classReference({
|
|
875110
|
+
origin: named.declaration,
|
|
875111
|
+
namespace: this.context.getNamespace(named.declaration.fernFilepath)
|
|
875112
|
+
}),
|
|
875113
|
+
arguments_: []
|
|
875114
|
+
}));
|
|
875115
|
+
}
|
|
875104
875116
|
return this.convert({ typeReference: named.typeReference, value, as: as8, fallbackToDefault });
|
|
875105
875117
|
case "discriminatedUnion":
|
|
875106
875118
|
if (this.settings.shouldGeneratedDiscriminatedUnions) {
|
|
@@ -875609,6 +875621,12 @@ var DynamicTypeMapper = class extends WithGeneration {
|
|
|
875609
875621
|
convertNamed({ named }) {
|
|
875610
875622
|
switch (named.type) {
|
|
875611
875623
|
case "alias":
|
|
875624
|
+
if (this.settings.generateLiterals && named.typeReference.type === "literal") {
|
|
875625
|
+
return this.csharp.classReference({
|
|
875626
|
+
origin: named.declaration,
|
|
875627
|
+
namespace: this.context.getNamespace(named.declaration.fernFilepath)
|
|
875628
|
+
});
|
|
875629
|
+
}
|
|
875612
875630
|
return this.convert({ typeReference: named.typeReference });
|
|
875613
875631
|
case "enum":
|
|
875614
875632
|
case "object":
|
|
@@ -928424,7 +928442,7 @@ var CliContext = class {
|
|
|
928424
928442
|
if (false) {
|
|
928425
928443
|
this.logger.error("CLI_VERSION is not defined");
|
|
928426
928444
|
}
|
|
928427
|
-
return "4.65.3-
|
|
928445
|
+
return "4.65.3-6-gfc20f801ab1";
|
|
928428
928446
|
}
|
|
928429
928447
|
getCliName() {
|
|
928430
928448
|
if (false) {
|
package/package.json
CHANGED