slnodejs 6.1.179 → 6.1.186

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.
Files changed (28) hide show
  1. package/browser-agent/dist/browser-agent-all.js +17 -7
  2. package/browser-agent/dist/browser-agent-all.min.js +16 -16
  3. package/browser-agent/package.json +1 -1
  4. package/package.json +4 -2
  5. package/tsOutputs/build-scanner/build-diff-process.js +13 -4
  6. package/tsOutputs/build-scanner/build-diff-process.js.map +1 -1
  7. package/tsOutputs/build-scanner/instrumentation/file-instrumenter.js +4 -1
  8. package/tsOutputs/build-scanner/instrumentation/file-instrumenter.js.map +1 -1
  9. package/tsOutputs/build-scanner/instrumentation/sync-instrumenter.js +8 -1
  10. package/tsOutputs/build-scanner/instrumentation/sync-instrumenter.js.map +1 -1
  11. package/tsOutputs/build-scanner/js_diff/file-signature.js +7 -2
  12. package/tsOutputs/build-scanner/js_diff/file-signature.js.map +1 -1
  13. package/tsOutputs/build-scanner/js_diff/files-mapping.js +3 -1
  14. package/tsOutputs/build-scanner/js_diff/files-mapping.js.map +1 -1
  15. package/tsOutputs/build-scanner/mappings/ensure-files-handler.service.js +2 -4
  16. package/tsOutputs/build-scanner/mappings/ensure-files-handler.service.js.map +1 -1
  17. package/tsOutputs/build-scanner/utils.js +10 -0
  18. package/tsOutputs/build-scanner/utils.js.map +1 -1
  19. package/tsOutputs/cli-parse/executors/build-executor.js +43 -8
  20. package/tsOutputs/cli-parse/executors/build-executor.js.map +1 -1
  21. package/tsOutputs/common/http/backend-proxy.js +1 -1
  22. package/tsOutputs/common/http/backend-proxy.js.map +1 -1
  23. package/tsOutputs/common/http/http-client.js +16 -6
  24. package/tsOutputs/common/http/http-client.js.map +1 -1
  25. package/tsOutputs/common/utils/test-utils/mock-server-utils/mock-server-proxy.js +4 -0
  26. package/tsOutputs/common/utils/test-utils/mock-server-utils/mock-server-proxy.js.map +1 -1
  27. package/tsOutputs/test-listener/remote-agent.js +8 -5
  28. package/tsOutputs/test-listener/remote-agent.js.map +1 -1
@@ -50178,7 +50178,7 @@ var __generator = (this && this.__generator) || function (thisArg, body) {
50178
50178
  }
50179
50179
  else {
50180
50180
  _this.logger.info('sl-mapping submitted successfully');
50181
- return resolve();
50181
+ return resolve({});
50182
50182
  }
50183
50183
  }, true, contracts_1.ContentType.OCTET_STREAM);
50184
50184
  });
@@ -50709,18 +50709,28 @@ var __extends = (this && this.__extends) || (function () {
50709
50709
  }
50710
50710
  else {
50711
50711
  var errorMessage = "Server returned: " + statusCode + " status code in '" + httpVerb + "' request. Transaction ID:'" + txId + "'.";
50712
- if (body)
50713
- errorMessage += Object.entries(JSON.parse(body)).map(function (_a) {
50714
- var key = _a[0], val = _a[1];
50715
- return "\n\t" + key + ": " + val;
50716
- }).join('');
50712
+ try {
50713
+ if (body)
50714
+ errorMessage += Object.entries(JSON.parse(body)).map(function (_a) {
50715
+ var key = _a[0], val = _a[1];
50716
+ return "\n\t" + key + ": " + val;
50717
+ }).join('');
50718
+ }
50719
+ catch (e) {
50720
+ errorMessage += " Parsing of server response failed, body: " + body + ", request id:'" + requestId + "',error: " + e;
50721
+ }
50717
50722
  err = new Error(errorMessage);
50718
50723
  }
50719
50724
  return callback(err, body, statusCode);
50720
50725
  }
50721
50726
  _this.logger.debug("'" + httpVerb + "' request was completed successfully. Request id:'" + requestId + "'. statusCode: " + requestResponse.statusCode + " body: " + body + ", Transaction ID: " + txId);
50722
50727
  if (body && body.length > 0 && typeof body == 'string') {
50723
- body = JSON.parse(body);
50728
+ try {
50729
+ body = JSON.parse(body);
50730
+ }
50731
+ catch (e) {
50732
+ _this.logger.error("An error occurred parsing the body: [" + body + "], error: " + e);
50733
+ }
50724
50734
  }
50725
50735
  return callback(null, body, requestResponse.statusCode);
50726
50736
  };