Update app and tooling
This commit is contained in:
parent
3046531bdd
commit
e620ec7349
4950 changed files with 2975120 additions and 10 deletions
17
node_modules/p-finally/index.js
generated
vendored
Normal file
17
node_modules/p-finally/index.js
generated
vendored
Normal file
|
|
@ -0,0 +1,17 @@
|
|||
'use strict';
|
||||
|
||||
module.exports = async (
|
||||
promise,
|
||||
onFinally = (() => {})
|
||||
) => {
|
||||
let value;
|
||||
try {
|
||||
value = await promise;
|
||||
} catch (error) {
|
||||
await onFinally();
|
||||
throw error;
|
||||
}
|
||||
|
||||
await onFinally();
|
||||
return value;
|
||||
};
|
||||
Loading…
Add table
Add a link
Reference in a new issue