Socket
Book a DemoInstallSign in
Socket

lru_map

Package Overview
Dependencies
Maintainers
1
Versions
6
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

lru_map - npm Package Compare versions

Comparing version

to
0.4.0

.gitignore

12

lru.d.ts

@@ -1,7 +0,1 @@

// An entry holds the key and value, and pointers to any older and newer entries.
interface Entry<K,V> {
key :K;
value :V;
}
export class LRUMap<K,V> {

@@ -84,1 +78,7 @@ // Construct a new cache object which will hold up to limit entries.

}
// An entry holds the key and value, and pointers to any older and newer entries.
interface Entry<K,V> {
key :K;
value :V;
}
{
"name": "lru_map",
"version": "0.3.3",
"version": "0.4.0",
"description": "Finite key-value map using the Least Recently Used (LRU) algorithm where the most recently used objects are keept in the map while less recently used items are evicted to make room for new ones.",
"main": "lru.js",
"main": "dist/lru.js",
"types": "lru.d.ts",
"typings": "lru.d.ts",
"scripts": {
"test": "node test.js && echo 'Verifying TypeScript definition...' && tsc --noEmit",
"test": "npm run build && node test.js && echo 'Verifying TypeScript definition...' && tsc --noEmit",
"build": "esbuild --minify --sourcemap --outfile=dist/lru.js lru.js",
"prepublish": "npm test",

@@ -16,2 +18,9 @@ "benchmark": "node --expose-gc benchmark.js"

},
"files": [
"README.md",
"lru.d.ts",
"dist/lru.js",
"dist/lru.js.map",
".gitignore"
],
"keywords": [

@@ -30,4 +39,5 @@ "cache",

"devDependencies": {
"typescript": "^2.0.10"
"esbuild": "^0.5.25",
"typescript": "^3.9.6"
}
}
SocketSocket SOC 2 Logo

Product

About

Packages

Stay in touch

Get open source security insights delivered straight into your inbox.

  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc

U.S. Patent No. 12,346,443 & 12,314,394. Other pending.