Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

js-obfuscator

Package Overview
Dependencies
Maintainers
1
Versions
9
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

js-obfuscator - npm Package Compare versions

Comparing version 0.0.1 to 0.0.2

14

jsObfuscate.js

@@ -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) {

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc