javascript-obfuscator 3.0.1 → 3.1.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +4 -0
- package/dist/index.browser.js +1 -1
- package/dist/index.browser.js.map +1 -1
- package/dist/index.cli.js +1 -1
- package/dist/index.cli.js.map +1 -1
- package/dist/index.js +1 -1
- package/dist/index.js.map +1 -1
- package/package.json +28 -26
- package/typings/src/enums/node/NodeType.d.ts +1 -0
- package/typings/src/node/NodeFactory.d.ts +1 -0
- package/typings/src/node/NodeGuards.d.ts +1 -0
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "javascript-obfuscator",
|
|
3
|
-
"version": "3.0
|
|
3
|
+
"version": "3.1.0",
|
|
4
4
|
"description": "JavaScript obfuscator",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"obfuscator",
|
|
@@ -21,16 +21,17 @@
|
|
|
21
21
|
},
|
|
22
22
|
"types": "typings/index.d.ts",
|
|
23
23
|
"dependencies": {
|
|
24
|
-
"@javascript-obfuscator/escodegen": "2.
|
|
25
|
-
"@javascript-obfuscator/estraverse": "5.
|
|
24
|
+
"@javascript-obfuscator/escodegen": "2.3.0",
|
|
25
|
+
"@javascript-obfuscator/estraverse": "5.4.0",
|
|
26
26
|
"@nuxtjs/opencollective": "0.3.2",
|
|
27
|
-
"acorn": "8.
|
|
27
|
+
"acorn": "8.7.0",
|
|
28
28
|
"assert": "2.0.0",
|
|
29
29
|
"chalk": "4.1.2",
|
|
30
30
|
"chance": "1.1.8",
|
|
31
31
|
"class-validator": "0.13.2",
|
|
32
|
-
"commander": "
|
|
33
|
-
"eslint-scope": "
|
|
32
|
+
"commander": "9.0.0",
|
|
33
|
+
"eslint-scope": "7.1.0",
|
|
34
|
+
"eslint-visitor-keys": "3.2.0",
|
|
34
35
|
"fast-deep-equal": "3.1.3",
|
|
35
36
|
"inversify": "6.0.1",
|
|
36
37
|
"js-string-escape": "1.0.1",
|
|
@@ -39,58 +40,59 @@
|
|
|
39
40
|
"multimatch": "5.0.0",
|
|
40
41
|
"process": "0.11.10",
|
|
41
42
|
"reflect-metadata": "0.1.13",
|
|
42
|
-
"source-map-support": "0.5.
|
|
43
|
+
"source-map-support": "0.5.21",
|
|
43
44
|
"string-template": "1.0.0",
|
|
44
45
|
"stringz": "2.1.0",
|
|
45
46
|
"tslib": "2.3.1"
|
|
46
47
|
},
|
|
47
48
|
"devDependencies": {
|
|
48
|
-
"@istanbuljs/nyc-config-typescript": "1.0.
|
|
49
|
-
"@types/chai": "4.
|
|
49
|
+
"@istanbuljs/nyc-config-typescript": "1.0.2",
|
|
50
|
+
"@types/chai": "4.3.0",
|
|
50
51
|
"@types/chance": "1.1.3",
|
|
51
52
|
"@types/escodegen": "0.0.7",
|
|
52
|
-
"@types/eslint-scope": "3.7.
|
|
53
|
+
"@types/eslint-scope": "3.7.3",
|
|
54
|
+
"@types/eslint-visitor-keys": "1.0.0",
|
|
53
55
|
"@types/estraverse": "5.1.1",
|
|
54
56
|
"@types/estree": "0.0.50",
|
|
55
57
|
"@types/js-beautify": "1.13.3",
|
|
56
58
|
"@types/js-string-escape": "1.0.1",
|
|
57
59
|
"@types/md5": "2.3.1",
|
|
58
60
|
"@types/mkdirp": "1.0.2",
|
|
59
|
-
"@types/mocha": "9.
|
|
61
|
+
"@types/mocha": "9.1.0",
|
|
60
62
|
"@types/multimatch": "4.0.0",
|
|
61
|
-
"@types/node": "
|
|
63
|
+
"@types/node": "17.0.13",
|
|
62
64
|
"@types/rimraf": "3.0.2",
|
|
63
|
-
"@types/sinon": "10.0.
|
|
65
|
+
"@types/sinon": "10.0.9",
|
|
64
66
|
"@types/string-template": "1.0.2",
|
|
65
67
|
"@types/webpack-env": "1.16.3",
|
|
66
|
-
"@typescript-eslint/eslint-plugin": "5.
|
|
67
|
-
"@typescript-eslint/parser": "5.
|
|
68
|
-
"chai": "4.3.
|
|
68
|
+
"@typescript-eslint/eslint-plugin": "5.10.1",
|
|
69
|
+
"@typescript-eslint/parser": "5.10.1",
|
|
70
|
+
"chai": "4.3.6",
|
|
69
71
|
"chai-exclude": "2.1.0",
|
|
70
72
|
"cross-env": "7.0.3",
|
|
71
|
-
"eslint": "8.
|
|
72
|
-
"eslint-plugin-import": "2.25.
|
|
73
|
-
"eslint-plugin-jsdoc": "37.0
|
|
73
|
+
"eslint": "8.8.0",
|
|
74
|
+
"eslint-plugin-import": "2.25.4",
|
|
75
|
+
"eslint-plugin-jsdoc": "37.7.0",
|
|
74
76
|
"eslint-plugin-no-null": "1.0.2",
|
|
75
77
|
"eslint-plugin-prefer-arrow": "1.2.3",
|
|
76
|
-
"eslint-plugin-unicorn": "
|
|
78
|
+
"eslint-plugin-unicorn": "40.1.0",
|
|
77
79
|
"fork-ts-checker-notifier-webpack-plugin": "4.0.0",
|
|
78
80
|
"fork-ts-checker-webpack-plugin": "6.4.0",
|
|
79
81
|
"husky": "7.0.4",
|
|
80
82
|
"js-beautify": "1.14.0",
|
|
81
|
-
"mocha": "9.
|
|
83
|
+
"mocha": "9.2.0",
|
|
82
84
|
"nyc": "15.1.0",
|
|
83
85
|
"pjson": "1.0.9",
|
|
84
86
|
"rimraf": "3.0.2",
|
|
85
|
-
"sinon": "
|
|
87
|
+
"sinon": "13.0.0",
|
|
86
88
|
"source-map-resolve": "0.6.0",
|
|
87
|
-
"terser": "5.
|
|
89
|
+
"terser": "5.10.0",
|
|
88
90
|
"threads": "1.7.0",
|
|
89
91
|
"ts-loader": "9.2.6",
|
|
90
92
|
"ts-node": "10.4.0",
|
|
91
|
-
"typescript": "4.
|
|
92
|
-
"webpack": "5.
|
|
93
|
-
"webpack-cli": "4.9.
|
|
93
|
+
"typescript": "4.5.5",
|
|
94
|
+
"webpack": "5.67.0",
|
|
95
|
+
"webpack-cli": "4.9.2",
|
|
94
96
|
"webpack-node-externals": "3.0.0"
|
|
95
97
|
},
|
|
96
98
|
"repository": {
|
|
@@ -47,6 +47,7 @@ export declare enum NodeType {
|
|
|
47
47
|
ReturnStatement = "ReturnStatement",
|
|
48
48
|
SequenceExpression = "SequenceExpression",
|
|
49
49
|
SpreadElement = "SpreadElement",
|
|
50
|
+
StaticBlock = "StaticBlock",
|
|
50
51
|
Super = "Super",
|
|
51
52
|
SwitchCase = "SwitchCase",
|
|
52
53
|
SwitchStatement = "SwitchStatement",
|
|
@@ -33,6 +33,7 @@ export declare class NodeFactory {
|
|
|
33
33
|
static returnStatementNode(argument: ESTree.Expression): ESTree.ReturnStatement;
|
|
34
34
|
static sequenceExpressionNode(expressions: ESTree.Expression[]): ESTree.SequenceExpression;
|
|
35
35
|
static spreadElementNode(argument: ESTree.Expression): ESTree.SpreadElement;
|
|
36
|
+
static staticBlockNode(body?: ESTree.Statement[]): ESTree.StaticBlock;
|
|
36
37
|
static switchStatementNode(discriminant: ESTree.Expression, cases: ESTree.SwitchCase[]): ESTree.SwitchStatement;
|
|
37
38
|
static switchCaseNode(test: ESTree.Expression, consequent: ESTree.Statement[]): ESTree.SwitchCase;
|
|
38
39
|
static unaryExpressionNode(operator: ESTree.UnaryOperator, argument: ESTree.Expression, prefix?: true): ESTree.UnaryExpression;
|
|
@@ -65,6 +65,7 @@ export declare class NodeGuards {
|
|
|
65
65
|
static isReturnStatementNode(node: ESTree.Node): node is ESTree.ReturnStatement;
|
|
66
66
|
static isSequenceExpressionNode(node: ESTree.Node): node is ESTree.SequenceExpression;
|
|
67
67
|
static isSpreadElementNode(node: ESTree.Node): node is ESTree.SpreadElement;
|
|
68
|
+
static isStaticBlockNode(node: ESTree.Node): boolean;
|
|
68
69
|
static isSuperNode(node: ESTree.Node): node is ESTree.Super;
|
|
69
70
|
static isSwitchCaseNode(node: ESTree.Node): node is ESTree.SwitchCase;
|
|
70
71
|
static isTaggedTemplateExpressionNode(node: ESTree.Node): node is ESTree.TaggedTemplateExpression;
|