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
+1
-1
File diff suppressed because one or more lines are too long
Vendored
+1
-1
File diff suppressed because one or more lines are too long
Vendored
+1
-1
File diff suppressed because one or more lines are too long
+11
-11
@@ -21,11 +21,11 @@
|
||||
},
|
||||
"types": "index.d.ts",
|
||||
"dependencies": {
|
||||
"@babel/runtime": "7.0.0-beta.55",
|
||||
"@babel/runtime": "7.0.0-rc.1",
|
||||
"chalk": "2.4.1",
|
||||
"chance": "1.0.16",
|
||||
"class-validator": "0.9.1",
|
||||
"commander": "2.16.0",
|
||||
"commander": "2.17.1",
|
||||
"escodegen-wallaby": "1.6.19",
|
||||
"espree": "4.0.0",
|
||||
"estraverse": "4.2.0",
|
||||
@@ -36,15 +36,15 @@
|
||||
"multimatch": "2.1.0",
|
||||
"opencollective": "1.0.3",
|
||||
"reflect-metadata": "0.1.12",
|
||||
"source-map-support": "0.5.6",
|
||||
"source-map-support": "0.5.8",
|
||||
"string-template": "1.0.0",
|
||||
"tslib": "1.9.3"
|
||||
},
|
||||
"devDependencies": {
|
||||
"@babel/cli": "7.0.0-beta.55",
|
||||
"@babel/core": "7.0.0-beta.55",
|
||||
"@babel/plugin-transform-runtime": "7.0.0-beta.55",
|
||||
"@babel/preset-env": "7.0.0-beta.55",
|
||||
"@babel/cli": "7.0.0-rc.1",
|
||||
"@babel/core": "7.0.0-rc.1",
|
||||
"@babel/plugin-transform-runtime": "7.0.0-rc.1",
|
||||
"@babel/preset-env": "7.0.0-rc.1",
|
||||
"@types/chai": "4.1.4",
|
||||
"@types/chance": "1.0.1",
|
||||
"@types/escodegen": "0.0.6",
|
||||
@@ -54,7 +54,7 @@
|
||||
"@types/mkdirp": "0.5.2",
|
||||
"@types/mocha": "5.2.5",
|
||||
"@types/multimatch": "2.1.2",
|
||||
"@types/node": "10.5.5",
|
||||
"@types/node": "10.5.8",
|
||||
"@types/rimraf": "2.0.2",
|
||||
"@types/sinon": "5.0.1",
|
||||
"@types/string-template": "1.0.2",
|
||||
@@ -68,16 +68,16 @@
|
||||
"pjson": "1.0.9",
|
||||
"pre-commit": "1.2.2",
|
||||
"rimraf": "2.6.2",
|
||||
"sinon": "6.1.4",
|
||||
"sinon": "6.1.5",
|
||||
"threads": "0.12.0",
|
||||
"ts-node": "6.1.0",
|
||||
"tslint": "5.11.0",
|
||||
"tslint-eslint-rules": "5.3.1",
|
||||
"tslint-language-service": "0.9.9",
|
||||
"tslint-microsoft-contrib": "5.1.0",
|
||||
"tslint-microsoft-contrib": "5.2.0",
|
||||
"tslint-webpack-plugin": "1.2.2",
|
||||
"typescript": "3.0.1",
|
||||
"webpack": "4.16.3",
|
||||
"webpack": "4.16.5",
|
||||
"webpack-cli": "3.1.0",
|
||||
"webpack-node-externals": "1.7.2"
|
||||
},
|
||||
|
||||
@@ -125,7 +125,7 @@ export class FunctionTransformer extends AbstractNodeTransformer {
|
||||
private storeFunctionParams (functionNode: ESTree.Function, lexicalScopeNode: TNodeWithLexicalScope): void {
|
||||
const visitor: estraverse.Visitor = {
|
||||
enter: (node: ESTree.Node, parentNode: ESTree.Node | null): estraverse.VisitorOption | void => {
|
||||
// Should check with identifier as first argument,
|
||||
// should check with identifier as first argument,
|
||||
// because prohibited identifier can be easily ignored
|
||||
if (FunctionTransformer.isProhibitedIdentifierOfPropertyNode(node, parentNode)) {
|
||||
return;
|
||||
@@ -143,7 +143,9 @@ export class FunctionTransformer extends AbstractNodeTransformer {
|
||||
}
|
||||
};
|
||||
|
||||
functionNode.params.forEach((paramsNode: ESTree.Node) => estraverse.traverse(paramsNode, visitor));
|
||||
functionNode.params.forEach((paramsNode: ESTree.Node) => {
|
||||
estraverse.traverse(paramsNode, visitor);
|
||||
});
|
||||
}
|
||||
|
||||
/**
|
||||
@@ -159,7 +161,7 @@ export class FunctionTransformer extends AbstractNodeTransformer {
|
||||
const visitor: estraverse.Visitor = {
|
||||
enter: (node: ESTree.Node, parentNode: ESTree.Node | null): void | estraverse.VisitorOption => {
|
||||
/**
|
||||
* Should process nested functions in different traverse loop to avoid wrong code generation
|
||||
* should process nested functions in different traverse loop to avoid wrong code generation
|
||||
*/
|
||||
if (NodeGuards.isFunctionNode(node) && node !== functionNode) {
|
||||
this.replaceFunctionParams(node, lexicalScopeNode, new Set(ignoredIdentifierNamesSet));
|
||||
@@ -168,7 +170,7 @@ export class FunctionTransformer extends AbstractNodeTransformer {
|
||||
}
|
||||
|
||||
/**
|
||||
* Should ignore all shorthand `key` identifiers of the `PropertyNode`
|
||||
* should ignore all shorthand `key` identifiers of the `PropertyNode`
|
||||
*/
|
||||
if (FunctionTransformer.isProhibitedIdentifierOfShorthandPropertyNode(node)) {
|
||||
ignoredIdentifierNamesSet.add(node.key.name);
|
||||
@@ -194,6 +196,6 @@ export class FunctionTransformer extends AbstractNodeTransformer {
|
||||
}
|
||||
};
|
||||
|
||||
estraverse.replace(functionNode, visitor)
|
||||
estraverse.replace(functionNode, visitor);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user