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

eidetic

Package Overview
Dependencies
Maintainers
1
Versions
8
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

eidetic - npm Package Compare versions

Comparing version 0.2.1 to 0.2.2

3

lib/eidetic.js

@@ -5,2 +5,3 @@ module.exports = function Cache(options) {

var self = this,
maxDurationSeconds = parseInt('0x7FFFFFFF', 16) / 1000, // setTimeout uses a 32bit integer to store its delay value, so anything above that (24.8551 days) will cause the timeout to execute immediately
clone = require('clone'),

@@ -81,3 +82,3 @@ hits = 0,

durationSeconds = (durationSeconds) ? Math.max(1, durationSeconds) : 1;
durationSeconds = (durationSeconds) ? Math.max(0, Math.min(maxDurationSeconds, durationSeconds)) : 1; // must be between 0 and 2147483.647 seconds

@@ -84,0 +85,0 @@ if (Object.keys(cachedItems).length >= self.maxSize &&

@@ -7,3 +7,3 @@ {

],
"version": "0.2.1",
"version": "0.2.2",
"dependencies": {

@@ -10,0 +10,0 @@ "clone": "0.1.x"

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