@metascraper/helpers 5.49.23 → 5.49.24

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/package.json +2 -2
  2. package/src/index.js +3 -1
package/package.json CHANGED
@@ -2,7 +2,7 @@
2
2
  "name": "@metascraper/helpers",
3
3
  "description": "Collection of helper functions used by metascraper",
4
4
  "homepage": "https://github.com/microlinkhq/metascraper/packages/metascraper-helpers",
5
- "version": "5.49.23",
5
+ "version": "5.49.24",
6
6
  "main": "src/index.js",
7
7
  "author": {
8
8
  "email": "hello@microlink.io",
@@ -65,5 +65,5 @@
65
65
  "publishConfig": {
66
66
  "access": "public"
67
67
  },
68
- "gitHead": "74f58f4db8e6cb26e441f1e731012e3bf8be6bd2"
68
+ "gitHead": "4498fc7634a83a772379ab474f66abf4de1d1fa7"
69
69
  }
package/src/index.js CHANGED
@@ -378,7 +378,9 @@ const jsonld = memoizeOne(
378
378
  const { '@graph': graph, ...props } = json
379
379
  return Array.isArray(graph)
380
380
  ? graph.map(item => ({ ...props, ...item }))
381
- : props
381
+ : graph
382
+ ? props
383
+ : json
382
384
  })
383
385
  .get()
384
386
  .filter(Boolean),