diff --git a/lib/bluebird-plus.js b/lib/bluebird-plus.js index 79d5dfb4..b9488f46 100644 --- a/lib/bluebird-plus.js +++ b/lib/bluebird-plus.js @@ -14,7 +14,7 @@ * limitations under the License. */ 'use strict'; -var bluebirdPlus = require('bluebird/js/main/promise')(); +var bluebirdPlus = require('bluebird/js/release/promise')(); // when the last callback in a chain throws an error in the callback code, // do not wait indefinitely for an error callback to be provided diff --git a/lib/documents.js b/lib/documents.js index 2e050a02..e31fc41a 100644 --- a/lib/documents.js +++ b/lib/documents.js @@ -202,8 +202,7 @@ function probeDocumentsImpl(contentOnly, args) { throw new Error('must supply uri for document check()'); } - var params = (args.length === 1 && typeof args[0] !== 'string' - && !(args[0] instanceof String)) ? args[0] : null; + var params = (args.length === 1 && typeof args[0] !== 'string' && !(args[0] instanceof String)) ? args[0] : null; var uri = null; var txid = null; @@ -336,7 +335,7 @@ Documents.prototype.protect = function protectDocument() { if (archivePath !== null) { try { - fs.accessSync(pathModule.dirname(archivePath)) + fs.accessSync(pathModule.dirname(archivePath)); } catch (e) { throw new Error('archive directory does not exist: ' + archivePath); } diff --git a/lib/query-builder.js b/lib/query-builder.js index 9b15db61..967f6e9e 100644 --- a/lib/query-builder.js +++ b/lib/query-builder.js @@ -1897,7 +1897,7 @@ function minDistance() { /** @ignore */ function MinDistanceDef(distance) { if (!(this instanceof MinDistanceDef)) { - return new MinDistanceDef(number); + return new MinDistanceDef(distance); } if (typeof distance === 'number' || distance instanceof Number) { diff --git a/package.json b/package.json index 5d164d5a..f913fd9c 100644 --- a/package.json +++ b/package.json @@ -20,13 +20,13 @@ "xpath" ], "dependencies": { - "bluebird": "^2.9.6", - "concat-stream": "^1.4.7", - "deepcopy": "^0.4.0", + "bluebird": "^3.4.7", + "concat-stream": "^1.6.0", + "deepcopy": "^0.6.3", "dicer": "^0.2.5", - "multipart-stream": "^1.0.0", - "qs": "^2.3.3", - "through2": "^0.6.3", + "multipart-stream": "^2.0.1", + "qs": "^6.3.0", + "through2": "^2.0.3", "www-authenticate": "^0.6.2", "yakaa": "^1.0.1" }, @@ -42,16 +42,16 @@ "core-util-is": "^1.0.1", "gulp": "^3.8.10", "gulp-jsdoc": "^0.1.4", - "gulp-jshint": "^1.9.2", - "gulp-mocha": "^2.0.0", + "gulp-jshint": "^2.0.4", + "gulp-mocha": "^3.0.1", "jsdoc": "^3.3.0-beta1", "jshint": "^2.6.0", - "mocha": "^2.1.0", + "mocha": "^3.2.0", "read": "^1.0.5", - "should": "^4.6.5", - "winston": "^0.9.0" + "should": "^11.2.0", + "winston": "^2.3.1" }, "optionalDependencies": { - "kerberos": "^0.0.21" + "kerberos": "^0.0.22" } }