ember-cli-jscrambler
Advanced tools
Comparing version 5.4.3 to 5.5.0
@@ -14,2 +14,7 @@ const jscrambler = require('jscrambler').default; | ||
const instrument = !!jscrambler.config.instrument; | ||
const jscramblerOp = instrument | ||
? jscrambler.instrumentAndDownload | ||
: jscrambler.protectAndDownload; | ||
const ensureDir = memoize(filename => { | ||
@@ -39,3 +44,3 @@ const p = path.dirname(filename); | ||
jscrambler: {}, | ||
sourcemaps: true | ||
sourcemaps: false | ||
}); | ||
@@ -110,4 +115,5 @@ | ||
return jscrambler | ||
.protectAndDownload( | ||
return jscramblerOp | ||
.call( | ||
jscrambler, | ||
Object.assign({}, this.options.jscrambler, { | ||
@@ -132,3 +138,3 @@ sources, | ||
.then(protectionId => { | ||
if (this.options.sourcemaps) { | ||
if (this.options.sourcemaps && !instrument) { | ||
return new Promise((resolve, reject) => | ||
@@ -135,0 +141,0 @@ jscrambler.downloadSourceMaps( |
{ | ||
"name": "ember-cli-jscrambler", | ||
"version": "5.4.3", | ||
"version": "5.5.0", | ||
"description": "Jscrambler JavaScript protection for Ember-CLI", | ||
@@ -17,3 +17,3 @@ "keywords": [ | ||
"broccoli-plugin": "^1.3.0", | ||
"jscrambler": "^5.4.3", | ||
"jscrambler": "^5.5.0", | ||
"lodash.defaultsdeep": "^4.6.0", | ||
@@ -20,0 +20,0 @@ "lodash.memoize": "^4.1.2", |
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
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
8005
160
0
Updatedjscrambler@^5.5.0