@fern-api/fern-api-dev 5.44.8 → 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 +18 -8
- package/package.json +1 -1
package/cli.cjs
CHANGED
|
@@ -669562,7 +669562,7 @@ var AccessTokenPosthogManager = class {
|
|
|
669562
669562
|
properties: {
|
|
669563
669563
|
...event,
|
|
669564
669564
|
...event.properties,
|
|
669565
|
-
version: "5.44.
|
|
669565
|
+
version: "5.44.9",
|
|
669566
669566
|
usingAccessToken: true,
|
|
669567
669567
|
...getRunIdProperties()
|
|
669568
669568
|
}
|
|
@@ -669626,7 +669626,7 @@ var UserPosthogManager = class {
|
|
|
669626
669626
|
distinctId: this.userId ?? await this.getPersistedDistinctId(),
|
|
669627
669627
|
event: "CLI",
|
|
669628
669628
|
properties: {
|
|
669629
|
-
version: "5.44.
|
|
669629
|
+
version: "5.44.9",
|
|
669630
669630
|
...event,
|
|
669631
669631
|
...event.properties,
|
|
669632
669632
|
usingAccessToken: false,
|
|
@@ -856980,6 +856980,16 @@ function createDocsConfigFileAstVisitorForRules({ relativeFilepath, allRulesWith
|
|
|
856980
856980
|
// ../yaml/docs-validator/lib/rules/no-non-component-refs/no-non-component-refs.js
|
|
856981
856981
|
init_lib8();
|
|
856982
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
|
|
856983
856993
|
var NoNonComponentRefsRule = {
|
|
856984
856994
|
name: "no-non-component-refs",
|
|
856985
856995
|
create: ({ ossWorkspaces, logger: logger4, workspace: docsWorkspace }) => {
|
|
@@ -857007,7 +857017,7 @@ var NoNonComponentRefsRule = {
|
|
|
857007
857017
|
const refMatches = contents.matchAll(/["']?\$ref["']?\s*:\s*["']([^"']+)["']/g);
|
|
857008
857018
|
for (const match3 of refMatches) {
|
|
857009
857019
|
const ref2 = match3[1];
|
|
857010
|
-
if (!ref2) {
|
|
857020
|
+
if (!ref2 || match3.index != null && isInYamlComment(contents, match3.index)) {
|
|
857011
857021
|
continue;
|
|
857012
857022
|
}
|
|
857013
857023
|
if (ref2.startsWith("#/") && !ref2.startsWith("#/components/")) {
|
|
@@ -857263,7 +857273,7 @@ var ValidLocalReferencesRule = {
|
|
|
857263
857273
|
const allRefs = /* @__PURE__ */ new Set();
|
|
857264
857274
|
for (const match3 of refMatches) {
|
|
857265
857275
|
const ref2 = match3[1];
|
|
857266
|
-
if (ref2 && ref2.startsWith("#/")) {
|
|
857276
|
+
if (ref2 && ref2.startsWith("#/") && match3.index != null && !isInYamlComment(contents, match3.index)) {
|
|
857267
857277
|
allRefs.add(ref2);
|
|
857268
857278
|
}
|
|
857269
857279
|
}
|
|
@@ -861312,7 +861322,7 @@ var LOCAL_STORAGE_FOLDER4 = ".fern-dev";
|
|
|
861312
861322
|
var LOGS_FOLDER_NAME = "logs";
|
|
861313
861323
|
var MAX_LOGS_DIR_SIZE_BYTES = 100 * 1024 * 1024;
|
|
861314
861324
|
function getCliSource() {
|
|
861315
|
-
const version7 = "5.44.
|
|
861325
|
+
const version7 = "5.44.9";
|
|
861316
861326
|
return `cli@${version7}`;
|
|
861317
861327
|
}
|
|
861318
861328
|
var DebugLogger = class {
|
|
@@ -892404,7 +892414,7 @@ var LegacyDocsPublisher = class {
|
|
|
892404
892414
|
previewId,
|
|
892405
892415
|
disableTemplates: void 0,
|
|
892406
892416
|
skipUpload,
|
|
892407
|
-
cliVersion: "5.44.
|
|
892417
|
+
cliVersion: "5.44.9",
|
|
892408
892418
|
loginCommand: "fern auth login"
|
|
892409
892419
|
});
|
|
892410
892420
|
if (taskContext.getResult() === TaskResult.Failure) {
|
|
@@ -957491,7 +957501,7 @@ function getAutomationContextFromEnv() {
|
|
|
957491
957501
|
config_branch: process.env.FERN_CONFIG_BRANCH,
|
|
957492
957502
|
config_pr_number: process.env.FERN_CONFIG_PR_NUMBER,
|
|
957493
957503
|
trigger: process.env.GITHUB_EVENT_NAME,
|
|
957494
|
-
cli_version: "5.44.
|
|
957504
|
+
cli_version: "5.44.9"
|
|
957495
957505
|
};
|
|
957496
957506
|
}
|
|
957497
957507
|
function isAutomationMode() {
|
|
@@ -958317,7 +958327,7 @@ var CliContext = class _CliContext {
|
|
|
958317
958327
|
if (false) {
|
|
958318
958328
|
this.logger.error("CLI_VERSION is not defined");
|
|
958319
958329
|
}
|
|
958320
|
-
return "5.44.
|
|
958330
|
+
return "5.44.9";
|
|
958321
958331
|
}
|
|
958322
958332
|
getCliName() {
|
|
958323
958333
|
if (false) {
|
package/package.json
CHANGED