@fern-api/fern-api-dev 5.23.3-808-gfe9350f87ea → 5.23.3-810-g0a38380a750
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 +30 -8
- package/package.json +1 -1
package/cli.cjs
CHANGED
|
@@ -685536,7 +685536,7 @@ var AccessTokenPosthogManager = class {
|
|
|
685536
685536
|
properties: {
|
|
685537
685537
|
...event,
|
|
685538
685538
|
...event.properties,
|
|
685539
|
-
version: "5.23.3-
|
|
685539
|
+
version: "5.23.3-810-g0a38380a750",
|
|
685540
685540
|
usingAccessToken: true,
|
|
685541
685541
|
...getRunIdProperties()
|
|
685542
685542
|
}
|
|
@@ -685602,7 +685602,7 @@ var UserPosthogManager = class {
|
|
|
685602
685602
|
distinctId: this.userId ?? await this.getPersistedDistinctId(),
|
|
685603
685603
|
event: "CLI",
|
|
685604
685604
|
properties: {
|
|
685605
|
-
version: "5.23.3-
|
|
685605
|
+
version: "5.23.3-810-g0a38380a750",
|
|
685606
685606
|
...event,
|
|
685607
685607
|
...event.properties,
|
|
685608
685608
|
usingAccessToken: false,
|
|
@@ -866664,7 +866664,7 @@ var LOCAL_STORAGE_FOLDER4 = ".fern-dev";
|
|
|
866664
866664
|
var LOGS_FOLDER_NAME = "logs";
|
|
866665
866665
|
var MAX_LOGS_DIR_SIZE_BYTES = 100 * 1024 * 1024;
|
|
866666
866666
|
function getCliSource() {
|
|
866667
|
-
const version7 = "5.23.3-
|
|
866667
|
+
const version7 = "5.23.3-810-g0a38380a750";
|
|
866668
866668
|
return `cli@${version7}`;
|
|
866669
866669
|
}
|
|
866670
866670
|
var DebugLogger = class {
|
|
@@ -898848,7 +898848,7 @@ var LegacyDocsPublisher = class {
|
|
|
898848
898848
|
previewId,
|
|
898849
898849
|
disableTemplates: void 0,
|
|
898850
898850
|
skipUpload,
|
|
898851
|
-
cliVersion: "5.23.3-
|
|
898851
|
+
cliVersion: "5.23.3-810-g0a38380a750",
|
|
898852
898852
|
loginCommand: "fern auth login"
|
|
898853
898853
|
});
|
|
898854
898854
|
if (taskContext.getResult() === TaskResult.Failure) {
|
|
@@ -927071,6 +927071,9 @@ var FilePropertyMapper3 = class {
|
|
|
927071
927071
|
}
|
|
927072
927072
|
getSingleFileProperty({ property: property24, record: record23 }) {
|
|
927073
927073
|
const fileValue = this.context.getSingleFileValue({ property: property24, record: record23 });
|
|
927074
|
+
if (this.context.shouldInlineFileProperties()) {
|
|
927075
|
+
return this.context.getJavaIoFileFromString(fileValue ?? "path/to/file");
|
|
927076
|
+
}
|
|
927074
927077
|
if (fileValue == null) {
|
|
927075
927078
|
return java_exports.TypeLiteral.nop();
|
|
927076
927079
|
}
|
|
@@ -927078,6 +927081,10 @@ var FilePropertyMapper3 = class {
|
|
|
927078
927081
|
}
|
|
927079
927082
|
getArrayFileProperty({ property: property24, record: record23 }) {
|
|
927080
927083
|
const fileValues = this.context.getFileArrayValues({ property: property24, record: record23 });
|
|
927084
|
+
if (this.context.shouldInlineFileProperties()) {
|
|
927085
|
+
const fileValue = fileValues?.[0] ?? "path/to/file";
|
|
927086
|
+
return this.context.getJavaIoFileFromString(fileValue);
|
|
927087
|
+
}
|
|
927081
927088
|
if (fileValues == null) {
|
|
927082
927089
|
return java_exports.TypeLiteral.nop();
|
|
927083
927090
|
}
|
|
@@ -927233,7 +927240,7 @@ var DynamicSnippetsGeneratorContext3 = class _DynamicSnippetsGeneratorContext ex
|
|
|
927233
927240
|
return java_exports.TypeLiteral.reference(java_exports.codeblock((writer2) => {
|
|
927234
927241
|
writer2.write("new ");
|
|
927235
927242
|
writer2.writeNode(this.getFileStreamClassReference());
|
|
927236
|
-
writer2.write("(");
|
|
927243
|
+
writer2.write("(new ");
|
|
927237
927244
|
writer2.writeNode(this.getByteArrayInputStreamClassReference());
|
|
927238
927245
|
writer2.write("(");
|
|
927239
927246
|
writer2.writeNode(java_exports.TypeLiteral.string(content5));
|
|
@@ -927242,6 +927249,21 @@ var DynamicSnippetsGeneratorContext3 = class _DynamicSnippetsGeneratorContext ex
|
|
|
927242
927249
|
writer2.write(".UTF_8)))");
|
|
927243
927250
|
}));
|
|
927244
927251
|
}
|
|
927252
|
+
getJavaIoFileFromString(content5) {
|
|
927253
|
+
return java_exports.TypeLiteral.reference(java_exports.codeblock((writer2) => {
|
|
927254
|
+
writer2.write("new ");
|
|
927255
|
+
writer2.writeNode(this.getJavaIoFileClassReference());
|
|
927256
|
+
writer2.write("(");
|
|
927257
|
+
writer2.writeNode(java_exports.TypeLiteral.string(content5));
|
|
927258
|
+
writer2.write(")");
|
|
927259
|
+
}));
|
|
927260
|
+
}
|
|
927261
|
+
getJavaIoFileClassReference() {
|
|
927262
|
+
return java_exports.classReference({
|
|
927263
|
+
name: "File",
|
|
927264
|
+
packageName: "java.io"
|
|
927265
|
+
});
|
|
927266
|
+
}
|
|
927245
927267
|
getFileStreamClassReference() {
|
|
927246
927268
|
return java_exports.classReference({
|
|
927247
927269
|
name: "FileStream",
|
|
@@ -928084,7 +928106,7 @@ var EndpointSnippetGenerator3 = class {
|
|
|
928084
928106
|
}
|
|
928085
928107
|
getFileUploadRequestBodyBuilderParameters({ filePropertyInfo }) {
|
|
928086
928108
|
if (this.context.shouldInlineFileProperties()) {
|
|
928087
|
-
return [...filePropertyInfo.
|
|
928109
|
+
return [...filePropertyInfo.bodyPropertyFields, ...filePropertyInfo.fileFields];
|
|
928088
928110
|
}
|
|
928089
928111
|
return filePropertyInfo.bodyPropertyFields;
|
|
928090
928112
|
}
|
|
@@ -964507,7 +964529,7 @@ function getAutomationContextFromEnv() {
|
|
|
964507
964529
|
config_branch: process.env.FERN_CONFIG_BRANCH,
|
|
964508
964530
|
config_pr_number: process.env.FERN_CONFIG_PR_NUMBER,
|
|
964509
964531
|
trigger: process.env.GITHUB_EVENT_NAME,
|
|
964510
|
-
cli_version: "5.23.3-
|
|
964532
|
+
cli_version: "5.23.3-810-g0a38380a750"
|
|
964511
964533
|
};
|
|
964512
964534
|
}
|
|
964513
964535
|
function isAutomationMode() {
|
|
@@ -965339,7 +965361,7 @@ var CliContext = class _CliContext {
|
|
|
965339
965361
|
if (false) {
|
|
965340
965362
|
this.logger.error("CLI_VERSION is not defined");
|
|
965341
965363
|
}
|
|
965342
|
-
return "5.23.3-
|
|
965364
|
+
return "5.23.3-810-g0a38380a750";
|
|
965343
965365
|
}
|
|
965344
965366
|
getCliName() {
|
|
965345
965367
|
if (false) {
|
package/package.json
CHANGED