@c-shell/spotify-api-hook
Advanced tools
Comparing version 1.2.2 to 1.3.0
@@ -150,2 +150,3 @@ "use strict"; | ||
var method = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : 'GET'; | ||
var body = arguments.length > 2 ? arguments[2] : undefined; | ||
return fetch("https://api.spotify.com/v1/".concat(url), { | ||
@@ -155,3 +156,4 @@ method: method, | ||
Authorization: "Bearer ".concat(userAccessToken) | ||
} | ||
}, | ||
body: body | ||
}).then(function (response) { | ||
@@ -158,0 +160,0 @@ return response.json(); |
@@ -125,2 +125,3 @@ function _slicedToArray(arr, i) { return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) || _unsupportedIterableToArray(arr, i) || _nonIterableRest(); } | ||
var method = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : 'GET'; | ||
var body = arguments.length > 2 ? arguments[2] : undefined; | ||
return fetch("https://api.spotify.com/v1/".concat(url), { | ||
@@ -130,3 +131,4 @@ method: method, | ||
Authorization: "Bearer ".concat(userAccessToken) | ||
} | ||
}, | ||
body: body | ||
}).then(function (response) { | ||
@@ -133,0 +135,0 @@ return response.json(); |
{ | ||
"name": "@c-shell/spotify-api-hook", | ||
"version": "1.2.2", | ||
"version": "1.3.0", | ||
"description": "A hook for easily setup and use of the spotify API", | ||
@@ -5,0 +5,0 @@ "main": "cjs/index.js", |
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
21736
350