1
0
Fork 0

Updated the lib for the new api

This commit is contained in:
Julien Dessaux 2023-05-25 01:20:56 +02:00
parent 9963ab79b7
commit b1157af9cd
Signed by: adyxax
GPG key ID: F92E51B86E07177E
5 changed files with 227 additions and 93 deletions

View file

@ -69,3 +69,7 @@ export function debugLog(ctx) {
console.log(`--- ${Date()} -----------------------------------------------------------------------------`);
console.log(JSON.stringify(ctx, null, 2));
}
export function sleep(delay) {
return new Promise((resolve) => setTimeout(resolve, delay))
}