mirror of
https://github.com/javascript-obfuscator/javascript-obfuscator
synced 2026-08-09 12:42:29 +00:00
removed unused code after previous commits
This commit is contained in:
Vendored
+13
-52
@@ -88,7 +88,7 @@ module.exports =
|
||||
/******/ __webpack_require__.p = "";
|
||||
/******/
|
||||
/******/ // Load entry module and return exports
|
||||
/******/ return __webpack_require__(__webpack_require__.s = 119);
|
||||
/******/ return __webpack_require__(__webpack_require__.s = 120);
|
||||
/******/ })
|
||||
/************************************************************************/
|
||||
/******/ ([
|
||||
@@ -1333,7 +1333,6 @@ var __param = undefined && undefined.__param || function (paramIndex, decorator)
|
||||
var inversify_1 = __webpack_require__(0);
|
||||
var ServiceIdentifiers_1 = __webpack_require__(1);
|
||||
var format = __webpack_require__(8);
|
||||
var ObfuscationEvents_1 = __webpack_require__(5);
|
||||
var Initializable_1 = __webpack_require__(3);
|
||||
var BinaryExpressionFunctionTemplate_1 = __webpack_require__(95);
|
||||
var AbstractCustomNode_1 = __webpack_require__(7);
|
||||
@@ -1344,10 +1343,7 @@ var BinaryExpressionFunctionNode = function (_AbstractCustomNode_) {
|
||||
function BinaryExpressionFunctionNode(options) {
|
||||
_classCallCheck(this, BinaryExpressionFunctionNode);
|
||||
|
||||
var _this = _possibleConstructorReturn(this, (BinaryExpressionFunctionNode.__proto__ || Object.getPrototypeOf(BinaryExpressionFunctionNode)).call(this, options));
|
||||
|
||||
_this.appendEvent = ObfuscationEvents_1.ObfuscationEvents.BeforeObfuscation;
|
||||
return _this;
|
||||
return _possibleConstructorReturn(this, (BinaryExpressionFunctionNode.__proto__ || Object.getPrototypeOf(BinaryExpressionFunctionNode)).call(this, options));
|
||||
}
|
||||
|
||||
_createClass(BinaryExpressionFunctionNode, [{
|
||||
@@ -1407,7 +1403,6 @@ var __param = undefined && undefined.__param || function (paramIndex, decorator)
|
||||
var inversify_1 = __webpack_require__(0);
|
||||
var ServiceIdentifiers_1 = __webpack_require__(1);
|
||||
var format = __webpack_require__(8);
|
||||
var ObfuscationEvents_1 = __webpack_require__(5);
|
||||
var Initializable_1 = __webpack_require__(3);
|
||||
var ControlFlowStorageCallTemplate_1 = __webpack_require__(96);
|
||||
var AbstractCustomNode_1 = __webpack_require__(7);
|
||||
@@ -1417,10 +1412,7 @@ var ControlFlowStorageCallNode = function (_AbstractCustomNode_) {
|
||||
function ControlFlowStorageCallNode(options) {
|
||||
_classCallCheck(this, ControlFlowStorageCallNode);
|
||||
|
||||
var _this = _possibleConstructorReturn(this, (ControlFlowStorageCallNode.__proto__ || Object.getPrototypeOf(ControlFlowStorageCallNode)).call(this, options));
|
||||
|
||||
_this.appendEvent = ObfuscationEvents_1.ObfuscationEvents.AfterObfuscation;
|
||||
return _this;
|
||||
return _possibleConstructorReturn(this, (ControlFlowStorageCallNode.__proto__ || Object.getPrototypeOf(ControlFlowStorageCallNode)).call(this, options));
|
||||
}
|
||||
|
||||
_createClass(ControlFlowStorageCallNode, [{
|
||||
@@ -1488,7 +1480,6 @@ var __param = undefined && undefined.__param || function (paramIndex, decorator)
|
||||
var inversify_1 = __webpack_require__(0);
|
||||
var ServiceIdentifiers_1 = __webpack_require__(1);
|
||||
var format = __webpack_require__(8);
|
||||
var ObfuscationEvents_1 = __webpack_require__(5);
|
||||
var Initializable_1 = __webpack_require__(3);
|
||||
var ControlFlowStorageTemplate_1 = __webpack_require__(97);
|
||||
var AbstractCustomNode_1 = __webpack_require__(7);
|
||||
@@ -1498,10 +1489,7 @@ var ControlFlowStorageNode = function (_AbstractCustomNode_) {
|
||||
function ControlFlowStorageNode(options) {
|
||||
_classCallCheck(this, ControlFlowStorageNode);
|
||||
|
||||
var _this = _possibleConstructorReturn(this, (ControlFlowStorageNode.__proto__ || Object.getPrototypeOf(ControlFlowStorageNode)).call(this, options));
|
||||
|
||||
_this.appendEvent = ObfuscationEvents_1.ObfuscationEvents.AfterObfuscation;
|
||||
return _this;
|
||||
return _possibleConstructorReturn(this, (ControlFlowStorageNode.__proto__ || Object.getPrototypeOf(ControlFlowStorageNode)).call(this, options));
|
||||
}
|
||||
|
||||
_createClass(ControlFlowStorageNode, [{
|
||||
@@ -2770,7 +2758,6 @@ var __param = undefined && undefined.__param || function (paramIndex, decorator)
|
||||
var inversify_1 = __webpack_require__(0);
|
||||
var ServiceIdentifiers_1 = __webpack_require__(1);
|
||||
var format = __webpack_require__(8);
|
||||
var ObfuscationEvents_1 = __webpack_require__(5);
|
||||
var ConsoleOutputDisableExpressionTemplate_1 = __webpack_require__(94);
|
||||
var Initializable_1 = __webpack_require__(3);
|
||||
var AbstractCustomNode_1 = __webpack_require__(7);
|
||||
@@ -2781,11 +2768,7 @@ var ConsoleOutputDisableExpressionNode = function (_AbstractCustomNode_) {
|
||||
function ConsoleOutputDisableExpressionNode(options) {
|
||||
_classCallCheck(this, ConsoleOutputDisableExpressionNode);
|
||||
|
||||
var _this = _possibleConstructorReturn(this, (ConsoleOutputDisableExpressionNode.__proto__ || Object.getPrototypeOf(ConsoleOutputDisableExpressionNode)).call(this, options));
|
||||
|
||||
_this.appendEvent = ObfuscationEvents_1.ObfuscationEvents.BeforeObfuscation;
|
||||
_this.groupName = 'consoleOutputDisableExpressionNode';
|
||||
return _this;
|
||||
return _possibleConstructorReturn(this, (ConsoleOutputDisableExpressionNode.__proto__ || Object.getPrototypeOf(ConsoleOutputDisableExpressionNode)).call(this, options));
|
||||
}
|
||||
|
||||
_createClass(ConsoleOutputDisableExpressionNode, [{
|
||||
@@ -2940,7 +2923,6 @@ var __param = undefined && undefined.__param || function (paramIndex, decorator)
|
||||
var inversify_1 = __webpack_require__(0);
|
||||
var ServiceIdentifiers_1 = __webpack_require__(1);
|
||||
var format = __webpack_require__(8);
|
||||
var ObfuscationEvents_1 = __webpack_require__(5);
|
||||
var Initializable_1 = __webpack_require__(3);
|
||||
var DebufProtectionFunctionCallTemplate_1 = __webpack_require__(98);
|
||||
var AbstractCustomNode_1 = __webpack_require__(7);
|
||||
@@ -2950,10 +2932,7 @@ var DebugProtectionFunctionCallNode = function (_AbstractCustomNode_) {
|
||||
function DebugProtectionFunctionCallNode(options) {
|
||||
_classCallCheck(this, DebugProtectionFunctionCallNode);
|
||||
|
||||
var _this = _possibleConstructorReturn(this, (DebugProtectionFunctionCallNode.__proto__ || Object.getPrototypeOf(DebugProtectionFunctionCallNode)).call(this, options));
|
||||
|
||||
_this.appendEvent = ObfuscationEvents_1.ObfuscationEvents.BeforeObfuscation;
|
||||
return _this;
|
||||
return _possibleConstructorReturn(this, (DebugProtectionFunctionCallNode.__proto__ || Object.getPrototypeOf(DebugProtectionFunctionCallNode)).call(this, options));
|
||||
}
|
||||
|
||||
_createClass(DebugProtectionFunctionCallNode, [{
|
||||
@@ -3012,7 +2991,6 @@ var __param = undefined && undefined.__param || function (paramIndex, decorator)
|
||||
var inversify_1 = __webpack_require__(0);
|
||||
var ServiceIdentifiers_1 = __webpack_require__(1);
|
||||
var format = __webpack_require__(8);
|
||||
var ObfuscationEvents_1 = __webpack_require__(5);
|
||||
var Initializable_1 = __webpack_require__(3);
|
||||
var DebugProtectionFunctionIntervalTemplate_1 = __webpack_require__(99);
|
||||
var AbstractCustomNode_1 = __webpack_require__(7);
|
||||
@@ -3022,10 +3000,7 @@ var DebugProtectionFunctionIntervalNode = function (_AbstractCustomNode_) {
|
||||
function DebugProtectionFunctionIntervalNode(options) {
|
||||
_classCallCheck(this, DebugProtectionFunctionIntervalNode);
|
||||
|
||||
var _this = _possibleConstructorReturn(this, (DebugProtectionFunctionIntervalNode.__proto__ || Object.getPrototypeOf(DebugProtectionFunctionIntervalNode)).call(this, options));
|
||||
|
||||
_this.appendEvent = ObfuscationEvents_1.ObfuscationEvents.BeforeObfuscation;
|
||||
return _this;
|
||||
return _possibleConstructorReturn(this, (DebugProtectionFunctionIntervalNode.__proto__ || Object.getPrototypeOf(DebugProtectionFunctionIntervalNode)).call(this, options));
|
||||
}
|
||||
|
||||
_createClass(DebugProtectionFunctionIntervalNode, [{
|
||||
@@ -3084,7 +3059,6 @@ var __param = undefined && undefined.__param || function (paramIndex, decorator)
|
||||
var inversify_1 = __webpack_require__(0);
|
||||
var ServiceIdentifiers_1 = __webpack_require__(1);
|
||||
var format = __webpack_require__(8);
|
||||
var ObfuscationEvents_1 = __webpack_require__(5);
|
||||
var Initializable_1 = __webpack_require__(3);
|
||||
var DebugProtectionFunctionTemplate_1 = __webpack_require__(100);
|
||||
var AbstractCustomNode_1 = __webpack_require__(7);
|
||||
@@ -3094,10 +3068,7 @@ var DebugProtectionFunctionNode = function (_AbstractCustomNode_) {
|
||||
function DebugProtectionFunctionNode(options) {
|
||||
_classCallCheck(this, DebugProtectionFunctionNode);
|
||||
|
||||
var _this = _possibleConstructorReturn(this, (DebugProtectionFunctionNode.__proto__ || Object.getPrototypeOf(DebugProtectionFunctionNode)).call(this, options));
|
||||
|
||||
_this.appendEvent = ObfuscationEvents_1.ObfuscationEvents.BeforeObfuscation;
|
||||
return _this;
|
||||
return _possibleConstructorReturn(this, (DebugProtectionFunctionNode.__proto__ || Object.getPrototypeOf(DebugProtectionFunctionNode)).call(this, options));
|
||||
}
|
||||
|
||||
_createClass(DebugProtectionFunctionNode, [{
|
||||
@@ -3185,8 +3156,8 @@ var DebugProtectionCustomNodeGroup = function (_AbstractCustomNodeGr) {
|
||||
NodeAppender_1.NodeAppender.appendNode(blockScopeNode, customNode.getNode());
|
||||
});
|
||||
this.appendCustomNodeIfExist(CustomNodes_1.CustomNodes.DebugProtectionFunctionIntervalNode, function (customNode) {
|
||||
var programBodyLength = blockScopeNode.body.length,
|
||||
randomIndex = Utils_1.Utils.getRandomInteger(0, programBodyLength);
|
||||
var programBodyLength = blockScopeNode.body.length;
|
||||
var randomIndex = Utils_1.Utils.getRandomInteger(0, programBodyLength);
|
||||
NodeAppender_1.NodeAppender.insertNodeAtIndex(blockScopeNode, customNode.getNode(), randomIndex);
|
||||
});
|
||||
}
|
||||
@@ -3256,7 +3227,6 @@ var __param = undefined && undefined.__param || function (paramIndex, decorator)
|
||||
var inversify_1 = __webpack_require__(0);
|
||||
var ServiceIdentifiers_1 = __webpack_require__(1);
|
||||
var format = __webpack_require__(8);
|
||||
var ObfuscationEvents_1 = __webpack_require__(5);
|
||||
var Initializable_1 = __webpack_require__(3);
|
||||
var DomainLockNodeTemplate_1 = __webpack_require__(101);
|
||||
var AbstractCustomNode_1 = __webpack_require__(7);
|
||||
@@ -3267,10 +3237,7 @@ var DomainLockNode = function (_AbstractCustomNode_) {
|
||||
function DomainLockNode(options) {
|
||||
_classCallCheck(this, DomainLockNode);
|
||||
|
||||
var _this = _possibleConstructorReturn(this, (DomainLockNode.__proto__ || Object.getPrototypeOf(DomainLockNode)).call(this, options));
|
||||
|
||||
_this.appendEvent = ObfuscationEvents_1.ObfuscationEvents.BeforeObfuscation;
|
||||
return _this;
|
||||
return _possibleConstructorReturn(this, (DomainLockNode.__proto__ || Object.getPrototypeOf(DomainLockNode)).call(this, options));
|
||||
}
|
||||
|
||||
_createClass(DomainLockNode, [{
|
||||
@@ -3654,8 +3621,6 @@ exports.SelfDefendingCustomNodeGroup = SelfDefendingCustomNodeGroup;
|
||||
|
||||
var _createClass = (function () { function defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } return function (Constructor, protoProps, staticProps) { if (protoProps) defineProperties(Constructor.prototype, protoProps); if (staticProps) defineProperties(Constructor, staticProps); return Constructor; }; })();
|
||||
|
||||
var _get = (function get(object, property, receiver) { if (object === null) object = Function.prototype; var desc = Object.getOwnPropertyDescriptor(object, property); if (desc === undefined) { var parent = Object.getPrototypeOf(object); if (parent === null) { return undefined; } else { return get(parent, property, receiver); } } else if ("value" in desc) { return desc.value; } else { var getter = desc.get; if (getter === undefined) { return undefined; } return getter.call(receiver); } });
|
||||
|
||||
var _typeof = typeof Symbol === "function" && typeof Symbol.iterator === "symbol" ? function (obj) { return typeof obj; } : function (obj) { return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; };
|
||||
|
||||
function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
|
||||
@@ -3727,11 +3692,6 @@ var StringArrayCallsWrapper = function (_AbstractCustomNode_) {
|
||||
value: function getNodeIdentifier() {
|
||||
return this.stringArrayCallsWrapperName;
|
||||
}
|
||||
}, {
|
||||
key: "getNode",
|
||||
value: function getNode() {
|
||||
return _get(StringArrayCallsWrapper.prototype.__proto__ || Object.getPrototypeOf(StringArrayCallsWrapper.prototype), "getNode", this).call(this);
|
||||
}
|
||||
}, {
|
||||
key: "getDecodeStringArrayTemplate",
|
||||
value: function getDecodeStringArrayTemplate() {
|
||||
@@ -6651,7 +6611,8 @@ module.exports = require("mkdirp");
|
||||
module.exports = require("reflect-metadata");
|
||||
|
||||
/***/ },
|
||||
/* 119 */
|
||||
/* 119 */,
|
||||
/* 120 */
|
||||
/***/ function(module, exports, __webpack_require__) {
|
||||
|
||||
"use strict";
|
||||
|
||||
@@ -3,12 +3,8 @@ import { ServiceIdentifiers } from '../../container/ServiceIdentifiers';
|
||||
|
||||
import * as format from 'string-template';
|
||||
|
||||
import { TObfuscationEvent } from '../../types/event-emitters/TObfuscationEvent';
|
||||
|
||||
import { IOptions } from '../../interfaces/options/IOptions';
|
||||
|
||||
import { ObfuscationEvents } from '../../enums/ObfuscationEvents';
|
||||
|
||||
import { ConsoleOutputDisableExpressionTemplate } from '../../templates/custom-nodes/console-output-nodes/console-output-disable-expression-node/ConsoleOutputDisableExpressionTemplate';
|
||||
|
||||
import { initializable } from '../../decorators/Initializable';
|
||||
@@ -18,21 +14,11 @@ import { Utils } from '../../Utils';
|
||||
|
||||
@injectable()
|
||||
export class ConsoleOutputDisableExpressionNode extends AbstractCustomNode {
|
||||
/**
|
||||
* @type {TObfuscationEvent}
|
||||
*/
|
||||
protected readonly appendEvent: TObfuscationEvent = ObfuscationEvents.BeforeObfuscation;
|
||||
|
||||
/**
|
||||
* @type {string}
|
||||
*/
|
||||
@initializable()
|
||||
protected callsControllerFunctionName: string;
|
||||
|
||||
/**
|
||||
* @type {string}
|
||||
*/
|
||||
protected readonly groupName: string = 'consoleOutputDisableExpressionNode';
|
||||
private callsControllerFunctionName: string;
|
||||
|
||||
/**
|
||||
* @param options
|
||||
|
||||
-9
@@ -3,12 +3,8 @@ import { ServiceIdentifiers } from '../../../container/ServiceIdentifiers';
|
||||
|
||||
import * as format from 'string-template';
|
||||
|
||||
import { TObfuscationEvent } from '../../../types/event-emitters/TObfuscationEvent';
|
||||
|
||||
import { IOptions } from '../../../interfaces/options/IOptions';
|
||||
|
||||
import { ObfuscationEvents } from '../../../enums/ObfuscationEvents';
|
||||
|
||||
import { initializable } from '../../../decorators/Initializable';
|
||||
|
||||
import { BinaryExpressionFunctionTemplate } from '../../../templates/custom-nodes/control-flow-replacers-nodes/binary-expression-control-flow-replacer-nodes/BinaryExpressionFunctionTemplate';
|
||||
@@ -18,11 +14,6 @@ import { Utils } from '../../../Utils';
|
||||
|
||||
@injectable()
|
||||
export class BinaryExpressionFunctionNode extends AbstractCustomNode {
|
||||
/**
|
||||
* @type {TObfuscationEvent}
|
||||
*/
|
||||
protected readonly appendEvent: TObfuscationEvent = ObfuscationEvents.BeforeObfuscation;
|
||||
|
||||
/**
|
||||
* @type {string}
|
||||
*/
|
||||
|
||||
-9
@@ -3,12 +3,8 @@ import { ServiceIdentifiers } from '../../../container/ServiceIdentifiers';
|
||||
|
||||
import * as format from 'string-template';
|
||||
|
||||
import { TObfuscationEvent } from '../../../types/event-emitters/TObfuscationEvent';
|
||||
|
||||
import { IOptions } from '../../../interfaces/options/IOptions';
|
||||
|
||||
import { ObfuscationEvents } from '../../../enums/ObfuscationEvents';
|
||||
|
||||
import { initializable } from '../../../decorators/Initializable';
|
||||
|
||||
import { ControlFlowStorageCallTemplate } from '../../../templates/custom-nodes/control-flow-replacers-nodes/binary-expression-control-flow-replacer-nodes/ControlFlowStorageCallTemplate';
|
||||
@@ -17,11 +13,6 @@ import { AbstractCustomNode } from '../../AbstractCustomNode';
|
||||
|
||||
@injectable()
|
||||
export class ControlFlowStorageCallNode extends AbstractCustomNode {
|
||||
/**
|
||||
* @type {TObfuscationEvent}
|
||||
*/
|
||||
protected readonly appendEvent: TObfuscationEvent = ObfuscationEvents.AfterObfuscation;
|
||||
|
||||
/**
|
||||
* @type {string}
|
||||
*/
|
||||
|
||||
@@ -3,14 +3,10 @@ import { ServiceIdentifiers } from '../../container/ServiceIdentifiers';
|
||||
|
||||
import * as format from 'string-template';
|
||||
|
||||
import { TObfuscationEvent } from '../../types/event-emitters/TObfuscationEvent';
|
||||
|
||||
import { ICustomNode } from '../../interfaces/custom-nodes/ICustomNode';
|
||||
import { IOptions } from '../../interfaces/options/IOptions';
|
||||
import { IStorage } from '../../interfaces/storages/IStorage';
|
||||
|
||||
import { ObfuscationEvents } from '../../enums/ObfuscationEvents';
|
||||
|
||||
import { initializable } from '../../decorators/Initializable';
|
||||
|
||||
import { ControlFlowStorageTemplate } from '../../templates/custom-nodes/control-flow-storage-nodes/ControlFlowStorageTemplate';
|
||||
@@ -19,11 +15,6 @@ import { AbstractCustomNode } from '../AbstractCustomNode';
|
||||
|
||||
@injectable()
|
||||
export class ControlFlowStorageNode extends AbstractCustomNode {
|
||||
/**
|
||||
* @type {TObfuscationEvent}
|
||||
*/
|
||||
protected readonly appendEvent: TObfuscationEvent = ObfuscationEvents.AfterObfuscation;
|
||||
|
||||
/**
|
||||
* @type {IStorage <ICustomNode>}
|
||||
*/
|
||||
|
||||
@@ -3,12 +3,8 @@ import { ServiceIdentifiers } from '../../container/ServiceIdentifiers';
|
||||
|
||||
import * as format from 'string-template';
|
||||
|
||||
import { TObfuscationEvent } from '../../types/event-emitters/TObfuscationEvent';
|
||||
|
||||
import { IOptions } from '../../interfaces/options/IOptions';
|
||||
|
||||
import { ObfuscationEvents } from '../../enums/ObfuscationEvents';
|
||||
|
||||
import { initializable } from '../../decorators/Initializable';
|
||||
|
||||
import { DebugProtectionFunctionCallTemplate } from '../../templates/custom-nodes/debug-protection-nodes/debug-protection-function-call-node/DebufProtectionFunctionCallTemplate';
|
||||
@@ -17,11 +13,6 @@ import { AbstractCustomNode } from '../AbstractCustomNode';
|
||||
|
||||
@injectable()
|
||||
export class DebugProtectionFunctionCallNode extends AbstractCustomNode {
|
||||
/**
|
||||
* @type {TObfuscationEvent}
|
||||
*/
|
||||
protected readonly appendEvent: TObfuscationEvent = ObfuscationEvents.BeforeObfuscation;
|
||||
|
||||
/**
|
||||
* @type {string}
|
||||
*/
|
||||
|
||||
@@ -3,12 +3,8 @@ import { ServiceIdentifiers } from '../../container/ServiceIdentifiers';
|
||||
|
||||
import * as format from 'string-template';
|
||||
|
||||
import { TObfuscationEvent } from '../../types/event-emitters/TObfuscationEvent';
|
||||
|
||||
import { IOptions } from '../../interfaces/options/IOptions';
|
||||
|
||||
import { ObfuscationEvents } from '../../enums/ObfuscationEvents';
|
||||
|
||||
import { initializable } from '../../decorators/Initializable';
|
||||
|
||||
import { DebugProtectionFunctionIntervalTemplate } from '../../templates/custom-nodes/debug-protection-nodes/debug-protection-function-interval-node/DebugProtectionFunctionIntervalTemplate';
|
||||
@@ -17,11 +13,6 @@ import { AbstractCustomNode } from '../AbstractCustomNode';
|
||||
|
||||
@injectable()
|
||||
export class DebugProtectionFunctionIntervalNode extends AbstractCustomNode {
|
||||
/**
|
||||
* @type {TObfuscationEvent}
|
||||
*/
|
||||
protected readonly appendEvent: TObfuscationEvent = ObfuscationEvents.BeforeObfuscation;
|
||||
|
||||
/**
|
||||
* @type {string}
|
||||
*/
|
||||
|
||||
@@ -3,12 +3,8 @@ import { ServiceIdentifiers } from '../../container/ServiceIdentifiers';
|
||||
|
||||
import * as format from 'string-template';
|
||||
|
||||
import { TObfuscationEvent } from '../../types/event-emitters/TObfuscationEvent';
|
||||
|
||||
import { IOptions } from '../../interfaces/options/IOptions';
|
||||
|
||||
import { ObfuscationEvents } from '../../enums/ObfuscationEvents';
|
||||
|
||||
import { initializable } from '../../decorators/Initializable';
|
||||
|
||||
import { DebugProtectionFunctionTemplate } from '../../templates/custom-nodes/debug-protection-nodes/debug-protection-function-node/DebugProtectionFunctionTemplate';
|
||||
@@ -17,11 +13,6 @@ import { AbstractCustomNode } from '../AbstractCustomNode';
|
||||
|
||||
@injectable()
|
||||
export class DebugProtectionFunctionNode extends AbstractCustomNode {
|
||||
/**
|
||||
* @type {TObfuscationEvent}
|
||||
*/
|
||||
protected readonly appendEvent: TObfuscationEvent = ObfuscationEvents.BeforeObfuscation;
|
||||
|
||||
/**
|
||||
* @type {string}
|
||||
*/
|
||||
|
||||
@@ -75,8 +75,8 @@ export class DebugProtectionCustomNodeGroup extends AbstractCustomNodeGroup {
|
||||
|
||||
// debugProtectionFunctionIntervalNode append
|
||||
this.appendCustomNodeIfExist(CustomNodes.DebugProtectionFunctionIntervalNode, (customNode: ICustomNode) => {
|
||||
let programBodyLength: number = blockScopeNode.body.length,
|
||||
randomIndex: number = Utils.getRandomInteger(0, programBodyLength);
|
||||
const programBodyLength: number = blockScopeNode.body.length;
|
||||
const randomIndex: number = Utils.getRandomInteger(0, programBodyLength);
|
||||
|
||||
NodeAppender.insertNodeAtIndex(blockScopeNode, customNode.getNode(), randomIndex);
|
||||
});
|
||||
|
||||
@@ -3,12 +3,8 @@ import { ServiceIdentifiers } from '../../container/ServiceIdentifiers';
|
||||
|
||||
import * as format from 'string-template';
|
||||
|
||||
import { TObfuscationEvent } from '../../types/event-emitters/TObfuscationEvent';
|
||||
|
||||
import { IOptions } from '../../interfaces/options/IOptions';
|
||||
|
||||
import { ObfuscationEvents } from '../../enums/ObfuscationEvents';
|
||||
|
||||
import { initializable } from '../../decorators/Initializable';
|
||||
|
||||
import { DomainLockNodeTemplate } from '../../templates/custom-nodes/domain-lock-nodes/domain-lock-node/DomainLockNodeTemplate';
|
||||
@@ -18,11 +14,6 @@ import { Utils } from '../../Utils';
|
||||
|
||||
@injectable()
|
||||
export class DomainLockNode extends AbstractCustomNode {
|
||||
/**
|
||||
* @type {TObfuscationEvent}
|
||||
*/
|
||||
protected readonly appendEvent: TObfuscationEvent = ObfuscationEvents.BeforeObfuscation;
|
||||
|
||||
/**
|
||||
* @type {string}
|
||||
*/
|
||||
|
||||
@@ -3,8 +3,6 @@ import { ServiceIdentifiers } from '../../container/ServiceIdentifiers';
|
||||
|
||||
import * as format from 'string-template';
|
||||
|
||||
import { TStatement } from '../../types/node/TStatement';
|
||||
|
||||
import { ICustomNodeWithIdentifier } from '../../interfaces/custom-nodes/ICustomNodeWithIdentifier';
|
||||
import { IOptions } from '../../interfaces/options/IOptions';
|
||||
import { IStorage } from '../../interfaces/storages/IStorage';
|
||||
@@ -94,13 +92,6 @@ export class StringArrayCallsWrapper extends AbstractCustomNode implements ICust
|
||||
return this.stringArrayCallsWrapperName;
|
||||
};
|
||||
|
||||
/**
|
||||
* @returns {TStatement[]}
|
||||
*/
|
||||
public getNode (): TStatement[] {
|
||||
return super.getNode();
|
||||
}
|
||||
|
||||
/**
|
||||
* @returns {string}
|
||||
*/
|
||||
|
||||
Reference in New Issue
Block a user