(source: string)
| 10 | import useEffectOnce from './use-effect-once'; |
| 11 | |
| 12 | function getValidationError(source: string) { |
| 13 | try { |
| 14 | JSON.parse(source); |
| 15 | return null; |
| 16 | } catch (e) { |
| 17 | const err = e as Error; |
| 18 | return err.message; |
| 19 | } |
| 20 | } |
| 21 | |
| 22 | export interface PackageJsonContextValue { |
| 23 | source: string; |
no outgoing calls
no test coverage detected