(namespace: string)
| 39 | } |
| 40 | |
| 41 | function isDebugEnabled(namespace: string): boolean { |
| 42 | let DEBUG: undefined | string |
| 43 | // - `process` can be undefined in edge workers |
| 44 | // - We want bundlers to be able to statically replace `process.env.*` |
| 45 | try { |
| 46 | DEBUG = process.env.DEBUG |
| 47 | } catch {} |
| 48 | return DEBUG?.includes(namespace) ?? false |
| 49 | } |
| 50 | |
| 51 | function strInfo(info: unknown, options: Options): string | undefined { |
| 52 | if (info === undefined) { |
no outgoing calls
no test coverage detected
searching dependent graphs…