From 73ac11e6ab2335e83616539d49a2cd6ced11990d Mon Sep 17 00:00:00 2001 From: Sheotank Saxena Date: Mon, 17 Aug 2020 15:40:26 +0530 Subject: [PATCH 1/3] Update Package.json to Fix TypeError Update Package.json to Fix TypeError: cb is not a function --- package.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/package.json b/package.json index 0e96a49..1c814de 100755 --- a/package.json +++ b/package.json @@ -31,7 +31,7 @@ ], "license": "MIT", "dependencies": { - "tedious": "^1.14.0" + "tedious": "^6.2.0" }, "devDependencies": { "mocha": "^3.0.2", From 821c22498fae81be49ee9ff99d07dbceeec6599d Mon Sep 17 00:00:00 2001 From: Sheotank Saxena Date: Mon, 17 Aug 2020 16:06:12 +0530 Subject: [PATCH 2/3] Fixed- TypeError: cb is not a function --- test/test.js | 20 +++++++++++++++----- 1 file changed, 15 insertions(+), 5 deletions(-) diff --git a/test/test.js b/test/test.js index 252d16e..91bada5 100644 --- a/test/test.js +++ b/test/test.js @@ -10,8 +10,6 @@ if (process.env.APPVEYOR) { timeout = 30000; connectionConfig = { server: 'localhost', - userName: 'sa', - password: 'Password12!', options: { appName: 'pool-test', database: 'master', @@ -19,17 +17,29 @@ if (process.env.APPVEYOR) { cryptoCredentialsDetails: { ciphers: 'RC4-MD5' } + }, + authentication: { + type: 'default', + options: { + userName: 'sa', + password: 'Password12!' + } } }; } else { timeout = 10000; connectionConfig = { - userName: 'test', - password: 'test', server: 'dev1', options: { appName: 'pool-test', database: 'test' + }, + authentication: { + type: 'default', + options: { + userName: 'test', + password: 'test!' + } } }; } @@ -510,4 +520,4 @@ if (!process.env.APPVEYOR) { } }); }); -} \ No newline at end of file +} From 81324fa52419be2e0915f140d1e147c43d93e8e1 Mon Sep 17 00:00:00 2001 From: Sheotank Saxena Date: Mon, 17 Aug 2020 16:15:06 +0530 Subject: [PATCH 3/3] Update test.js --- test/test.js | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/test/test.js b/test/test.js index 91bada5..1eecb23 100644 --- a/test/test.js +++ b/test/test.js @@ -12,13 +12,14 @@ if (process.env.APPVEYOR) { server: 'localhost', options: { appName: 'pool-test', + enableArithAbort: false, database: 'master', requestTimeout: 25000, cryptoCredentialsDetails: { ciphers: 'RC4-MD5' } }, - authentication: { + authentication: { type: 'default', options: { userName: 'sa', @@ -32,6 +33,7 @@ if (process.env.APPVEYOR) { server: 'dev1', options: { appName: 'pool-test', + enableArithAbort: false, database: 'test' }, authentication: {