We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 6e91fd4 commit 52f5d8eCopy full SHA for 52f5d8e
lib/services/promise-to-callback.js
@@ -1,12 +1,12 @@
1
2
/* globals setImmediate:1 */
3
4
-const asap = process && typeof process.nextTick === 'function'
5
- ? process.nextTick : setImmediate;
6
-
7
module.exports = function (promise) {
8
console.log('**Deprecated** The promiseToCallback hook will be removed next FeathersJS version.');
9
+ const asap = process && typeof process.nextTick === 'function'
+ ? process.nextTick : setImmediate;
+
10
return cb => {
11
promise.then(
12
data => {
0 commit comments