grunt-jscrambler
Advanced tools
Comparing version 1.0.2 to 1.0.3
{ | ||
"name": "grunt-jscrambler", | ||
"description": "Obfuscate your source files using the JScrambler API.", | ||
"version": "1.0.2", | ||
"version": "1.0.3", | ||
"homepage": "https://github.com/jscrambler/grunt-jscrambler", | ||
@@ -6,0 +6,0 @@ "scripts": { |
@@ -9,3 +9,3 @@ /** | ||
var _ = require('lodash'); | ||
var jScrambler = require('jscrambler').default; | ||
var jscrambler = require('jscrambler').default; | ||
var path = require('path'); | ||
@@ -22,15 +22,3 @@ var util = require('util'); | ||
jScrambler | ||
.protectAndDownload({ | ||
host: options.host, | ||
port: options.port, | ||
keys: options.keys, | ||
applicationId: options.applicationId, | ||
filesSrc: this.filesSrc, | ||
params: options.params | ||
}, writeFile) | ||
.then(done) | ||
.catch(function (err) { | ||
grunt.fail.fatal(util.inspect(err)); | ||
}); | ||
options.filesSrc = this.filesSrc; | ||
@@ -50,2 +38,4 @@ function writeFile(buffer, file) { | ||
grunt.file.write(destPath, buffer); | ||
} else if (elem.dest) { | ||
grunt.file.write(path.join(elem.dest, file), buffer); | ||
} | ||
@@ -55,3 +45,11 @@ }); | ||
} | ||
jscrambler | ||
.protectAndDownload(options, writeFile) | ||
.then(done) | ||
.catch(function (err) { | ||
grunt.fail.fatal(util.inspect(err)); | ||
}); | ||
}); | ||
}; | ||
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
Major refactor
Supply chain riskPackage has recently undergone a major refactor. It may be unstable or indicate significant internal changes. Use caution when updating to versions that include significant changes.
Found 1 instance in 1 package
New author
Supply chain riskA new npm collaborator published a version of the package for the first time. New collaborators are usually benign additions to a project, but do indicate a change to the security surface area of a package.
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
Dynamic require
Supply chain riskDynamic require can indicate the package is performing dangerous or unsafe dynamic code execution.
Found 1 instance in 1 package
Long strings
Supply chain riskContains long string literals, which may be a sign of obfuscated or packed code.
Found 1 instance in 1 package
1
77827
19
415
2