slnodejs 6.1.156 → 6.1.166

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.
@@ -43067,7 +43067,7 @@ var __generator = (this && this.__generator) || function (thisArg, body) {
43067
43067
  this.footprintsProcess.stop(function () { });
43068
43068
  };
43069
43069
  BrowserAgentInstanceFpv6.prototype.submitFootprints = function () {
43070
- this.footprintsProcess.submitQueuedFootprints();
43070
+ this.footprintsProcess.submitQueuedFootprints(this.stateTracker.currentExecution);
43071
43071
  };
43072
43072
  BrowserAgentInstanceFpv6.prototype.submitFootprintsSync = function () {
43073
43073
  return __awaiter(this, void 0, void 0, function () {
@@ -43079,7 +43079,7 @@ var __generator = (this && this.__generator) || function (thisArg, body) {
43079
43079
  return [4, this.footprintsProcess.flushCurrentFootprints()];
43080
43080
  case 1:
43081
43081
  _a.sent();
43082
- return [4, this.footprintsProcess.submitQueuedFootprints()];
43082
+ return [4, this.footprintsProcess.submitQueuedFootprints(this.stateTracker.currentExecution)];
43083
43083
  case 2:
43084
43084
  _a.sent();
43085
43085
  return [3, 4];
@@ -46345,13 +46345,13 @@ var __spreadArrays = (this && this.__spreadArrays) || function () {
46345
46345
  });
46346
46346
  };
46347
46347
  AgentEventsController.prototype.submitPingEvent = function () {
46348
- return this.submitEvent(agent_events_conracts_1.AgentEventCode.AGENT_PING);
46348
+ return this.submitEvent(agent_events_conracts_1.AgentEventCode.AGENT_PING, { agentInfo: { labId: this.agentConfig.labId.value } });
46349
46349
  };
46350
- AgentEventsController.prototype.submitEvent = function (code) {
46350
+ AgentEventsController.prototype.submitEvent = function (code, data) {
46351
46351
  var _this = this;
46352
46352
  this.submittedEventsMap.set(code, true);
46353
46353
  this._logger.debug("About to send event with code '" + code + "', current time: " + system_date_1.getSystemDateValueOf());
46354
- var event = this.buildEvent(code);
46354
+ var event = this.buildEvent(code, data);
46355
46355
  this.submitAgentEventRequest(event).then(function () {
46356
46356
  return _this._logger.debug("Event with code '" + code + "' submitted successfully");
46357
46357
  });
@@ -49569,15 +49569,15 @@ var __generator = (this && this.__generator) || function (thisArg, body) {
49569
49569
  this.logger = logger;
49570
49570
  this.delegateEvents();
49571
49571
  }
49572
- FootprintsProcess.prototype.enqueueCurrentFootprints = function (executionId, testName, executionBsid, isFinalFootprints) {
49572
+ FootprintsProcess.prototype.enqueueCurrentFootprints = function (execution, testName, isFinalFootprints) {
49573
49573
  if (isFinalFootprints === void 0) { isFinalFootprints = false; }
49574
- this.currentExecutionBsid = executionBsid;
49574
+ this.currentExecutionBsid = execution.buildSessionId;
49575
49575
  this.collectionInterval.next();
49576
49576
  var hitFilesData = this.hitsCollector.getHitElements();
49577
49577
  if (hitFilesData.length) {
49578
49578
  this.logger.info("Collecting hits for '" + hitFilesData.length + "' files");
49579
49579
  var convertedHits = this.hitsConverter.convertHits(hitFilesData);
49580
- this.footprintsBuffer.addHit(convertedHits, this.collectionInterval.toJson(), executionId, testName, this.isInitFootprints(), isFinalFootprints);
49580
+ this.footprintsBuffer.addHit(convertedHits, this.collectionInterval.toJson(), execution.executionId, testName, this.isInitFootprints(), isFinalFootprints);
49581
49581
  }
49582
49582
  else {
49583
49583
  this.logger.info('No files were hits, not collecting footprints');
@@ -49602,7 +49602,7 @@ var __generator = (this && this.__generator) || function (thisArg, body) {
49602
49602
  FootprintsProcess.prototype.ensureKeepaliveThreadRunning = function () {
49603
49603
  this.keepaliveWatchdog.start();
49604
49604
  };
49605
- FootprintsProcess.prototype.submitQueuedFootprints = function () {
49605
+ FootprintsProcess.prototype.submitQueuedFootprints = function (execution) {
49606
49606
  return __awaiter(this, void 0, void 0, function () {
49607
49607
  var packet, e_1;
49608
49608
  return __generator(this, function (_a) {
@@ -49617,7 +49617,7 @@ var __generator = (this && this.__generator) || function (thisArg, body) {
49617
49617
  _a.label = 1;
49618
49618
  case 1:
49619
49619
  _a.trys.push([1, 3, 4, 5]);
49620
- return [4, this.backendProxy.submitFootprintsV6(packet, this.currentExecutionBsid, this.stateTracker.getTestStage(), this.cfg.buildSessionId.value)];
49620
+ return [4, this.backendProxy.submitFootprintsV6(packet, execution.buildSessionId, execution.testStage, this.cfg.buildSessionId.value)];
49621
49621
  case 2:
49622
49622
  _a.sent();
49623
49623
  this.logger.info("Footprints packet submitted successfully. packet contains " + packet.methods.length + " methods, " + packet.branches.length + " branches in " + packet.executions.length + " executions");
@@ -49694,14 +49694,14 @@ var __generator = (this && this.__generator) || function (thisArg, body) {
49694
49694
  }
49695
49695
  this.logger.debug('Test identifier changed, start enqueuing footprints process.');
49696
49696
  var prevTestIdentifierParts = state_tracker_1.StateTracker.splitTestIdToExecutionAndTestName(previousTestIdentifier);
49697
- this.enqueueCurrentFootprints(this.stateTracker.currentExecution.executionId, prevTestIdentifierParts.testName, this.stateTracker.currentExecution.buildSessionId);
49697
+ this.enqueueCurrentFootprints(this.stateTracker.currentExecution, prevTestIdentifierParts.testName);
49698
49698
  }
49699
49699
  };
49700
49700
  FootprintsProcess.prototype.delegateEvents = function () {
49701
49701
  var _this = this;
49702
49702
  this.sendToServerWatchdog.on(FootprintsProcess.ALARM_FIRED, function () {
49703
49703
  _this.logger.debug('Start submitting footprints, triggered by send to server watchdog.');
49704
- _this.submitQueuedFootprints();
49704
+ _this.submitQueuedFootprints(_this.stateTracker.currentExecution);
49705
49705
  });
49706
49706
  this.keepaliveWatchdog.on(FootprintsProcess.ALARM_FIRED, function () {
49707
49707
  if (!_this.hasOngoingRequests() && !_this.footprintsBuffer.hasHitsInBuffer()) {
@@ -49709,7 +49709,7 @@ var __generator = (this && this.__generator) || function (thisArg, body) {
49709
49709
  }
49710
49710
  });
49711
49711
  this.footprintsBuffer.on(footprints_buffer_1.FootprintsBuffer.BUFFER_FULL, function () {
49712
- _this.submitQueuedFootprints();
49712
+ _this.submitQueuedFootprints(_this.stateTracker.currentExecution);
49713
49713
  });
49714
49714
  this.stateTracker.on(state_tracker_1.StateTracker.EXECUTION_BSID_CHANGED, function (prevExecution, newBuildSession) {
49715
49715
  _this.logger.warn("Execution points to different build session '" + newBuildSession + "'. Collecting and submitting previous footprints");
@@ -49717,17 +49717,20 @@ var __generator = (this && this.__generator) || function (thisArg, body) {
49717
49717
  });
49718
49718
  this.stateTracker.on(state_tracker_1.StateTracker.EXECUTION_ID_CHANGED, function (prevExecution, newExecutionId) {
49719
49719
  _this.logger.warn("Execution id changed to'" + newExecutionId + "'. Collecting previous footprints");
49720
- _this.enqueueCurrentFootprints(prevExecution.executionId, null, prevExecution.buildSessionId);
49720
+ _this.enqueueCurrentFootprints(prevExecution, null);
49721
49721
  });
49722
49722
  this.stateTracker.on(state_tracker_1.StateTracker.TEST_STAGE_CHANGED, function (prevExecution, newTestStage) {
49723
49723
  _this.logger.warn("Execution points to different test stage '" + newTestStage + "'. Collecting and submitting previous footprints");
49724
49724
  _this.enqueueAndSubmit(prevExecution);
49725
49725
  });
49726
+ this.stateTracker.on(state_tracker_1.StateTracker.EXECUTION_STATUS_PENDING_DELETE, function (execution) {
49727
+ _this.enqueueAndSubmit(execution);
49728
+ });
49726
49729
  };
49727
49730
  FootprintsProcess.prototype.enqueueAndSubmit = function (executionData, isFinalFootprints) {
49728
49731
  if (isFinalFootprints === void 0) { isFinalFootprints = false; }
49729
- this.enqueueCurrentFootprints(executionData.executionId, null, executionData.buildSessionId, isFinalFootprints);
49730
- this.submitQueuedFootprints();
49732
+ this.enqueueCurrentFootprints(executionData, null, isFinalFootprints);
49733
+ this.submitQueuedFootprints(executionData);
49731
49734
  };
49732
49735
  FootprintsProcess.prototype.flushCurrentFootprints = function (isFinalFootprints) {
49733
49736
  if (isFinalFootprints === void 0) { isFinalFootprints = false; }
@@ -49735,11 +49738,11 @@ var __generator = (this && this.__generator) || function (thisArg, body) {
49735
49738
  if (currentTestIdentifier) {
49736
49739
  var testIdentifierParts = state_tracker_1.StateTracker.splitTestIdToExecutionAndTestName(currentTestIdentifier);
49737
49740
  this.logger.debug('Enqueue footprints interval - start enqueuing process. currentTestIdentifier: \'%s\'', currentTestIdentifier);
49738
- this.enqueueCurrentFootprints(this.stateTracker.currentExecution.executionId, testIdentifierParts.testName, this.stateTracker.currentExecution.buildSessionId, isFinalFootprints);
49741
+ this.enqueueCurrentFootprints(this.stateTracker.currentExecution, testIdentifierParts.testName, isFinalFootprints);
49739
49742
  }
49740
49743
  else if (this.stateTracker.shouldCollectHits()) {
49741
49744
  this.logger.debug('Enqueue footprints interval - start enqueuing process. anonymous footprints');
49742
- this.enqueueCurrentFootprints(this.stateTracker.currentExecution.executionId, null, this.stateTracker.currentExecution.buildSessionId, isFinalFootprints);
49745
+ this.enqueueCurrentFootprints(this.stateTracker.currentExecution, null, isFinalFootprints);
49743
49746
  }
49744
49747
  else {
49745
49748
  this.logger.info('Enqueue footprints interval - no active execution. skip enqueuing process.');
@@ -51195,7 +51198,7 @@ var __generator = (this && this.__generator) || function (thisArg, body) {
51195
51198
  return this._currentExecution != null;
51196
51199
  };
51197
51200
  StateTracker.prototype.shouldCollectHits = function () {
51198
- return this.hasMappingAtServer();
51201
+ return this.hasMappingAtServer() && this.currentExecution.executionId !== this.pendingDeleteExecId;
51199
51202
  };
51200
51203
  Object.defineProperty(StateTracker.prototype, "currentExecution", {
51201
51204
  get: function () {
@@ -51267,7 +51270,8 @@ var __generator = (this && this.__generator) || function (thisArg, body) {
51267
51270
  }
51268
51271
  };
51269
51272
  StateTracker.prototype.getTestStage = function () {
51270
- return (this.currentExecution && this.currentExecution.testStage) || this.cfg.testStage.value;
51273
+ var _a;
51274
+ return (_a = this.currentExecution) === null || _a === void 0 ? void 0 : _a.testStage;
51271
51275
  };
51272
51276
  StateTracker.splitTestIdToExecutionAndTestName = function (testId) {
51273
51277
  testId = testId || '';
@@ -51318,6 +51322,14 @@ var __generator = (this && this.__generator) || function (thisArg, body) {
51318
51322
  if (!executionData) {
51319
51323
  return;
51320
51324
  }
51325
+ if (executionData.status == StateTracker.EXECUTION_STATUS_PENDING_DELETE) {
51326
+ if (executionData.executionId !== this.pendingDeleteExecId) {
51327
+ this.currentExecution = executionData;
51328
+ this.emit(StateTracker.EXECUTION_STATUS_PENDING_DELETE, executionData);
51329
+ this.pendingDeleteExecId = executionData.executionId;
51330
+ }
51331
+ return;
51332
+ }
51321
51333
  if (!this.currentExecution) {
51322
51334
  return;
51323
51335
  }
@@ -65990,6 +66002,10 @@ module.exports={
65990
66002
  "application/cfw": {
65991
66003
  "source": "iana"
65992
66004
  },
66005
+ "application/city+json": {
66006
+ "source": "iana",
66007
+ "compressible": true
66008
+ },
65993
66009
  "application/clr": {
65994
66010
  "source": "iana"
65995
66011
  },
@@ -66033,7 +66049,8 @@ module.exports={
66033
66049
  },
66034
66050
  "application/cpl+xml": {
66035
66051
  "source": "iana",
66036
- "compressible": true
66052
+ "compressible": true,
66053
+ "extensions": ["cpl"]
66037
66054
  },
66038
66055
  "application/csrattrs": {
66039
66056
  "source": "iana"
@@ -66068,6 +66085,11 @@ module.exports={
66068
66085
  "compressible": true,
66069
66086
  "extensions": ["mpd"]
66070
66087
  },
66088
+ "application/dash-patch+xml": {
66089
+ "source": "iana",
66090
+ "compressible": true,
66091
+ "extensions": ["mpp"]
66092
+ },
66071
66093
  "application/dashdelta": {
66072
66094
  "source": "iana"
66073
66095
  },
@@ -66608,7 +66630,8 @@ module.exports={
66608
66630
  },
66609
66631
  "application/media-policy-dataset+xml": {
66610
66632
  "source": "iana",
66611
- "compressible": true
66633
+ "compressible": true,
66634
+ "extensions": ["mpf"]
66612
66635
  },
66613
66636
  "application/media_control+xml": {
66614
66637
  "source": "iana",
@@ -66764,6 +66787,9 @@ module.exports={
66764
66787
  "application/oauth-authz-req+jwt": {
66765
66788
  "source": "iana"
66766
66789
  },
66790
+ "application/oblivious-dns-message": {
66791
+ "source": "iana"
66792
+ },
66767
66793
  "application/ocsp-request": {
66768
66794
  "source": "iana"
66769
66795
  },
@@ -66856,7 +66882,8 @@ module.exports={
66856
66882
  "extensions": ["pgp"]
66857
66883
  },
66858
66884
  "application/pgp-keys": {
66859
- "source": "iana"
66885
+ "source": "iana",
66886
+ "extensions": ["asc"]
66860
66887
  },
66861
66888
  "application/pgp-signature": {
66862
66889
  "source": "iana",
@@ -68387,6 +68414,10 @@ module.exports={
68387
68414
  "application/vnd.ecip.rlp": {
68388
68415
  "source": "iana"
68389
68416
  },
68417
+ "application/vnd.eclipse.ditto+json": {
68418
+ "source": "iana",
68419
+ "compressible": true
68420
+ },
68390
68421
  "application/vnd.ecowin.chart": {
68391
68422
  "source": "iana",
68392
68423
  "extensions": ["mag"]
@@ -68544,6 +68575,10 @@ module.exports={
68544
68575
  "application/vnd.etsi.tsl.der": {
68545
68576
  "source": "iana"
68546
68577
  },
68578
+ "application/vnd.eu.kasparian.car+json": {
68579
+ "source": "iana",
68580
+ "compressible": true
68581
+ },
68547
68582
  "application/vnd.eudora.data": {
68548
68583
  "source": "iana"
68549
68584
  },
@@ -68574,6 +68609,10 @@ module.exports={
68574
68609
  "application/vnd.f-secure.mobile": {
68575
68610
  "source": "iana"
68576
68611
  },
68612
+ "application/vnd.familysearch.gedcom+zip": {
68613
+ "source": "iana",
68614
+ "compressible": false
68615
+ },
68577
68616
  "application/vnd.fastcopy-disk-image": {
68578
68617
  "source": "iana"
68579
68618
  },
@@ -68864,6 +68903,16 @@ module.exports={
68864
68903
  "source": "iana",
68865
68904
  "extensions": ["les"]
68866
68905
  },
68906
+ "application/vnd.hl7cda+xml": {
68907
+ "source": "iana",
68908
+ "charset": "UTF-8",
68909
+ "compressible": true
68910
+ },
68911
+ "application/vnd.hl7v2+xml": {
68912
+ "source": "iana",
68913
+ "charset": "UTF-8",
68914
+ "compressible": true
68915
+ },
68867
68916
  "application/vnd.hp-hpgl": {
68868
68917
  "source": "iana",
68869
68918
  "extensions": ["hpgl"]
@@ -69277,6 +69326,10 @@ module.exports={
69277
69326
  "source": "iana",
69278
69327
  "compressible": true
69279
69328
  },
69329
+ "application/vnd.maxar.archive.3tz+zip": {
69330
+ "source": "iana",
69331
+ "compressible": false
69332
+ },
69280
69333
  "application/vnd.maxmind.maxmind-db": {
69281
69334
  "source": "iana"
69282
69335
  },
@@ -70897,6 +70950,10 @@ module.exports={
70897
70950
  "source": "iana",
70898
70951
  "compressible": true
70899
70952
  },
70953
+ "application/vnd.syft+json": {
70954
+ "source": "iana",
70955
+ "compressible": true
70956
+ },
70900
70957
  "application/vnd.symbian.install": {
70901
70958
  "source": "apache",
70902
70959
  "extensions": ["sis","sisx"]
@@ -71287,7 +71344,8 @@ module.exports={
71287
71344
  },
71288
71345
  "application/watcherinfo+xml": {
71289
71346
  "source": "iana",
71290
- "compressible": true
71347
+ "compressible": true,
71348
+ "extensions": ["wif"]
71291
71349
  },
71292
71350
  "application/webpush-options+json": {
71293
71351
  "source": "iana",
@@ -72707,10 +72765,12 @@ module.exports={
72707
72765
  "extensions": ["apng"]
72708
72766
  },
72709
72767
  "image/avci": {
72710
- "source": "iana"
72768
+ "source": "iana",
72769
+ "extensions": ["avci"]
72711
72770
  },
72712
72771
  "image/avcs": {
72713
- "source": "iana"
72772
+ "source": "iana",
72773
+ "extensions": ["avcs"]
72714
72774
  },
72715
72775
  "image/avif": {
72716
72776
  "source": "iana",
@@ -74214,6 +74274,7 @@ module.exports={
74214
74274
  /*!
74215
74275
  * mime-db
74216
74276
  * Copyright(c) 2014 Jonathan Ong
74277
+ * Copyright(c) 2015-2022 Douglas Christopher Wilson
74217
74278
  * MIT Licensed
74218
74279
  */
74219
74280