slnodejs 6.1.166 → 6.1.167
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 +52 -3
- package/browser-agent/dist/browser-agent-all.min.js +19 -19
- package/browser-agent/package.json +1 -1
- package/package.json +1 -1
- package/tsOutputs/build-scanner/build-diff-process.js +6 -20
- package/tsOutputs/build-scanner/build-diff-process.js.map +1 -1
- package/tsOutputs/build-scanner/js_diff/sl-mapper.js +68 -86
- package/tsOutputs/build-scanner/js_diff/sl-mapper.js.map +1 -1
- package/tsOutputs/build-scanner/mappings/ensure-files-handler.service.js +7 -2
- package/tsOutputs/build-scanner/mappings/ensure-files-handler.service.js.map +1 -1
- package/tsOutputs/build-scanner/mappings/scm-file-fixer.js +13 -4
- package/tsOutputs/build-scanner/mappings/scm-file-fixer.js.map +1 -1
- package/tsOutputs/build-scanner/mappings/source-path-mapper.js +69 -0
- package/tsOutputs/build-scanner/mappings/source-path-mapper.js.map +1 -0
- package/tsOutputs/cli-parse/executors/dry-run/build-mapping-data.js +1 -3
- package/tsOutputs/cli-parse/executors/dry-run/build-mapping-data.js.map +1 -1
- package/tsOutputs/common/constants/sl-env-vars.d.ts +2 -0
- package/tsOutputs/common/constants/sl-env-vars.js +4 -0
- package/tsOutputs/common/constants/sl-env-vars.js.map +1 -1
- package/tsOutputs/common/footprints-process/index.d.ts +1 -0
- package/tsOutputs/common/footprints-process/index.js +41 -0
- package/tsOutputs/common/footprints-process/index.js.map +1 -1
- package/tsOutputs/common/footprints-process-v6/hits-converter.d.ts +9 -0
- package/tsOutputs/common/footprints-process-v6/hits-converter.js +12 -1
- package/tsOutputs/common/footprints-process-v6/hits-converter.js.map +1 -1
- package/tsOutputs/common/footprints-process-v6/index.d.ts +1 -0
- package/tsOutputs/common/footprints-process-v6/index.js +35 -0
- package/tsOutputs/common/footprints-process-v6/index.js.map +1 -1
- package/tsOutputs/common/footprints-process-v6/remote-browser-hits-converter.d.ts +3 -3
- package/tsOutputs/common/footprints-process-v6/remote-browser-hits-converter.js +0 -7
- package/tsOutputs/common/footprints-process-v6/remote-browser-hits-converter.js.map +1 -1
- package/tsOutputs/common/footprints-process-v6/source-map-data.d.ts +3 -1
- package/tsOutputs/common/footprints-process-v6/source-map-data.js +3 -2
- package/tsOutputs/common/footprints-process-v6/source-map-data.js.map +1 -1
- package/tsOutputs/common/http/backend-proxy-interface.d.ts +1 -0
- package/tsOutputs/common/http/dry-run-proxy.js +44 -0
- package/tsOutputs/common/http/dry-run-proxy.js.map +1 -1
- package/tsOutputs/test-listener/agent.d.ts +3 -2
- package/tsOutputs/test-listener/agent.js +14 -7
- package/tsOutputs/test-listener/agent.js.map +1 -1
- package/tsOutputs/test-listener/api.js +3 -1
- package/tsOutputs/test-listener/api.js.map +1 -1
- package/tsOutputs/test-listener/bootstrap.js +1 -0
- package/tsOutputs/test-listener/bootstrap.js.map +1 -1
|
@@ -47731,6 +47731,9 @@ var __extends = (this && this.__extends) || (function () {
|
|
|
47731
47731
|
SlEnvVars.getDisableHookDependencyGuard = function () {
|
|
47732
47732
|
return parsing_utils_1.ParsingUtils.parseBoolean(SlEnvVars.DISABLE_HOOK_DEPENDENCY_GUARD);
|
|
47733
47733
|
};
|
|
47734
|
+
SlEnvVars.useSlMapping = function () {
|
|
47735
|
+
return parsing_utils_1.ParsingUtils.parseBoolean(SlEnvVars.USE_SL_MAPPING);
|
|
47736
|
+
};
|
|
47734
47737
|
var _a;
|
|
47735
47738
|
SlEnvVars.HTTP_TIMEOUT = 'SL_httpTimeout';
|
|
47736
47739
|
SlEnvVars.HTTP_MAX_ATTEMPTS = 'SL_HttpMaxAttempts';
|
|
@@ -47748,6 +47751,7 @@ var __extends = (this && this.__extends) || (function () {
|
|
|
47748
47751
|
SlEnvVars.FOOTPRINTS_BUFFER_THRESHOLD_MB = 'SL_footprintsBufferThresholdMb';
|
|
47749
47752
|
SlEnvVars.BLOCK_BROWSER_HTTP_TRAFFIC = 'SL_blockBrowserHttpTraffic';
|
|
47750
47753
|
SlEnvVars.DISABLE_HOOK_DEPENDENCY_GUARD = 'SL_disableHookDependencyGuard';
|
|
47754
|
+
SlEnvVars.USE_SL_MAPPING = 'SL_useSlMapping';
|
|
47751
47755
|
SlEnvVars.CIA = (_a = (function () {
|
|
47752
47756
|
function class_1() {
|
|
47753
47757
|
}
|
|
@@ -49372,6 +49376,7 @@ var __extends = (this && this.__extends) || (function () {
|
|
|
49372
49376
|
var HitsConverter = (function () {
|
|
49373
49377
|
function HitsConverter(relativePathResolver, sourceMapData, projectRoot, logger) {
|
|
49374
49378
|
this.conversionErrors = [];
|
|
49379
|
+
this._slMapping = {};
|
|
49375
49380
|
this.relativePathResolver = relativePathResolver;
|
|
49376
49381
|
this.sourceMapData = sourceMapData;
|
|
49377
49382
|
this.projectRoot = projectRoot;
|
|
@@ -49398,6 +49403,16 @@ var __extends = (this && this.__extends) || (function () {
|
|
|
49398
49403
|
methods: methodUniqueIds
|
|
49399
49404
|
};
|
|
49400
49405
|
};
|
|
49406
|
+
Object.defineProperty(HitsConverter.prototype, "slMapping", {
|
|
49407
|
+
get: function () {
|
|
49408
|
+
return this._slMapping;
|
|
49409
|
+
},
|
|
49410
|
+
set: function (value) {
|
|
49411
|
+
this._slMapping = value;
|
|
49412
|
+
},
|
|
49413
|
+
enumerable: false,
|
|
49414
|
+
configurable: true
|
|
49415
|
+
});
|
|
49401
49416
|
HitsConverter.prototype.createMethodIds = function (hitFunctions, relativePath, absolutePath) {
|
|
49402
49417
|
var _this = this;
|
|
49403
49418
|
var methodIds = [];
|
|
@@ -49476,7 +49491,7 @@ var __extends = (this && this.__extends) || (function () {
|
|
|
49476
49491
|
return uniqueId;
|
|
49477
49492
|
};
|
|
49478
49493
|
HitsConverter.prototype.resolveIdParts = function (startLoc, relativePath, absolutePath) {
|
|
49479
|
-
var sourcePosition = this.sourceMapData.getSourcePosition(relativePath, absolutePath, startLoc, this.projectRoot);
|
|
49494
|
+
var sourcePosition = this.sourceMapData.getSourcePosition(relativePath, absolutePath, startLoc, this.projectRoot, this.slMapping);
|
|
49480
49495
|
return sourcePosition ? sourcePosition : { relativePath: relativePath, start: startLoc, absolutePath: absolutePath };
|
|
49481
49496
|
};
|
|
49482
49497
|
HitsConverter.prototype.buildMethodUniqueId = function (parts) {
|
|
@@ -49499,6 +49514,17 @@ var __extends = (this && this.__extends) || (function () {
|
|
|
49499
49514
|
});
|
|
49500
49515
|
|
|
49501
49516
|
},{"../agent-events/cockpit-notifier":294,"../constants/sl-env-vars":305,"../coverage-elements/new-id-resolver":309,"../coverage-elements/original-module-loader":310,"./hits-collector":318}],320:[function(require,module,exports){
|
|
49517
|
+
var __assign = (this && this.__assign) || function () {
|
|
49518
|
+
__assign = Object.assign || function(t) {
|
|
49519
|
+
for (var s, i = 1, n = arguments.length; i < n; i++) {
|
|
49520
|
+
s = arguments[i];
|
|
49521
|
+
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))
|
|
49522
|
+
t[p] = s[p];
|
|
49523
|
+
}
|
|
49524
|
+
return t;
|
|
49525
|
+
};
|
|
49526
|
+
return __assign.apply(this, arguments);
|
|
49527
|
+
};
|
|
49502
49528
|
var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
|
|
49503
49529
|
function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
|
|
49504
49530
|
return new (P || (P = Promise))(function (resolve, reject) {
|
|
@@ -49541,7 +49567,7 @@ var __generator = (this && this.__generator) || function (thisArg, body) {
|
|
|
49541
49567
|
if (v !== undefined) module.exports = v;
|
|
49542
49568
|
}
|
|
49543
49569
|
else if (typeof define === "function" && define.amd) {
|
|
49544
|
-
define(["require", "exports", "./footprints-buffer", "../footprints-process/collection-interval", "../state-tracker", "../agent-events/cockpit-notifier", "../agent-events/agent-events-conracts"], factory);
|
|
49570
|
+
define(["require", "exports", "./footprints-buffer", "../footprints-process/collection-interval", "../state-tracker", "../agent-events/cockpit-notifier", "../agent-events/agent-events-conracts", "../constants/sl-env-vars"], factory);
|
|
49545
49571
|
}
|
|
49546
49572
|
})(function (require, exports) {
|
|
49547
49573
|
"use strict";
|
|
@@ -49552,6 +49578,7 @@ var __generator = (this && this.__generator) || function (thisArg, body) {
|
|
|
49552
49578
|
var state_tracker_1 = require("../state-tracker");
|
|
49553
49579
|
var cockpit_notifier_1 = require("../agent-events/cockpit-notifier");
|
|
49554
49580
|
var agent_events_conracts_1 = require("../agent-events/agent-events-conracts");
|
|
49581
|
+
var sl_env_vars_1 = require("../constants/sl-env-vars");
|
|
49555
49582
|
var FootprintsProcess = (function () {
|
|
49556
49583
|
function FootprintsProcess(cfg, sendToServerWatchdog, keepaliveWatchdog, logger, hitsCollector, hitsConverter, footprintsBuffer, backendProxy, stateTracker) {
|
|
49557
49584
|
this.isRunning = false;
|
|
@@ -49761,13 +49788,35 @@ var __generator = (this && this.__generator) || function (thisArg, body) {
|
|
|
49761
49788
|
FootprintsProcess.prototype.hasOngoingRequests = function () {
|
|
49762
49789
|
return this.ongoingRequestsCounter > 0;
|
|
49763
49790
|
};
|
|
49791
|
+
FootprintsProcess.prototype.loadSlMapping = function () {
|
|
49792
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
49793
|
+
var mappingsArr, flatted;
|
|
49794
|
+
return __generator(this, function (_a) {
|
|
49795
|
+
switch (_a.label) {
|
|
49796
|
+
case 0:
|
|
49797
|
+
if (!sl_env_vars_1.SlEnvVars.useSlMapping()) {
|
|
49798
|
+
return [2];
|
|
49799
|
+
}
|
|
49800
|
+
return [4, this.backendProxy.getBlobsAsJson(this.cfg.buildSessionId.value)];
|
|
49801
|
+
case 1:
|
|
49802
|
+
mappingsArr = _a.sent();
|
|
49803
|
+
flatted = {};
|
|
49804
|
+
mappingsArr.forEach(function (mapping) {
|
|
49805
|
+
flatted = __assign(__assign({}, flatted), mapping);
|
|
49806
|
+
});
|
|
49807
|
+
this.hitsConverter.slMapping = flatted;
|
|
49808
|
+
return [2];
|
|
49809
|
+
}
|
|
49810
|
+
});
|
|
49811
|
+
});
|
|
49812
|
+
};
|
|
49764
49813
|
FootprintsProcess.ALARM_FIRED = 'alarm';
|
|
49765
49814
|
return FootprintsProcess;
|
|
49766
49815
|
}());
|
|
49767
49816
|
exports.FootprintsProcess = FootprintsProcess;
|
|
49768
49817
|
});
|
|
49769
49818
|
|
|
49770
|
-
},{"../agent-events/agent-events-conracts":289,"../agent-events/cockpit-notifier":294,"../footprints-process/collection-interval":323,"../state-tracker":332,"./footprints-buffer":317}],321:[function(require,module,exports){
|
|
49819
|
+
},{"../agent-events/agent-events-conracts":289,"../agent-events/cockpit-notifier":294,"../constants/sl-env-vars":305,"../footprints-process/collection-interval":323,"../state-tracker":332,"./footprints-buffer":317}],321:[function(require,module,exports){
|
|
49771
49820
|
(function (factory) {
|
|
49772
49821
|
if (typeof module === "object" && typeof module.exports === "object") {
|
|
49773
49822
|
var v = factory(require, exports);
|