metascraper-soundcloud 5.31.1 → 5.31.3

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.
Files changed (2) hide show
  1. package/index.js +6 -5
  2. package/package.json +3 -4
package/index.js CHANGED
@@ -1,19 +1,20 @@
1
1
  'use strict'
2
2
 
3
- const { getDomainWithoutSuffix } = require('tldts')
4
-
5
3
  const {
6
4
  $filter,
7
5
  author,
8
6
  description,
9
- toRule,
10
- memoizeOne
7
+ memoizeOne,
8
+ parseUrl,
9
+ toRule
11
10
  } = require('@metascraper/helpers')
12
11
 
13
12
  const toDescription = toRule(description)
14
13
  const toAuthor = toRule(author)
15
14
 
16
- const test = memoizeOne(url => getDomainWithoutSuffix(url) === 'soundcloud')
15
+ const test = memoizeOne(
16
+ url => parseUrl(url).domainWithoutSuffix === 'soundcloud'
17
+ )
17
18
 
18
19
  module.exports = () => {
19
20
  const rules = {
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.31.1",
5
+ "version": "5.31.3",
6
6
  "main": "index.js",
7
7
  "author": {
8
8
  "email": "hello@microlink.io",
@@ -23,8 +23,7 @@
23
23
  "soundcloud"
24
24
  ],
25
25
  "dependencies": {
26
- "@metascraper/helpers": "^5.31.1",
27
- "tldts": "~5.7.92"
26
+ "@metascraper/helpers": "^5.31.3"
28
27
  },
29
28
  "devDependencies": {
30
29
  "ava": "latest"
@@ -39,5 +38,5 @@
39
38
  "test": "NODE_PATH=.. TZ=UTC NODE_ENV=test ava --timeout 30s"
40
39
  },
41
40
  "license": "MIT",
42
- "gitHead": "a89cf84a7f3b4a8a1de9773db322ab205c31c020"
41
+ "gitHead": "d783e6826b8b3b183fc39a4340721a903ec74c51"
43
42
  }