@fern-api/fern-api-dev 5.44.6 → 5.44.8
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 +40 -12
- 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);
|
|
@@ -653474,7 +653499,8 @@ var ChannelConverter2_X = class extends AbstractChannelConverter {
|
|
|
653474
653499
|
in: "path",
|
|
653475
653500
|
description: parameterObject.description,
|
|
653476
653501
|
required: parameterObject.required ?? true
|
|
653477
|
-
}
|
|
653502
|
+
},
|
|
653503
|
+
parameterNamePrefix: this.channelPath
|
|
653478
653504
|
});
|
|
653479
653505
|
const convertedParameter = parameterConverter.convert();
|
|
653480
653506
|
if (convertedParameter != null) {
|
|
@@ -653505,7 +653531,8 @@ var ChannelConverter2_X = class extends AbstractChannelConverter {
|
|
|
653505
653531
|
required: required6.includes(name2),
|
|
653506
653532
|
schema: resolvedHeader,
|
|
653507
653533
|
description: "description" in resolvedHeader ? resolvedHeader.description : void 0
|
|
653508
|
-
}
|
|
653534
|
+
},
|
|
653535
|
+
parameterNamePrefix: this.channelPath
|
|
653509
653536
|
});
|
|
653510
653537
|
const convertedParameter = parameterConverter.convert();
|
|
653511
653538
|
if (convertedParameter != null && convertedParameter.type === "header") {
|
|
@@ -653559,7 +653586,8 @@ var ChannelConverter2_X = class extends AbstractChannelConverter {
|
|
|
653559
653586
|
schema: resolvedQuery,
|
|
653560
653587
|
description: "description" in resolvedQuery ? resolvedQuery.description : void 0,
|
|
653561
653588
|
deprecated: resolvedQuery.deprecated ?? false
|
|
653562
|
-
}
|
|
653589
|
+
},
|
|
653590
|
+
parameterNamePrefix: this.channelPath
|
|
653563
653591
|
});
|
|
653564
653592
|
const convertedParameter = parameterConverter.convert();
|
|
653565
653593
|
if (convertedParameter != null && convertedParameter.type === "query") {
|
|
@@ -669534,7 +669562,7 @@ var AccessTokenPosthogManager = class {
|
|
|
669534
669562
|
properties: {
|
|
669535
669563
|
...event,
|
|
669536
669564
|
...event.properties,
|
|
669537
|
-
version: "5.44.
|
|
669565
|
+
version: "5.44.8",
|
|
669538
669566
|
usingAccessToken: true,
|
|
669539
669567
|
...getRunIdProperties()
|
|
669540
669568
|
}
|
|
@@ -669598,7 +669626,7 @@ var UserPosthogManager = class {
|
|
|
669598
669626
|
distinctId: this.userId ?? await this.getPersistedDistinctId(),
|
|
669599
669627
|
event: "CLI",
|
|
669600
669628
|
properties: {
|
|
669601
|
-
version: "5.44.
|
|
669629
|
+
version: "5.44.8",
|
|
669602
669630
|
...event,
|
|
669603
669631
|
...event.properties,
|
|
669604
669632
|
usingAccessToken: false,
|
|
@@ -861284,7 +861312,7 @@ var LOCAL_STORAGE_FOLDER4 = ".fern-dev";
|
|
|
861284
861312
|
var LOGS_FOLDER_NAME = "logs";
|
|
861285
861313
|
var MAX_LOGS_DIR_SIZE_BYTES = 100 * 1024 * 1024;
|
|
861286
861314
|
function getCliSource() {
|
|
861287
|
-
const version7 = "5.44.
|
|
861315
|
+
const version7 = "5.44.8";
|
|
861288
861316
|
return `cli@${version7}`;
|
|
861289
861317
|
}
|
|
861290
861318
|
var DebugLogger = class {
|
|
@@ -892376,7 +892404,7 @@ var LegacyDocsPublisher = class {
|
|
|
892376
892404
|
previewId,
|
|
892377
892405
|
disableTemplates: void 0,
|
|
892378
892406
|
skipUpload,
|
|
892379
|
-
cliVersion: "5.44.
|
|
892407
|
+
cliVersion: "5.44.8",
|
|
892380
892408
|
loginCommand: "fern auth login"
|
|
892381
892409
|
});
|
|
892382
892410
|
if (taskContext.getResult() === TaskResult.Failure) {
|
|
@@ -921930,7 +921958,7 @@ var ClassReference3 = class extends AstNode4 {
|
|
|
921930
921958
|
}
|
|
921931
921959
|
write(writer2) {
|
|
921932
921960
|
writer2.addReference(this);
|
|
921933
|
-
const refString = this.fullyQualified ? `\\${this.namespace}\\${this.name}` : this.name;
|
|
921961
|
+
const refString = this.fullyQualified ? this.namespace === GLOBAL_NAMESPACE ? `\\${this.name}` : `\\${this.namespace}\\${this.name}` : this.name;
|
|
921934
921962
|
writer2.write(`${refString}`);
|
|
921935
921963
|
}
|
|
921936
921964
|
};
|
|
@@ -957463,7 +957491,7 @@ function getAutomationContextFromEnv() {
|
|
|
957463
957491
|
config_branch: process.env.FERN_CONFIG_BRANCH,
|
|
957464
957492
|
config_pr_number: process.env.FERN_CONFIG_PR_NUMBER,
|
|
957465
957493
|
trigger: process.env.GITHUB_EVENT_NAME,
|
|
957466
|
-
cli_version: "5.44.
|
|
957494
|
+
cli_version: "5.44.8"
|
|
957467
957495
|
};
|
|
957468
957496
|
}
|
|
957469
957497
|
function isAutomationMode() {
|
|
@@ -958289,7 +958317,7 @@ var CliContext = class _CliContext {
|
|
|
958289
958317
|
if (false) {
|
|
958290
958318
|
this.logger.error("CLI_VERSION is not defined");
|
|
958291
958319
|
}
|
|
958292
|
-
return "5.44.
|
|
958320
|
+
return "5.44.8";
|
|
958293
958321
|
}
|
|
958294
958322
|
getCliName() {
|
|
958295
958323
|
if (false) {
|
package/package.json
CHANGED