javascript-obfuscator 4.2.0 → 4.2.1

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "javascript-obfuscator",
3
- "version": "4.2.0",
3
+ "version": "4.2.1",
4
4
  "description": "JavaScript obfuscator",
5
5
  "keywords": [
6
6
  "obfuscator",
@@ -36,7 +36,7 @@
36
36
  "js-string-escape": "1.0.1",
37
37
  "md5": "2.3.0",
38
38
  "mkdirp": "3.0.1",
39
- "multimatch": "7.0.0",
39
+ "multimatch": "5.0.0",
40
40
  "opencollective-postinstall": "2.0.3",
41
41
  "process": "0.11.10",
42
42
  "reflect-metadata": "0.2.2",
@@ -71,10 +71,12 @@
71
71
  "chai-exclude": "3.0.1",
72
72
  "cross-env": "10.1.0",
73
73
  "eslint": "8.57.1",
74
+ "eslint-config-prettier": "10.1.8",
74
75
  "eslint-plugin-import": "2.32.0",
75
76
  "eslint-plugin-jsdoc": "50.6.3",
76
77
  "eslint-plugin-no-null": "1.0.2",
77
78
  "eslint-plugin-prefer-arrow": "1.2.3",
79
+ "eslint-plugin-prettier": "5.5.4",
78
80
  "eslint-plugin-unicorn": "56.0.1",
79
81
  "eslint-webpack-plugin": "4.2.0",
80
82
  "fork-ts-checker-notifier-webpack-plugin": "9.0.0",
@@ -84,6 +86,7 @@
84
86
  "mocha": "11.7.4",
85
87
  "nyc": "17.1.0",
86
88
  "pjson": "1.0.9",
89
+ "prettier": "3.6.2",
87
90
  "rimraf": "6.0.1",
88
91
  "sinon": "19.0.2",
89
92
  "source-map-resolve": "0.6.0",
@@ -117,10 +120,13 @@
117
120
  "test:mocha-memory-performance": "cross-env NODE_OPTIONS=--max-old-space-size=280 mocha --require ts-node/register test/performance-tests/JavaScriptObfuscatorMemory.spec.ts",
118
121
  "test": "yarn run test:full",
119
122
  "eslint": "eslint src/**/*.ts",
123
+ "prettier": "prettier --write \"src/**/*.ts\" \"test/**/*.ts\"",
124
+ "prettier:check": "prettier --check \"src/**/*.ts\" \"test/**/*.ts\"",
125
+ "format": "yarn run prettier && yarn run eslint --fix",
120
126
  "git:addFiles": "git add .",
121
127
  "postinstall": "opencollective-postinstall",
122
- "precommit": "npm run build",
123
- "prepublishOnly": "npm run build && npm run build:typings",
128
+ "precommit": "yarn run eslint",
129
+ "prepublishOnly": "yarn run build && yarn run build:typings",
124
130
  "prepare": "husky install"
125
131
  },
126
132
  "author": {
@@ -1,7 +1,7 @@
1
1
  import * as ESTree from 'estree';
2
- export type TNodeWithSingleStatementBody = (ESTree.LabeledStatement | ESTree.WithStatement | ESTree.WhileStatement | ESTree.DoWhileStatement | ESTree.ForStatement | ESTree.ForInStatement | ESTree.ForOfStatement & {
2
+ export type TNodeWithSingleStatementBody = (ESTree.LabeledStatement | ESTree.WithStatement | ESTree.WhileStatement | ESTree.DoWhileStatement | ESTree.ForStatement | ESTree.ForInStatement | (ESTree.ForOfStatement & {
3
3
  body: Exclude<ESTree.Statement, ESTree.BlockStatement>;
4
- }) | (ESTree.IfStatement & {
4
+ })) | (ESTree.IfStatement & {
5
5
  consequent: Exclude<ESTree.Statement, ESTree.BlockStatement>;
6
6
  alternate?: Exclude<ESTree.Statement, ESTree.BlockStatement> | null;
7
7
  });
@@ -1 +1 @@
1
- export type TTypeFromEnum<T extends object> = (T)[keyof T];
1
+ export type TTypeFromEnum<T extends object> = T[keyof T];