metascraper-telegram 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 +2 -2
- package/package.json +3 -3
package/index.js
CHANGED
|
@@ -5,12 +5,12 @@ const {
|
|
|
5
5
|
date,
|
|
6
6
|
image,
|
|
7
7
|
memoizeOne,
|
|
8
|
+
parseUrl,
|
|
8
9
|
sanetizeUrl,
|
|
9
10
|
toRule
|
|
10
11
|
} = require('@metascraper/helpers')
|
|
11
12
|
|
|
12
13
|
const memoize = require('@keyvhq/memoize')
|
|
13
|
-
const { getDomain } = require('tldts')
|
|
14
14
|
const pReflect = require('p-reflect')
|
|
15
15
|
const cssUrls = require('css-urls')
|
|
16
16
|
const got = require('got')
|
|
@@ -21,7 +21,7 @@ const toDate = toRule(date)
|
|
|
21
21
|
|
|
22
22
|
const TELEGRAM_DOMAINS = ['telegram.me', 't.me']
|
|
23
23
|
|
|
24
|
-
const test = memoizeOne(url => TELEGRAM_DOMAINS.includes(
|
|
24
|
+
const test = memoizeOne(url => TELEGRAM_DOMAINS.includes(parseUrl(url).domain))
|
|
25
25
|
|
|
26
26
|
const createGetIframe = gotOpts => async (url, $) => {
|
|
27
27
|
const iframe = $('iframe')
|
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.31.
|
|
5
|
+
"version": "5.31.2",
|
|
6
6
|
"main": "index.js",
|
|
7
7
|
"author": {
|
|
8
8
|
"email": "hello@microlink.io",
|
|
@@ -23,7 +23,7 @@
|
|
|
23
23
|
],
|
|
24
24
|
"dependencies": {
|
|
25
25
|
"@keyvhq/memoize": "~1.6.14",
|
|
26
|
-
"@metascraper/helpers": "^5.31.
|
|
26
|
+
"@metascraper/helpers": "^5.31.2",
|
|
27
27
|
"css-urls": "~2.0.28",
|
|
28
28
|
"got": "~11.8.5",
|
|
29
29
|
"p-reflect": "~2.1.0",
|
|
@@ -42,5 +42,5 @@
|
|
|
42
42
|
"test": "NODE_PATH=.. TZ=UTC ava --timeout 15s"
|
|
43
43
|
},
|
|
44
44
|
"license": "MIT",
|
|
45
|
-
"gitHead": "
|
|
45
|
+
"gitHead": "74d95629233e8bd81c0018e388b67ce663aac384"
|
|
46
46
|
}
|