oidc-spa 6.12.4 → 6.13.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +5 -6
- package/backend.js +19 -9
- package/backend.js.map +1 -1
- package/core/OidcInitializationError.js +2 -2
- package/core/createOidc.js +4 -4
- package/core/createOidc.js.map +1 -1
- package/core/loginSilent.js +2 -2
- package/core/ongoingLoginOrRefreshProcesses.js +2 -2
- package/mock/oidc.js +2 -2
- package/mock/react.d.ts +16 -11
- package/package.json +2 -2
- package/react/react.d.ts +7 -2
- package/react/react.js +18 -12
- package/react/react.js.map +1 -1
- package/src/core/createOidc.ts +1 -1
- package/src/react/react.tsx +18 -3
- package/tools/getIsValidRemoteJson.js +2 -2
- package/tools/startCountdown.js +2 -2
- package/tools/subscribeToUserInteraction.js +2 -2
- package/vendor/frontend/oidc-client-ts-and-jwt-decode.js +1 -1
- package/vendor/frontend/worker-timers.js +1 -1
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
(()=>{var e={859:function(e,t,r){"use strict";var n=this&&this.__createBinding||(Object.create?function(e,t,r,n){void 0===n&&(n=r);var i=Object.getOwnPropertyDescriptor(t,r);i&&!("get"in i?!t.__esModule:i.writable||i.configurable)||(i={enumerable:!0,get:function(){return t[r]}}),Object.defineProperty(e,n,i)}:function(e,t,r,n){void 0===n&&(n=r),e[n]=t[r]}),
|
|
1
|
+
(()=>{var e={859:function(e,t,r){"use strict";var n,i=this&&this.__createBinding||(Object.create?function(e,t,r,n){void 0===n&&(n=r);var i=Object.getOwnPropertyDescriptor(t,r);i&&!("get"in i?!t.__esModule:i.writable||i.configurable)||(i={enumerable:!0,get:function(){return t[r]}}),Object.defineProperty(e,n,i)}:function(e,t,r,n){void 0===n&&(n=r),e[n]=t[r]}),o=this&&this.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),a=this&&this.__importStar||(n=function(e){return n=Object.getOwnPropertyNames||function(e){var t=[];for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&(t[t.length]=r);return t},n(e)},function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var r=n(e),a=0;a<r.length;a++)"default"!==r[a]&&i(t,e,r[a]);return o(t,e),t});Object.defineProperty(t,"__esModule",{value:!0}),t.workerTimers=void 0;var s=a(r(236));t.workerTimers=s},455:function(e,t){var r,n,i,o;function a(e){return a="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},a(e)}o=function(e){"use strict";var t,r=void 0===Number.MAX_SAFE_INTEGER?9007199254740991:Number.MAX_SAFE_INTEGER,n=1073741824,i=new WeakMap,o=function(e,t){return function(i){var o=t.get(i),a=void 0===o?i.size:o<n?o+1:0;if(!i.has(a))return e(i,a);if(i.size<536870912){for(;i.has(a);)a=Math.floor(Math.random()*n);return e(i,a)}if(i.size>r)throw new Error("Congratulations, you created a collection of unique numbers which uses all available integers!");for(;i.has(a);)a=Math.floor(Math.random()*r);return e(i,a)}}((t=i,function(e,r){return t.set(e,r),r}),i),a=function(e){return function(t){var r=e(t);return t.add(r),r}}(o);e.addUniqueNumber=a,e.generateUniqueNumber=o},"object"===a(t)?o(t):(n=[t],void 0===(i="function"==typeof(r=o)?r.apply(t,n):r)||(e.exports=i))},236:(e,t,r)=>{"use strict";r.r(t),r.d(t,{clearInterval:()=>a,clearTimeout:()=>s,setInterval:()=>u,setTimeout:()=>l});var n,i=r(455),o=(n=null,function(){if(null!==n)return n;var e=new Blob(['(()=>{"use strict";const e=new Map,t=new Map,r=(e,t)=>{let r,o;const i=performance.now();r=i,o=e-Math.max(0,i-t);return{expected:r+o,remainingDelay:o}},o=(e,t,r,i)=>{const s=performance.now();s>r?postMessage({id:null,method:"call",params:{timerId:t,timerType:i}}):e.set(t,setTimeout(o,r-s,e,t,r,i))};addEventListener("message",(i=>{let{data:s}=i;try{if("clear"===s.method){const{id:r,params:{timerId:o,timerType:i}}=s;if("interval"===i)(t=>{const r=e.get(t);if(void 0===r)throw new Error(\'There is no interval scheduled with the given id "\'.concat(t,\'".\'));clearTimeout(r),e.delete(t)})(o),postMessage({error:null,id:r});else{if("timeout"!==i)throw new Error(\'The given type "\'.concat(i,\'" is not supported\'));(e=>{const r=t.get(e);if(void 0===r)throw new Error(\'There is no timeout scheduled with the given id "\'.concat(e,\'".\'));clearTimeout(r),t.delete(e)})(o),postMessage({error:null,id:r})}}else{if("set"!==s.method)throw new Error(\'The given method "\'.concat(s.method,\'" is not supported\'));{const{params:{delay:i,now:n,timerId:a,timerType:d}}=s;if("interval"===d)((t,i,s)=>{const{expected:n,remainingDelay:a}=r(t,s);e.set(i,setTimeout(o,a,e,i,n,"interval"))})(i,a,n);else{if("timeout"!==d)throw new Error(\'The given type "\'.concat(d,\'" is not supported\'));((e,i,s)=>{const{expected:n,remainingDelay:a}=r(e,s);t.set(i,setTimeout(o,a,t,i,n,"timeout"))})(i,a,n)}}}}catch(e){postMessage({error:{message:e.message},id:s.id,result:null})}}))})();'],{type:"application/javascript; charset=utf-8"}),t=URL.createObjectURL(e);return n=function(e){var t=new Map([[0,function(){}]]),r=new Map([[0,function(){}]]),n=new Map,o=new Worker(e);return o.addEventListener("message",(function(e){var i=e.data;if(function(e){return void 0!==e.method&&"call"===e.method}(i)){var o=i.params,a=o.timerId,s=o.timerType;if("interval"===s){var u=t.get(a);if("number"==typeof u){var l=n.get(u);if(void 0===l||l.timerId!==a||l.timerType!==s)throw new Error("The timer is in an undefined state.")}else{if(void 0===u)throw new Error("The timer is in an undefined state.");u()}}else if("timeout"===s){var d=r.get(a);if("number"==typeof d){var c=n.get(d);if(void 0===c||c.timerId!==a||c.timerType!==s)throw new Error("The timer is in an undefined state.")}else{if(void 0===d)throw new Error("The timer is in an undefined state.");d(),r.delete(a)}}}else{if(!function(e){return null===e.error&&"number"==typeof e.id}(i)){var m=i.error.message;throw new Error(m)}var f=i.id,p=n.get(f);if(void 0===p)throw new Error("The timer is in an undefined state.");var v=p.timerId,h=p.timerType;n.delete(f),"interval"===h?t.delete(v):r.delete(v)}})),{clearInterval:function(e){var r=(0,i.generateUniqueNumber)(n);n.set(r,{timerId:e,timerType:"interval"}),t.set(e,r),o.postMessage({id:r,method:"clear",params:{timerId:e,timerType:"interval"}})},clearTimeout:function(e){var t=(0,i.generateUniqueNumber)(n);n.set(t,{timerId:e,timerType:"timeout"}),r.set(e,t),o.postMessage({id:t,method:"clear",params:{timerId:e,timerType:"timeout"}})},setInterval:function(e){var r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,n=(0,i.generateUniqueNumber)(t);return t.set(n,(function(){e(),"function"==typeof t.get(n)&&o.postMessage({id:null,method:"set",params:{delay:r,now:performance.now(),timerId:n,timerType:"interval"}})})),o.postMessage({id:null,method:"set",params:{delay:r,now:performance.now(),timerId:n,timerType:"interval"}}),n},setTimeout:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,n=(0,i.generateUniqueNumber)(r);return r.set(n,e),o.postMessage({id:null,method:"set",params:{delay:t,now:performance.now(),timerId:n,timerType:"timeout"}}),n}}}(t),setTimeout((function(){return URL.revokeObjectURL(t)})),n}),a=function(e){return o().clearInterval(e)},s=function(e){return o().clearTimeout(e)},u=function(){var e;return(e=o()).setInterval.apply(e,arguments)},l=function(){var e;return(e=o()).setTimeout.apply(e,arguments)}}},t={};function r(n){var i=t[n];if(void 0!==i)return i.exports;var o=t[n]={exports:{}};return e[n].call(o.exports,o,o.exports,r),o.exports}r.d=(e,t)=>{for(var n in t)r.o(t,n)&&!r.o(e,n)&&Object.defineProperty(e,n,{enumerable:!0,get:t[n]})},r.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),r.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})};var n=r(859);module.exports=n})();
|
|
2
2
|
exports.__oidcSpaBundle = true;
|