jeffuscator
Advanced tools
Comparing version 1.2.1 to 1.2.2
@@ -17,5 +17,5 @@ #!/usr/bin/env node | ||
if(program.outputPath) { | ||
var output = path.join(process.cwd(), program.outputPath) | ||
} | ||
var output = program.outputPath | ||
? path.join(process.cwd(), program.outputPath) | ||
: null | ||
@@ -22,0 +22,0 @@ new Jeffuscator(path.join(process.cwd(), program.inputPath)) |
{ | ||
"name": "jeffuscator", | ||
"version": "1.2.1", | ||
"version": "1.2.2", | ||
"description": "Obfuscate JavaScript by renaming all variables and methods to different variations of 'Jeff'.", | ||
@@ -5,0 +5,0 @@ "main": "src/Jeffuscator.js", |
@@ -109,3 +109,3 @@ const mime = require('mime-types'); | ||
if(typeof outputDir !== 'undefined') { | ||
if(outputDir) { | ||
filename = filename.replace( | ||
@@ -112,0 +112,0 @@ getLowestCommonDirectory(this.files), |
@@ -86,7 +86,9 @@ const { expect } = require('chai') | ||
let jsPaths = [ | ||
path.resolve(__dirname, 'fixtures/multipleJsFiles/js1.js'), | ||
path.resolve(__dirname, 'fixtures/multipleJsFiles/js.2.js'), | ||
path.resolve(__dirname, 'fixtures/multipleJsFiles/subDirectory/js3.js') | ||
path.join(__dirname, 'fixtures/multipleJsFiles/js1.js'), | ||
path.join(__dirname, 'fixtures/multipleJsFiles/js.2.js'), | ||
path.join(__dirname, 'fixtures/multipleJsFiles/subDirectory/js3.js') | ||
] | ||
console.log(jsPaths) | ||
console.log(jeff.files) | ||
jsPaths.forEach((jsPath) => { | ||
@@ -293,3 +295,3 @@ expect(jeff.files.indexOf(jsPath)).to.not.equal(-1) | ||
if(file.indexOf('.jeff.js') !== -1) { | ||
fs.unlinkSync(file) | ||
//fs.unlinkSync(file) | ||
} | ||
@@ -296,0 +298,0 @@ }) |
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
38077
518