Skip to content
This repository has been archived by the owner on Oct 28, 2024. It is now read-only.

Commit

Permalink
fix index.js function alias bindings
Browse files Browse the repository at this point in the history
  • Loading branch information
chilltemp committed Apr 29, 2016
1 parent 76e72a6 commit 9a2989e
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 10 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "tedious-promises",
"version": "0.3.2",
"version": "0.3.3",
"description": "Wraps Tedious SQL commands with Q promises.",
"author": "Charles Hill <code@chillweb.net>",
"repository": "chilltemp/tedious-promises",
Expand Down
19 changes: 10 additions & 9 deletions src/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,14 +4,15 @@ module.exports.MockData = require('./MockData');
module.exports.TediousPromise = require('./TediousPromise');
module.exports.TediousPromises = require('./TediousPromises');
module.exports.TediousPromiseColumn = require('./TediousPromiseColumn');
module.exports.MockTediousConnection = require('./MockTediousConnection');

var defaultInstance = new module.exports.TediousPromises();
module.exports.sql = defaultInstance.sql;
module.exports.beginTransaction = defaultInstance.beginTransaction;
module.exports.commitTransaction = defaultInstance.commitTransaction;
module.exports.saveTransaction = defaultInstance.saveTransaction;
module.exports.rollbackTransaction = defaultInstance.rollbackTransaction;
module.exports.setConnectionPool = defaultInstance.setConnectionPool;
module.exports.setConnectionConfig = defaultInstance.setConnectionConfig;
module.exports.setMockDataCallback = defaultInstance.setMockDataCallback;
module.exports.setDefaultColumnRenamer = defaultInstance.setDefaultColumnRenamer;
module.exports.sql = defaultInstance.sql.bind(defaultInstance);
module.exports.beginTransaction = defaultInstance.beginTransaction.bind(defaultInstance);
module.exports.commitTransaction = defaultInstance.commitTransaction.bind(defaultInstance);
module.exports.saveTransaction = defaultInstance.saveTransaction.bind(defaultInstance);
module.exports.rollbackTransaction = defaultInstance.rollbackTransaction.bind(defaultInstance);
module.exports.setConnectionPool = defaultInstance.setConnectionPool.bind(defaultInstance);
module.exports.setConnectionConfig = defaultInstance.setConnectionConfig.bind(defaultInstance);
module.exports.setMockDataCallback = defaultInstance.setMockDataCallback.bind(defaultInstance);
module.exports.setDefaultColumnRenamer = defaultInstance.setDefaultColumnRenamer.bind(defaultInstance);

0 comments on commit 9a2989e

Please sign in to comment.