slnodejs 6.1.577 → 6.1.598

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.
@@ -24248,6 +24248,9 @@ var gOPD = require('gopd');
24248
24248
  var $TypeError = GetIntrinsic('%TypeError%');
24249
24249
  var $floor = GetIntrinsic('%Math.floor%');
24250
24250
 
24251
+ /** @typedef {(...args: unknown[]) => unknown} Func */
24252
+
24253
+ /** @type {<T extends Func = Func>(fn: T, length: number, loose?: boolean) => T} */
24251
24254
  module.exports = function setFunctionLength(fn, length) {
24252
24255
  if (typeof fn !== 'function') {
24253
24256
  throw new $TypeError('`fn` is not a function');
@@ -24272,9 +24275,9 @@ module.exports = function setFunctionLength(fn, length) {
24272
24275
 
24273
24276
  if (functionLengthIsConfigurable || functionLengthIsWritable || !loose) {
24274
24277
  if (hasDescriptors) {
24275
- define(fn, 'length', length, true, true);
24278
+ define(/** @type {Parameters<define>[0]} */ (fn), 'length', length, true, true);
24276
24279
  } else {
24277
- define(fn, 'length', length);
24280
+ define(/** @type {Parameters<define>[0]} */ (fn), 'length', length);
24278
24281
  }
24279
24282
  }
24280
24283
  return fn;
@@ -29132,7 +29135,7 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, ge
29132
29135
  "use strict";
29133
29136
  Object.defineProperty(exports, "__esModule", { value: true });
29134
29137
  exports.SL_AGENT_TYPE = exports.SL_AGENT_VERSION = void 0;
29135
- exports.SL_AGENT_VERSION = '6.1.577';
29138
+ exports.SL_AGENT_VERSION = '6.1.598';
29136
29139
  exports.SL_AGENT_TYPE = 'browser';
29137
29140
  });
29138
29141
 
@@ -29786,13 +29789,13 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, ge
29786
29789
  }
29787
29790
  logger.info(`setBaggage: Received event "detail": ${JSON.stringify(detail, null, 4)}`);
29788
29791
  if (!detail) {
29789
- logger.info(`Received setBaggage event with no detail, not changing baggage.`);
29792
+ logger.warn(`Received setBaggage event with no detail, not changing baggage.`);
29790
29793
  return;
29791
29794
  }
29792
29795
  const executionId = detail[SlConst.SL_SESSION_ID];
29793
29796
  const testName = detail[SlConst.SL_TEST_NAME];
29794
29797
  if (!(executionId === null || executionId === void 0 ? void 0 : executionId.length) || !(testName === null || testName === void 0 ? void 0 : testName.length)) {
29795
- logger.info(`Received setBaggage event with with missing testName/executionId: testName=${testName} executionId=${executionId}`);
29798
+ logger.warn(`Received setBaggage event with with missing testName/executionId: testName=${testName} executionId=${executionId}`);
29796
29799
  return;
29797
29800
  }
29798
29801
  if ((0, utils_1.checkIsDiagnosisBaggage)(detail)) {
@@ -35421,6 +35424,7 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, ge
35421
35424
  this.delegateEvents();
35422
35425
  }
35423
35426
  enqueueCurrentFootprints(execution, testName, isFinalFootprints = false) {
35427
+ var _a, _b;
35424
35428
  return __awaiter(this, void 0, void 0, function* () {
35425
35429
  this.currentExecutionBsid = execution.buildSessionId;
35426
35430
  this.collectionInterval.next();
@@ -35428,7 +35432,9 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, ge
35428
35432
  if (hitFilesData.length) {
35429
35433
  this.logger.info(`Collecting hits for '${hitFilesData.length}' files`);
35430
35434
  const convertedHits = this.hitsConverter.convertHits(hitFilesData);
35435
+ this.logger.debug(`Converted total ${(_a = convertedHits.branches) === null || _a === void 0 ? void 0 : _a.length} branches and ${(_b = convertedHits.methods) === null || _b === void 0 ? void 0 : _b.length} methods.`);
35431
35436
  this.footprintsBuffer.addHit(convertedHits, this.collectionInterval.toJson(), execution.executionId, testName, this.isInitFootprints(), isFinalFootprints);
35437
+ this.logger.debug(`Hits added successfully for execution ${execution.executionId} and test ${testName}.`);
35432
35438
  }
35433
35439
  else {
35434
35440
  this.logger.info('No files were hits, not collecting footprints');