Comparing version 0.3.3 to 0.3.4
@@ -27,5 +27,4 @@ 'use strict'; | ||
cache = []; | ||
lastId = 0; | ||
} | ||
}; | ||
}; |
@@ -69,5 +69,4 @@ 'use strict'; | ||
cache = create(null); | ||
lastId = 0; | ||
} | ||
}; | ||
}; |
@@ -86,5 +86,4 @@ 'use strict'; | ||
cache = create(null); | ||
lastId = 0; | ||
} | ||
}; | ||
}; |
{ | ||
"name": "memoizee", | ||
"version": "0.3.3", | ||
"version": "0.3.4", | ||
"description": "Memoize/cache", | ||
@@ -5,0 +5,0 @@ "author": "Mariusz Nowak <medikoo@medikoo.com> (http://www.medikoo.com/)", |
@@ -225,4 +225,22 @@ 'use strict'; | ||
} | ||
}, | ||
"Sync Clear": function (a, d) { | ||
var mfn, fn; | ||
fn = function (x, cb) { | ||
nextTick(function () { | ||
cb(null, x); | ||
}); | ||
}; | ||
mfn = memoize(fn, { async: true }); | ||
mfn(1, function (err, i) { | ||
a(i, 1, "First"); | ||
}); | ||
mfn.clear(); | ||
mfn(2, function (err, i) { | ||
a(i, 2, "Second"); | ||
d(); | ||
}); | ||
} | ||
}; | ||
}; |
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
130450
3659