jscrambler-metro-plugin
Advanced tools
Comparing version 5.4.0 to 5.4.1
@@ -1,2 +0,2 @@ | ||
const {emptyDir, mkdirp, readFile, writeFile} = require('fs-extra'); | ||
const {emptyDir, remove, mkdirp, readFile, writeFile} = require('fs-extra'); | ||
const jscrambler = require('jscrambler').default; | ||
@@ -13,2 +13,3 @@ const commander = require('commander'); | ||
const JSCRAMBLER_SRC_TEMP_FOLDER = `${JSCRAMBLER_TEMP_FOLDER}/src`; | ||
const JSCRAMBLER_PROTECTION_ID_FILE = `${JSCRAMBLER_TEMP_FOLDER}/protectionId`; | ||
const JSCRAMBLER_BEG_ANNOTATION = '"JSCRAMBLER-BEG";'; | ||
@@ -33,3 +34,4 @@ const JSCRAMBLER_END_ANNOTATION = '"JSCRAMBLER-END";'; | ||
emptyDir(JSCRAMBLER_SRC_TEMP_FOLDER), | ||
emptyDir(JSCRAMBLER_DIST_TEMP_FOLDER) | ||
emptyDir(JSCRAMBLER_DIST_TEMP_FOLDER), | ||
remove(JSCRAMBLER_PROTECTION_ID_FILE) | ||
]) | ||
@@ -66,2 +68,5 @@ .then(() => readFile(bundlePath, 'utf8')) | ||
}) | ||
.then(protectionId => | ||
writeFile(JSCRAMBLER_PROTECTION_ID_FILE, protectionId) | ||
) | ||
.then(() => | ||
@@ -68,0 +73,0 @@ Promise.all( |
{ | ||
"name": "jscrambler-metro-plugin", | ||
"version": "5.4.0", | ||
"version": "5.4.1", | ||
"description": "A plugin to use metro with Jscrambler", | ||
@@ -5,0 +5,0 @@ "main": "lib/index.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
5288
131
0