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.
Files changed (2) hide show
  1. package/dist/index.mjs +1 -4
  2. 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,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "ochre-sdk",
3
- "version": "0.20.26",
3
+ "version": "0.20.28",
4
4
  "type": "module",
5
5
  "license": "MIT",
6
6
  "description": "Node.js library for working with OCHRE (Online Cultural and Historical Research Environment) data",