slnodejs 6.1.217 → 6.1.219

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.
@@ -23622,7 +23622,7 @@ module.exports={
23622
23622
  "_resolved": "https://registry.npmjs.org/elliptic/-/elliptic-6.5.4.tgz",
23623
23623
  "_shasum": "da37cebd31e79a1367e941b592ed1fbebd58abbb",
23624
23624
  "_spec": "elliptic@^6.5.3",
23625
- "_where": "/var/lib/jenkins/workspace/.OnPremise.Agent.JavaScript_main/browser-agent/node_modules/browserify-sign",
23625
+ "_where": "/var/lib/jenkins/workspace/.OnPremise.Agent.JavaScript_main@2/browser-agent/node_modules/browserify-sign",
23626
23626
  "author": {
23627
23627
  "name": "Fedor Indutny",
23628
23628
  "email": "fedor@indutny.com"
@@ -49195,42 +49195,6 @@ var __extends = (this && this.__extends) || (function () {
49195
49195
 
49196
49196
  },{"../agent-events/agent-events-conracts":289,"../agent-events/cockpit-notifier":294,"./buffer-size-helper":316,"events":110}],318:[function(require,module,exports){
49197
49197
  (function (global){(function (){
49198
- var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
49199
- function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
49200
- return new (P || (P = Promise))(function (resolve, reject) {
49201
- function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
49202
- function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
49203
- function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
49204
- step((generator = generator.apply(thisArg, _arguments || [])).next());
49205
- });
49206
- };
49207
- var __generator = (this && this.__generator) || function (thisArg, body) {
49208
- var _ = { label: 0, sent: function() { if (t[0] & 1) throw t[1]; return t[1]; }, trys: [], ops: [] }, f, y, t, g;
49209
- return g = { next: verb(0), "throw": verb(1), "return": verb(2) }, typeof Symbol === "function" && (g[Symbol.iterator] = function() { return this; }), g;
49210
- function verb(n) { return function (v) { return step([n, v]); }; }
49211
- function step(op) {
49212
- if (f) throw new TypeError("Generator is already executing.");
49213
- while (_) try {
49214
- if (f = 1, y && (t = op[0] & 2 ? y["return"] : op[0] ? y["throw"] || ((t = y["return"]) && t.call(y), 0) : y.next) && !(t = t.call(y, op[1])).done) return t;
49215
- if (y = 0, t) op = [op[0] & 2, t.value];
49216
- switch (op[0]) {
49217
- case 0: case 1: t = op; break;
49218
- case 4: _.label++; return { value: op[1], done: false };
49219
- case 5: _.label++; y = op[1]; op = [0]; continue;
49220
- case 7: op = _.ops.pop(); _.trys.pop(); continue;
49221
- default:
49222
- if (!(t = _.trys, t = t.length > 0 && t[t.length - 1]) && (op[0] === 6 || op[0] === 2)) { _ = 0; continue; }
49223
- if (op[0] === 3 && (!t || (op[1] > t[0] && op[1] < t[3]))) { _.label = op[1]; break; }
49224
- if (op[0] === 6 && _.label < t[1]) { _.label = t[1]; t = op; break; }
49225
- if (t && _.label < t[2]) { _.label = t[2]; _.ops.push(op); break; }
49226
- if (t[2]) _.ops.pop();
49227
- _.trys.pop(); continue;
49228
- }
49229
- op = body.call(thisArg, _);
49230
- } catch (e) { op = [6, e]; y = 0; } finally { f = t = 0; }
49231
- if (op[0] & 5) throw op[1]; return { value: op[0] ? op[1] : void 0, done: true };
49232
- }
49233
- };
49234
49198
  (function (factory) {
49235
49199
  if (typeof module === "object" && typeof module.exports === "object") {
49236
49200
  var v = factory(require, exports);
@@ -49253,26 +49217,21 @@ var __generator = (this && this.__generator) || function (thisArg, body) {
49253
49217
  this.latestCoverageSnapshot = {};
49254
49218
  }
49255
49219
  HitsCollector.prototype.getHitElements = function () {
49256
- return __awaiter(this, void 0, void 0, function () {
49257
- var hitFilesData, globalCoverage, filename, _a, fileCoverageSnapshot, currentFileCoverage, shouldResolveRelativePath, hitMethods, hitBranches;
49258
- return __generator(this, function (_b) {
49259
- hitFilesData = [];
49260
- globalCoverage = this.getGlobalCoverageObject();
49261
- if (sl_env_vars_1.SlEnvVars.isUseNewUniqueId()) {
49262
- new original_module_loader_1.OriginalModuleLoader(globalCoverage, this.logger).load();
49263
- }
49264
- for (filename in globalCoverage) {
49265
- _a = this.getFileCoverageObjects(filename), fileCoverageSnapshot = _a.fileCoverageSnapshot, currentFileCoverage = _a.currentFileCoverage, shouldResolveRelativePath = _a.shouldResolveRelativePath;
49266
- hitMethods = this.getHitMethods(currentFileCoverage, fileCoverageSnapshot);
49267
- hitBranches = this.getHitBranches(currentFileCoverage, fileCoverageSnapshot);
49268
- if (hitMethods.length || hitBranches.length) {
49269
- hitFilesData.push({ filename: filename, hitMethods: hitMethods, hitBranches: hitBranches, shouldResolveRelativePath: shouldResolveRelativePath });
49270
- }
49271
- }
49272
- this.updateCoverageSnapshot(globalCoverage);
49273
- return [2, hitFilesData];
49274
- });
49275
- });
49220
+ var hitFilesData = [];
49221
+ var globalCoverage = this.getGlobalCoverageObject();
49222
+ if (sl_env_vars_1.SlEnvVars.isUseNewUniqueId()) {
49223
+ new original_module_loader_1.OriginalModuleLoader(globalCoverage, this.logger).load();
49224
+ }
49225
+ for (var filename in globalCoverage) {
49226
+ var _a = this.getFileCoverageObjects(filename), fileCoverageSnapshot = _a.fileCoverageSnapshot, currentFileCoverage = _a.currentFileCoverage, shouldResolveRelativePath = _a.shouldResolveRelativePath;
49227
+ var hitMethods = this.getHitMethods(currentFileCoverage, fileCoverageSnapshot);
49228
+ var hitBranches = this.getHitBranches(currentFileCoverage, fileCoverageSnapshot);
49229
+ if (hitMethods.length || hitBranches.length) {
49230
+ hitFilesData.push({ filename: filename, hitMethods: hitMethods, hitBranches: hitBranches, shouldResolveRelativePath: shouldResolveRelativePath });
49231
+ }
49232
+ }
49233
+ this.updateCoverageSnapshot(globalCoverage);
49234
+ return hitFilesData;
49276
49235
  };
49277
49236
  Object.defineProperty(HitsCollector.prototype, "latestCoverageSnapshot", {
49278
49237
  get: function () {
@@ -49655,33 +49614,22 @@ var __generator = (this && this.__generator) || function (thisArg, body) {
49655
49614
  }
49656
49615
  FootprintsProcess.prototype.enqueueCurrentFootprints = function (execution, testName, isFinalFootprints) {
49657
49616
  if (isFinalFootprints === void 0) { isFinalFootprints = false; }
49658
- return __awaiter(this, void 0, void 0, function () {
49659
- var hitFilesData, convertedHits;
49660
- return __generator(this, function (_a) {
49661
- switch (_a.label) {
49662
- case 0:
49663
- this.currentExecutionBsid = execution.buildSessionId;
49664
- this.collectionInterval.next();
49665
- return [4, this.hitsCollector.getHitElements()];
49666
- case 1:
49667
- hitFilesData = _a.sent();
49668
- if (hitFilesData.length) {
49669
- this.logger.info("Collecting hits for '" + hitFilesData.length + "' files");
49670
- convertedHits = this.hitsConverter.convertHits(hitFilesData);
49671
- this.footprintsBuffer.addHit(convertedHits, this.collectionInterval.toJson(), execution.executionId, testName, this.isInitFootprints(), isFinalFootprints);
49672
- }
49673
- else {
49674
- this.logger.info('No files were hits, not collecting footprints');
49675
- }
49676
- if (this.isRunning && this.cfg.sendFootprints.value && this.cfg.enabled.value) {
49677
- this.ensureKeepaliveThreadRunning();
49678
- this.sendToServerWatchdog.start();
49679
- }
49680
- this.footprintsEnqueueOnce = true;
49681
- return [2];
49682
- }
49683
- });
49684
- });
49617
+ this.currentExecutionBsid = execution.buildSessionId;
49618
+ this.collectionInterval.next();
49619
+ var hitFilesData = this.hitsCollector.getHitElements();
49620
+ if (hitFilesData.length) {
49621
+ this.logger.info("Collecting hits for '" + hitFilesData.length + "' files");
49622
+ var convertedHits = this.hitsConverter.convertHits(hitFilesData);
49623
+ this.footprintsBuffer.addHit(convertedHits, this.collectionInterval.toJson(), execution.executionId, testName, this.isInitFootprints(), isFinalFootprints);
49624
+ }
49625
+ else {
49626
+ this.logger.info('No files were hits, not collecting footprints');
49627
+ }
49628
+ if (this.isRunning && this.cfg.sendFootprints.value && this.cfg.enabled.value) {
49629
+ this.ensureKeepaliveThreadRunning();
49630
+ this.sendToServerWatchdog.start();
49631
+ }
49632
+ this.footprintsEnqueueOnce = true;
49685
49633
  };
49686
49634
  FootprintsProcess.prototype.updateConfig = function (updatedCfg) {
49687
49635
  this.cfg = updatedCfg;
@@ -49824,19 +49772,8 @@ var __generator = (this && this.__generator) || function (thisArg, body) {
49824
49772
  };
49825
49773
  FootprintsProcess.prototype.enqueueAndSubmit = function (executionData, isFinalFootprints) {
49826
49774
  if (isFinalFootprints === void 0) { isFinalFootprints = false; }
49827
- return __awaiter(this, void 0, void 0, function () {
49828
- return __generator(this, function (_a) {
49829
- switch (_a.label) {
49830
- case 0: return [4, this.enqueueCurrentFootprints(executionData, null, isFinalFootprints)];
49831
- case 1:
49832
- _a.sent();
49833
- return [4, this.submitQueuedFootprints(executionData)];
49834
- case 2:
49835
- _a.sent();
49836
- return [2];
49837
- }
49838
- });
49839
- });
49775
+ this.enqueueCurrentFootprints(executionData, null, isFinalFootprints);
49776
+ this.submitQueuedFootprints(executionData);
49840
49777
  };
49841
49778
  FootprintsProcess.prototype.flushCurrentFootprints = function (isFinalFootprints) {
49842
49779
  if (isFinalFootprints === void 0) { isFinalFootprints = false; }