@fern-api/fern-api-dev 3.95.2 → 3.95.4
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 +24 -8
- package/package.json +1 -1
package/cli.cjs
CHANGED
|
@@ -577366,7 +577366,7 @@ var AccessTokenPosthogManager = class {
|
|
|
577366
577366
|
properties: {
|
|
577367
577367
|
...event,
|
|
577368
577368
|
...event.properties,
|
|
577369
|
-
version: "3.95.
|
|
577369
|
+
version: "3.95.4",
|
|
577370
577370
|
usingAccessToken: true
|
|
577371
577371
|
}
|
|
577372
577372
|
});
|
|
@@ -577475,7 +577475,7 @@ var UserPosthogManager = class {
|
|
|
577475
577475
|
distinctId: this.userId ?? await this.getPersistedDistinctId(),
|
|
577476
577476
|
event: "CLI",
|
|
577477
577477
|
properties: {
|
|
577478
|
-
version: "3.95.
|
|
577478
|
+
version: "3.95.4",
|
|
577479
577479
|
...event,
|
|
577480
577480
|
...event.properties,
|
|
577481
577481
|
usingAccessToken: false,
|
|
@@ -659634,6 +659634,14 @@ async function loadRawGeneratorsConfiguration({ absolutePathToWorkspace, context
|
|
|
659634
659634
|
${e6.mark.snippet}`;
|
|
659635
659635
|
}
|
|
659636
659636
|
}
|
|
659637
|
+
if (e6.mark != null && (e6.reason === "bad indentation of a mapping entry" || e6.reason === "unexpected end of the stream within a flow collection")) {
|
|
659638
|
+
const fileContent = contentsStr.toString();
|
|
659639
|
+
const lines = fileContent.split("\n");
|
|
659640
|
+
const errorLine = e6.mark.line >= 0 && e6.mark.line < lines.length ? lines[e6.mark.line] : void 0;
|
|
659641
|
+
if (errorLine != null && /:\s+@/.test(errorLine)) {
|
|
659642
|
+
errorMessage += '\n\nHint: Values starting with "@" (such as scoped npm packages) must be wrapped in quotes.\n Example: package-name: "@scope/package"';
|
|
659643
|
+
}
|
|
659644
|
+
}
|
|
659637
659645
|
context2.failAndThrow(errorMessage);
|
|
659638
659646
|
} else {
|
|
659639
659647
|
throw e6;
|
|
@@ -709789,8 +709797,9 @@ var GeneratorsYmlMigrator = class {
|
|
|
709789
709797
|
]
|
|
709790
709798
|
};
|
|
709791
709799
|
}
|
|
709800
|
+
let content5;
|
|
709792
709801
|
try {
|
|
709793
|
-
|
|
709802
|
+
content5 = await (0, import_promises50.readFile)(absoluteFilePath, "utf-8");
|
|
709794
709803
|
const config3 = jsYaml.load(content5);
|
|
709795
709804
|
if (config3 == null || typeof config3 !== "object") {
|
|
709796
709805
|
return {
|
|
@@ -709830,7 +709839,14 @@ var GeneratorsYmlMigrator = class {
|
|
|
709830
709839
|
absoluteFilePath
|
|
709831
709840
|
};
|
|
709832
709841
|
} catch (error49) {
|
|
709833
|
-
|
|
709842
|
+
let message = error49 instanceof Error ? error49.message : String(error49);
|
|
709843
|
+
if (error49 instanceof jsYaml.YAMLException && error49.mark != null && content5 != null && (error49.reason === "bad indentation of a mapping entry" || error49.reason === "unexpected end of the stream within a flow collection")) {
|
|
709844
|
+
const lines = content5.split("\n");
|
|
709845
|
+
const errorLine = error49.mark.line >= 0 && error49.mark.line < lines.length ? lines[error49.mark.line] : void 0;
|
|
709846
|
+
if (errorLine != null && /:\s+@/.test(errorLine)) {
|
|
709847
|
+
message += '\n\nHint: Values starting with "@" (such as scoped npm packages) must be wrapped in quotes.\n Example: package-name: "@scope/package"';
|
|
709848
|
+
}
|
|
709849
|
+
}
|
|
709834
709850
|
return {
|
|
709835
709851
|
success: false,
|
|
709836
709852
|
warnings: [
|
|
@@ -750051,9 +750067,9 @@ var LambdaExampleEnhancer = class {
|
|
|
750051
750067
|
styleInstructions: config3.styleInstructions
|
|
750052
750068
|
};
|
|
750053
750069
|
this.context = context2;
|
|
750054
|
-
const lambdaOrigin = "https://
|
|
750070
|
+
const lambdaOrigin = "https://ykq45y6fvnszd35iv5yuuatkze0rpwuz.lambda-url.us-east-1.on.aws";
|
|
750055
750071
|
if (!lambdaOrigin) {
|
|
750056
|
-
throw new Error("
|
|
750072
|
+
throw new Error("DEFAULT_FDR_LAMBDA_DOCS_ORIGIN environment variable is not set. AI example enhancement requires this to be configured.");
|
|
750057
750073
|
}
|
|
750058
750074
|
this.lambdaOrigin = lambdaOrigin;
|
|
750059
750075
|
this.venusOrigin = "https://venus-dev2.buildwithfern.com";
|
|
@@ -763344,7 +763360,7 @@ var import_path40 = __toESM(require("path"), 1);
|
|
|
763344
763360
|
var LOCAL_STORAGE_FOLDER4 = ".fern-dev";
|
|
763345
763361
|
var LOGS_FOLDER_NAME = "logs";
|
|
763346
763362
|
function getCliSource() {
|
|
763347
|
-
const version7 = "3.95.
|
|
763363
|
+
const version7 = "3.95.4";
|
|
763348
763364
|
return `cli@${version7}`;
|
|
763349
763365
|
}
|
|
763350
763366
|
var DebugLogger = class {
|
|
@@ -1127046,7 +1127062,7 @@ var CliContext = class {
|
|
|
1127046
1127062
|
if (false) {
|
|
1127047
1127063
|
this.logger.error("CLI_VERSION is not defined");
|
|
1127048
1127064
|
}
|
|
1127049
|
-
return "3.95.
|
|
1127065
|
+
return "3.95.4";
|
|
1127050
1127066
|
}
|
|
1127051
1127067
|
getCliName() {
|
|
1127052
1127068
|
if (false) {
|
package/package.json
CHANGED