@wavesenterprise/api-token-refresher
Advanced tools
Comparing version 3.1.0 to 3.1.2-RC1
@@ -1,2 +0,2 @@ | ||
!function(e,t){if("object"==typeof exports&&"object"==typeof module)module.exports=t(require("cross-fetch"),require("axios"));else if("function"==typeof define&&define.amd)define(["cross-fetch","axios"],t);else{var r="object"==typeof exports?t(require("cross-fetch"),require("axios")):t(e["cross-fetch"],e.axios);for(var n in r)("object"==typeof exports?exports:e)[n]=r[n]}}(this,(function(e,t){return function(e){var t={};function r(n){if(t[n])return t[n].exports;var o=t[n]={i:n,l:!1,exports:{}};return e[n].call(o.exports,o,o.exports,r),o.l=!0,o.exports}return r.m=e,r.c=t,r.d=function(e,t,n){r.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:n})},r.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},r.t=function(e,t){if(1&t&&(e=r(e)),8&t)return e;if(4&t&&"object"==typeof e&&e&&e.__esModule)return e;var n=Object.create(null);if(r.r(n),Object.defineProperty(n,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var o in e)r.d(n,o,function(t){return e[t]}.bind(null,o));return n},r.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return r.d(t,"a",t),t},r.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},r.p="",r(r.s=0)}([function(e,t,r){"use strict";var n=this&&this.__assign||function(){return(n=Object.assign||function(e){for(var t,r=1,n=arguments.length;r<n;r++)for(var o in t=arguments[r])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e}).apply(this,arguments)},o=this&&this.__awaiter||function(e,t,r,n){return new(r||(r=Promise))((function(o,i){function s(e){try{c(n.next(e))}catch(e){i(e)}}function a(e){try{c(n.throw(e))}catch(e){i(e)}}function c(e){var t;e.done?o(e.value):(t=e.value,t instanceof r?t:new r((function(e){e(t)}))).then(s,a)}c((n=n.apply(e,t||[])).next())}))},i=this&&this.__generator||function(e,t){var r,n,o,i,s={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]};return i={next:a(0),throw:a(1),return:a(2)},"function"==typeof Symbol&&(i[Symbol.iterator]=function(){return this}),i;function a(i){return function(a){return function(i){if(r)throw new TypeError("Generator is already executing.");for(;s;)try{if(r=1,n&&(o=2&i[0]?n.return:i[0]?n.throw||((o=n.return)&&o.call(n),0):n.next)&&!(o=o.call(n,i[1])).done)return o;switch(n=0,o&&(i=[2&i[0],o.value]),i[0]){case 0:case 1:o=i;break;case 4:return s.label++,{value:i[1],done:!1};case 5:s.label++,n=i[1],i=[0];continue;case 7:i=s.ops.pop(),s.trys.pop();continue;default:if(!(o=s.trys,(o=o.length>0&&o[o.length-1])||6!==i[0]&&2!==i[0])){s=0;continue}if(3===i[0]&&(!o||i[1]>o[0]&&i[1]<o[3])){s.label=i[1];break}if(6===i[0]&&s.label<o[1]){s.label=o[1],o=i;break}if(o&&s.label<o[2]){s.label=o[2],s.ops.push(i);break}o[2]&&s.ops.pop(),s.trys.pop();continue}i=t.call(e,s)}catch(e){i=[6,e],n=0}finally{r=o=0}if(5&i[0])throw i[1];return{value:i[0]?i[1]:void 0,done:!0}}([i,a])}}};Object.defineProperty(t,"__esModule",{value:!0}),t.ApiTokenRefresher=void 0;var s=r(1),a=r(2),c=r(5),u=function(){function e(e){var t=this;this.getAxios=function(){var e=c.default.create(t.axiosRequestConfig);return e.interceptors.request.use((function(e){return o(t,void 0,void 0,(function(){var t;return i(this,(function(r){switch(r.label){case 0:return[4,this.tokenRefresher.getAccessToken()];case 1:return t=r.sent(),e.headers.Authorization="Bearer "+t,[2,e]}}))}))})),e},this.fetch=function(e,r){return void 0===r&&(r={headers:{}}),o(t,void 0,void 0,(function(){var t,o;return i(this,(function(i){switch(i.label){case 0:return[4,this.tokenRefresher.getAccessToken()];case 1:return t=i.sent(),o=n(n({},r),{headers:n(n({},r.headers||{}),{Authorization:"Bearer "+t})}),[2,s.default(e,o)]}}))}))},this.axiosRequestConfig=e.axiosRequestConfig,this.tokenRefresher=new a.TokenRefresher(e)}return e.prototype.init=function(){return{axios:this.getAxios(),fetch:this.fetch}},e}();t.ApiTokenRefresher=u},function(t,r){t.exports=e},function(e,t,r){"use strict";var n=this&&this.__assign||function(){return(n=Object.assign||function(e){for(var t,r=1,n=arguments.length;r<n;r++)for(var o in t=arguments[r])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e}).apply(this,arguments)},o=this&&this.__awaiter||function(e,t,r,n){return new(r||(r=Promise))((function(o,i){function s(e){try{c(n.next(e))}catch(e){i(e)}}function a(e){try{c(n.throw(e))}catch(e){i(e)}}function c(e){var t;e.done?o(e.value):(t=e.value,t instanceof r?t:new r((function(e){e(t)}))).then(s,a)}c((n=n.apply(e,t||[])).next())}))},i=this&&this.__generator||function(e,t){var r,n,o,i,s={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]};return i={next:a(0),throw:a(1),return:a(2)},"function"==typeof Symbol&&(i[Symbol.iterator]=function(){return this}),i;function a(i){return function(a){return function(i){if(r)throw new TypeError("Generator is already executing.");for(;s;)try{if(r=1,n&&(o=2&i[0]?n.return:i[0]?n.throw||((o=n.return)&&o.call(n),0):n.next)&&!(o=o.call(n,i[1])).done)return o;switch(n=0,o&&(i=[2&i[0],o.value]),i[0]){case 0:case 1:o=i;break;case 4:return s.label++,{value:i[1],done:!1};case 5:s.label++,n=i[1],i=[0];continue;case 7:i=s.ops.pop(),s.trys.pop();continue;default:if(!(o=s.trys,(o=o.length>0&&o[o.length-1])||6!==i[0]&&2!==i[0])){s=0;continue}if(3===i[0]&&(!o||i[1]>o[0]&&i[1]<o[3])){s.label=i[1];break}if(6===i[0]&&s.label<o[1]){s.label=o[1],o=i;break}if(o&&s.label<o[2]){s.label=o[2],s.ops.push(i);break}o[2]&&s.ops.pop(),s.trys.pop();continue}i=t.call(e,s)}catch(e){i=[6,e],n=0}finally{r=o=0}if(5&i[0])throw i[1];return{value:i[0]?i[1]:void 0,done:!0}}([i,a])}}};Object.defineProperty(t,"__esModule",{value:!0}),t.TokenRefresher=void 0;var s=r(3),a=r(4),c=function(e){var t=this;this.options=e,this.isRefreshing=!1,this.refreshPromise=Promise.resolve(),this.refreshAttempts=0,this.getAccessToken=function(){return o(t,void 0,void 0,(function(){return i(this,(function(e){switch(e.label){case 0:return this.expTime-this.refreshBeforeExpire<Date.now()&&!this.isRefreshing&&(this.refreshPromise=this.refreshToken()),this.expTime-this.minTimeBeforeExpireToSendReq<Date.now()?[4,this.refreshPromise]:[3,2];case 1:e.sent(),e.label=2;case 2:return[2,this.actualTokenPair.access_token]}}))}))},this.refreshToken=function(){return o(t,void 0,void 0,(function(){var e,t;return i(this,(function(r){switch(r.label){case 0:if(this.refreshAttempts>=this.maxAttemptsToRefreshToken)return this.isRefreshing=!1,[2,Promise.resolve()];r.label=1;case 1:return r.trys.push([1,3,,6]),this.isRefreshing=!0,[4,this.options.refreshCallback(this.actualTokenPair.refresh_token)];case 2:if(!(e=r.sent())||!e.access_token||!e.refresh_token)throw new Error("invalid refreshCallback resp "+e);return this.actualTokenPair=e,this.expTime=this.getExpirationTime(this.actualTokenPair.access_token),"function"==typeof this.options.onChangeAccessToken&&this.options.onChangeAccessToken(e.access_token),this.refreshAttempts=0,this.isRefreshing=!1,[3,6];case 3:return t=r.sent(),this.refreshAttempts++,"function"==typeof this.options.onRefreshFailed?this.options.onRefreshFailed(t):console.log("[ApiTokenRefresher] Failed to refresh token",t),[4,a.sleep(this.sleepAfterError)];case 4:return r.sent(),[4,this.refreshToken()];case 5:return r.sent(),[3,6];case 6:return[2]}}))}))},this.getExpirationTime=function(e){return 1e3*s.default(e).exp},this.actualTokenPair=n({},e.authorization),this.refreshBeforeExpire=e.refreshBeforeExpire||3e4,this.maxAttemptsToRefreshToken=e.maxAttemptsToRefreshToken||5,this.minTimeBeforeExpireToSendReq=e.minTimeBeforeExpireToSendReq||1e3,this.sleepAfterError=e.sleepAfterError||1e3,this.expTime=this.getExpirationTime(this.actualTokenPair.access_token)};t.TokenRefresher=c},function(e,t,r){"use strict";function n(e){this.message=e}r.r(t),r.d(t,"InvalidTokenError",(function(){return s})),n.prototype=new Error,n.prototype.name="InvalidCharacterError";var o="undefined"!=typeof window&&window.atob&&window.atob.bind(window)||function(e){var t=String(e).replace(/=+$/,"");if(t.length%4==1)throw new n("'atob' failed: The string to be decoded is not correctly encoded.");for(var r,o,i=0,s=0,a="";o=t.charAt(s++);~o&&(r=i%4?64*r+o:o,i++%4)?a+=String.fromCharCode(255&r>>(-2*i&6)):0)o="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=".indexOf(o);return a};function i(e){var t=e.replace(/-/g,"+").replace(/_/g,"/");switch(t.length%4){case 0:break;case 2:t+="==";break;case 3:t+="=";break;default:throw"Illegal base64url string!"}try{return function(e){return decodeURIComponent(o(e).replace(/(.)/g,(function(e,t){var r=t.charCodeAt(0).toString(16).toUpperCase();return r.length<2&&(r="0"+r),"%"+r})))}(t)}catch(e){return o(t)}}function s(e){this.message=e}s.prototype=new Error,s.prototype.name="InvalidTokenError",t.default=function(e,t){if("string"!=typeof e)throw new s("Invalid token specified");var r=!0===(t=t||{}).header?0:1;try{return JSON.parse(i(e.split(".")[r]))}catch(e){throw new s("Invalid token specified: "+e.message)}}},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.sleep=void 0,t.sleep=function(e){return new Promise((function(t){return setTimeout(t,e)}))}},function(e,r){e.exports=t}])})); | ||
!function(e,t){if("object"==typeof exports&&"object"==typeof module)module.exports=t(require("cross-fetch"),require("axios"));else if("function"==typeof define&&define.amd)define(["cross-fetch","axios"],t);else{var r="object"==typeof exports?t(require("cross-fetch"),require("axios")):t(e["cross-fetch"],e.axios);for(var n in r)("object"==typeof exports?exports:e)[n]=r[n]}}(this,(function(e,t){return function(e){var t={};function r(n){if(t[n])return t[n].exports;var o=t[n]={i:n,l:!1,exports:{}};return e[n].call(o.exports,o,o.exports,r),o.l=!0,o.exports}return r.m=e,r.c=t,r.d=function(e,t,n){r.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:n})},r.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},r.t=function(e,t){if(1&t&&(e=r(e)),8&t)return e;if(4&t&&"object"==typeof e&&e&&e.__esModule)return e;var n=Object.create(null);if(r.r(n),Object.defineProperty(n,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var o in e)r.d(n,o,function(t){return e[t]}.bind(null,o));return n},r.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return r.d(t,"a",t),t},r.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},r.p="",r(r.s=0)}([function(e,t,r){"use strict";var n=this&&this.__assign||function(){return(n=Object.assign||function(e){for(var t,r=1,n=arguments.length;r<n;r++)for(var o in t=arguments[r])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e}).apply(this,arguments)},o=this&&this.__awaiter||function(e,t,r,n){return new(r||(r=Promise))((function(o,i){function s(e){try{c(n.next(e))}catch(e){i(e)}}function a(e){try{c(n.throw(e))}catch(e){i(e)}}function c(e){var t;e.done?o(e.value):(t=e.value,t instanceof r?t:new r((function(e){e(t)}))).then(s,a)}c((n=n.apply(e,t||[])).next())}))},i=this&&this.__generator||function(e,t){var r,n,o,i,s={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]};return i={next:a(0),throw:a(1),return:a(2)},"function"==typeof Symbol&&(i[Symbol.iterator]=function(){return this}),i;function a(i){return function(a){return function(i){if(r)throw new TypeError("Generator is already executing.");for(;s;)try{if(r=1,n&&(o=2&i[0]?n.return:i[0]?n.throw||((o=n.return)&&o.call(n),0):n.next)&&!(o=o.call(n,i[1])).done)return o;switch(n=0,o&&(i=[2&i[0],o.value]),i[0]){case 0:case 1:o=i;break;case 4:return s.label++,{value:i[1],done:!1};case 5:s.label++,n=i[1],i=[0];continue;case 7:i=s.ops.pop(),s.trys.pop();continue;default:if(!(o=s.trys,(o=o.length>0&&o[o.length-1])||6!==i[0]&&2!==i[0])){s=0;continue}if(3===i[0]&&(!o||i[1]>o[0]&&i[1]<o[3])){s.label=i[1];break}if(6===i[0]&&s.label<o[1]){s.label=o[1],o=i;break}if(o&&s.label<o[2]){s.label=o[2],s.ops.push(i);break}o[2]&&s.ops.pop(),s.trys.pop();continue}i=t.call(e,s)}catch(e){i=[6,e],n=0}finally{r=o=0}if(5&i[0])throw i[1];return{value:i[0]?i[1]:void 0,done:!0}}([i,a])}}};Object.defineProperty(t,"__esModule",{value:!0}),t.ApiTokenRefresher=void 0;var s=r(1),a=r(2),c=r(5),u=function(){function e(e){var t=this;this.getAxios=function(){var e=c.default.create(t.axiosRequestConfig);return e.interceptors.request.use((function(e){return o(t,void 0,void 0,(function(){var t;return i(this,(function(r){switch(r.label){case 0:return[4,this.tokenRefresher.getAccessToken()];case 1:return t=r.sent(),e.headers.Authorization="Bearer "+t,[2,e]}}))}))})),e},this.fetch=function(e,r){return void 0===r&&(r={headers:{}}),o(t,void 0,void 0,(function(){var t,o;return i(this,(function(i){switch(i.label){case 0:return[4,this.tokenRefresher.getAccessToken()];case 1:return t=i.sent(),o=n(n({},r),{headers:n(n({},r.headers||{}),{Authorization:"Bearer "+t})}),[2,s.default(e,o)]}}))}))},this.axiosRequestConfig=e.axiosRequestConfig,this.tokenRefresher=new a.TokenRefresher(e)}return e.prototype.init=function(){return{axios:this.getAxios(),fetch:this.fetch}},e}();t.ApiTokenRefresher=u},function(t,r){t.exports=e},function(e,t,r){"use strict";var n=this&&this.__assign||function(){return(n=Object.assign||function(e){for(var t,r=1,n=arguments.length;r<n;r++)for(var o in t=arguments[r])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e}).apply(this,arguments)},o=this&&this.__awaiter||function(e,t,r,n){return new(r||(r=Promise))((function(o,i){function s(e){try{c(n.next(e))}catch(e){i(e)}}function a(e){try{c(n.throw(e))}catch(e){i(e)}}function c(e){var t;e.done?o(e.value):(t=e.value,t instanceof r?t:new r((function(e){e(t)}))).then(s,a)}c((n=n.apply(e,t||[])).next())}))},i=this&&this.__generator||function(e,t){var r,n,o,i,s={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]};return i={next:a(0),throw:a(1),return:a(2)},"function"==typeof Symbol&&(i[Symbol.iterator]=function(){return this}),i;function a(i){return function(a){return function(i){if(r)throw new TypeError("Generator is already executing.");for(;s;)try{if(r=1,n&&(o=2&i[0]?n.return:i[0]?n.throw||((o=n.return)&&o.call(n),0):n.next)&&!(o=o.call(n,i[1])).done)return o;switch(n=0,o&&(i=[2&i[0],o.value]),i[0]){case 0:case 1:o=i;break;case 4:return s.label++,{value:i[1],done:!1};case 5:s.label++,n=i[1],i=[0];continue;case 7:i=s.ops.pop(),s.trys.pop();continue;default:if(!(o=s.trys,(o=o.length>0&&o[o.length-1])||6!==i[0]&&2!==i[0])){s=0;continue}if(3===i[0]&&(!o||i[1]>o[0]&&i[1]<o[3])){s.label=i[1];break}if(6===i[0]&&s.label<o[1]){s.label=o[1],o=i;break}if(o&&s.label<o[2]){s.label=o[2],s.ops.push(i);break}o[2]&&s.ops.pop(),s.trys.pop();continue}i=t.call(e,s)}catch(e){i=[6,e],n=0}finally{r=o=0}if(5&i[0])throw i[1];return{value:i[0]?i[1]:void 0,done:!0}}([i,a])}}};Object.defineProperty(t,"__esModule",{value:!0}),t.TokenRefresher=void 0;var s=r(3),a=r(4),c=function(e){var t=this;this.options=e,this.isRefreshing=!1,this.refreshPromise=Promise.resolve(),this.refreshAttempts=0,this.getAccessToken=function(){return o(t,void 0,void 0,(function(){return i(this,(function(e){switch(e.label){case 0:return this.expTime-this.refreshBeforeExpire<Date.now()&&!this.isRefreshing&&(this.refreshPromise=this.refreshToken()),this.expTime-this.minTimeBeforeExpireToSendReq<Date.now()?[4,this.refreshPromise]:[3,2];case 1:e.sent(),e.label=2;case 2:return[2,this.actualTokenPair.access_token]}}))}))},this.refreshToken=function(){return o(t,void 0,void 0,(function(){var e,t;return i(this,(function(r){switch(r.label){case 0:if(this.refreshAttempts>=this.maxAttemptsToRefreshToken)return this.isRefreshing=!1,[2,Promise.resolve()];r.label=1;case 1:return r.trys.push([1,3,,6]),this.isRefreshing=!0,[4,this.options.refreshCallback(this.actualTokenPair.refresh_token)];case 2:if(!(e=r.sent())||!e.access_token||!e.refresh_token)throw new Error("invalid refreshCallback resp "+e);return this.actualTokenPair=e,this.expTime=this.getExpirationTime(this.actualTokenPair.access_token),"function"==typeof this.options.onChangeAccessToken&&this.options.onChangeAccessToken(e.access_token),this.refreshAttempts=0,this.isRefreshing=!1,[3,6];case 3:return t=r.sent(),this.refreshAttempts++,"function"==typeof this.options.onRefreshFailed?this.options.onRefreshFailed(t):console.log("[ApiTokenRefresher] Failed to refresh token",t),[4,a.sleep(this.sleepAfterError)];case 4:return r.sent(),[4,this.refreshToken()];case 5:return r.sent(),[3,6];case 6:return[2]}}))}))},this.getExpirationTime=function(e){return 1e3*s.default(e).exp},this.actualTokenPair=n({},e.authorization),this.refreshBeforeExpire=e.refreshBeforeExpire||3e4,this.maxAttemptsToRefreshToken=e.maxAttemptsToRefreshToken||5,this.minTimeBeforeExpireToSendReq=e.minTimeBeforeExpireToSendReq||1e3,this.sleepAfterError=e.sleepAfterError||1e3,this.expTime=this.getExpirationTime(this.actualTokenPair.access_token)};t.TokenRefresher=c},function(e,t,r){"use strict";function n(e){this.message=e}r.r(t),r.d(t,"InvalidTokenError",(function(){return s})),n.prototype=new Error,n.prototype.name="InvalidCharacterError";var o="undefined"!=typeof window&&window.atob&&window.atob.bind(window)||function(e){var t=String(e).replace(/=+$/,"");if(t.length%4==1)throw new n("'atob' failed: The string to be decoded is not correctly encoded.");for(var r,o,i=0,s=0,a="";o=t.charAt(s++);~o&&(r=i%4?64*r+o:o,i++%4)?a+=String.fromCharCode(255&r>>(-2*i&6)):0)o="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=".indexOf(o);return a};function i(e){var t=e.replace(/-/g,"+").replace(/_/g,"/");switch(t.length%4){case 0:break;case 2:t+="==";break;case 3:t+="=";break;default:throw"Illegal base64url string!"}try{return function(e){return decodeURIComponent(o(e).replace(/(.)/g,(function(e,t){var r=t.charCodeAt(0).toString(16).toUpperCase();return r.length<2&&(r="0"+r),"%"+r})))}(t)}catch(e){return o(t)}}function s(e){this.message=e}s.prototype=new Error,s.prototype.name="InvalidTokenError",t.default=function(e,t){if("string"!=typeof e)throw new s("Invalid token specified");var r=!0===(t=t||{}).header?0:1;try{return JSON.parse(i(e.split(".")[r]))}catch(e){throw new s("Invalid token specified: "+e.message)}}},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.sleep=void 0;t.sleep=function(e){return new Promise((function(t){return setTimeout(t,e)}))}},function(e,r){e.exports=t}])})); | ||
//# sourceMappingURL=index.js.map |
{ | ||
"name": "@wavesenterprise/api-token-refresher", | ||
"version": "3.1.0", | ||
"version": "3.1.2-RC1", | ||
"description": "", | ||
"scripts": { | ||
"build": "webpack --config webpack/webpack.config.js --mode=production --progress --display-error-details", | ||
"build": "webpack --config webpack/webpack.config.js --mode=production --progress", | ||
"lint": "npx eslint . --ext .ts,.tsx,.js", | ||
@@ -11,26 +11,26 @@ "tsc": "npx tsc --noEmit", | ||
}, | ||
"author": "Mikhail Tokarev", | ||
"author": "WE Voting team", | ||
"license": "Apache-2.0", | ||
"devDependencies": { | ||
"@babel/core": "^7.12.3", | ||
"@babel/core": "^7.13.10", | ||
"@types/jwt-decode": "^3.1.0", | ||
"@wavesenterprise/eslint-config": "^0.1.0", | ||
"@wavesenterprise/eslint-config": "^0.1.4", | ||
"axios": "^0.21.1", | ||
"cross-fetch": "^3.1.1", | ||
"dotenv": "^8.2.0", | ||
"eslint": "^7.10.0", | ||
"ts-loader": "6.2.1", | ||
"ts-node": "^9.0.0", | ||
"typescript": "^3.9.5", | ||
"webpack": "4.42.0", | ||
"webpack-cli": "^3.3.11", | ||
"webpack-dev-server": "3.7.1", | ||
"cross-fetch": "3.0.6", | ||
"axios": "0.21.0" | ||
"eslint": "^7.20.0", | ||
"ts-loader": "^8.0.18", | ||
"ts-node": "^9.1.1", | ||
"typescript": "^4.2.0", | ||
"webpack": "^4.46.0", | ||
"webpack-cli": "^4.5.0", | ||
"webpack-dev-server": "3.11.2" | ||
}, | ||
"dependencies": { | ||
"jwt-decode": "3.1.1" | ||
"jwt-decode": "^3.1.2" | ||
}, | ||
"peerDependencies": { | ||
"cross-fetch": "3.0.6", | ||
"axios": "0.21.0" | ||
"axios": "^0.21.1", | ||
"cross-fetch": "^3.1.1" | ||
} | ||
} |
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
No v1
QualityPackage is not semver >=1. This means it is not stable and does not support ^ ranges.
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
27822
3
+ Addedaxios@0.21.4(transitive)
+ Addedcross-fetch@3.2.0(transitive)
+ Addedjwt-decode@3.1.2(transitive)
+ Addednode-fetch@2.7.0(transitive)
+ Addedtr46@0.0.3(transitive)
+ Addedwebidl-conversions@3.0.1(transitive)
+ Addedwhatwg-url@5.0.0(transitive)
- Removedaxios@0.21.0(transitive)
- Removedcross-fetch@3.0.6(transitive)
- Removedjwt-decode@3.1.1(transitive)
- Removednode-fetch@2.6.1(transitive)
Updatedjwt-decode@^3.1.2