grunt-jscrambler
Advanced tools
Comparing version 0.2.5 to 0.2.6
@@ -27,4 +27,2 @@ 'use strict'; | ||
dot_notation_elimination: '%DEFAULT%', | ||
dead_code_elimination: '%DEFAULT%', | ||
constant_folding: '%DEFAULT%', | ||
literal_duplicates: '%DEFAULT%', | ||
@@ -41,2 +39,2 @@ function_outlining: '%DEFAULT%', | ||
grunt.registerTask('default', ['clean', 'jscrambler']); | ||
}; | ||
}; |
{ | ||
"name": "grunt-jscrambler", | ||
"description": "Obfuscate your source files using the JScrambler API.", | ||
"version": "0.2.5", | ||
"version": "0.2.6", | ||
"homepage": "https://github.com/auditmark/grunt-jscrambler", | ||
@@ -6,0 +6,0 @@ "author": "José Magalhães <magalhas@gmail.com> (https://github.com/magalhas)", |
@@ -11,2 +11,3 @@ /** | ||
var path = require('path'); | ||
var util = require('util'); | ||
@@ -52,24 +53,23 @@ module.exports = function (grunt) { | ||
.fail(function (err) { | ||
grunt.fail.fatal(err); | ||
grunt.fail.fatal(util.inspect(err)); | ||
}); | ||
function writeFile(buffer, file) { | ||
files.forEach(function(elem) { | ||
elem.src.forEach(function(src) { | ||
if(grunt.file.arePathsEquivalent(src, file)) | ||
{ | ||
var dest = elem.dest; | ||
var lastDestChar = dest[file.length - 1]; | ||
var destPath; | ||
if (elem.src.length === 1 && lastDestChar !== '/' && lastDestChar !== '\\') { | ||
destPath = dest; | ||
} else { | ||
destPath = path.join(dest, file); | ||
} | ||
grunt.file.write(destPath, buffer); | ||
} | ||
}); | ||
files.forEach(function (elem) { | ||
elem.src.forEach(function (src) { | ||
if (grunt.file.arePathsEquivalent(src, file)) { | ||
var dest = elem.dest; | ||
var lastDestChar = dest[file.length - 1]; | ||
var destPath; | ||
if (elem.src.length === 1 && lastDestChar !== '/' && lastDestChar !== '\\') { | ||
destPath = dest; | ||
} else { | ||
destPath = path.join(dest, file); | ||
} | ||
grunt.file.write(destPath, buffer); | ||
} | ||
}); | ||
}); | ||
} | ||
}); | ||
}; |
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
133
3
3
13137
301
1