Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

hashlru

Package Overview
Dependencies
Maintainers
3
Versions
11
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

hashlru - npm Package Compare versions

Comparing version 1.0.6 to 2.0.0

3

index.js
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 @@

2

package.json
{
"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

SocketSocket SOC 2 Logo

Product

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

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc