wikibase-edit
Advanced tools
Comparing version
// Generated by scripts/postversion | ||
export const name = "wikibase-edit" | ||
export const version = "7.0.3" | ||
export const version = "7.0.4" | ||
export const homepage = "https://github.com/maxlath/wikibase-edit" | ||
export const issues = "https://github.com/maxlath/wikibase-edit/issues" | ||
@@ -53,3 +53,3 @@ import { stringifyQuery, wait } from '../utils.js' | ||
const errorIsWorthARetry = err => { | ||
if (errorsWorthARetry.has(err.name) || errorsWorthARetry.has(err.type)) return true | ||
if (errorsWorthARetry.has(err.name) || errorsWorthARetry.has(err.type) || errorsCodeWorthARetry.has(err.code || err.cause?.code)) return true | ||
// failed-save might be a recoverable error from the server | ||
@@ -73,2 +73,7 @@ // See https://github.com/maxlath/wikibase-cli/issues/150 | ||
const errorsCodeWorthARetry = new Set([ | ||
'ECONNREFUSED', | ||
'UND_ERR_CONNECT_TIMEOUT', | ||
]) | ||
const defaultRetryDelay = 5 | ||
@@ -75,0 +80,0 @@ const getRetryDelay = headers => { |
{ | ||
"name": "wikibase-edit", | ||
"version": "7.0.3", | ||
"version": "7.0.4", | ||
"description": "Edit Wikibase from NodeJS", | ||
@@ -5,0 +5,0 @@ "type": "module", |
108683
0.14%2718
0.15%