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

keyv

Package Overview
Dependencies
Maintainers
2
Versions
61
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

keyv - npm Package Compare versions

Comparing version 4.2.9 to 4.3.0

5

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

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

},
"workspaces": [
"packages/test-suite"
],
"xo": {

@@ -13,0 +16,0 @@ "rules": {

@@ -10,2 +10,3 @@ 'use strict';

redis: '@keyv/redis',
rediss: '@keyv/redis',
mongodb: '@keyv/mongo',

@@ -39,3 +40,3 @@ mongo: '@keyv/mongo',

class Keyv extends EventEmitter {
constructor(uri, options) {
constructor(uri, {emitErrors = true, ...options} = {}) {
super();

@@ -64,3 +65,3 @@ this.opts = {

if (typeof this.opts.store.on === 'function') {
if (typeof this.opts.store.on === 'function' && emitErrors) {
this.opts.store.on('error', error => this.emit('error', error));

@@ -67,0 +68,0 @@ }

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