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

enmap

Package Overview
Dependencies
Maintainers
1
Versions
172
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

enmap - npm Package Compare versions

Comparing version 2.0.0 to 2.0.1

2

package.json
{
"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 @@

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