@fern-api/fdr-sdk 1.2.66-2ec4f56478 → 1.2.66-b70af6724f
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/dist/js/api-definition/index.js +3 -7
- package/dist/js/api-definition/index.js.map +1 -1
- package/dist/js/api-definition/index.mjs +3 -7
- package/dist/js/api-definition/index.mjs.map +1 -1
- package/dist/js/converters/index.js +3 -7
- package/dist/js/converters/index.js.map +1 -1
- package/dist/js/converters/index.mjs +3 -7
- package/dist/js/converters/index.mjs.map +1 -1
- package/dist/js/index.js +3 -7
- package/dist/js/index.js.map +1 -1
- package/dist/js/index.mjs +3 -7
- package/dist/js/index.mjs.map +1 -1
- package/dist/js/navigation/index.js +3 -7
- package/dist/js/navigation/index.js.map +1 -1
- package/dist/js/navigation/index.mjs +3 -7
- package/dist/js/navigation/index.mjs.map +1 -1
- package/dist/tsconfig.tsbuildinfo +1 -1
- package/dist/types/api-definition/prune.d.ts.map +1 -1
- package/package.json +1 -1
|
@@ -4072,11 +4072,9 @@ var ApiDefinitionPruner2 = class _ApiDefinitionPruner {
|
|
|
4072
4072
|
expandTypeIds(typeIds) {
|
|
4073
4073
|
const visitedTypeIds = /* @__PURE__ */ new Set();
|
|
4074
4074
|
const queue = Array.from(typeIds);
|
|
4075
|
-
const enqueuedTypeIds = new Set(typeIds);
|
|
4076
|
-
const maxIterations = Object.keys(this.api.types).length + typeIds.size;
|
|
4077
4075
|
let loop = 0;
|
|
4078
4076
|
while (queue.length > 0) {
|
|
4079
|
-
if (loop
|
|
4077
|
+
if (loop > LARGE_LOOP_TOLERANCE + typeIds.size) {
|
|
4080
4078
|
throw new Error("Infinite loop detected while expanding type references.");
|
|
4081
4079
|
}
|
|
4082
4080
|
const typeId = queue.pop();
|
|
@@ -4085,13 +4083,11 @@ var ApiDefinitionPruner2 = class _ApiDefinitionPruner {
|
|
|
4085
4083
|
const type = this.api.types[typeId];
|
|
4086
4084
|
if (type) {
|
|
4087
4085
|
ApiTypeIdVisitor2.visitTypeDefinition(type, (nestedTypeId) => {
|
|
4088
|
-
|
|
4089
|
-
enqueuedTypeIds.add(nestedTypeId);
|
|
4090
|
-
queue.push(nestedTypeId);
|
|
4091
|
-
}
|
|
4086
|
+
queue.push(nestedTypeId);
|
|
4092
4087
|
});
|
|
4093
4088
|
}
|
|
4094
4089
|
}
|
|
4090
|
+
loop++;
|
|
4095
4091
|
}
|
|
4096
4092
|
return visitedTypeIds;
|
|
4097
4093
|
}
|