@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
|
@@ -4096,11 +4096,9 @@ var ApiDefinitionPruner2 = class _ApiDefinitionPruner {
|
|
|
4096
4096
|
expandTypeIds(typeIds) {
|
|
4097
4097
|
const visitedTypeIds = /* @__PURE__ */ new Set();
|
|
4098
4098
|
const queue = Array.from(typeIds);
|
|
4099
|
-
const enqueuedTypeIds = new Set(typeIds);
|
|
4100
|
-
const maxIterations = Object.keys(this.api.types).length + typeIds.size;
|
|
4101
4099
|
let loop = 0;
|
|
4102
4100
|
while (queue.length > 0) {
|
|
4103
|
-
if (loop
|
|
4101
|
+
if (loop > LARGE_LOOP_TOLERANCE + typeIds.size) {
|
|
4104
4102
|
throw new Error("Infinite loop detected while expanding type references.");
|
|
4105
4103
|
}
|
|
4106
4104
|
const typeId = queue.pop();
|
|
@@ -4109,13 +4107,11 @@ var ApiDefinitionPruner2 = class _ApiDefinitionPruner {
|
|
|
4109
4107
|
const type = this.api.types[typeId];
|
|
4110
4108
|
if (type) {
|
|
4111
4109
|
ApiTypeIdVisitor2.visitTypeDefinition(type, (nestedTypeId) => {
|
|
4112
|
-
|
|
4113
|
-
enqueuedTypeIds.add(nestedTypeId);
|
|
4114
|
-
queue.push(nestedTypeId);
|
|
4115
|
-
}
|
|
4110
|
+
queue.push(nestedTypeId);
|
|
4116
4111
|
});
|
|
4117
4112
|
}
|
|
4118
4113
|
}
|
|
4114
|
+
loop++;
|
|
4119
4115
|
}
|
|
4120
4116
|
return visitedTypeIds;
|
|
4121
4117
|
}
|