Comparing version 2.0.0 to 2.0.1
{ | ||
"name": "enmap", | ||
"version": "2.0.0", | ||
"version": "2.0.1", | ||
"description": "", | ||
@@ -5,0 +5,0 @@ "main": "index.js", |
@@ -15,3 +15,2 @@ /** | ||
console.log(options.fetchAll); | ||
this.fetchAll = options.fetchAll !== undefined ? options.fetchAll : true; | ||
@@ -28,3 +27,3 @@ | ||
static multi(names, Provider, options) { | ||
static multi(names, Provider, options = {}) { | ||
if (!names.length || names.length < 1) { | ||
@@ -76,3 +75,7 @@ throw new Error('"names" parameter must be an array of string names'); | ||
} | ||
return new this.constructor(await Promise.all(keyOrKeys.map(async key => [key, await this.db.fetch(key)]))); | ||
return new this.constructor(await Promise.all(keyOrKeys.map(async key => { | ||
const value = await this.db.fetch(key); | ||
super.set(key, value); | ||
return [key, value]; | ||
}))); | ||
} | ||
@@ -79,0 +82,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
803
65290
11