Socket
Socket
Sign inDemoInstall

@isaacs/ttlcache

Package Overview
Dependencies
0
Maintainers
1
Versions
13
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

Comparing version 1.2.1 to 1.2.2

2

index.d.ts

@@ -92,3 +92,3 @@ // Type definitions for ttlcache 1.0.0

declare namespace TTLCache {
type DisposeReason = 'evict' | 'set' | 'delete'
type DisposeReason = 'evict' | 'set' | 'delete' | 'stale'

@@ -95,0 +95,0 @@ type Disposer<K, V> = (

@@ -6,2 +6,3 @@ // A simple TTL cache with max capacity option, ms resolution,

/* istanbul ignore next */
const perf =

@@ -13,2 +14,3 @@ typeof performance === 'object' &&

: Date
const now = () => perf.now()

@@ -15,0 +17,0 @@ const isPosInt = n => n && n === Math.floor(n) && n > 0 && isFinite(n)

{
"name": "@isaacs/ttlcache",
"version": "1.2.1",
"version": "1.2.2",
"files": [

@@ -5,0 +5,0 @@ "index.js",

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