metascraper-telegram 5.29.1 → 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/README.md +11 -8
- package/index.js +2 -2
- package/package.json +8 -18
package/README.md
CHANGED
|
@@ -1,9 +1,12 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
> Metascraper integration with Telegram
|
|
1
|
+
<div align="center">
|
|
2
|
+
<br>
|
|
3
|
+
<img style="width: 500px; margin:3rem 0 1.5rem;" src="https://metascraper.js.org/static/logo-banner.png" alt="metascraper">
|
|
4
|
+
<br>
|
|
5
|
+
<br>
|
|
6
|
+
<p align="center"><strong>metascraper-telegram</strong>: Metascraper integration with Telegram.</p>
|
|
7
|
+
<p align="center">See our <a href="https://metascraper.js.org" target='_blank' rel='noopener noreferrer'>website</a> for more information.</p>
|
|
8
|
+
<br>
|
|
9
|
+
</div>
|
|
7
10
|
|
|
8
11
|
## Install
|
|
9
12
|
|
|
@@ -13,7 +16,7 @@ $ npm install metascraper-telegram --save
|
|
|
13
16
|
|
|
14
17
|
## License
|
|
15
18
|
|
|
16
|
-
**metascraper-telegram** © [Microlink](https://microlink.io),
|
|
19
|
+
**metascraper-telegram** © [Microlink](https://microlink.io), released under the [MIT](https://github.com/microlinkhq/metascraper/blob/master/LICENSE.md) License.<br>
|
|
17
20
|
Authored and maintained by [Microlink](https://microlink.io) with help from [contributors](https://github.com/microlinkhq/metascraper/contributors).
|
|
18
21
|
|
|
19
|
-
> [microlink.io](https://microlink.io) · GitHub [
|
|
22
|
+
> [microlink.io](https://microlink.io) · GitHub [microlinkhq](https://github.com/microlinkhq) · Twitter [@microlinkhq](https://twitter.com/microlinkhq)
|
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": "1c70ae52979481a2818a448d444c73937f694e6c"
|
|
43
|
+
"gitHead": "b05f3948ac8878aedee0cb21f3024779c78b6bf4"
|
|
54
44
|
}
|