Comparing version 1.0.2 to 1.0.3
{ | ||
"name": "aul", | ||
"version": "1.0.2", | ||
"version": "1.0.3", | ||
"description": "Elegant database queries executor", | ||
@@ -26,6 +26,6 @@ "main": "index.js", | ||
"devDependencies": { | ||
"ava": "0.17.0" | ||
"ava": "^0.21.0" | ||
}, | ||
"dependencies": { | ||
"koa-compose": "3.2.1" | ||
"koa-compose": "^4.0.0" | ||
}, | ||
@@ -32,0 +32,0 @@ "ava": { |
# AUL | ||
[![Greenkeeper badge](https://badges.greenkeeper.io/zemd/aul.svg)](https://greenkeeper.io/) | ||
> Elegant database queries executor | ||
@@ -4,0 +6,0 @@ |
@@ -31,3 +31,3 @@ "use strict"; | ||
*/ | ||
addFilter(name, opts, append = false) { | ||
addFilter(name, opts, append = true) { | ||
if (name in this._filters && append) { | ||
@@ -34,0 +34,0 @@ this._filters[name] = [].concat.call( |
@@ -139,3 +139,5 @@ "use strict"; | ||
} | ||
// TODO: check if results is array | ||
if (!Array.isArray(results)) { | ||
results = [results]; | ||
} | ||
return criteria.mappers.reduce((results, mapper) => { | ||
@@ -142,0 +144,0 @@ if (typeof mapper === "function") { |
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
20310
366
205
+ Addedkoa-compose@4.2.0(transitive)
- Removedany-promise@1.3.0(transitive)
- Removedkoa-compose@3.2.1(transitive)
Updatedkoa-compose@^4.0.0