UNPKG

surrogate

Version:

Object method hooks made easy

46 lines 1.16 kB
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.Provider = void 0; class Provider { 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; } } exports.Provider = Provider; //# sourceMappingURL=index.js.map