@fern-api/fern-api-dev 5.37.9 → 5.37.11
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 +30 -19
- package/package.json +1 -1
package/cli.cjs
CHANGED
|
@@ -589114,14 +589114,14 @@ var GENERATOR_INVOCATIONS = {
|
|
|
589114
589114
|
version: "0.0.247"
|
|
589115
589115
|
},
|
|
589116
589116
|
[GeneratorName.TYPESCRIPT_SDK]: {
|
|
589117
|
-
version: "
|
|
589117
|
+
version: "3.71.2",
|
|
589118
589118
|
output: {
|
|
589119
589119
|
location: "local-file-system",
|
|
589120
589120
|
path: "../sdks/typescript"
|
|
589121
589121
|
}
|
|
589122
589122
|
},
|
|
589123
589123
|
[GeneratorName.TYPESCRIPT_NODE_SDK]: {
|
|
589124
|
-
version: "
|
|
589124
|
+
version: "3.71.2",
|
|
589125
589125
|
output: {
|
|
589126
589126
|
location: "local-file-system",
|
|
589127
589127
|
path: "../sdks/typescript"
|
|
@@ -602101,31 +602101,42 @@ var IrGraph = class {
|
|
|
602101
602101
|
resolveTypeId(id2) {
|
|
602102
602102
|
return this.schemaIdToGraphTypeId.get(id2) ?? id2;
|
|
602103
602103
|
}
|
|
602104
|
+
/**
|
|
602105
|
+
* BFS the type-dependency graph and add every transitively-reachable type
|
|
602106
|
+
* to `types`. The walk must be recursive: an outer type's `allDescendants`
|
|
602107
|
+
* may only list its direct dependencies (e.g. when a property uses `$ref`
|
|
602108
|
+
* to another component schema, the outer type's referencedTypes contains
|
|
602109
|
+
* the ref target but not the target's own inline-object descendants), so a
|
|
602110
|
+
* single-level pass would silently drop deeper named types and they would
|
|
602111
|
+
* later render as `any` in the docs.
|
|
602112
|
+
*/
|
|
602104
602113
|
addReferencedTypes(types4, typesToAdd) {
|
|
602105
|
-
|
|
602106
|
-
|
|
602114
|
+
const queue = [...typesToAdd];
|
|
602115
|
+
while (queue.length > 0) {
|
|
602116
|
+
const typeId = queue.pop();
|
|
602117
|
+
if (typeId == null || types4.has(typeId)) {
|
|
602107
602118
|
continue;
|
|
602108
602119
|
}
|
|
602109
602120
|
types4.add(typeId);
|
|
602110
602121
|
const typeNode = this.getTypeNode(typeId);
|
|
602122
|
+
const enqueueDescendant = (descendantTypeId) => {
|
|
602123
|
+
const resolved = this.resolveTypeId(descendantTypeId);
|
|
602124
|
+
if (!types4.has(resolved)) {
|
|
602125
|
+
queue.push(resolved);
|
|
602126
|
+
}
|
|
602127
|
+
};
|
|
602111
602128
|
if (this.audiences.type === "filtered") {
|
|
602112
602129
|
for (const audienceId of this.audiences.audiences) {
|
|
602113
602130
|
const descendantsForAudience = typeNode.descendantsByAudience[audienceId];
|
|
602114
602131
|
if (descendantsForAudience != null) {
|
|
602115
|
-
descendantsForAudience.forEach(
|
|
602116
|
-
types4.add(this.resolveTypeId(descendantTypeId));
|
|
602117
|
-
});
|
|
602132
|
+
descendantsForAudience.forEach(enqueueDescendant);
|
|
602118
602133
|
} else {
|
|
602119
|
-
typeNode.allDescendants.forEach(
|
|
602120
|
-
types4.add(this.resolveTypeId(descendantTypeId));
|
|
602121
|
-
});
|
|
602134
|
+
typeNode.allDescendants.forEach(enqueueDescendant);
|
|
602122
602135
|
break;
|
|
602123
602136
|
}
|
|
602124
602137
|
}
|
|
602125
602138
|
} else {
|
|
602126
|
-
typeNode.allDescendants.forEach(
|
|
602127
|
-
types4.add(this.resolveTypeId(descendantTypeId));
|
|
602128
|
-
});
|
|
602139
|
+
typeNode.allDescendants.forEach(enqueueDescendant);
|
|
602129
602140
|
}
|
|
602130
602141
|
}
|
|
602131
602142
|
}
|
|
@@ -669311,7 +669322,7 @@ var AccessTokenPosthogManager = class {
|
|
|
669311
669322
|
properties: {
|
|
669312
669323
|
...event,
|
|
669313
669324
|
...event.properties,
|
|
669314
|
-
version: "5.37.
|
|
669325
|
+
version: "5.37.11",
|
|
669315
669326
|
usingAccessToken: true,
|
|
669316
669327
|
...getRunIdProperties()
|
|
669317
669328
|
}
|
|
@@ -669375,7 +669386,7 @@ var UserPosthogManager = class {
|
|
|
669375
669386
|
distinctId: this.userId ?? await this.getPersistedDistinctId(),
|
|
669376
669387
|
event: "CLI",
|
|
669377
669388
|
properties: {
|
|
669378
|
-
version: "5.37.
|
|
669389
|
+
version: "5.37.11",
|
|
669379
669390
|
...event,
|
|
669380
669391
|
...event.properties,
|
|
669381
669392
|
usingAccessToken: false,
|
|
@@ -860208,7 +860219,7 @@ var LOCAL_STORAGE_FOLDER4 = ".fern-dev";
|
|
|
860208
860219
|
var LOGS_FOLDER_NAME = "logs";
|
|
860209
860220
|
var MAX_LOGS_DIR_SIZE_BYTES = 100 * 1024 * 1024;
|
|
860210
860221
|
function getCliSource() {
|
|
860211
|
-
const version7 = "5.37.
|
|
860222
|
+
const version7 = "5.37.11";
|
|
860212
860223
|
return `cli@${version7}`;
|
|
860213
860224
|
}
|
|
860214
860225
|
var DebugLogger = class {
|
|
@@ -880809,7 +880820,7 @@ var LegacyDocsPublisher = class {
|
|
|
880809
880820
|
previewId,
|
|
880810
880821
|
disableTemplates: void 0,
|
|
880811
880822
|
skipUpload,
|
|
880812
|
-
cliVersion: "5.37.
|
|
880823
|
+
cliVersion: "5.37.11",
|
|
880813
880824
|
loginCommand: "fern auth login"
|
|
880814
880825
|
});
|
|
880815
880826
|
if (taskContext.getResult() === TaskResult.Failure) {
|
|
@@ -955730,7 +955741,7 @@ function getAutomationContextFromEnv() {
|
|
|
955730
955741
|
config_branch: process.env.FERN_CONFIG_BRANCH,
|
|
955731
955742
|
config_pr_number: process.env.FERN_CONFIG_PR_NUMBER,
|
|
955732
955743
|
trigger: process.env.GITHUB_EVENT_NAME,
|
|
955733
|
-
cli_version: "5.37.
|
|
955744
|
+
cli_version: "5.37.11"
|
|
955734
955745
|
};
|
|
955735
955746
|
}
|
|
955736
955747
|
function isAutomationMode() {
|
|
@@ -956556,7 +956567,7 @@ var CliContext = class _CliContext {
|
|
|
956556
956567
|
if (false) {
|
|
956557
956568
|
this.logger.error("CLI_VERSION is not defined");
|
|
956558
956569
|
}
|
|
956559
|
-
return "5.37.
|
|
956570
|
+
return "5.37.11";
|
|
956560
956571
|
}
|
|
956561
956572
|
getCliName() {
|
|
956562
956573
|
if (false) {
|
package/package.json
CHANGED