const fs = require('fs'); const content = fs.readFileSync('D:/cumin/ghaymah_dns_net_sec_tests/ghaymah_bundle.js', 'utf8'); const idx = 1028159; const endIdx = content.indexOf('function ', idx + 50); const rqBody = content.substring(idx, endIdx !== -1 ? endIdx : idx + 10000); // Find where i (createApp) or a (updateApp) is called const matches = rqBody.match(/.{0,50}(?:await\s+[ia]\s*\(|[ia]\s*\(\{).{0,300}/g) || []; console.log('Matches:', matches.length); matches.forEach(m => console.log('---', m));