node-spotilocal
Advanced tools
Comparing version 1.0.5 to 1.0.6
{ | ||
"name": "node-spotilocal", | ||
"version": "1.0.5", | ||
"description": "Simple wrapper for Spotify local webserver.", | ||
"version": "1.0.6", | ||
"description": "[DEPRECATED] Simple wrapper class for Spotify local webserver.", | ||
"main": "src/index.js", | ||
@@ -6,0 +6,0 @@ "files": [ |
@@ -1,2 +0,2 @@ | ||
# node-spotilocal | ||
# [DEPRECATED] node-spotilocal | ||
@@ -8,3 +8,3 @@ [![npm](https://img.shields.io/npm/v/node-spotilocal.svg?style=flat)](https://www.npmjs.com/package/node-spotilocal) | ||
Simple wrapper for [Spotify](https://www.spotify.com/) app local webserver. | ||
Simple wrapper class for [Spotify](https://www.spotify.com/) app local webserver. | ||
@@ -11,0 +11,0 @@ --- |
/** | ||
* node-spotilocal v1.0.5 (2018-06-02) | ||
* [DEPRECATED] | ||
* node-spotilocal v1.0.6 (2018-09-15) | ||
* Copyright 2018 Oliver Findl | ||
@@ -77,6 +78,6 @@ * @license MIT | ||
headers: { | ||
origin: "https://open.spotify.com" | ||
origin: "https://open.spotify.com/" | ||
} | ||
}); | ||
if(res.hasOwnProperty("status") && [200, 304].indexOf(res.status) > -1 && res.hasOwnProperty("data")) return res.data; | ||
if(res.hasOwnProperty("status") && [200, 204, 304].includes(res.status) && res.hasOwnProperty("data")) return res.data; | ||
else throw new Error("Bad response!"); | ||
@@ -83,0 +84,0 @@ } catch(err) { |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
7780
167