dynogels-promise
Advanced tools
Comparing version 1.0.16 to 1.0.17
@@ -536,3 +536,3 @@ 'use strict' | ||
callback = callback || _.noop | ||
callback = (err, data) => { | ||
const promisifiedCallback = (err, data) => { | ||
if (err) { | ||
@@ -574,3 +574,3 @@ callback(err) | ||
if (err) { | ||
return callback(err) | ||
return promisifiedCallback(err) | ||
} | ||
@@ -584,3 +584,3 @@ | ||
self._after.emit('destroy', item) | ||
return callback(null, item) | ||
return promisifiedCallback(null, item) | ||
}) | ||
@@ -851,3 +851,3 @@ }) | ||
callback(null, data) | ||
return resolve | ||
return resolve(data) | ||
} | ||
@@ -897,3 +897,3 @@ | ||
callback(null, data) | ||
return resolve | ||
return resolve(data) | ||
} | ||
@@ -900,0 +900,0 @@ |
{ | ||
"name": "dynogels-promise", | ||
"version": "1.0.16", | ||
"version": "1.0.17", | ||
"description": "Promisified dynogels module", | ||
@@ -5,0 +5,0 @@ "main": "lib/index.js", |
@@ -22,3 +22,3 @@ # dynogels-promise | ||
All methods available in [dynogels](https://github.com/clarke/dynogels) have been promisified and and can be assessed under the same name | ||
All methods available in [dynogels](https://github.com/clarkie/dynogels) have been promisified and and can be assessed under the same name | ||
@@ -25,0 +25,0 @@ Also `Async` versions of the methods that were available in [dynogels-promisified](https://github.com/andrewoh531/dynogels-promisified) are also available for backward-compatibility. So you can replace dynogels-promisified with this package, and will still work perfectly. |
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
75285