Added dependency to bst

pull/2/head
Louis Chatriot 12 years ago
parent 775b7c0b78
commit 76f093f86d
  1. 5
      lib/datastore.js
  2. 3
      package.json

@ -41,6 +41,7 @@ Datastore.prototype.ensureIndex = function (options) {
options.datastore = this; options.datastore = this;
this.indexes[options.fieldName] = new Index(options); this.indexes[options.fieldName] = new Index(options);
this.indexes[options.fieldName].insert(this.data);
return true; return true;
}; };
@ -362,4 +363,8 @@ Datastore.prototype.remove = function () {
}; };
module.exports = Datastore; module.exports = Datastore;

@ -21,7 +21,8 @@
}, },
"dependencies": { "dependencies": {
"async": "~0.2.8", "async": "~0.2.8",
"underscore": "~1.4.4" "underscore": "~1.4.4",
"binary-search-tree": "~0.1.1"
}, },
"devDependencies": { "devDependencies": {
"chai": "1.0.x", "chai": "1.0.x",

Loading…
Cancel
Save