Socket
Socket
Sign inDemoInstall

lru-cache

Package Overview
Dependencies
0
Maintainers
1
Versions
134
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

Comparing version 7.14.1 to 7.15.0

index.mjs

30

package.json
{
"name": "lru-cache",
"description": "A cache object that deletes the least-recently-used items.",
"version": "7.14.1",
"version": "7.15.0",
"author": "Isaac Z. Schlueter <i@izs.me>",

@@ -13,3 +13,4 @@ "keywords": [

"scripts": {
"build": "",
"pretest": "node ./scripts/transpile-to-esm.mjs",
"presnap": "node ./scripts/transpile-to-esm.mjs",
"size": "size-limit",

@@ -21,5 +22,22 @@ "test": "tap",

"prepublishOnly": "git push origin --follow-tags",
"format": "prettier --write ."
"format": "prettier --write .",
"typedoc": "typedoc ./index.d.ts"
},
"main": "index.js",
"type": "commonjs",
"main": "./index.js",
"module": "./index.mjs",
"types": "./index.d.ts",
"exports": {
".": {
"import": {
"types": "./index.d.ts",
"default": "./index.mjs"
},
"require": {
"types": "./index.d.ts",
"default": "./index.js"
}
},
"./package.json": "./package.json"
},
"repository": "git://github.com/isaacs/node-lru-cache.git",

@@ -36,5 +54,6 @@ "devDependencies": {

"size-limit": "^7.0.8",
"tap": "^16.0.1",
"tap": "^16.3.4",
"ts-node": "^10.7.0",
"tslib": "^2.4.0",
"typedoc": "^0.23.24",
"typescript": "^4.6.4"

@@ -45,2 +64,3 @@ },

"index.js",
"index.mjs",
"index.d.ts"

@@ -47,0 +67,0 @@ ],

7

README.md

@@ -33,3 +33,6 @@ # lru-cache

```js
const LRU = require('lru-cache')
// hybrid module, either works
import LRUCache from 'lru-cache'
// or:
const LRUCache = require('lru-cache')

@@ -74,3 +77,3 @@ // At least one of 'max', 'ttl', or 'maxSize' is required, to prevent

const cache = new LRU(options)
const cache = new LRUCache(options)

@@ -77,0 +80,0 @@ cache.set("key", "value")

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc