1import { api } from "./api.js"; 2 3export async function dispatch(action) { 4 try { 5 const response = await api.sendAction(action); 6 const text = await response.text(); 7 console.log("RAW RESPONSE:", text); 8 const data = JSON.parse(text); 9 if (!data.success) { 10 console.error("Action failed:", action); 11 return null; 12 } 13 return data; 14 } catch (err) { 15 console.error("Dispatch error:", err); 16 return null; 17 } 18}
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.