@fern-api/fern-api-dev 5.89.1 → 5.89.2
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 -7
- package/package.json +1 -1
package/cli.cjs
CHANGED
|
@@ -155498,11 +155498,17 @@ function getSiblingExampleFromRef(schema) {
|
|
|
155498
155498
|
}
|
|
155499
155499
|
return void 0;
|
|
155500
155500
|
}
|
|
155501
|
+
function schemaHasNullBranch(subschemas) {
|
|
155502
|
+
if (subschemas == null) {
|
|
155503
|
+
return false;
|
|
155504
|
+
}
|
|
155505
|
+
return subschemas.some((subschema) => !isReferenceObject(subschema) && subschema.type === "null");
|
|
155506
|
+
}
|
|
155501
155507
|
function convertReferenceObject(schema, wrapAsOptional, wrapAsNullable, context3, breadcrumbs, encoding, source2, namespace) {
|
|
155502
155508
|
let result = schema.$ref.includes("properties") ? convertSchemaObject(context3.resolveSchemaReference(schema), wrapAsOptional, wrapAsNullable, context3, breadcrumbs, encoding, source2, namespace, /* @__PURE__ */ new Set()) : SchemaWithExample.reference(convertToReferencedSchema(schema, breadcrumbs, source2, context3.options.preserveSchemaIds, context3));
|
|
155503
155509
|
if (wrapAsNullable === false) {
|
|
155504
155510
|
const referencedSchema = context3.resolveSchemaReference(schema);
|
|
155505
|
-
if (referencedSchema.nullable === true || Array.isArray(referencedSchema.type) && referencedSchema.type.length >= 2 && referencedSchema.type.includes("null")) {
|
|
155511
|
+
if (referencedSchema.nullable === true || Array.isArray(referencedSchema.type) && referencedSchema.type.length >= 2 && referencedSchema.type.includes("null") || schemaHasNullBranch(referencedSchema.anyOf) || schemaHasNullBranch(referencedSchema.oneOf)) {
|
|
155506
155512
|
wrapAsNullable = true;
|
|
155507
155513
|
}
|
|
155508
155514
|
}
|
|
@@ -694311,7 +694317,7 @@ var AccessTokenPosthogManager = class {
|
|
|
694311
694317
|
properties: {
|
|
694312
694318
|
...event,
|
|
694313
694319
|
...event.properties,
|
|
694314
|
-
version: "5.89.
|
|
694320
|
+
version: "5.89.2",
|
|
694315
694321
|
usingAccessToken: true,
|
|
694316
694322
|
...getRunIdProperties()
|
|
694317
694323
|
}
|
|
@@ -694377,7 +694383,7 @@ var UserPosthogManager = class {
|
|
|
694377
694383
|
distinctId: this.userId ?? await this.getPersistedDistinctId(),
|
|
694378
694384
|
event: "CLI",
|
|
694379
694385
|
properties: {
|
|
694380
|
-
version: "5.89.
|
|
694386
|
+
version: "5.89.2",
|
|
694381
694387
|
...event,
|
|
694382
694388
|
...event.properties,
|
|
694383
694389
|
usingAccessToken: false,
|
|
@@ -875507,7 +875513,7 @@ var LOCAL_STORAGE_FOLDER4 = ".fern-dev";
|
|
|
875507
875513
|
var LOGS_FOLDER_NAME = "logs";
|
|
875508
875514
|
var MAX_LOGS_DIR_SIZE_BYTES = 100 * 1024 * 1024;
|
|
875509
875515
|
function getCliSource() {
|
|
875510
|
-
const version7 = "5.89.
|
|
875516
|
+
const version7 = "5.89.2";
|
|
875511
875517
|
return `cli@${version7}`;
|
|
875512
875518
|
}
|
|
875513
875519
|
var DebugLogger = class {
|
|
@@ -908217,7 +908223,7 @@ var LegacyDocsPublisher = class {
|
|
|
908217
908223
|
previewId,
|
|
908218
908224
|
disableTemplates: void 0,
|
|
908219
908225
|
skipUpload,
|
|
908220
|
-
cliVersion: "5.89.
|
|
908226
|
+
cliVersion: "5.89.2",
|
|
908221
908227
|
loginCommand: "fern auth login"
|
|
908222
908228
|
});
|
|
908223
908229
|
if (taskContext.getResult() === TaskResult.Failure) {
|
|
@@ -975092,7 +975098,7 @@ function getAutomationContextFromEnv() {
|
|
|
975092
975098
|
config_branch: process.env.FERN_CONFIG_BRANCH,
|
|
975093
975099
|
config_pr_number: process.env.FERN_CONFIG_PR_NUMBER,
|
|
975094
975100
|
trigger: process.env.GITHUB_EVENT_NAME,
|
|
975095
|
-
cli_version: "5.89.
|
|
975101
|
+
cli_version: "5.89.2"
|
|
975096
975102
|
};
|
|
975097
975103
|
}
|
|
975098
975104
|
function isAutomationMode() {
|
|
@@ -975924,7 +975930,7 @@ var CliContext = class _CliContext {
|
|
|
975924
975930
|
if (false) {
|
|
975925
975931
|
this.logger.error("CLI_VERSION is not defined");
|
|
975926
975932
|
}
|
|
975927
|
-
return "5.89.
|
|
975933
|
+
return "5.89.2";
|
|
975928
975934
|
}
|
|
975929
975935
|
getCliName() {
|
|
975930
975936
|
if (false) {
|
package/package.json
CHANGED