(fn: T)
| 23 | const concurrencyLimiter = throat(16); |
| 24 | |
| 25 | function errorPostprocessor<T extends Function>(fn: T): T { |
| 26 | return async function (this: any) { |
| 27 | try { |
| 28 | return await fn.call(this, arguments); |
| 29 | } catch (error: any) { |
| 30 | delete error?.matcherResult; |
| 31 | // delete error?.matcherResult?.message; |
| 32 | if (error?.message) error.message = `\n${error.message}\n`; |
| 33 | throw error; |
| 34 | } |
| 35 | } as any; |
| 36 | } |
| 37 | |
| 38 | function once<T extends Function>(func: T): T { |
| 39 | let run = false; |
no outgoing calls
no test coverage detected
searching dependent graphs…