Skip to content

Commit

Permalink
Version update to 1.10.1. Acorn update.
Browse files Browse the repository at this point in the history
  • Loading branch information
sanex3339 committed Aug 14, 2020
1 parent bd6d9ca commit 517bbe4
Show file tree
Hide file tree
Showing 3 changed files with 14 additions and 11 deletions.
5 changes: 4 additions & 1 deletion loader/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -85,7 +85,10 @@ class WebpackObfuscatorLoaderHelper {
sourceCode: string,
sourceType: acorn.Options['sourceType']
): ESTree.Program {
const config: acorn.Options = {sourceType};
const config: acorn.Options = {
sourceType,
ecmaVersion: 11
};

return <any>acorn.parse(sourceCode, config);
}
Expand Down
14 changes: 7 additions & 7 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

6 changes: 3 additions & 3 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "webpack-obfuscator",
"version": "1.10.0",
"version": "1.10.1",
"description": "javascript-obfuscator plugin for Webpack",
"keywords": [
"obfuscator",
Expand All @@ -15,9 +15,9 @@
"main": "./dist/index.js",
"types": "./dist/index.d.ts",
"dependencies": {
"acorn": "^7.3.1",
"acorn": "^8.0.1",
"estraverse": "^5.1.0",
"javascript-obfuscator": "^1.10.0",
"javascript-obfuscator": "^1.10.1",
"loader-utils": "^2.0.0",
"multi-stage-sourcemap": "^0.3.1",
"multimatch": "^4.0.0",
Expand Down

0 comments on commit 517bbe4

Please sign in to comment.