ampersand-collection
Advanced tools
Comparing version 2.0.1 to 2.0.2
@@ -169,4 +169,18 @@ var AmpersandEvents = require('ampersand-events'); | ||
if (query == null) return; | ||
var index = this._indexes[indexName || this.mainIndex]; | ||
return (index && (index[query] || index[query[this.mainIndex]])) || this._indexes.cid[query] || this._indexes.cid[query.cid]; | ||
var collectionMainIndex = this.mainIndex; | ||
var index = this._indexes[indexName || collectionMainIndex]; | ||
return ( | ||
( | ||
index && ( | ||
index[query] || ( | ||
query[collectionMainIndex] !== undefined && | ||
index[query[collectionMainIndex]] | ||
) | ||
) | ||
) || | ||
this._indexes.cid[query] || | ||
this._indexes.cid[query.cid] | ||
); | ||
}, | ||
@@ -173,0 +187,0 @@ |
{ | ||
"name": "ampersand-collection", | ||
"version": "2.0.1", | ||
"version": "2.0.2", | ||
"author": "Henrik Joreteg <henrik@andyet.net>", | ||
@@ -18,7 +18,7 @@ "bugs": { | ||
"devDependencies": { | ||
"ampersand-state": "^5.0.1", | ||
"jshint": "^2.9.1", | ||
"ampersand-state": "^5.0.3", | ||
"jshint": "^2.9.5", | ||
"phantomjs": "^2.1.7", | ||
"precommit-hook": "^3.0.0", | ||
"tape": "^4.5.1", | ||
"tape": "^4.8.0", | ||
"zuul": "^3.9.0" | ||
@@ -25,0 +25,0 @@ }, |
New author
Supply chain riskA new npm collaborator published a version of the package for the first time. New collaborators are usually benign additions to a project, but do indicate a change to the security surface area of a package.
Found 1 instance in 1 package
33758
355
0