feat: add retry logic for dynamic imports (#6512)
* feat: add retry logic for lazy import * try again * add tests * refactor: moves retry helper to subfolder * missing-files * fix * doc comment * tsdoc * fake timers * fix * add eslint rule * try again? * try again? * only dynamic * try again * try again * IT WORKS * add retry * fix * add test * warn -> error * lint * lint * lint * add back cache * rm test * try again * real timers but really short intervals * try returning the promise? * try returning the promise? * try this package * retry * Update src/utils/retry.ts Co-authored-by:Zach Pomerantz <zzmp@uniswap.org> * Update rules/enforce-retry-on-import.js Co-authored-by:
Zach Pomerantz <zzmp@uniswap.org> * Update rules/enforce-retry-on-import.js Co-authored-by:
Zach Pomerantz <zzmp@uniswap.org> * eslint_rules * test fixes * name * fix --------- Co-authored-by:
Zach Pomerantz <zzmp@uniswap.org>
Showing
... | ... | @@ -110,6 +110,7 @@ |
"env-cmd": "^10.1.0", | ||
"eslint": "^7.11.0", | ||
"eslint-plugin-import": "^2.27", | ||
"eslint-plugin-rulesdir": "^0.2.2", | ||
"hardhat": "^2.14.0", | ||
"jest-fail-on-console": "^3.1.1", | ||
"jest-fetch-mock": "^3.0.3", | ||
... | ... |
src/utils/retry.test.ts
0 → 100644
src/utils/retry.ts
0 → 100644
Please register or sign in to comment