diff --git a/lib/client.js b/lib/client.js index fbc7534..8cba899 100644 --- a/lib/client.js +++ b/lib/client.js @@ -1,4 +1,4 @@ -// Generated by CoffeeScript 1.8.0 +// Generated by CoffeeScript 1.10.0 var Client, Collection, MongoClient, utils; utils = require('./utils'); diff --git a/lib/collection.js b/lib/collection.js index 1a1c4c3..1b8f391 100644 --- a/lib/collection.js +++ b/lib/collection.js @@ -1,4 +1,4 @@ -// Generated by CoffeeScript 1.8.0 +// Generated by CoffeeScript 1.10.0 var Collection, mongodb, oid, prepare, utils; utils = require('./utils'); @@ -20,19 +20,19 @@ Collection = (function() { }; Collection.prototype._find = function(params, options, fn) { - var _ref; - _ref = utils.normalize(params, options, fn), params = _ref.params, options = _ref.options, fn = _ref.fn; + var ref; + ref = utils.normalize(params, options, fn), params = ref.params, options = ref.options, fn = ref.fn; this.db.open(this.name, function(err, col) { - var cursor, field, fields, _i, _len, _ref1; + var cursor, field, fields, i, len, ref1; if (err) { fn(err, []); return; } fields = {}; if (options && utils.is.arr(options.fields)) { - _ref1 = options.fields; - for (_i = 0, _len = _ref1.length; _i < _len; _i++) { - field = _ref1[_i]; + ref1 = options.fields; + for (i = 0, len = ref1.length; i < len; i++) { + field = ref1[i]; if (!utils.is.str(field)) { continue; } @@ -65,15 +65,15 @@ Collection = (function() { }; Collection.prototype.findOne = function(params, options, fn) { - var _ref; - _ref = utils.normalize(params, options, fn), params = _ref.params, options = _ref.options, fn = _ref.fn; + var ref; + ref = utils.normalize(params, options, fn), params = ref.params, options = ref.options, fn = ref.fn; if (!options) { options = {}; } options.limit = 1; this._find(params, options, function(error, response) { - var _ref1; - response = (_ref1 = response[0]) != null ? _ref1 : false; + var ref1; + response = (ref1 = response[0]) != null ? ref1 : false; fn(error, response); }); }; @@ -95,15 +95,15 @@ Collection = (function() { } : {}; options.limit = 1; this._find(params, options, function(error, response) { - var _ref; - response = (_ref = response[0]) != null ? _ref : false; + var ref; + response = (ref = response[0]) != null ? ref : false; fn(error, response); }); }; Collection.prototype.save = function(params, fn) { - var _ref; - _ref = utils.normalize(params, fn), params = _ref.params, fn = _ref.fn; + var ref; + ref = utils.normalize(params, fn), params = ref.params, fn = ref.fn; this.db.open(this.name, function(err, col) { if (err) { fn(err, []); @@ -129,8 +129,8 @@ Collection = (function() { }; Collection.prototype.update = function(params, data, fn) { - var options, _ref; - _ref = utils.normalize(params, data, fn), params = _ref.params, options = _ref.options, fn = _ref.fn; + var options, ref; + ref = utils.normalize(params, data, fn), params = ref.params, options = ref.options, fn = ref.fn; this.db.open(this.name, function(err, col) { if (err) { fn(err, false); @@ -151,8 +151,8 @@ Collection = (function() { }; Collection.prototype._remove = function(params, fn) { - var _ref; - _ref = utils.normalize(params, fn), params = _ref.params, fn = _ref.fn; + var ref; + ref = utils.normalize(params, fn), params = ref.params, fn = ref.fn; this.db.open(this.name, function(err, col) { if (err) { fn(err, []); @@ -179,8 +179,8 @@ Collection = (function() { }; Collection.prototype.count = function(params, fn) { - var _ref; - _ref = utils.normalize(params, fn), params = _ref.params, fn = _ref.fn; + var ref; + ref = utils.normalize(params, fn), params = ref.params, fn = ref.fn; this.db.open(this.name, function(err, col) { if (err) { fn(err, []); diff --git a/lib/index.js b/lib/index.js index 249df59..ad4eec9 100644 --- a/lib/index.js +++ b/lib/index.js @@ -1,4 +1,4 @@ -// Generated by CoffeeScript 1.8.0 +// Generated by CoffeeScript 1.10.0 var exports; module.exports = exports = require('./client'); diff --git a/lib/utils.js b/lib/utils.js index 795836c..542fc6b 100644 --- a/lib/utils.js +++ b/lib/utils.js @@ -1,4 +1,4 @@ -// Generated by CoffeeScript 1.8.0 +// Generated by CoffeeScript 1.10.0 var arr, fun, obj, str; fun = function(f) { diff --git a/package.json b/package.json index 4b14aae..fd6b485 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "easymongo" - , "version": "4.0.1" + , "version": "4.0.2" , "description": "Simple interface for the MongoDB API" , "keywords": ["easymongo", "mongo", "mongodb"] , "author": "Alexey Simonenko " @@ -30,4 +30,4 @@ , "test": "mocha --reporter dot" } , "license": "MIT" -} \ No newline at end of file +}