(rawValue: string)
| 1674 | } |
| 1675 | |
| 1676 | export function evalValue<T = any>(rawValue: string): T { |
| 1677 | const fn = new Function(` |
| 1678 | var console, exports, global, module, process, require |
| 1679 | return (\n${rawValue}\n) |
| 1680 | `) |
| 1681 | return fn() |
| 1682 | } |
| 1683 | |
| 1684 | export function getNpmPackageName(importPath: string): string | null { |
| 1685 | const parts = importPath.split('/') |
no test coverage detected