metascraper-uol 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 +6 -8
package/index.js CHANGED
@@ -13,7 +13,7 @@ const {
13
13
 
14
14
  const ROOT_DOMAINS = ['uol.com.br', 'torcedores.com']
15
15
 
16
- const isValidUrl = memoizeOne(url =>
16
+ const test = memoizeOne(url =>
17
17
  ROOT_DOMAINS.some(domain => getDomain(url) === domain)
18
18
  )
19
19
 
@@ -30,9 +30,9 @@ module.exports = () => {
30
30
  description: [toDescription(($, url) => $jsonld('description')($, url))]
31
31
  }
32
32
 
33
- rules.test = ({ url }) => isValidUrl(url)
33
+ rules.test = ({ url }) => test(url)
34
34
 
35
35
  return rules
36
36
  }
37
37
 
38
- module.exports.isValidUrl = isValidUrl
38
+ module.exports.test = test
package/package.json CHANGED
@@ -2,7 +2,7 @@
2
2
  "name": "metascraper-uol",
3
3
  "description": "metascraper integration for website under Universo Online group",
4
4
  "homepage": "https://nicedoc.io/microlinkhq/metascraper/packages/metascraper-uol",
5
- "version": "5.29.5",
5
+ "version": "5.29.6",
6
6
  "main": "index.js",
7
7
  "author": {
8
8
  "email": "hello@microlink.io",
@@ -24,13 +24,11 @@
24
24
  "uol"
25
25
  ],
26
26
  "dependencies": {
27
- "@metascraper/helpers": "^5.29.5",
28
- "tldts": "~5.7.77"
27
+ "@metascraper/helpers": "^5.29.6",
28
+ "tldts": "~5.7.80"
29
29
  },
30
30
  "devDependencies": {
31
- "mocha": "latest",
32
- "should": "latest",
33
- "snap-shot": "latest",
31
+ "ava": "latest",
34
32
  "word-slug": "latest"
35
33
  },
36
34
  "engines": {
@@ -40,8 +38,8 @@
40
38
  "index.js"
41
39
  ],
42
40
  "scripts": {
43
- "test": "NODE_PATH=.. TZ=UTC NODE_ENV=test mocha test"
41
+ "test": "NODE_PATH=.. TZ=UTC ava --timeout 15s"
44
42
  },
45
43
  "license": "MIT",
46
- "gitHead": "71c16e166a7775641957126288741d9051925e33"
44
+ "gitHead": "b05f3948ac8878aedee0cb21f3024779c78b6bf4"
47
45
  }