ochre-sdk 0.20.26 → 0.20.28
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/index.mjs +1 -4
- package/package.json +1 -1
package/dist/index.mjs
CHANGED
|
@@ -3115,10 +3115,7 @@ async function fetchSetItems(params, itemCategories, options) {
|
|
|
3115
3115
|
items.push(...trees);
|
|
3116
3116
|
}
|
|
3117
3117
|
const itemsByUuid = /* @__PURE__ */ new Map();
|
|
3118
|
-
for (const item of items)
|
|
3119
|
-
if (itemsByUuid.has(item.uuid)) throw new Error(`Duplicate item UUID: ${item.uuid}`);
|
|
3120
|
-
itemsByUuid.set(item.uuid, item);
|
|
3121
|
-
}
|
|
3118
|
+
for (const item of items) if (!itemsByUuid.has(item.uuid)) itemsByUuid.set(item.uuid, item);
|
|
3122
3119
|
const uniqueItems = [...itemsByUuid.values()];
|
|
3123
3120
|
return {
|
|
3124
3121
|
totalCount: data.result.ochre.items.totalCount,
|