node_modules

This commit is contained in:
softprops committed 2019-09-09 21:38:33 +09:00
1 parent 29058f2f68
commit a40b254993
445 files changed
+83959 -2

No files matched your search

+15
View File
@@ -0,0 +1,15 @@
'use strict';
module.exports = (promise, onFinally) => {
onFinally = onFinally || (() => {});
return promise.then(
val => new Promise(resolve => {
resolve(onFinally());
}).then(() => val),
err => new Promise(resolve => {
resolve(onFinally());
}).then(() => {
throw err;
})
);
};