js-obfuscator
Advanced tools
Comparing version 0.0.3 to 0.1.0
@@ -20,3 +20,3 @@ var Q = require('q'); | ||
port: 80, | ||
path: '/', | ||
path: '/Javascript-Obfuscator.aspx', | ||
method: method || 'GET', | ||
@@ -80,3 +80,3 @@ headers: headers | ||
onopentag: function(name, attribs) { | ||
if (name === 'textarea' && attribs.name === 'TextBox2') { | ||
if (name === 'textarea' && attribs.name === 'ctl00$breadcrumbs$TextBox2') { | ||
getText = true; | ||
@@ -135,13 +135,14 @@ } | ||
then(function(bundle) { | ||
if (options.keepLinefeeds) bundle.formData['cbLineBR'] = 'on'; | ||
if (options.keepIndentations) bundle.formData['cbIndent'] = 'on'; | ||
if (options.encodeStrings) bundle.formData['cbEncodeStr'] = 'on'; | ||
if (options.encodeNumbers) bundle.formData['cbEncodeNumber'] = 'on'; | ||
if (options.moveStrings) bundle.formData['cbMoveStr'] = 'on'; | ||
if (options.replaceNames) bundle.formData['cbReplaceNames'] = 'on'; | ||
if (options.keepLinefeeds) bundle.formData['ctl00$MainContent$cbLineBR'] = 'on'; | ||
if (options.keepIndentations) bundle.formData['ctl00$MainContent$cbIndent'] = 'on'; | ||
if (options.encodeStrings) bundle.formData['ctl00$MainContent$cbEncodeStr'] = 'on'; | ||
if (options.encodeNumbers) bundle.formData['ctl00$MainContent$cbEncodeNumber'] = 'on'; | ||
if (options.moveStrings) bundle.formData['ctl00$MainContent$cbMoveStr'] = 'on'; | ||
if (options.replaceNames) bundle.formData['ctl00$MainContent$cbReplaceNames'] = 'on'; | ||
bundle.formData['UploadLib_Uploader_js'] = '1'; | ||
bundle.formData['TextBox1'] = strInput; | ||
bundle.formData['TextBox2'] = ''; | ||
bundle.formData['TextBox3'] = options.variableExclusions.join('\n'); | ||
bundle.formData['__EVENTTARGET'] = 'ctl00$breadcrumbs$Button1'; | ||
bundle.formData['ctl00$breadcrumbs$TextBox1'] = strInput; | ||
bundle.formData['ctl00$breadcrumbs$TextBox2'] = ''; | ||
bundle.formData['ctl00$MainContent$TextBox3'] = options.variableExclusions.join('\n'); | ||
@@ -169,2 +170,2 @@ return bundle; | ||
module.exports = obfuscate; | ||
module.exports.defaultOptions = sanitizeOptions(); | ||
module.exports.defaultOptions = sanitizeOptions(); |
{ | ||
"name": "js-obfuscator", | ||
"version": "0.0.3", | ||
"version": "0.1.0", | ||
"description": "Obfuscate JavaScript files via javascriptobfuscator.com. This is also a Grunt plugin.", | ||
@@ -5,0 +5,0 @@ "main": "jsObfuscate.js", |
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
14651