updated npm modules
This commit is contained in:
+6
-2
@@ -1,5 +1,9 @@
|
||||
'use strict';
|
||||
|
||||
module.exports = (callback, ...args) => new Promise(resolve => {
|
||||
resolve(callback(...args));
|
||||
const pTry = (fn, ...arguments_) => new Promise(resolve => {
|
||||
resolve(fn(...arguments_));
|
||||
});
|
||||
|
||||
module.exports = pTry;
|
||||
// TODO: remove this in the next major version
|
||||
module.exports.default = pTry;
|
||||
|
||||
Reference in New Issue
Block a user