Socket
Socket
Sign inDemoInstall

grunt-jscrambler

Package Overview
Dependencies
Maintainers
1
Versions
133
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

grunt-jscrambler - npm Package Compare versions

Comparing version 0.2.5 to 0.2.6

4

examples/nodejs.js

@@ -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);
}
});
});
}
});
};
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