metascraper-spotify 5.29.3 → 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 (3) hide show
  1. package/README.md +11 -8
  2. package/index.js +3 -3
  3. package/package.json +16 -12
package/README.md CHANGED
@@ -1,9 +1,12 @@
1
- # metascraper-spotify
2
-
3
- [![npm](https://img.shields.io/npm/v/metascraper-spotify.svg?style=flat-square)](https://www.npmjs.com/package/metascraper-spotify)
4
- [![Dependency Status](https://david-dm.org/microlinkhq/metascraper.svg?path=packages/metascraper-spotify&style=flat-square)](https://david-dm.org/microlinkhq/metascraper?path=packages/metascraper-spotify)
5
-
6
- > Metascraper integration with Spotify.
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-spotify</strong>: Metascraper integration with Spotify.</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
 
@@ -31,7 +34,7 @@ Any option provided here will passed to [@keyvhq/memoize#options](https://github
31
34
 
32
35
  ## License
33
36
 
34
- **metascraper-spotify** © [Microlink](https://microlink.io), Released under the [MIT](https://github.com/microlinkhq/metascraper/blob/master/LICENSE.md) License.<br>
37
+ **metascraper-spotify** © [Microlink](https://microlink.io), released under the [MIT](https://github.com/microlinkhq/metascraper/blob/master/LICENSE.md) License.<br>
35
38
  Authored and maintained by [Microlink](https://microlink.io) with help from [contributors](https://github.com/microlinkhq/metascraper/contributors).
36
39
 
37
- > [microlink.io](https://microlink.io) · GitHub [@microlink.io](https://github.com/microlinkhq) · Twitter [@microlinkhq](https://twitter.com/microlinkhq)
40
+ > [microlink.io](https://microlink.io) · GitHub [microlinkhq](https://github.com/microlinkhq) · Twitter [@microlinkhq](https://twitter.com/microlinkhq)
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.3",
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.3",
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.0.6",
31
- "tldts": "~5.7.74"
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": "e3d5ef5add6fec690b1234e6aaa273e1a658c256"
48
+ "ava": {
49
+ "files": [
50
+ "test/**/*.js",
51
+ "!test/helpers.js"
52
+ ]
53
+ },
54
+ "gitHead": "b05f3948ac8878aedee0cb21f3024779c78b6bf4"
51
55
  }