vue-persistent-storage-manager
Advanced tools
Comparing version
@@ -0,1 +1,15 @@ | ||
## [2.0.7](https://github.com/DerYeger/vue-persistent-storage-manager/compare/v2.0.6...v2.0.7) (2021-10-21) | ||
### Bug Fixes | ||
* **release:** schedule release ([7e52166](https://github.com/DerYeger/vue-persistent-storage-manager/commit/7e5216670f9682ea08ab596c98be36386cfd9c24)) | ||
## [2.0.6](https://github.com/DerYeger/vue-persistent-storage-manager/compare/v2.0.5...v2.0.6) (2021-10-13) | ||
### Bug Fixes | ||
* **release:** schedule release ([f1b8b72](https://github.com/DerYeger/vue-persistent-storage-manager/commit/f1b8b722051a7e1717536323bedcd0984b996214)) | ||
## [2.0.5](https://github.com/DerYeger/vue-persistent-storage-manager/compare/v2.0.4...v2.0.5) (2021-10-05) | ||
@@ -2,0 +16,0 @@ |
@@ -1,2 +0,2 @@ | ||
function e(e){return e&&"object"==typeof e&&"default"in e?e:{default:e}}var t=e(require("vue"));function r(){return r=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var a in r)Object.prototype.hasOwnProperty.call(r,a)&&(e[a]=r[a])}return e},r.apply(this,arguments)}var a={watchStorage:!1},o=function(){function e(){var e,t,r,a,o=this;this.isAvailable="undefined"!=typeof navigator&&void 0!==(null==(e=navigator)||null==(t=e.storage)?void 0:t.persist),this.storageEstimate={quota:void 0,usage:void 0},this._isPersistent=!1,this.isAvailable&&(this._refreshIsPersistent(),this._refreshStorageEstimate(),null==(r=navigator.permissions)||null==(a=r.query({name:"persistent-storage"}))||a.then(function(e){e.onchange=function(){return o._refreshIsPersistent()}}),window.addEventListener("storage",function(){o._refreshStorageEstimate()}))}var r,a=e.prototype;return a.requestPersistentStorage=function(){var e=this;return this.isAvailable?navigator.storage.persist().then(function(t){return e._isPersistent=t,t}):Promise.resolve(!1)},a._refreshIsPersistent=function(){var e=this;navigator.storage.persisted().then(function(t){return e._isPersistent=t})},a._refreshStorageEstimate=function(){var e=this;navigator.storage.estimate().then(function(r){var a=r.usage;t.default.set(e.storageEstimate,"quota",r.quota),t.default.set(e.storageEstimate,"usage",a)})},a._modifyLocalStorageFunctions=function(){if("undefined"!=typeof localStorage){var e=this;void 0===localStorage.originalSetItem&&(localStorage.originalSetItem=localStorage.setItem);var t=localStorage.setItem;localStorage.setItem=function(){t.apply(this,[].slice.call(arguments)),e._refreshStorageEstimate()},void 0===localStorage.originalRemoveItem&&(localStorage.originalRemoveItem=localStorage.removeItem);var r=localStorage.removeItem;localStorage.removeItem=function(){r.apply(this,[].slice.call(arguments)),e._refreshStorageEstimate()}}},(r=[{key:"isPersistent",get:function(){return this._isPersistent}}])&&function(e,t){for(var r=0;r<t.length;r++){var a=t[r];a.enumerable=a.enumerable||!1,a.configurable=!0,"value"in a&&(a.writable=!0),Object.defineProperty(e,a.key,a)}}(e.prototype,r),e}();o.install=function(e,i){var s=r({},a,i),n=t.default.observable(new o);s.watchStorage&&n._modifyLocalStorageFunctions(),e.prototype.$storageManager=n,e.prototype.$storageEstimate=n.storageEstimate},exports.VuePersistentStorageManager=o; | ||
function e(e){return e&&"object"==typeof e&&"default"in e?e:{default:e}}var t=/*#__PURE__*/e(require("vue"));function r(){return r=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var a in r)Object.prototype.hasOwnProperty.call(r,a)&&(e[a]=r[a])}return e},r.apply(this,arguments)}var a={watchStorage:!1},o=/*#__PURE__*/function(){function e(){var e,t,r,a,o=this;this.isAvailable="undefined"!=typeof navigator&&void 0!==(null==(e=navigator)||null==(t=e.storage)?void 0:t.persist),this.storageEstimate={quota:void 0,usage:void 0},this._isPersistent=!1,this.isAvailable&&(this._refreshIsPersistent(),this._refreshStorageEstimate(),null==(r=navigator.permissions)||null==(a=r.query({name:"persistent-storage"}))||a.then(function(e){e.onchange=function(){return o._refreshIsPersistent()}}),window.addEventListener("storage",function(){o._refreshStorageEstimate()}))}var r,a=e.prototype;return a.requestPersistentStorage=function(){var e=this;return this.isAvailable?navigator.storage.persist().then(function(t){return e._isPersistent=t,t}):Promise.resolve(!1)},a._refreshIsPersistent=function(){var e=this;navigator.storage.persisted().then(function(t){return e._isPersistent=t})},a._refreshStorageEstimate=function(){var e=this;navigator.storage.estimate().then(function(r){var a=r.usage;t.default.set(e.storageEstimate,"quota",r.quota),t.default.set(e.storageEstimate,"usage",a)})},a._modifyLocalStorageFunctions=function(){if("undefined"!=typeof localStorage){var e=this;void 0===localStorage.originalSetItem&&(localStorage.originalSetItem=localStorage.setItem);var t=localStorage.setItem;localStorage.setItem=function(){t.apply(this,[].slice.call(arguments)),e._refreshStorageEstimate()},void 0===localStorage.originalRemoveItem&&(localStorage.originalRemoveItem=localStorage.removeItem);var r=localStorage.removeItem;localStorage.removeItem=function(){r.apply(this,[].slice.call(arguments)),e._refreshStorageEstimate()}}},(r=[{key:"isPersistent",get:function(){return this._isPersistent}}])&&function(e,t){for(var r=0;r<t.length;r++){var a=t[r];a.enumerable=a.enumerable||!1,a.configurable=!0,"value"in a&&(a.writable=!0),Object.defineProperty(e,a.key,a)}}(e.prototype,r),e}();o.install=function(e,i){var s=r({},a,i),n=t.default.observable(new o);s.watchStorage&&n._modifyLocalStorageFunctions(),e.prototype.$storageManager=n,e.prototype.$storageEstimate=n.storageEstimate},exports.VuePersistentStorageManager=o; | ||
//# sourceMappingURL=vue-persistent-storage-manager.js.map |
@@ -1,2 +0,2 @@ | ||
import e from"vue";function t(){return t=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var a in r)Object.prototype.hasOwnProperty.call(r,a)&&(e[a]=r[a])}return e},t.apply(this,arguments)}var r={watchStorage:!1},a=function(){function t(){var e,t,r,a,o=this;this.isAvailable="undefined"!=typeof navigator&&void 0!==(null==(e=navigator)||null==(t=e.storage)?void 0:t.persist),this.storageEstimate={quota:void 0,usage:void 0},this._isPersistent=!1,this.isAvailable&&(this._refreshIsPersistent(),this._refreshStorageEstimate(),null==(r=navigator.permissions)||null==(a=r.query({name:"persistent-storage"}))||a.then(function(e){e.onchange=function(){return o._refreshIsPersistent()}}),window.addEventListener("storage",function(){o._refreshStorageEstimate()}))}var r,a=t.prototype;return a.requestPersistentStorage=function(){var e=this;return this.isAvailable?navigator.storage.persist().then(function(t){return e._isPersistent=t,t}):Promise.resolve(!1)},a._refreshIsPersistent=function(){var e=this;navigator.storage.persisted().then(function(t){return e._isPersistent=t})},a._refreshStorageEstimate=function(){var t=this;navigator.storage.estimate().then(function(r){var a=r.usage;e.set(t.storageEstimate,"quota",r.quota),e.set(t.storageEstimate,"usage",a)})},a._modifyLocalStorageFunctions=function(){if("undefined"!=typeof localStorage){var e=this;void 0===localStorage.originalSetItem&&(localStorage.originalSetItem=localStorage.setItem);var t=localStorage.setItem;localStorage.setItem=function(){t.apply(this,[].slice.call(arguments)),e._refreshStorageEstimate()},void 0===localStorage.originalRemoveItem&&(localStorage.originalRemoveItem=localStorage.removeItem);var r=localStorage.removeItem;localStorage.removeItem=function(){r.apply(this,[].slice.call(arguments)),e._refreshStorageEstimate()}}},(r=[{key:"isPersistent",get:function(){return this._isPersistent}}])&&function(e,t){for(var r=0;r<t.length;r++){var a=t[r];a.enumerable=a.enumerable||!1,a.configurable=!0,"value"in a&&(a.writable=!0),Object.defineProperty(e,a.key,a)}}(t.prototype,r),t}();a.install=function(o,i){var s=t({},r,i),n=e.observable(new a);s.watchStorage&&n._modifyLocalStorageFunctions(),o.prototype.$storageManager=n,o.prototype.$storageEstimate=n.storageEstimate};export{a as VuePersistentStorageManager}; | ||
import e from"vue";function t(){return t=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var a in r)Object.prototype.hasOwnProperty.call(r,a)&&(e[a]=r[a])}return e},t.apply(this,arguments)}var r={watchStorage:!1},a=/*#__PURE__*/function(){function t(){var e,t,r,a,o=this;this.isAvailable="undefined"!=typeof navigator&&void 0!==(null==(e=navigator)||null==(t=e.storage)?void 0:t.persist),this.storageEstimate={quota:void 0,usage:void 0},this._isPersistent=!1,this.isAvailable&&(this._refreshIsPersistent(),this._refreshStorageEstimate(),null==(r=navigator.permissions)||null==(a=r.query({name:"persistent-storage"}))||a.then(function(e){e.onchange=function(){return o._refreshIsPersistent()}}),window.addEventListener("storage",function(){o._refreshStorageEstimate()}))}var r,a=t.prototype;return a.requestPersistentStorage=function(){var e=this;return this.isAvailable?navigator.storage.persist().then(function(t){return e._isPersistent=t,t}):Promise.resolve(!1)},a._refreshIsPersistent=function(){var e=this;navigator.storage.persisted().then(function(t){return e._isPersistent=t})},a._refreshStorageEstimate=function(){var t=this;navigator.storage.estimate().then(function(r){var a=r.usage;e.set(t.storageEstimate,"quota",r.quota),e.set(t.storageEstimate,"usage",a)})},a._modifyLocalStorageFunctions=function(){if("undefined"!=typeof localStorage){var e=this;void 0===localStorage.originalSetItem&&(localStorage.originalSetItem=localStorage.setItem);var t=localStorage.setItem;localStorage.setItem=function(){t.apply(this,[].slice.call(arguments)),e._refreshStorageEstimate()},void 0===localStorage.originalRemoveItem&&(localStorage.originalRemoveItem=localStorage.removeItem);var r=localStorage.removeItem;localStorage.removeItem=function(){r.apply(this,[].slice.call(arguments)),e._refreshStorageEstimate()}}},(r=[{key:"isPersistent",get:function(){return this._isPersistent}}])&&function(e,t){for(var r=0;r<t.length;r++){var a=t[r];a.enumerable=a.enumerable||!1,a.configurable=!0,"value"in a&&(a.writable=!0),Object.defineProperty(e,a.key,a)}}(t.prototype,r),t}();a.install=function(o,i){var s=t({},r,i),n=e.observable(new a);s.watchStorage&&n._modifyLocalStorageFunctions(),o.prototype.$storageManager=n,o.prototype.$storageEstimate=n.storageEstimate};export{a as VuePersistentStorageManager}; | ||
//# sourceMappingURL=vue-persistent-storage-manager.module.js.map |
@@ -1,2 +0,2 @@ | ||
!function(e,t){"object"==typeof exports&&"undefined"!=typeof module?t(exports,require("vue")):"function"==typeof define&&define.amd?define(["exports","vue"],t):t((e||self).vuePersistentStorageManager={},e.vue)}(this,function(e,t){function r(e){return e&&"object"==typeof e&&"default"in e?e:{default:e}}var a=r(t);function o(){return o=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var a in r)Object.prototype.hasOwnProperty.call(r,a)&&(e[a]=r[a])}return e},o.apply(this,arguments)}var i={watchStorage:!1},n=function(){function e(){var e,t,r,a,o=this;this.isAvailable="undefined"!=typeof navigator&&void 0!==(null==(e=navigator)||null==(t=e.storage)?void 0:t.persist),this.storageEstimate={quota:void 0,usage:void 0},this._isPersistent=!1,this.isAvailable&&(this._refreshIsPersistent(),this._refreshStorageEstimate(),null==(r=navigator.permissions)||null==(a=r.query({name:"persistent-storage"}))||a.then(function(e){e.onchange=function(){return o._refreshIsPersistent()}}),window.addEventListener("storage",function(){o._refreshStorageEstimate()}))}var t,r=e.prototype;return r.requestPersistentStorage=function(){var e=this;return this.isAvailable?navigator.storage.persist().then(function(t){return e._isPersistent=t,t}):Promise.resolve(!1)},r._refreshIsPersistent=function(){var e=this;navigator.storage.persisted().then(function(t){return e._isPersistent=t})},r._refreshStorageEstimate=function(){var e=this;navigator.storage.estimate().then(function(t){var r=t.usage;a.default.set(e.storageEstimate,"quota",t.quota),a.default.set(e.storageEstimate,"usage",r)})},r._modifyLocalStorageFunctions=function(){if("undefined"!=typeof localStorage){var e=this;void 0===localStorage.originalSetItem&&(localStorage.originalSetItem=localStorage.setItem);var t=localStorage.setItem;localStorage.setItem=function(){t.apply(this,[].slice.call(arguments)),e._refreshStorageEstimate()},void 0===localStorage.originalRemoveItem&&(localStorage.originalRemoveItem=localStorage.removeItem);var r=localStorage.removeItem;localStorage.removeItem=function(){r.apply(this,[].slice.call(arguments)),e._refreshStorageEstimate()}}},(t=[{key:"isPersistent",get:function(){return this._isPersistent}}])&&function(e,t){for(var r=0;r<t.length;r++){var a=t[r];a.enumerable=a.enumerable||!1,a.configurable=!0,"value"in a&&(a.writable=!0),Object.defineProperty(e,a.key,a)}}(e.prototype,t),e}();n.install=function(e,t){var r=o({},i,t),s=a.default.observable(new n);r.watchStorage&&s._modifyLocalStorageFunctions(),e.prototype.$storageManager=s,e.prototype.$storageEstimate=s.storageEstimate},e.VuePersistentStorageManager=n}); | ||
!function(e,t){"object"==typeof exports&&"undefined"!=typeof module?t(exports,require("vue")):"function"==typeof define&&define.amd?define(["exports","vue"],t):t((e||self).vuePersistentStorageManager={},e.vue)}(this,function(e,t){function r(e){return e&&"object"==typeof e&&"default"in e?e:{default:e}}var a=/*#__PURE__*/r(t);function o(){return o=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var a in r)Object.prototype.hasOwnProperty.call(r,a)&&(e[a]=r[a])}return e},o.apply(this,arguments)}var i={watchStorage:!1},n=/*#__PURE__*/function(){function e(){var e,t,r,a,o=this;this.isAvailable="undefined"!=typeof navigator&&void 0!==(null==(e=navigator)||null==(t=e.storage)?void 0:t.persist),this.storageEstimate={quota:void 0,usage:void 0},this._isPersistent=!1,this.isAvailable&&(this._refreshIsPersistent(),this._refreshStorageEstimate(),null==(r=navigator.permissions)||null==(a=r.query({name:"persistent-storage"}))||a.then(function(e){e.onchange=function(){return o._refreshIsPersistent()}}),window.addEventListener("storage",function(){o._refreshStorageEstimate()}))}var t,r=e.prototype;return r.requestPersistentStorage=function(){var e=this;return this.isAvailable?navigator.storage.persist().then(function(t){return e._isPersistent=t,t}):Promise.resolve(!1)},r._refreshIsPersistent=function(){var e=this;navigator.storage.persisted().then(function(t){return e._isPersistent=t})},r._refreshStorageEstimate=function(){var e=this;navigator.storage.estimate().then(function(t){var r=t.usage;a.default.set(e.storageEstimate,"quota",t.quota),a.default.set(e.storageEstimate,"usage",r)})},r._modifyLocalStorageFunctions=function(){if("undefined"!=typeof localStorage){var e=this;void 0===localStorage.originalSetItem&&(localStorage.originalSetItem=localStorage.setItem);var t=localStorage.setItem;localStorage.setItem=function(){t.apply(this,[].slice.call(arguments)),e._refreshStorageEstimate()},void 0===localStorage.originalRemoveItem&&(localStorage.originalRemoveItem=localStorage.removeItem);var r=localStorage.removeItem;localStorage.removeItem=function(){r.apply(this,[].slice.call(arguments)),e._refreshStorageEstimate()}}},(t=[{key:"isPersistent",get:function(){return this._isPersistent}}])&&function(e,t){for(var r=0;r<t.length;r++){var a=t[r];a.enumerable=a.enumerable||!1,a.configurable=!0,"value"in a&&(a.writable=!0),Object.defineProperty(e,a.key,a)}}(e.prototype,t),e}();n.install=function(e,t){var r=o({},i,t),s=a.default.observable(new n);r.watchStorage&&s._modifyLocalStorageFunctions(),e.prototype.$storageManager=s,e.prototype.$storageEstimate=s.storageEstimate},e.VuePersistentStorageManager=n}); | ||
//# sourceMappingURL=vue-persistent-storage-manager.umd.js.map |
@@ -20,3 +20,3 @@ { | ||
], | ||
"version": "2.0.5", | ||
"version": "2.0.7", | ||
"private": false, | ||
@@ -43,22 +43,22 @@ "source": "src/index.ts", | ||
"devDependencies": { | ||
"@babel/core": "7.15.5", | ||
"@babel/eslint-parser": "7.15.7", | ||
"@babel/preset-env": "7.15.6", | ||
"@babel/core": "7.15.8", | ||
"@babel/eslint-parser": "7.15.8", | ||
"@babel/preset-env": "7.15.8", | ||
"@babel/preset-typescript": "7.15.0", | ||
"@types/jest": "27.0.2", | ||
"@typescript-eslint/eslint-plugin": "4.32.0", | ||
"@typescript-eslint/parser": "4.32.0", | ||
"@typescript-eslint/eslint-plugin": "5.1.0", | ||
"@typescript-eslint/parser": "5.1.0", | ||
"@vue/test-utils": "1.2.2", | ||
"babel-jest": "27.2.4", | ||
"bundlesize": "0.18.1", | ||
"eslint": "7.32.0", | ||
"babel-jest": "27.3.1", | ||
"bundlesize2": "0.0.30", | ||
"eslint": "8.0.1", | ||
"eslint-config-prettier": "8.3.0", | ||
"eslint-plugin-prettier": "4.0.0", | ||
"flush-promises": "1.0.2", | ||
"jest": "27.2.4", | ||
"lint-staged": "11.2.0", | ||
"microbundle": "0.13.3", | ||
"jest": "27.3.1", | ||
"lint-staged": "11.2.3", | ||
"microbundle": "0.14.1", | ||
"prettier": "2.4.1", | ||
"ts-jest": "27.0.5", | ||
"typescript": "4.4.3", | ||
"ts-jest": "27.0.7", | ||
"typescript": "4.4.4", | ||
"vue": "2.6.14", | ||
@@ -79,8 +79,2 @@ "vue-template-compiler": "2.6.14", | ||
], | ||
"bundlesize": [ | ||
{ | ||
"path": "./dist/*.js", | ||
"maxSize": "1024b" | ||
} | ||
], | ||
"gitHooks": { | ||
@@ -87,0 +81,0 @@ "pre-commit": "lint-staged" |
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
49407
1.09%