From f693b74a40da9b4c5d55aed8e1158f67c6b2e477 Mon Sep 17 00:00:00 2001 From: victorsosa Date: Mon, 17 Apr 2017 11:19:06 -0400 Subject: [PATCH] update mssql v4.0.1 dependency --- lib/adapter.js | 4 ++-- package.json | 10 +++++----- 2 files changed, 7 insertions(+), 7 deletions(-) diff --git a/lib/adapter.js b/lib/adapter.js index b5738d6..8b87cb9 100644 --- a/lib/adapter.js +++ b/lib/adapter.js @@ -118,7 +118,7 @@ module.exports = (function () { var isPersistent = connections[connection].config.persistent; if (isPersistent && (!connections[connection].mssqlConnection || !connections[connection].mssqlConnection.connected)) { - connections[connection].mssqlConnection = new mssql.Connection(marshalConfig(connections[connection].config)); + connections[connection].mssqlConnection = new mssql.ConnectionPool(marshalConfig(connections[connection].config)); connections[connection].mssqlConnection.connect() .then(cb); } @@ -127,7 +127,7 @@ module.exports = (function () { connections[connection].mssqlConnection = []; } - connections[connection].mssqlConnection[uniqId] = new mssql.Connection(marshalConfig(connections[connection].config)); + connections[connection].mssqlConnection[uniqId] = new mssql.ConnectionPool(marshalConfig(connections[connection].config)); connections[connection].mssqlConnection[uniqId].connect() .then(function(err) { cb(err, uniqId); diff --git a/package.json b/package.json index 3c782ea..0e3cde1 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "sails-sqlserver", - "version": "0.10.9", + "version": "0.10.10", "description": "Official SQL Server Adapter for Sails / Waterline", "main": "lib/adapter.js", "scripts": { @@ -36,11 +36,11 @@ ], "license": "MIT", "dependencies": { - "captains-log": "^0.11.11", - "lodash": "^3.8.0", - "mssql": "^2.1.3", + "captains-log": "^1.0.2", + "lodash": "^4.17.4", + "mssql": "^4.0.1", "underscore.string": "^3.0.0", - "waterline-cursor": "0.0.5" + "waterline-cursor": "0.0.7" }, "bundledDependencies": [ "lodash",