Comparing version 0.1.0 to 0.1.1
@@ -6,2 +6,3 @@ module.exports = function Cache(options) { | ||
_ = require('underscore'), | ||
clone = require('clone'), | ||
hits = 0, | ||
@@ -90,5 +91,5 @@ total = 0, | ||
} | ||
cachedItems[key] = { | ||
value: _.extend({}, value), | ||
value: clone(value), | ||
durationSeconds: durationSeconds, | ||
@@ -131,2 +132,2 @@ useSlidingExpiration: useSlidingExpiration, | ||
}; | ||
}; | ||
}; |
@@ -7,9 +7,10 @@ { | ||
], | ||
"version": "0.1.0", | ||
"version": "0.1.1", | ||
"dependencies": { | ||
"underscore": "1.3.3" | ||
"underscore": "1.x.x", | ||
"clone": "0.1.x" | ||
}, | ||
"devDependencies": { | ||
"mocha": "1.3.0", | ||
"jshint": "0.6.3" | ||
"mocha": "1.x.x", | ||
"jshint": "0.6.x" | ||
@@ -16,0 +17,0 @@ }, |
var assert = require('assert'), | ||
Cache = require('../lib-test/Eidetic.js'), | ||
Cache = require('../lib-test/eidetic.js'), | ||
_ = require('underscore'), | ||
@@ -54,3 +54,3 @@ options = { | ||
var value = cache.get('key'); | ||
assert(_.isEqual(value, testValue), 'The cached value should be equal to the test value'); | ||
@@ -57,0 +57,0 @@ done(); |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
18899
359
2
+ Addedclone@0.1.x
+ Addedclone@0.1.19(transitive)
+ Addedunderscore@1.13.7(transitive)
- Removedunderscore@1.3.3(transitive)
Updatedunderscore@1.x.x