Comparing version 1.1.3 to 1.1.4
@@ -15,2 +15,4 @@ # Tedium Changelog | ||
* [1.1.4](https://github.com/bretcope/tedium/releases/tag/v1.1.4) | ||
* Don't rollback transactions twice. [4f702b7](https://github.com/bretcope/tedium/commit/4f702b71a12bc9bf28a2d323deb9f3c24b1deee5) | ||
* [1.1.3](https://github.com/bretcope/tedium/releases/tag/v1.1.3) | ||
@@ -17,0 +19,0 @@ * Reset connections when shifting on to the pending queue. [e0e7e90](https://github.com/bretcope/tedium/commit/e0e7e90b53fc6d32caffb828de0c47913b280ed3) |
@@ -141,2 +141,3 @@ "use strict"; | ||
let result; | ||
let isRequestError = false; | ||
@@ -150,5 +151,6 @@ try | ||
error = ex; | ||
isRequestError = ex.constructor && ex.constructor.name === 'RequestError'; | ||
} | ||
if (tran.open) | ||
if (tran.open && (!isRequestError || (isRequestError && !tran.connection.tediousConnection.config.options.abortTransactionOnError))) | ||
yield tran.rollback(); | ||
@@ -155,0 +157,0 @@ |
@@ -140,2 +140,17 @@ "use strict"; | ||
break; | ||
case 'applicationintent': | ||
switch (value.toLowerCase()) | ||
{ | ||
case 'readwrite': config.options.readOnlyIntent = false; break; | ||
case 'readonly': config.options.readOnlyIntent = true; break; | ||
default: throw new Error('Unknown value for ApplicationIntent: ' + value); | ||
} | ||
break; | ||
case 'multisubnetfailover': | ||
switch (value.toLowerCase()) | ||
{ | ||
case 'true': config.options.multiSubnetFailover = true; break; | ||
case 'false': config.options.multiSubnetFailover = false; break; | ||
default: throw new Error('MultiSubnetFailover must be "True" or "False". Found "' + value + '"'); | ||
} | ||
default: | ||
@@ -142,0 +157,0 @@ throw new Error('Unknown connection string token: ' + token); |
{ | ||
"name": "tedium", | ||
"description": "A generator-based wrapper for Tedious to make it easier to work with.", | ||
"version": "1.1.3", | ||
"version": "1.1.4", | ||
"author": "Bret Copeland <bret@atlantisflight.org>", | ||
@@ -6,0 +6,0 @@ "main": "./lib/Tedium.js", |
New author
Supply chain riskA new npm collaborator published a version of the package for the first time. New collaborators are usually benign additions to a project, but do indicate a change to the security surface area of a package.
Found 1 instance in 1 package
33048
631
1