@testim/testim-cli 3.198.0 → 3.202.0

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.
@@ -1,56 +0,0 @@
1
- 'use strict';
2
-
3
- // This is copied from coralogix-bunyan-stream pacakge and altered to expose waitForFlush
4
-
5
- const coralogixLogger = require('@testim/coralogix-logger');
6
-
7
- const sevMap = {
8
- 10: coralogixLogger.Severity.debug,
9
- 30: coralogixLogger.Severity.info,
10
- 40: coralogixLogger.Severity.warning,
11
- 50: coralogixLogger.Severity.error,
12
- 60: coralogixLogger.Severity.critical,
13
- 20: coralogixLogger.Severity.debug,
14
- };
15
- const CoralogixStream = (function () {
16
- function CoralogixStream(options) {
17
- if (!options) options = {};
18
- CoralogixStream.logger = this.logger = new coralogixLogger.CoralogixLogger(options.category);
19
- }
20
- CoralogixStream.waitForFlush = function () {
21
- return CoralogixStream.logger.waitForFlush();
22
- };
23
- CoralogixStream.prototype.write = function (rec) {
24
- const log = new coralogixLogger.Log();
25
- log.severity = sevMap[rec.level];
26
- log.category = rec.category;
27
- if (rec.className) log.className = rec.className;
28
- if (rec.methodName) log.methodName = rec.methodName;
29
- if (rec.threadId) log.threadId = rec.threadId;
30
- log.text = this.removeStaticFields(rec);
31
- this.logger.addLog(log);
32
- };
33
- CoralogixStream.prototype.removeStaticFields = function (json) {
34
- delete json.threadId;
35
- delete json.methodName;
36
- delete json.className;
37
- delete json.category;
38
- return JSON.stringify(json, this.replaceErrors);
39
- };
40
- CoralogixStream.prototype.replaceErrors = function (key, value) {
41
- if (value instanceof Error) {
42
- const error = {};
43
- Object.getOwnPropertyNames(value).forEach((key) => {
44
- error[key] = value[key];
45
- });
46
- return error;
47
- }
48
- return value;
49
- };
50
- CoralogixStream.configure = function (config) {
51
- coralogixLogger.CoralogixLogger.configure(config);
52
- };
53
- return CoralogixStream;
54
- }());
55
-
56
- module.exports = { CoralogixStream };
@@ -1,9 +0,0 @@
1
- const CliJsStepAction = require('./cliJsStepAction');
2
-
3
- class SalesforceApexActionStepAction extends CliJsStepAction {
4
- getSkipStatus() {
5
- return false;
6
- }
7
- }
8
-
9
- module.exports = SalesforceApexActionStepAction;