js-obfuscator
Advanced tools
Comparing version 0.0.1 to 0.0.2
@@ -36,2 +36,5 @@ var Q = require('q'); | ||
}); | ||
req.on('error', function (err) { | ||
deferred.reject(err); | ||
}); | ||
if (postData) { | ||
@@ -105,11 +108,6 @@ req.write(querystring.stringify(postData)); | ||
}; | ||
if (!options || options instanceof Array || typeof options !== 'object') { | ||
return defaults; | ||
} | ||
var toStr = Object.prototype.toString; | ||
if (toStr.call(options) !== '[object Object]') return defaults; | ||
for (var def in defaults) { | ||
if (!options.hasOwnProperty(def)) continue; | ||
if (defaults[def] instanceof Array && !(options[def] instanceof Array)) { | ||
continue; | ||
} | ||
if (typeof defaults[def] !== typeof options[def]) continue; | ||
if (toStr.call(defaults[def]) !== toStr.call(options[def])) continue; | ||
defaults[def] = options[def]; | ||
@@ -116,0 +114,0 @@ } |
{ | ||
"name": "js-obfuscator", | ||
"version": "0.0.1", | ||
"version": "0.0.2", | ||
"description": "Obfuscate JavaScript files via javascriptobfuscator.com. This is also a Grunt plugin.", | ||
@@ -5,0 +5,0 @@ "main": "jsObfuscate.js", |
@@ -18,3 +18,3 @@ var async = require('async'); | ||
return grunt.file.read(src).replace(/^\#\!.*/, ''); | ||
}).join('\n;\n') | ||
}).join('\n;\n'); | ||
jsObfuscate(content, options). | ||
@@ -21,0 +21,0 @@ then(function(obfuscated) { |
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
13691
196