ts-retry
Version:
A little retry tool to execute a function until the function is successful. Can also bind a timeout to a function. This lib is usable in typescript, in javascript, in node, in SPA tools (rest, Vue, Svelte...) and browser (available in ESM and common js fo
64 lines (63 loc) • 1.4 kB
JSON
{
"name": "ts-retry",
"version": "6.0.0",
"main": "lib/cjs/index.js",
"module": "lib/esm/index.js",
"typings": "lib/cjs/index.d.ts",
"repository": "https://github.com/franckLdx/ts-retry.git",
"author": "Franck Ledoux <franck.ledoux.pro@gmail.com>",
"license": "MIT",
"devDependencies": {
"@types/chai": "4.3.10",
"@types/mocha": "10.0.6",
"@types/node": "20.11.17",
"@types/sinon": "17.0.3",
"@types/sinon-chai": "3.2.12",
"chai": "^4.2.0",
"cross-env": "7.0.3",
"mocha": "10.3.0",
"nyc": "^15.1.0",
"rimraf": "5.0.5",
"sinon": "17.0.1",
"sinon-chai": "3.7.0",
"ts-mocha": "10.0.0",
"ts-node": "10.9.2",
"typescript": "5.3.3",
"yarn": "1.22.21"
},
"files": [
"lib/**/*.js",
"lib/**/*.d.ts",
"package.json",
"README.md",
"LICENSE"
],
"scripts": {
"prebuild": "rimraf lib",
"watch": "tsc --watch",
"build": "tsc && tsc -p tsconfig.esm.json",
"test": "mocha --require ts-node/register src/**/*.test.ts",
"test-coverage": "nyc mocha --require ts-node/register src/**/*.test.ts"
},
"keywords": [
"typescript",
"javascript",
"retry",
"repeat",
"replay",
"node",
"nodejs",
"error",
"promise",
"async",
"await",
"asyncawait",
"trycatch",
"react",
"reactjs",
"angular",
"vue",
"svelte",
"deno"
]
}