Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

tedious

Package Overview
Dependencies
Maintainers
4
Versions
227
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

tedious - npm Package Compare versions

Comparing version 0.2.4 to 0.3.0

20

lib/connection.js

@@ -287,3 +287,3 @@ // Generated by CoffeeScript 1.7.1

Connection.prototype.defaultConfig = function() {
var _base, _base1, _base10, _base11, _base2, _base3, _base4, _base5, _base6, _base7, _base8, _base9;
var _base, _base1, _base10, _base11, _base12, _base2, _base3, _base4, _base5, _base6, _base7, _base8, _base9;
(_base = this.config).options || (_base.options = {});

@@ -305,2 +305,3 @@ (_base1 = this.config.options).textsize || (_base1.textsize = DEFAULT_TEXTSIZE);

}
(_base12 = this.config.options).connectionIsolationLevel || (_base12.connectionIsolationLevel = ISOLATION_LEVEL.READ_COMMITTED);
if (!this.config.options.port && !this.config.options.instanceName) {

@@ -719,3 +720,3 @@ return this.config.options.port = DEFAULT_PORT;

Connection.prototype.getInitialSql = function() {
return 'set textsize ' + this.config.options.textsize + 'set quoted_identifier on\nset arithabort off\nset numeric_roundabort off\nset ansi_warnings on\nset ansi_padding on\nset ansi_nulls on\nset concat_null_yields_null on\nset cursor_close_on_commit off\nset implicit_transactions off\nset language us_english\nset dateformat mdy\nset datefirst 7\nset transaction isolation level read committed';
return "set textsize " + this.config.options.textsize + "\nset quoted_identifier on\nset arithabort off\nset numeric_roundabort off\nset ansi_warnings on\nset ansi_padding on\nset ansi_nulls on\nset concat_null_yields_null on\nset cursor_close_on_commit off\nset implicit_transactions off\nset language us_english\nset dateformat mdy\nset datefirst 7\nset transaction isolation level " + (this.getIsolationLevelText(this.config.options.connectionIsolationLevel));
};

@@ -853,2 +854,17 @@

Connection.prototype.getIsolationLevelText = function(isolationLevel) {
switch (isolationLevel) {
case ISOLATION_LEVEL.READ_UNCOMMITTED:
return 'read uncommitted';
case ISOLATION_LEVEL.REPEATABLE_READ:
return 'repeatable read';
case ISOLATION_LEVEL.SERIALIZABLE:
return 'serializable';
case ISOLATION_LEVEL.SNAPSHOT:
return 'snapshot';
default:
return 'read committed';
}
};
return Connection;

@@ -855,0 +871,0 @@

@@ -30,2 +30,7 @@ // Generated by CoffeeScript 1.7.1

colName = buffer.readBVarchar();
if (options.camelCaseColumns) {
colName = colName.replace(/^[A-Z]/, function(s) {
return s.toLowerCase();
});
}
column = {

@@ -32,0 +37,0 @@ userType: metadata.userType,

8

package.json

@@ -29,3 +29,3 @@ {

],
"version": "0.2.4",
"version": "0.3.0",
"main": "./lib/tedious.js",

@@ -49,5 +49,7 @@ "repository": {

"scripts": {
"test": "scripts/tests-unit",
"prepublish": "scripts/build"
"test": "node_modules/.bin/nodeunit test/register-coffee.js test/unit/ test/unit/token/ test/unit/tracking-buffer",
"test-all": "node_modules/.bin/nodeunit test/register-coffee.js test/unit/ test/unit/token/ test/unit/tracking-buffer test/integration/",
"test-integration": "node_modules/.bin/nodeunit test/register-coffee.js test/integration/",
"prepublish": "node_modules/.bin/coffee scripts/build.coffee"
}
}

@@ -7,2 +7,10 @@ # Tedious (node implementation of TDS)

## What's new in 0.3
- Added support for default connection isolation level
- Added support for returning camel cased columns
- Added support for building lib on Windows
- Fixed issue with IEEE 754 rounding errors
- Minor fixes
## What's new in 0.2

@@ -9,0 +17,0 @@

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