metascraper-spotify 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.
Files changed (2) hide show
  1. package/index.js +3 -3
  2. package/package.json +16 -12
package/index.js CHANGED
@@ -35,7 +35,7 @@ const createSpotify = ({ gotOpts, keyvOpts }) => {
35
35
  )
36
36
  }
37
37
 
38
- const isValidUrl = memoizeOne(url => getDomainWithoutSuffix(url) === 'spotify')
38
+ const test = memoizeOne(url => getDomainWithoutSuffix(url) === 'spotify')
39
39
 
40
40
  module.exports = ({ gotOpts, keyvOpts } = {}) => {
41
41
  const spotify = createSpotify({ gotOpts, keyvOpts })
@@ -52,9 +52,9 @@ module.exports = ({ gotOpts, keyvOpts } = {}) => {
52
52
  url: getSpotify({ from: 'link', to: 'url' })
53
53
  }
54
54
 
55
- rules.test = ({ url }) => isValidUrl(url)
55
+ rules.test = ({ url }) => test(url)
56
56
 
57
57
  return rules
58
58
  }
59
59
 
60
- module.exports.isValidUrl = isValidUrl
60
+ module.exports.test = test
package/package.json CHANGED
@@ -2,7 +2,7 @@
2
2
  "name": "metascraper-spotify",
3
3
  "description": "Metascraper integration with Spotify",
4
4
  "homepage": "https://nicedoc.io/microlinkhq/metascraper/packages/metascraper-spotify",
5
- "version": "5.29.5",
5
+ "version": "5.29.6",
6
6
  "main": "index.js",
7
7
  "author": {
8
8
  "email": "hello@microlink.io",
@@ -23,19 +23,17 @@
23
23
  "spotify"
24
24
  ],
25
25
  "dependencies": {
26
- "@keyvhq/memoize": "~1.6.9",
27
- "@metascraper/helpers": "^5.29.5",
28
- "async-memoize-one": "~1.1.0",
26
+ "@keyvhq/memoize": "~1.6.13",
27
+ "@metascraper/helpers": "^5.29.6",
28
+ "async-memoize-one": "~1.1.1",
29
29
  "got": "~11.8.3",
30
- "spotify-url-info": "~3.1.1",
31
- "tldts": "~5.7.77"
30
+ "spotify-url-info": "~3.1.2",
31
+ "tldts": "~5.7.80"
32
32
  },
33
33
  "devDependencies": {
34
+ "ava": "latest",
34
35
  "kind-of": "latest",
35
- "lodash": "latest",
36
- "mocha": "latest",
37
- "should": "latest",
38
- "snap-shot": "latest"
36
+ "lodash": "latest"
39
37
  },
40
38
  "engines": {
41
39
  "node": ">= 12"
@@ -44,8 +42,14 @@
44
42
  "index.js"
45
43
  ],
46
44
  "scripts": {
47
- "test": "NODE_PATH=.. TZ=UTC NODE_ENV=test mocha test"
45
+ "test": "NODE_PATH=.. TZ=UTC ava --timeout 15s"
48
46
  },
49
47
  "license": "MIT",
50
- "gitHead": "71c16e166a7775641957126288741d9051925e33"
48
+ "ava": {
49
+ "files": [
50
+ "test/**/*.js",
51
+ "!test/helpers.js"
52
+ ]
53
+ },
54
+ "gitHead": "b05f3948ac8878aedee0cb21f3024779c78b6bf4"
51
55
  }