(error: any)
| 3 | import type { Callback } from './utils'; |
| 4 | |
| 5 | function makeErrorModule(error: any) { |
| 6 | const props = error ? { kModuleError: error } : {}; |
| 7 | return new Proxy(props, { |
| 8 | get: (_: any, key: any) => { |
| 9 | if (key === 'kModuleError') { |
| 10 | return error; |
| 11 | } |
| 12 | throw error; |
| 13 | }, |
| 14 | set: () => { |
| 15 | throw error; |
| 16 | } |
| 17 | }); |
| 18 | } |
| 19 | |
| 20 | export type Kerberos = typeof import('kerberos') | { kModuleError: MongoMissingDependencyError }; |
| 21 |
no outgoing calls
no test coverage detected