crabatool 1.0.429 → 1.0.430

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.
Files changed (2) hide show
  1. package/package.json +1 -1
  2. package/tool/checkjs.js +5 -0
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "crabatool",
3
- "version": "1.0.429",
3
+ "version": "1.0.430",
4
4
  "description": "crabatool",
5
5
  "main": "index.js",
6
6
  "bin": {
package/tool/checkjs.js CHANGED
@@ -545,6 +545,11 @@ async function eslintCheck(content) {
545
545
  options.overrideConfig.globals[namespace] = 'readonly';
546
546
  });
547
547
  }
548
+ // 混淆后的变量通配符
549
+ for (var i = 0; i < 300; i++) {
550
+ var key = '_Z_' + i;
551
+ options.overrideConfig.globals[key] = 'writable';
552
+ }
548
553
 
549
554
  var lint = new eslint.ESLint(options);
550
555
  var res = await lint.lintText(content);