jscrambler
Advanced tools
Comparing version 8.7.1-next.0 to 8.7.1-next.1
# jscrambler | ||
## 8.7.1-next.0 | ||
## 8.7.1-next.1 | ||
@@ -5,0 +5,0 @@ ### Patch Changes |
@@ -59,4 +59,5 @@ "use strict"; | ||
* @param {Buffer} buffer file contents | ||
* @param {string} fileName file name | ||
*/ | ||
function webpackAttachDisableAnnotations(beforeProtection, cwd, path, buffer) { | ||
function webpackAttachDisableAnnotations(beforeProtection, cwd, path, buffer, fileName) { | ||
const { | ||
@@ -73,3 +74,3 @@ excludeModules | ||
} catch (e) { | ||
console.log("Error on beforeProtection (".concat(WEBPACK_IGNORE_VENDORS, "): invalid source file.")); | ||
console.log("Error on beforeProtection (".concat(WEBPACK_IGNORE_VENDORS, "): \"").concat(fileName, "\" could not be parsed.")); | ||
process.exit(1); | ||
@@ -90,3 +91,3 @@ } | ||
if (debug) { | ||
console.debug("beforeProtection (".concat(WEBPACK_IGNORE_VENDORS, "): ignoring ").concat(excludeModules.get(moduleId))); | ||
console.debug("beforeProtection (".concat(WEBPACK_IGNORE_VENDORS, "): ignoring ").concat(excludeModules.get(moduleId), " module on \"").concat(fileName, "\"")); | ||
} | ||
@@ -111,3 +112,3 @@ return null; | ||
} catch (e) { | ||
console.log("Error on beforeProtection (".concat(WEBPACK_IGNORE_VENDORS, "): ignoring webpack vendors produced an invalid javascript file.")); | ||
console.log("Error on beforeProtection (".concat(WEBPACK_IGNORE_VENDORS, "): unsupported structure on \"").concat(fileName, "\".")); | ||
process.exit(1); | ||
@@ -117,3 +118,3 @@ } | ||
} | ||
console.log("beforeProtection (".concat(WEBPACK_IGNORE_VENDORS, "): ").concat(appendDisableAnnotationAt.length, " module(s) ignored")); | ||
console.log("beforeProtection (".concat(WEBPACK_IGNORE_VENDORS, "): ").concat(appendDisableAnnotationAt.length, " module(s) ignored for \"").concat(fileName, "\"")); | ||
return buffer; | ||
@@ -120,0 +121,0 @@ } |
@@ -74,6 +74,6 @@ "use strict"; | ||
case _utils.PREPEND_JS_TYPE: | ||
buffer = (0, _utils.concatenate)(element, cwd, sPath, buffer); | ||
buffer = (0, _utils.concatenate)(element, cwd, sPath, buffer, name); | ||
break; | ||
case _utils.WEBPACK_IGNORE_VENDORS: | ||
buffer = (0, _utils.webpackAttachDisableAnnotations)(element, cwd, sPath, buffer); | ||
buffer = (0, _utils.webpackAttachDisableAnnotations)(element, cwd, sPath, buffer, name); | ||
break; | ||
@@ -80,0 +80,0 @@ } |
{ | ||
"name": "jscrambler", | ||
"description": "Jscrambler API client.", | ||
"version": "8.7.1-next.0", | ||
"version": "8.7.1-next.1", | ||
"homepage": "https://github.com/jscrambler/jscrambler", | ||
@@ -6,0 +6,0 @@ "author": "Jscrambler <support@jscrambler.com>", |
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
231408
2884