@fern-api/fern-api-dev 5.104.0 → 5.104.1
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 -10
- package/package.json +1 -1
package/cli.cjs
CHANGED
|
@@ -345513,13 +345513,21 @@ var require_swagger2openapi = __commonJS({
|
|
|
345513
345513
|
});
|
|
345514
345514
|
|
|
345515
345515
|
// ../workspace/lazy-fern-workspace/lib/utils/convertOpenAPIV2ToV3.js
|
|
345516
|
-
async function convertOpenAPIV2ToV3(openAPI) {
|
|
345516
|
+
async function convertOpenAPIV2ToV3(openAPI, options2) {
|
|
345517
|
+
let strictError;
|
|
345517
345518
|
try {
|
|
345518
345519
|
const conversionResult = await (0, import_swagger2openapi.convertObj)(openAPI, {});
|
|
345519
345520
|
return conversionResult.openapi;
|
|
345520
|
-
} catch (
|
|
345521
|
+
} catch (error50) {
|
|
345522
|
+
strictError = error50;
|
|
345523
|
+
}
|
|
345524
|
+
try {
|
|
345525
|
+
const conversionResult = await (0, import_swagger2openapi.convertObj)(openAPI, { patch: true });
|
|
345526
|
+
options2?.context?.logger.warn(`OpenAPI v2 (Swagger) document is not strictly valid and was converted in lenient (patch) mode: ${strictError instanceof Error ? strictError.message : String(strictError)}`);
|
|
345527
|
+
return conversionResult.openapi;
|
|
345528
|
+
} catch {
|
|
345521
345529
|
throw new CliError({
|
|
345522
|
-
message: `Failed to convert OpenAPI v2 (Swagger) spec to OpenAPI v3: ${
|
|
345530
|
+
message: `Failed to convert OpenAPI v2 (Swagger) spec to OpenAPI v3: ${strictError instanceof Error ? strictError.message : String(strictError)}`,
|
|
345523
345531
|
code: CliError.Code.ParseError
|
|
345524
345532
|
});
|
|
345525
345533
|
}
|
|
@@ -346428,7 +346436,7 @@ var init_OpenAPILoader = __esm({
|
|
|
346428
346436
|
if (!openAPI.schemes || openAPI.schemes.length === 0) {
|
|
346429
346437
|
openAPI.schemes = ["https"];
|
|
346430
346438
|
}
|
|
346431
|
-
const convertedOpenAPI = await convertOpenAPIV2ToV3(openAPI);
|
|
346439
|
+
const convertedOpenAPI = await convertOpenAPIV2ToV3(openAPI, { context: context3 });
|
|
346432
346440
|
return {
|
|
346433
346441
|
type: "openapi",
|
|
346434
346442
|
value: convertedOpenAPI,
|
|
@@ -703479,7 +703487,7 @@ var AccessTokenPosthogManager = class {
|
|
|
703479
703487
|
properties: {
|
|
703480
703488
|
...event,
|
|
703481
703489
|
...event.properties,
|
|
703482
|
-
version: "5.104.
|
|
703490
|
+
version: "5.104.1",
|
|
703483
703491
|
usingAccessToken: true,
|
|
703484
703492
|
...getRunIdProperties()
|
|
703485
703493
|
}
|
|
@@ -703545,7 +703553,7 @@ var UserPosthogManager = class {
|
|
|
703545
703553
|
distinctId: this.userId ?? await this.getPersistedDistinctId(),
|
|
703546
703554
|
event: "CLI",
|
|
703547
703555
|
properties: {
|
|
703548
|
-
version: "5.104.
|
|
703556
|
+
version: "5.104.1",
|
|
703549
703557
|
...event,
|
|
703550
703558
|
...event.properties,
|
|
703551
703559
|
usingAccessToken: false,
|
|
@@ -884928,7 +884936,7 @@ var LOCAL_STORAGE_FOLDER4 = ".fern-dev";
|
|
|
884928
884936
|
var LOGS_FOLDER_NAME = "logs";
|
|
884929
884937
|
var MAX_LOGS_DIR_SIZE_BYTES = 100 * 1024 * 1024;
|
|
884930
884938
|
function getCliSource() {
|
|
884931
|
-
const version7 = "5.104.
|
|
884939
|
+
const version7 = "5.104.1";
|
|
884932
884940
|
return `cli@${version7}`;
|
|
884933
884941
|
}
|
|
884934
884942
|
var DebugLogger = class {
|
|
@@ -911014,7 +911022,7 @@ var LegacyDocsPublisher = class {
|
|
|
911014
911022
|
previewId,
|
|
911015
911023
|
disableTemplates: void 0,
|
|
911016
911024
|
skipUpload,
|
|
911017
|
-
cliVersion: "5.104.
|
|
911025
|
+
cliVersion: "5.104.1",
|
|
911018
911026
|
loginCommand: "fern auth login"
|
|
911019
911027
|
});
|
|
911020
911028
|
if (taskContext.getResult() === TaskResult.Failure) {
|
|
@@ -978385,7 +978393,7 @@ function getAutomationContextFromEnv() {
|
|
|
978385
978393
|
config_branch: process.env.FERN_CONFIG_BRANCH,
|
|
978386
978394
|
config_pr_number: process.env.FERN_CONFIG_PR_NUMBER,
|
|
978387
978395
|
trigger: process.env.GITHUB_EVENT_NAME,
|
|
978388
|
-
cli_version: "5.104.
|
|
978396
|
+
cli_version: "5.104.1"
|
|
978389
978397
|
};
|
|
978390
978398
|
}
|
|
978391
978399
|
function isAutomationMode() {
|
|
@@ -979217,7 +979225,7 @@ var CliContext = class _CliContext {
|
|
|
979217
979225
|
if (false) {
|
|
979218
979226
|
this.logger.error("CLI_VERSION is not defined");
|
|
979219
979227
|
}
|
|
979220
|
-
return "5.104.
|
|
979228
|
+
return "5.104.1";
|
|
979221
979229
|
}
|
|
979222
979230
|
getCliName() {
|
|
979223
979231
|
if (false) {
|
package/package.json
CHANGED