UNPKG

surrogate

Version:

Object method hooks made easy

27 lines (24 loc) 716 B
class $24fb5b737c837f8c$export$5bc87f46f3fd765a { constructor(node){ this.node = node; } shouldRunWithoutArgs() { return this.options.noArgs; } shouldRunWithArgs() { return !this.shouldRunWithoutArgs(); } get options() { return this.node.container.options; } get handler() { const { container: container, context: context } = this.node; return container.getHandler(context); } get context() { const { context: context } = this.node; return context.determineContext(this.options); } } export {$24fb5b737c837f8c$export$5bc87f46f3fd765a as HandlerBaseRule}; //# sourceMappingURL=surrogate.d2d32023.js.map