Skip to content

Commit

Permalink
Fixing find() by passing this.pattern
Browse files Browse the repository at this point in the history
Fixing `find()` by passing `this.pattern`
  • Loading branch information
avoidwork committed Feb 4, 2017
1 parent 5b07d1d commit c3677ad
Show file tree
Hide file tree
Showing 6 changed files with 10 additions and 10 deletions.
6 changes: 3 additions & 3 deletions lib/haro.es6.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
* @author Jason Mulligan <jason.mulligan@avoidwork.com>
* @copyright 2017
* @license BSD-3-Clause
* @version 3.1.9
* @version 3.1.10
*/
"use strict";

Expand Down Expand Up @@ -524,7 +524,7 @@

find (where, raw = false) {
const key = Object.keys(where).sort().join(this.delimiter),
value = keyIndex(key, where, this.delimiter),
value = keyIndex(key, where, this.delimiter, this.pattern),
result = [];

if (this.indexes.has(key)) {
Expand Down Expand Up @@ -1155,7 +1155,7 @@
}

factory.transform = cast;
factory.version = "3.1.9";
factory.version = "3.1.10";

// Node, AMD & window supported
if (typeof exports !== "undefined") {
Expand Down
6 changes: 3 additions & 3 deletions lib/haro.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
* @author Jason Mulligan <jason.mulligan@avoidwork.com>
* @copyright 2017
* @license BSD-3-Clause
* @version 3.1.9
* @version 3.1.10
*/
"use strict";

Expand Down Expand Up @@ -592,7 +592,7 @@ function _classCallCheck(instance, Constructor) { if (!(instance instanceof Cons
var raw = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : false;

var key = Object.keys(where).sort().join(this.delimiter),
value = keyIndex(key, where, this.delimiter),
value = keyIndex(key, where, this.delimiter, this.pattern),
result = [];

if (this.indexes.has(key)) {
Expand Down Expand Up @@ -1406,7 +1406,7 @@ function _classCallCheck(instance, Constructor) { if (!(instance instanceof Cons
}

factory.transform = cast;
factory.version = "3.1.9";
factory.version = "3.1.10";

// Node, AMD & window supported
if (typeof exports !== "undefined") {
Expand Down
2 changes: 1 addition & 1 deletion lib/haro.min.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion lib/haro.min.js.map

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "haro",
"version": "3.1.9",
"version": "3.1.10",
"description": "Harō is a modern immutable DataStore",
"main": "lib/haro.es6.js",
"scripts": {
Expand Down
2 changes: 1 addition & 1 deletion src/haro.js
Original file line number Diff line number Diff line change
Expand Up @@ -172,7 +172,7 @@

find (where, raw = false) {
const key = Object.keys(where).sort().join(this.delimiter),
value = keyIndex(key, where, this.delimiter),
value = keyIndex(key, where, this.delimiter, this.pattern),
result = [];

if (this.indexes.has(key)) {
Expand Down

0 comments on commit c3677ad

Please sign in to comment.