agentcrumbs
Version:
Debug mode for any agent.
12 lines • 400 B
JavaScript
;
Object.defineProperty(exports, "__esModule", { value: true });
exports.sendCrumb = sendCrumb;
const DEFAULT_URL = "http://localhost:8374/crumb";
function sendCrumb(crumb, url = DEFAULT_URL) {
fetch(url, {
method: "POST",
headers: { "Content-Type": "application/json" },
body: JSON.stringify(crumb),
}).catch(() => { });
}
//# sourceMappingURL=http.js.map