jscrambler 8.9.3 → 8.9.4
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/CHANGELOG.md +6 -0
- package/dist/index.js +6 -4
- package/package.json +1 -1
package/CHANGELOG.md
CHANGED
package/dist/index.js
CHANGED
|
@@ -493,7 +493,7 @@ var _default = exports.default = {
|
|
|
493
493
|
}
|
|
494
494
|
}
|
|
495
495
|
if (!protectionOptions.numberOfProtections || protectionOptions.numberOfProtections === 1) {
|
|
496
|
-
this.handleApplicationProtectionDownload(client, protection._id, downloadOptions);
|
|
496
|
+
await this.handleApplicationProtectionDownload(client, protection._id, applicationId, downloadOptions);
|
|
497
497
|
}
|
|
498
498
|
return protection._id;
|
|
499
499
|
};
|
|
@@ -514,10 +514,12 @@ var _default = exports.default = {
|
|
|
514
514
|
/**
|
|
515
515
|
* Handle the download, unzipping, and possible deletion of protections
|
|
516
516
|
* @param {object} client
|
|
517
|
-
* @param {string}
|
|
517
|
+
* @param {string} protectionId
|
|
518
|
+
* @param {string} applicationId
|
|
519
|
+
* @param {object} downloadOptions
|
|
518
520
|
* @returns {Promise<object>}
|
|
519
521
|
*/
|
|
520
|
-
async handleApplicationProtectionDownload(client, protectionId, downloadOptions) {
|
|
522
|
+
async handleApplicationProtectionDownload(client, protectionId, applicationId, downloadOptions) {
|
|
521
523
|
const {
|
|
522
524
|
filesDest,
|
|
523
525
|
destCallback,
|
|
@@ -912,7 +914,7 @@ var _default = exports.default = {
|
|
|
912
914
|
} = _ref5;
|
|
913
915
|
seen[_id] = true;
|
|
914
916
|
console.log("[".concat(Object.keys(seen).length, "/").concat(protectionIds.length, "] Protection=").concat(_id, ", state=").concat(state, ", build-time=").concat(Math.round((new Date(finishedAt) - new Date(startedAt)) / 1000), "s"));
|
|
915
|
-
await this.handleApplicationProtectionDownload(client, _id, downloadOptions);
|
|
917
|
+
await this.handleApplicationProtectionDownload(client, _id, applicationId, downloadOptions);
|
|
916
918
|
console.log("Downloaded: ".concat(_id));
|
|
917
919
|
});
|
|
918
920
|
if (ended.length < protectionIds.length) {
|
package/package.json
CHANGED