jwt-decode
Advanced tools
Comparing version 3.0.0-beta.0 to 3.0.0-beta.1
@@ -1,6 +0,5 @@ | ||
(function (global, factory) { | ||
typeof exports === 'object' && typeof module !== 'undefined' ? module.exports = factory() : | ||
(function (factory) { | ||
typeof define === 'function' && define.amd ? define(factory) : | ||
(global = typeof globalThis !== 'undefined' ? globalThis : global || self, global['jwt-decode'] = factory()); | ||
}(this, (function () { 'use strict'; | ||
factory(); | ||
}((function () { 'use strict'; | ||
@@ -108,8 +107,18 @@ /** | ||
const wrapper = jwtDecode; | ||
wrapper.InvalidTokenError = InvalidTokenError; | ||
/* | ||
* Expose the function on the window object | ||
*/ | ||
return wrapper; | ||
//use amd or just throught to window object. | ||
if (window) { | ||
if (typeof window.define == "function" && window.define.amd) { | ||
window.define("jwt_decode", function() { | ||
return jwtDecode; | ||
}); | ||
} else if (window) { | ||
window.jwt_decode = jwtDecode; | ||
} | ||
} | ||
}))); | ||
//# sourceMappingURL=jwt-decode.js.map |
{ | ||
"name": "jwt-decode", | ||
"version": "3.0.0-beta.0", | ||
"version": "3.0.0-beta.1", | ||
"description": "Decode JWT tokens, mostly useful for browser applications.", | ||
@@ -5,0 +5,0 @@ "main": "dist/jwt-decode.cjs.js", |
Sorry, the diff of this file is not supported yet
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
Major refactor
Supply chain riskPackage has recently undergone a major refactor. It may be unstable or indicate significant internal changes. Use caution when updating to versions that include significant changes.
Found 1 instance in 1 package
New author
Supply chain riskA new npm collaborator published a version of the package for the first time. New collaborators are usually benign additions to a project, but do indicate a change to the security surface area of a package.
Found 1 instance in 1 package
27129
119
0