(file)
| 15 | const lockPaths = require('./_lockPaths'); |
| 16 | |
| 17 | function _readJson(file) { |
| 18 | try { |
| 19 | if (!file || !fs.existsSync(file)) return null; |
| 20 | return JSON.parse(fs.readFileSync(file, 'utf8')); |
| 21 | } catch (_) { |
| 22 | return null; |
| 23 | } |
| 24 | } |
| 25 | |
| 26 | function _isLoopbackProxyUrl(value) { |
| 27 | const raw = String(value || '').trim(); |
no test coverage detected