@c-shell/spotify-api-hook
Advanced tools
Comparing version 1.1.0 to 1.2.0
@@ -159,2 +159,8 @@ "use strict"; | ||
return data; | ||
})["catch"](function (error) { | ||
console.error(error); | ||
setError({ | ||
message: (error === null || error === void 0 ? void 0 : error.message) || 'Something went wrong.', | ||
code: error === null || error === void 0 ? void 0 : error.status | ||
}); | ||
}); | ||
@@ -161,0 +167,0 @@ }; |
@@ -134,2 +134,8 @@ function _slicedToArray(arr, i) { return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) || _unsupportedIterableToArray(arr, i) || _nonIterableRest(); } | ||
return data; | ||
})["catch"](function (error) { | ||
console.error(error); | ||
setError({ | ||
message: (error === null || error === void 0 ? void 0 : error.message) || 'Something went wrong.', | ||
code: error === null || error === void 0 ? void 0 : error.status | ||
}); | ||
}); | ||
@@ -136,0 +142,0 @@ }; |
{ | ||
"name": "@c-shell/spotify-api-hook", | ||
"version": "1.1.0", | ||
"version": "1.2.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
21342
338