@fern-api/fern-api-dev 4.107.2-1-g488c64ae1ff → 4.107.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 +5 -52
- package/package.json +1 -1
package/cli.cjs
CHANGED
|
@@ -599518,9 +599518,6 @@ async function parseOpenAPI({ absolutePathToOpenAPI, absolutePathToOpenAPIOverri
|
|
|
599518
599518
|
`Continuing without full reference resolution.`
|
|
599519
599519
|
].join("\n"));
|
|
599520
599520
|
}
|
|
599521
|
-
if (circularRefs.length > 0) {
|
|
599522
|
-
breakCircularRefCycles(document4, circularRefs);
|
|
599523
|
-
}
|
|
599524
599521
|
return document4;
|
|
599525
599522
|
}
|
|
599526
599523
|
throw error50;
|
|
@@ -599534,50 +599531,6 @@ async function readAndParseFile2(absoluteFilePath) {
|
|
|
599534
599531
|
}
|
|
599535
599532
|
return jsYaml.load(contents);
|
|
599536
599533
|
}
|
|
599537
|
-
function breakCircularRefCycles(document4, circularRefs) {
|
|
599538
|
-
if (typeof document4 !== "object" || document4 == null) {
|
|
599539
|
-
return;
|
|
599540
|
-
}
|
|
599541
|
-
const backEdgeRefs = /* @__PURE__ */ new Set();
|
|
599542
|
-
for (const info of circularRefs) {
|
|
599543
|
-
if (info.ref.startsWith("#/")) {
|
|
599544
|
-
backEdgeRefs.add(info.ref);
|
|
599545
|
-
}
|
|
599546
|
-
}
|
|
599547
|
-
replaceCircularRefs(document4, backEdgeRefs);
|
|
599548
|
-
}
|
|
599549
|
-
function replaceCircularRefs(obj, targets2) {
|
|
599550
|
-
if (typeof obj !== "object" || obj == null) {
|
|
599551
|
-
return;
|
|
599552
|
-
}
|
|
599553
|
-
if (Array.isArray(obj)) {
|
|
599554
|
-
for (let i9 = 0; i9 < obj.length; i9++) {
|
|
599555
|
-
const item = obj[i9];
|
|
599556
|
-
if (isCircularRefObject(item, targets2)) {
|
|
599557
|
-
obj[i9] = { type: "object", "x-fern-circular-ref": true };
|
|
599558
|
-
} else {
|
|
599559
|
-
replaceCircularRefs(item, targets2);
|
|
599560
|
-
}
|
|
599561
|
-
}
|
|
599562
|
-
return;
|
|
599563
|
-
}
|
|
599564
|
-
const record22 = obj;
|
|
599565
|
-
for (const key2 of Object.keys(record22)) {
|
|
599566
|
-
const value2 = record22[key2];
|
|
599567
|
-
if (isCircularRefObject(value2, targets2)) {
|
|
599568
|
-
record22[key2] = { type: "object", "x-fern-circular-ref": true };
|
|
599569
|
-
} else {
|
|
599570
|
-
replaceCircularRefs(value2, targets2);
|
|
599571
|
-
}
|
|
599572
|
-
}
|
|
599573
|
-
}
|
|
599574
|
-
function isCircularRefObject(value2, targets2) {
|
|
599575
|
-
if (typeof value2 !== "object" || value2 == null || Array.isArray(value2)) {
|
|
599576
|
-
return false;
|
|
599577
|
-
}
|
|
599578
|
-
const record22 = value2;
|
|
599579
|
-
return typeof record22.$ref === "string" && targets2.has(record22.$ref);
|
|
599580
|
-
}
|
|
599581
599534
|
|
|
599582
599535
|
// ../workspace/lazy-fern-workspace/lib/utils/resolveDescriptionMarkdownRefs.js
|
|
599583
599536
|
init_lib4();
|
|
@@ -621372,7 +621325,7 @@ var AccessTokenPosthogManager = class {
|
|
|
621372
621325
|
properties: {
|
|
621373
621326
|
...event,
|
|
621374
621327
|
...event.properties,
|
|
621375
|
-
version: "4.107.2
|
|
621328
|
+
version: "4.107.2",
|
|
621376
621329
|
usingAccessToken: true
|
|
621377
621330
|
}
|
|
621378
621331
|
});
|
|
@@ -621426,7 +621379,7 @@ var UserPosthogManager = class {
|
|
|
621426
621379
|
distinctId: this.userId ?? await this.getPersistedDistinctId(),
|
|
621427
621380
|
event: "CLI",
|
|
621428
621381
|
properties: {
|
|
621429
|
-
version: "4.107.2
|
|
621382
|
+
version: "4.107.2",
|
|
621430
621383
|
...event,
|
|
621431
621384
|
...event.properties,
|
|
621432
621385
|
usingAccessToken: false,
|
|
@@ -833072,7 +833025,7 @@ var LOCAL_STORAGE_FOLDER4 = ".fern-dev";
|
|
|
833072
833025
|
var LOGS_FOLDER_NAME = "logs";
|
|
833073
833026
|
var MAX_LOGS_DIR_SIZE_BYTES = 100 * 1024 * 1024;
|
|
833074
833027
|
function getCliSource() {
|
|
833075
|
-
const version7 = "4.107.2
|
|
833028
|
+
const version7 = "4.107.2";
|
|
833076
833029
|
return `cli@${version7}`;
|
|
833077
833030
|
}
|
|
833078
833031
|
var DebugLogger = class {
|
|
@@ -845490,7 +845443,7 @@ var LegacyDocsPublisher = class {
|
|
|
845490
845443
|
previewId,
|
|
845491
845444
|
disableTemplates: void 0,
|
|
845492
845445
|
skipUpload,
|
|
845493
|
-
cliVersion: "4.107.2
|
|
845446
|
+
cliVersion: "4.107.2",
|
|
845494
845447
|
loginCommand: "fern auth login"
|
|
845495
845448
|
});
|
|
845496
845449
|
if (taskContext.getResult() === TaskResult.Failure) {
|
|
@@ -919725,7 +919678,7 @@ var CliContext = class _CliContext {
|
|
|
919725
919678
|
if (false) {
|
|
919726
919679
|
this.logger.error("CLI_VERSION is not defined");
|
|
919727
919680
|
}
|
|
919728
|
-
return "4.107.2
|
|
919681
|
+
return "4.107.2";
|
|
919729
919682
|
}
|
|
919730
919683
|
getCliName() {
|
|
919731
919684
|
if (false) {
|
package/package.json
CHANGED