Skip to content

Commit f43c2ba

Browse files
committed
Obfuscator version update to 2.8.0
`ignoreRequireImports` option
1 parent 690bd62 commit f43c2ba

File tree

6 files changed

+22
-7
lines changed

6 files changed

+22
-7
lines changed

App/constants/ActionTypes.js

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -75,3 +75,5 @@ export const SET_IDENTIFIER_NAMES_GENERATOR = 'SET_IDENTIFER_NAMES_GENERATOR';
7575
export const SET_IDENTIFIERS_PREFIX = 'SET_IDENTIFIERS_PREFIX';
7676

7777
export const TOGGLE_TRANSFORM_OBJECT_KEYS = 'TOGGLE_TRANSFORM_OBJECT_KEYS';
78+
79+
export const TOGGLE_IGNORE_REQUIRE_IMPORTS = 'TOGGLE_IGNORE_REQUIRE_IMPORTS';

App/containers/OptionsContainer.js

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -305,6 +305,11 @@ const Options = ({dispatch, options}) => {
305305
entries={options.reservedStrings}
306306
buttonIcon="plus"/>
307307

308+
<Form.Checkbox
309+
label='Ignore Require Imports'
310+
checked={options.ignoreRequireImports}
311+
onChange={() => dispatch(actions.toggleOption(types.TOGGLE_IGNORE_REQUIRE_IMPORTS))}/>
312+
308313
</Segment>
309314
</Grid.Column>
310315

App/reducers/options.js

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -83,6 +83,8 @@ const initialState = {
8383

8484
transformObjectKeys: false,
8585

86+
ignoreRequireImports: false
87+
8688
};
8789

8890
export const options = (state = initialState, action) => {
@@ -432,6 +434,12 @@ export const options = (state = initialState, action) => {
432434
transformObjectKeys: !state.transformObjectKeys
433435
};
434436

437+
case types.TOGGLE_IGNORE_REQUIRE_IMPORTS:
438+
return {
439+
...state,
440+
ignoreRequireImports: !state.ignoreRequireImports
441+
};
442+
435443
default:
436444
return state
437445
}

package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "javascript-obfuscator-web",
3-
"version": "3.13.6",
3+
"version": "3.13.7",
44
"description": "",
55
"engines": {
66
"node": ">=12.13.1"
@@ -33,7 +33,7 @@
3333
"graceful-fs": "4.1.9",
3434
"html-webpack-plugin": "^3.2.0",
3535
"inert": "5.1.0",
36-
"javascript-obfuscator": "2.7.1",
36+
"javascript-obfuscator": "2.8.0",
3737
"less": "2.7.1",
3838
"less-loader": "4.1.0",
3939
"pm2": "3.5.1",

templates/index.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,7 @@ <h1>JavaScript Obfuscator Tool</h1>
4949
<p>
5050
A free and efficient obfuscator for JavaScript (including partial support of ES2019). Make your code harder to copy and
5151
prevent people from stealing your work. This tool is a Web UI to the excellent (and open source)
52-
<code><a href="https://github.com/javascript-obfuscator/javascript-obfuscator" target="_new">javascript-obfuscator</a>@2.7.1</code>
52+
<code><a href="https://github.com/javascript-obfuscator/javascript-obfuscator" target="_new">javascript-obfuscator</a>@2.8.0</code>
5353
created by Timofey Kachalov.
5454
</p>
5555
<div id="GithubBadges">

yarn.lock

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -4447,10 +4447,10 @@ iterate-object@^1.3.0, iterate-object@^1.3.1:
44474447
resolved "https://registry.yarnpkg.com/iterate-object/-/iterate-object-1.3.4.tgz#fa50b1d9e58e340a7dd6b4c98c8a5e182e790096"
44484448
integrity sha512-4dG1D1x/7g8PwHS9aK6QV5V94+ZvyP4+d19qDv43EzImmrndysIl4prmJ1hWWIGCqrZHyaHBm6BSEWHOLnpoNw==
44494449

4450-
javascript-obfuscator@2.7.1:
4451-
version "2.7.1"
4452-
resolved "https://registry.yarnpkg.com/javascript-obfuscator/-/javascript-obfuscator-2.7.1.tgz#0b94492cfe412af17082f8153fc226b983d35836"
4453-
integrity sha512-MlTMR4R8O7KZV9QnSwH4FFYjv+ay5oHN7Be2Rhc3AfFHnlLqHVUq4RRuGnrw8DV2QOe/B9hWMqdeb1Z3/g+GJA==
4450+
javascript-obfuscator@2.8.0:
4451+
version "2.8.0"
4452+
resolved "https://registry.yarnpkg.com/javascript-obfuscator/-/javascript-obfuscator-2.8.0.tgz#9cc9dfaadbe02560c2011ce188231b63dc8e72d0"
4453+
integrity sha512-2lzhlk5kStE/+nL9DlXZdZ6XfBPU/rLuAQa9q3sJ9c98VL6U6RDKugKDqoX+Y1xli7OVtsjVIAflI6LuvP9gBQ==
44544454
dependencies:
44554455
"@javascript-obfuscator/escodegen" "2.1.1"
44564456
"@nuxtjs/opencollective" "0.3.2"

0 commit comments

Comments
 (0)