1234567891011121314151617181920212223242526272829303132333435363738 |
- import { IOptions } from "../interfaces/IOptions";
- import { DebugProtectionFunctionCallNode } from "../custom-nodes/debug-protection-nodes/DebugProtectionFunctionCallNode";
- import { DebugProtectionFunctionIntervalNode } from "../custom-nodes/debug-protection-nodes/DebugProtectionFunctionIntervalNode";
- import { DebugProtectionFunctionNode } from "../custom-nodes/debug-protection-nodes/DebugProtectionFunctionNode";
- import { NodesGroup } from './NodesGroup';
- import { Utils } from '../Utils';
- export class DebugProtectionNodesGroup extends NodesGroup {
- /**
- * @type {string}
- */
- private debugProtectionFunctionIdentifier: string = Utils.getRandomVariableName();
- /**
- * @param options
- */
- constructor (options: IOptions = {}) {
- super(options);
- this.nodes.set(
- 'debugProtectionFunctionNode',
- new DebugProtectionFunctionNode(this.debugProtectionFunctionIdentifier, this.options)
- );
- this.nodes.set(
- 'debugProtectionFunctionCallNode',
- new DebugProtectionFunctionCallNode(this.debugProtectionFunctionIdentifier, this.options)
- );
- if (this.options['debugProtectionInterval']) {
- this.nodes.set(
- 'debugProtectionFunctionIntervalNode',
- new DebugProtectionFunctionIntervalNode(this.debugProtectionFunctionIdentifier, this.options)
- );
- }
- }
- }
|