nedb-async
Advanced tools
Comparing version 0.1.5 to 0.1.6
@@ -27,3 +27,3 @@ "use strict"; | ||
const valid = ['sort', 'limit', 'skip']; | ||
if (valid.includes(method)) { | ||
if (!valid.includes(method)) { | ||
throw new Error(`${method} is not recognized, available methods are ${valid.join(',')}`); | ||
@@ -30,0 +30,0 @@ } |
{ | ||
"name": "nedb-async", | ||
"version": "0.1.5", | ||
"version": "0.1.6", | ||
"description": "Promise wrapper for Nedb that makes it possible to use all Nedb all cursor modifiers.", | ||
@@ -5,0 +5,0 @@ "repository": { |
8972