Socket
Socket
Sign inDemoInstall

keyv

Package Overview
Dependencies
1
Maintainers
1
Versions
53
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

Comparing version 1.0.4 to 1.0.5

2

package.json
{
"name": "keyv",
"version": "1.0.4",
"version": "1.0.5",
"description": "Simple key-value storage with support for multiple backends",

@@ -5,0 +5,0 @@ "main": "src/index.js",

@@ -138,3 +138,7 @@ <h1 align="center">

constructor(opts) {
this.cache = new Keyv(opts.cache, { namespace: 'awesome-module' });
this.cache = new Keyv({
uri: typeof opts.cache === 'string' && opts.cache,
store: typeof opts.cache !== 'string' && opts.cache,
namespace: 'awesome-module'
});
}

@@ -141,0 +145,0 @@ }

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