metascraper-soundcloud 5.29.5 → 5.29.10
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 -4
- package/package.json +6 -7
package/index.js
CHANGED
|
@@ -13,9 +13,7 @@ const {
|
|
|
13
13
|
const toDescription = toRule(description)
|
|
14
14
|
const toAuthor = toRule(author)
|
|
15
15
|
|
|
16
|
-
const
|
|
17
|
-
url => getDomainWithoutSuffix(url) === 'soundcloud'
|
|
18
|
-
)
|
|
16
|
+
const test = memoizeOne(url => getDomainWithoutSuffix(url) === 'soundcloud')
|
|
19
17
|
|
|
20
18
|
module.exports = () => {
|
|
21
19
|
const rules = {
|
|
@@ -23,7 +21,7 @@ module.exports = () => {
|
|
|
23
21
|
description: [toDescription($ => $filter($, $('.soundTitle__description')))]
|
|
24
22
|
}
|
|
25
23
|
|
|
26
|
-
rules.test = ({ url }) =>
|
|
24
|
+
rules.test = ({ url }) => test(url)
|
|
27
25
|
|
|
28
26
|
return rules
|
|
29
27
|
}
|
package/package.json
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
"name": "metascraper-soundcloud",
|
|
3
3
|
"description": "Metascraper integration with SoundCloud",
|
|
4
4
|
"homepage": "https://nicedoc.io/microlinkhq/metascraper/packages/metascraper-soundcloud",
|
|
5
|
-
"version": "5.29.
|
|
5
|
+
"version": "5.29.10",
|
|
6
6
|
"main": "index.js",
|
|
7
7
|
"author": {
|
|
8
8
|
"email": "hello@microlink.io",
|
|
@@ -23,12 +23,11 @@
|
|
|
23
23
|
"soundcloud"
|
|
24
24
|
],
|
|
25
25
|
"dependencies": {
|
|
26
|
-
"@metascraper/helpers": "^5.29.
|
|
27
|
-
"tldts": "~5.7.
|
|
26
|
+
"@metascraper/helpers": "^5.29.10",
|
|
27
|
+
"tldts": "~5.7.82"
|
|
28
28
|
},
|
|
29
29
|
"devDependencies": {
|
|
30
|
-
"
|
|
31
|
-
"snap-shot": "latest"
|
|
30
|
+
"ava": "latest"
|
|
32
31
|
},
|
|
33
32
|
"engines": {
|
|
34
33
|
"node": ">= 12"
|
|
@@ -37,8 +36,8 @@
|
|
|
37
36
|
"index.js"
|
|
38
37
|
],
|
|
39
38
|
"scripts": {
|
|
40
|
-
"test": "NODE_PATH=.. TZ=UTC NODE_ENV=test
|
|
39
|
+
"test": "NODE_PATH=.. TZ=UTC NODE_ENV=test ava --timeout 30s"
|
|
41
40
|
},
|
|
42
41
|
"license": "MIT",
|
|
43
|
-
"gitHead": "
|
|
42
|
+
"gitHead": "1caeb9ed3cb6255b7f730a66f558b06715be94df"
|
|
44
43
|
}
|