25 lines
866 B
JavaScript
25 lines
866 B
JavaScript
const fs = require('fs');
|
|
const bundle = fs.readFileSync('d:\\cumin\\ghaymah_v2_analysis\\logs\\bundle.js', 'utf8');
|
|
|
|
// Find all occurrences of jb function usage
|
|
const jbDecl = bundle.indexOf('const Of="https://gateway.ghaymah.systems";');
|
|
console.log('jb declaration context:');
|
|
console.log(bundle.substring(jbDecl, jbDecl + 300));
|
|
|
|
// Find string literals matching gateway routes
|
|
const matches = [];
|
|
let pos = 0;
|
|
while (true) {
|
|
const idx = bundle.indexOf('jb(', pos);
|
|
if (idx === -1) break;
|
|
matches.push(bundle.substring(idx, idx + 80));
|
|
pos = idx + 3;
|
|
}
|
|
console.log('\njb calls found:', matches.length);
|
|
matches.slice(0, 20).forEach(m => console.log(' ', m));
|
|
|
|
// Integrations context
|
|
const ylIdx = bundle.indexOf('https://integrations.ghaymah.systems/api');
|
|
console.log('\nIntegrations block:');
|
|
console.log(bundle.substring(ylIdx - 50, ylIdx + 600));
|