@wdio/sumologic-reporter 8.32.2 → 9.0.0-alpha.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 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,EAAE,WAAW,EAAE,UAAU,EAAE,SAAS,EAAE,MAAM,gBAAgB,CAAA;AACxE,OAAO,YAAY,MAAM,gBAAgB,CAAA;AAGzC,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,YAAY,CAAA;AAOzC;;GAEG;AACH,MAAM,CAAC,OAAO,OAAO,iBAAkB,SAAQ,YAAY;IACvD,OAAO,CAAC,QAAQ,CAAS;IACzB,OAAO,CAAC,SAAS,CAAgB;IAEjC,OAAO,CAAC,SAAS,CAAe;IAChC,OAAO,CAAC,gBAAgB,CAAQ;IAChC,OAAO,CAAC,aAAa,CAAQ;gBAEjB,OAAO,EAAE,OAAO;IAmB5B,IAAI,cAAc,YAEjB;IAED,aAAa,CAAC,MAAM,EAAE,WAAW;IAQjC,YAAY,CAAC,KAAK,EAAE,UAAU;IAQ9B,WAAW,CAAC,IAAI,EAAE,SAAS;IAQ3B,UAAU,CAAC,IAAI,EAAE,SAAS;IAQ1B,UAAU,CAAC,IAAI,EAAE,SAAS;IAQ1B,UAAU,CAAC,IAAI,EAAE,SAAS;IAQ1B,SAAS,CAAC,IAAI,EAAE,SAAS;IAQzB,UAAU,CAAC,KAAK,EAAE,UAAU;IAQ5B,WAAW,CAAC,MAAM,EAAE,WAAW;IASzB,IAAI;CA8Cb;AAED,cAAc,YAAY,CAAA;AAE1B,OAAO,CAAC,MAAM,CAAC;IACX,UAAU,WAAW,CAAC;QAClB,UAAU,cAAe,SAAQ,OAAO;SAAG;KAC9C;CACJ"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAGA,OAAO,KAAK,EAAE,WAAW,EAAE,UAAU,EAAE,SAAS,EAAE,MAAM,gBAAgB,CAAA;AACxE,OAAO,YAAY,MAAM,gBAAgB,CAAA;AAGzC,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,YAAY,CAAA;AAOzC;;GAEG;AACH,MAAM,CAAC,OAAO,OAAO,iBAAkB,SAAQ,YAAY;IACvD,OAAO,CAAC,QAAQ,CAAS;IACzB,OAAO,CAAC,SAAS,CAAgB;IAEjC,OAAO,CAAC,SAAS,CAAe;IAChC,OAAO,CAAC,gBAAgB,CAAQ;IAChC,OAAO,CAAC,aAAa,CAAQ;gBAEjB,OAAO,EAAE,OAAO;IAmB5B,IAAI,cAAc,YAEjB;IAED,aAAa,CAAC,MAAM,EAAE,WAAW;IAQjC,YAAY,CAAC,KAAK,EAAE,UAAU;IAQ9B,WAAW,CAAC,IAAI,EAAE,SAAS;IAQ3B,UAAU,CAAC,IAAI,EAAE,SAAS;IAQ1B,UAAU,CAAC,IAAI,EAAE,SAAS;IAQ1B,UAAU,CAAC,IAAI,EAAE,SAAS;IAQ1B,SAAS,CAAC,IAAI,EAAE,SAAS;IAQzB,UAAU,CAAC,KAAK,EAAE,UAAU;IAQ5B,WAAW,CAAC,MAAM,EAAE,WAAW;IASzB,IAAI;CA8Cb;AAED,cAAc,YAAY,CAAA;AAE1B,OAAO,CAAC,MAAM,CAAC;IACX,UAAU,WAAW,CAAC;QAClB,UAAU,cAAe,SAAQ,OAAO;SAAG;KAC9C;CACJ"}
package/build/index.js CHANGED
@@ -1,4 +1,3 @@
1
- import got from 'got';
2
1
  import dateFormat from 'dateformat';
3
2
  import stringify from 'json-stringify-safe';
4
3
  import WDIOReporter from '@wdio/reporter';
@@ -121,9 +120,9 @@ export default class SumoLogicReporter extends WDIOReporter {
121
120
  this._isSynchronising = true;
122
121
  log.debug('start synchronization');
123
122
  try {
124
- const resp = await got(this._options.sourceAddress, {
123
+ const resp = await fetch(this._options.sourceAddress, {
125
124
  method: 'POST',
126
- json: logLines
125
+ body: JSON.stringify(logLines)
127
126
  });
128
127
  /**
129
128
  * remove transfered logs from log bucket
@@ -133,7 +132,7 @@ export default class SumoLogicReporter extends WDIOReporter {
133
132
  * reset sync flag so we can sync again
134
133
  */
135
134
  this._isSynchronising = false;
136
- return log.debug(`synchronised collector data, server status: ${resp.statusCode}`);
135
+ return log.debug(`synchronised collector data, server status: ${resp.status}`);
137
136
  }
138
137
  catch (err) {
139
138
  return log.error('failed send data to Sumo Logic:\n', err.stack);
package/package.json CHANGED
@@ -1,12 +1,12 @@
1
1
  {
2
2
  "name": "@wdio/sumologic-reporter",
3
- "version": "8.32.2",
3
+ "version": "9.0.0-alpha.0",
4
4
  "description": "A WebdriverIO reporter that sends test results to Sumologic for data analyses",
5
5
  "author": "Christian Bromann <mail@bromann.dev>",
6
6
  "homepage": "https://github.com/webdriverio/webdriverio/tree/main/packages/wdio-sumologic-reporter",
7
7
  "license": "MIT",
8
8
  "engines": {
9
- "node": "^16.13 || >=18"
9
+ "node": ">=18"
10
10
  },
11
11
  "repository": {
12
12
  "type": "git",
@@ -30,11 +30,10 @@
30
30
  },
31
31
  "typeScriptVersion": "3.8.3",
32
32
  "dependencies": {
33
- "@wdio/logger": "8.28.0",
34
- "@wdio/reporter": "8.32.2",
35
- "@wdio/types": "8.32.2",
36
- "dateformat": "5.0.3",
37
- "got": "^12.6.1",
33
+ "@wdio/logger": "9.0.0-alpha.0",
34
+ "@wdio/reporter": "9.0.0-alpha.0",
35
+ "@wdio/types": "9.0.0-alpha.0",
36
+ "dateformat": "4.5.1",
38
37
  "json-stringify-safe": "^5.0.1"
39
38
  },
40
39
  "devDependencies": {
@@ -44,5 +43,5 @@
44
43
  "publishConfig": {
45
44
  "access": "public"
46
45
  },
47
- "gitHead": "dd4ccd4bcbca4b5f97af81fc6ccee11cb8859654"
46
+ "gitHead": "75d45a1efff8705785f0fbcd2379ac624d16e007"
48
47
  }