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 CHANGED
@@ -1,5 +1,11 @@
1
1
  # jscrambler
2
2
 
3
+ ## 8.9.4
4
+
5
+ ### Patch Changes
6
+
7
+ - [5deff47]: Fixed jscrambler cli single protection
8
+
3
9
  ## 8.9.3
4
10
 
5
11
  ### Patch Changes
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} instrumentationId
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
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "jscrambler",
3
3
  "description": "Jscrambler Code Integrity API client.",
4
- "version": "8.9.3",
4
+ "version": "8.9.4",
5
5
  "homepage": "https://github.com/jscrambler/jscrambler",
6
6
  "author": "Jscrambler <support@jscrambler.com>",
7
7
  "repository": {