@statewalker/webrun-devtools
Version:
DevTools Extension for the StateWalker WebRun framework
21 lines (19 loc) • 425 B
JavaScript
import { wrapChromeApi } from "../wrapChromeApi.js";
import { $once } from "./$once.js";
/**
* Returns the debugger API with additional methods.
* @returns {Object} The debugger API object.
*/
export function getDebuggerApi() {
const api = wrapChromeApi("debugger", [
"attach",
"detach",
"sendCommand",
"getTargets",
"onDetach",
"onEvent",
]);
return Object.assign(api, {
$once,
});
}