(text)
| 201 | if (hashed) { |
| 202 | try { |
| 203 | const s = JSON.parse(fs.readFileSync(path.join(srcDir, hashed), 'utf-8')); |
| 204 | return { flavor: '3.x', settings: s }; |
| 205 | } catch { |
| 206 | // fall through |
| 207 | } |
| 208 | } |
| 209 | } |
| 210 | |
| 211 | // 2.4.x marker: src/settings.js containing `window._CCSettings = { ... }`. |
| 212 | const settings2xPath = path.join(sourcePath, 'src', 'settings.js'); |
| 213 | if (fs.existsSync(settings2xPath)) { |
| 214 | try { |
| 215 | const text = fs.readFileSync(settings2xPath, 'utf-8'); |
| 216 | if (text.includes('_CCSettings') || text.includes('CCSettings')) { |
no outgoing calls
no test coverage detected