stockshark-api-access
Advanced tools
Comparing version 1.0.7 to 1.0.8
{ | ||
"name": "stockshark-api-access", | ||
"version": "1.0.7", | ||
"version": "1.0.8", | ||
"main": "./src/index.js", | ||
@@ -5,0 +5,0 @@ "files": [ |
@@ -39,2 +39,6 @@ const axios = require("axios") | ||
setToken(token) { | ||
if (!token) { | ||
delete this.http.defaults.headers.common['Authorization'] | ||
return | ||
} | ||
this.http.defaults.headers.common['Authorization'] = `Bearer ${token}` | ||
@@ -41,0 +45,0 @@ } |
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
10854
130