jscrambler 6.4.14 → 6.4.16
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.js
CHANGED
|
@@ -496,6 +496,11 @@ var _default = {
|
|
|
496
496
|
if (protection.growthWarning) {
|
|
497
497
|
console.warn("Warning: Your protected application has surpassed a reasonable file growth.\nFor more information on what might have caused this, please see the Protection Report.\nLink: ".concat(APP_URL, "."));
|
|
498
498
|
}
|
|
499
|
+
if (protection.hasForcedDateLock) {
|
|
500
|
+
console.warn("Warning: Since your plan is a Trial, your protected files will stop working on ".concat(protection.parameters.find(function (p) {
|
|
501
|
+
return p.name === 'dateLock' && p.options.endDate;
|
|
502
|
+
}).options.endDate));
|
|
503
|
+
}
|
|
499
504
|
if (debug) {
|
|
500
505
|
console.log('Finished protecting');
|
|
501
506
|
}
|
|
@@ -519,7 +524,7 @@ var _default = {
|
|
|
519
524
|
}
|
|
520
525
|
});
|
|
521
526
|
if (!(protection.state === 'errored')) {
|
|
522
|
-
_context3.next =
|
|
527
|
+
_context3.next = 15;
|
|
523
528
|
break;
|
|
524
529
|
}
|
|
525
530
|
console.error('Global protection errors:');
|
|
@@ -529,36 +534,36 @@ var _default = {
|
|
|
529
534
|
printSourcesErrors(sourcesErrors);
|
|
530
535
|
}
|
|
531
536
|
throw new Error("Protection failed. For more information visit: ".concat(APP_URL, "."));
|
|
532
|
-
case
|
|
537
|
+
case 15:
|
|
533
538
|
if (!(sourcesErrors.length > 0)) {
|
|
534
|
-
_context3.next =
|
|
539
|
+
_context3.next = 22;
|
|
535
540
|
break;
|
|
536
541
|
}
|
|
537
542
|
if (!protection.bail) {
|
|
538
|
-
_context3.next =
|
|
543
|
+
_context3.next = 21;
|
|
539
544
|
break;
|
|
540
545
|
}
|
|
541
546
|
printSourcesErrors(sourcesErrors);
|
|
542
547
|
throw new Error('Your protection has failed.');
|
|
543
|
-
case
|
|
548
|
+
case 21:
|
|
544
549
|
sourcesErrors.forEach(function (e) {
|
|
545
550
|
return console.warn("Non-fatal error: \"".concat(e.message, "\" in ").concat(e.filename));
|
|
546
551
|
});
|
|
547
|
-
case
|
|
552
|
+
case 22:
|
|
548
553
|
if (debug) {
|
|
549
554
|
console.log('Downloading protection result');
|
|
550
555
|
}
|
|
551
|
-
_context3.next =
|
|
556
|
+
_context3.next = 25;
|
|
552
557
|
return _this2.downloadApplicationProtection(client, protection._id);
|
|
553
|
-
case
|
|
558
|
+
case 25:
|
|
554
559
|
download = _context3.sent;
|
|
555
560
|
errorHandler(download);
|
|
556
561
|
if (debug) {
|
|
557
562
|
console.log('Unzipping files');
|
|
558
563
|
}
|
|
559
|
-
_context3.next =
|
|
564
|
+
_context3.next = 30;
|
|
560
565
|
return (0, _zip.unzip)(download, (filesDest ? "".concat(filesDest).concat(outPrefix) : filesDest) || destCallback, stream);
|
|
561
|
-
case
|
|
566
|
+
case 30:
|
|
562
567
|
if (debug) {
|
|
563
568
|
console.log('Finished unzipping files');
|
|
564
569
|
}
|
|
@@ -566,7 +571,7 @@ var _default = {
|
|
|
566
571
|
console.log(protection._id);
|
|
567
572
|
}
|
|
568
573
|
return _context3.abrupt("return", protection._id);
|
|
569
|
-
case
|
|
574
|
+
case 33:
|
|
570
575
|
case "end":
|
|
571
576
|
return _context3.stop();
|
|
572
577
|
}
|
package/package.json
CHANGED