metascraper-dribbble 5.55.2 → 5.58.4

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 +3 -3
  2. package/src/index.js +3 -2
package/package.json CHANGED
@@ -2,7 +2,7 @@
2
2
  "name": "metascraper-dribbble",
3
3
  "description": "Metascraper rules tailored for Dribbble pages — richer metadata than generic HTML parsers.",
4
4
  "homepage": "https://github.com/microlinkhq/metascraper/packages/metascraper-dribbble",
5
- "version": "5.55.2",
5
+ "version": "5.58.4",
6
6
  "types": "src/index.d.ts",
7
7
  "main": "src/index.js",
8
8
  "author": {
@@ -31,7 +31,7 @@
31
31
  "shot"
32
32
  ],
33
33
  "dependencies": {
34
- "@metascraper/helpers": "5.55.2"
34
+ "@metascraper/helpers": "5.58.4"
35
35
  },
36
36
  "devDependencies": {
37
37
  "ava": "8"
@@ -46,5 +46,5 @@
46
46
  "test": "NODE_PATH=.. TZ=UTC ava --timeout 15s"
47
47
  },
48
48
  "license": "MIT",
49
- "gitHead": "d55833693c1b1736bbc56e0d477b1135871837c6"
49
+ "gitHead": "999e1edf52104ca823da226800cb952e0d428f2b"
50
50
  }
package/src/index.js CHANGED
@@ -2,6 +2,7 @@
2
2
 
3
3
  const {
4
4
  $jsonld,
5
+ $meta,
5
6
  memoizeOne,
6
7
  author,
7
8
  date,
@@ -41,7 +42,7 @@ module.exports = () => {
41
42
  author: [
42
43
  toAuthor($jsonld('creator.name')),
43
44
  toAuthor($ => {
44
- const description = $('meta[name="description"]').attr('content')
45
+ const description = $meta('description')($)
45
46
  const { author } = parseMetaDescription(description)
46
47
  return author
47
48
  }),
@@ -49,7 +50,7 @@ module.exports = () => {
49
50
  ],
50
51
  description: [
51
52
  toDescription($ => {
52
- const desc = $('meta[name="description"]').attr('content')
53
+ const desc = $meta('description')($)
53
54
  const { description } = parseMetaDescription(desc)
54
55
  return description
55
56
  })