@testomatio/reporter 2.0.0-beta.3-gaxios → 2.0.0-beta.4-gaxios
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.
- package/lib/pipe/testomatio.js +3 -2
- package/package.json +2 -2
- package/src/pipe/testomatio.js +3 -2
package/lib/pipe/testomatio.js
CHANGED
|
@@ -60,6 +60,7 @@ class TestomatioPipe {
|
|
|
60
60
|
retryConfig: {
|
|
61
61
|
retry: constants_js_1.REPORTER_REQUEST_RETRIES.retriesPerRequest,
|
|
62
62
|
retryDelay: constants_js_1.REPORTER_REQUEST_RETRIES.retryTimeout,
|
|
63
|
+
httpMethodsToRetry: ['GET', 'PUT', 'HEAD', 'OPTIONS', 'DELETE', 'POST'],
|
|
63
64
|
shouldRetry: (error) => {
|
|
64
65
|
if (!error.response)
|
|
65
66
|
return false;
|
|
@@ -438,9 +439,9 @@ function printCreateIssue(err) {
|
|
|
438
439
|
if (!err.config)
|
|
439
440
|
return;
|
|
440
441
|
const time = new Date().toUTCString();
|
|
441
|
-
const {
|
|
442
|
+
const { body, url, baseURL, method } = err?.config || {};
|
|
442
443
|
console.log('```js');
|
|
443
|
-
console.log({
|
|
444
|
+
console.log({ body: body?.replace(/"(tstmt_[^"]+)"/g, 'tstmt_*'), url, baseURL, method, time });
|
|
444
445
|
console.log('```');
|
|
445
446
|
});
|
|
446
447
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@testomatio/reporter",
|
|
3
|
-
"version": "2.0.0-beta.
|
|
3
|
+
"version": "2.0.0-beta.4-gaxios",
|
|
4
4
|
"description": "Testomatio Reporter Client",
|
|
5
5
|
"engines": {
|
|
6
6
|
"node": ">=18"
|
|
@@ -16,7 +16,7 @@
|
|
|
16
16
|
"@cucumber/cucumber": "^10.9.0",
|
|
17
17
|
"@octokit/rest": "^21.1.1",
|
|
18
18
|
"aws-sdk": "^2.1072.0",
|
|
19
|
-
"gaxios": "7.0.0-rc.4",
|
|
19
|
+
"gaxios": ">=6.0 || >=7.0.0-rc.4 || <8",
|
|
20
20
|
"callsite-record": "^4.1.4",
|
|
21
21
|
"commander": "^12",
|
|
22
22
|
"cross-spawn": "^7.0.3",
|
package/src/pipe/testomatio.js
CHANGED
|
@@ -61,6 +61,7 @@ class TestomatioPipe {
|
|
|
61
61
|
retryConfig: {
|
|
62
62
|
retry: REPORTER_REQUEST_RETRIES.retriesPerRequest,
|
|
63
63
|
retryDelay: REPORTER_REQUEST_RETRIES.retryTimeout,
|
|
64
|
+
httpMethodsToRetry: ['GET','PUT','HEAD','OPTIONS','DELETE','POST'],
|
|
64
65
|
shouldRetry: (error) => {
|
|
65
66
|
if (!error.response) return false;
|
|
66
67
|
switch (error.response?.status) {
|
|
@@ -486,9 +487,9 @@ function printCreateIssue(err) {
|
|
|
486
487
|
if (!err.config) return;
|
|
487
488
|
|
|
488
489
|
const time = new Date().toUTCString();
|
|
489
|
-
const {
|
|
490
|
+
const { body, url, baseURL, method } = err?.config || {};
|
|
490
491
|
console.log('```js');
|
|
491
|
-
console.log({
|
|
492
|
+
console.log({ body: body?.replace(/"(tstmt_[^"]+)"/g, 'tstmt_*'), url, baseURL, method, time });
|
|
492
493
|
console.log('```');
|
|
493
494
|
});
|
|
494
495
|
}
|