Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
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 0.3.0 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",

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