slnodejs 6.0.42 → 6.1.10

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.
Files changed (65) hide show
  1. package/browser-agent/dist/browser-agent-all.js +70 -21
  2. package/browser-agent/dist/browser-agent-all.min.js +16 -16
  3. package/browser-agent/package.json +2 -2
  4. package/package.json +6 -5
  5. package/tsOutputs/api.d.ts +0 -2
  6. package/tsOutputs/api.js +1 -2
  7. package/tsOutputs/build-scanner/ast-utils.js +1 -1
  8. package/tsOutputs/build-scanner/ast-utils.js.map +1 -1
  9. package/tsOutputs/build-scanner/build-diff-process.js +15 -9
  10. package/tsOutputs/build-scanner/build-diff-process.js.map +1 -1
  11. package/tsOutputs/build-scanner/file-system/actual-file.js +38 -18
  12. package/tsOutputs/build-scanner/file-system/actual-file.js.map +1 -1
  13. package/tsOutputs/build-scanner/instrumentation/markup-file-instrumenter.js +0 -3
  14. package/tsOutputs/build-scanner/instrumentation/markup-file-instrumenter.js.map +1 -1
  15. package/tsOutputs/build-scanner/js_diff/dry-run-files-mapping.js +1 -1
  16. package/tsOutputs/build-scanner/js_diff/dry-run-files-mapping.js.map +1 -1
  17. package/tsOutputs/build-scanner/js_diff/file-signature.js +7 -4
  18. package/tsOutputs/build-scanner/js_diff/file-signature.js.map +1 -1
  19. package/tsOutputs/build-scanner/js_diff/files-mapping.js +6 -23
  20. package/tsOutputs/build-scanner/js_diff/files-mapping.js.map +1 -1
  21. package/tsOutputs/build-scanner/js_diff/generated-file-signature.js.map +1 -1
  22. package/tsOutputs/build-scanner/js_diff/guess-method-location.js +3 -0
  23. package/tsOutputs/build-scanner/js_diff/guess-method-location.js.map +1 -1
  24. package/tsOutputs/build-scanner/js_diff/method-signature.js +3 -1
  25. package/tsOutputs/build-scanner/js_diff/method-signature.js.map +1 -1
  26. package/tsOutputs/build-scanner/js_diff/sl-mapper.js +61 -0
  27. package/tsOutputs/build-scanner/js_diff/sl-mapper.js.map +1 -1
  28. package/tsOutputs/build-scanner/js_diff/source-data-enricher.js +1 -1
  29. package/tsOutputs/build-scanner/js_diff/source-data-enricher.js.map +1 -1
  30. package/tsOutputs/build-scanner/mappings/ensure-files-handler.service.js +214 -0
  31. package/tsOutputs/build-scanner/mappings/ensure-files-handler.service.js.map +1 -0
  32. package/tsOutputs/build-scanner/mappings/file-element-utils.js +47 -0
  33. package/tsOutputs/build-scanner/mappings/file-element-utils.js.map +1 -0
  34. package/tsOutputs/build-scanner/mappings/file-enricher.js +210 -0
  35. package/tsOutputs/build-scanner/mappings/file-enricher.js.map +1 -0
  36. package/tsOutputs/build-scanner/mappings/files-data-container.js +52 -0
  37. package/tsOutputs/build-scanner/mappings/files-data-container.js.map +1 -0
  38. package/tsOutputs/build-scanner/mappings/scm-file-fixer.js +80 -0
  39. package/tsOutputs/build-scanner/mappings/scm-file-fixer.js.map +1 -0
  40. package/tsOutputs/cli-parse/executors/dry-run/build-mapping-data.js +1 -1
  41. package/tsOutputs/cli-parse/executors/dry-run/build-mapping-data.js.map +1 -1
  42. package/tsOutputs/cli-parse/executors/dry-run/dry-run-executor.js +8 -6
  43. package/tsOutputs/cli-parse/executors/dry-run/dry-run-executor.js.map +1 -1
  44. package/tsOutputs/cli-parse/executors/dry-run/footprints-data.js +77 -17
  45. package/tsOutputs/cli-parse/executors/dry-run/footprints-data.js.map +1 -1
  46. package/tsOutputs/cli-parse/executors/dry-run/helper-methods.js +8 -3
  47. package/tsOutputs/cli-parse/executors/dry-run/helper-methods.js.map +1 -1
  48. package/tsOutputs/common/config-process/config.js +1 -1
  49. package/tsOutputs/common/config-process/config.js.map +1 -1
  50. package/tsOutputs/common/footprints-process-v6/hits-converter.js +10 -1
  51. package/tsOutputs/common/footprints-process-v6/hits-converter.js.map +1 -1
  52. package/tsOutputs/common/http/backend-proxy.d.ts +1 -0
  53. package/tsOutputs/common/http/backend-proxy.js +10 -0
  54. package/tsOutputs/common/http/backend-proxy.js.map +1 -1
  55. package/tsOutputs/common/http/contracts.d.ts +78 -1
  56. package/tsOutputs/common/http/contracts.js.map +1 -1
  57. package/tsOutputs/common/scm/git-cloner.js +138 -0
  58. package/tsOutputs/common/scm/git-cloner.js.map +1 -0
  59. package/tsOutputs/common/state-tracker.js +2 -5
  60. package/tsOutputs/common/state-tracker.js.map +1 -1
  61. package/tsOutputs/common/utils/files-utils.d.ts +1 -0
  62. package/tsOutputs/common/utils/files-utils.js +9 -0
  63. package/tsOutputs/common/utils/files-utils.js.map +1 -1
  64. package/tsOutputs/test-listener/nyc-report-executor-fpv6.js +7 -0
  65. package/tsOutputs/test-listener/nyc-report-executor-fpv6.js.map +1 -1
@@ -18346,6 +18346,7 @@ CipherBase.prototype._toString = function (value, enc, fin) {
18346
18346
  module.exports = CipherBase
18347
18347
 
18348
18348
  },{"inherits":145,"safe-buffer":209,"stream":229,"string_decoder":234}],74:[function(require,module,exports){
18349
+ (function (Buffer){(function (){
18349
18350
  // Copyright Joyent, Inc. and other Node contributors.
18350
18351
  //
18351
18352
  // Permission is hereby granted, free of charge, to any person obtaining a
@@ -18448,13 +18449,14 @@ function isPrimitive(arg) {
18448
18449
  }
18449
18450
  exports.isPrimitive = isPrimitive;
18450
18451
 
18451
- exports.isBuffer = require('buffer').Buffer.isBuffer;
18452
+ exports.isBuffer = Buffer.isBuffer;
18452
18453
 
18453
18454
  function objectToString(o) {
18454
18455
  return Object.prototype.toString.call(o);
18455
18456
  }
18456
18457
 
18457
- },{"buffer":71}],75:[function(require,module,exports){
18458
+ }).call(this)}).call(this,{"isBuffer":require("../../is-buffer/index.js")})
18459
+ },{"../../is-buffer/index.js":146}],75:[function(require,module,exports){
18458
18460
  (function (Buffer){(function (){
18459
18461
  var elliptic = require('elliptic')
18460
18462
  var BN = require('bn.js')
@@ -23769,30 +23771,36 @@ utils.intFromLE = intFromLE;
23769
23771
  arguments[4][15][0].apply(exports,arguments)
23770
23772
  },{"buffer":23,"dup":15}],109:[function(require,module,exports){
23771
23773
  module.exports={
23772
- "_from": "elliptic@^6.5.3",
23774
+ "_args": [
23775
+ [
23776
+ "elliptic@6.5.4",
23777
+ "/var/lib/jenkins/workspace/SL.OnPremise.Agent.JavaScript_Dev_Branch/browser-agent"
23778
+ ]
23779
+ ],
23780
+ "_development": true,
23781
+ "_from": "elliptic@6.5.4",
23773
23782
  "_id": "elliptic@6.5.4",
23774
23783
  "_inBundle": false,
23775
23784
  "_integrity": "sha512-iLhC6ULemrljPZb+QutR5TQGB+pdW6KGD5RSegS+8sorOZT+rdQFbsQFJgvN3eRqNALqJer4oQ16YvJHlU8hzQ==",
23776
23785
  "_location": "/elliptic",
23777
23786
  "_phantomChildren": {},
23778
23787
  "_requested": {
23779
- "type": "range",
23788
+ "type": "version",
23780
23789
  "registry": true,
23781
- "raw": "elliptic@^6.5.3",
23790
+ "raw": "elliptic@6.5.4",
23782
23791
  "name": "elliptic",
23783
23792
  "escapedName": "elliptic",
23784
- "rawSpec": "^6.5.3",
23793
+ "rawSpec": "6.5.4",
23785
23794
  "saveSpec": null,
23786
- "fetchSpec": "^6.5.3"
23795
+ "fetchSpec": "6.5.4"
23787
23796
  },
23788
23797
  "_requiredBy": [
23789
23798
  "/browserify-sign",
23790
23799
  "/create-ecdh"
23791
23800
  ],
23792
23801
  "_resolved": "https://registry.npmjs.org/elliptic/-/elliptic-6.5.4.tgz",
23793
- "_shasum": "da37cebd31e79a1367e941b592ed1fbebd58abbb",
23794
- "_spec": "elliptic@^6.5.3",
23795
- "_where": "/var/lib/jenkins/workspace/SL.OnPremise.Agents.JavaScript/browser-agent/node_modules/browserify-sign",
23802
+ "_spec": "6.5.4",
23803
+ "_where": "/var/lib/jenkins/workspace/SL.OnPremise.Agent.JavaScript_Dev_Branch/browser-agent",
23796
23804
  "author": {
23797
23805
  "name": "Fedor Indutny",
23798
23806
  "email": "fedor@indutny.com"
@@ -23800,7 +23808,6 @@ module.exports={
23800
23808
  "bugs": {
23801
23809
  "url": "https://github.com/indutny/elliptic/issues"
23802
23810
  },
23803
- "bundleDependencies": false,
23804
23811
  "dependencies": {
23805
23812
  "bn.js": "^4.11.9",
23806
23813
  "brorand": "^1.1.0",
@@ -23810,7 +23817,6 @@ module.exports={
23810
23817
  "minimalistic-assert": "^1.0.1",
23811
23818
  "minimalistic-crypto-utils": "^1.0.1"
23812
23819
  },
23813
- "deprecated": false,
23814
23820
  "description": "EC cryptography",
23815
23821
  "devDependencies": {
23816
23822
  "brfs": "^2.0.2",
@@ -47822,7 +47828,7 @@ var __extends = (this && this.__extends) || (function () {
47822
47828
  _this.extendedFootprints = new config_system_1.BooleanConfigKey(false, false);
47823
47829
  _this.projectRoot = new config_system_1.StringConfigKey(false);
47824
47830
  _this.enforceFullRun = new config_system_1.BooleanConfigKey(false, false);
47825
- _this.footprintsEnableV6 = new config_system_1.BooleanConfigKey(false, false);
47831
+ _this.footprintsEnableV6 = new config_system_1.BooleanConfigKey(false, true);
47826
47832
  _this.footprintsBufferThresholdMb = new config_system_1.NumberConfigKey(false, 10);
47827
47833
  _this.executionQueryIntervalSecs = new config_system_1.NumberConfigKey(false, 10);
47828
47834
  _this.footprintsQueueSize = new config_system_1.NumberConfigKey(false, 2);
@@ -49774,7 +49780,16 @@ var __extends = (this && this.__extends) || (function () {
49774
49780
  return hit.loc.start;
49775
49781
  };
49776
49782
  HitsConverter.prototype.getLeaveStartLoc = function (hit, leaveIdx) {
49777
- return hit.branchData.locations[leaveIdx].start;
49783
+ var parentPosition = hit.branchData.loc.start;
49784
+ var position = hit.branchData.locations[leaveIdx].start;
49785
+ var newInstrumentation = (parentPosition.line != position.line) || (parentPosition.column != position.column);
49786
+ if (hit.branchData.type === 'if') {
49787
+ var message = newInstrumentation ? 'Instrumented done by istanbul-lib-instrumenter greater or equal than 5.1.0 enforcing parent positions for the else leave' :
49788
+ 'Instrumented done by istanbul-lib-instrumenter lower than 5.1.0 using parent positions for the else leave';
49789
+ this.logger.debug(message);
49790
+ return parentPosition;
49791
+ }
49792
+ return position;
49778
49793
  };
49779
49794
  HitsConverter.prototype.createBranchIds = function (hitFunctions, relativePath, absolutePath) {
49780
49795
  var _this = this;
@@ -50438,6 +50453,16 @@ var __generator = (this && this.__generator) || function (thisArg, body) {
50438
50453
  });
50439
50454
  });
50440
50455
  };
50456
+ BackendProxy.prototype.submitBlobAsync = function (body, buildSessionId, blobId) {
50457
+ var _this = this;
50458
+ var url = sl_routes_1.SLRoutes.blobs(buildSessionId, blobId);
50459
+ return new Promise(function (res, rej) {
50460
+ _this.client.post(body, url, function (error) {
50461
+ rej(error);
50462
+ }, true, contracts_1.ContentType.OCTET_STREAM);
50463
+ res(null);
50464
+ });
50465
+ };
50441
50466
  BackendProxy.prototype.submitBlob = function (body, buildSessionId, blobId, callback) {
50442
50467
  var url = sl_routes_1.SLRoutes.blobs(buildSessionId, blobId);
50443
50468
  this.client.post(body, url, callback, true, contracts_1.ContentType.OCTET_STREAM);
@@ -51380,14 +51405,13 @@ var __generator = (this && this.__generator) || function (thisArg, body) {
51380
51405
  if (v !== undefined) module.exports = v;
51381
51406
  }
51382
51407
  else if (typeof define === "function" && define.amd) {
51383
- define(["require", "exports", "events", "timers", "./constants/sl-env-vars", "./utils/validation-utils", "./agent-events/cockpit-notifier", "./agent-events/agent-events-conracts"], factory);
51408
+ define(["require", "exports", "events", "./constants/sl-env-vars", "./utils/validation-utils", "./agent-events/cockpit-notifier", "./agent-events/agent-events-conracts"], factory);
51384
51409
  }
51385
51410
  })(function (require, exports) {
51386
51411
  "use strict";
51387
51412
  Object.defineProperty(exports, "__esModule", { value: true });
51388
51413
  exports.StateTracker = void 0;
51389
51414
  var events = require("events");
51390
- var timers_1 = require("timers");
51391
51415
  var sl_env_vars_1 = require("./constants/sl-env-vars");
51392
51416
  var validation_utils_1 = require("./utils/validation-utils");
51393
51417
  var cockpit_notifier_1 = require("./agent-events/cockpit-notifier");
@@ -51433,9 +51457,7 @@ var __generator = (this && this.__generator) || function (thisArg, body) {
51433
51457
  _this.checkTestStatusAtServer();
51434
51458
  });
51435
51459
  if (this.cfg.shouldCheckForActiveExecutionOnStartUp.value) {
51436
- (0, timers_1.setTimeout)(function () {
51437
- _this.checkTestStatusAtServer(false);
51438
- }, 0);
51460
+ this.checkTestStatusAtServer(false);
51439
51461
  }
51440
51462
  };
51441
51463
  StateTracker.prototype.checkTestStatusAtServer = function (async) {
@@ -51464,7 +51486,7 @@ var __generator = (this && this.__generator) || function (thisArg, body) {
51464
51486
  return this._currentExecution != null;
51465
51487
  };
51466
51488
  StateTracker.prototype.shouldCollectHits = function () {
51467
- return this.hasMappingAtServer() && this.currentExecution.status != StateTracker.EXECUTION_STATUS_PENDING_DELETE;
51489
+ return this.hasMappingAtServer();
51468
51490
  };
51469
51491
  Object.defineProperty(StateTracker.prototype, "currentExecution", {
51470
51492
  get: function () {
@@ -51623,7 +51645,7 @@ var __generator = (this && this.__generator) || function (thisArg, body) {
51623
51645
  exports.StateTracker = StateTracker;
51624
51646
  });
51625
51647
 
51626
- },{"./agent-events/agent-events-conracts":289,"./agent-events/cockpit-notifier":294,"./constants/sl-env-vars":305,"./utils/validation-utils":336,"events":110,"timers":236}],332:[function(require,module,exports){
51648
+ },{"./agent-events/agent-events-conracts":289,"./agent-events/cockpit-notifier":294,"./constants/sl-env-vars":305,"./utils/validation-utils":336,"events":110}],332:[function(require,module,exports){
51627
51649
  (function (factory) {
51628
51650
  if (typeof module === "object" && typeof module.exports === "object") {
51629
51651
  var v = factory(require, exports);
@@ -51675,6 +51697,15 @@ var __generator = (this && this.__generator) || function (thisArg, body) {
51675
51697
  originalFilename = path.resolve(generatedDir, originalFilename);
51676
51698
  return originalFilename;
51677
51699
  };
51700
+ FilesUtils.prototype.fixPathAndSpecialChar = function (path) {
51701
+ if (path) {
51702
+ if (path[0] === '/' || path[0] === '\\') {
51703
+ return path.substr(1).split('\\').join('/');
51704
+ }
51705
+ return path.split('\\').join('/');
51706
+ }
51707
+ return path;
51708
+ };
51678
51709
  FilesUtils.adjustPathSlashes = function (filePath) {
51679
51710
  filePath = (filePath || '').replace(/\\/g, '/');
51680
51711
  return filePath;
@@ -67540,6 +67571,10 @@ module.exports={
67540
67571
  "compressible": true,
67541
67572
  "extensions": ["srx"]
67542
67573
  },
67574
+ "application/spdx+json": {
67575
+ "source": "iana",
67576
+ "compressible": true
67577
+ },
67543
67578
  "application/spirits-event+xml": {
67544
67579
  "source": "iana",
67545
67580
  "compressible": true
@@ -68021,6 +68056,10 @@ module.exports={
68021
68056
  "application/vnd.afpc.modca-pagesegment": {
68022
68057
  "source": "iana"
68023
68058
  },
68059
+ "application/vnd.age": {
68060
+ "source": "iana",
68061
+ "extensions": ["age"]
68062
+ },
68024
68063
  "application/vnd.ah-barcode": {
68025
68064
  "source": "iana"
68026
68065
  },
@@ -69862,6 +69901,10 @@ module.exports={
69862
69901
  "source": "iana",
69863
69902
  "extensions": ["taglet"]
69864
69903
  },
69904
+ "application/vnd.nacamar.ybrid+json": {
69905
+ "source": "iana",
69906
+ "compressible": true
69907
+ },
69865
69908
  "application/vnd.ncd.control": {
69866
69909
  "source": "iana"
69867
69910
  },
@@ -73196,6 +73239,7 @@ module.exports={
73196
73239
  },
73197
73240
  "image/vnd.microsoft.icon": {
73198
73241
  "source": "iana",
73242
+ "compressible": true,
73199
73243
  "extensions": ["ico"]
73200
73244
  },
73201
73245
  "image/vnd.mix": {
@@ -73205,6 +73249,7 @@ module.exports={
73205
73249
  "source": "iana"
73206
73250
  },
73207
73251
  "image/vnd.ms-dds": {
73252
+ "compressible": true,
73208
73253
  "extensions": ["dds"]
73209
73254
  },
73210
73255
  "image/vnd.ms-modi": {
@@ -73894,6 +73939,10 @@ module.exports={
73894
73939
  "source": "iana",
73895
73940
  "charset": "UTF-8"
73896
73941
  },
73942
+ "text/vnd.familysearch.gedcom": {
73943
+ "source": "iana",
73944
+ "extensions": ["ged"]
73945
+ },
73897
73946
  "text/vnd.ficlab.flt": {
73898
73947
  "source": "iana"
73899
73948
  },