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.
- package/browser-agent/dist/browser-agent-all.js +17 -7
- package/browser-agent/dist/browser-agent-all.min.js +16 -16
- package/browser-agent/package.json +1 -1
- package/package.json +4 -2
- package/tsOutputs/build-scanner/build-diff-process.js +13 -4
- package/tsOutputs/build-scanner/build-diff-process.js.map +1 -1
- package/tsOutputs/build-scanner/instrumentation/file-instrumenter.js +4 -1
- package/tsOutputs/build-scanner/instrumentation/file-instrumenter.js.map +1 -1
- package/tsOutputs/build-scanner/instrumentation/sync-instrumenter.js +8 -1
- package/tsOutputs/build-scanner/instrumentation/sync-instrumenter.js.map +1 -1
- package/tsOutputs/build-scanner/js_diff/file-signature.js +7 -2
- package/tsOutputs/build-scanner/js_diff/file-signature.js.map +1 -1
- package/tsOutputs/build-scanner/js_diff/files-mapping.js +3 -1
- package/tsOutputs/build-scanner/js_diff/files-mapping.js.map +1 -1
- package/tsOutputs/build-scanner/mappings/ensure-files-handler.service.js +2 -4
- package/tsOutputs/build-scanner/mappings/ensure-files-handler.service.js.map +1 -1
- package/tsOutputs/build-scanner/utils.js +10 -0
- package/tsOutputs/build-scanner/utils.js.map +1 -1
- package/tsOutputs/cli-parse/executors/build-executor.js +43 -8
- package/tsOutputs/cli-parse/executors/build-executor.js.map +1 -1
- package/tsOutputs/common/http/backend-proxy.js +1 -1
- package/tsOutputs/common/http/backend-proxy.js.map +1 -1
- package/tsOutputs/common/http/http-client.js +16 -6
- package/tsOutputs/common/http/http-client.js.map +1 -1
- package/tsOutputs/common/utils/test-utils/mock-server-utils/mock-server-proxy.js +4 -0
- package/tsOutputs/common/utils/test-utils/mock-server-utils/mock-server-proxy.js.map +1 -1
- package/tsOutputs/test-listener/remote-agent.js +8 -5
- 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
|
-
|
|
50713
|
-
|
|
50714
|
-
|
|
50715
|
-
|
|
50716
|
-
|
|
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
|
-
|
|
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
|
};
|