@cardano-graphql/util
Advanced tools
Comparing version
@@ -5,3 +5,4 @@ "use strict"; | ||
exports.onFailedAttemptFor = (operation) => ({ attemptNumber, message, retriesLeft }) => { | ||
const nextAction = retriesLeft > 0 ? 'retying...' : 'exiting'; | ||
const nextAction = retriesLeft > 0 ? 'retrying...' : 'exiting'; | ||
console.warn(message); | ||
console.log(`${operation}: Attempt ${attemptNumber} of ${attemptNumber + retriesLeft}, ${nextAction}`); | ||
@@ -8,0 +9,0 @@ if (retriesLeft === 0) { |
@@ -22,3 +22,3 @@ "use strict"; | ||
function validateInput(input) { | ||
if (input.length !== 64) | ||
if (input.length !== 64 && input.length !== 56) | ||
throw new graphql_1.GraphQLError(`${input} is not a valid hash`); | ||
@@ -25,0 +25,0 @@ return `\\x${input}`; |
{ | ||
"name": "@cardano-graphql/util", | ||
"version": "2.0.0", | ||
"version": "2.1.0", | ||
"description": "Common utilities", | ||
@@ -5,0 +5,0 @@ "main": "dist/index.js", |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
548879
0.72%210
0.48%