@fern-api/fern-api-dev 5.44.7 → 5.44.9
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 +46 -11
- package/package.json +1 -1
package/cli.cjs
CHANGED
|
@@ -649382,10 +649382,10 @@ var ExampleConverter = class _ExampleConverter extends AbstractConverter {
|
|
|
649382
649382
|
*
|
|
649383
649383
|
* Precedence: the override's fields win; the base's fields fill in anything missing.
|
|
649384
649384
|
*/
|
|
649385
|
-
mergeAllOfProperties(resolvedSchema) {
|
|
649385
|
+
mergeAllOfProperties(resolvedSchema, visited = /* @__PURE__ */ new Set(), depth = 0) {
|
|
649386
649386
|
const directProps = resolvedSchema.properties ?? {};
|
|
649387
649387
|
const directRequired = resolvedSchema.required ?? [];
|
|
649388
|
-
if (resolvedSchema.allOf == null || resolvedSchema.allOf.length === 0) {
|
|
649388
|
+
if (depth > this.MAX_DEPTH || resolvedSchema.allOf == null || resolvedSchema.allOf.length === 0) {
|
|
649389
649389
|
return { mergedProperties: directProps, mergedRequired: directRequired };
|
|
649390
649390
|
}
|
|
649391
649391
|
const baseProps = {};
|
|
@@ -649399,6 +649399,31 @@ var ExampleConverter = class _ExampleConverter extends AbstractConverter {
|
|
|
649399
649399
|
if (resolved == null) {
|
|
649400
649400
|
continue;
|
|
649401
649401
|
}
|
|
649402
|
+
const refKey = this.context.isReferenceObject(subSchema) ? subSchema.$ref : void 0;
|
|
649403
|
+
if (refKey != null && visited.has(refKey)) {
|
|
649404
|
+
continue;
|
|
649405
|
+
}
|
|
649406
|
+
if (resolved.allOf != null && resolved.allOf.length > 0) {
|
|
649407
|
+
const childVisited = new Set(visited);
|
|
649408
|
+
if (refKey != null) {
|
|
649409
|
+
childVisited.add(refKey);
|
|
649410
|
+
}
|
|
649411
|
+
const nested = this.mergeAllOfProperties(resolved, childVisited, depth + 1);
|
|
649412
|
+
for (const req of nested.mergedRequired) {
|
|
649413
|
+
baseRequired.add(req);
|
|
649414
|
+
}
|
|
649415
|
+
for (const [key2, value2] of Object.entries(nested.mergedProperties)) {
|
|
649416
|
+
if (typeof value2 === "object" && value2 !== null) {
|
|
649417
|
+
const existing = baseProps[key2];
|
|
649418
|
+
if (existing != null && isInlineSchema(existing) && isInlineSchema(value2)) {
|
|
649419
|
+
baseProps[key2] = { ...existing, ...value2 };
|
|
649420
|
+
} else {
|
|
649421
|
+
baseProps[key2] = value2;
|
|
649422
|
+
}
|
|
649423
|
+
}
|
|
649424
|
+
}
|
|
649425
|
+
continue;
|
|
649426
|
+
}
|
|
649402
649427
|
if (resolved.required != null) {
|
|
649403
649428
|
for (const req of resolved.required) {
|
|
649404
649429
|
baseRequired.add(req);
|
|
@@ -669537,7 +669562,7 @@ var AccessTokenPosthogManager = class {
|
|
|
669537
669562
|
properties: {
|
|
669538
669563
|
...event,
|
|
669539
669564
|
...event.properties,
|
|
669540
|
-
version: "5.44.
|
|
669565
|
+
version: "5.44.9",
|
|
669541
669566
|
usingAccessToken: true,
|
|
669542
669567
|
...getRunIdProperties()
|
|
669543
669568
|
}
|
|
@@ -669601,7 +669626,7 @@ var UserPosthogManager = class {
|
|
|
669601
669626
|
distinctId: this.userId ?? await this.getPersistedDistinctId(),
|
|
669602
669627
|
event: "CLI",
|
|
669603
669628
|
properties: {
|
|
669604
|
-
version: "5.44.
|
|
669629
|
+
version: "5.44.9",
|
|
669605
669630
|
...event,
|
|
669606
669631
|
...event.properties,
|
|
669607
669632
|
usingAccessToken: false,
|
|
@@ -856955,6 +856980,16 @@ function createDocsConfigFileAstVisitorForRules({ relativeFilepath, allRulesWith
|
|
|
856955
856980
|
// ../yaml/docs-validator/lib/rules/no-non-component-refs/no-non-component-refs.js
|
|
856956
856981
|
init_lib8();
|
|
856957
856982
|
var import_promises84 = require("fs/promises");
|
|
856983
|
+
|
|
856984
|
+
// ../yaml/docs-validator/lib/rules/isInYamlComment.js
|
|
856985
|
+
function isInYamlComment(contents, matchIndex) {
|
|
856986
|
+
const lineStart = contents.lastIndexOf("\n", matchIndex - 1) + 1;
|
|
856987
|
+
const textBeforeMatch = contents.substring(lineStart, matchIndex);
|
|
856988
|
+
const withoutQuotes = textBeforeMatch.replace(/"[^"]*"|'[^']*'/g, "");
|
|
856989
|
+
return withoutQuotes.includes("#");
|
|
856990
|
+
}
|
|
856991
|
+
|
|
856992
|
+
// ../yaml/docs-validator/lib/rules/no-non-component-refs/no-non-component-refs.js
|
|
856958
856993
|
var NoNonComponentRefsRule = {
|
|
856959
856994
|
name: "no-non-component-refs",
|
|
856960
856995
|
create: ({ ossWorkspaces, logger: logger4, workspace: docsWorkspace }) => {
|
|
@@ -856982,7 +857017,7 @@ var NoNonComponentRefsRule = {
|
|
|
856982
857017
|
const refMatches = contents.matchAll(/["']?\$ref["']?\s*:\s*["']([^"']+)["']/g);
|
|
856983
857018
|
for (const match3 of refMatches) {
|
|
856984
857019
|
const ref2 = match3[1];
|
|
856985
|
-
if (!ref2) {
|
|
857020
|
+
if (!ref2 || match3.index != null && isInYamlComment(contents, match3.index)) {
|
|
856986
857021
|
continue;
|
|
856987
857022
|
}
|
|
856988
857023
|
if (ref2.startsWith("#/") && !ref2.startsWith("#/components/")) {
|
|
@@ -857238,7 +857273,7 @@ var ValidLocalReferencesRule = {
|
|
|
857238
857273
|
const allRefs = /* @__PURE__ */ new Set();
|
|
857239
857274
|
for (const match3 of refMatches) {
|
|
857240
857275
|
const ref2 = match3[1];
|
|
857241
|
-
if (ref2 && ref2.startsWith("#/")) {
|
|
857276
|
+
if (ref2 && ref2.startsWith("#/") && match3.index != null && !isInYamlComment(contents, match3.index)) {
|
|
857242
857277
|
allRefs.add(ref2);
|
|
857243
857278
|
}
|
|
857244
857279
|
}
|
|
@@ -861287,7 +861322,7 @@ var LOCAL_STORAGE_FOLDER4 = ".fern-dev";
|
|
|
861287
861322
|
var LOGS_FOLDER_NAME = "logs";
|
|
861288
861323
|
var MAX_LOGS_DIR_SIZE_BYTES = 100 * 1024 * 1024;
|
|
861289
861324
|
function getCliSource() {
|
|
861290
|
-
const version7 = "5.44.
|
|
861325
|
+
const version7 = "5.44.9";
|
|
861291
861326
|
return `cli@${version7}`;
|
|
861292
861327
|
}
|
|
861293
861328
|
var DebugLogger = class {
|
|
@@ -892379,7 +892414,7 @@ var LegacyDocsPublisher = class {
|
|
|
892379
892414
|
previewId,
|
|
892380
892415
|
disableTemplates: void 0,
|
|
892381
892416
|
skipUpload,
|
|
892382
|
-
cliVersion: "5.44.
|
|
892417
|
+
cliVersion: "5.44.9",
|
|
892383
892418
|
loginCommand: "fern auth login"
|
|
892384
892419
|
});
|
|
892385
892420
|
if (taskContext.getResult() === TaskResult.Failure) {
|
|
@@ -921933,7 +921968,7 @@ var ClassReference3 = class extends AstNode4 {
|
|
|
921933
921968
|
}
|
|
921934
921969
|
write(writer2) {
|
|
921935
921970
|
writer2.addReference(this);
|
|
921936
|
-
const refString = this.fullyQualified ? `\\${this.namespace}\\${this.name}` : this.name;
|
|
921971
|
+
const refString = this.fullyQualified ? this.namespace === GLOBAL_NAMESPACE ? `\\${this.name}` : `\\${this.namespace}\\${this.name}` : this.name;
|
|
921937
921972
|
writer2.write(`${refString}`);
|
|
921938
921973
|
}
|
|
921939
921974
|
};
|
|
@@ -957466,7 +957501,7 @@ function getAutomationContextFromEnv() {
|
|
|
957466
957501
|
config_branch: process.env.FERN_CONFIG_BRANCH,
|
|
957467
957502
|
config_pr_number: process.env.FERN_CONFIG_PR_NUMBER,
|
|
957468
957503
|
trigger: process.env.GITHUB_EVENT_NAME,
|
|
957469
|
-
cli_version: "5.44.
|
|
957504
|
+
cli_version: "5.44.9"
|
|
957470
957505
|
};
|
|
957471
957506
|
}
|
|
957472
957507
|
function isAutomationMode() {
|
|
@@ -958292,7 +958327,7 @@ var CliContext = class _CliContext {
|
|
|
958292
958327
|
if (false) {
|
|
958293
958328
|
this.logger.error("CLI_VERSION is not defined");
|
|
958294
958329
|
}
|
|
958295
|
-
return "5.44.
|
|
958330
|
+
return "5.44.9";
|
|
958296
958331
|
}
|
|
958297
958332
|
getCliName() {
|
|
958298
958333
|
if (false) {
|
package/package.json
CHANGED