New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

tedium

Package Overview
Dependencies
Maintainers
3
Versions
12
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

tedium - npm Package Compare versions

Comparing version 1.1.3 to 1.1.4

2

History.md

@@ -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)

4

lib/TdmConnection.js

@@ -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",

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc