metascraper-uol 5.31.1 → 5.31.2
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.
- package/index.js +6 -7
- package/package.json +3 -3
package/index.js
CHANGED
|
@@ -1,20 +1,19 @@
|
|
|
1
1
|
'use strict'
|
|
2
2
|
|
|
3
|
-
const { getDomain } = require('tldts')
|
|
4
|
-
|
|
5
3
|
const {
|
|
6
|
-
$jsonld,
|
|
7
4
|
$filter,
|
|
8
|
-
|
|
5
|
+
$jsonld,
|
|
9
6
|
description,
|
|
10
|
-
|
|
11
|
-
|
|
7
|
+
memoizeOne,
|
|
8
|
+
parseUrl,
|
|
9
|
+
title,
|
|
10
|
+
toRule
|
|
12
11
|
} = require('@metascraper/helpers')
|
|
13
12
|
|
|
14
13
|
const ROOT_DOMAINS = ['uol.com.br', 'torcedores.com']
|
|
15
14
|
|
|
16
15
|
const test = memoizeOne(url =>
|
|
17
|
-
ROOT_DOMAINS.some(domain =>
|
|
16
|
+
ROOT_DOMAINS.some(domain => parseUrl(url).domain === domain)
|
|
18
17
|
)
|
|
19
18
|
|
|
20
19
|
const toTitle = toRule(title)
|
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.31.
|
|
5
|
+
"version": "5.31.2",
|
|
6
6
|
"main": "index.js",
|
|
7
7
|
"author": {
|
|
8
8
|
"email": "hello@microlink.io",
|
|
@@ -24,7 +24,7 @@
|
|
|
24
24
|
"uol"
|
|
25
25
|
],
|
|
26
26
|
"dependencies": {
|
|
27
|
-
"@metascraper/helpers": "^5.31.
|
|
27
|
+
"@metascraper/helpers": "^5.31.2",
|
|
28
28
|
"tldts": "~5.7.92"
|
|
29
29
|
},
|
|
30
30
|
"devDependencies": {
|
|
@@ -41,5 +41,5 @@
|
|
|
41
41
|
"test": "NODE_PATH=.. TZ=UTC ava --timeout 15s"
|
|
42
42
|
},
|
|
43
43
|
"license": "MIT",
|
|
44
|
-
"gitHead": "
|
|
44
|
+
"gitHead": "74d95629233e8bd81c0018e388b67ce663aac384"
|
|
45
45
|
}
|