From ac585848f1bee9f15feda1a337caba611fa816d8 Mon Sep 17 00:00:00 2001 From: Jason Dobry Date: Tue, 7 Jul 2015 08:15:17 -0600 Subject: [PATCH] Stable Version 4.3.1. Fixes #190 --- CHANGELOG.md | 4 ++++ Gruntfile.js | 2 +- dist/angular-cache.js | 17 +++++++++++++---- dist/angular-cache.min.js | 4 ++-- dist/angular-cache.min.map | 2 +- karma.conf.js | 2 +- package.json | 5 +++-- 7 files changed, 25 insertions(+), 11 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 55b80f2..b83774e 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,3 +1,7 @@ +##### 4.3.1 07 July 2015 + +- #190 - 4.3 breaks phantomJS tests + ##### 4.3.0 06 July 2015 - #189 - Extracted non-angular code. diff --git a/Gruntfile.js b/Gruntfile.js index 0e22498..daea89f 100644 --- a/Gruntfile.js +++ b/Gruntfile.js @@ -95,7 +95,7 @@ module.exports = function (grunt) { singleRun: false }, min: { - browsers: ['Chrome', 'Firefox'], + browsers: ['Chrome', 'Firefox', 'PhantomJS'], options: { files: [ 'bower_components/angular-1.2.25/angular.js', diff --git a/dist/angular-cache.js b/dist/angular-cache.js index 2f31d31..3fab652 100644 --- a/dist/angular-cache.js +++ b/dist/angular-cache.js @@ -1,6 +1,6 @@ /*! * angular-cache - * @version 4.3.0 - Homepage + * @version 4.3.1 - Homepage * @author Jason Dobry * @copyright (c) 2013-2015 Jason Dobry * @license MIT @@ -108,7 +108,7 @@ return /******/ (function(modules) { // webpackBootstrap /*! * cachefactory - * @version 1.0.1 - Homepage + * @version 1.0.2 - Homepage * @author Jason Dobry * @copyright (c) 2013-2015 Jason Dobry * @license MIT @@ -172,6 +172,11 @@ return /******/ (function(modules) { // webpackBootstrap /***/ function(module, exports, __webpack_require__) { var BinaryHeap = __webpack_require__(1); + var _Promise = null; + try { + _Promise = window.Promise; + } catch (e) {} + var utils = { isNumber: function isNumber(val) { return typeof val === 'number'; @@ -197,7 +202,7 @@ return /******/ (function(modules) { // webpackBootstrap return a === b; }, - Promise: Promise + Promise: _Promise }; var _keys = function _keys(collection) { @@ -490,7 +495,11 @@ return /******/ (function(modules) { // webpackBootstrap } } if (isError) { - return utils.Promise.reject(v); + if (utils.Promise) { + return utils.Promise.reject(v); + } else { + throw v; + } } else { return v; } diff --git a/dist/angular-cache.min.js b/dist/angular-cache.min.js index 049400d..334e5c7 100644 --- a/dist/angular-cache.min.js +++ b/dist/angular-cache.min.js @@ -1,6 +1,6 @@ /*! * angular-cache -* @version 4.3.0 - Homepage +* @version 4.3.1 - Homepage * @author Jason Dobry * @copyright (c) 2013-2015 Jason Dobry * @license MIT @@ -8,5 +8,5 @@ * @overview angular-cache is a very useful replacement for Angular's $cacheFactory. */ -!function(a,b){"object"==typeof exports&&"object"==typeof module?module.exports=b(require("angular")):"function"==typeof define&&define.amd?define(["angular"],b):"object"==typeof exports?exports.angularCacheModuleName=b(require("angular")):a.angularCacheModuleName=b(a.angular)}(this,function(a){return function(a){function b(d){if(c[d])return c[d].exports;var e=c[d]={exports:{},id:d,loaded:!1};return a[d].call(e.exports,e,e.exports,b),e.loaded=!0,e.exports}var c={};return b.m=a,b.c=c,b.p="",b(0)}([function(a,b,c){function d(a,b){if(!(a instanceof b))throw new TypeError("Cannot call a class as a function")}var e=c(1),f=c(2);f.utils.equals=e.equals,f.utils.isObject=e.isObject,f.utils.fromJson=e.fromJson;var g=function i(){d(this,i),this.$get=function(){return f.BinaryHeap}},h=function j(){d(this,j),this.defaults=f.defaults,this.$get=["$q",function(a){return f.utils.Promise=a,f}]};e.module("angular-cache",[]).provider("BinaryHeap",g).provider("CacheFactory",h),a.exports="angular-cache",a.exports.name="angular-cache"},function(b,c,d){b.exports=a},function(a,b,c){!function(b,c){a.exports=c()}(this,function(){return function(a){function b(d){if(c[d])return c[d].exports;var e=c[d]={exports:{},id:d,loaded:!1};return a[d].call(e.exports,e,e.exports,b),e.loaded=!0,e.exports}var c={};return b.m=a,b.c=c,b.p="",b(0)}([function(a,b,c){function d(a,b){return m(a,b)}var e=c(1),f={isNumber:function(a){return"number"==typeof a},isString:function(a){return"string"==typeof a},isObject:function(a){return null!==a&&"object"==typeof a},isFunction:function(a){return"function"==typeof a},fromJson:function(a){return JSON.parse(a)},equals:function(a,b){return a===b},Promise:Promise},g=function(a){var b=[],c=void 0;for(c in a)a.hasOwnProperty(c)&&b.push(c);return b},h=function(a){return a&&"function"==typeof a.then},i=function(a){return f.isNumber(a)?a.toString():a},j=function(a){var b={},c=void 0;for(c in a)a.hasOwnProperty(c)&&(b[c]=c);return b},k={capacity:Number.MAX_VALUE,maxAge:Number.MAX_VALUE,deleteOnExpire:"none",onExpire:null,cacheFlushInterval:null,recycleFreq:1e3,storageMode:"memory",storageImpl:null,disabled:!1,storagePrefix:"cachefactory.caches.",storeOnResolve:!1,storeOnReject:!1},l={},m=function(a,b){if(a in l)throw new Error(a+" already exists!");if(!f.isString(a))throw new Error("cacheId must be a string!");var c={},d={},m=null,n=new e(function(a){return a.expires},f.equals),o=new e(function(a){return a.accessed},f.equals),p=l[a]={$$id:a,destroy:function(){clearInterval(this.$$cacheFlushIntervalId),clearInterval(this.$$recycleFreqId),this.removeAll(),m&&(m().removeItem(this.$$prefix+".keys"),m().removeItem(this.$$prefix)),m=null,c=null,o=null,n=null,this.$$prefix=null,delete l[this.$$id]},disable:function(){this.$$disabled=!0},enable:function(){delete this.$$disabled},get:function(a,b){var e=this;if(Array.isArray(a)){var g=function(){var c=a,d=[];return c.forEach(function(a){var c=e.get(a,b);null!==c&&void 0!==c&&d.push(c)}),{v:d}}();if("object"==typeof g)return g.v}else if(a=i(a),this.$$disabled)return;if(b=b||{},!f.isString(a))throw new Error("key must be a string!");if(b&&!f.isObject(b))throw new Error("options must be an object!");if(b.onExpire&&!f.isFunction(b.onExpire))throw new Error("options.onExpire must be a function!");var h=void 0;if(m){if(d[a])return d[a];var j=m().getItem(this.$$prefix+".data."+a);if(!j)return;h=f.fromJson(j)}else{if(!(a in c))return;h=c[a]}var k=h.value,l=(new Date).getTime();return m?(o.remove({key:a,accessed:h.accessed}),h.accessed=l,o.push({key:a,accessed:l})):(o.remove(h),h.accessed=l,o.push(h)),"passive"===this.$$deleteOnExpire&&"expires"in h&&h.expiresthis.$$maxAge}):void 0}return a in c?(b=c[a],{created:b.created,accessed:b.accessed,expires:b.expires,isExpired:(new Date).getTime()-b.created>this.$$maxAge}):void 0}return{id:this.$$id,capacity:this.$$capacity,maxAge:this.$$maxAge,deleteOnExpire:this.$$deleteOnExpire,onExpire:this.$$onExpire,cacheFlushInterval:this.$$cacheFlushInterval,recycleFreq:this.$$recycleFreq,storageMode:this.$$storageMode,storageImpl:m?m():void 0,disabled:!!this.$$disabled,size:o&&o.size()||0}},keys:function(){if(m){var a=m().getItem(this.$$prefix+".keys");return a?f.fromJson(a):[]}return g(c)},keySet:function(){if(m){var a=m().getItem(this.$$prefix+".keys"),b={};if(a)for(var d=f.fromJson(a),e=0;ethis.$$capacity&&this.remove(o.peek().key),b}},remove:function(a){if(a+="",delete d[a],!m){var b=c[a]?c[a].value:void 0;return o.remove(c[a]),n.remove(c[a]),c[a]=null,delete c[a],b}var e=m().getItem(this.$$prefix+".data."+a);if(e){var g=f.fromJson(e);o.remove({key:a,accessed:g.accessed}),n.remove({key:a,expires:g.expires}),m().removeItem(this.$$prefix+".data."+a);var h=m().getItem(this.$$prefix+".keys"),i=h?f.fromJson(h):[],j=i.indexOf(a);return j>=0&&i.splice(j,1),m().setItem(this.$$prefix+".keys",JSON.stringify(i)),g.value}},removeAll:function(){if(m){o.removeAll(),n.removeAll();var a=m().getItem(this.$$prefix+".keys");if(a)for(var b=f.fromJson(a),e=0;ea)throw new Error("cacheFlushInterval must be greater than zero!");a!==this.$$cacheFlushInterval&&(this.$$cacheFlushInterval=a,clearInterval(this.$$cacheFlushIntervalId),function(a){a.$$cacheFlushIntervalId=setInterval(function(){a.removeAll()},a.$$cacheFlushInterval)}(this))}},setCapacity:function(a){if(null===a)delete this.$$capacity;else{if(!f.isNumber(a))throw new Error("capacity must be a number!");if(0>a)throw new Error("capacity must be greater than zero!");this.$$capacity=a}for(var b={};o.size()>this.$$capacity;)b[o.peek().key]=this.remove(o.peek().key);return b},setDeleteOnExpire:function(a,b){if(null===a)delete this.$$deleteOnExpire;else{if(!f.isString(a))throw new Error("deleteOnExpire must be a string!");if("none"!==a&&"passive"!==a&&"aggressive"!==a)throw new Error('deleteOnExpire must be "none", "passive" or "aggressive"!');this.$$deleteOnExpire=a}b!==!1&&this.setRecycleFreq(this.$$recycleFreq)},setMaxAge:function(a){if(null===a)this.$$maxAge=Number.MAX_VALUE;else{if(!f.isNumber(a))throw new Error("maxAge must be a number!");if(0>a)throw new Error("maxAge must be greater than zero!");this.$$maxAge=a}var b=void 0,d=void 0,e=void 0;if(n.removeAll(),m){var h=m().getItem(this.$$prefix+".keys");for(d=h?f.fromJson(h):[],b=0;ba)throw new Error("recycleFreq must be greater than zero!");this.$$recycleFreq=a}clearInterval(this.$$recycleFreqId),"aggressive"===this.$$deleteOnExpire?!function(a){a.$$recycleFreqId=setInterval(function(){a.removeExpired()},a.$$recycleFreq)}(this):delete this.$$recycleFreqId},setStorageMode:function(a,b){if(!f.isString(a))throw new Error("storageMode must be a string!");if("memory"!==a&&"localStorage"!==a&&"sessionStorage"!==a)throw new Error('storageMode must be "memory", "localStorage" or "sessionStorage"!');var c=!1,d={};if("string"==typeof this.$$storageMode&&this.$$storageMode!==a){var e=this.keys();if(e.length){for(var g=0;g0;){var f=Math.floor((c+1)/2)-1,g=a[f];if(e>=b(g))break;a[f]=d,a[c]=g,c=f}}var e=function(a,b){if(!(a instanceof b))throw new TypeError("Cannot call a class as a function")},f=function(){function a(a,b){for(var c=0;ch){var j=a[h],k=b(j);f>k&&(i=h)}if(d>g){var l=a[g],m=b(l);m<(null===i?f:b(a[h]))&&(i=g)}if(null===i)break;a[c]=a[i],a[i]=e,c=i}},h=function(){function a(b,c){if(e(this,a),b||(b=function(a){return a}),c||(c=function(a,b){return a===b}),"function"!=typeof b)throw new Error('BinaryHeap([weightFunc][, compareFunc]): "weightFunc" must be a function!');if("function"!=typeof c)throw new Error('BinaryHeap([weightFunc][, compareFunc]): "compareFunc" must be a function!');this.weightFunc=b,this.compareFunc=c,this.heap=[]}return f(a,[{key:"push",value:function(a){this.heap.push(a),d(this.heap,this.weightFunc,this.heap.length-1)}},{key:"peek",value:function(){return this.heap[0]}},{key:"pop",value:function(){var a=this.heap[0],b=this.heap.pop();return this.heap.length>0&&(this.heap[0]=b,g(this.heap,this.weightFunc,0)),a}},{key:"remove",value:function(a){for(var b=this.heap.length,c=0;b>c;c++)if(this.compareFunc(this.heap[c],a)){var e=this.heap[c],f=this.heap.pop();return c!==b-1&&(this.heap[c]=f,d(this.heap,this.weightFunc,c),g(this.heap,this.weightFunc,c)),e}return null}},{key:"removeAll",value:function(){this.heap=[]}},{key:"size",value:function(){return this.heap.length}}]),a}();b["default"]=h,a.exports=b["default"]}])})}])})}])}); +!function(a,b){"object"==typeof exports&&"object"==typeof module?module.exports=b(require("angular")):"function"==typeof define&&define.amd?define(["angular"],b):"object"==typeof exports?exports.angularCacheModuleName=b(require("angular")):a.angularCacheModuleName=b(a.angular)}(this,function(a){return function(a){function b(d){if(c[d])return c[d].exports;var e=c[d]={exports:{},id:d,loaded:!1};return a[d].call(e.exports,e,e.exports,b),e.loaded=!0,e.exports}var c={};return b.m=a,b.c=c,b.p="",b(0)}([function(a,b,c){function d(a,b){if(!(a instanceof b))throw new TypeError("Cannot call a class as a function")}var e=c(1),f=c(2);f.utils.equals=e.equals,f.utils.isObject=e.isObject,f.utils.fromJson=e.fromJson;var g=function i(){d(this,i),this.$get=function(){return f.BinaryHeap}},h=function j(){d(this,j),this.defaults=f.defaults,this.$get=["$q",function(a){return f.utils.Promise=a,f}]};e.module("angular-cache",[]).provider("BinaryHeap",g).provider("CacheFactory",h),a.exports="angular-cache",a.exports.name="angular-cache"},function(b,c,d){b.exports=a},function(a,b,c){!function(b,c){a.exports=c()}(this,function(){return function(a){function b(d){if(c[d])return c[d].exports;var e=c[d]={exports:{},id:d,loaded:!1};return a[d].call(e.exports,e,e.exports,b),e.loaded=!0,e.exports}var c={};return b.m=a,b.c=c,b.p="",b(0)}([function(a,b,c){function d(a,b){return o(a,b)}var e=c(1),f=null;try{f=window.Promise}catch(g){}var h={isNumber:function(a){return"number"==typeof a},isString:function(a){return"string"==typeof a},isObject:function(a){return null!==a&&"object"==typeof a},isFunction:function(a){return"function"==typeof a},fromJson:function(a){return JSON.parse(a)},equals:function(a,b){return a===b},Promise:f},i=function(a){var b=[],c=void 0;for(c in a)a.hasOwnProperty(c)&&b.push(c);return b},j=function(a){return a&&"function"==typeof a.then},k=function(a){return h.isNumber(a)?a.toString():a},l=function(a){var b={},c=void 0;for(c in a)a.hasOwnProperty(c)&&(b[c]=c);return b},m={capacity:Number.MAX_VALUE,maxAge:Number.MAX_VALUE,deleteOnExpire:"none",onExpire:null,cacheFlushInterval:null,recycleFreq:1e3,storageMode:"memory",storageImpl:null,disabled:!1,storagePrefix:"cachefactory.caches.",storeOnResolve:!1,storeOnReject:!1},n={},o=function(a,b){if(a in n)throw new Error(a+" already exists!");if(!h.isString(a))throw new Error("cacheId must be a string!");var c={},d={},f=null,g=new e(function(a){return a.expires},h.equals),o=new e(function(a){return a.accessed},h.equals),p=n[a]={$$id:a,destroy:function(){clearInterval(this.$$cacheFlushIntervalId),clearInterval(this.$$recycleFreqId),this.removeAll(),f&&(f().removeItem(this.$$prefix+".keys"),f().removeItem(this.$$prefix)),f=null,c=null,o=null,g=null,this.$$prefix=null,delete n[this.$$id]},disable:function(){this.$$disabled=!0},enable:function(){delete this.$$disabled},get:function(a,b){var e=this;if(Array.isArray(a)){var g=function(){var c=a,d=[];return c.forEach(function(a){var c=e.get(a,b);null!==c&&void 0!==c&&d.push(c)}),{v:d}}();if("object"==typeof g)return g.v}else if(a=k(a),this.$$disabled)return;if(b=b||{},!h.isString(a))throw new Error("key must be a string!");if(b&&!h.isObject(b))throw new Error("options must be an object!");if(b.onExpire&&!h.isFunction(b.onExpire))throw new Error("options.onExpire must be a function!");var i=void 0;if(f){if(d[a])return d[a];var j=f().getItem(this.$$prefix+".data."+a);if(!j)return;i=h.fromJson(j)}else{if(!(a in c))return;i=c[a]}var l=i.value,m=(new Date).getTime();return f?(o.remove({key:a,accessed:i.accessed}),i.accessed=m,o.push({key:a,accessed:m})):(o.remove(i),i.accessed=m,o.push(i)),"passive"===this.$$deleteOnExpire&&"expires"in i&&i.expiresthis.$$maxAge}):void 0}return a in c?(b=c[a],{created:b.created,accessed:b.accessed,expires:b.expires,isExpired:(new Date).getTime()-b.created>this.$$maxAge}):void 0}return{id:this.$$id,capacity:this.$$capacity,maxAge:this.$$maxAge,deleteOnExpire:this.$$deleteOnExpire,onExpire:this.$$onExpire,cacheFlushInterval:this.$$cacheFlushInterval,recycleFreq:this.$$recycleFreq,storageMode:this.$$storageMode,storageImpl:f?f():void 0,disabled:!!this.$$disabled,size:o&&o.size()||0}},keys:function(){if(f){var a=f().getItem(this.$$prefix+".keys");return a?h.fromJson(a):[]}return i(c)},keySet:function(){if(f){var a=f().getItem(this.$$prefix+".keys"),b={};if(a)for(var d=h.fromJson(a),e=0;ethis.$$capacity&&this.remove(o.peek().key),b}},remove:function(a){if(a+="",delete d[a],!f){var b=c[a]?c[a].value:void 0;return o.remove(c[a]),g.remove(c[a]),c[a]=null,delete c[a],b}var e=f().getItem(this.$$prefix+".data."+a);if(e){var i=h.fromJson(e);o.remove({key:a,accessed:i.accessed}),g.remove({key:a,expires:i.expires}),f().removeItem(this.$$prefix+".data."+a);var j=f().getItem(this.$$prefix+".keys"),k=j?h.fromJson(j):[],l=k.indexOf(a);return l>=0&&k.splice(l,1),f().setItem(this.$$prefix+".keys",JSON.stringify(k)),i.value}},removeAll:function(){if(f){o.removeAll(),g.removeAll();var a=f().getItem(this.$$prefix+".keys");if(a)for(var b=h.fromJson(a),e=0;ea)throw new Error("cacheFlushInterval must be greater than zero!");a!==this.$$cacheFlushInterval&&(this.$$cacheFlushInterval=a,clearInterval(this.$$cacheFlushIntervalId),function(a){a.$$cacheFlushIntervalId=setInterval(function(){a.removeAll()},a.$$cacheFlushInterval)}(this))}},setCapacity:function(a){if(null===a)delete this.$$capacity;else{if(!h.isNumber(a))throw new Error("capacity must be a number!");if(0>a)throw new Error("capacity must be greater than zero!");this.$$capacity=a}for(var b={};o.size()>this.$$capacity;)b[o.peek().key]=this.remove(o.peek().key);return b},setDeleteOnExpire:function(a,b){if(null===a)delete this.$$deleteOnExpire;else{if(!h.isString(a))throw new Error("deleteOnExpire must be a string!");if("none"!==a&&"passive"!==a&&"aggressive"!==a)throw new Error('deleteOnExpire must be "none", "passive" or "aggressive"!');this.$$deleteOnExpire=a}b!==!1&&this.setRecycleFreq(this.$$recycleFreq)},setMaxAge:function(a){if(null===a)this.$$maxAge=Number.MAX_VALUE;else{if(!h.isNumber(a))throw new Error("maxAge must be a number!");if(0>a)throw new Error("maxAge must be greater than zero!");this.$$maxAge=a}var b=void 0,d=void 0,e=void 0;if(g.removeAll(),f){var j=f().getItem(this.$$prefix+".keys");for(d=j?h.fromJson(j):[],b=0;ba)throw new Error("recycleFreq must be greater than zero!");this.$$recycleFreq=a}clearInterval(this.$$recycleFreqId),"aggressive"===this.$$deleteOnExpire?!function(a){a.$$recycleFreqId=setInterval(function(){a.removeExpired()},a.$$recycleFreq)}(this):delete this.$$recycleFreqId},setStorageMode:function(a,b){if(!h.isString(a))throw new Error("storageMode must be a string!");if("memory"!==a&&"localStorage"!==a&&"sessionStorage"!==a)throw new Error('storageMode must be "memory", "localStorage" or "sessionStorage"!');var c=!1,d={};if("string"==typeof this.$$storageMode&&this.$$storageMode!==a){var e=this.keys();if(e.length){for(var g=0;g0;){var f=Math.floor((c+1)/2)-1,g=a[f];if(e>=b(g))break;a[f]=d,a[c]=g,c=f}}var e=function(a,b){if(!(a instanceof b))throw new TypeError("Cannot call a class as a function")},f=function(){function a(a,b){for(var c=0;ch){var j=a[h],k=b(j);f>k&&(i=h)}if(d>g){var l=a[g],m=b(l);m<(null===i?f:b(a[h]))&&(i=g)}if(null===i)break;a[c]=a[i],a[i]=e,c=i}},h=function(){function a(b,c){if(e(this,a),b||(b=function(a){return a}),c||(c=function(a,b){return a===b}),"function"!=typeof b)throw new Error('BinaryHeap([weightFunc][, compareFunc]): "weightFunc" must be a function!');if("function"!=typeof c)throw new Error('BinaryHeap([weightFunc][, compareFunc]): "compareFunc" must be a function!');this.weightFunc=b,this.compareFunc=c,this.heap=[]}return f(a,[{key:"push",value:function(a){this.heap.push(a),d(this.heap,this.weightFunc,this.heap.length-1)}},{key:"peek",value:function(){return this.heap[0]}},{key:"pop",value:function(){var a=this.heap[0],b=this.heap.pop();return this.heap.length>0&&(this.heap[0]=b,g(this.heap,this.weightFunc,0)),a}},{key:"remove",value:function(a){for(var b=this.heap.length,c=0;b>c;c++)if(this.compareFunc(this.heap[c],a)){var e=this.heap[c],f=this.heap.pop();return c!==b-1&&(this.heap[c]=f,d(this.heap,this.weightFunc,c),g(this.heap,this.weightFunc,c)),e}return null}},{key:"removeAll",value:function(){this.heap=[]}},{key:"size",value:function(){return this.heap.length}}]),a}();b["default"]=h,a.exports=b["default"]}])})}])})}])}); //# sourceMappingURL=angular-cache.min.map \ No newline at end of file diff --git a/dist/angular-cache.min.map b/dist/angular-cache.min.map index cdd7327..272363c 100644 --- a/dist/angular-cache.min.map +++ b/dist/angular-cache.min.map @@ -1 +1 @@ -{"version":3,"file":"angular-cache.min.js","sources":["angular-cache.js"],"names":["root","factory","exports","module","require","define","amd","this","__WEBPACK_EXTERNAL_MODULE_1__","modules","__webpack_require__","moduleId","installedModules","id","loaded","call","m","c","p","_classCallCheck","instance","Constructor","TypeError","angular","CacheFactory","utils","equals","isObject","fromJson","BinaryHeapProvider","$get","BinaryHeap","CacheFactoryProvider","defaults","$q","Promise","provider","name","cacheId","options","createCache","isNumber","val","isString","isFunction","JSON","parse","a","b","_keys","collection","keys","key","undefined","hasOwnProperty","push","_isPromiseLike","v","then","_stringifyNumber","number","toString","_keySet","keySet","capacity","Number","MAX_VALUE","maxAge","deleteOnExpire","onExpire","cacheFlushInterval","recycleFreq","storageMode","storageImpl","disabled","storagePrefix","storeOnResolve","storeOnReject","caches","Error","$$data","$$promises","$$storage","$$expiresHeap","x","expires","$$lruHeap","accessed","cache","$$id","destroy","clearInterval","$$cacheFlushIntervalId","$$recycleFreqId","removeAll","removeItem","$$prefix","disable","$$disabled","enable","get","_this","Array","isArray","_ret","values","forEach","value","item","itemJson","getItem","now","Date","getTime","remove","$$deleteOnExpire","$$onExpire","setItem","stringify","info","created","isExpired","$$maxAge","$$capacity","$$cacheFlushInterval","$$recycleFreq","$$storageMode","size","keysJson","kSet","i","length","put","_this2","$$storeOnResolve","$$storeOnReject","getHandler","store","isError","status","data","headers","statusText","reject","exists","peek","index","indexOf","splice","removeExpired","expired","expiredItem","pop","setCacheFlushInterval","self","setInterval","setCapacity","removed","setDeleteOnExpire","setRecycleFreq","setMaxAge","setOnExpire","setOptions","cacheOptions","strict","$$storagePrefix","setStorageMode","shouldReInsert","items","localStorage","e","sessionStorage","touch","_this3","k","opt","destroyAll","clearAll","removeExpiredFromAll","enableAll","disableAll","touchAll","bubbleUp","heap","weightFunc","n","element","weight","parentN","Math","floor","_parent","_createClass","defineProperties","target","props","descriptor","enumerable","configurable","writable","Object","defineProperty","protoProps","staticProps","prototype","bubbleDown","node","nodeWeight","child2N","child1N","swap","child1","child1Weight","child2","child2Weight","compareFunc","y","front","end"],"mappings":";;;;;;;;;;CASA,SAA2CA,EAAMC,GAC1B,gBAAZC,UAA0C,gBAAXC,QACxCA,OAAOD,QAAUD,EAAQG,QAAQ,YACR,kBAAXC,SAAyBA,OAAOC,IAC9CD,QAAQ,WAAYJ,GACM,gBAAZC,SACdA,QAAgC,uBAAID,EAAQG,QAAQ,YAEpDJ,EAA6B,uBAAIC,EAAQD,EAAc,UACtDO,KAAM,SAASC,GAClB,MAAgB,UAAUC,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IACXqB,IAAK,OACLuD,MAAO,SAAcmG,GACnBvM,KAAKgL,KAAKhI,KAAKuJ,GACfxB,EAAS/K,KAAKgL,KAAMhL,KAAKiL,WAAYjL,KAAKgL,KAAKpD,OAAS,MAG1D/E,IAAK,OACLuD,MAAO,WACL,MAAOpG,MAAKgL,KAAK,MAGnBnI,IAAK,MACLuD,MAAO,WACL,GAAI8G,GAAQlN,KAAKgL,KAAK,GAClBmC,EAAMnN,KAAKgL,KAAK/B,KAKpB,OAJIjJ,MAAKgL,KAAKpD,OAAS,IACrB5H,KAAKgL,KAAK,GAAKmC,EACfb,EAAWtM,KAAKgL,KAAMhL,KAAKiL,WAAY,IAElCiC,KAGTrK,IAAK,SACLuD,MAAO,SAAgBmG,GAErB,IAAK,GADD3E,GAAS5H,KAAKgL,KAAKpD,OACdD,EAAI,EAAOC,EAAJD,EAAYA,IAC1B,GAAI3H,KAAKgN,YAAYhN,KAAKgL,KAAKrD,GAAI4E,GAAO,CACxC,GAAIjD,GAAUtJ,KAAKgL,KAAKrD,GACpBwF,EAAMnN,KAAKgL,KAAK/B,KAMpB,OALItB,KAAMC,EAAS,IACjB5H,KAAKgL,KAAKrD,GAAKwF,EACfpC,EAAS/K,KAAKgL,KAAMhL,KAAKiL,WAAYtD,GACrC2E,EAAWtM,KAAKgL,KAAMhL,KAAKiL,WAAYtD,IAElC2B,EAGX,MAAO,SAGTzG,IAAK,YACLuD,MAAO,WACLpG,KAAKgL,WAGPnI,IAAK,OACLuD,MAAO,WACL,MAAOpG,MAAKgL,KAAKpD,WAIdpG,IAGT7B,GAAQ,WAAa6B,EACrB5B,EAAOD,QAAUA,EAAQ"} \ No newline at end of file +{"version":3,"file":"angular-cache.min.js","sources":["angular-cache.js"],"names":["root","factory","exports","module","require","define","amd","this","__WEBPACK_EXTERNAL_MODULE_1__","modules","__webpack_require__","moduleId","installedModules","id","loaded","call","m","c","p","_classCallCheck","instance","Constructor","TypeError","angular","CacheFactory","utils","equals","isObject","fromJson","BinaryHeapProvider","$get","BinaryHeap","CacheFactoryProvider","defaults","$q","Promise","provider","name","cacheId","options","createCache","_Promise","window","e","isNumber","val","isString","isFunction","JSON","parse","a","b","_keys","collection","keys","key","undefined","hasOwnProperty","push","_isPromiseLike","v","then","_stringifyNumber","number","toString","_keySet","keySet","capacity","Number","MAX_VALUE","maxAge","deleteOnExpire","onExpire","cacheFlushInterval","recycleFreq","storageMode","storageImpl","disabled","storagePrefix","storeOnResolve","storeOnReject","caches","Error","$$data","$$promises","$$storage","$$expiresHeap","x","expires","$$lruHeap","accessed","cache","$$id","destroy","clearInterval","$$cacheFlushIntervalId","$$recycleFreqId","removeAll","removeItem","$$prefix","disable","$$disabled","enable","get","_this","Array","isArray","_ret","values","forEach","value","item","itemJson","getItem","now","Date","getTime","remove","$$deleteOnExpire","$$onExpire","setItem","stringify","info","created","isExpired","$$maxAge","$$capacity","$$cacheFlushInterval","$$recycleFreq","$$storageMode","size","keysJson","kSet","i","length","put","_this2","$$storeOnResolve","$$storeOnReject","getHandler","store","isError","status","data","headers","statusText","reject","exists","peek","index","indexOf","splice","removeExpired","expired","expiredItem","pop","setCacheFlushInterval","self","setInterval","setCapacity","removed","setDeleteOnExpire","setRecycleFreq","setMaxAge","setOnExpire","setOptions","cacheOptions","strict","$$storagePrefix","setStorageMode","shouldReInsert","items","localStorage","sessionStorage","touch","_this3","k","opt","destroyAll","clearAll","removeExpiredFromAll","enableAll","disableAll","touchAll","bubbleUp","heap","weightFunc","n","element","weight","parentN","Math","floor","_parent","_createClass","defineProperties","target","props","descriptor","enumerable","configurable","writable","Object","defineProperty","protoProps","staticProps","prototype","bubbleDown","node","nodeWeight","child2N","child1N","swap","child1","child1Weight","child2","child2Weight","compareFunc","y","front","end"],"mappings":";;;;;;;;;;CASA,SAA2CA,EAAMC,GAC1B,gBAAZC,UAA0C,gBAAXC,QACxCA,OAAOD,QAAUD,EAAQG,QAAQ,YACR,kBAAXC,SAAyBA,OAAOC,IAC9CD,QAAQ,WAAYJ,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B,EAAOD,QAAUA,EAAQ"} \ No newline at end of file diff --git a/karma.conf.js b/karma.conf.js index 722da20..e35875d 100644 --- a/karma.conf.js +++ b/karma.conf.js @@ -2,7 +2,7 @@ module.exports = function (config) { config.set({ basePath: './', frameworks: ['mocha', 'chai', 'sinon'], - browsers: ['Chrome', 'Firefox'], + browsers: ['Chrome', 'Firefox', 'PhantomJS'], files: [ 'bower_components/angular-1.2.25/angular.js', 'bower_components/angular-resource/angular-resource.js', diff --git a/package.json b/package.json index 62b5d4a..3d39be9 100644 --- a/package.json +++ b/package.json @@ -1,7 +1,7 @@ { "name": "angular-cache", "description": "angular-cache is a very useful replacement for Angular's $cacheFactory.", - "version": "4.3.0", + "version": "4.3.1", "homepage": "http://jmdobry.github.io/angular-cache/", "main": "dist/angular-cache.js", "repository": { @@ -43,6 +43,7 @@ "karma-script-launcher": "0.1.0", "karma-sinon": "1.0.4", "mocha": "2.2.5", + "phantomjs": "^1.9.17", "sinon": "1.15.4", "time-grunt": "1.2.1", "webpack-dev-server": "1.10.1" @@ -54,6 +55,6 @@ "angular": ">=1.x" }, "dependencies": { - "cachefactory": "1.x" + "cachefactory": "1.0.2" } }