@fern-api/fern-api-dev 4.63.1-1-g1933b2aa412 → 4.63.1-2-g7eec44a362b
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 +38 -6
- package/package.json +1 -1
package/cli.cjs
CHANGED
|
@@ -603121,7 +603121,7 @@ var AccessTokenPosthogManager = class {
|
|
|
603121
603121
|
properties: {
|
|
603122
603122
|
...event,
|
|
603123
603123
|
...event.properties,
|
|
603124
|
-
version: "4.63.1-
|
|
603124
|
+
version: "4.63.1-2-g7eec44a362b",
|
|
603125
603125
|
usingAccessToken: true
|
|
603126
603126
|
}
|
|
603127
603127
|
});
|
|
@@ -603172,7 +603172,7 @@ var UserPosthogManager = class {
|
|
|
603172
603172
|
distinctId: this.userId ?? await this.getPersistedDistinctId(),
|
|
603173
603173
|
event: "CLI",
|
|
603174
603174
|
properties: {
|
|
603175
|
-
version: "4.63.1-
|
|
603175
|
+
version: "4.63.1-2-g7eec44a362b",
|
|
603176
603176
|
...event,
|
|
603177
603177
|
...event.properties,
|
|
603178
603178
|
usingAccessToken: false,
|
|
@@ -839765,7 +839765,7 @@ var import_path54 = __toESM(require("path"), 1);
|
|
|
839765
839765
|
var LOCAL_STORAGE_FOLDER4 = ".fern-dev";
|
|
839766
839766
|
var LOGS_FOLDER_NAME = "logs";
|
|
839767
839767
|
function getCliSource() {
|
|
839768
|
-
const version7 = "4.63.1-
|
|
839768
|
+
const version7 = "4.63.1-2-g7eec44a362b";
|
|
839769
839769
|
return `cli@${version7}`;
|
|
839770
839770
|
}
|
|
839771
839771
|
var DebugLogger = class {
|
|
@@ -850916,7 +850916,7 @@ var LegacyDocsPublisher = class {
|
|
|
850916
850916
|
previewId,
|
|
850917
850917
|
disableTemplates: void 0,
|
|
850918
850918
|
skipUpload,
|
|
850919
|
-
cliVersion: "4.63.1-
|
|
850919
|
+
cliVersion: "4.63.1-2-g7eec44a362b"
|
|
850920
850920
|
});
|
|
850921
850921
|
if (taskContext.getResult() === TaskResult.Failure) {
|
|
850922
850922
|
return { success: false };
|
|
@@ -877727,9 +877727,10 @@ var DynamicTypeLiteralMapper = class {
|
|
|
877727
877727
|
}
|
|
877728
877728
|
}
|
|
877729
877729
|
convertObject({ object_, value, as: as8, inUndiscriminatedUnion }) {
|
|
877730
|
+
const valueRecord = this.context.getRecord(value) ?? {};
|
|
877730
877731
|
const properties7 = this.context.associateByWireValue({
|
|
877731
877732
|
parameters: object_.properties,
|
|
877732
|
-
values:
|
|
877733
|
+
values: valueRecord
|
|
877733
877734
|
});
|
|
877734
877735
|
const existingWireValues = new Set(properties7.map((p10) => p10.name.wireValue));
|
|
877735
877736
|
for (const param of object_.properties) {
|
|
@@ -877748,8 +877749,10 @@ var DynamicTypeLiteralMapper = class {
|
|
|
877748
877749
|
}
|
|
877749
877750
|
}
|
|
877750
877751
|
const paramOrderMap = /* @__PURE__ */ new Map();
|
|
877752
|
+
const declaredWireValues = /* @__PURE__ */ new Set();
|
|
877751
877753
|
object_.properties.forEach((param, index3) => {
|
|
877752
877754
|
paramOrderMap.set(param.name.wireValue, index3);
|
|
877755
|
+
declaredWireValues.add(param.name.wireValue);
|
|
877753
877756
|
});
|
|
877754
877757
|
properties7.sort((a10, b19) => (paramOrderMap.get(a10.name.wireValue) ?? 0) - (paramOrderMap.get(b19.name.wireValue) ?? 0));
|
|
877755
877758
|
const filteredProperties = as8 === "request" ? properties7.filter((property23) => !this.context.isDirectLiteral(property23.typeReference)) : properties7;
|
|
@@ -877777,6 +877780,17 @@ var DynamicTypeLiteralMapper = class {
|
|
|
877777
877780
|
this.context.errors.unscope();
|
|
877778
877781
|
}
|
|
877779
877782
|
}
|
|
877783
|
+
for (const [key2, val] of Object.entries(valueRecord)) {
|
|
877784
|
+
if (!declaredWireValues.has(key2) && val !== void 0) {
|
|
877785
|
+
const rawValue = this.convertToRawJavaLiteral(val);
|
|
877786
|
+
if (rawValue != null) {
|
|
877787
|
+
builderParameters.push({
|
|
877788
|
+
name: "additionalProperty",
|
|
877789
|
+
value: java_exports.TypeLiteral.raw(`"${this.escapeJavaString(key2)}", ${rawValue}`)
|
|
877790
|
+
});
|
|
877791
|
+
}
|
|
877792
|
+
}
|
|
877793
|
+
}
|
|
877780
877794
|
return java_exports.TypeLiteral.builder({
|
|
877781
877795
|
classReference: this.context.getJavaClassReferenceFromDeclaration({
|
|
877782
877796
|
declaration: object_.declaration
|
|
@@ -877784,6 +877798,24 @@ var DynamicTypeLiteralMapper = class {
|
|
|
877784
877798
|
parameters: builderParameters
|
|
877785
877799
|
});
|
|
877786
877800
|
}
|
|
877801
|
+
convertToRawJavaLiteral(value) {
|
|
877802
|
+
if (typeof value === "string") {
|
|
877803
|
+
return `"${this.escapeJavaString(value)}"`;
|
|
877804
|
+
}
|
|
877805
|
+
if (typeof value === "number") {
|
|
877806
|
+
return value.toString();
|
|
877807
|
+
}
|
|
877808
|
+
if (typeof value === "boolean") {
|
|
877809
|
+
return value.toString();
|
|
877810
|
+
}
|
|
877811
|
+
if (value === null) {
|
|
877812
|
+
return "null";
|
|
877813
|
+
}
|
|
877814
|
+
return null;
|
|
877815
|
+
}
|
|
877816
|
+
escapeJavaString(s11) {
|
|
877817
|
+
return s11.replace(/\\/g, "\\\\").replace(/"/g, '\\"').replace(/\n/g, "\\n").replace(/\t/g, "\\t").replace(/\r/g, "\\r");
|
|
877818
|
+
}
|
|
877787
877819
|
getDefaultValueForTypeReference(typeReference2) {
|
|
877788
877820
|
switch (typeReference2.type) {
|
|
877789
877821
|
case "primitive":
|
|
@@ -924262,7 +924294,7 @@ var CliContext = class {
|
|
|
924262
924294
|
if (false) {
|
|
924263
924295
|
this.logger.error("CLI_VERSION is not defined");
|
|
924264
924296
|
}
|
|
924265
|
-
return "4.63.1-
|
|
924297
|
+
return "4.63.1-2-g7eec44a362b";
|
|
924266
924298
|
}
|
|
924267
924299
|
getCliName() {
|
|
924268
924300
|
if (false) {
|
package/package.json
CHANGED