UNPKG

@viveknayyar/re-promise

Version:

Retry failed api calls with a backoff time

106 lines (105 loc) 2.75 kB
{ "name": "@viveknayyar/re-promise", "version": "0.0.3", "description": "Retry failed api calls with a backoff time", "keywords": [ "retry-promise", "promise-retry", "api-promise", "re-promise" ], "main": "dist/index.js", "module": "dist/index.es.js", "esmodule": "dist/foo.modern.js", "unpkg": "dist/index.umd.js", "files": [ "dist", "README.md" ], "scripts": { "test": "cross-env NODE_ENV=test jest", "test:watch": "cross-env NODE_ENV=test jest --watch", "test:coverage": "cross-env NODE_ENV=test jest --coverage && cat ./coverage/lcov.info | coveralls", "lint": "eslint src/", "lint:fix": "eslint --fix src/", "build": "microbundle build", "contributors:add": "all-contributors add", "contributors:generate": "all-contributors generate", "commit": "./node_modules/.bin/git-cz", "prepare": "npm run build", "precommit": "lint-staged", "prepublish": "npm run test && npm run build" }, "lint-staged": { "src/**/*.js": [ "prettier --config .prettierrc --write", "git add" ] }, "husky": { "hooks": { "pre-commit": "npm run test" } }, "repository": { "type": "git", "url": "git+https://github.com/vivek12345/re-promise.git" }, "author": "Vivek Nayyar <vivek.of.nayyar@gmail.com> (https://viveknayyar.in)", "license": "MIT", "bugs": { "url": "https://github.com/vivek12345/re-promise/issues" }, "homepage": "https://github.com/vivek12345/re-promise#readme", "jest": { "collectCoverageFrom": [ "src/**/*.{js}" ], "testMatch": [ "<rootDir>/src/**/__tests__/**/*.{js}", "<rootDir>/src/**/?(*.)test.js" ], "testEnvironment": "jsdom", "testURL": "http://localhost", "transform": { "^.+\\.(js|jsx|mjs)$": "<rootDir>/node_modules/babel-jest" }, "transformIgnorePatterns": [ "[/\\\\]node_modules[/\\\\].+\\.(js|jsx|mjs)$" ], "moduleFileExtensions": [ "web.js", "js", "json", "web.jsx", "jsx", "node", "mjs" ] }, "devDependencies": { "@babel/cli": "^7.0.0", "@babel/core": "^7.0.0", "@babel/preset-env": "^7.10.2", "all-contributors-cli": "^6.15.0", "babel-core": "7.0.0-bridge.0", "babel-eslint": "^9.0.0", "babel-jest": "^26.0.1", "coveralls": "^3.0.2", "cross-env": "^5.2.0", "cz-conventional-changelog": "^3.2.0", "eslint": "^5.4.0", "husky": "^4.2.5", "jest": "^26.0.1", "jest-cli": "^26.0.1", "lint-staged": "^10.2.9", "microbundle": "^0.12.0", "prettier": "^1.14.2", "raf": "^3.4.0" }, "config": { "commitizen": { "path": "node_modules/cz-conventional-changelog" } } }