ochre-sdk 1.0.28 → 1.0.29

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.
@@ -109,7 +109,7 @@ async function fetchItem(uuid, options) {
109
109
  const categories = [];
110
110
  for (const possibleCategory of options.category) if (isItemCategoryWithEmbeddedItems(possibleCategory)) categories.push(possibleCategory);
111
111
  omitEmbeddedItemsCategory = categories;
112
- shouldFetchOmittedEmbeddedItems = categories.length > 0;
112
+ shouldFetchOmittedEmbeddedItems = shouldOmitEmbeddedItems && categories.length > 0;
113
113
  }
114
114
  const languages = options?.languages == null ? [] : parseLanguages(options.languages);
115
115
  const fetcher = options?.fetch ?? fetch;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "ochre-sdk",
3
- "version": "1.0.28",
3
+ "version": "1.0.29",
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",