🚀 Big News: Socket Acquires Coana to Bring Reachability Analysis to Every Appsec Team.Learn more
Socket
Book a DemoInstallSign in
Socket

cache-conf

Package Overview
Dependencies
Maintainers
1
Versions
7
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

cache-conf - npm Package Compare versions

Comparing version

to
0.4.0

6

index.js

@@ -39,5 +39,7 @@ 'use strict';

const timestamp = typeof opts.maxAge === 'number' ? Date.now() + opts.maxAge : undefined;
Object.keys(key).forEach(k => {
super.set(k, {
timestamp: opts.maxAge && Date.now() + opts.maxAge,
timestamp,
version: this.version,

@@ -49,3 +51,3 @@ data: key[k]

super.set(key, {
timestamp: opts.maxAge && Date.now() + opts.maxAge,
timestamp: typeof opts.maxAge === 'number' ? Date.now() + opts.maxAge : undefined,
version: this.version,

@@ -52,0 +54,0 @@ data: val

{
"name": "cache-conf",
"version": "0.3.0",
"version": "0.4.0",
"description": "Simple cache config handling for your app or module",

@@ -5,0 +5,0 @@ "license": "MIT",