From 8f4c664edf3fa2158af9ad7b59eabe7025ee1df9 Mon Sep 17 00:00:00 2001 From: vladikoff Date: Tue, 16 Oct 2018 22:42:01 -0400 Subject: [PATCH] feat(deps): update to bluebird 3 Fixes #570 --- lib/db/mysql/index.js | 4 ++-- npm-shrinkwrap.json | 13 ++++++++++--- package.json | 2 +- 3 files changed, 13 insertions(+), 6 deletions(-) diff --git a/lib/db/mysql/index.js b/lib/db/mysql/index.js index fef9fa9..b3a00f1 100644 --- a/lib/db/mysql/index.js +++ b/lib/db/mysql/index.js @@ -108,7 +108,7 @@ MysqlStore.connect = function mysqlConnect(options) { options.mysql = mysql; var patcher = new MysqlPatcher(options); - return P.promisify(patcher.connect, patcher)().then(function() { + return P.promisify(patcher.connect, {context: patcher})().then(function() { if (options.createSchema) { return updateDbSchema(patcher); } @@ -118,7 +118,7 @@ MysqlStore.connect = function mysqlConnect(options) { logger.error('checkDbPatchLevel', error); throw error; }).finally(function () { - return P.promisify(patcher.end, patcher)(); + return P.promisify(patcher.end, {context: patcher})(); }).then(function() { return new MysqlStore(options); }); diff --git a/npm-shrinkwrap.json b/npm-shrinkwrap.json index 45e9001..cffbc77 100644 --- a/npm-shrinkwrap.json +++ b/npm-shrinkwrap.json @@ -427,9 +427,9 @@ "dev": true }, "bluebird": { - "version": "2.11.0", - "resolved": "https://registry.npmjs.org/bluebird/-/bluebird-2.11.0.tgz", - "integrity": "sha1-U0uQM8AiyVecVro7Plpcqvu2UOE=" + "version": "3.5.2", + "resolved": "https://registry.npmjs.org/bluebird/-/bluebird-3.5.2.tgz", + "integrity": "sha512-dhHTWMI7kMx5whMQntl7Vr9C6BvV10lFXDAasnqnrMYhXVCzzk6IO9Fo2L75jXHT07WrOngL1WDXOp+yYS91Yg==" }, "bn.js": { "version": "1.3.0", @@ -4980,6 +4980,13 @@ "clone": "^0.1.18", "glob": "^5.0.3", "xtend": "^4.0.0" + }, + "dependencies": { + "bluebird": { + "version": "2.11.0", + "resolved": "http://registry.npmjs.org/bluebird/-/bluebird-2.11.0.tgz", + "integrity": "sha1-U0uQM8AiyVecVro7Plpcqvu2UOE=" + } } }, "nan": { diff --git a/package.json b/package.json index fc31c95..edb885e 100644 --- a/package.json +++ b/package.json @@ -24,7 +24,7 @@ "node": ">=8" }, "dependencies": { - "bluebird": "2.11.0", + "bluebird": "3.5.2", "buf": "0.1.0", "commander": "2.15.1", "convict": "4.0.2",