metascraper-video 5.29.6 → 5.29.11

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/index.js +1 -2
  2. package/package.json +5 -6
package/index.js CHANGED
@@ -13,7 +13,6 @@ const {
13
13
  const memoize = require('@keyvhq/memoize')
14
14
  const pReflect = require('p-reflect')
15
15
  const { chain } = require('lodash')
16
- const cheerio = require('cheerio')
17
16
  const got = require('got')
18
17
 
19
18
  const toUrl = toRule(urlFn)
@@ -69,7 +68,7 @@ module.exports = ({ gotOpts, keyvOpts } = {}) => {
69
68
  if (!playerUrl) return
70
69
  const html = await getPlayer(normalizeUrl(url, playerUrl))
71
70
  if (!html) return
72
- const htmlDom = cheerio.load(html)
71
+ const htmlDom = $.load(html)
73
72
  return findRule(videoRules, { htmlDom, url })
74
73
  }
75
74
  ]
package/package.json CHANGED
@@ -2,7 +2,7 @@
2
2
  "name": "metascraper-video",
3
3
  "description": "Get video property from HTML markup",
4
4
  "homepage": "https://nicedoc.io/microlinkhq/metascraper/packages/metascraper-video",
5
- "version": "5.29.6",
5
+ "version": "5.29.11",
6
6
  "main": "index.js",
7
7
  "author": {
8
8
  "email": "hello@microlink.io",
@@ -22,10 +22,9 @@
22
22
  "video"
23
23
  ],
24
24
  "dependencies": {
25
- "@keyvhq/memoize": "~1.6.13",
26
- "@metascraper/helpers": "^5.29.6",
27
- "cheerio": "~1.0.0-rc.10",
28
- "got": "~11.8.3",
25
+ "@keyvhq/memoize": "~1.6.14",
26
+ "@metascraper/helpers": "^5.29.11",
27
+ "got": "~11.8.5",
29
28
  "lodash": "~4.17.21",
30
29
  "p-reflect": "~2.1.0"
31
30
  },
@@ -42,5 +41,5 @@
42
41
  "test": "NODE_PATH=.. TZ=UTC ava --timeout 15s"
43
42
  },
44
43
  "license": "MIT",
45
- "gitHead": "b05f3948ac8878aedee0cb21f3024779c78b6bf4"
44
+ "gitHead": "1eb987686ff110f16bbba78fc1ee0c881d78684d"
46
45
  }