metascraper-telegram 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.
- package/index.js +2 -2
- package/package.json +8 -18
package/index.js
CHANGED
|
@@ -21,7 +21,7 @@ const toDate = toRule(date)
|
|
|
21
21
|
|
|
22
22
|
const TELEGRAM_DOMAINS = ['telegram.me', 't.me']
|
|
23
23
|
|
|
24
|
-
const
|
|
24
|
+
const test = memoizeOne(url => TELEGRAM_DOMAINS.includes(getDomain(url)))
|
|
25
25
|
|
|
26
26
|
module.exports = () => {
|
|
27
27
|
const rules = {
|
|
@@ -58,7 +58,7 @@ module.exports = () => {
|
|
|
58
58
|
]
|
|
59
59
|
}
|
|
60
60
|
|
|
61
|
-
rules.test = ({ url }) =>
|
|
61
|
+
rules.test = ({ url }) => test(url)
|
|
62
62
|
|
|
63
63
|
return rules
|
|
64
64
|
}
|
package/package.json
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
"name": "metascraper-telegram",
|
|
3
3
|
"description": "Metascraper integration with Telegram",
|
|
4
4
|
"homepage": "https://nicedoc.io/microlinkhq/metascraper/packages/metascraper-telegram",
|
|
5
|
-
"version": "5.29.
|
|
5
|
+
"version": "5.29.6",
|
|
6
6
|
"main": "index.js",
|
|
7
7
|
"author": {
|
|
8
8
|
"email": "hello@microlink.io",
|
|
@@ -22,15 +22,13 @@
|
|
|
22
22
|
"telegram"
|
|
23
23
|
],
|
|
24
24
|
"dependencies": {
|
|
25
|
-
"@metascraper/helpers": "^5.29.
|
|
26
|
-
"async-memoize-one": "~1.1.
|
|
27
|
-
"css-urls": "~2.0.
|
|
28
|
-
"tldts": "~5.7.
|
|
25
|
+
"@metascraper/helpers": "^5.29.6",
|
|
26
|
+
"async-memoize-one": "~1.1.1",
|
|
27
|
+
"css-urls": "~2.0.27",
|
|
28
|
+
"tldts": "~5.7.80"
|
|
29
29
|
},
|
|
30
30
|
"devDependencies": {
|
|
31
|
-
"
|
|
32
|
-
"should": "latest",
|
|
33
|
-
"snap-shot": "latest"
|
|
31
|
+
"ava": "latest"
|
|
34
32
|
},
|
|
35
33
|
"engines": {
|
|
36
34
|
"node": ">= 12"
|
|
@@ -39,16 +37,8 @@
|
|
|
39
37
|
"index.js"
|
|
40
38
|
],
|
|
41
39
|
"scripts": {
|
|
42
|
-
"test": "NODE_PATH=.. TZ=UTC
|
|
40
|
+
"test": "NODE_PATH=.. TZ=UTC ava --timeout 15s"
|
|
43
41
|
},
|
|
44
42
|
"license": "MIT",
|
|
45
|
-
"
|
|
46
|
-
"bail": true,
|
|
47
|
-
"exit": true,
|
|
48
|
-
"recursive": true,
|
|
49
|
-
"reporter": "spec",
|
|
50
|
-
"slow": 300,
|
|
51
|
-
"timeout": "120000"
|
|
52
|
-
},
|
|
53
|
-
"gitHead": "71c16e166a7775641957126288741d9051925e33"
|
|
43
|
+
"gitHead": "b05f3948ac8878aedee0cb21f3024779c78b6bf4"
|
|
54
44
|
}
|