Comparing version 95.0.0 to 96.0.0
@@ -102,7 +102,4 @@ import sjcl from "sjcl"; | ||
catch (e) { | ||
const asError = e; | ||
asError.message = | ||
`Failed after ${times} retries. Last error:\n${asError.message}`; | ||
if (!predicate(asError)) | ||
throw asError; | ||
if (!predicate(e)) | ||
throw e; | ||
return sleep(waitMs).then(() => conditionalRetry(predicate)(waitMs, times - 1, f)(...x)); | ||
@@ -109,0 +106,0 @@ } |
{ | ||
"name": "gamla", | ||
"version": "95.0.0", | ||
"version": "96.0.0", | ||
"description": "Functional programming with async and type safety", | ||
@@ -5,0 +5,0 @@ "repository": { |
@@ -110,7 +110,4 @@ "use strict"; | ||
catch (e) { | ||
const asError = e; | ||
asError.message = | ||
`Failed after ${times} retries. Last error:\n${asError.message}`; | ||
if (!predicate(asError)) | ||
throw asError; | ||
if (!predicate(e)) | ||
throw e; | ||
return (0, time_js_1.sleep)(waitMs).then(() => (0, exports.conditionalRetry)(predicate)(waitMs, times - 1, f)(...x)); | ||
@@ -117,0 +114,0 @@ } |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
352530
2588