Skip to content

Commit b6beaac

Browse files
greenkeeperio-botdaffl
authored andcommitted
Update feathers-query-filters to version 2.0.0 šŸš€ (#28)
* chore(package): update feathers-query-filters to version 2.0.0 * Update feathers-query-filters usage
1 parent de46660 commit b6beaac

2 files changed

Lines changed: 4 additions & 6 deletions

File tree

ā€Žpackage.jsonā€Ž

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@
3535
"watch": "babel --watch -d lib/ src/",
3636
"jshint": "jshint src/. test/. --config",
3737
"mocha": "mocha test/ --compilers js:babel-core/register",
38-
"test": "npm run compile && npm run jshint && npm run mocha && nsp check",
38+
"test": "npm run compile && npm run jshint && npm run mocha",
3939
"start": "node example/app.js"
4040
},
4141
"directories": {
@@ -44,7 +44,7 @@
4444
"dependencies": {
4545
"feathers-commons": "^0.7.1",
4646
"feathers-errors": "^2.0.1",
47-
"feathers-query-filters": "^1.1.1",
47+
"feathers-query-filters": "^2.0.0",
4848
"uberproto": "^1.2.0"
4949
},
5050
"devDependencies": {
@@ -58,7 +58,6 @@
5858
"feathers-service-tests": "^0.6.0",
5959
"feathers-socketio": "^1.3.3",
6060
"jshint": "^2.8.0",
61-
"mocha": "^2.5.0",
62-
"nsp": "^2.2.0"
61+
"mocha": "^2.5.0"
6362
}
6463
}

ā€Žsrc/index.jsā€Ž

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -44,8 +44,7 @@ class Service {
4444
// Find without hooks and mixins that can be used internally and always returns
4545
// a pagination object
4646
_find(params, getFilter = filter) {
47-
const query = params.query || {};
48-
const filters = getFilter(query);
47+
const { query, filters } = getFilter(params.query || {});
4948

5049
let values = _.values(this.store).filter(matcher(query));
5150

0 commit comments

Comments
Ā (0)
⚔