Skip to content

Commit

Permalink
Exporting LRU class for extending, updating the interface for types…
Browse files Browse the repository at this point in the history
…cript, version bump to release
  • Loading branch information
avoidwork committed Sep 29, 2023
1 parent 9665195 commit 31c5e7c
Show file tree
Hide file tree
Showing 11 changed files with 17 additions and 15 deletions.
3 changes: 2 additions & 1 deletion dist/tiny-lru.cjs
Expand Up @@ -3,7 +3,7 @@
*
* @copyright 2023 Jason Mulligan <jason.mulligan@avoidwork.com>
* @license BSD-3-Clause
* @version 11.1.2
* @version 11.2.0
*/
'use strict';

Expand Down Expand Up @@ -185,4 +185,5 @@ function lru (max = 1000, ttl = 0, resetTtl = false) {
return new LRU(max, ttl, resetTtl);
}

exports.LRU = LRU;
exports.lru = lru;
4 changes: 2 additions & 2 deletions dist/tiny-lru.js
Expand Up @@ -3,7 +3,7 @@
*
* @copyright 2023 Jason Mulligan <jason.mulligan@avoidwork.com>
* @license BSD-3-Clause
* @version 11.1.2
* @version 11.2.0
*/
class LRU {
constructor (max = 0, ttl = 0, resetTtl = false) {
Expand Down Expand Up @@ -181,4 +181,4 @@ function lru (max = 1000, ttl = 0, resetTtl = false) {
}

return new LRU(max, ttl, resetTtl);
}export{lru};
}export{LRU,lru};
4 changes: 2 additions & 2 deletions dist/tiny-lru.min.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion dist/tiny-lru.min.js.map

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 2 additions & 2 deletions dist/tiny-lru.umd.js
Expand Up @@ -3,7 +3,7 @@
*
* @copyright 2023 Jason Mulligan <jason.mulligan@avoidwork.com>
* @license BSD-3-Clause
* @version 11.1.2
* @version 11.2.0
*/
(function(g,f){typeof exports==='object'&&typeof module!=='undefined'?f(exports):typeof define==='function'&&define.amd?define(['exports'],f):(g=typeof globalThis!=='undefined'?globalThis:g||self,f(g.lru={}));})(this,(function(exports){'use strict';class LRU {
constructor (max = 0, ttl = 0, resetTtl = false) {
Expand Down Expand Up @@ -181,4 +181,4 @@ function lru (max = 1000, ttl = 0, resetTtl = false) {
}

return new LRU(max, ttl, resetTtl);
}exports.lru=lru;}));
}exports.LRU=LRU;exports.lru=lru;}));

0 comments on commit 31c5e7c

Please sign in to comment.