storage
storage copied to clipboard
a storage lib which support sessionStorage and localStorage with the same api
Bumps [express](https://github.com/expressjs/express) from 4.16.4 to 4.18.2. Release notes Sourced from express's releases. 4.18.2 Fix regression routing a large stack in a single route deps: [email protected] deps: [email protected] perf: remove unnecessary...
Bumps [qs](https://github.com/ljharb/qs) and [express](https://github.com/expressjs/express). These dependencies needed to be updated together. Updates `qs` from 6.5.2 to 6.11.0 Changelog Sourced from qs's changelog. 6.11.0 [New] [Fix] stringify: revert 0e903c0; add commaRoundTrip...
Bumps [decode-uri-component](https://github.com/SamVerschueren/decode-uri-component) from 0.2.0 to 0.2.2. Release notes Sourced from decode-uri-component's releases. v0.2.2 Prevent overwriting previously decoded tokens 980e0bf https://github.com/SamVerschueren/decode-uri-component/compare/v0.2.1...v0.2.2 v0.2.1 Switch to GitHub workflows 76abc93 Fix issue where decode...
Bumps [loader-utils](https://github.com/webpack/loader-utils) to 1.4.1 and updates ancestor dependencies [loader-utils](https://github.com/webpack/loader-utils), [babel-loader](https://github.com/babel/babel-loader) and [webpack](https://github.com/webpack/webpack). These dependencies need to be updated together. Updates `loader-utils` from 1.1.0 to 1.4.1 Release notes Sourced from loader-utils's...
``` try { const testKey = '__storejs__' store.set(testKey, testKey) if (store.get(testKey) !== testKey) { store.disabled = true // 只赋值了 store // 应该补上下面这一行 store.session.disabled = true; } store.remove(testKey) } catch (e)...
Bumps [eventsource](https://github.com/EventSource/eventsource) from 1.0.7 to 1.1.1. Changelog Sourced from eventsource's changelog. 1.1.1 Do not include authorization and cookie headers on redirect to different origin (#273 Espen Hovlandsdal) 1.1.0 Improve performance...
Bumps [url-parse](https://github.com/unshiftio/url-parse) from 1.4.3 to 1.5.10. Commits 8cd4c6c 1.5.10 ce7a01f [fix] Improve handling of empty port 0071490 [doc] Update JSDoc comment a7044e3 [minor] Use more descriptive variable name d547792 [security]...
Bumps [follow-redirects](https://github.com/follow-redirects/follow-redirects) from 1.5.9 to 1.14.8. Commits 3d81dc3 Release version 1.14.8 of the npm package. 62e546a Drop confidential headers across schemes. 2ede36d Release version 1.14.7 of the npm package. 8b347cb...
场景:多项目共用storage,有些引插件,有些原生写法 问题:set字符串形式的会带有引号,不能使用原生localStorage.getItem获取 ```javascript function serialize(val) { return typeof val === 'string' ? val : JSON.stringify(val); } ```