Comparing version 1.0.6 to 2.0.0
module.exports = function (max) { | ||
if (!max) throw Error('hashlru must have a max value, of type number, greater than 0') | ||
var size = 0, cache = Object.create(null), _cache = Object.create(null) | ||
@@ -3,0 +6,0 @@ |
{ | ||
"name": "hashlru", | ||
"description": "simpler faster substitute for LRU", | ||
"version": "1.0.6", | ||
"version": "2.0.0", | ||
"homepage": "https://github.com/dominictarr/hashlru", | ||
@@ -6,0 +6,0 @@ "repository": { |
@@ -29,3 +29,5 @@ var assert = require('assert') | ||
// object purity: | ||
assert.equal(lru.get('constructor'), undefined) | ||
assert.equal(lru.get('constructor'), undefined) | ||
// max validation: | ||
assert.throws(HLRU) |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
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
7460
79