@fern-api/fern-api-dev 5.23.3-761-ga2940802a07 → 5.23.3-764-g07d84856196
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 +6 -78
- package/package.json +1 -1
package/cli.cjs
CHANGED
|
@@ -536242,13 +536242,6 @@ function inferCommonPropertiesFromVariants({ variants, discriminant: discriminan
|
|
|
536242
536242
|
if (firstVariantProps == null) {
|
|
536243
536243
|
return [];
|
|
536244
536244
|
}
|
|
536245
|
-
const inheritedFromSharedParent = getPropertyNamesInheritedFromSharedAllOfRefParents({
|
|
536246
|
-
variants,
|
|
536247
|
-
context: context3,
|
|
536248
|
-
breadcrumbs,
|
|
536249
|
-
source: source2,
|
|
536250
|
-
namespace
|
|
536251
|
-
});
|
|
536252
536245
|
const variantRequiredSets = variants.map((variant) => getAllRequiredPropertyNames({ schema: variant, context: context3, visited: /* @__PURE__ */ new Set() }));
|
|
536253
536246
|
const result = [];
|
|
536254
536247
|
for (const [propertyName, firstSchema] of Object.entries(firstVariantProps)) {
|
|
@@ -536258,9 +536251,6 @@ function inferCommonPropertiesFromVariants({ variants, discriminant: discriminan
|
|
|
536258
536251
|
if (existingPropertyNames.has(propertyName)) {
|
|
536259
536252
|
continue;
|
|
536260
536253
|
}
|
|
536261
|
-
if (inheritedFromSharedParent.has(propertyName)) {
|
|
536262
|
-
continue;
|
|
536263
|
-
}
|
|
536264
536254
|
let presentInAll = true;
|
|
536265
536255
|
for (let i6 = 1; i6 < variantPropertyMaps.length; i6++) {
|
|
536266
536256
|
const map16 = variantPropertyMaps[i6];
|
|
@@ -536312,68 +536302,6 @@ function getAllRequiredPropertyNames({ schema: schema2, context: context3, visit
|
|
|
536312
536302
|
}
|
|
536313
536303
|
return result;
|
|
536314
536304
|
}
|
|
536315
|
-
function getPropertyNamesInheritedFromSharedAllOfRefParents({ variants, context: context3, breadcrumbs, source: source2, namespace }) {
|
|
536316
|
-
if (variants.length === 0) {
|
|
536317
|
-
return /* @__PURE__ */ new Set();
|
|
536318
|
-
}
|
|
536319
|
-
const refsPerVariant = variants.map((variant) => collectTransitiveAllOfRefs({ schema: variant, context: context3, visited: /* @__PURE__ */ new Set() }));
|
|
536320
|
-
const firstSet = refsPerVariant[0];
|
|
536321
|
-
if (firstSet == null || firstSet.size === 0) {
|
|
536322
|
-
return /* @__PURE__ */ new Set();
|
|
536323
|
-
}
|
|
536324
|
-
const inherited = /* @__PURE__ */ new Set();
|
|
536325
|
-
for (const [refKey, refObject] of firstSet) {
|
|
536326
|
-
const sharedAcrossAllVariants = refsPerVariant.every((s5) => s5.has(refKey));
|
|
536327
|
-
if (!sharedAcrossAllVariants) {
|
|
536328
|
-
continue;
|
|
536329
|
-
}
|
|
536330
|
-
const parentProperties = getAllProperties({
|
|
536331
|
-
schema: refObject,
|
|
536332
|
-
context: context3,
|
|
536333
|
-
breadcrumbs,
|
|
536334
|
-
source: source2,
|
|
536335
|
-
namespace
|
|
536336
|
-
});
|
|
536337
|
-
for (const propertyName of Object.keys(parentProperties)) {
|
|
536338
|
-
inherited.add(propertyName);
|
|
536339
|
-
}
|
|
536340
|
-
}
|
|
536341
|
-
return inherited;
|
|
536342
|
-
}
|
|
536343
|
-
function collectTransitiveAllOfRefs({ schema: schema2, context: context3, visited }) {
|
|
536344
|
-
const result = /* @__PURE__ */ new Map();
|
|
536345
|
-
let resolved;
|
|
536346
|
-
if (isReferenceObject(schema2)) {
|
|
536347
|
-
if (visited.has(schema2.$ref)) {
|
|
536348
|
-
return result;
|
|
536349
|
-
}
|
|
536350
|
-
visited.add(schema2.$ref);
|
|
536351
|
-
resolved = context3.resolveSchemaReference(schema2);
|
|
536352
|
-
} else {
|
|
536353
|
-
resolved = schema2;
|
|
536354
|
-
}
|
|
536355
|
-
for (const allOfElement of resolved.allOf ?? []) {
|
|
536356
|
-
if (isReferenceObject(allOfElement)) {
|
|
536357
|
-
if (!result.has(allOfElement.$ref)) {
|
|
536358
|
-
result.set(allOfElement.$ref, allOfElement);
|
|
536359
|
-
}
|
|
536360
|
-
const nested = collectTransitiveAllOfRefs({ schema: allOfElement, context: context3, visited });
|
|
536361
|
-
for (const [k4, v3] of nested) {
|
|
536362
|
-
if (!result.has(k4)) {
|
|
536363
|
-
result.set(k4, v3);
|
|
536364
|
-
}
|
|
536365
|
-
}
|
|
536366
|
-
} else {
|
|
536367
|
-
const nested = collectTransitiveAllOfRefs({ schema: allOfElement, context: context3, visited });
|
|
536368
|
-
for (const [k4, v3] of nested) {
|
|
536369
|
-
if (!result.has(k4)) {
|
|
536370
|
-
result.set(k4, v3);
|
|
536371
|
-
}
|
|
536372
|
-
}
|
|
536373
|
-
}
|
|
536374
|
-
}
|
|
536375
|
-
return result;
|
|
536376
|
-
}
|
|
536377
536305
|
|
|
536378
536306
|
// ../api-importers/openapi/openapi-ir-parser/lib/schema/convertEncoding.js
|
|
536379
536307
|
function convertEncoding(encodingSchema) {
|
|
@@ -628739,7 +628667,7 @@ var AccessTokenPosthogManager = class {
|
|
|
628739
628667
|
properties: {
|
|
628740
628668
|
...event,
|
|
628741
628669
|
...event.properties,
|
|
628742
|
-
version: "5.23.3-
|
|
628670
|
+
version: "5.23.3-764-g07d84856196",
|
|
628743
628671
|
usingAccessToken: true,
|
|
628744
628672
|
...getRunIdProperties()
|
|
628745
628673
|
}
|
|
@@ -628803,7 +628731,7 @@ var UserPosthogManager = class {
|
|
|
628803
628731
|
distinctId: this.userId ?? await this.getPersistedDistinctId(),
|
|
628804
628732
|
event: "CLI",
|
|
628805
628733
|
properties: {
|
|
628806
|
-
version: "5.23.3-
|
|
628734
|
+
version: "5.23.3-764-g07d84856196",
|
|
628807
628735
|
...event,
|
|
628808
628736
|
...event.properties,
|
|
628809
628737
|
usingAccessToken: false,
|
|
@@ -820818,7 +820746,7 @@ var LOCAL_STORAGE_FOLDER4 = ".fern-dev";
|
|
|
820818
820746
|
var LOGS_FOLDER_NAME = "logs";
|
|
820819
820747
|
var MAX_LOGS_DIR_SIZE_BYTES = 100 * 1024 * 1024;
|
|
820820
820748
|
function getCliSource() {
|
|
820821
|
-
const version7 = "5.23.3-
|
|
820749
|
+
const version7 = "5.23.3-764-g07d84856196";
|
|
820822
820750
|
return `cli@${version7}`;
|
|
820823
820751
|
}
|
|
820824
820752
|
var DebugLogger = class {
|
|
@@ -852151,7 +852079,7 @@ var LegacyDocsPublisher = class {
|
|
|
852151
852079
|
previewId,
|
|
852152
852080
|
disableTemplates: void 0,
|
|
852153
852081
|
skipUpload,
|
|
852154
|
-
cliVersion: "5.23.3-
|
|
852082
|
+
cliVersion: "5.23.3-764-g07d84856196",
|
|
852155
852083
|
loginCommand: "fern auth login"
|
|
852156
852084
|
});
|
|
852157
852085
|
if (taskContext.getResult() === TaskResult.Failure) {
|
|
@@ -917537,7 +917465,7 @@ function getAutomationContextFromEnv() {
|
|
|
917537
917465
|
config_branch: process.env.FERN_CONFIG_BRANCH,
|
|
917538
917466
|
config_pr_number: process.env.FERN_CONFIG_PR_NUMBER,
|
|
917539
917467
|
trigger: process.env.GITHUB_EVENT_NAME,
|
|
917540
|
-
cli_version: "5.23.3-
|
|
917468
|
+
cli_version: "5.23.3-764-g07d84856196"
|
|
917541
917469
|
};
|
|
917542
917470
|
}
|
|
917543
917471
|
function isAutomationMode() {
|
|
@@ -918363,7 +918291,7 @@ var CliContext = class _CliContext {
|
|
|
918363
918291
|
if (false) {
|
|
918364
918292
|
this.logger.error("CLI_VERSION is not defined");
|
|
918365
918293
|
}
|
|
918366
|
-
return "5.23.3-
|
|
918294
|
+
return "5.23.3-764-g07d84856196";
|
|
918367
918295
|
}
|
|
918368
918296
|
getCliName() {
|
|
918369
918297
|
if (false) {
|
package/package.json
CHANGED