@naturalcycles/js-lib 14.123.2 → 14.123.3
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/dist/http/fetcher.js +2 -2
- package/dist-esm/http/fetcher.js +2 -2
- package/package.json +1 -1
- package/src/http/fetcher.ts +2 -2
package/dist/http/fetcher.js
CHANGED
|
@@ -115,7 +115,7 @@ class Fetcher {
|
|
|
115
115
|
const started = Date.now();
|
|
116
116
|
if (this.cfg.logRequest) {
|
|
117
117
|
const { retryAttempt } = res.retryStatus;
|
|
118
|
-
logger.log([' >>', signature, retryAttempt && `try#${retryAttempt + 1}/${req.retry.count}`]
|
|
118
|
+
logger.log([' >>', signature, retryAttempt && `try#${retryAttempt + 1}/${req.retry.count + 1}`]
|
|
119
119
|
.filter(Boolean)
|
|
120
120
|
.join(' '));
|
|
121
121
|
if (this.cfg.logRequestBody && req.init.body) {
|
|
@@ -147,7 +147,7 @@ class Fetcher {
|
|
|
147
147
|
' <<',
|
|
148
148
|
res.fetchResponse.status,
|
|
149
149
|
signature,
|
|
150
|
-
retryAttempt && `try#${retryAttempt + 1}/${req.retry.count}`,
|
|
150
|
+
retryAttempt && `try#${retryAttempt + 1}/${req.retry.count + 1}`,
|
|
151
151
|
(0, time_util_1._since)(started),
|
|
152
152
|
]
|
|
153
153
|
.filter(Boolean)
|
package/dist-esm/http/fetcher.js
CHANGED
|
@@ -124,7 +124,7 @@ export class Fetcher {
|
|
|
124
124
|
const started = Date.now();
|
|
125
125
|
if (this.cfg.logRequest) {
|
|
126
126
|
const { retryAttempt } = res.retryStatus;
|
|
127
|
-
logger.log([' >>', signature, retryAttempt && `try#${retryAttempt + 1}/${req.retry.count}`]
|
|
127
|
+
logger.log([' >>', signature, retryAttempt && `try#${retryAttempt + 1}/${req.retry.count + 1}`]
|
|
128
128
|
.filter(Boolean)
|
|
129
129
|
.join(' '));
|
|
130
130
|
if (this.cfg.logRequestBody && req.init.body) {
|
|
@@ -156,7 +156,7 @@ export class Fetcher {
|
|
|
156
156
|
' <<',
|
|
157
157
|
res.fetchResponse.status,
|
|
158
158
|
signature,
|
|
159
|
-
retryAttempt && `try#${retryAttempt + 1}/${req.retry.count}`,
|
|
159
|
+
retryAttempt && `try#${retryAttempt + 1}/${req.retry.count + 1}`,
|
|
160
160
|
_since(started),
|
|
161
161
|
]
|
|
162
162
|
.filter(Boolean)
|
package/package.json
CHANGED
package/src/http/fetcher.ts
CHANGED
|
@@ -329,7 +329,7 @@ export class Fetcher {
|
|
|
329
329
|
if (this.cfg.logRequest) {
|
|
330
330
|
const { retryAttempt } = res.retryStatus
|
|
331
331
|
logger.log(
|
|
332
|
-
[' >>', signature, retryAttempt && `try#${retryAttempt + 1}/${req.retry.count}`]
|
|
332
|
+
[' >>', signature, retryAttempt && `try#${retryAttempt + 1}/${req.retry.count + 1}`]
|
|
333
333
|
.filter(Boolean)
|
|
334
334
|
.join(' '),
|
|
335
335
|
)
|
|
@@ -365,7 +365,7 @@ export class Fetcher {
|
|
|
365
365
|
' <<',
|
|
366
366
|
res.fetchResponse.status,
|
|
367
367
|
signature,
|
|
368
|
-
retryAttempt && `try#${retryAttempt + 1}/${req.retry.count}`,
|
|
368
|
+
retryAttempt && `try#${retryAttempt + 1}/${req.retry.count + 1}`,
|
|
369
369
|
_since(started),
|
|
370
370
|
]
|
|
371
371
|
.filter(Boolean)
|