Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

jwt-decode

Package Overview
Dependencies
Maintainers
38
Versions
29
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

jwt-decode - npm Package Compare versions

Comparing version 3.0.0-beta.0 to 3.0.0-beta.1

23

build/jwt-decode.js

@@ -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

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc