Comparing version 4.2.9 to 4.3.0
{ | ||
"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 @@ } |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
25484
313