slnodejs 6.1.916 → 6.1.921

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 (74) hide show
  1. package/package.json +1 -1
  2. package/tsOutputs/build-scanner/build-diff-process.js +2 -0
  3. package/tsOutputs/build-scanner/build-diff-process.js.map +1 -1
  4. package/tsOutputs/build-scanner/instrumentation/browser-instrumenter.js +11 -2
  5. package/tsOutputs/build-scanner/instrumentation/browser-instrumenter.js.map +1 -1
  6. package/tsOutputs/cli-parse/cli.js +4 -0
  7. package/tsOutputs/cli-parse/cli.js.map +1 -1
  8. package/tsOutputs/cli-parse/contracts.d.ts +4 -0
  9. package/tsOutputs/cli-parse/contracts.js.map +1 -1
  10. package/tsOutputs/cli-parse/executors/build-args-dto.js +1 -0
  11. package/tsOutputs/cli-parse/executors/build-args-dto.js.map +1 -1
  12. package/tsOutputs/cli-parse/executors/build-executor.js +19 -1
  13. package/tsOutputs/cli-parse/executors/build-executor.js.map +1 -1
  14. package/tsOutputs/cli-parse/executors/run-executor.js +2 -1
  15. package/tsOutputs/cli-parse/executors/run-executor.js.map +1 -1
  16. package/tsOutputs/common/agent-events/agent-events-controller.js.map +1 -1
  17. package/tsOutputs/common/config-process/config.d.ts +1 -0
  18. package/tsOutputs/common/config-process/config.js +1 -0
  19. package/tsOutputs/common/config-process/config.js.map +1 -1
  20. package/tsOutputs/common/constants/sl-env-vars.d.ts +4 -0
  21. package/tsOutputs/common/constants/sl-env-vars.js +4 -0
  22. package/tsOutputs/common/constants/sl-env-vars.js.map +1 -1
  23. package/tsOutputs/common/footprints-process-v6/hits-collector.js +1 -0
  24. package/tsOutputs/common/footprints-process-v6/hits-collector.js.map +1 -1
  25. package/tsOutputs/common/footprints-process-v6/index.d.ts +4 -8
  26. package/tsOutputs/common/footprints-process-v6/index.js +2 -14
  27. package/tsOutputs/common/footprints-process-v6/index.js.map +1 -1
  28. package/tsOutputs/common/http/contracts.d.ts +1 -1
  29. package/tsOutputs/common/watchdog.d.ts +9 -8
  30. package/tsOutputs/common/watchdog.js +1 -4
  31. package/tsOutputs/common/watchdog.js.map +1 -1
  32. package/tsOutputs/test-listener/agent-loader.js +8 -2
  33. package/tsOutputs/test-listener/agent-loader.js.map +1 -1
  34. package/tsOutputs/test-listener/agent.d.ts +1 -1
  35. package/tsOutputs/test-listener/bootstrap.js +4 -0
  36. package/tsOutputs/test-listener/bootstrap.js.map +1 -1
  37. package/tsOutputs/test-listener/config-process/config-loader.js +1 -1
  38. package/tsOutputs/test-listener/config-process/config-loader.js.map +1 -1
  39. package/tsOutputs/test-listener/factory.d.ts +3 -5
  40. package/tsOutputs/test-listener/factory.js +15 -23
  41. package/tsOutputs/test-listener/factory.js.map +1 -1
  42. package/tsOutputs/test-listener/logs-process/index.d.ts +2 -2
  43. package/tsOutputs/common/uuid.js +0 -21
  44. package/tsOutputs/common/uuid.js.map +0 -1
  45. package/tsOutputs/test-listener/config-process/config-system.d.ts +0 -88
  46. package/tsOutputs/test-listener/config-process/config-system.js +0 -259
  47. package/tsOutputs/test-listener/config-process/config-system.js.map +0 -1
  48. package/tsOutputs/test-listener/config-process/index.js +0 -110
  49. package/tsOutputs/test-listener/config-process/index.js.map +0 -1
  50. package/tsOutputs/test-listener/config.d.ts +0 -50
  51. package/tsOutputs/test-listener/config.js +0 -62
  52. package/tsOutputs/test-listener/config.js.map +0 -1
  53. package/tsOutputs/test-listener/environment-data-service.d.ts +0 -11
  54. package/tsOutputs/test-listener/environment-data-service.js +0 -60
  55. package/tsOutputs/test-listener/environment-data-service.js.map +0 -1
  56. package/tsOutputs/test-listener/footprints-process/footprints-service-proxy.js +0 -36
  57. package/tsOutputs/test-listener/footprints-process/footprints-service-proxy.js.map +0 -1
  58. package/tsOutputs/test-listener/footprints-process/index.js +0 -226
  59. package/tsOutputs/test-listener/footprints-process/index.js.map +0 -1
  60. package/tsOutputs/test-listener/footprints-process/istanbul-to-footprints-base.js +0 -130
  61. package/tsOutputs/test-listener/footprints-process/istanbul-to-footprints-base.js.map +0 -1
  62. package/tsOutputs/test-listener/footprints-process/istanbul-to-footprints-contract.js +0 -3
  63. package/tsOutputs/test-listener/footprints-process/istanbul-to-footprints-contract.js.map +0 -1
  64. package/tsOutputs/test-listener/footprints-process/istanbul-to-footprints-v3.js +0 -272
  65. package/tsOutputs/test-listener/footprints-process/istanbul-to-footprints-v3.js.map +0 -1
  66. package/tsOutputs/test-listener/queue.js +0 -40
  67. package/tsOutputs/test-listener/queue.js.map +0 -1
  68. package/tsOutputs/test-listener/state-tracker-process/index.js +0 -143
  69. package/tsOutputs/test-listener/state-tracker-process/index.js.map +0 -1
  70. package/tsOutputs/test-listener/utils.js +0 -68
  71. package/tsOutputs/test-listener/utils.js.map +0 -1
  72. package/tsOutputs/test-listener/watchdog.d.ts +0 -89
  73. package/tsOutputs/test-listener/watchdog.js +0 -128
  74. package/tsOutputs/test-listener/watchdog.js.map +0 -1
@@ -1,128 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.Watchdog = void 0;
4
- const events = require("events");
5
- /**
6
- * Wraps timers to fire an "alarm" alarm after a given interval. Supports
7
- *
8
- * @export
9
- * @class Watchdog
10
- * @extends {events.EventEmitter}
11
- */
12
- class Watchdog extends events.EventEmitter {
13
- constructor(options, timers) {
14
- super();
15
- this.options = options;
16
- this.timers = timers;
17
- this.handle = null;
18
- this.pendingAlarmDuringSuspended = false;
19
- this.suspended = false;
20
- this.stopped = true;
21
- if (!options) {
22
- throw new Error('options is required');
23
- }
24
- if (!timers) {
25
- throw new Error('timers is required');
26
- }
27
- }
28
- abort() {
29
- if (this.handle) {
30
- this.timers.clearTimeout(this.handle);
31
- this.handle = null;
32
- this.pendingAlarmDuringSuspended = false;
33
- }
34
- }
35
- /**
36
- * Restarts the watchdog
37
- *
38
- * @memberOf Watchdog
39
- */
40
- reset() {
41
- this.abort();
42
- if (!this.stopped) {
43
- this.handle = this.timers.setTimeout(() => { this.fireAlarm(); }, this.options.interval);
44
- if (this.options.unref) {
45
- this.handle.unref(); // Don't hold the process alive if this timer is still pending
46
- }
47
- }
48
- }
49
- /**
50
- * Stops the watchdog
51
- *
52
- *
53
- * @memberOf Watchdog
54
- */
55
- stop() {
56
- this.stopped = true;
57
- this.abort();
58
- }
59
- /**
60
- * Starts the watchdog
61
- *
62
- * @memberOf Watchdog
63
- */
64
- start() {
65
- this.stopped = false;
66
- this.reset();
67
- }
68
- /**
69
- * Returns the current status of the watchdog
70
- * @returns
71
- *
72
- * @memberOf Watchdog
73
- */
74
- getStatus() {
75
- return {
76
- pendingAlarmDuringSuspended: this.pendingAlarmDuringSuspended,
77
- running: !this.stopped,
78
- suspended: this.suspended,
79
- };
80
- }
81
- /**
82
- * Suspends this watchdog, which prevents it from firing events.
83
- *
84
- * @memberOf Watchdog
85
- */
86
- suspend() {
87
- this.suspended = true;
88
- }
89
- /**
90
- * Resumes this watchdog from suspended mode. If an alarm was fired while suspended, it will be fired now.
91
- *
92
- * @memberOf Watchdog
93
- */
94
- resume() {
95
- this.suspended = false;
96
- if (this.pendingAlarmDuringSuspended) {
97
- this.pendingAlarmDuringSuspended = false;
98
- this.fireAlarm();
99
- }
100
- }
101
- fireAlarm() {
102
- this.handle = null;
103
- if (this.suspended) {
104
- this.pendingAlarmDuringSuspended = true; //raise this flag and quit
105
- }
106
- else {
107
- try {
108
- this.emit('alarm', this);
109
- }
110
- catch (err) {
111
- // TODO: Log?
112
- }
113
- }
114
- if (this.options.autoReset) {
115
- this.reset();
116
- }
117
- }
118
- setInterval(newInterval) {
119
- if (newInterval <= 0)
120
- throw new Error('Invalid value for interval: ' + newInterval);
121
- this.options.interval = newInterval;
122
- }
123
- getInterval() {
124
- return this.options.interval;
125
- }
126
- }
127
- exports.Watchdog = Watchdog;
128
- //# sourceMappingURL=watchdog.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"watchdog.js","sourceRoot":"","sources":["../../test-listener/watchdog.ts"],"names":[],"mappings":";;;AAA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