UNPKG

surrogate

Version:

Object method hooks made easy

51 lines (46 loc) 1.29 kB
function $parcel$export(e, n, v, s) { Object.defineProperty(e, n, {get: v, set: s, enumerable: true, configurable: true}); } $parcel$export(module.exports, "Provider", () => $a26c45bb5fd4c4dc$export$2881499e37b75b9a); class $a26c45bb5fd4c4dc$export$2881499e37b75b9a { constructor(node, receivedArgs, error){ this.node = node; this.receivedArgs = receivedArgs; this.error = error; this.returnValue = this.node.controller.returnValue; } get action() { return this.context.event; } get correlationId() { return this.node.controller.correlationId; } get currentArgs() { return this.node.controller.currentArgs; } get hookType() { return this.node.hookType; } get instance() { return this.node.instance; } get originalArgs() { return this.context.originalArguments; } get provide() { return this.node.container.options.provide; } get result() { return this.returnValue; } get timeTracker() { return this.node.controller.timeTracker; } get context() { return this.node.context; } get container() { return this.node.container; } } //# sourceMappingURL=surrogate.4af44353.js.map