@ejazullah/smart-browser-automation
Version:
A smart AI-driven browser automation library and REST API server using MCP (Model Context Protocol) and LangChain for multi-step task execution. Includes both programmatic library usage and HTTP API server for remote automation.
14 lines (13 loc) • 369 B
JavaScript
;
Object.defineProperty(exports, "__esModule", {
value: true
});
exports.validateCookieOptions = validateCookieOptions;
function validateCookieOptions(opts) {
if (!('jar' in opts)) {
throw new TypeError('invalid cookies.jar');
}
if (!opts.jar.store.synchronous) {
throw new TypeError('an asynchronous cookie store is not supported.');
}
}