From 3b336fad0544ef5fbe5288514688b335caf6dad6 Mon Sep 17 00:00:00 2001 From: jaywcjlove <398188662@qq.com> Date: Wed, 1 Mar 2023 21:42:23 +0800 Subject: [PATCH] released v2.0.2 --- dist/store.cjs.js | 2 +- dist/store.esm.js | 2 +- dist/store.js | 2 +- dist/store.min.js | 2 +- package.json | 2 +- 5 files changed, 5 insertions(+), 5 deletions(-) diff --git a/dist/store.cjs.js b/dist/store.cjs.js index 6103e77..1283e3f 100644 --- a/dist/store.cjs.js +++ b/dist/store.cjs.js @@ -1,5 +1,5 @@ /**! - * storejs v2.0.1 + * storejs v2.0.2 * Local storage localstorage package provides a simple API * * Copyright (c) 2023 kenny wang diff --git a/dist/store.esm.js b/dist/store.esm.js index de853b4..f2f9f93 100644 --- a/dist/store.esm.js +++ b/dist/store.esm.js @@ -1,5 +1,5 @@ /**! - * storejs v2.0.1 + * storejs v2.0.2 * Local storage localstorage package provides a simple API * * Copyright (c) 2023 kenny wang diff --git a/dist/store.js b/dist/store.js index 6cf37be..84f1f52 100644 --- a/dist/store.js +++ b/dist/store.js @@ -1,5 +1,5 @@ /**! - * storejs v2.0.1 + * storejs v2.0.2 * Local storage localstorage package provides a simple API * * Copyright (c) 2023 kenny wang diff --git a/dist/store.min.js b/dist/store.min.js index 41301f6..ba1a634 100644 --- a/dist/store.min.js +++ b/dist/store.min.js @@ -1,2 +1,2 @@ -/*! storejs v2.0.1 | MIT (c) 2023 kenny wang | https://jaywcjlove.github.io/store.js/ */ +/*! storejs v2.0.2 | MIT (c) 2023 kenny wang | https://jaywcjlove.github.io/store.js/ */ !function(t,e){"object"==typeof exports&&"undefined"!=typeof module?module.exports=e():"function"==typeof define&&define.amd?define(e):(t="undefined"!=typeof globalThis?globalThis:t||self).store=e()}(this,(function(){"use strict";var t=window.localStorage;function e(t){return t=JSON.stringify(t),!!/^\{[\s\S]*\}$/.test(t)}function r(t){if("string"==typeof t)try{return JSON.parse(t)}catch(e){return t}}function n(t){return"[object Function]"==={}.toString.call(t)}function i(){if(!(this instanceof i))return new i}t=function(t){var e="_Is_Incognit";try{t.setItem(e,"yes")}catch(e){if("QuotaExceededError"===e.name){var r=function(){};t.__proto__={setItem:r,getItem:r,removeItem:r,clear:r}}}finally{"yes"===t.getItem(e)&&t.removeItem(e)}return t}(t),i.prototype={set:function(r,n){if(r&&!e(r))t.setItem(r,function(t){return void 0===t||"function"==typeof t?t+"":JSON.stringify(t)}(n));else if(e(r))for(var i in r)this.set(i,r[i]);return this},get:function(e){if(!e){var n={};return this.forEach((function(t,e){return n[t]=e})),n}if("?"===e.charAt(0))return this.has(e.substr(1));var i=arguments;if(i.length>1){for(var o={},f=0,u=i.length;f-1&&(r[e[n]]=this.get(e[n]));return r}};var o=null;function f(t,r){var u,s=arguments,c=null;if(o||(o=i()),0===s.length)return o.get();if(1===s.length){if("string"==typeof t)return o.get(t);if(e(t))return o.set(t)}if(2===s.length&&"string"==typeof t){if(!r)return o.remove(t);if(r&&"string"==typeof r)return o.set(t,r);r&&n(r)&&(c=null,c=r(t,o.get(t)),f.set(t,c))}if(2===s.length&&(u=t,"[object Array]"===Object.prototype.toString.call(u))&&n(r))for(var a=0,h=t.length;a",