metascraper-youtube 5.29.5 → 5.29.6

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 +3 -3
  2. package/package.json +12 -9
package/index.js CHANGED
@@ -36,7 +36,7 @@ const toDescription = toRule(description)
36
36
 
37
37
  const getVideoInfo = memoizeOne(getVideoId)
38
38
 
39
- const isValidUrl = memoizeOne(url => getVideoInfo(url).service === 'youtube')
39
+ const test = memoizeOne(url => getVideoInfo(url).service === 'youtube')
40
40
 
41
41
  module.exports = ({ gotOpts } = {}) => {
42
42
  const rules = {
@@ -55,9 +55,9 @@ module.exports = ({ gotOpts } = {}) => {
55
55
  ]
56
56
  }
57
57
 
58
- rules.test = ({ url }) => isValidUrl(url)
58
+ rules.test = ({ url }) => test(url)
59
59
 
60
60
  return rules
61
61
  }
62
62
 
63
- module.exports.isValidUrl = isValidUrl
63
+ module.exports.test = test
package/package.json CHANGED
@@ -2,7 +2,7 @@
2
2
  "name": "metascraper-youtube",
3
3
  "description": "Metascraper integration with YouTube",
4
4
  "homepage": "https://nicedoc.io/microlinkhq/metascraper/packages/metascraper-youtube",
5
- "version": "5.29.5",
5
+ "version": "5.29.6",
6
6
  "main": "index.js",
7
7
  "author": {
8
8
  "email": "hello@microlink.io",
@@ -23,16 +23,13 @@
23
23
  "youtube"
24
24
  ],
25
25
  "dependencies": {
26
- "@metascraper/helpers": "^5.29.5",
26
+ "@metascraper/helpers": "^5.29.6",
27
27
  "get-video-id": "~3.6.4",
28
28
  "p-locate": "~5.0.0",
29
- "reachable-url": "~1.6.10"
29
+ "reachable-url": "~1.6.11"
30
30
  },
31
31
  "devDependencies": {
32
- "lodash": "latest",
33
- "mocha": "latest",
34
- "should": "latest",
35
- "snap-shot": "latest"
32
+ "ava": "latest"
36
33
  },
37
34
  "engines": {
38
35
  "node": ">= 12"
@@ -41,8 +38,14 @@
41
38
  "index.js"
42
39
  ],
43
40
  "scripts": {
44
- "test": "NODE_PATH=.. TZ=UTC NODE_ENV=test mocha test"
41
+ "test": "NODE_PATH=.. TZ=UTC ava --timeout 15s"
45
42
  },
46
43
  "license": "MIT",
47
- "gitHead": "71c16e166a7775641957126288741d9051925e33"
44
+ "ava": {
45
+ "files": [
46
+ "test/**/*.js",
47
+ "!test/helpers.js"
48
+ ]
49
+ },
50
+ "gitHead": "b05f3948ac8878aedee0cb21f3024779c78b6bf4"
48
51
  }