vuex-cache
Advanced tools
Comparing version 1.1.0 to 1.1.1
@@ -1,1 +0,1 @@ | ||
"use strict";const toString=t=>"string"==typeof t?t:JSON.stringify(t),argsToString=t=>{let n=toString(t[0]);return t[1]&&(n=`${n}:${toString(t[1])}`),n};var index=t=>{const n=new Map;n.dispatch=((...r)=>{const e=argsToString(r);return n.has(e)||n.set(e,t.dispatch.apply(t,r)),n.get(e)});const r=n.has.bind(n);n.has=((...t)=>{let n=argsToString(t);return r(toString(n))});const e=n.delete.bind(n);n.delete=(t=>e(toString(t))),t.cache=n};module.exports=index; | ||
"use strict";const toString=t=>"string"==typeof t?t:JSON.stringify(t),argsToString=t=>{let n=toString(t[0]);return t[1]&&(n=`${n}:${toString(t[1])}`),n};var index=t=>{const n=new Map;n.dispatch=((...r)=>{const s=argsToString(r);return n.has(s)||n.set(s,t.dispatch.apply(t,r)),n.get(s)});const r=n.has.bind(n);n.has=((...t)=>{const n=argsToString(t);return r(toString(n))});const s=n.delete.bind(n);n.delete=((...t)=>{const n=argsToString(t);return s(toString(n))}),t.cache=n};module.exports=index; |
@@ -1,1 +0,1 @@ | ||
const toString=t=>"string"==typeof t?t:JSON.stringify(t),argsToString=t=>{let n=toString(t[0]);return t[1]&&(n=`${n}:${toString(t[1])}`),n};var index=t=>{const n=new Map;n.dispatch=((...r)=>{const e=argsToString(r);return n.has(e)||n.set(e,t.dispatch.apply(t,r)),n.get(e)});const r=n.has.bind(n);n.has=((...t)=>{let n=argsToString(t);return r(toString(n))});const e=n.delete.bind(n);n.delete=(t=>e(toString(t))),t.cache=n};export default index; | ||
const toString=t=>"string"==typeof t?t:JSON.stringify(t),argsToString=t=>{let n=toString(t[0]);return t[1]&&(n=`${n}:${toString(t[1])}`),n};var index=t=>{const n=new Map;n.dispatch=((...r)=>{const e=argsToString(r);return n.has(e)||n.set(e,t.dispatch.apply(t,r)),n.get(e)});const r=n.has.bind(n);n.has=((...t)=>{const n=argsToString(t);return r(toString(n))});const e=n.delete.bind(n);n.delete=((...t)=>{const n=argsToString(t);return e(toString(n))}),t.cache=n};export default index; |
@@ -1,1 +0,1 @@ | ||
!function(e,n){"object"==typeof exports&&"undefined"!=typeof module?module.exports=n():"function"==typeof define&&define.amd?define(n):e["vuex-cache"]=n()}(this,function(){"use strict";var e=function(e){return"string"==typeof e?e:JSON.stringify(e)},n=function(n){var t=e(n[0]);return n[1]&&(t=t+":"+e(n[1])),t};return function(t){var r=new Map;r.dispatch=function(){for(var e=arguments.length,i=Array(e),a=0;e>a;a++)i[a]=arguments[a];var f=n(i);return r.has(f)||r.set(f,t.dispatch.apply(t,i)),r.get(f)};var i=r.has.bind(r);r.has=function(){for(var t=arguments.length,r=Array(t),a=0;t>a;a++)r[a]=arguments[a];var f=n(r);return i(e(f))};var a=r.delete.bind(r);r.delete=function(n){return a(e(n))},t.cache=r}}); | ||
!function(e,n){"object"==typeof exports&&"undefined"!=typeof module?module.exports=n():"function"==typeof define&&define.amd?define(n):e["vuex-cache"]=n()}(this,function(){"use strict";var e=function(e){return"string"==typeof e?e:JSON.stringify(e)},n=function(n){var r=e(n[0]);return n[1]&&(r=r+":"+e(n[1])),r};return function(r){var t=new Map;t.dispatch=function(){for(var e=arguments.length,a=Array(e),i=0;e>i;i++)a[i]=arguments[i];var f=n(a);return t.has(f)||t.set(f,r.dispatch.apply(r,a)),t.get(f)};var a=t.has.bind(t);t.has=function(){for(var r=arguments.length,t=Array(r),i=0;r>i;i++)t[i]=arguments[i];var f=n(t);return a(e(f))};var i=t.delete.bind(t);t.delete=function(){for(var r=arguments.length,t=Array(r),a=0;r>a;a++)t[a]=arguments[a];var f=n(t);return i(e(f))},r.cache=t}}); |
{ | ||
"name": "vuex-cache", | ||
"version": "1.1.0", | ||
"version": "1.1.1", | ||
"description": "cache vuex action", | ||
@@ -19,6 +19,3 @@ "main": "index.js", | ||
}, | ||
"keywords": [ | ||
"vuex", | ||
"cache" | ||
], | ||
"keywords": ["vuex", "cache"], | ||
"devDependencies": { | ||
@@ -25,0 +22,0 @@ "babel-eslint": "^7.1.1", |
5855