@manojadams/session-store
Advanced tools
Comparing version 1.0.13 to 1.0.14
@@ -1,2 +0,2 @@ | ||
function t(e,n){return t=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t},t(e,n)}function e(t,n,s){if(!t.s){if(s instanceof i){if(!s.s)return void(s.o=e.bind(null,t,n));1&n&&(n=s.s),s=s.v}if(s&&s.then)return void s.then(e.bind(null,t,n),e.bind(null,t,2));t.s=n,t.v=s;var o=t.o;o&&o(t)}}var n=/*#__PURE__*/function(n){var o,r;function a(t){var e;return(e=n.call(this,t)||this).isStoreReady=void 0,e._deps=void 0,e.isStoreReady=!1,e._deps=[].slice.call(arguments,1),e}r=n,(o=a).prototype=Object.create(r.prototype),o.prototype.constructor=o,t(o,r);var h=a.prototype;return h.setStoreType=function(t){this._storeType=t},h.init=function(){try{var t=this;if(n.prototype.init.call(t),t.isStoreReady)return Promise.resolve();var o=function(){if(t._deps){var n=0,o=function(t,n,o){for(var r;;){var a=t();if(s(a)&&(a=a.v),!a)return h;if(a.then){r=0;break}var h=o();if(h&&h.then){if(!s(h)){r=1;break}h=h.s}if(n){var u=n();if(u&&u.then&&!s(u)){r=2;break}}}var c=new i,d=e.bind(null,c,2);return(0===r?a.then(v):1===r?h.then(f):u.then(_)).then(void 0,d),c;function f(i){h=i;do{if(n&&(u=n())&&u.then&&!s(u))return void u.then(_).then(void 0,d);if(!(a=t())||s(a)&&!a.v)return void e(c,1,h);if(a.then)return void a.then(v).then(void 0,d);s(h=o())&&(h=h.v)}while(!h||!h.then);h.then(f).then(void 0,d)}function v(t){t?(h=o())&&h.then?h.then(f).then(void 0,d):f(h):e(c,1,h)}function _(){(a=t())?a.then?a.then(v).then(void 0,d):v(a):e(c,1,h)}}(function(){return n<t._deps.length},function(){return n++},function(){return Promise.resolve(t._deps[n].init()).then(function(){})});if(o&&o.then)return o.then(function(){})}}();return Promise.resolve(o&&o.then?o.then(function(){}):void 0)}catch(t){return Promise.reject(t)}},h.destroy=function(){if(n.prototype.destroy.call(this),this._deps)for(var t=0;t<this._deps.length;t++)this._deps[t].destroy();this.isReady=!1,this.isStoreReady=!1},a}(/*#__PURE__*/function(){function t(t,e){this._storeType=void 0,this._sessionData=void 0,this._name=void 0,this._createdAt=void 0,this._updatedAt=void 0,this.isReady=void 0,this._name=t||this.constructor.name,this._storeType=e,this._sessionData={},this._createdAt=new Date,this._updatedAt=new Date,this.isReady=!1}var e=t.prototype;return e.init=function(t){var e=(this._storeType||sessionStorage).getItem(this._name);e&&(this._sessionData=JSON.parse(e),this.isReady=!0)},e.getData=function(t){return this._sessionData[t]},e.setData=function(t,e){this._sessionData[t]=e,this._updatedAt=new Date},e._cleanup=function(){var t=this._sessionData._createdAt||this._createdAt.toISOString(),e=this._updatedAt.toISOString();this._sessionData._createdAt=t,this._sessionData._updatedAt=e},e.destroy=function(){this._cleanup(),(this._storeType||sessionStorage).setItem(this._name,JSON.stringify(this._sessionData))},e.remove=function(){(this._storeType||sessionStorage).removeItem(this._name)},t}());const i=/*#__PURE__*/function(){function t(){}return t.prototype.then=function(n,i){const s=new t,o=this.s;if(o){const t=1&o?n:i;if(t){try{e(s,1,t(this.v))}catch(t){e(s,2,t)}return s}return this}return this.o=function(t){try{const o=t.v;1&t.s?e(s,1,n?n(o):o):i?e(s,1,i(o)):e(s,2,o)}catch(t){e(s,2,t)}},s},t}();function s(t){return t instanceof i&&1&t.s}module.exports=n; | ||
function t(e,n){return t=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t},t(e,n)}function e(t,n,s){if(!t.s){if(s instanceof i){if(!s.s)return void(s.o=e.bind(null,t,n));1&n&&(n=s.s),s=s.v}if(s&&s.then)return void s.then(e.bind(null,t,n),e.bind(null,t,2));t.s=n,t.v=s;var o=t.o;o&&o(t)}}var n=/*#__PURE__*/function(n){var o,r;function a(t){var e;return(e=n.call(this,t)||this).isStoreReady=void 0,e._deps=void 0,e.isStoreReady=!1,e._deps=[].slice.call(arguments,1),e}r=n,(o=a).prototype=Object.create(r.prototype),o.prototype.constructor=o,t(o,r);var h=a.prototype;return h.setStoreType=function(t){this._storeType=t},h.init=function(){try{var t=this;if(n.prototype.init.call(t),t.isStoreReady)return Promise.resolve();var o=function(){if(t._deps){var n=0,o=function(t,n,o){for(var r;;){var a=t();if(s(a)&&(a=a.v),!a)return h;if(a.then){r=0;break}var h=o();if(h&&h.then){if(!s(h)){r=1;break}h=h.s}if(n){var u=n();if(u&&u.then&&!s(u)){r=2;break}}}var c=new i,d=e.bind(null,c,2);return(0===r?a.then(v):1===r?h.then(f):u.then(_)).then(void 0,d),c;function f(i){h=i;do{if(n&&(u=n())&&u.then&&!s(u))return void u.then(_).then(void 0,d);if(!(a=t())||s(a)&&!a.v)return void e(c,1,h);if(a.then)return void a.then(v).then(void 0,d);s(h=o())&&(h=h.v)}while(!h||!h.then);h.then(f).then(void 0,d)}function v(t){t?(h=o())&&h.then?h.then(f).then(void 0,d):f(h):e(c,1,h)}function _(){(a=t())?a.then?a.then(v).then(void 0,d):v(a):e(c,1,h)}}(function(){return n<t._deps.length},function(){return n++},function(){return Promise.resolve(t._deps[n].init()).then(function(){})});if(o&&o.then)return o.then(function(){})}}();return Promise.resolve(o&&o.then?o.then(function(){}):void 0)}catch(t){return Promise.reject(t)}},h.destroy=function(){if(n.prototype.destroy.call(this),this._deps)for(var t=0;t<this._deps.length;t++)this._deps[t].destroy();this.isReady=!1,this.isStoreReady=!1},a}(/*#__PURE__*/function(){function t(t,e){this._storeType=void 0,this._sessionData=void 0,this._name=void 0,this._createdAt=void 0,this._updatedAt=void 0,this.isReady=void 0,this._name=t||this.constructor.name,this._storeType=e,this._sessionData={},this._createdAt=new Date,this._updatedAt=new Date,this.isReady=!1}var e=t.prototype;return e.init=function(t){var e=(this._storeType||sessionStorage).getItem(this._name);e&&(this._sessionData=JSON.parse(e),this.isReady=!0)},e.getData=function(t){return this._sessionData[t]},e.setData=function(t,e){this._sessionData[t]=e,this._updatedAt=new Date},e._cleanup=function(){var t=this._sessionData._createdAt||this._createdAt.toISOString(),e=this._updatedAt.toISOString();this._sessionData._createdAt=t,this._sessionData._updatedAt=e},e.destroy=function(){this._cleanup(),(this._storeType||sessionStorage).setItem(this._name,JSON.stringify(this._sessionData))},e.remove=function(){var t=this,e=this._storeType||sessionStorage;Object.keys(this._sessionData).forEach(function(e){t._sessionData[e]=void 0}),e.removeItem(this._name)},t}());const i=/*#__PURE__*/function(){function t(){}return t.prototype.then=function(n,i){const s=new t,o=this.s;if(o){const t=1&o?n:i;if(t){try{e(s,1,t(this.v))}catch(t){e(s,2,t)}return s}return this}return this.o=function(t){try{const o=t.v;1&t.s?e(s,1,n?n(o):o):i?e(s,1,i(o)):e(s,2,o)}catch(t){e(s,2,t)}},s},t}();function s(t){return t instanceof i&&1&t.s}module.exports=n; | ||
//# sourceMappingURL=index.js.map |
@@ -1,2 +0,2 @@ | ||
function t(e,n){return t=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t},t(e,n)}function e(t,n,s){if(!t.s){if(s instanceof i){if(!s.s)return void(s.o=e.bind(null,t,n));1&n&&(n=s.s),s=s.v}if(s&&s.then)return void s.then(e.bind(null,t,n),e.bind(null,t,2));t.s=n,t.v=s;var o=t.o;o&&o(t)}}var n=/*#__PURE__*/function(n){var o,r;function a(t){var e;return(e=n.call(this,t)||this).isStoreReady=void 0,e._deps=void 0,e.isStoreReady=!1,e._deps=[].slice.call(arguments,1),e}r=n,(o=a).prototype=Object.create(r.prototype),o.prototype.constructor=o,t(o,r);var h=a.prototype;return h.setStoreType=function(t){this._storeType=t},h.init=function(){try{var t=this;if(n.prototype.init.call(t),t.isStoreReady)return Promise.resolve();var o=function(){if(t._deps){var n=0,o=function(t,n,o){for(var r;;){var a=t();if(s(a)&&(a=a.v),!a)return h;if(a.then){r=0;break}var h=o();if(h&&h.then){if(!s(h)){r=1;break}h=h.s}if(n){var u=n();if(u&&u.then&&!s(u)){r=2;break}}}var c=new i,d=e.bind(null,c,2);return(0===r?a.then(v):1===r?h.then(f):u.then(_)).then(void 0,d),c;function f(i){h=i;do{if(n&&(u=n())&&u.then&&!s(u))return void u.then(_).then(void 0,d);if(!(a=t())||s(a)&&!a.v)return void e(c,1,h);if(a.then)return void a.then(v).then(void 0,d);s(h=o())&&(h=h.v)}while(!h||!h.then);h.then(f).then(void 0,d)}function v(t){t?(h=o())&&h.then?h.then(f).then(void 0,d):f(h):e(c,1,h)}function _(){(a=t())?a.then?a.then(v).then(void 0,d):v(a):e(c,1,h)}}(function(){return n<t._deps.length},function(){return n++},function(){return Promise.resolve(t._deps[n].init()).then(function(){})});if(o&&o.then)return o.then(function(){})}}();return Promise.resolve(o&&o.then?o.then(function(){}):void 0)}catch(t){return Promise.reject(t)}},h.destroy=function(){if(n.prototype.destroy.call(this),this._deps)for(var t=0;t<this._deps.length;t++)this._deps[t].destroy();this.isReady=!1,this.isStoreReady=!1},a}(/*#__PURE__*/function(){function t(t,e){this._storeType=void 0,this._sessionData=void 0,this._name=void 0,this._createdAt=void 0,this._updatedAt=void 0,this.isReady=void 0,this._name=t||this.constructor.name,this._storeType=e,this._sessionData={},this._createdAt=new Date,this._updatedAt=new Date,this.isReady=!1}var e=t.prototype;return e.init=function(t){var e=(this._storeType||sessionStorage).getItem(this._name);e&&(this._sessionData=JSON.parse(e),this.isReady=!0)},e.getData=function(t){return this._sessionData[t]},e.setData=function(t,e){this._sessionData[t]=e,this._updatedAt=new Date},e._cleanup=function(){var t=this._sessionData._createdAt||this._createdAt.toISOString(),e=this._updatedAt.toISOString();this._sessionData._createdAt=t,this._sessionData._updatedAt=e},e.destroy=function(){this._cleanup(),(this._storeType||sessionStorage).setItem(this._name,JSON.stringify(this._sessionData))},e.remove=function(){(this._storeType||sessionStorage).removeItem(this._name)},t}());const i=/*#__PURE__*/function(){function t(){}return t.prototype.then=function(n,i){const s=new t,o=this.s;if(o){const t=1&o?n:i;if(t){try{e(s,1,t(this.v))}catch(t){e(s,2,t)}return s}return this}return this.o=function(t){try{const o=t.v;1&t.s?e(s,1,n?n(o):o):i?e(s,1,i(o)):e(s,2,o)}catch(t){e(s,2,t)}},s},t}();function s(t){return t instanceof i&&1&t.s}export{n as default}; | ||
function t(e,n){return t=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t},t(e,n)}function e(t,n,s){if(!t.s){if(s instanceof i){if(!s.s)return void(s.o=e.bind(null,t,n));1&n&&(n=s.s),s=s.v}if(s&&s.then)return void s.then(e.bind(null,t,n),e.bind(null,t,2));t.s=n,t.v=s;var o=t.o;o&&o(t)}}var n=/*#__PURE__*/function(n){var o,r;function a(t){var e;return(e=n.call(this,t)||this).isStoreReady=void 0,e._deps=void 0,e.isStoreReady=!1,e._deps=[].slice.call(arguments,1),e}r=n,(o=a).prototype=Object.create(r.prototype),o.prototype.constructor=o,t(o,r);var h=a.prototype;return h.setStoreType=function(t){this._storeType=t},h.init=function(){try{var t=this;if(n.prototype.init.call(t),t.isStoreReady)return Promise.resolve();var o=function(){if(t._deps){var n=0,o=function(t,n,o){for(var r;;){var a=t();if(s(a)&&(a=a.v),!a)return h;if(a.then){r=0;break}var h=o();if(h&&h.then){if(!s(h)){r=1;break}h=h.s}if(n){var u=n();if(u&&u.then&&!s(u)){r=2;break}}}var c=new i,d=e.bind(null,c,2);return(0===r?a.then(v):1===r?h.then(f):u.then(_)).then(void 0,d),c;function f(i){h=i;do{if(n&&(u=n())&&u.then&&!s(u))return void u.then(_).then(void 0,d);if(!(a=t())||s(a)&&!a.v)return void e(c,1,h);if(a.then)return void a.then(v).then(void 0,d);s(h=o())&&(h=h.v)}while(!h||!h.then);h.then(f).then(void 0,d)}function v(t){t?(h=o())&&h.then?h.then(f).then(void 0,d):f(h):e(c,1,h)}function _(){(a=t())?a.then?a.then(v).then(void 0,d):v(a):e(c,1,h)}}(function(){return n<t._deps.length},function(){return n++},function(){return Promise.resolve(t._deps[n].init()).then(function(){})});if(o&&o.then)return o.then(function(){})}}();return Promise.resolve(o&&o.then?o.then(function(){}):void 0)}catch(t){return Promise.reject(t)}},h.destroy=function(){if(n.prototype.destroy.call(this),this._deps)for(var t=0;t<this._deps.length;t++)this._deps[t].destroy();this.isReady=!1,this.isStoreReady=!1},a}(/*#__PURE__*/function(){function t(t,e){this._storeType=void 0,this._sessionData=void 0,this._name=void 0,this._createdAt=void 0,this._updatedAt=void 0,this.isReady=void 0,this._name=t||this.constructor.name,this._storeType=e,this._sessionData={},this._createdAt=new Date,this._updatedAt=new Date,this.isReady=!1}var e=t.prototype;return e.init=function(t){var e=(this._storeType||sessionStorage).getItem(this._name);e&&(this._sessionData=JSON.parse(e),this.isReady=!0)},e.getData=function(t){return this._sessionData[t]},e.setData=function(t,e){this._sessionData[t]=e,this._updatedAt=new Date},e._cleanup=function(){var t=this._sessionData._createdAt||this._createdAt.toISOString(),e=this._updatedAt.toISOString();this._sessionData._createdAt=t,this._sessionData._updatedAt=e},e.destroy=function(){this._cleanup(),(this._storeType||sessionStorage).setItem(this._name,JSON.stringify(this._sessionData))},e.remove=function(){var t=this,e=this._storeType||sessionStorage;Object.keys(this._sessionData).forEach(function(e){t._sessionData[e]=void 0}),e.removeItem(this._name)},t}());const i=/*#__PURE__*/function(){function t(){}return t.prototype.then=function(n,i){const s=new t,o=this.s;if(o){const t=1&o?n:i;if(t){try{e(s,1,t(this.v))}catch(t){e(s,2,t)}return s}return this}return this.o=function(t){try{const o=t.v;1&t.s?e(s,1,n?n(o):o):i?e(s,1,i(o)):e(s,2,o)}catch(t){e(s,2,t)}},s},t}();function s(t){return t instanceof i&&1&t.s}export{n as default}; | ||
//# sourceMappingURL=index.modern.js.map |
@@ -1,2 +0,2 @@ | ||
!function(t,e){"object"==typeof exports&&"undefined"!=typeof module?module.exports=e():"function"==typeof define&&define.amd?define(e):(t||self).sessionStore=e()}(this,function(){function t(e,n){return t=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t},t(e,n)}function e(t,n,o){if(!t.s){if(o instanceof i){if(!o.s)return void(o.o=e.bind(null,t,n));1&n&&(n=o.s),o=o.v}if(o&&o.then)return void o.then(e.bind(null,t,n),e.bind(null,t,2));t.s=n,t.v=o;var s=t.o;s&&s(t)}}var n=/*#__PURE__*/function(n){var s,r;function a(t){var e;return(e=n.call(this,t)||this).isStoreReady=void 0,e._deps=void 0,e.isStoreReady=!1,e._deps=[].slice.call(arguments,1),e}r=n,(s=a).prototype=Object.create(r.prototype),s.prototype.constructor=s,t(s,r);var h=a.prototype;return h.setStoreType=function(t){this._storeType=t},h.init=function(){try{var t=this;if(n.prototype.init.call(t),t.isStoreReady)return Promise.resolve();var s=function(){if(t._deps){var n=0,s=function(t,n,s){for(var r;;){var a=t();if(o(a)&&(a=a.v),!a)return h;if(a.then){r=0;break}var h=s();if(h&&h.then){if(!o(h)){r=1;break}h=h.s}if(n){var u=n();if(u&&u.then&&!o(u)){r=2;break}}}var d=new i,f=e.bind(null,d,2);return(0===r?a.then(v):1===r?h.then(c):u.then(p)).then(void 0,f),d;function c(i){h=i;do{if(n&&(u=n())&&u.then&&!o(u))return void u.then(p).then(void 0,f);if(!(a=t())||o(a)&&!a.v)return void e(d,1,h);if(a.then)return void a.then(v).then(void 0,f);o(h=s())&&(h=h.v)}while(!h||!h.then);h.then(c).then(void 0,f)}function v(t){t?(h=s())&&h.then?h.then(c).then(void 0,f):c(h):e(d,1,h)}function p(){(a=t())?a.then?a.then(v).then(void 0,f):v(a):e(d,1,h)}}(function(){return n<t._deps.length},function(){return n++},function(){return Promise.resolve(t._deps[n].init()).then(function(){})});if(s&&s.then)return s.then(function(){})}}();return Promise.resolve(s&&s.then?s.then(function(){}):void 0)}catch(t){return Promise.reject(t)}},h.destroy=function(){if(n.prototype.destroy.call(this),this._deps)for(var t=0;t<this._deps.length;t++)this._deps[t].destroy();this.isReady=!1,this.isStoreReady=!1},a}(/*#__PURE__*/function(){function t(t,e){this._storeType=void 0,this._sessionData=void 0,this._name=void 0,this._createdAt=void 0,this._updatedAt=void 0,this.isReady=void 0,this._name=t||this.constructor.name,this._storeType=e,this._sessionData={},this._createdAt=new Date,this._updatedAt=new Date,this.isReady=!1}var e=t.prototype;return e.init=function(t){var e=(this._storeType||sessionStorage).getItem(this._name);e&&(this._sessionData=JSON.parse(e),this.isReady=!0)},e.getData=function(t){return this._sessionData[t]},e.setData=function(t,e){this._sessionData[t]=e,this._updatedAt=new Date},e._cleanup=function(){var t=this._sessionData._createdAt||this._createdAt.toISOString(),e=this._updatedAt.toISOString();this._sessionData._createdAt=t,this._sessionData._updatedAt=e},e.destroy=function(){this._cleanup(),(this._storeType||sessionStorage).setItem(this._name,JSON.stringify(this._sessionData))},e.remove=function(){(this._storeType||sessionStorage).removeItem(this._name)},t}());const i=/*#__PURE__*/function(){function t(){}return t.prototype.then=function(n,i){const o=new t,s=this.s;if(s){const t=1&s?n:i;if(t){try{e(o,1,t(this.v))}catch(t){e(o,2,t)}return o}return this}return this.o=function(t){try{const s=t.v;1&t.s?e(o,1,n?n(s):s):i?e(o,1,i(s)):e(o,2,s)}catch(t){e(o,2,t)}},o},t}();function o(t){return t instanceof i&&1&t.s}return n}); | ||
!function(t,e){"object"==typeof exports&&"undefined"!=typeof module?module.exports=e():"function"==typeof define&&define.amd?define(e):(t||self).sessionStore=e()}(this,function(){function t(e,n){return t=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t},t(e,n)}function e(t,n,s){if(!t.s){if(s instanceof i){if(!s.s)return void(s.o=e.bind(null,t,n));1&n&&(n=s.s),s=s.v}if(s&&s.then)return void s.then(e.bind(null,t,n),e.bind(null,t,2));t.s=n,t.v=s;var o=t.o;o&&o(t)}}var n=/*#__PURE__*/function(n){var o,r;function a(t){var e;return(e=n.call(this,t)||this).isStoreReady=void 0,e._deps=void 0,e.isStoreReady=!1,e._deps=[].slice.call(arguments,1),e}r=n,(o=a).prototype=Object.create(r.prototype),o.prototype.constructor=o,t(o,r);var h=a.prototype;return h.setStoreType=function(t){this._storeType=t},h.init=function(){try{var t=this;if(n.prototype.init.call(t),t.isStoreReady)return Promise.resolve();var o=function(){if(t._deps){var n=0,o=function(t,n,o){for(var r;;){var a=t();if(s(a)&&(a=a.v),!a)return h;if(a.then){r=0;break}var h=o();if(h&&h.then){if(!s(h)){r=1;break}h=h.s}if(n){var u=n();if(u&&u.then&&!s(u)){r=2;break}}}var f=new i,c=e.bind(null,f,2);return(0===r?a.then(v):1===r?h.then(d):u.then(p)).then(void 0,c),f;function d(i){h=i;do{if(n&&(u=n())&&u.then&&!s(u))return void u.then(p).then(void 0,c);if(!(a=t())||s(a)&&!a.v)return void e(f,1,h);if(a.then)return void a.then(v).then(void 0,c);s(h=o())&&(h=h.v)}while(!h||!h.then);h.then(d).then(void 0,c)}function v(t){t?(h=o())&&h.then?h.then(d).then(void 0,c):d(h):e(f,1,h)}function p(){(a=t())?a.then?a.then(v).then(void 0,c):v(a):e(f,1,h)}}(function(){return n<t._deps.length},function(){return n++},function(){return Promise.resolve(t._deps[n].init()).then(function(){})});if(o&&o.then)return o.then(function(){})}}();return Promise.resolve(o&&o.then?o.then(function(){}):void 0)}catch(t){return Promise.reject(t)}},h.destroy=function(){if(n.prototype.destroy.call(this),this._deps)for(var t=0;t<this._deps.length;t++)this._deps[t].destroy();this.isReady=!1,this.isStoreReady=!1},a}(/*#__PURE__*/function(){function t(t,e){this._storeType=void 0,this._sessionData=void 0,this._name=void 0,this._createdAt=void 0,this._updatedAt=void 0,this.isReady=void 0,this._name=t||this.constructor.name,this._storeType=e,this._sessionData={},this._createdAt=new Date,this._updatedAt=new Date,this.isReady=!1}var e=t.prototype;return e.init=function(t){var e=(this._storeType||sessionStorage).getItem(this._name);e&&(this._sessionData=JSON.parse(e),this.isReady=!0)},e.getData=function(t){return this._sessionData[t]},e.setData=function(t,e){this._sessionData[t]=e,this._updatedAt=new Date},e._cleanup=function(){var t=this._sessionData._createdAt||this._createdAt.toISOString(),e=this._updatedAt.toISOString();this._sessionData._createdAt=t,this._sessionData._updatedAt=e},e.destroy=function(){this._cleanup(),(this._storeType||sessionStorage).setItem(this._name,JSON.stringify(this._sessionData))},e.remove=function(){var t=this,e=this._storeType||sessionStorage;Object.keys(this._sessionData).forEach(function(e){t._sessionData[e]=void 0}),e.removeItem(this._name)},t}());const i=/*#__PURE__*/function(){function t(){}return t.prototype.then=function(n,i){const s=new t,o=this.s;if(o){const t=1&o?n:i;if(t){try{e(s,1,t(this.v))}catch(t){e(s,2,t)}return s}return this}return this.o=function(t){try{const o=t.v;1&t.s?e(s,1,n?n(o):o):i?e(s,1,i(o)):e(s,2,o)}catch(t){e(s,2,t)}},s},t}();function s(t){return t instanceof i&&1&t.s}return n}); | ||
//# sourceMappingURL=index.umd.js.map |
{ | ||
"name": "@manojadams/session-store", | ||
"version": "1.0.13", | ||
"version": "1.0.14", | ||
"description": "State management with session-storage/local-storage", | ||
@@ -5,0 +5,0 @@ "main": "./dist/index.js", |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
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
42190