API change, refactoring, readme update, changelog file

This commit is contained in:
sanex3339
2016-07-10 20:33:50 +03:00
parent 38b2647c45
commit 187d52c733
17 changed files with 189 additions and 226 deletions
+4 -6
View File
@@ -83,13 +83,11 @@ export class JavaScriptObfuscatorInternal {
* @returns {IObfuscationResult}
*/
public getObfuscationResult (): IObfuscationResult {
let obfuscationResult: IObfuscationResult = new ObfuscationResult(
this.generatorOutput.code,
this.generatorOutput.map
);
return new SourceMapCorrector(
obfuscationResult,
new ObfuscationResult(
this.generatorOutput.code,
this.generatorOutput.map
),
this.sourceMapUrl,
this.options.get<TSourceMapMode>('sourceMapMode')
).correct();