Comparing version 2.2.1 to 2.2.2
@@ -203,5 +203,5 @@ var mongodb = require('mongodb') | ||
Collection.prototype.ensureIndex = function (index, opts, cb) { | ||
if (typeof opts === 'function') return this.createIndex(index, {}, opts) | ||
if (typeof opts === 'undefined') return this.createIndex(index, {}, noop) | ||
if (typeof cb === 'undefined') return this.createIndex(index, opts, noop) | ||
if (typeof opts === 'function') return this.ensureIndex(index, {}, opts) | ||
if (typeof opts === 'undefined') return this.ensureIndex(index, {}, noop) | ||
if (typeof cb === 'undefined') return this.ensureIndex(index, opts, noop) | ||
@@ -208,0 +208,0 @@ this._getCollection(function (err, collection) { |
@@ -9,3 +9,3 @@ { | ||
], | ||
"version": "2.2.1", | ||
"version": "2.2.2", | ||
"repository": "git://github.com/mafintosh/mongojs.git", | ||
@@ -54,5 +54,5 @@ "author": "Mathias Buus Madsen <mathiasbuus@gmail.com>", | ||
"coordinates": [ | ||
48.2287157, | ||
16.3955287 | ||
48.22875519999999, | ||
16.3954423 | ||
] | ||
} |
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
211420
92
2101