Update the @javascript-obfuscator/escodegen package to the latest version

The only changes are support for [Class static initialization blocks](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Classes/Class_static_initialization_blocks), and the diff for the `node_modules\@javascript-obfuscator\escodegen\escodegen.js` file contains only:
```diff
@@ -1506,6 +1506,13 @@
             return result;
         },

+        StaticBlock: function (stmt, flags) {
+            return [
+                'static' + space,
+                this.BlockStatement(stmt, flags)
+            ];
+        },
+
         ThrowStatement: function (stmt, flags) {
             return [join(
                 'throw',
```
This commit is contained in:
Jonas Jenwald 2022-02-06 11:26:07 +01:00
parent 5f7b96c957
commit 38f6e675bc
2 changed files with 25 additions and 13 deletions

36
package-lock.json generated
View File

@ -13,7 +13,7 @@
"@babel/plugin-transform-runtime": "^7.17.0", "@babel/plugin-transform-runtime": "^7.17.0",
"@babel/preset-env": "^7.16.11", "@babel/preset-env": "^7.16.11",
"@babel/runtime": "^7.17.0", "@babel/runtime": "^7.17.0",
"@javascript-obfuscator/escodegen": "2.2.2", "@javascript-obfuscator/escodegen": "2.3.0",
"acorn": "^8.7.0", "acorn": "^8.7.0",
"autoprefixer": "^10.4.2", "autoprefixer": "^10.4.2",
"babel-loader": "^8.2.3", "babel-loader": "^8.2.3",
@ -1968,9 +1968,9 @@
"dev": true "dev": true
}, },
"node_modules/@javascript-obfuscator/escodegen": { "node_modules/@javascript-obfuscator/escodegen": {
"version": "2.2.2", "version": "2.3.0",
"resolved": "https://registry.npmjs.org/@javascript-obfuscator/escodegen/-/escodegen-2.2.2.tgz", "resolved": "https://registry.npmjs.org/@javascript-obfuscator/escodegen/-/escodegen-2.3.0.tgz",
"integrity": "sha512-0VoGJun/lpGEPv8J8R8fpwt1iAGyctUjHTQoYoCbKY2rcGc6d+NycrqSMo61vRXhZiTnHgud1UF8dOI7UAPdTw==", "integrity": "sha512-QVXwMIKqYMl3KwtTirYIA6gOCiJ0ZDtptXqAv/8KWLG9uQU2fZqTVy7a/A5RvcoZhbDoFfveTxuGxJ5ibzQtkw==",
"dev": true, "dev": true,
"dependencies": { "dependencies": {
"@javascript-obfuscator/estraverse": "^5.3.0", "@javascript-obfuscator/estraverse": "^5.3.0",
@ -12142,6 +12142,7 @@
}, },
"node_modules/npm/node_modules/lodash._baseindexof": { "node_modules/npm/node_modules/lodash._baseindexof": {
"version": "3.1.0", "version": "3.1.0",
"extraneous": true,
"inBundle": true, "inBundle": true,
"license": "MIT" "license": "MIT"
}, },
@ -12157,16 +12158,19 @@
}, },
"node_modules/npm/node_modules/lodash._bindcallback": { "node_modules/npm/node_modules/lodash._bindcallback": {
"version": "3.0.1", "version": "3.0.1",
"extraneous": true,
"inBundle": true, "inBundle": true,
"license": "MIT" "license": "MIT"
}, },
"node_modules/npm/node_modules/lodash._cacheindexof": { "node_modules/npm/node_modules/lodash._cacheindexof": {
"version": "3.0.2", "version": "3.0.2",
"extraneous": true,
"inBundle": true, "inBundle": true,
"license": "MIT" "license": "MIT"
}, },
"node_modules/npm/node_modules/lodash._createcache": { "node_modules/npm/node_modules/lodash._createcache": {
"version": "3.1.2", "version": "3.1.2",
"extraneous": true,
"inBundle": true, "inBundle": true,
"license": "MIT", "license": "MIT",
"dependencies": { "dependencies": {
@ -12181,6 +12185,7 @@
}, },
"node_modules/npm/node_modules/lodash._getnative": { "node_modules/npm/node_modules/lodash._getnative": {
"version": "3.9.1", "version": "3.9.1",
"extraneous": true,
"inBundle": true, "inBundle": true,
"license": "MIT" "license": "MIT"
}, },
@ -12198,6 +12203,7 @@
}, },
"node_modules/npm/node_modules/lodash.restparam": { "node_modules/npm/node_modules/lodash.restparam": {
"version": "3.6.1", "version": "3.6.1",
"extraneous": true,
"inBundle": true, "inBundle": true,
"license": "MIT" "license": "MIT"
}, },
@ -20071,9 +20077,9 @@
"dev": true "dev": true
}, },
"@javascript-obfuscator/escodegen": { "@javascript-obfuscator/escodegen": {
"version": "2.2.2", "version": "2.3.0",
"resolved": "https://registry.npmjs.org/@javascript-obfuscator/escodegen/-/escodegen-2.2.2.tgz", "resolved": "https://registry.npmjs.org/@javascript-obfuscator/escodegen/-/escodegen-2.3.0.tgz",
"integrity": "sha512-0VoGJun/lpGEPv8J8R8fpwt1iAGyctUjHTQoYoCbKY2rcGc6d+NycrqSMo61vRXhZiTnHgud1UF8dOI7UAPdTw==", "integrity": "sha512-QVXwMIKqYMl3KwtTirYIA6gOCiJ0ZDtptXqAv/8KWLG9uQU2fZqTVy7a/A5RvcoZhbDoFfveTxuGxJ5ibzQtkw==",
"dev": true, "dev": true,
"requires": { "requires": {
"@javascript-obfuscator/estraverse": "^5.3.0", "@javascript-obfuscator/estraverse": "^5.3.0",
@ -28045,7 +28051,8 @@
}, },
"lodash._baseindexof": { "lodash._baseindexof": {
"version": "3.1.0", "version": "3.1.0",
"bundled": true "bundled": true,
"extraneous": true
}, },
"lodash._baseuniq": { "lodash._baseuniq": {
"version": "4.6.0", "version": "4.6.0",
@ -28058,15 +28065,18 @@
}, },
"lodash._bindcallback": { "lodash._bindcallback": {
"version": "3.0.1", "version": "3.0.1",
"bundled": true "bundled": true,
"extraneous": true
}, },
"lodash._cacheindexof": { "lodash._cacheindexof": {
"version": "3.0.2", "version": "3.0.2",
"bundled": true "bundled": true,
"extraneous": true
}, },
"lodash._createcache": { "lodash._createcache": {
"version": "3.1.2", "version": "3.1.2",
"bundled": true, "bundled": true,
"extraneous": true,
"requires": { "requires": {
"lodash._getnative": "^3.0.0" "lodash._getnative": "^3.0.0"
} }
@ -28078,7 +28088,8 @@
}, },
"lodash._getnative": { "lodash._getnative": {
"version": "3.9.1", "version": "3.9.1",
"bundled": true "bundled": true,
"extraneous": true
}, },
"lodash._root": { "lodash._root": {
"version": "3.0.1", "version": "3.0.1",
@ -28092,7 +28103,8 @@
}, },
"lodash.restparam": { "lodash.restparam": {
"version": "3.6.1", "version": "3.6.1",
"bundled": true "bundled": true,
"extraneous": true
}, },
"lodash.union": { "lodash.union": {
"version": "4.6.0", "version": "4.6.0",

View File

@ -6,7 +6,7 @@
"@babel/plugin-transform-runtime": "^7.17.0", "@babel/plugin-transform-runtime": "^7.17.0",
"@babel/preset-env": "^7.16.11", "@babel/preset-env": "^7.16.11",
"@babel/runtime": "^7.17.0", "@babel/runtime": "^7.17.0",
"@javascript-obfuscator/escodegen": "2.2.2", "@javascript-obfuscator/escodegen": "2.3.0",
"acorn": "^8.7.0", "acorn": "^8.7.0",
"autoprefixer": "^10.4.2", "autoprefixer": "^10.4.2",
"babel-loader": "^8.2.3", "babel-loader": "^8.2.3",