jwt-decode
Advanced tools
Comparing version 1.1.1 to 1.1.2
{ | ||
"name": "jwt-decode", | ||
"description": "Decode JWT payload in the browser", | ||
"version": "1.1.0", | ||
"version": "1.1.1", | ||
"keywords": ["jwt", "jsonwebtoken", "token", "decode"], | ||
@@ -6,0 +6,0 @@ "homepage": "https://github.com/auth0/jwt-decode", |
module.exports = function (str) { | ||
return window.JSON ? window.JSON.parse(str) : eval('(' + str + ')'); | ||
}; | ||
var parsed; | ||
if (typeof JSON === 'object') { | ||
parsed = JSON.parse(str); | ||
} else { | ||
parsed = eval('(' + str + ')'); | ||
} | ||
return parsed; | ||
}; |
{ | ||
"name": "jwt-decode", | ||
"version": "1.1.1", | ||
"version": "1.1.2", | ||
"description": "Decode JWT tokens, mostly useful for browser applications.", | ||
@@ -5,0 +5,0 @@ "main": "lib/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
22532
282