@sigiljs/sigil
Version:
TypeScript-first Node.js HTTP framework offering schema-driven routing, modifier-based middleware, plugin extensibility, and flexible response templating
23 lines (22 loc) • 327 B
JavaScript
import t from "./cookie.mjs";
class n {
options;
constructor(o) {
this.options = { ...o || {} };
}
create(o, e, r) {
return new t(o, e, {
...this.options,
...r || {}
});
}
reset(o) {
return new t(o, null, {
...this.options,
maxAge: 0
});
}
}
export {
n as default
};