mirror of
https://github.com/javascript-obfuscator/javascript-obfuscator
synced 2026-08-09 12:42:29 +00:00
Dependencies update
This commit is contained in:
Vendored
+2
-1
@@ -1,4 +1,5 @@
|
||||
import * as escodegen from 'escodegen';
|
||||
import * as ESTree from 'estree';
|
||||
|
||||
import { IGeneratorOutput } from '../interfaces/IGeneratorOutput';
|
||||
|
||||
@@ -8,5 +9,5 @@ declare module 'escodegen' {
|
||||
* @param options
|
||||
* @returns IGeneratorOutput
|
||||
*/
|
||||
export function generate (ast: any, options?: escodegen.GenerateOptions): IGeneratorOutput;
|
||||
export function generate (ast: ESTree.Node, options?: escodegen.GenerateOptions): IGeneratorOutput;
|
||||
}
|
||||
|
||||
@@ -4,6 +4,7 @@ import * as estraverse from 'estraverse';
|
||||
import * as ESTree from 'estree';
|
||||
|
||||
import { TNodeWithBlockStatement } from '../types/node/TNodeWithBlockStatement';
|
||||
import { TObject } from '../types/TObject';
|
||||
import { TStatement } from '../types/node/TStatement';
|
||||
|
||||
import { NodeType } from '../enums/node/NodeType';
|
||||
@@ -55,13 +56,13 @@ export class NodeUtils {
|
||||
return node;
|
||||
}
|
||||
|
||||
const copy: {[key: string]: any} = {};
|
||||
const copy: TObject = {};
|
||||
|
||||
Object
|
||||
.keys(node)
|
||||
.filter((property: string) => property !== 'parentNode')
|
||||
.forEach((property: string): void => {
|
||||
const value: any = (<{[key: string]: any}>node)[property];
|
||||
const value: any = (<TObject>node)[property];
|
||||
|
||||
let clonedValue: any | null;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user