{"_id":"@comparaonline/backoff","_rev":"24-4563e83fe93a47f166d2b6005c3000f5","name":"@comparaonline/backoff","dist-tags":{"latest":"1.0.0"},"versions":{"1.0.0":{"name":"@comparaonline/backoff","version":"1.0.0","keywords":["comparaonline"],"author":{"name":"Ezequiel Rabinovich","email":"erabinovich@comparaonline.com"},"license":"MIT","_id":"@comparaonline/backoff@1.0.0","maintainers":[{"name":"cnovoab","email":"claudio.novoa.b@gmail.com"},{"name":"smurua","email":"smurua@comparaonline.com"},{"name":"fmartinez","email":"federico.emanuel.martinez@gmail.com"},{"name":"javierlara1989","email":"javier.lara@usach.cl"},{"name":"matotias","email":"matotias@gmail.com"},{"name":"comparaonlineprivate","email":"dev@comparaonline.com"},{"name":"comparaonline-dev","email":"plataforma@comparaonline.com"},{"name":"jflobos","email":"jflobos@gmail.com"},{"name":"gnza","email":"go.sanchezm@gmail.com"},{"name":"lisandrop","email":"lisandrop@gmail.com"},{"name":"suarezcumare","email":"suarezcumare@gmail.com"},{"name":"juorderg","email":"johudergb@gmail.com"},{"name":"emartini","email":"esteban.martini@gmail.com"},{"name":"jokude","email":"hidalgo931@gmail.com"},{"name":"mnegrete","email":"mnegrete@comparaonline.com"},{"name":"warseph","email":"erabinovich@gmail.com"}],"dist":{"shasum":"b2894ae190c11185efa583a9d2fe08e642700cbd","tarball":"https://registry.npmjs.org/@comparaonline/backoff/-/backoff-1.0.0.tgz","fileCount":11,"integrity":"sha512-wZOoZuq2ed7mUGS9Ut4/amPxmIspVdOvAZPIU88G9s+RmDuJVEEOLBoE5Mn8dSb/rWnKjtkkqrGeiSqB4tgtrQ==","signatures":[{"sig":"MEQCIAhmuFL7lfLl2V8qP9mSZ4/A4HU6Y0cAdSxd2wpUeCV0AiAKlc2QfQ8acW90LeXSbZi/aNYnXceciXELdzCs1p86vg==","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":7116,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJh2DHTCRA9TVsSAnZWagAAQ3MQAJUwG5UjORE7Lx5oBrKX\nxm7Lf940SpdSED3kVF4UbS/NA9XGQmsn5+/20lf/+Wdu3xN2WuPbbFRSeyVt\nnMQTN4jRmJn9RsMyNqHiK1USTS+EH0OFGk8Kkw5SBi7Yh9VO7jovTwiFhxeH\nDaV4sWgEJY0N+DgFeIpww+pfOdSSKiQqfikQ/8ZnK4KoiYsLCga0LUfj+ksz\nmRtXDObyxJYEuaIFoAn5ndkXTDUGolG8nrEosHpKsVJC2MwxdogGt7PZFhwr\njCMVJ9Dkh0skg3s94ws/XP/P/DTefvCcclOvC+9paiCfP0JtbawMl2EwnMSS\nsTImjKKe6RE/+4bho81hfncKANLpjsydIGBylBw5dO2iYp7Sr7rQVx3UZJ8W\nIf5QszRNqBzI6oyoTZfbwX/JnmiOc3T8W5YgciUKIYOUHJAv+lZEWsBpHZpy\nr7+HlSVdm9y1p818eA+TdGunXKnGpXg+wXvBkUC4LLatyBbKEh/nXtRmpXS+\nXjKGzR/6wLDD9atM9XXt7FNX0NLafK0Ui8gpU37wSc+B5XUto+1w7KuFxp9q\n4gB6BsYqF+BFunBve2gu8MQVyRytRr9spFtrbueg79K7pLi+CgKxVXFKYtcm\nwg0AuBkUmvLBK8PdUW/+KDoO73BeQCsBd1DajccDiIeeMOClpxighVtpCWKL\n6/UI\r\n=Cgr8\r\n-----END PGP SIGNATURE-----\r\n"},"main":"build/index.js","types":"build/index.d.ts","private":false,"scripts":{"test":"jest","clean":"rm -rf build/*","tslint":"tslint -c tslint.json -p tsconfig.json","compile":"tsc","pretest":"yarn tslint","coverage":"jest --coverage","test:fast":"jest","prepublishOnly":"yarn compile"},"_npmUser":{"name":"warseph","email":"erabinovich@gmail.com"},"repository":{"url":"https://github.com/comparaonline/backoff.git","type":"git"},"description":"Simple method to retry and backoff an observable with errors","directories":{},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"devDependencies":{"jest":"^24.9.0","rxjs":"~6","tslint":"^5.20.0","ts-jest":"^24.1.0","ts-node":"^8.4.1","typescript":"^3.6.4","@types/jest":"^24.9.0","tslint-config-airbnb":"^5.11.2"},"peerDependencies":{"rxjs":"~6"},"_npmOperationalInternal":{"tmp":"tmp/backoff_1.0.0_1579794280084_0.8698104495178223","host":"s3://npm-registry-packages"}}},"time":{"created":"2020-01-23T15:44:39.918Z","modified":"2025-12-30T13:58:00.999Z","1.0.0":"2020-01-23T15:44:40.187Z"},"author":{"name":"Ezequiel Rabinovich","email":"erabinovich@comparaonline.com"},"license":"MIT","keywords":["comparaonline"],"repository":{"url":"https://github.com/comparaonline/backoff.git","type":"git"},"description":"Simple method to retry and backoff an observable with errors","maintainers":[{"email":"suarezcumare@gmail.com","name":"suarezcumare"},{"email":"plataforma@comparaonline.com","name":"comparaonline-dev"},{"email":"dev@comparaonline.com","name":"comparaonlineprivate"},{"email":"gnavarro@comparaonline.com","name":"gnavarro"},{"email":"matotias@gmail.com","name":"matotias"},{"email":"smurua@comparaonline.com","name":"smurua"},{"email":"eseceve@gmail.com","name":"eseceve"},{"email":"pfariaz011@gmail.com","name":"pfariaz"},{"email":"rsosa@comparaonline.com","name":"ricardo.sosa"},{"email":"dsuarez@comparaonline.com","name":"dsuarez_compa"},{"email":"emartini@comparaonline.com","name":"emartinicompara"}],"readme":"# backoff\n\nSimple backoff method to retry failed observables.\n\nIt takes two arguments, `maxTries` and `ms`, the amount of attempts and the number of\nmilliseconds that will be waited after the first failure. Any successive attempts\nthe method will backoff for the specified `ms` times the next power of 2\n\n## Usage:\n```ts\nimport { from } from 'rxjs';\nimport { backoff } from '@comparaonline/backoff';\n\nconst result = from(axios('http://sometimesfails.com')).pipe(\n  backoff(3, 10000)\n).toPromise();\n```\n\n`result` will either resolve correctly or retry two more times if it fails,\nwaiting 10 seconds the first time, and 40 the second time. If it fails a third\ntime, it will be rejected.\n","readmeFilename":"readme.md"}