Comparing version 1.0.4 to 1.0.5
{ | ||
"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 @@ } |
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
21287
244