simple-oracledb
Advanced tools
Comparing version 1.1.69 to 1.1.70
| Date | Version | Description | | ||
| ----------- | ------- | ----------- | | ||
| 2017-04-28 | v1.1.69 | Maintenance | | ||
| 2017-04-28 | v1.1.70 | Maintenance | | ||
| 2017-01-20 | v1.1.57 | connection.run, connection.transaction and oracledb.run actions can now return a promise instead of using a callback | | ||
@@ -5,0 +5,0 @@ | 2017-01-14 | v1.1.56 | pool.run actions now can return a promise instead of using a callback | |
'use strict'; | ||
var singleAsyncCallback = require('./single-async-callback'); | ||
var funcs = require('funcs-js'); | ||
@@ -59,3 +59,5 @@ /** | ||
PromiseHelper.prototype.runAsync = function (func, callback) { | ||
callback = singleAsyncCallback(callback); | ||
callback = funcs.once(callback, { | ||
callbackStyle: true | ||
}); | ||
@@ -62,0 +64,0 @@ var promise = func(callback); |
@@ -46,3 +46,3 @@ 'use strict'; | ||
var Monitor = require('./monitor'); | ||
var singleAsyncCallback = require('./single-async-callback'); | ||
var funcs = require('funcs-js'); | ||
var promiseHelper = require('./promise-helper'); | ||
@@ -335,3 +335,5 @@ | ||
onActionDone = singleAsyncCallback(onActionDone); | ||
onActionDone = funcs.once(onActionDone, { | ||
callbackStyle: true | ||
}); | ||
@@ -338,0 +340,0 @@ var promise = action(connection, onActionDone); |
'use strict'; | ||
var singleAsyncCallback = require('./single-async-callback'); | ||
var funcs = require('funcs-js'); | ||
@@ -33,3 +33,5 @@ /*jslint debug: true */ | ||
callback = singleAsyncCallback(callback); | ||
callback = funcs.once(callback, { | ||
callbackStyle: true | ||
}); | ||
@@ -71,2 +73,3 @@ var data = []; | ||
}); | ||
readableStream.once('end', onEnd); | ||
@@ -76,2 +79,3 @@ listeners.push(function removeEndListener() { | ||
}); | ||
readableStream.once('error', onError); | ||
@@ -78,0 +82,0 @@ listeners.push(function removeErrorListener() { |
{ | ||
"name": "simple-oracledb", | ||
"version": "1.1.69", | ||
"version": "1.1.70", | ||
"description": "Extend capabilities of oracledb with simplified API for quicker development.", | ||
@@ -5,0 +5,0 @@ "author": { |
@@ -1147,3 +1147,3 @@ # simple-oracledb | ||
| ----------- | ------- | ----------- | | ||
| 2017-04-28 | v1.1.69 | Maintenance | | ||
| 2017-04-28 | v1.1.70 | Maintenance | | ||
| 2017-01-20 | v1.1.57 | connection.run, connection.transaction and oracledb.run actions can now return a promise instead of using a callback | | ||
@@ -1150,0 +1150,0 @@ | 2017-01-14 | v1.1.56 | pool.run actions now can return a promise instead of using a callback | |
Sorry, the diff of this file is too big to display
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
828953
65
17170