slnodejs 6.1.429 → 6.1.451
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 +265 -418
- package/browser-agent/dist/browser-agent-all.min.js +3 -3
- package/browser-agent/package.json +1 -1
- package/package.json +1 -1
- package/tsOutputs/build-scanner/build-diff-process.js +4 -4
- package/tsOutputs/build-scanner/build-diff-process.js.map +1 -1
- package/tsOutputs/build-scanner/mappings/file-path-fixer.js +6 -0
- package/tsOutputs/build-scanner/mappings/file-path-fixer.js.map +1 -1
- package/tsOutputs/common/footprints-process-v6/footprints-buffer.d.ts +1 -1
- package/tsOutputs/common/footprints-process-v6/footprints-buffer.js.map +1 -1
- package/tsOutputs/common/footprints-process-v6/index.d.ts +1 -0
- package/tsOutputs/common/footprints-process-v6/index.js +6 -0
- package/tsOutputs/common/footprints-process-v6/index.js.map +1 -1
- package/tsOutputs/common/scm/scm-factory.js +7 -7
- package/tsOutputs/common/scm/scm-factory.js.map +1 -1
- package/tsOutputs/common/utils/validation-utils.d.ts +4 -0
- package/tsOutputs/common/utils/validation-utils.js +6 -0
- package/tsOutputs/common/utils/validation-utils.js.map +1 -1
|
@@ -27169,6 +27169,21 @@ arguments[4][160][0].apply(exports,arguments)
|
|
|
27169
27169
|
else {
|
|
27170
27170
|
browserAgent.createInstance(window[SEALIGHTS_WINDOW_OBJECT]);
|
|
27171
27171
|
}
|
|
27172
|
+
let enableOpenTelemetry = false;
|
|
27173
|
+
Object.keys(window === null || window === void 0 ? void 0 : window[SEALIGHTS_WINDOW_OBJECT].components).forEach(instanceBSID => {
|
|
27174
|
+
if (window === null || window === void 0 ? void 0 : window[SEALIGHTS_WINDOW_OBJECT].components[instanceBSID].enableOpenTelemetry) {
|
|
27175
|
+
return enableOpenTelemetry = true;
|
|
27176
|
+
}
|
|
27177
|
+
});
|
|
27178
|
+
let allowCORS = undefined;
|
|
27179
|
+
Object.keys(window === null || window === void 0 ? void 0 : window[SEALIGHTS_WINDOW_OBJECT].components).forEach(instanceBSID => {
|
|
27180
|
+
const instanceCORSConfig = window === null || window === void 0 ? void 0 : window[SEALIGHTS_WINDOW_OBJECT].components[instanceBSID].allowCORS;
|
|
27181
|
+
if (instanceCORSConfig === null || instanceCORSConfig === void 0 ? void 0 : instanceCORSConfig.length) {
|
|
27182
|
+
return allowCORS = instanceCORSConfig;
|
|
27183
|
+
}
|
|
27184
|
+
});
|
|
27185
|
+
const logger = log_factory_1.LogFactory.createLogger('EventsBridgeLogger');
|
|
27186
|
+
(0, events_bridge_1.registerEventsBridge)(logger, enableOpenTelemetry, true, allowCORS);
|
|
27172
27187
|
}
|
|
27173
27188
|
else if (window) {
|
|
27174
27189
|
window[SEALIGHTS_WINDOW_OBJECT] = {
|
|
@@ -27189,14 +27204,14 @@ arguments[4][160][0].apply(exports,arguments)
|
|
|
27189
27204
|
}
|
|
27190
27205
|
});
|
|
27191
27206
|
|
|
27192
|
-
},{"./lib/browser-agent":
|
|
27207
|
+
},{"./lib/browser-agent":221,"./lib/config":227,"./lib/configuration-override":229,"./lib/events-bridge":241,"./lib/feature-detection":244,"./lib/logger/log-factory":249}],218:[function(require,module,exports){
|
|
27193
27208
|
(function (factory) {
|
|
27194
27209
|
if (typeof module === "object" && typeof module.exports === "object") {
|
|
27195
27210
|
var v = factory(require, exports);
|
|
27196
27211
|
if (v !== undefined) module.exports = v;
|
|
27197
27212
|
}
|
|
27198
27213
|
else if (typeof define === "function" && define.amd) {
|
|
27199
|
-
define(["require", "exports", "./state-tracker", "../../common/state-tracker-fpv6", "../../common/no-op-state-tracker", "./test-state-helper", "./entities/environment-data", "./services/http/http-client", "./services/json/json-client", "./istanbul-to-footprints-convertor", "./istanbul-to-footprints-convertor-v3", "./services/light-backend-proxy", "./footprints-queue-sender", "./watchdog", "./code-coverage-manager", "./
|
|
27214
|
+
define(["require", "exports", "./state-tracker", "../../common/state-tracker-fpv6", "../../common/no-op-state-tracker", "./test-state-helper", "./entities/environment-data", "./services/http/http-client", "./services/json/json-client", "./istanbul-to-footprints-convertor", "./istanbul-to-footprints-convertor-v3", "./services/light-backend-proxy", "./footprints-queue-sender", "./watchdog", "./code-coverage-manager", "./queues/footprints-items-queue", "./configuration-manager", "./logger/log-factory", "./basic-uuid-generator", "./window-timers-wrapper", "./color-cookie-handler", "./queues/queue", "./delegate", "./services/json/json-client-adapter", "./browser-events-process", "./browser-hits-converter", "./browser-agent-instance-fpv6", "./browser-hits-collector", "./sl-mapping-loader", "./services/json/noop-json-client", "../../common/agent-instance-data", "../../common/agent-events/agent-events-contracts", "../../common/agent-events/cockpit-notifier", "../../common/http/backend-proxy", "../../common/config-process/config-loader", "../../common/footprints-process-v6/relative-path-resolver", "../../common/footprints-process-v6/collector-footprints-buffer", "../../common/footprints-process-v6/index", "../../common/footprints-process-v6/collector-footprints-process", "../../common/config-process", "../../common/config-process/no-op-config-process", "../../common/system-date", "../../common/footprints-process-v6/browser-footprints-buffer"], factory);
|
|
27200
27215
|
}
|
|
27201
27216
|
})(function (require, exports) {
|
|
27202
27217
|
"use strict";
|
|
@@ -27215,7 +27230,6 @@ arguments[4][160][0].apply(exports,arguments)
|
|
|
27215
27230
|
const footprints_queue_sender_1 = require("./footprints-queue-sender");
|
|
27216
27231
|
const watchdog_1 = require("./watchdog");
|
|
27217
27232
|
const code_coverage_manager_1 = require("./code-coverage-manager");
|
|
27218
|
-
const browser_agent_instance_1 = require("./browser-agent-instance");
|
|
27219
27233
|
const footprints_items_queue_1 = require("./queues/footprints-items-queue");
|
|
27220
27234
|
const configuration_manager_1 = require("./configuration-manager");
|
|
27221
27235
|
const log_factory_1 = require("./logger/log-factory");
|
|
@@ -27266,13 +27280,7 @@ arguments[4][160][0].apply(exports,arguments)
|
|
|
27266
27280
|
if (basicConfiguration.collectorUrl) {
|
|
27267
27281
|
return this.createFootprintsOnlyInstance(window, featureDetection, configuration, agentInstanceData, logger, agentConfiguration, backendProxy, eventProcess, colorCookieHandler);
|
|
27268
27282
|
}
|
|
27269
|
-
|
|
27270
|
-
return this.createBrowserAgentInstanceFPV6(window, featureDetection, configuration, agentInstanceData, logger, agentConfiguration, backendProxy, eventProcess, colorCookieHandler);
|
|
27271
|
-
}
|
|
27272
|
-
const stateTracker = AgentFactory.createStateTracker(configuration, window, featureDetection, agentInstanceData);
|
|
27273
|
-
const footprintsQueueSender = AgentFactory.createFootprintsQueueSender(window, featureDetection, configuration, stateTracker, agentInstanceData, backendProxy);
|
|
27274
|
-
const agent = new browser_agent_instance_1.BrowserAgentInstance(logger, footprintsQueueSender, configuration, window, colorCookieHandler, stateTracker, eventProcess, agentConfiguration);
|
|
27275
|
-
return agent;
|
|
27283
|
+
return this.createBrowserAgentInstanceFPV6(window, featureDetection, configuration, agentInstanceData, logger, agentConfiguration, backendProxy, eventProcess, colorCookieHandler);
|
|
27276
27284
|
}
|
|
27277
27285
|
static notifyAgentStart(agentConfiguration, agentInstanceData, logger, backendProxy, basicConfiguration) {
|
|
27278
27286
|
if (basicConfiguration.collectorUrl) {
|
|
@@ -27473,7 +27481,7 @@ arguments[4][160][0].apply(exports,arguments)
|
|
|
27473
27481
|
exports.AgentFactory = AgentFactory;
|
|
27474
27482
|
});
|
|
27475
27483
|
|
|
27476
|
-
},{"../../common/agent-events/agent-events-contracts":
|
|
27484
|
+
},{"../../common/agent-events/agent-events-contracts":267,"../../common/agent-events/cockpit-notifier":274,"../../common/agent-instance-data":280,"../../common/config-process":284,"../../common/config-process/config-loader":281,"../../common/config-process/no-op-config-process":285,"../../common/footprints-process-v6/browser-footprints-buffer":297,"../../common/footprints-process-v6/collector-footprints-buffer":299,"../../common/footprints-process-v6/collector-footprints-process":300,"../../common/footprints-process-v6/index":304,"../../common/footprints-process-v6/relative-path-resolver":306,"../../common/http/backend-proxy":308,"../../common/no-op-state-tracker":314,"../../common/state-tracker-fpv6":316,"../../common/system-date":318,"./basic-uuid-generator":219,"./browser-agent-instance-fpv6":220,"./browser-events-process":222,"./browser-hits-collector":223,"./browser-hits-converter":224,"./code-coverage-manager":225,"./color-cookie-handler":226,"./configuration-manager":228,"./delegate":231,"./entities/environment-data":234,"./footprints-queue-sender":245,"./istanbul-to-footprints-convertor":247,"./istanbul-to-footprints-convertor-v3":246,"./logger/log-factory":249,"./queues/footprints-items-queue":251,"./queues/queue":252,"./services/http/http-client":253,"./services/json/json-client":257,"./services/json/json-client-adapter":256,"./services/json/noop-json-client":258,"./services/light-backend-proxy":259,"./sl-mapping-loader":260,"./state-tracker":261,"./test-state-helper":262,"./watchdog":264,"./window-timers-wrapper":265}],219:[function(require,module,exports){
|
|
27477
27485
|
(function (factory) {
|
|
27478
27486
|
if (typeof module === "object" && typeof module.exports === "object") {
|
|
27479
27487
|
var v = factory(require, exports);
|
|
@@ -27514,23 +27522,41 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, ge
|
|
|
27514
27522
|
if (v !== undefined) module.exports = v;
|
|
27515
27523
|
}
|
|
27516
27524
|
else if (typeof define === "function" && define.amd) {
|
|
27517
|
-
define(["require", "exports", "./
|
|
27525
|
+
define(["require", "exports", "./feature-detection", "../../common/http/sl-routes", "./config", "./basic-uuid-generator", "../../common/agent-events/cockpit-notifier"], factory);
|
|
27518
27526
|
}
|
|
27519
27527
|
})(function (require, exports) {
|
|
27520
27528
|
"use strict";
|
|
27521
27529
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
27522
27530
|
exports.BrowserAgentInstanceFpv6 = void 0;
|
|
27523
|
-
const
|
|
27524
|
-
|
|
27531
|
+
const feature_detection_1 = require("./feature-detection");
|
|
27532
|
+
const sl_routes_1 = require("../../common/http/sl-routes");
|
|
27533
|
+
const config_1 = require("./config");
|
|
27534
|
+
const basic_uuid_generator_1 = require("./basic-uuid-generator");
|
|
27535
|
+
const cockpit_notifier_1 = require("../../common/agent-events/cockpit-notifier");
|
|
27536
|
+
class BrowserAgentInstanceFpv6 {
|
|
27525
27537
|
constructor(logger, footprintsProcess, configuration, window, colorCookieHandler, stateTracker, eventsProcess, agentConfig, flushFootprintsWatchdog, slMappingLoader) {
|
|
27526
|
-
|
|
27538
|
+
this.logger = logger;
|
|
27539
|
+
this.configuration = configuration;
|
|
27540
|
+
this.window = window;
|
|
27541
|
+
this.stateTracker = stateTracker;
|
|
27542
|
+
this.eventsProcess = eventsProcess;
|
|
27543
|
+
this._isStarted = false;
|
|
27544
|
+
if (logger == null)
|
|
27545
|
+
throw new Error('\'logger\' cannot be null or undefined');
|
|
27546
|
+
if (configuration == null)
|
|
27547
|
+
throw new Error('\'configuration\' cannot be null or undefined');
|
|
27548
|
+
if (window == null)
|
|
27549
|
+
throw new Error('\'window\' cannot be null or undefined');
|
|
27550
|
+
if (eventsProcess == null)
|
|
27551
|
+
throw new Error('\'eventsProcess\' cannot be null or undefined');
|
|
27552
|
+
if (agentConfig == null)
|
|
27553
|
+
throw new Error('\'agentConfig\' cannot be null or undefined');
|
|
27554
|
+
logger.info('Sealights ' + config_1.SL_AGENT_TYPE + ' version ' + config_1.SL_AGENT_VERSION + ' has been loaded');
|
|
27527
27555
|
this.footprintsProcess = footprintsProcess;
|
|
27528
27556
|
this.flushFootprintsWatchdog = flushFootprintsWatchdog;
|
|
27529
27557
|
this.slMappingLoader = slMappingLoader;
|
|
27530
27558
|
this.stateTracker.on('test_identifier_changed', this.footprintsProcess.handleTestIdChanged.bind(this.footprintsProcess));
|
|
27531
27559
|
}
|
|
27532
|
-
delegateEvents() {
|
|
27533
|
-
}
|
|
27534
27560
|
startFootprintsProcess() {
|
|
27535
27561
|
this.flushFootprintsWatchdog.addOnAlarmListener(this.footprintsProcess.flushCurrentFootprints.bind(this.footprintsProcess));
|
|
27536
27562
|
this.flushFootprintsWatchdog.start();
|
|
@@ -27560,89 +27586,35 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, ge
|
|
|
27560
27586
|
}
|
|
27561
27587
|
});
|
|
27562
27588
|
}
|
|
27563
|
-
}
|
|
27564
|
-
exports.BrowserAgentInstanceFpv6 = BrowserAgentInstanceFpv6;
|
|
27565
|
-
});
|
|
27566
|
-
|
|
27567
|
-
},{"./browser-agent-instance":221}],221:[function(require,module,exports){
|
|
27568
|
-
var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
|
|
27569
|
-
function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
|
|
27570
|
-
return new (P || (P = Promise))(function (resolve, reject) {
|
|
27571
|
-
function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
|
|
27572
|
-
function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
|
|
27573
|
-
function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
|
|
27574
|
-
step((generator = generator.apply(thisArg, _arguments || [])).next());
|
|
27575
|
-
});
|
|
27576
|
-
};
|
|
27577
|
-
(function (factory) {
|
|
27578
|
-
if (typeof module === "object" && typeof module.exports === "object") {
|
|
27579
|
-
var v = factory(require, exports);
|
|
27580
|
-
if (v !== undefined) module.exports = v;
|
|
27581
|
-
}
|
|
27582
|
-
else if (typeof define === "function" && define.amd) {
|
|
27583
|
-
define(["require", "exports", "./config", "./karma-handler", "./basic-uuid-generator", "../../common/agent-events/cockpit-notifier"], factory);
|
|
27584
|
-
}
|
|
27585
|
-
})(function (require, exports) {
|
|
27586
|
-
"use strict";
|
|
27587
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
27588
|
-
exports.BrowserAgentInstance = void 0;
|
|
27589
|
-
const config_1 = require("./config");
|
|
27590
|
-
const karma_handler_1 = require("./karma-handler");
|
|
27591
|
-
const basic_uuid_generator_1 = require("./basic-uuid-generator");
|
|
27592
|
-
const cockpit_notifier_1 = require("../../common/agent-events/cockpit-notifier");
|
|
27593
|
-
class BrowserAgentInstance {
|
|
27594
|
-
constructor(logger, footprintsQueueSender, configuration, window, colorCookieHandler, stateTracker, eventsProcess, agentConfig) {
|
|
27595
|
-
this.logger = logger;
|
|
27596
|
-
this.footprintsQueueSender = footprintsQueueSender;
|
|
27597
|
-
this.configuration = configuration;
|
|
27598
|
-
this.window = window;
|
|
27599
|
-
this.colorCookieHandler = colorCookieHandler;
|
|
27600
|
-
this.stateTracker = stateTracker;
|
|
27601
|
-
this.eventsProcess = eventsProcess;
|
|
27602
|
-
this.agentConfig = agentConfig;
|
|
27603
|
-
this._isStarted = false;
|
|
27604
|
-
if (logger == null)
|
|
27605
|
-
throw new Error('\'logger\' cannot be null or undefined');
|
|
27606
|
-
if (configuration == null)
|
|
27607
|
-
throw new Error('\'configuration\' cannot be null or undefined');
|
|
27608
|
-
if (window == null)
|
|
27609
|
-
throw new Error('\'window\' cannot be null or undefined');
|
|
27610
|
-
if (eventsProcess == null)
|
|
27611
|
-
throw new Error('\'eventsProcess\' cannot be null or undefined');
|
|
27612
|
-
if (agentConfig == null)
|
|
27613
|
-
throw new Error('\'agentConfig\' cannot be null or undefined');
|
|
27614
|
-
logger.info('Sealights ' + config_1.SL_AGENT_TYPE + ' version ' + config_1.SL_AGENT_VERSION + ' has been loaded');
|
|
27615
|
-
this.delegateEvents();
|
|
27616
|
-
}
|
|
27617
|
-
delegateEvents(footprintsProcess) {
|
|
27618
|
-
this.stateTracker.addOnColorChangedListener(() => {
|
|
27619
|
-
const color = this.stateTracker.getCurrentColor();
|
|
27620
|
-
this.colorCookieHandler.handleColorChange(color);
|
|
27621
|
-
});
|
|
27622
|
-
}
|
|
27623
27589
|
static getExecutionId() {
|
|
27624
|
-
if (!
|
|
27590
|
+
if (!BrowserAgentInstanceFpv6.executionId) {
|
|
27625
27591
|
const execId = basic_uuid_generator_1.BasicUuidGenerator.createUuid();
|
|
27626
|
-
|
|
27592
|
+
BrowserAgentInstanceFpv6.executionId = execId;
|
|
27627
27593
|
}
|
|
27628
|
-
return
|
|
27594
|
+
return BrowserAgentInstanceFpv6.executionId;
|
|
27629
27595
|
}
|
|
27630
|
-
|
|
27631
|
-
this
|
|
27632
|
-
|
|
27633
|
-
|
|
27634
|
-
|
|
27635
|
-
|
|
27636
|
-
|
|
27637
|
-
|
|
27638
|
-
|
|
27639
|
-
}
|
|
27640
|
-
this.
|
|
27641
|
-
this.
|
|
27642
|
-
|
|
27596
|
+
registerShutdownHook() {
|
|
27597
|
+
const context = this;
|
|
27598
|
+
const oldUnload = this.window.onunload;
|
|
27599
|
+
this.window.onunload = function () {
|
|
27600
|
+
if (oldUnload) {
|
|
27601
|
+
oldUnload.call(arguments);
|
|
27602
|
+
}
|
|
27603
|
+
context.beaconSendAllFootprints();
|
|
27604
|
+
context.stop();
|
|
27605
|
+
};
|
|
27606
|
+
const oldBeforeUnload = this.window.onbeforeunload;
|
|
27607
|
+
this.window.onbeforeunload = function () {
|
|
27608
|
+
if (oldBeforeUnload) {
|
|
27609
|
+
oldBeforeUnload.call(arguments);
|
|
27610
|
+
}
|
|
27611
|
+
context.beaconSendAllFootprints();
|
|
27612
|
+
context.stop();
|
|
27613
|
+
};
|
|
27643
27614
|
}
|
|
27644
|
-
|
|
27645
|
-
this.
|
|
27615
|
+
setCurrentTestIdentifier(testIdentifier) {
|
|
27616
|
+
this.logger.info('Agent is setting current test identifier. testIdentifier:\'' + testIdentifier + '\'.');
|
|
27617
|
+
this.stateTracker.setCurrentTestIdentifier(testIdentifier);
|
|
27646
27618
|
}
|
|
27647
27619
|
stop() {
|
|
27648
27620
|
return __awaiter(this, void 0, void 0, function* () {
|
|
@@ -27655,59 +27627,53 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, ge
|
|
|
27655
27627
|
this._isStarted = false;
|
|
27656
27628
|
});
|
|
27657
27629
|
}
|
|
27658
|
-
|
|
27659
|
-
this.
|
|
27660
|
-
|
|
27661
|
-
|
|
27662
|
-
this.
|
|
27663
|
-
|
|
27664
|
-
}
|
|
27665
|
-
endTest() {
|
|
27666
|
-
this.logger.info('Test \'' + this.stateTracker.getCurrentTestIdentifier() + '\' ended, sending remaining footprints');
|
|
27667
|
-
this.submitFootprints();
|
|
27668
|
-
this.stateTracker.setCurrentTestIdentifier(null);
|
|
27669
|
-
}
|
|
27670
|
-
submitFootprints() {
|
|
27671
|
-
this.footprintsQueueSender.sendAll();
|
|
27672
|
-
}
|
|
27673
|
-
submitFootprintsSync() {
|
|
27674
|
-
try {
|
|
27675
|
-
this.footprintsQueueSender.sendAllSync();
|
|
27676
|
-
}
|
|
27677
|
-
catch (e) {
|
|
27678
|
-
this.logger.error(`Failed to submit footprint sync '${e.message}'`);
|
|
27630
|
+
start() {
|
|
27631
|
+
if (this._isStarted)
|
|
27632
|
+
return;
|
|
27633
|
+
this.logger.info('Agent is starting. registerShutdownHook:' + this.configuration.registerShutdownHook);
|
|
27634
|
+
if (this.configuration.registerShutdownHook) {
|
|
27635
|
+
this.registerShutdownHook();
|
|
27679
27636
|
}
|
|
27637
|
+
this.eventsProcess.start();
|
|
27638
|
+
this.startFootprintsProcess();
|
|
27639
|
+
this._isStarted = true;
|
|
27680
27640
|
}
|
|
27681
|
-
|
|
27682
|
-
return this.
|
|
27641
|
+
getInstanceBSID() {
|
|
27642
|
+
return this.configuration.buildSessionId;
|
|
27683
27643
|
}
|
|
27684
|
-
|
|
27685
|
-
|
|
27686
|
-
|
|
27687
|
-
|
|
27688
|
-
if (
|
|
27689
|
-
|
|
27644
|
+
getAllRemainingFootprints() {
|
|
27645
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
27646
|
+
let footprintsData = undefined;
|
|
27647
|
+
const packet = yield this.getCurrentFootprints();
|
|
27648
|
+
if (typeof packet === 'object' && packet !== null && Object.keys(packet).length) {
|
|
27649
|
+
footprintsData = {
|
|
27650
|
+
bsid: this.getInstanceBSID(),
|
|
27651
|
+
packet: packet
|
|
27652
|
+
};
|
|
27690
27653
|
}
|
|
27691
|
-
|
|
27692
|
-
};
|
|
27693
|
-
|
|
27694
|
-
|
|
27695
|
-
|
|
27696
|
-
|
|
27654
|
+
return footprintsData;
|
|
27655
|
+
});
|
|
27656
|
+
}
|
|
27657
|
+
beaconSendAllFootprints() {
|
|
27658
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
27659
|
+
const featureDetection = new feature_detection_1.FeatureDetection(this.window);
|
|
27660
|
+
const footprintsData = yield this.getAllRemainingFootprints();
|
|
27661
|
+
if (featureDetection.hasBeaconAPI() && footprintsData) {
|
|
27662
|
+
const url = sl_routes_1.SLRoutes.footprintsToCollector(footprintsData.bsid);
|
|
27663
|
+
this.window.navigator.sendBeacon(url, JSON.stringify(footprintsData.packet));
|
|
27697
27664
|
}
|
|
27698
|
-
|
|
27699
|
-
|
|
27700
|
-
|
|
27701
|
-
|
|
27702
|
-
|
|
27703
|
-
|
|
27704
|
-
}
|
|
27665
|
+
});
|
|
27666
|
+
}
|
|
27667
|
+
getCurrentFootprints() {
|
|
27668
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
27669
|
+
return yield this.footprintsProcess.getBufferPacket();
|
|
27670
|
+
});
|
|
27705
27671
|
}
|
|
27706
27672
|
}
|
|
27707
|
-
exports.
|
|
27673
|
+
exports.BrowserAgentInstanceFpv6 = BrowserAgentInstanceFpv6;
|
|
27708
27674
|
});
|
|
27709
27675
|
|
|
27710
|
-
},{"../../common/agent-events/cockpit-notifier":
|
|
27676
|
+
},{"../../common/agent-events/cockpit-notifier":274,"../../common/http/sl-routes":313,"./basic-uuid-generator":219,"./config":227,"./feature-detection":244}],221:[function(require,module,exports){
|
|
27711
27677
|
var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
|
|
27712
27678
|
function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
|
|
27713
27679
|
return new (P || (P = Promise))(function (resolve, reject) {
|
|
@@ -27723,7 +27689,7 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, ge
|
|
|
27723
27689
|
if (v !== undefined) module.exports = v;
|
|
27724
27690
|
}
|
|
27725
27691
|
else if (typeof define === "function" && define.amd) {
|
|
27726
|
-
define(["require", "exports", "./agent-factory", "./logger/log-factory", "./events-bridge
|
|
27692
|
+
define(["require", "exports", "./agent-factory", "./logger/log-factory", "./events-bridge/context-message-manager"], factory);
|
|
27727
27693
|
}
|
|
27728
27694
|
})(function (require, exports) {
|
|
27729
27695
|
"use strict";
|
|
@@ -27731,7 +27697,6 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, ge
|
|
|
27731
27697
|
exports.BrowserAgent = void 0;
|
|
27732
27698
|
const agent_factory_1 = require("./agent-factory");
|
|
27733
27699
|
const log_factory_1 = require("./logger/log-factory");
|
|
27734
|
-
const events_bridge_1 = require("./events-bridge");
|
|
27735
27700
|
const context_message_manager_1 = require("./events-bridge/context-message-manager");
|
|
27736
27701
|
class BrowserAgent {
|
|
27737
27702
|
constructor(window, featureDetection) {
|
|
@@ -27753,8 +27718,6 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, ge
|
|
|
27753
27718
|
try {
|
|
27754
27719
|
this.instanceAddedForBsid[configuration.buildSessionId] = true;
|
|
27755
27720
|
const browserAgent = agent_factory_1.AgentFactory.createBrowserAgent(this.window, this.featureDetection, configuration);
|
|
27756
|
-
const { enableOpenTelemetry } = configuration;
|
|
27757
|
-
(0, events_bridge_1.registerEventsBridge)(this.logger, enableOpenTelemetry, true, configuration.allowCORS);
|
|
27758
27721
|
if (browserAgent) {
|
|
27759
27722
|
browserAgent.start();
|
|
27760
27723
|
this.instances.push(browserAgent);
|
|
@@ -27799,7 +27762,7 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, ge
|
|
|
27799
27762
|
exports.BrowserAgent = BrowserAgent;
|
|
27800
27763
|
});
|
|
27801
27764
|
|
|
27802
|
-
},{"./agent-factory":218,"./events-bridge
|
|
27765
|
+
},{"./agent-factory":218,"./events-bridge/context-message-manager":237,"./logger/log-factory":249}],222:[function(require,module,exports){
|
|
27803
27766
|
var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
|
|
27804
27767
|
function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
|
|
27805
27768
|
return new (P || (P = Promise))(function (resolve, reject) {
|
|
@@ -27846,7 +27809,7 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, ge
|
|
|
27846
27809
|
exports.BrowserEventsProcess = BrowserEventsProcess;
|
|
27847
27810
|
});
|
|
27848
27811
|
|
|
27849
|
-
},{"../../common/events-process":
|
|
27812
|
+
},{"../../common/events-process":295}],223:[function(require,module,exports){
|
|
27850
27813
|
(function (factory) {
|
|
27851
27814
|
if (typeof module === "object" && typeof module.exports === "object") {
|
|
27852
27815
|
var v = factory(require, exports);
|
|
@@ -27877,7 +27840,7 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, ge
|
|
|
27877
27840
|
exports.BrowserHitsCollector = BrowserHitsCollector;
|
|
27878
27841
|
});
|
|
27879
27842
|
|
|
27880
|
-
},{"../../common/footprints-process-v6/hits-collector":
|
|
27843
|
+
},{"../../common/footprints-process-v6/hits-collector":302}],224:[function(require,module,exports){
|
|
27881
27844
|
(function (factory) {
|
|
27882
27845
|
if (typeof module === "object" && typeof module.exports === "object") {
|
|
27883
27846
|
var v = factory(require, exports);
|
|
@@ -27903,7 +27866,7 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, ge
|
|
|
27903
27866
|
exports.BrowserHitsConverter = BrowserHitsConverter;
|
|
27904
27867
|
});
|
|
27905
27868
|
|
|
27906
|
-
},{"../../common/footprints-process-v6/base-browser-hits-converter":
|
|
27869
|
+
},{"../../common/footprints-process-v6/base-browser-hits-converter":296}],225:[function(require,module,exports){
|
|
27907
27870
|
(function (factory) {
|
|
27908
27871
|
if (typeof module === "object" && typeof module.exports === "object") {
|
|
27909
27872
|
var v = factory(require, exports);
|
|
@@ -28012,7 +27975,7 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, ge
|
|
|
28012
27975
|
exports.CodeCoverageManager = CodeCoverageManager;
|
|
28013
27976
|
});
|
|
28014
27977
|
|
|
28015
|
-
},{}],
|
|
27978
|
+
},{}],226:[function(require,module,exports){
|
|
28016
27979
|
(function (factory) {
|
|
28017
27980
|
if (typeof module === "object" && typeof module.exports === "object") {
|
|
28018
27981
|
var v = factory(require, exports);
|
|
@@ -28053,7 +28016,7 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, ge
|
|
|
28053
28016
|
exports.ColorCookieHandler = ColorCookieHandler;
|
|
28054
28017
|
});
|
|
28055
28018
|
|
|
28056
|
-
},{"./state-tracker":
|
|
28019
|
+
},{"./state-tracker":261}],227:[function(require,module,exports){
|
|
28057
28020
|
(function (factory) {
|
|
28058
28021
|
if (typeof module === "object" && typeof module.exports === "object") {
|
|
28059
28022
|
var v = factory(require, exports);
|
|
@@ -28066,11 +28029,11 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, ge
|
|
|
28066
28029
|
"use strict";
|
|
28067
28030
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
28068
28031
|
exports.SL_AGENT_TYPE = exports.SL_AGENT_VERSION = void 0;
|
|
28069
|
-
exports.SL_AGENT_VERSION = '6.1.
|
|
28032
|
+
exports.SL_AGENT_VERSION = '6.1.451';
|
|
28070
28033
|
exports.SL_AGENT_TYPE = 'browser';
|
|
28071
28034
|
});
|
|
28072
28035
|
|
|
28073
|
-
},{}],
|
|
28036
|
+
},{}],228:[function(require,module,exports){
|
|
28074
28037
|
(function (factory) {
|
|
28075
28038
|
if (typeof module === "object" && typeof module.exports === "object") {
|
|
28076
28039
|
var v = factory(require, exports);
|
|
@@ -28207,7 +28170,7 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, ge
|
|
|
28207
28170
|
ConfigurationManager.LAB_ID_KEY = '__sl.labId__';
|
|
28208
28171
|
});
|
|
28209
28172
|
|
|
28210
|
-
},{"./entities/configuration-data":
|
|
28173
|
+
},{"./entities/configuration-data":233}],229:[function(require,module,exports){
|
|
28211
28174
|
(function (factory) {
|
|
28212
28175
|
if (typeof module === "object" && typeof module.exports === "object") {
|
|
28213
28176
|
var v = factory(require, exports);
|
|
@@ -28258,7 +28221,7 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, ge
|
|
|
28258
28221
|
exports.ConfigurationOverride = ConfigurationOverride;
|
|
28259
28222
|
});
|
|
28260
28223
|
|
|
28261
|
-
},{"./logger/console-logger":
|
|
28224
|
+
},{"./logger/console-logger":248,"events":168}],230:[function(require,module,exports){
|
|
28262
28225
|
(function (factory) {
|
|
28263
28226
|
if (typeof module === "object" && typeof module.exports === "object") {
|
|
28264
28227
|
var v = factory(require, exports);
|
|
@@ -28278,7 +28241,7 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, ge
|
|
|
28278
28241
|
})(ExecutionStatus = exports.ExecutionStatus || (exports.ExecutionStatus = {}));
|
|
28279
28242
|
});
|
|
28280
28243
|
|
|
28281
|
-
},{}],
|
|
28244
|
+
},{}],231:[function(require,module,exports){
|
|
28282
28245
|
(function (factory) {
|
|
28283
28246
|
if (typeof module === "object" && typeof module.exports === "object") {
|
|
28284
28247
|
var v = factory(require, exports);
|
|
@@ -28312,7 +28275,7 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, ge
|
|
|
28312
28275
|
exports.Delegate = Delegate;
|
|
28313
28276
|
});
|
|
28314
28277
|
|
|
28315
|
-
},{}],
|
|
28278
|
+
},{}],232:[function(require,module,exports){
|
|
28316
28279
|
(function (factory) {
|
|
28317
28280
|
if (typeof module === "object" && typeof module.exports === "object") {
|
|
28318
28281
|
var v = factory(require, exports);
|
|
@@ -28330,7 +28293,7 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, ge
|
|
|
28330
28293
|
exports.BasicConfigurationData = BasicConfigurationData;
|
|
28331
28294
|
});
|
|
28332
28295
|
|
|
28333
|
-
},{}],
|
|
28296
|
+
},{}],233:[function(require,module,exports){
|
|
28334
28297
|
(function (factory) {
|
|
28335
28298
|
if (typeof module === "object" && typeof module.exports === "object") {
|
|
28336
28299
|
var v = factory(require, exports);
|
|
@@ -28354,7 +28317,7 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, ge
|
|
|
28354
28317
|
exports.ConfigurationData = ConfigurationData;
|
|
28355
28318
|
});
|
|
28356
28319
|
|
|
28357
|
-
},{"./basic-configuation-data":
|
|
28320
|
+
},{"./basic-configuation-data":232}],234:[function(require,module,exports){
|
|
28358
28321
|
(function (factory) {
|
|
28359
28322
|
if (typeof module === "object" && typeof module.exports === "object") {
|
|
28360
28323
|
var v = factory(require, exports);
|
|
@@ -28386,7 +28349,7 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, ge
|
|
|
28386
28349
|
exports.EnvironmentData = EnvironmentData;
|
|
28387
28350
|
});
|
|
28388
28351
|
|
|
28389
|
-
},{"../config":
|
|
28352
|
+
},{"../config":227}],235:[function(require,module,exports){
|
|
28390
28353
|
(function (factory) {
|
|
28391
28354
|
if (typeof module === "object" && typeof module.exports === "object") {
|
|
28392
28355
|
var v = factory(require, exports);
|
|
@@ -28404,7 +28367,7 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, ge
|
|
|
28404
28367
|
exports.FootprintsItemData = FootprintsItemData;
|
|
28405
28368
|
});
|
|
28406
28369
|
|
|
28407
|
-
},{}],
|
|
28370
|
+
},{}],236:[function(require,module,exports){
|
|
28408
28371
|
(function (factory) {
|
|
28409
28372
|
if (typeof module === "object" && typeof module.exports === "object") {
|
|
28410
28373
|
var v = factory(require, exports);
|
|
@@ -28447,7 +28410,7 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, ge
|
|
|
28447
28410
|
exports.relativePathRegex = new RegExp('^(?!www\\.|(?:http|ftp)s?://|[A-Za-z]:\\\\|//).*');
|
|
28448
28411
|
});
|
|
28449
28412
|
|
|
28450
|
-
},{}],
|
|
28413
|
+
},{}],237:[function(require,module,exports){
|
|
28451
28414
|
(function (factory) {
|
|
28452
28415
|
if (typeof module === "object" && typeof module.exports === "object") {
|
|
28453
28416
|
var v = factory(require, exports);
|
|
@@ -28526,7 +28489,7 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, ge
|
|
|
28526
28489
|
ContextMessageManager.DEFAULT_SEND_INTERVAL = 60 * 1000;
|
|
28527
28490
|
});
|
|
28528
28491
|
|
|
28529
|
-
},{"../../../common/agent-events/agent-events-contracts":
|
|
28492
|
+
},{"../../../common/agent-events/agent-events-contracts":267,"../../../common/agent-events/cockpit-notifier":274,"../../../common/system-date":318}],238:[function(require,module,exports){
|
|
28530
28493
|
(function (factory) {
|
|
28531
28494
|
if (typeof module === "object" && typeof module.exports === "object") {
|
|
28532
28495
|
var v = factory(require, exports);
|
|
@@ -28559,8 +28522,8 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, ge
|
|
|
28559
28522
|
window.$Sealights.eventsBridge.getContext = () => (SlContext.getValue(api.createContextKey(SlConst.CONTEXT)));
|
|
28560
28523
|
window.$Sealights.eventsBridge.otel = true;
|
|
28561
28524
|
}
|
|
28562
|
-
addEventListener(SlConst.EVENTS.SET_BAGGAGE, ({ detail }) => setBaggageHandler(detail, contextMessageManager, withOpenTelemetry));
|
|
28563
|
-
addEventListener(SlConst.EVENTS.SET_CONTEXT, ({ detail }) => setContextHandler(detail, contextMessageManager, withOpenTelemetry));
|
|
28525
|
+
addEventListener(SlConst.EVENTS.SET_BAGGAGE, ({ detail }) => setBaggageHandler(detail, contextMessageManager, withOpenTelemetry, logger));
|
|
28526
|
+
addEventListener(SlConst.EVENTS.SET_CONTEXT, ({ detail }) => setContextHandler(detail, contextMessageManager, withOpenTelemetry, logger));
|
|
28564
28527
|
addEventListener(SlConst.EVENTS.REQUEST_AGENT_CONTEXT, () => {
|
|
28565
28528
|
dispatchEvent(new CustomEvent(SlConst.EVENTS.RESPONSE_AGENT_CONTEXT, {
|
|
28566
28529
|
detail: { components: window.$Sealights.components || {} },
|
|
@@ -28591,13 +28554,17 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, ge
|
|
|
28591
28554
|
}
|
|
28592
28555
|
}
|
|
28593
28556
|
exports.checkExistingContext = checkExistingContext;
|
|
28594
|
-
function setBaggageHandler(detail, contextMessageManager, withOpenTelemetry) {
|
|
28557
|
+
function setBaggageHandler(detail, contextMessageManager, withOpenTelemetry, logger) {
|
|
28595
28558
|
var _a, _b;
|
|
28596
|
-
|
|
28559
|
+
logger.info(`setBaggage: Received event "detail": ${JSON.stringify(detail, null, 4)}`);
|
|
28560
|
+
if (!detail) {
|
|
28561
|
+
logger.info(`Received setBaggage event with no detail, not changing baggage.`);
|
|
28597
28562
|
return;
|
|
28563
|
+
}
|
|
28598
28564
|
const sessionId = detail[SlConst.SL_SESSION_ID];
|
|
28599
28565
|
const testName = detail[SlConst.SL_TEST_NAME];
|
|
28600
28566
|
if (!(sessionId === null || sessionId === void 0 ? void 0 : sessionId.length) || !(testName === null || testName === void 0 ? void 0 : testName.length)) {
|
|
28567
|
+
logger.info(`Received setBaggage event with with missing testName/sessionId: testName=${testName} sessionId=${sessionId}`);
|
|
28601
28568
|
contextMessageManager.incrementContextEventValue(context_message_manager_1.CONTEXT_EVENTS_KEYS.WITHOUT_BAGGAGE, 1);
|
|
28602
28569
|
return;
|
|
28603
28570
|
}
|
|
@@ -28608,7 +28575,7 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, ge
|
|
|
28608
28575
|
if (withOpenTelemetry) {
|
|
28609
28576
|
SlContext = SlContext.setValue(api.createContextKey(SlConst.SL_BAGGAGE_HEADER), {
|
|
28610
28577
|
[SlConst.SL_SESSION_ID]: sessionId,
|
|
28611
|
-
[SlConst.SL_TEST_NAME]:
|
|
28578
|
+
[SlConst.SL_TEST_NAME]: encodeURIComponent(testName),
|
|
28612
28579
|
});
|
|
28613
28580
|
}
|
|
28614
28581
|
(_b = (_a = window.$SealightsAgent) === null || _a === void 0 ? void 0 : _a.setCurrentTestIdentifier) === null || _b === void 0 ? void 0 : _b.call(_a, `${sessionId}/${testName}`);
|
|
@@ -28616,10 +28583,13 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, ge
|
|
|
28616
28583
|
(0, utils_1.sendAckEvent)(detail);
|
|
28617
28584
|
}
|
|
28618
28585
|
exports.setBaggageHandler = setBaggageHandler;
|
|
28619
|
-
function setContextHandler(detail, contextMessageManager, withOpenTelemetry) {
|
|
28586
|
+
function setContextHandler(detail, contextMessageManager, withOpenTelemetry, logger) {
|
|
28620
28587
|
var _a;
|
|
28621
|
-
|
|
28588
|
+
logger.info(`setContext: Received event "detail": ${JSON.stringify(detail, null, 4)}`);
|
|
28589
|
+
if (!detail) {
|
|
28590
|
+
logger.info(`Received setContext event with no detail, not changing context.`);
|
|
28622
28591
|
return;
|
|
28592
|
+
}
|
|
28623
28593
|
contextMessageManager.incrementContextEventValue(context_message_manager_1.CONTEXT_EVENTS_KEYS.TOTAL, 1);
|
|
28624
28594
|
if ((0, utils_1.checkIsDiagnosisBaggage)(detail[SlConst.SL_BAGGAGE_HEADER])) {
|
|
28625
28595
|
contextMessageManager.incrementContextEventValue(context_message_manager_1.CONTEXT_EVENTS_KEYS.WITH_BAGGAGE, 1);
|
|
@@ -28657,7 +28627,7 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, ge
|
|
|
28657
28627
|
exports.deleteBaggageHandler = deleteBaggageHandler;
|
|
28658
28628
|
});
|
|
28659
28629
|
|
|
28660
|
-
},{"../../../common/agent-events/cockpit-notifier":
|
|
28630
|
+
},{"../../../common/agent-events/cockpit-notifier":274,"./const":236,"./context-message-manager":237,"./utils":243,"@opentelemetry/api":18}],239:[function(require,module,exports){
|
|
28661
28631
|
(function (factory) {
|
|
28662
28632
|
if (typeof module === "object" && typeof module.exports === "object") {
|
|
28663
28633
|
var v = factory(require, exports);
|
|
@@ -28679,10 +28649,16 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, ge
|
|
|
28679
28649
|
}
|
|
28680
28650
|
}
|
|
28681
28651
|
};
|
|
28682
|
-
function handleAddHeaders(options, spanUrl, allowCORS) {
|
|
28652
|
+
function handleAddHeaders(options, spanUrl, allowCORS, logger) {
|
|
28683
28653
|
const allowHeadersPropagation = (0, utils_1.shouldAddHeaders)(window.location.origin, spanUrl, allowCORS);
|
|
28684
|
-
if (!allowHeadersPropagation)
|
|
28654
|
+
if (!allowHeadersPropagation) {
|
|
28655
|
+
const originLog = {
|
|
28656
|
+
current: window.location.origin,
|
|
28657
|
+
target: spanUrl,
|
|
28658
|
+
};
|
|
28659
|
+
logger.warn(`Not adding header in CustomFetchInstrumentation because of origin difference: ${JSON.stringify(originLog, null, 4)}`);
|
|
28685
28660
|
return;
|
|
28661
|
+
}
|
|
28686
28662
|
const contextPropagationHeaders = Object.assign(Object.assign({}, (0, utils_1.constructBaggageHeader)()), (0, utils_1.constructContextHeaders)());
|
|
28687
28663
|
if (options instanceof Request && contextPropagationHeaders) {
|
|
28688
28664
|
setPropagationHeaders(options, contextPropagationHeaders);
|
|
@@ -28703,13 +28679,13 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, ge
|
|
|
28703
28679
|
class CustomFetchInstrumentation extends instrumentation_fetch_1.FetchInstrumentation {
|
|
28704
28680
|
constructor(config) {
|
|
28705
28681
|
super(config);
|
|
28706
|
-
this['_addHeaders'] = (options, spanUrl) => handleAddHeaders(options, spanUrl, config
|
|
28682
|
+
this['_addHeaders'] = (options, spanUrl) => handleAddHeaders(options, spanUrl, config.allowCORS, config.logger);
|
|
28707
28683
|
}
|
|
28708
28684
|
}
|
|
28709
28685
|
exports.CustomFetchInstrumentation = CustomFetchInstrumentation;
|
|
28710
28686
|
});
|
|
28711
28687
|
|
|
28712
|
-
},{"../utils":
|
|
28688
|
+
},{"../utils":243,"@opentelemetry/instrumentation-fetch":89}],240:[function(require,module,exports){
|
|
28713
28689
|
(function (factory) {
|
|
28714
28690
|
if (typeof module === "object" && typeof module.exports === "object") {
|
|
28715
28691
|
var v = factory(require, exports);
|
|
@@ -28724,10 +28700,16 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, ge
|
|
|
28724
28700
|
exports.CustomXMLHttpRequestInstrumentation = exports.handleAddHeaders = void 0;
|
|
28725
28701
|
const instrumentation_xml_http_request_1 = require("@opentelemetry/instrumentation-xml-http-request");
|
|
28726
28702
|
const utils_1 = require("../utils");
|
|
28727
|
-
function handleAddHeaders(xhr, spanUrl, allowCORS) {
|
|
28703
|
+
function handleAddHeaders(xhr, spanUrl, allowCORS, logger) {
|
|
28728
28704
|
const allowHeadersPropagation = (0, utils_1.shouldAddHeaders)(window.location.origin, spanUrl, allowCORS);
|
|
28729
|
-
if (!allowHeadersPropagation)
|
|
28705
|
+
if (!allowHeadersPropagation) {
|
|
28706
|
+
const originLog = {
|
|
28707
|
+
current: window.location.origin,
|
|
28708
|
+
target: spanUrl,
|
|
28709
|
+
};
|
|
28710
|
+
logger.warn(`Not adding header in CustomXMLHttpRequestInstrumentation because of origin difference: ${JSON.stringify(originLog, null, 4)}`);
|
|
28730
28711
|
return;
|
|
28712
|
+
}
|
|
28731
28713
|
const headers = Object.assign(Object.assign({}, (0, utils_1.constructBaggageHeader)()), (0, utils_1.constructContextHeaders)());
|
|
28732
28714
|
Object.keys(headers).forEach((headerKey) => {
|
|
28733
28715
|
xhr.setRequestHeader(headerKey, headers[headerKey]);
|
|
@@ -28737,13 +28719,13 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, ge
|
|
|
28737
28719
|
class CustomXMLHttpRequestInstrumentation extends instrumentation_xml_http_request_1.XMLHttpRequestInstrumentation {
|
|
28738
28720
|
constructor(config) {
|
|
28739
28721
|
super(config);
|
|
28740
|
-
this['_addHeaders'] = (xhr, spanUrl) => handleAddHeaders(xhr, spanUrl, config
|
|
28722
|
+
this['_addHeaders'] = (xhr, spanUrl) => handleAddHeaders(xhr, spanUrl, config.allowCORS, config.logger);
|
|
28741
28723
|
}
|
|
28742
28724
|
}
|
|
28743
28725
|
exports.CustomXMLHttpRequestInstrumentation = CustomXMLHttpRequestInstrumentation;
|
|
28744
28726
|
});
|
|
28745
28727
|
|
|
28746
|
-
},{"../utils":
|
|
28728
|
+
},{"../utils":243,"@opentelemetry/instrumentation-xml-http-request":93}],241:[function(require,module,exports){
|
|
28747
28729
|
(function (factory) {
|
|
28748
28730
|
if (typeof module === "object" && typeof module.exports === "object") {
|
|
28749
28731
|
var v = factory(require, exports);
|
|
@@ -28775,7 +28757,7 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, ge
|
|
|
28775
28757
|
exports.registerEventsBridge = registerEventsBridge;
|
|
28776
28758
|
});
|
|
28777
28759
|
|
|
28778
|
-
},{"./const":
|
|
28760
|
+
},{"./const":236,"./events":238,"./otel":242}],242:[function(require,module,exports){
|
|
28779
28761
|
(function (factory) {
|
|
28780
28762
|
if (typeof module === "object" && typeof module.exports === "object") {
|
|
28781
28763
|
var v = factory(require, exports);
|
|
@@ -28796,8 +28778,8 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, ge
|
|
|
28796
28778
|
try {
|
|
28797
28779
|
(0, instrumentation_1.registerInstrumentations)({
|
|
28798
28780
|
instrumentations: [
|
|
28799
|
-
new CustomFetchInstrumentation_1.CustomFetchInstrumentation({ allowCORS }),
|
|
28800
|
-
new CustomXMLHttpRequestInstrumentation_1.CustomXMLHttpRequestInstrumentation({ allowCORS }),
|
|
28781
|
+
new CustomFetchInstrumentation_1.CustomFetchInstrumentation({ allowCORS, logger }),
|
|
28782
|
+
new CustomXMLHttpRequestInstrumentation_1.CustomXMLHttpRequestInstrumentation({ allowCORS, logger }),
|
|
28801
28783
|
],
|
|
28802
28784
|
});
|
|
28803
28785
|
}
|
|
@@ -28810,7 +28792,7 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, ge
|
|
|
28810
28792
|
exports.registerOpenTelemetry = registerOpenTelemetry;
|
|
28811
28793
|
});
|
|
28812
28794
|
|
|
28813
|
-
},{"../../../common/agent-events/cockpit-notifier":
|
|
28795
|
+
},{"../../../common/agent-events/cockpit-notifier":274,"./implementations/CustomFetchInstrumentation":239,"./implementations/CustomXMLHttpRequestInstrumentation":240,"@opentelemetry/instrumentation":98}],243:[function(require,module,exports){
|
|
28814
28796
|
(function (factory) {
|
|
28815
28797
|
if (typeof module === "object" && typeof module.exports === "object") {
|
|
28816
28798
|
var v = factory(require, exports);
|
|
@@ -28891,7 +28873,7 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, ge
|
|
|
28891
28873
|
exports.shouldAddHeaders = shouldAddHeaders;
|
|
28892
28874
|
});
|
|
28893
28875
|
|
|
28894
|
-
},{"./const":
|
|
28876
|
+
},{"./const":236}],244:[function(require,module,exports){
|
|
28895
28877
|
(function (factory) {
|
|
28896
28878
|
if (typeof module === "object" && typeof module.exports === "object") {
|
|
28897
28879
|
var v = factory(require, exports);
|
|
@@ -28929,7 +28911,7 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, ge
|
|
|
28929
28911
|
exports.FeatureDetection = FeatureDetection;
|
|
28930
28912
|
});
|
|
28931
28913
|
|
|
28932
|
-
},{}],
|
|
28914
|
+
},{}],245:[function(require,module,exports){
|
|
28933
28915
|
(function (factory) {
|
|
28934
28916
|
if (typeof module === "object" && typeof module.exports === "object") {
|
|
28935
28917
|
var v = factory(require, exports);
|
|
@@ -29081,8 +29063,7 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, ge
|
|
|
29081
29063
|
}
|
|
29082
29064
|
getCurrentFootprints() {
|
|
29083
29065
|
this.pushCurrentFootprints();
|
|
29084
|
-
|
|
29085
|
-
return footprints;
|
|
29066
|
+
return this.footprintsQueue.getQueueContentsAndEmptyQueue();
|
|
29086
29067
|
}
|
|
29087
29068
|
createRequest(data) {
|
|
29088
29069
|
if (this.configuration.resolveWithoutHash) {
|
|
@@ -29135,7 +29116,7 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, ge
|
|
|
29135
29116
|
exports.FootprintsQueueSender = FootprintsQueueSender;
|
|
29136
29117
|
});
|
|
29137
29118
|
|
|
29138
|
-
},{"../../common/system-date":
|
|
29119
|
+
},{"../../common/system-date":318,"./entities/footprints-item-data":235}],246:[function(require,module,exports){
|
|
29139
29120
|
(function (factory) {
|
|
29140
29121
|
if (typeof module === "object" && typeof module.exports === "object") {
|
|
29141
29122
|
var v = factory(require, exports);
|
|
@@ -29390,7 +29371,7 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, ge
|
|
|
29390
29371
|
exports.IstanbulToFootprintsConvertorV3 = IstanbulToFootprintsConvertorV3;
|
|
29391
29372
|
});
|
|
29392
29373
|
|
|
29393
|
-
},{"../../common/footprints-process-v6/location-formatter":
|
|
29374
|
+
},{"../../common/footprints-process-v6/location-formatter":305,"../../common/footprints-process/collection-interval":307,"../../common/system-date":318,"./logger/log-factory":249}],247:[function(require,module,exports){
|
|
29394
29375
|
(function (factory) {
|
|
29395
29376
|
if (typeof module === "object" && typeof module.exports === "object") {
|
|
29396
29377
|
var v = factory(require, exports);
|
|
@@ -29496,82 +29477,7 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, ge
|
|
|
29496
29477
|
exports.IstanbulToFootprintsConverter = IstanbulToFootprintsConverter;
|
|
29497
29478
|
});
|
|
29498
29479
|
|
|
29499
|
-
},{"./utils":
|
|
29500
|
-
(function (factory) {
|
|
29501
|
-
if (typeof module === "object" && typeof module.exports === "object") {
|
|
29502
|
-
var v = factory(require, exports);
|
|
29503
|
-
if (v !== undefined) module.exports = v;
|
|
29504
|
-
}
|
|
29505
|
-
else if (typeof define === "function" && define.amd) {
|
|
29506
|
-
define(["require", "exports", "./browser-agent-instance", "../../common/utils/validation-utils", "../../common/events-process/events-creator", "../../common/events-process/events-contracts"], factory);
|
|
29507
|
-
}
|
|
29508
|
-
})(function (require, exports) {
|
|
29509
|
-
"use strict";
|
|
29510
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
29511
|
-
exports.KarmaHandler = void 0;
|
|
29512
|
-
const browser_agent_instance_1 = require("./browser-agent-instance");
|
|
29513
|
-
const validation_utils_1 = require("../../common/utils/validation-utils");
|
|
29514
|
-
const events_creator_1 = require("../../common/events-process/events-creator");
|
|
29515
|
-
const events_contracts_1 = require("../../common/events-process/events-contracts");
|
|
29516
|
-
class KarmaHandler {
|
|
29517
|
-
constructor(window, agent, logger) {
|
|
29518
|
-
validation_utils_1.ValidationUtils.verifyNotNullOrEmpty(window, 'window');
|
|
29519
|
-
validation_utils_1.ValidationUtils.verifyNotNullOrEmpty(agent, 'agent');
|
|
29520
|
-
validation_utils_1.ValidationUtils.verifyNotNullOrEmpty(logger, 'logger');
|
|
29521
|
-
this.window = window;
|
|
29522
|
-
this.agent = agent;
|
|
29523
|
-
this.logger = logger;
|
|
29524
|
-
}
|
|
29525
|
-
overrideKarmaMethods() {
|
|
29526
|
-
if (!this.window.__karma__) {
|
|
29527
|
-
this.logger.warn('Could not find \'__karma__\' object on window, skip overriding methods');
|
|
29528
|
-
return;
|
|
29529
|
-
}
|
|
29530
|
-
const that = this;
|
|
29531
|
-
const originalResult = this.window.__karma__.result;
|
|
29532
|
-
const originalComplete = this.window.__karma__.complete;
|
|
29533
|
-
this.window.__karma__.result = function (resultObject) {
|
|
29534
|
-
const testResult = that.resolveTestResult(resultObject);
|
|
29535
|
-
const testStartEvent = events_creator_1.EventsCreator.createTestStartedEvent(browser_agent_instance_1.BrowserAgentInstance.getExecutionId(), 'karma', resultObject.fullName, resultObject.time);
|
|
29536
|
-
const testEndEvent = events_creator_1.EventsCreator.createTestEndEvent(browser_agent_instance_1.BrowserAgentInstance.getExecutionId(), 'karma', resultObject.fullName, testResult, resultObject.time);
|
|
29537
|
-
that.agent.enqueueEvent(testStartEvent);
|
|
29538
|
-
that.agent.enqueueEvent(testEndEvent);
|
|
29539
|
-
const currentTestIdentifier = browser_agent_instance_1.BrowserAgentInstance.getExecutionId() + '/'
|
|
29540
|
-
+ resultObject.fullName;
|
|
29541
|
-
that.agent.setCurrentTestIdentifier(currentTestIdentifier);
|
|
29542
|
-
if (originalResult instanceof Function) {
|
|
29543
|
-
originalResult.apply(this, arguments);
|
|
29544
|
-
}
|
|
29545
|
-
};
|
|
29546
|
-
this.window.__karma__.complete = function () {
|
|
29547
|
-
const executionEndEvent = events_creator_1.EventsCreator.createEvent(events_contracts_1.EventTypes.ExecutionIdEnded, browser_agent_instance_1.BrowserAgentInstance.getExecutionId(), 'karma');
|
|
29548
|
-
that.agent.enqueueEvent(executionEndEvent);
|
|
29549
|
-
that.agent.stop();
|
|
29550
|
-
if (originalComplete instanceof Function) {
|
|
29551
|
-
originalComplete.apply(this, arguments);
|
|
29552
|
-
}
|
|
29553
|
-
};
|
|
29554
|
-
}
|
|
29555
|
-
start() {
|
|
29556
|
-
const agentStartedEvent = events_creator_1.EventsCreator.createEvent(events_contracts_1.EventTypes.AgentStarted, browser_agent_instance_1.BrowserAgentInstance.getExecutionId(), 'karma');
|
|
29557
|
-
const executionStartedEvent = events_creator_1.EventsCreator.createEvent(events_contracts_1.EventTypes.ExecutionIdStarted, browser_agent_instance_1.BrowserAgentInstance.getExecutionId(), 'karma');
|
|
29558
|
-
this.agent.enqueueEvent(agentStartedEvent);
|
|
29559
|
-
this.agent.enqueueEvent(executionStartedEvent);
|
|
29560
|
-
}
|
|
29561
|
-
resolveTestResult(result) {
|
|
29562
|
-
if (result.skipped) {
|
|
29563
|
-
return 'skipped';
|
|
29564
|
-
}
|
|
29565
|
-
if (result.success) {
|
|
29566
|
-
return 'passed';
|
|
29567
|
-
}
|
|
29568
|
-
return 'failed';
|
|
29569
|
-
}
|
|
29570
|
-
}
|
|
29571
|
-
exports.KarmaHandler = KarmaHandler;
|
|
29572
|
-
});
|
|
29573
|
-
|
|
29574
|
-
},{"../../common/events-process/events-contracts":297,"../../common/events-process/events-creator":298,"../../common/utils/validation-utils":326,"./browser-agent-instance":221}],250:[function(require,module,exports){
|
|
29480
|
+
},{"./utils":263}],248:[function(require,module,exports){
|
|
29575
29481
|
(function (factory) {
|
|
29576
29482
|
if (typeof module === "object" && typeof module.exports === "object") {
|
|
29577
29483
|
var v = factory(require, exports);
|
|
@@ -29762,7 +29668,7 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, ge
|
|
|
29762
29668
|
exports.ConsoleLogger = ConsoleLogger;
|
|
29763
29669
|
});
|
|
29764
29670
|
|
|
29765
|
-
},{"../../../common/system-date":
|
|
29671
|
+
},{"../../../common/system-date":318,"../configuration-override":229}],249:[function(require,module,exports){
|
|
29766
29672
|
(function (factory) {
|
|
29767
29673
|
if (typeof module === "object" && typeof module.exports === "object") {
|
|
29768
29674
|
var v = factory(require, exports);
|
|
@@ -29792,7 +29698,7 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, ge
|
|
|
29792
29698
|
exports.LogFactory = LogFactory;
|
|
29793
29699
|
});
|
|
29794
29700
|
|
|
29795
|
-
},{"./console-logger":
|
|
29701
|
+
},{"./console-logger":248,"./null-logger":250}],250:[function(require,module,exports){
|
|
29796
29702
|
(function (factory) {
|
|
29797
29703
|
if (typeof module === "object" && typeof module.exports === "object") {
|
|
29798
29704
|
var v = factory(require, exports);
|
|
@@ -29849,7 +29755,7 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, ge
|
|
|
29849
29755
|
NullLogger.INSTANCE = new NullLogger();
|
|
29850
29756
|
});
|
|
29851
29757
|
|
|
29852
|
-
},{}],
|
|
29758
|
+
},{}],251:[function(require,module,exports){
|
|
29853
29759
|
(function (factory) {
|
|
29854
29760
|
if (typeof module === "object" && typeof module.exports === "object") {
|
|
29855
29761
|
var v = factory(require, exports);
|
|
@@ -29930,7 +29836,7 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, ge
|
|
|
29930
29836
|
exports.FootprintsItemsQueue = FootprintsItemsQueue;
|
|
29931
29837
|
});
|
|
29932
29838
|
|
|
29933
|
-
},{"../../../common/system-date":
|
|
29839
|
+
},{"../../../common/system-date":318,"../delegate":231,"../entities/footprints-item-data":235}],252:[function(require,module,exports){
|
|
29934
29840
|
(function (factory) {
|
|
29935
29841
|
if (typeof module === "object" && typeof module.exports === "object") {
|
|
29936
29842
|
var v = factory(require, exports);
|
|
@@ -29997,7 +29903,7 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, ge
|
|
|
29997
29903
|
Queue.DEFAULT_MAX_ITEMS_IN_QUEUE = 1000;
|
|
29998
29904
|
});
|
|
29999
29905
|
|
|
30000
|
-
},{"../../../common/utils/validation-utils":
|
|
29906
|
+
},{"../../../common/utils/validation-utils":322}],253:[function(require,module,exports){
|
|
30001
29907
|
(function (factory) {
|
|
30002
29908
|
if (typeof module === "object" && typeof module.exports === "object") {
|
|
30003
29909
|
var v = factory(require, exports);
|
|
@@ -30060,7 +29966,7 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, ge
|
|
|
30060
29966
|
exports.HttpClient = HttpClient;
|
|
30061
29967
|
});
|
|
30062
29968
|
|
|
30063
|
-
},{"./http-response":
|
|
29969
|
+
},{"./http-response":255}],254:[function(require,module,exports){
|
|
30064
29970
|
(function (factory) {
|
|
30065
29971
|
if (typeof module === "object" && typeof module.exports === "object") {
|
|
30066
29972
|
var v = factory(require, exports);
|
|
@@ -30081,7 +29987,7 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, ge
|
|
|
30081
29987
|
exports.HttpRequest = HttpRequest;
|
|
30082
29988
|
});
|
|
30083
29989
|
|
|
30084
|
-
},{}],
|
|
29990
|
+
},{}],255:[function(require,module,exports){
|
|
30085
29991
|
(function (factory) {
|
|
30086
29992
|
if (typeof module === "object" && typeof module.exports === "object") {
|
|
30087
29993
|
var v = factory(require, exports);
|
|
@@ -30099,7 +30005,7 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, ge
|
|
|
30099
30005
|
exports.HttpResponse = HttpResponse;
|
|
30100
30006
|
});
|
|
30101
30007
|
|
|
30102
|
-
},{}],
|
|
30008
|
+
},{}],256:[function(require,module,exports){
|
|
30103
30009
|
(function (factory) {
|
|
30104
30010
|
if (typeof module === "object" && typeof module.exports === "object") {
|
|
30105
30011
|
var v = factory(require, exports);
|
|
@@ -30158,7 +30064,7 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, ge
|
|
|
30158
30064
|
exports.JsonClientAdapter = JsonClientAdapter;
|
|
30159
30065
|
});
|
|
30160
30066
|
|
|
30161
|
-
},{"../../../../common/utils/validation-utils":
|
|
30067
|
+
},{"../../../../common/utils/validation-utils":322}],257:[function(require,module,exports){
|
|
30162
30068
|
(function (factory) {
|
|
30163
30069
|
if (typeof module === "object" && typeof module.exports === "object") {
|
|
30164
30070
|
var v = factory(require, exports);
|
|
@@ -30269,7 +30175,7 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, ge
|
|
|
30269
30175
|
exports.JsonClient = JsonClient;
|
|
30270
30176
|
});
|
|
30271
30177
|
|
|
30272
|
-
},{"../../../../common/http/contracts":
|
|
30178
|
+
},{"../../../../common/http/contracts":309,"../http/http-request":254}],258:[function(require,module,exports){
|
|
30273
30179
|
(function (factory) {
|
|
30274
30180
|
if (typeof module === "object" && typeof module.exports === "object") {
|
|
30275
30181
|
var v = factory(require, exports);
|
|
@@ -30297,7 +30203,7 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, ge
|
|
|
30297
30203
|
exports.NoopJsonClient = NoopJsonClient;
|
|
30298
30204
|
});
|
|
30299
30205
|
|
|
30300
|
-
},{"../../logger/log-factory":
|
|
30206
|
+
},{"../../logger/log-factory":249,"./json-client":257}],259:[function(require,module,exports){
|
|
30301
30207
|
(function (factory) {
|
|
30302
30208
|
if (typeof module === "object" && typeof module.exports === "object") {
|
|
30303
30209
|
var v = factory(require, exports);
|
|
@@ -30337,7 +30243,7 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, ge
|
|
|
30337
30243
|
exports.LightBackendProxy = LightBackendProxy;
|
|
30338
30244
|
});
|
|
30339
30245
|
|
|
30340
|
-
},{}],
|
|
30246
|
+
},{}],260:[function(require,module,exports){
|
|
30341
30247
|
var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
|
|
30342
30248
|
function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
|
|
30343
30249
|
return new (P || (P = Promise))(function (resolve, reject) {
|
|
@@ -30406,7 +30312,7 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, ge
|
|
|
30406
30312
|
exports.SlMappingLoader = SlMappingLoader;
|
|
30407
30313
|
});
|
|
30408
30314
|
|
|
30409
|
-
},{"../../common/agent-events/cockpit-notifier":
|
|
30315
|
+
},{"../../common/agent-events/cockpit-notifier":274,"../../common/contracts":288}],261:[function(require,module,exports){
|
|
30410
30316
|
(function (factory) {
|
|
30411
30317
|
if (typeof module === "object" && typeof module.exports === "object") {
|
|
30412
30318
|
var v = factory(require, exports);
|
|
@@ -30529,7 +30435,7 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, ge
|
|
|
30529
30435
|
StateTracker.ANONYMOUS_FOOTPRINTS_COLOR = '00000000-0000-0000-0000-000000000000/__init';
|
|
30530
30436
|
});
|
|
30531
30437
|
|
|
30532
|
-
},{"./contracts":
|
|
30438
|
+
},{"./contracts":230,"./delegate":231}],262:[function(require,module,exports){
|
|
30533
30439
|
(function (factory) {
|
|
30534
30440
|
if (typeof module === "object" && typeof module.exports === "object") {
|
|
30535
30441
|
var v = factory(require, exports);
|
|
@@ -30563,7 +30469,7 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, ge
|
|
|
30563
30469
|
exports.TestStateHelper = TestStateHelper;
|
|
30564
30470
|
});
|
|
30565
30471
|
|
|
30566
|
-
},{}],
|
|
30472
|
+
},{}],263:[function(require,module,exports){
|
|
30567
30473
|
(function (factory) {
|
|
30568
30474
|
if (typeof module === "object" && typeof module.exports === "object") {
|
|
30569
30475
|
var v = factory(require, exports);
|
|
@@ -30611,7 +30517,7 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, ge
|
|
|
30611
30517
|
exports.Utils = Utils;
|
|
30612
30518
|
});
|
|
30613
30519
|
|
|
30614
|
-
},{"path":185}],
|
|
30520
|
+
},{"path":185}],264:[function(require,module,exports){
|
|
30615
30521
|
(function (factory) {
|
|
30616
30522
|
if (typeof module === "object" && typeof module.exports === "object") {
|
|
30617
30523
|
var v = factory(require, exports);
|
|
@@ -30696,7 +30602,7 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, ge
|
|
|
30696
30602
|
exports.Watchdog = Watchdog;
|
|
30697
30603
|
});
|
|
30698
30604
|
|
|
30699
|
-
},{"./delegate":
|
|
30605
|
+
},{"./delegate":231}],265:[function(require,module,exports){
|
|
30700
30606
|
(function (factory) {
|
|
30701
30607
|
if (typeof module === "object" && typeof module.exports === "object") {
|
|
30702
30608
|
var v = factory(require, exports);
|
|
@@ -30731,7 +30637,7 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, ge
|
|
|
30731
30637
|
exports.WindowTimersWrapper = WindowTimersWrapper;
|
|
30732
30638
|
});
|
|
30733
30639
|
|
|
30734
|
-
},{}],
|
|
30640
|
+
},{}],266:[function(require,module,exports){
|
|
30735
30641
|
(function (factory) {
|
|
30736
30642
|
if (typeof module === "object" && typeof module.exports === "object") {
|
|
30737
30643
|
var v = factory(require, exports);
|
|
@@ -30774,7 +30680,7 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, ge
|
|
|
30774
30680
|
})(COMMAND_ARGS = exports.COMMAND_ARGS || (exports.COMMAND_ARGS = {}));
|
|
30775
30681
|
});
|
|
30776
30682
|
|
|
30777
|
-
},{}],
|
|
30683
|
+
},{}],267:[function(require,module,exports){
|
|
30778
30684
|
(function (factory) {
|
|
30779
30685
|
if (typeof module === "object" && typeof module.exports === "object") {
|
|
30780
30686
|
var v = factory(require, exports);
|
|
@@ -30840,7 +30746,7 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, ge
|
|
|
30840
30746
|
})(Technology = exports.Technology || (exports.Technology = {}));
|
|
30841
30747
|
});
|
|
30842
30748
|
|
|
30843
|
-
},{}],
|
|
30749
|
+
},{}],268:[function(require,module,exports){
|
|
30844
30750
|
var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
|
|
30845
30751
|
function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
|
|
30846
30752
|
return new (P || (P = Promise))(function (resolve, reject) {
|
|
@@ -31073,7 +30979,7 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, ge
|
|
|
31073
30979
|
})(StartRequestStatus || (StartRequestStatus = {}));
|
|
31074
30980
|
});
|
|
31075
30981
|
|
|
31076
|
-
},{"../http/backend-proxy":
|
|
30982
|
+
},{"../http/backend-proxy":308,"../system-date":318,"../utils/validation-utils":322,"../watchdog":323,"./agent-events-contracts":267,"./agent-instance-info-builder":270,"./agent-start-info-builder":271,"./browser-info-builder":272,"./ci-info-builder":273,"./machine-info-builder":276,"./nodejs-env-info-builder":278}],269:[function(require,module,exports){
|
|
31077
30983
|
(function (factory) {
|
|
31078
30984
|
if (typeof module === "object" && typeof module.exports === "object") {
|
|
31079
30985
|
var v = factory(require, exports);
|
|
@@ -31106,7 +31012,7 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, ge
|
|
|
31106
31012
|
AgentEventsGuard.EVENT_CODE_TO_LAST_CALL = new Map();
|
|
31107
31013
|
});
|
|
31108
31014
|
|
|
31109
|
-
},{"../system-date":
|
|
31015
|
+
},{"../system-date":318,"./cockpit-notifier":274}],270:[function(require,module,exports){
|
|
31110
31016
|
(function (process){(function (){
|
|
31111
31017
|
(function (factory) {
|
|
31112
31018
|
if (typeof module === "object" && typeof module.exports === "object") {
|
|
@@ -31319,7 +31225,7 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, ge
|
|
|
31319
31225
|
});
|
|
31320
31226
|
|
|
31321
31227
|
}).call(this)}).call(this,require('_process'))
|
|
31322
|
-
},{"./sensitive-data-filter":
|
|
31228
|
+
},{"./sensitive-data-filter":279,"_process":187}],271:[function(require,module,exports){
|
|
31323
31229
|
(function (factory) {
|
|
31324
31230
|
if (typeof module === "object" && typeof module.exports === "object") {
|
|
31325
31231
|
var v = factory(require, exports);
|
|
@@ -31357,7 +31263,7 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, ge
|
|
|
31357
31263
|
exports.AgentStartInfoBuilder = AgentStartInfoBuilder;
|
|
31358
31264
|
});
|
|
31359
31265
|
|
|
31360
|
-
},{}],
|
|
31266
|
+
},{}],272:[function(require,module,exports){
|
|
31361
31267
|
(function (factory) {
|
|
31362
31268
|
if (typeof module === "object" && typeof module.exports === "object") {
|
|
31363
31269
|
var v = factory(require, exports);
|
|
@@ -31390,7 +31296,7 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, ge
|
|
|
31390
31296
|
exports.BrowserInfoBuilder = BrowserInfoBuilder;
|
|
31391
31297
|
});
|
|
31392
31298
|
|
|
31393
|
-
},{"../system-date":
|
|
31299
|
+
},{"../system-date":318}],273:[function(require,module,exports){
|
|
31394
31300
|
(function (process){(function (){
|
|
31395
31301
|
(function (factory) {
|
|
31396
31302
|
if (typeof module === "object" && typeof module.exports === "object") {
|
|
@@ -31432,7 +31338,7 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, ge
|
|
|
31432
31338
|
});
|
|
31433
31339
|
|
|
31434
31340
|
}).call(this)}).call(this,require('_process'))
|
|
31435
|
-
},{"_process":187}],
|
|
31341
|
+
},{"_process":187}],274:[function(require,module,exports){
|
|
31436
31342
|
var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
|
|
31437
31343
|
function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
|
|
31438
31344
|
return new (P || (P = Promise))(function (resolve, reject) {
|
|
@@ -31518,7 +31424,7 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, ge
|
|
|
31518
31424
|
CockpitNotifier.controllerNullLogged = false;
|
|
31519
31425
|
});
|
|
31520
31426
|
|
|
31521
|
-
},{"./agent-events-controller":
|
|
31427
|
+
},{"./agent-events-controller":268,"./dry-run-agent-events-controller":275,"./no-op-agent-events-controller":277}],275:[function(require,module,exports){
|
|
31522
31428
|
(function (factory) {
|
|
31523
31429
|
if (typeof module === "object" && typeof module.exports === "object") {
|
|
31524
31430
|
var v = factory(require, exports);
|
|
@@ -31546,7 +31452,7 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, ge
|
|
|
31546
31452
|
exports.DryRunAgentEventsController = DryRunAgentEventsController;
|
|
31547
31453
|
});
|
|
31548
31454
|
|
|
31549
|
-
},{"../agent-instance-data":
|
|
31455
|
+
},{"../agent-instance-data":280,"../config-process/config":283,"./agent-events-contracts":267,"./agent-events-controller":268}],276:[function(require,module,exports){
|
|
31550
31456
|
(function (process){(function (){
|
|
31551
31457
|
(function (factory) {
|
|
31552
31458
|
if (typeof module === "object" && typeof module.exports === "object") {
|
|
@@ -31598,7 +31504,7 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, ge
|
|
|
31598
31504
|
});
|
|
31599
31505
|
|
|
31600
31506
|
}).call(this)}).call(this,require('_process'))
|
|
31601
|
-
},{"../footprints-process-v6/buffer-size-helper":
|
|
31507
|
+
},{"../footprints-process-v6/buffer-size-helper":298,"../system-date":318,"_process":187,"os":173}],277:[function(require,module,exports){
|
|
31602
31508
|
var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
|
|
31603
31509
|
function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
|
|
31604
31510
|
return new (P || (P = Promise))(function (resolve, reject) {
|
|
@@ -31656,7 +31562,7 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, ge
|
|
|
31656
31562
|
exports.NoOpAgentEventsController = NoOpAgentEventsController;
|
|
31657
31563
|
});
|
|
31658
31564
|
|
|
31659
|
-
},{"./agent-events-controller":
|
|
31565
|
+
},{"./agent-events-controller":268}],278:[function(require,module,exports){
|
|
31660
31566
|
(function (process){(function (){
|
|
31661
31567
|
(function (factory) {
|
|
31662
31568
|
if (typeof module === "object" && typeof module.exports === "object") {
|
|
@@ -31691,7 +31597,7 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, ge
|
|
|
31691
31597
|
});
|
|
31692
31598
|
|
|
31693
31599
|
}).call(this)}).call(this,require('_process'))
|
|
31694
|
-
},{"_process":187}],
|
|
31600
|
+
},{"_process":187}],279:[function(require,module,exports){
|
|
31695
31601
|
(function (factory) {
|
|
31696
31602
|
if (typeof module === "object" && typeof module.exports === "object") {
|
|
31697
31603
|
var v = factory(require, exports);
|
|
@@ -31756,7 +31662,7 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, ge
|
|
|
31756
31662
|
exports.isSensitive = isSensitive;
|
|
31757
31663
|
});
|
|
31758
31664
|
|
|
31759
|
-
},{}],
|
|
31665
|
+
},{}],280:[function(require,module,exports){
|
|
31760
31666
|
(function (__dirname){(function (){
|
|
31761
31667
|
(function (factory) {
|
|
31762
31668
|
if (typeof module === "object" && typeof module.exports === "object") {
|
|
@@ -31815,7 +31721,7 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, ge
|
|
|
31815
31721
|
});
|
|
31816
31722
|
|
|
31817
31723
|
}).call(this)}).call(this,"/tsOutputs/common")
|
|
31818
|
-
},{"./agent-events/agent-events-contracts":
|
|
31724
|
+
},{"./agent-events/agent-events-contracts":267,"./agent-events/agent-instance-info-builder":270,"./utils/files-utils":320,"fs":165,"uuid":327}],281:[function(require,module,exports){
|
|
31819
31725
|
(function (process){(function (){
|
|
31820
31726
|
(function (factory) {
|
|
31821
31727
|
if (typeof module === "object" && typeof module.exports === "object") {
|
|
@@ -31908,7 +31814,7 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, ge
|
|
|
31908
31814
|
});
|
|
31909
31815
|
|
|
31910
31816
|
}).call(this)}).call(this,require('_process'))
|
|
31911
|
-
},{"../../cli-parse/contracts":
|
|
31817
|
+
},{"../../cli-parse/contracts":266,"../constants/sl-env-vars":287,"./config":283,"./config-system":282,"_process":187,"fs":165,"jwt-decode":326}],282:[function(require,module,exports){
|
|
31912
31818
|
(function (process){(function (){
|
|
31913
31819
|
(function (factory) {
|
|
31914
31820
|
if (typeof module === "object" && typeof module.exports === "object") {
|
|
@@ -32188,7 +32094,7 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, ge
|
|
|
32188
32094
|
});
|
|
32189
32095
|
|
|
32190
32096
|
}).call(this)}).call(this,require('_process'))
|
|
32191
|
-
},{"_process":187,"fs":165}],
|
|
32097
|
+
},{"_process":187,"fs":165}],283:[function(require,module,exports){
|
|
32192
32098
|
(function (factory) {
|
|
32193
32099
|
if (typeof module === "object" && typeof module.exports === "object") {
|
|
32194
32100
|
var v = factory(require, exports);
|
|
@@ -32259,7 +32165,7 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, ge
|
|
|
32259
32165
|
exports.AgentConfigWithRuntimeArgs = AgentConfigWithRuntimeArgs;
|
|
32260
32166
|
});
|
|
32261
32167
|
|
|
32262
|
-
},{"./config-system":
|
|
32168
|
+
},{"./config-system":282}],284:[function(require,module,exports){
|
|
32263
32169
|
(function (factory) {
|
|
32264
32170
|
if (typeof module === "object" && typeof module.exports === "object") {
|
|
32265
32171
|
var v = factory(require, exports);
|
|
@@ -32376,7 +32282,7 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, ge
|
|
|
32376
32282
|
exports.ConfigProcess = ConfigProcess;
|
|
32377
32283
|
});
|
|
32378
32284
|
|
|
32379
|
-
},{"./config-system":
|
|
32285
|
+
},{"./config-system":282,"events":168,"jwt-decode":326,"object-assign":172}],285:[function(require,module,exports){
|
|
32380
32286
|
(function (factory) {
|
|
32381
32287
|
if (typeof module === "object" && typeof module.exports === "object") {
|
|
32382
32288
|
var v = factory(require, exports);
|
|
@@ -32404,7 +32310,7 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, ge
|
|
|
32404
32310
|
exports.NoopConfigProcess = NoopConfigProcess;
|
|
32405
32311
|
});
|
|
32406
32312
|
|
|
32407
|
-
},{"./index":
|
|
32313
|
+
},{"./index":284}],286:[function(require,module,exports){
|
|
32408
32314
|
(function (factory) {
|
|
32409
32315
|
if (typeof module === "object" && typeof module.exports === "object") {
|
|
32410
32316
|
var v = factory(require, exports);
|
|
@@ -32439,7 +32345,7 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, ge
|
|
|
32439
32345
|
_a);
|
|
32440
32346
|
});
|
|
32441
32347
|
|
|
32442
|
-
},{}],
|
|
32348
|
+
},{}],287:[function(require,module,exports){
|
|
32443
32349
|
(function (process){(function (){
|
|
32444
32350
|
(function (factory) {
|
|
32445
32351
|
if (typeof module === "object" && typeof module.exports === "object") {
|
|
@@ -32586,7 +32492,7 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, ge
|
|
|
32586
32492
|
});
|
|
32587
32493
|
|
|
32588
32494
|
}).call(this)}).call(this,require('_process'))
|
|
32589
|
-
},{"../footprints-process-v6/buffer-size-helper":
|
|
32495
|
+
},{"../footprints-process-v6/buffer-size-helper":298,"../utils/env-var-parsing":319,"_process":187}],288:[function(require,module,exports){
|
|
32590
32496
|
(function (factory) {
|
|
32591
32497
|
if (typeof module === "object" && typeof module.exports === "object") {
|
|
32592
32498
|
var v = factory(require, exports);
|
|
@@ -32606,7 +32512,7 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, ge
|
|
|
32606
32512
|
})(FootprintsMapping = exports.FootprintsMapping || (exports.FootprintsMapping = {}));
|
|
32607
32513
|
});
|
|
32608
32514
|
|
|
32609
|
-
},{}],
|
|
32515
|
+
},{}],289:[function(require,module,exports){
|
|
32610
32516
|
(function (factory) {
|
|
32611
32517
|
if (typeof module === "object" && typeof module.exports === "object") {
|
|
32612
32518
|
var v = factory(require, exports);
|
|
@@ -32626,7 +32532,7 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, ge
|
|
|
32626
32532
|
})(ElementType = exports.ElementType || (exports.ElementType = {}));
|
|
32627
32533
|
});
|
|
32628
32534
|
|
|
32629
|
-
},{}],
|
|
32535
|
+
},{}],290:[function(require,module,exports){
|
|
32630
32536
|
(function (factory) {
|
|
32631
32537
|
if (typeof module === "object" && typeof module.exports === "object") {
|
|
32632
32538
|
var v = factory(require, exports);
|
|
@@ -32759,7 +32665,7 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, ge
|
|
|
32759
32665
|
exports.FileElement = FileElement;
|
|
32760
32666
|
});
|
|
32761
32667
|
|
|
32762
|
-
},{"../utils/validation-utils":
|
|
32668
|
+
},{"../utils/validation-utils":322}],291:[function(require,module,exports){
|
|
32763
32669
|
(function (factory) {
|
|
32764
32670
|
if (typeof module === "object" && typeof module.exports === "object") {
|
|
32765
32671
|
var v = factory(require, exports);
|
|
@@ -32829,7 +32735,7 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, ge
|
|
|
32829
32735
|
exports.IstanbulUniqueIdConverter = IstanbulUniqueIdConverter;
|
|
32830
32736
|
});
|
|
32831
32737
|
|
|
32832
|
-
},{"./contracts":
|
|
32738
|
+
},{"./contracts":289,"./unique-id-converter":294}],292:[function(require,module,exports){
|
|
32833
32739
|
(function (factory) {
|
|
32834
32740
|
if (typeof module === "object" && typeof module.exports === "object") {
|
|
32835
32741
|
var v = factory(require, exports);
|
|
@@ -32886,7 +32792,7 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, ge
|
|
|
32886
32792
|
}
|
|
32887
32793
|
});
|
|
32888
32794
|
|
|
32889
|
-
},{"../system-date":
|
|
32795
|
+
},{"../system-date":318,"../utils/files-utils":320,"./istanbul-unique-id-converter":291,"path":185}],293:[function(require,module,exports){
|
|
32890
32796
|
(function (factory) {
|
|
32891
32797
|
if (typeof module === "object" && typeof module.exports === "object") {
|
|
32892
32798
|
var v = factory(require, exports);
|
|
@@ -33070,7 +32976,7 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, ge
|
|
|
33070
32976
|
exports.OriginalModuleLoader = OriginalModuleLoader;
|
|
33071
32977
|
});
|
|
33072
32978
|
|
|
33073
|
-
},{"../source-maps-utils":
|
|
32979
|
+
},{"../source-maps-utils":315,"../utils/files-utils":320,"../utils/validation-utils":322}],294:[function(require,module,exports){
|
|
33074
32980
|
(function (factory) {
|
|
33075
32981
|
if (typeof module === "object" && typeof module.exports === "object") {
|
|
33076
32982
|
var v = factory(require, exports);
|
|
@@ -33282,78 +33188,7 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, ge
|
|
|
33282
33188
|
exports.UniqueIdConverter = UniqueIdConverter;
|
|
33283
33189
|
});
|
|
33284
33190
|
|
|
33285
|
-
},{"./contracts":
|
|
33286
|
-
(function (factory) {
|
|
33287
|
-
if (typeof module === "object" && typeof module.exports === "object") {
|
|
33288
|
-
var v = factory(require, exports);
|
|
33289
|
-
if (v !== undefined) module.exports = v;
|
|
33290
|
-
}
|
|
33291
|
-
else if (typeof define === "function" && define.amd) {
|
|
33292
|
-
define(["require", "exports"], factory);
|
|
33293
|
-
}
|
|
33294
|
-
})(function (require, exports) {
|
|
33295
|
-
"use strict";
|
|
33296
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
33297
|
-
exports.TestSelectionStatus = exports.EventTypes = void 0;
|
|
33298
|
-
var EventTypes;
|
|
33299
|
-
(function (EventTypes) {
|
|
33300
|
-
EventTypes["AgentStarted"] = "agentStarted";
|
|
33301
|
-
EventTypes["ExecutionIdStarted"] = "executionIdStarted";
|
|
33302
|
-
EventTypes["ExecutionIdEnded"] = "executionIdEnded";
|
|
33303
|
-
EventTypes["TestStart"] = "testStart";
|
|
33304
|
-
EventTypes["TestEnd"] = "testEnd";
|
|
33305
|
-
})(EventTypes = exports.EventTypes || (exports.EventTypes = {}));
|
|
33306
|
-
var TestSelectionStatus;
|
|
33307
|
-
(function (TestSelectionStatus) {
|
|
33308
|
-
TestSelectionStatus["RECOMMENDED_TESTS"] = "recommendedTests";
|
|
33309
|
-
TestSelectionStatus["DISABLED"] = "disabled";
|
|
33310
|
-
TestSelectionStatus["DISABLED_BY_CONFIGURATION"] = "disabledByConfiguration";
|
|
33311
|
-
TestSelectionStatus["RECOMMENDATIONS_NOT_AVAILABLE"] = "recommendationsNotAvailable";
|
|
33312
|
-
TestSelectionStatus["ERROR"] = "error";
|
|
33313
|
-
})(TestSelectionStatus = exports.TestSelectionStatus || (exports.TestSelectionStatus = {}));
|
|
33314
|
-
});
|
|
33315
|
-
|
|
33316
|
-
},{}],298:[function(require,module,exports){
|
|
33317
|
-
(function (factory) {
|
|
33318
|
-
if (typeof module === "object" && typeof module.exports === "object") {
|
|
33319
|
-
var v = factory(require, exports);
|
|
33320
|
-
if (v !== undefined) module.exports = v;
|
|
33321
|
-
}
|
|
33322
|
-
else if (typeof define === "function" && define.amd) {
|
|
33323
|
-
define(["require", "exports", "./events-contracts", "../system-date"], factory);
|
|
33324
|
-
}
|
|
33325
|
-
})(function (require, exports) {
|
|
33326
|
-
"use strict";
|
|
33327
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
33328
|
-
exports.EventsCreator = void 0;
|
|
33329
|
-
const events_contracts_1 = require("./events-contracts");
|
|
33330
|
-
const system_date_1 = require("../system-date");
|
|
33331
|
-
class EventsCreator {
|
|
33332
|
-
static createTestStartedEvent(executionId, framework, testName, duration) {
|
|
33333
|
-
const eventBase = this.createEvent(events_contracts_1.EventTypes.TestStart, executionId, framework);
|
|
33334
|
-
const startTimeStamp = (0, system_date_1.getSystemDateValueOf)() - duration;
|
|
33335
|
-
eventBase.localTime = startTimeStamp;
|
|
33336
|
-
return Object.assign(Object.assign({}, eventBase), { testName });
|
|
33337
|
-
}
|
|
33338
|
-
static createTestEndEvent(executionId, framework, testName, result, duration) {
|
|
33339
|
-
const eventBase = this.createEvent(events_contracts_1.EventTypes.TestEnd, executionId, framework);
|
|
33340
|
-
return Object.assign(Object.assign({}, eventBase), { result,
|
|
33341
|
-
duration,
|
|
33342
|
-
testName });
|
|
33343
|
-
}
|
|
33344
|
-
static createEvent(type, executionId, framework) {
|
|
33345
|
-
return {
|
|
33346
|
-
type,
|
|
33347
|
-
executionId,
|
|
33348
|
-
framework,
|
|
33349
|
-
localTime: (0, system_date_1.getSystemDateValueOf)()
|
|
33350
|
-
};
|
|
33351
|
-
}
|
|
33352
|
-
}
|
|
33353
|
-
exports.EventsCreator = EventsCreator;
|
|
33354
|
-
});
|
|
33355
|
-
|
|
33356
|
-
},{"../system-date":322,"./events-contracts":297}],299:[function(require,module,exports){
|
|
33191
|
+
},{"./contracts":289,"./file-element":290}],295:[function(require,module,exports){
|
|
33357
33192
|
var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
|
|
33358
33193
|
function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
|
|
33359
33194
|
return new (P || (P = Promise))(function (resolve, reject) {
|
|
@@ -33541,7 +33376,7 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, ge
|
|
|
33541
33376
|
EventsProcess.ITEMS_TO_DEQUE = 1000;
|
|
33542
33377
|
});
|
|
33543
33378
|
|
|
33544
|
-
},{"../system-date":
|
|
33379
|
+
},{"../system-date":318,"../utils/validation-utils":322}],296:[function(require,module,exports){
|
|
33545
33380
|
(function (factory) {
|
|
33546
33381
|
if (typeof module === "object" && typeof module.exports === "object") {
|
|
33547
33382
|
var v = factory(require, exports);
|
|
@@ -33597,7 +33432,7 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, ge
|
|
|
33597
33432
|
exports.BaseBrowserHitsConverter = BaseBrowserHitsConverter;
|
|
33598
33433
|
});
|
|
33599
33434
|
|
|
33600
|
-
},{"../../common/footprints-process-v6/hits-converter":
|
|
33435
|
+
},{"../../common/footprints-process-v6/hits-converter":303,"../utils/files-utils":320,"./location-formatter":305}],297:[function(require,module,exports){
|
|
33601
33436
|
(function (factory) {
|
|
33602
33437
|
if (typeof module === "object" && typeof module.exports === "object") {
|
|
33603
33438
|
var v = factory(require, exports);
|
|
@@ -33621,7 +33456,7 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, ge
|
|
|
33621
33456
|
exports.BrowserFootprintsBuffer = BrowserFootprintsBuffer;
|
|
33622
33457
|
});
|
|
33623
33458
|
|
|
33624
|
-
},{"../contracts":
|
|
33459
|
+
},{"../contracts":288,"./footprints-buffer":301}],298:[function(require,module,exports){
|
|
33625
33460
|
(function (factory) {
|
|
33626
33461
|
if (typeof module === "object" && typeof module.exports === "object") {
|
|
33627
33462
|
var v = factory(require, exports);
|
|
@@ -33667,7 +33502,7 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, ge
|
|
|
33667
33502
|
BufferSizeHelper.BYTES_IN_GB = 1024 * 1024 * 1024;
|
|
33668
33503
|
});
|
|
33669
33504
|
|
|
33670
|
-
},{}],
|
|
33505
|
+
},{}],299:[function(require,module,exports){
|
|
33671
33506
|
(function (factory) {
|
|
33672
33507
|
if (typeof module === "object" && typeof module.exports === "object") {
|
|
33673
33508
|
var v = factory(require, exports);
|
|
@@ -33700,7 +33535,7 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, ge
|
|
|
33700
33535
|
exports.CollectorFootprintsBuffer = CollectorFootprintsBuffer;
|
|
33701
33536
|
});
|
|
33702
33537
|
|
|
33703
|
-
},{"../agent-events/agent-events-contracts":
|
|
33538
|
+
},{"../agent-events/agent-events-contracts":267,"./browser-footprints-buffer":297}],300:[function(require,module,exports){
|
|
33704
33539
|
var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
|
|
33705
33540
|
function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
|
|
33706
33541
|
return new (P || (P = Promise))(function (resolve, reject) {
|
|
@@ -33770,7 +33605,7 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, ge
|
|
|
33770
33605
|
exports.CollectorFootprintsProcess = CollectorFootprintsProcess;
|
|
33771
33606
|
});
|
|
33772
33607
|
|
|
33773
|
-
},{".":
|
|
33608
|
+
},{".":304,"../no-op-state-tracker":314}],301:[function(require,module,exports){
|
|
33774
33609
|
(function (factory) {
|
|
33775
33610
|
if (typeof module === "object" && typeof module.exports === "object") {
|
|
33776
33611
|
var v = factory(require, exports);
|
|
@@ -33891,7 +33726,7 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, ge
|
|
|
33891
33726
|
FootprintsBuffer.BUFFER_FULL = 'bufferFull';
|
|
33892
33727
|
});
|
|
33893
33728
|
|
|
33894
|
-
},{"../agent-events/agent-events-contracts":
|
|
33729
|
+
},{"../agent-events/agent-events-contracts":267,"../agent-events/cockpit-notifier":274,"./buffer-size-helper":298,"events":168}],302:[function(require,module,exports){
|
|
33895
33730
|
(function (global){(function (){
|
|
33896
33731
|
var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
|
|
33897
33732
|
function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
|
|
@@ -34079,7 +33914,7 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, ge
|
|
|
34079
33914
|
});
|
|
34080
33915
|
|
|
34081
33916
|
}).call(this)}).call(this,typeof global !== "undefined" ? global : typeof self !== "undefined" ? self : typeof window !== "undefined" ? window : {})
|
|
34082
|
-
},{"../agent-events/cockpit-notifier":
|
|
33917
|
+
},{"../agent-events/cockpit-notifier":274,"../constants/sl-env-vars":287,"../coverage-elements/original-module-loader":293}],303:[function(require,module,exports){
|
|
34083
33918
|
(function (factory) {
|
|
34084
33919
|
if (typeof module === "object" && typeof module.exports === "object") {
|
|
34085
33920
|
var v = factory(require, exports);
|
|
@@ -34229,7 +34064,7 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, ge
|
|
|
34229
34064
|
HitsConverter.BRANCH_ID_DEL = '|';
|
|
34230
34065
|
});
|
|
34231
34066
|
|
|
34232
|
-
},{"../agent-events/cockpit-notifier":
|
|
34067
|
+
},{"../agent-events/cockpit-notifier":274,"../constants/sl-env-vars":287,"../coverage-elements/new-id-resolver":292,"../coverage-elements/original-module-loader":293,"./hits-collector":302}],304:[function(require,module,exports){
|
|
34233
34068
|
var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
|
|
34234
34069
|
function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
|
|
34235
34070
|
return new (P || (P = Promise))(function (resolve, reject) {
|
|
@@ -34303,6 +34138,12 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, ge
|
|
|
34303
34138
|
this.footprintsBuffer.agentConfig = updatedCfg;
|
|
34304
34139
|
});
|
|
34305
34140
|
}
|
|
34141
|
+
getBufferPacket() {
|
|
34142
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
34143
|
+
yield this.flushCurrentFootprints(true);
|
|
34144
|
+
return this.footprintsBuffer.toJson();
|
|
34145
|
+
});
|
|
34146
|
+
}
|
|
34306
34147
|
stopIfNeededAfterConfigChanged(updatedCfg) {
|
|
34307
34148
|
return __awaiter(this, void 0, void 0, function* () {
|
|
34308
34149
|
if (updatedCfg.sendFootprints.value === false || updatedCfg.enabled.value === false) {
|
|
@@ -34523,7 +34364,7 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, ge
|
|
|
34523
34364
|
FootprintsProcess.ALARM_FIRED = 'alarm';
|
|
34524
34365
|
});
|
|
34525
34366
|
|
|
34526
|
-
},{"../agent-events/agent-events-contracts":
|
|
34367
|
+
},{"../agent-events/agent-events-contracts":267,"../agent-events/agent-events-guard":269,"../agent-events/cockpit-notifier":274,"../constants/sl-env-vars":287,"../footprints-process/collection-interval":307,"../state-tracker":317,"./footprints-buffer":301}],305:[function(require,module,exports){
|
|
34527
34368
|
(function (factory) {
|
|
34528
34369
|
if (typeof module === "object" && typeof module.exports === "object") {
|
|
34529
34370
|
var v = factory(require, exports);
|
|
@@ -34557,7 +34398,7 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, ge
|
|
|
34557
34398
|
}
|
|
34558
34399
|
});
|
|
34559
34400
|
|
|
34560
|
-
},{}],
|
|
34401
|
+
},{}],306:[function(require,module,exports){
|
|
34561
34402
|
(function (process){(function (){
|
|
34562
34403
|
(function (factory) {
|
|
34563
34404
|
if (typeof module === "object" && typeof module.exports === "object") {
|
|
@@ -34598,7 +34439,7 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, ge
|
|
|
34598
34439
|
});
|
|
34599
34440
|
|
|
34600
34441
|
}).call(this)}).call(this,require('_process'))
|
|
34601
|
-
},{"_process":187}],
|
|
34442
|
+
},{"_process":187}],307:[function(require,module,exports){
|
|
34602
34443
|
(function (factory) {
|
|
34603
34444
|
if (typeof module === "object" && typeof module.exports === "object") {
|
|
34604
34445
|
var v = factory(require, exports);
|
|
@@ -34636,7 +34477,7 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, ge
|
|
|
34636
34477
|
exports.CollectionInterval = CollectionInterval;
|
|
34637
34478
|
});
|
|
34638
34479
|
|
|
34639
|
-
},{"../system-date":
|
|
34480
|
+
},{"../system-date":318}],308:[function(require,module,exports){
|
|
34640
34481
|
var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
|
|
34641
34482
|
function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
|
|
34642
34483
|
return new (P || (P = Promise))(function (resolve, reject) {
|
|
@@ -34983,7 +34824,7 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, ge
|
|
|
34983
34824
|
BackendProxy.DEFAULT_HTTP_ATTEMPT_INTERVAL = 5 * 1000;
|
|
34984
34825
|
});
|
|
34985
34826
|
|
|
34986
|
-
},{"../constants/constants":
|
|
34827
|
+
},{"../constants/constants":286,"../constants/sl-env-vars":287,"../utils/timer-utils":321,"../utils/validation-utils":322,"./contracts":309,"./entities-mapper":310,"./http-client":311,"./sl-routes":313}],309:[function(require,module,exports){
|
|
34987
34828
|
(function (factory) {
|
|
34988
34829
|
if (typeof module === "object" && typeof module.exports === "object") {
|
|
34989
34830
|
var v = factory(require, exports);
|
|
@@ -35089,7 +34930,7 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, ge
|
|
|
35089
34930
|
})(SealightsHaderValues = exports.SealightsHaderValues || (exports.SealightsHaderValues = {}));
|
|
35090
34931
|
});
|
|
35091
34932
|
|
|
35092
|
-
},{"../system-date":
|
|
34933
|
+
},{"../system-date":318}],310:[function(require,module,exports){
|
|
35093
34934
|
(function (factory) {
|
|
35094
34935
|
if (typeof module === "object" && typeof module.exports === "object") {
|
|
35095
34936
|
var v = factory(require, exports);
|
|
@@ -35115,7 +34956,7 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, ge
|
|
|
35115
34956
|
exports.EntitiesMapper = EntitiesMapper;
|
|
35116
34957
|
});
|
|
35117
34958
|
|
|
35118
|
-
},{"./contracts":
|
|
34959
|
+
},{"./contracts":309}],311:[function(require,module,exports){
|
|
35119
34960
|
(function (process,Buffer){(function (){
|
|
35120
34961
|
(function (factory) {
|
|
35121
34962
|
if (typeof module === "object" && typeof module.exports === "object") {
|
|
@@ -35334,7 +35175,7 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, ge
|
|
|
35334
35175
|
});
|
|
35335
35176
|
|
|
35336
35177
|
}).call(this)}).call(this,require('_process'),require("buffer").Buffer)
|
|
35337
|
-
},{"../../common/system-date":
|
|
35178
|
+
},{"../../common/system-date":318,"../constants/sl-env-vars":287,"../utils/validation-utils":322,"./contracts":309,"./http-verb":312,"_process":187,"buffer":166,"request":162,"zlib":164}],312:[function(require,module,exports){
|
|
35338
35179
|
(function (factory) {
|
|
35339
35180
|
if (typeof module === "object" && typeof module.exports === "object") {
|
|
35340
35181
|
var v = factory(require, exports);
|
|
@@ -35356,7 +35197,7 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, ge
|
|
|
35356
35197
|
})(HttpVerb = exports.HttpVerb || (exports.HttpVerb = {}));
|
|
35357
35198
|
});
|
|
35358
35199
|
|
|
35359
|
-
},{}],
|
|
35200
|
+
},{}],313:[function(require,module,exports){
|
|
35360
35201
|
(function (factory) {
|
|
35361
35202
|
if (typeof module === "object" && typeof module.exports === "object") {
|
|
35362
35203
|
var v = factory(require, exports);
|
|
@@ -35587,7 +35428,7 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, ge
|
|
|
35587
35428
|
SLRoutes.ACTIVE = 'active';
|
|
35588
35429
|
});
|
|
35589
35430
|
|
|
35590
|
-
},{"../constants/constants":
|
|
35431
|
+
},{"../constants/constants":286,"../utils/validation-utils":322}],314:[function(require,module,exports){
|
|
35591
35432
|
(function (factory) {
|
|
35592
35433
|
if (typeof module === "object" && typeof module.exports === "object") {
|
|
35593
35434
|
var v = factory(require, exports);
|
|
@@ -35619,7 +35460,7 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, ge
|
|
|
35619
35460
|
exports.NoopStateTracker = NoopStateTracker;
|
|
35620
35461
|
});
|
|
35621
35462
|
|
|
35622
|
-
},{"./state-tracker-fpv6":
|
|
35463
|
+
},{"./state-tracker-fpv6":316}],315:[function(require,module,exports){
|
|
35623
35464
|
(function (factory) {
|
|
35624
35465
|
if (typeof module === "object" && typeof module.exports === "object") {
|
|
35625
35466
|
var v = factory(require, exports);
|
|
@@ -35666,7 +35507,7 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, ge
|
|
|
35666
35507
|
exports.SourceMapsUtils = SourceMapsUtils;
|
|
35667
35508
|
});
|
|
35668
35509
|
|
|
35669
|
-
},{"fs":165,"source-map":211}],
|
|
35510
|
+
},{"fs":165,"source-map":211}],316:[function(require,module,exports){
|
|
35670
35511
|
(function (factory) {
|
|
35671
35512
|
if (typeof module === "object" && typeof module.exports === "object") {
|
|
35672
35513
|
var v = factory(require, exports);
|
|
@@ -35699,7 +35540,7 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, ge
|
|
|
35699
35540
|
exports.StateTrackerFpv6 = StateTrackerFpv6;
|
|
35700
35541
|
});
|
|
35701
35542
|
|
|
35702
|
-
},{"./state-tracker":
|
|
35543
|
+
},{"./state-tracker":317}],317:[function(require,module,exports){
|
|
35703
35544
|
var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
|
|
35704
35545
|
function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
|
|
35705
35546
|
return new (P || (P = Promise))(function (resolve, reject) {
|
|
@@ -35976,7 +35817,7 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, ge
|
|
|
35976
35817
|
StateTracker.NO_ACTIVE_EXECUTION = 'noActiveExecution';
|
|
35977
35818
|
});
|
|
35978
35819
|
|
|
35979
|
-
},{"./agent-events/agent-events-contracts":
|
|
35820
|
+
},{"./agent-events/agent-events-contracts":267,"./agent-events/cockpit-notifier":274,"./constants/sl-env-vars":287,"./utils/validation-utils":322,"events":168}],318:[function(require,module,exports){
|
|
35980
35821
|
(function (factory) {
|
|
35981
35822
|
if (typeof module === "object" && typeof module.exports === "object") {
|
|
35982
35823
|
var v = factory(require, exports);
|
|
@@ -36002,7 +35843,7 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, ge
|
|
|
36002
35843
|
exports.getSystemDateValueOf = getSystemDateValueOf;
|
|
36003
35844
|
});
|
|
36004
35845
|
|
|
36005
|
-
},{}],
|
|
35846
|
+
},{}],319:[function(require,module,exports){
|
|
36006
35847
|
(function (process){(function (){
|
|
36007
35848
|
(function (factory) {
|
|
36008
35849
|
if (typeof module === "object" && typeof module.exports === "object") {
|
|
@@ -36041,7 +35882,7 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, ge
|
|
|
36041
35882
|
});
|
|
36042
35883
|
|
|
36043
35884
|
}).call(this)}).call(this,require('_process'))
|
|
36044
|
-
},{"_process":187}],
|
|
35885
|
+
},{"_process":187}],320:[function(require,module,exports){
|
|
36045
35886
|
(function (factory) {
|
|
36046
35887
|
if (typeof module === "object" && typeof module.exports === "object") {
|
|
36047
35888
|
var v = factory(require, exports);
|
|
@@ -36095,7 +35936,7 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, ge
|
|
|
36095
35936
|
exports.FilesUtils = FilesUtils;
|
|
36096
35937
|
});
|
|
36097
35938
|
|
|
36098
|
-
},{"fs":165,"path":185}],
|
|
35939
|
+
},{"fs":165,"path":185}],321:[function(require,module,exports){
|
|
36099
35940
|
(function (factory) {
|
|
36100
35941
|
if (typeof module === "object" && typeof module.exports === "object") {
|
|
36101
35942
|
var v = factory(require, exports);
|
|
@@ -36116,7 +35957,7 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, ge
|
|
|
36116
35957
|
exports.TimerUtils = TimerUtils;
|
|
36117
35958
|
});
|
|
36118
35959
|
|
|
36119
|
-
},{}],
|
|
35960
|
+
},{}],322:[function(require,module,exports){
|
|
36120
35961
|
(function (factory) {
|
|
36121
35962
|
if (typeof module === "object" && typeof module.exports === "object") {
|
|
36122
35963
|
var v = factory(require, exports);
|
|
@@ -36139,11 +35980,17 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, ge
|
|
|
36139
35980
|
throw new Error(`${paramName} ${constants_1.Constants.Messages.CANNOT_BE_EMPTY_STRING}.`);
|
|
36140
35981
|
}
|
|
36141
35982
|
}
|
|
35983
|
+
static verifyNotNullOrEmptyMultiParams(params) {
|
|
35984
|
+
for (const param of params) {
|
|
35985
|
+
const { value, paramName } = param;
|
|
35986
|
+
ValidationUtils.verifyNotNullOrEmpty(value, paramName);
|
|
35987
|
+
}
|
|
35988
|
+
}
|
|
36142
35989
|
}
|
|
36143
35990
|
exports.ValidationUtils = ValidationUtils;
|
|
36144
35991
|
});
|
|
36145
35992
|
|
|
36146
|
-
},{"../constants/constants":
|
|
35993
|
+
},{"../constants/constants":286}],323:[function(require,module,exports){
|
|
36147
35994
|
(function (factory) {
|
|
36148
35995
|
if (typeof module === "object" && typeof module.exports === "object") {
|
|
36149
35996
|
var v = factory(require, exports);
|
|
@@ -36250,7 +36097,7 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, ge
|
|
|
36250
36097
|
exports.Watchdog = Watchdog;
|
|
36251
36098
|
});
|
|
36252
36099
|
|
|
36253
|
-
},{"events":168}],
|
|
36100
|
+
},{"events":168}],324:[function(require,module,exports){
|
|
36254
36101
|
/**
|
|
36255
36102
|
* The code was extracted from:
|
|
36256
36103
|
* https://github.com/davidchambers/Base64.js
|
|
@@ -36290,7 +36137,7 @@ function polyfill (input) {
|
|
|
36290
36137
|
|
|
36291
36138
|
module.exports = typeof window !== 'undefined' && window.atob && window.atob.bind(window) || polyfill;
|
|
36292
36139
|
|
|
36293
|
-
},{}],
|
|
36140
|
+
},{}],325:[function(require,module,exports){
|
|
36294
36141
|
var atob = require('./atob');
|
|
36295
36142
|
|
|
36296
36143
|
function b64DecodeUnicode(str) {
|
|
@@ -36325,7 +36172,7 @@ module.exports = function(str) {
|
|
|
36325
36172
|
}
|
|
36326
36173
|
};
|
|
36327
36174
|
|
|
36328
|
-
},{"./atob":
|
|
36175
|
+
},{"./atob":324}],326:[function(require,module,exports){
|
|
36329
36176
|
'use strict';
|
|
36330
36177
|
|
|
36331
36178
|
var base64_url_decode = require('./base64_url_decode');
|
|
@@ -36353,7 +36200,7 @@ module.exports = function (token,options) {
|
|
|
36353
36200
|
|
|
36354
36201
|
module.exports.InvalidTokenError = InvalidTokenError;
|
|
36355
36202
|
|
|
36356
|
-
},{"./base64_url_decode":
|
|
36203
|
+
},{"./base64_url_decode":325}],327:[function(require,module,exports){
|
|
36357
36204
|
var v1 = require('./v1');
|
|
36358
36205
|
var v4 = require('./v4');
|
|
36359
36206
|
|
|
@@ -36363,7 +36210,7 @@ uuid.v4 = v4;
|
|
|
36363
36210
|
|
|
36364
36211
|
module.exports = uuid;
|
|
36365
36212
|
|
|
36366
|
-
},{"./v1":
|
|
36213
|
+
},{"./v1":330,"./v4":331}],328:[function(require,module,exports){
|
|
36367
36214
|
/**
|
|
36368
36215
|
* Convert array of 16 byte values to UUID string format of the form:
|
|
36369
36216
|
* XXXXXXXX-XXXX-XXXX-XXXX-XXXXXXXXXXXX
|
|
@@ -36388,7 +36235,7 @@ function bytesToUuid(buf, offset) {
|
|
|
36388
36235
|
|
|
36389
36236
|
module.exports = bytesToUuid;
|
|
36390
36237
|
|
|
36391
|
-
},{}],
|
|
36238
|
+
},{}],329:[function(require,module,exports){
|
|
36392
36239
|
(function (global){(function (){
|
|
36393
36240
|
// Unique ID creation requires a high quality random # generator. In the
|
|
36394
36241
|
// browser this is a little complicated due to unknown quality of Math.random()
|
|
@@ -36425,7 +36272,7 @@ if (!rng) {
|
|
|
36425
36272
|
module.exports = rng;
|
|
36426
36273
|
|
|
36427
36274
|
}).call(this)}).call(this,typeof global !== "undefined" ? global : typeof self !== "undefined" ? self : typeof window !== "undefined" ? window : {})
|
|
36428
|
-
},{}],
|
|
36275
|
+
},{}],330:[function(require,module,exports){
|
|
36429
36276
|
var rng = require('./lib/rng');
|
|
36430
36277
|
var bytesToUuid = require('./lib/bytesToUuid');
|
|
36431
36278
|
|
|
@@ -36527,7 +36374,7 @@ function v1(options, buf, offset) {
|
|
|
36527
36374
|
|
|
36528
36375
|
module.exports = v1;
|
|
36529
36376
|
|
|
36530
|
-
},{"./lib/bytesToUuid":
|
|
36377
|
+
},{"./lib/bytesToUuid":328,"./lib/rng":329}],331:[function(require,module,exports){
|
|
36531
36378
|
var rng = require('./lib/rng');
|
|
36532
36379
|
var bytesToUuid = require('./lib/bytesToUuid');
|
|
36533
36380
|
|
|
@@ -36558,4 +36405,4 @@ function v4(options, buf, offset) {
|
|
|
36558
36405
|
|
|
36559
36406
|
module.exports = v4;
|
|
36560
36407
|
|
|
36561
|
-
},{"./lib/bytesToUuid":
|
|
36408
|
+
},{"./lib/bytesToUuid":328,"./lib/rng":329}]},{},[217]);
|