Bladeren bron

Updated changelog

sanex3339 7 jaren geleden
bovenliggende
commit
91cb585cc2
4 gewijzigde bestanden met toevoegingen van 6 en 8 verwijderingen
  1. 1 1
      CHANGELOG.md
  2. 0 0
      dist/index.js
  3. 2 2
      package.json
  4. 3 5
      src/utils/RandomGenerator.ts

+ 1 - 1
CHANGELOG.md

@@ -11,7 +11,7 @@ v0.10.0
 * added support for async functions
 * fixed https://github.com/javascript-obfuscator/javascript-obfuscator/issues/54
 * fixed https://github.com/javascript-obfuscator/javascript-obfuscator/issues/57
-* https://github.com/javascript-obfuscator/javascript-obfuscator/issues/58
+* fixed https://github.com/javascript-obfuscator/javascript-obfuscator/issues/58
 
 v0.9.3
 ---

File diff suppressed because it is too large
+ 0 - 0
dist/index.js


+ 2 - 2
package.json

@@ -27,7 +27,7 @@
     "esprima": "4.0.0",
     "estraverse": "4.2.0",
     "inversify": "4.1.1",
-    "md5": "^2.2.1",
+    "md5": "2.2.1",
     "mkdirp": "0.5.1",
     "opencollective": "1.0.3",
     "reflect-metadata": "0.1.10",
@@ -43,7 +43,7 @@
     "@types/esprima": "2.1.33",
     "@types/estraverse": "0.0.6",
     "@types/estree": "0.0.35",
-    "@types/md5": "^2.1.32",
+    "@types/md5": "2.1.32",
     "@types/mkdirp": "0.3.29",
     "@types/mocha": "2.2.41",
     "@types/node": "8.0.5",

+ 3 - 5
src/utils/RandomGenerator.ts

@@ -58,11 +58,9 @@ export class RandomGenerator implements IRandomGenerator {
         this.sourceCode = sourceCode;
         this.options = options;
 
-        if (options.seed !== 0) {
-            this.randomGenerator = new Chance(this.getSeed());
-        } else {
-            this.randomGenerator = new Chance();
-        }
+        this.randomGenerator = options.seed === 0
+            ? new Chance()
+            : new Chance(this.getSeed());
     }
 
     /**

Some files were not shown because too many files changed in this diff