{"_id":"async-retry-ng","_rev":"7-c4ad6600a25ecde513267c66c07ff952","name":"async-retry-ng","dist-tags":{"latest":"2.0.2"},"versions":{"1.0.0":{"name":"async-retry-ng","version":"1.0.0","license":"MIT","_id":"async-retry-ng@1.0.0","maintainers":[{"name":"olliv","email":"olli.vanhoja@gmail.com"}],"homepage":"https://github.com/olliv/async-retry-ng#readme","bugs":{"url":"https://github.com/olliv/async-retry-ng/issues"},"dist":{"shasum":"b91710e16a28bdaf6068277ec8c9418b388d4dc0","tarball":"https://registry.npmjs.org/async-retry-ng/-/async-retry-ng-1.0.0.tgz","fileCount":6,"integrity":"sha512-lrgmi4hinh5tiHyt3wC0aQBYqtvEu74CNHyr2VgYuJUU9S3paflUjpg6uiO2ETWyJpC3rBLOlO3vR9dPLfIa5Q==","signatures":[{"sig":"MEUCIBo2Yxq+G8V8L/mG2twiAuwTYdvSsU5BdlrRqYA9GtgdAiEAl3U/NKFK/cS/L/H4aJoBYA3TPGEw1bxbmahuavnw2W0=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":12486,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJd9X7SCRA9TVsSAnZWagAADm4QAJW3uhX3DC8oIH1YfI+O\nekiznUHHZhnHWNJ/DqFAIJTyZOlveI6/CP8m5MfApb73T65sgWv4Q9xjmNdm\nK23lpHHmyIXnNZw8Ynq7K02BMonQ++aAPi3E0kFy/Apl+elne1w8oSCasxzp\nB5Waz9qKMlI3c0YYwlLMvpqeyiMCJxKmzj87Wmp73DW3oqTnutNlgujCWVOb\n8VCTtQjfjnMlQVKDrNXOxERxy90l7+IbgVPOd1khvQiW47bI9Cb2yXIOd67M\nD4rNnolywpszHjb69kbdvpNt04gwueThAVBA6PRHwjT/AZunGFWkYwyoLc9U\nTzuJA32ZcWR31KOvB1ty3hDWM0fiGfNUfWyz7IH/EMtwkzDVvldq4eSaBdmL\nB4N/YsziTjVmMpenRXuZLTCmu2ZQ3HjJk4QG06E+EbHvcHzqY+7kKIjR9Jyx\nxRhD4+xMc4N23Q5UDPGEYQqX7dPtEPVJs4n+XDrjhb/BiIpLtlOFlxSodBW+\nDE4N4VrFhEzoZ3rnXKPzZiZLGCpwzbcU2Yzq7u84i+CXKWnMRAttTNOLJkuo\nb163pDn374zzTsAbvtUlomTiUpTVFjICe3+MLLdB+6cTQNgZl7yJ7Sttv2MA\nSCcKG5u5ThtlRtwh6PDyo8XltXyDo41PjTS2yzxdd3/BFdwA/O7ANYoAZJ24\nT1Xn\r\n=Y+Au\r\n-----END PGP SIGNATURE-----\r\n"},"main":"./lib/index.js","gitHead":"eb8f44b50ca4c267a0f2f9f0ce41d8c74da7ca8d","scripts":{"test":"yarn run test-lint && yarn run test-unit","test-lint":"eslint .","test-unit":"jest --testTimeout 20000","lint:staged":"lint-staged"},"_npmUser":{"name":"olliv","email":"olli.vanhoja@gmail.com"},"pre-commit":"lint:staged","repository":{"url":"git+https://github.com/olliv/async-retry-ng.git","type":"git"},"_npmVersion":"6.11.3","description":"Retrying made simple, easy and async","directories":{},"lint-staged":{"*.js":["eslint","prettier --write --single-quote","git add"]},"_nodeVersion":"12.11.1","eslintConfig":{"rules":{"no-underscore-dangle":0,"prefer-arrow-callback":0},"extends":["plugin:jest/recommended","airbnb","prettier"],"plugins":["jest"]},"_hasShrinkwrap":false,"devDependencies":{"jest":"24.9.0","eslint":"6.7.2","prettier":"1.19.1","node-fetch":"2.6.0","pre-commit":"1.2.2","then-sleep":"1.0.1","lint-staged":"9.5.0","eslint-plugin-jest":"23.1.1","eslint-plugin-react":"7.14.3","eslint-config-airbnb":"18.0.1","eslint-plugin-import":"2.19.1","eslint-config-prettier":"6.7.0","eslint-plugin-jsx-a11y":"6.2.3","eslint-plugin-react-hooks":"1.7.0"},"_npmOperationalInternal":{"tmp":"tmp/async-retry-ng_1.0.0_1576369873996_0.3677785333012602","host":"s3://npm-registry-packages"}},"1.0.1":{"name":"async-retry-ng","version":"1.0.1","license":"MIT","_id":"async-retry-ng@1.0.1","maintainers":[{"name":"olliv","email":"olli.vanhoja@gmail.com"}],"homepage":"https://github.com/olliv/async-retry-ng#readme","bugs":{"url":"https://github.com/olliv/async-retry-ng/issues"},"dist":{"shasum":"b8a316b26992e8d514c5019439d9791c1c6f4431","tarball":"https://registry.npmjs.org/async-retry-ng/-/async-retry-ng-1.0.1.tgz","fileCount":7,"integrity":"sha512-7hhM6q229ZZ/6ge0Gz3vIq0zzOvkLbuwW0HUNl1zRNRw52bYjwIBiOaCS3UDmZADWWPX2apaU97WdJPjcMfRmQ==","signatures":[{"sig":"MEQCIEstRdOMBp8YiGUPQwz/QFKsNancUqCS4wMPdHpEqqtNAiAlzMexr1CJMsTeeaZxKIW4MdTwd7OAe9o2nSmkTxxphA==","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":13192,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJd9YD9CRA9TVsSAnZWagAAiBUP/35FfeLj05wXLufYY5r8\neGx5c1uymZNKdFCsYfKYYix+J/2brfKafXK+o/kqlA/TJZzgVWK0MQ7eKl2t\nF+tZrXoQT1rY8ALIDrRrsb2gJH6UmPuZ83gULSucQhPAcAeFiqRHEUWaIQdv\nr2kGnrMJUw7rhHS7NDhfnL9R1e4Pf8pmERts4EsGyWo1rDeIwbtVyp4rohT4\nt+vGcZBzRiYWb4oLKq0nSuPdmxKRSxUBEjBBitrgy2fBXp/Cgm6ytY6UfQZ6\nJKS/OpLSPPzP41DinQelZHkAd8yScvFQwC2iAvmcV/HrOPvsgEVsIHXDVf3T\nyj7aPDdN1gJxvM4aH5AxP3HhlZMJxX5uWbUsZ0MoNaGk1Ri7vZ9Ss1G4PXHM\nHgUSxzcCHSUokqHQ6e4Ihep1yDCYEsmoa7EryuFMLTwoOQOwQ/qM2CB8X0G9\nr8in5Q8bc/P5mA9+lwY7v3YfLKBGVqYSshrJ3Q+rCuEKGfi7dyUrHM5GpzPV\n3M2B9t+8rSx4Mpfv5ErIJWQWPu2oTzR4NCx8f/ferPCA8SQrN4iZh5I22V7j\nEt23NuhVuhQ5xMu30MoPP0QaxPmKXxAOpHx8ohbKJ3D9OHk2gPx2C/EVvhu5\nXf1ZQgYEf/b1n+e3ko07U08pu2Ih0ORkaTtMvebW4dIVTA/JM+GBMNi9AkVL\nBI2U\r\n=uqKs\r\n-----END PGP SIGNATURE-----\r\n"},"main":"./lib/index.js","gitHead":"955833a2ed0bb56c37f02d47240fa4f04a6aa587","scripts":{"test":"yarn run test-lint && yarn run test-unit","test-lint":"eslint .","test-unit":"jest --testTimeout 20000","lint:staged":"lint-staged"},"_npmUser":{"name":"olliv","email":"olli.vanhoja@gmail.com"},"pre-commit":"lint:staged","repository":{"url":"git+https://github.com/olliv/async-retry-ng.git","type":"git"},"_npmVersion":"6.11.3","description":"Retrying made simple, easy and async","directories":{},"lint-staged":{"*.js":["eslint","prettier --write --single-quote","git add"]},"_nodeVersion":"12.11.1","eslintConfig":{"rules":{"no-underscore-dangle":0,"prefer-arrow-callback":0},"extends":["plugin:jest/recommended","airbnb","prettier"],"plugins":["jest"]},"_hasShrinkwrap":false,"devDependencies":{"jest":"24.9.0","eslint":"6.7.2","prettier":"1.19.1","node-fetch":"2.6.0","pre-commit":"1.2.2","then-sleep":"1.0.1","lint-staged":"9.5.0","eslint-plugin-jest":"23.1.1","eslint-plugin-react":"7.14.3","eslint-config-airbnb":"18.0.1","eslint-plugin-import":"2.19.1","eslint-config-prettier":"6.7.0","eslint-plugin-jsx-a11y":"6.2.3","eslint-plugin-react-hooks":"1.7.0"},"_npmOperationalInternal":{"tmp":"tmp/async-retry-ng_1.0.1_1576370429150_0.49559425838833837","host":"s3://npm-registry-packages"}},"1.0.2":{"name":"async-retry-ng","version":"1.0.2","license":"MIT","_id":"async-retry-ng@1.0.2","maintainers":[{"name":"olliv","email":"olli.vanhoja@gmail.com"}],"homepage":"https://github.com/olliv/async-retry-ng#readme","bugs":{"url":"https://github.com/olliv/async-retry-ng/issues"},"dist":{"shasum":"eb9d8313af649404d4cf862075f662f29b05c510","tarball":"https://registry.npmjs.org/async-retry-ng/-/async-retry-ng-1.0.2.tgz","fileCount":7,"integrity":"sha512-79JeZLgRbo8E4RI+/O3D4+Lt0ZVARI5Qw9OtTBJzGB7nuORKciwb3N3+5/ATsOctpjkj6Jres74UTaWOdapkaQ==","signatures":[{"sig":"MEUCIHd87nqamdUyf8uH6+sSdMkNx7nKp9FMDEAro/gTPoowAiEApjc2H5JtY3cj1C/tQI3ariQM4LapKOXwtVnXelBfeSo=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":13193,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJeUt0ECRA9TVsSAnZWagAAXmEP+wcyjCKNU8jbKOn3INn+\nxnuxFfvj1sNn8ifHt8bgjcSbaZe0Ed/FYVte6xrMbOspL86CiWgEIgZxVt7k\nbknaUr+Qi7zguZFCBcwp1QltC86UoARaN6wPNjWFm3+gJl3VKRe10MS846Ym\nVh/QIOCdslqP+XVpzgU8BPM9BmEYUeNeijxpBwnlp8OlGhLg60NAhtxJ2rYL\n6l6OiDjIJf7pHkaesRwVHgfl3Lqj6To5T3TRlZzwjtd39CtzlIXzCF3nnlk7\nJPQPkmb8GdPXzPU31SDVnW1jwcEb7ezDGmCLfq4yuHhSaqpOD5o9Ie11oOaV\nuG3GJAquqP/AsvzzxRmXjscwerAjgvFRBe7gQJBX6HuvjNVkfKehxuiM4Eqc\nu57RShaQFkYCLAOYW3bamhauXHy/CJfzDbck/XMjnyiWRwFXQdsZZtOOxSEK\n3wNFsLHuES1ameZSSbTvhMomOm7dXjMhQSmlNL0aVYQnh/wbKpyEaG97XFCn\necbHBz/WL4C3pm0RWJ266FTuz/7i4s283NBvgRWEYnJlz07DQHjf39y870d+\nod86pWQIU4kEv3wbEP1V7OqcfYM8P6pQtzWZgb7eDi4w3XVHDHlReXRNhPqb\n258VnH6mo6NBX3pSFakJCmzOvcumXtfqiPqDDg5P96PTLQDI7bsqEGIN9GEv\nsDVg\r\n=HhQ3\r\n-----END PGP SIGNATURE-----\r\n"},"main":"./lib/index.js","gitHead":"db4bc509a3d01940042e7e8eb5ea8f41e425e2de","scripts":{"test":"yarn run test-lint && yarn run test-unit","test-lint":"eslint .","test-unit":"jest --testTimeout 20000","lint:staged":"lint-staged"},"_npmUser":{"name":"olliv","email":"olli.vanhoja@gmail.com"},"pre-commit":"lint:staged","repository":{"url":"git+https://github.com/olliv/async-retry-ng.git","type":"git"},"_npmVersion":"6.11.3","description":"Retrying made simple, easy and async","directories":{},"lint-staged":{"*.js":["eslint","prettier --write --single-quote","git add"]},"_nodeVersion":"12.11.1","eslintConfig":{"rules":{"no-underscore-dangle":0,"prefer-arrow-callback":0},"extends":["plugin:jest/recommended","airbnb","prettier"],"plugins":["jest"]},"_hasShrinkwrap":false,"devDependencies":{"jest":"24.9.0","eslint":"6.7.2","prettier":"1.19.1","node-fetch":"2.6.0","pre-commit":"1.2.2","then-sleep":"1.0.1","lint-staged":"9.5.0","eslint-plugin-jest":"23.1.1","eslint-plugin-react":"7.14.3","eslint-config-airbnb":"18.0.1","eslint-plugin-import":"2.19.1","eslint-config-prettier":"6.7.0","eslint-plugin-jsx-a11y":"6.2.3","eslint-plugin-react-hooks":"1.7.0"},"_npmOperationalInternal":{"tmp":"tmp/async-retry-ng_1.0.2_1582488835620_0.8394478324357879","host":"s3://npm-registry-packages"}},"2.0.0":{"name":"async-retry-ng","version":"2.0.0","license":"MIT","_id":"async-retry-ng@2.0.0","maintainers":[{"name":"jamo","email":"jamo@isotalo.fi"},{"name":"olliv","email":"olli.vanhoja@gmail.com"}],"homepage":"https://github.com/turist-cloud/async-retry-ng#readme","bugs":{"url":"https://github.com/turist-cloud/async-retry-ng/issues"},"dist":{"shasum":"2a1b71f45b1339cc4a24da7150fa58e9a0c405ad","tarball":"https://registry.npmjs.org/async-retry-ng/-/async-retry-ng-2.0.0.tgz","fileCount":7,"integrity":"sha512-meSKrvYhWBHs12+8OSPl3wjBoAxYY1eOGkdLvudMZwXEsI2ZpoBNQAvKrHoAoW4Pgoa8+T6TftLippj1S7GP1Q==","signatures":[{"sig":"MEUCIC1N9M/yhOzq1/fBqANVmidR9D8ozoy2+V61Oikxy/eAAiEAxi4QN3UmwWBZlLvaaZyfsssu2vf7uiNQ5NR37663VYA=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":13407,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJed8fFCRA9TVsSAnZWagAAnT4QAJ23Lugt+JJkZ7Sb33Oq\nxsayfU/l/M2pa9yPrnrQJSUhHt7wy/aACR7QG15vobkQBQX0Qf/94d6RDc6H\n6yPe+pasnTu5HDPccRvOaXNR+klxvRTP1uE6aUpIwc/Mg0fz0prE4mKtZUMO\ni4cPpGx4OunZAbo5EdTJLw7vDoSd9rkFUWkjj+z3U+v+9VA/JZTbZydK2hzf\n0oTjHt3uawivmAMQ9ckybFSdRBhr/yvDh1g+rCzGD6pmSFSFddGb9X0F8FOM\nMj0UMYE8+TDDdKTMRywnAONC42S/8YmdpI2wHxLV0Y0L8P8q/bVtqhnlagCx\nUW78RSxZfmoSXTmI4GfsfIbnJvOfVpq07CwXnV7QkUrCqVd4Oa9a7FY6jn+n\nuKLWcIrqpx0RG/NBwaxLvFFi8dlIex4Nt2inHKg9Q1J4Fe3XYnnjpWWyhryf\nb6+e4SUc3UwWGxgRpz6r1RmGETShvaSBxoOWZ2B68hSdpIKtd2nfyW7Mn0ZT\n1JJ3yeab4sQQMIIBgPC8qJEo1Df3Wu1aH2tq/l/s2aMaxzCIiDcQDE7wlUXp\n0/gN6Sawk2Kzzk0hteVPk6ci/iN0RFon/LSrIClLr0B2OHyoqZp7VbYZeGIb\nceR0yujNyvOZBd0aaBauJmGRsylUf8hVRgXIVwuwCfafOUgY6/FbGN3Dkd9u\nFwi1\r\n=PDbC\r\n-----END PGP SIGNATURE-----\r\n"},"main":"./lib/index.js","gitHead":"73c44b469f56225624ff5479d3a5a8178b83e5e3","scripts":{"test":"yarn run test-lint && yarn run test-unit","prettier":"prettier --single-quote --write './{src,__tests__}/**/*.js'","test-lint":"eslint .","test-unit":"jest --testTimeout 20000","lint:staged":"lint-staged"},"_npmUser":{"name":"olliv","email":"olli.vanhoja@gmail.com"},"pre-commit":"lint:staged","repository":{"url":"git+https://github.com/turist-cloud/async-retry-ng.git","type":"git"},"_npmVersion":"6.13.4","description":"Retrying made simple, easy and async","directories":{},"lint-staged":{"*.js":["eslint","prettier --write --single-quote"]},"_nodeVersion":"12.16.1","eslintConfig":{"rules":{"no-plusplus":0,"no-param-reassign":0,"no-restricted-syntax":0,"no-underscore-dangle":0,"prefer-arrow-callback":0,"no-restricted-properties":0},"extends":["plugin:jest/recommended","airbnb","prettier"],"plugins":["jest"]},"_hasShrinkwrap":false,"devDependencies":{"jest":"25.1.0","eslint":"6.8.0","prettier":"2.0.1","node-fetch":"2.6.0","pre-commit":"1.2.2","then-sleep":"1.0.1","lint-staged":"10.0.8","eslint-plugin-jest":"23.8.2","eslint-plugin-react":"7.19.0","eslint-config-airbnb":"18.1.0","eslint-plugin-import":"2.20.1","eslint-config-prettier":"6.10.1","eslint-plugin-jsx-a11y":"6.2.3","eslint-plugin-react-hooks":"2.5.1"},"_npmOperationalInternal":{"tmp":"tmp/async-retry-ng_2.0.0_1584908229180_0.0532300580419387","host":"s3://npm-registry-packages"}},"2.0.1":{"name":"async-retry-ng","version":"2.0.1","license":"MIT","_id":"async-retry-ng@2.0.1","maintainers":[{"name":"jamo","email":"jamo@isotalo.fi"},{"name":"olliv","email":"olli.vanhoja@gmail.com"}],"homepage":"https://github.com/turist-cloud/async-retry-ng#readme","bugs":{"url":"https://github.com/turist-cloud/async-retry-ng/issues"},"dist":{"shasum":"f5285ec1c52654a2ba6a505d0c18b1eadfaebd41","tarball":"https://registry.npmjs.org/async-retry-ng/-/async-retry-ng-2.0.1.tgz","fileCount":7,"integrity":"sha512-iitlc2murdQ3/A5Re3CcplQBEf7vOmFrFQ6RFn3+/+zZUyIHYkZnnEziMSa6YIb2Bs2EJEPZWReTxjHqvQbDbw==","signatures":[{"sig":"MEUCIEfNlYjnFgfcYv0oScApqkpl21V0DL9KsOWnUaCuI7jMAiEAjqUYm5UI2hJMFY41IBCBBMmJ3bEmL/pSqZaoqxw9Urc=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":13430,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJevDb5CRA9TVsSAnZWagAAGagP/0nU0M/8VQsRXFGHOjkk\nswgYu3mDwBFFhEpXgBn3wq+U9QmRqEdihbqoZVXdNUP/iRVxtjhuMR7fLHNX\nN1TilSaygpf4a6rY5YDZ0tLOqIKrDwnVk115ifJserogUuC71KkukG0cy3TQ\nNLVhbjK5JB/KQEv4uhc7IEs1EEZAQdQdinSR3tPfeQM2NS6Y5UQ5r7ICJjyC\nfCGHlwfaZXGYDH/GnJ+rrdBFPJormf79N/nrIuhdAjRD26x1teb4L1QAzLhR\nKweoDOTF42SGOtnrtOhPCbFVF3OkPcL0ohdWpE57uwALicm0wkY3U4Y1eomi\nYh7IgbZ/X/RxZClCG4MERke9tMUELJt2vDscifNTjSwdg7E3Mni1aKLnR/mH\n87hMCu6mKcSbm03OT4RWS2iAjhFpxJIpUqrTlEAaQ3G/0+TTrk5bPjy0q6f/\nSsJFwGnMZI+YblggGrhfi06uzaCcUwLQD7gBPufM50VxiTBRro0ugWtx88jI\nzQS4/lQEe0gWwpxP4S5g3GWjmVhG8EZe465yfkqlV8pBos7r0/wo63NuBIgS\nvelg3I01pWcwNMCMuO1AcKueguDyGwyUrbVQ4o9g+6e8OMRQSUfwfT3FwhBB\n5zlD0U1VrY7RMxckiXuOU22xEqeZ8+4PZGZhFupUPffCvjS2tDNSsKcwoCYg\nuHIR\r\n=qaL4\r\n-----END PGP SIGNATURE-----\r\n"},"main":"./lib/index.js","gitHead":"0118cbe966384413af29c4d897af3d8e707003cf","scripts":{"test":"yarn run test-lint && yarn run test-unit","prettier":"prettier --single-quote --write './{src,__tests__}/**/*.js'","test-lint":"eslint .","test-unit":"jest --testTimeout 20000","lint:staged":"lint-staged"},"_npmUser":{"name":"olliv","email":"olli.vanhoja@gmail.com"},"pre-commit":"lint:staged","repository":{"url":"git+https://github.com/turist-cloud/async-retry-ng.git","type":"git"},"_npmVersion":"6.13.4","description":"Retrying made simple, easy and async","directories":{},"lint-staged":{"*.js":["eslint","prettier --write --single-quote"]},"_nodeVersion":"12.16.1","eslintConfig":{"rules":{"no-plusplus":0,"no-param-reassign":0,"no-restricted-syntax":0,"no-underscore-dangle":0,"prefer-arrow-callback":0,"no-restricted-properties":0},"extends":["plugin:jest/recommended","airbnb","prettier"],"plugins":["jest"]},"_hasShrinkwrap":false,"devDependencies":{"jest":"25.1.0","eslint":"6.8.0","prettier":"2.0.1","node-fetch":"2.6.0","pre-commit":"1.2.2","then-sleep":"1.0.1","lint-staged":"10.0.8","eslint-plugin-jest":"23.8.2","eslint-plugin-react":"7.19.0","eslint-config-airbnb":"18.1.0","eslint-plugin-import":"2.20.1","eslint-config-prettier":"6.10.1","eslint-plugin-jsx-a11y":"6.2.3","eslint-plugin-react-hooks":"2.5.1"},"_npmOperationalInternal":{"tmp":"tmp/async-retry-ng_2.0.1_1589393144529_0.7382248674109471","host":"s3://npm-registry-packages"}},"2.0.2":{"name":"async-retry-ng","version":"2.0.2","description":"Retrying made simple, easy and async","main":"./lib/index.js","scripts":{"test":"jest --testTimeout 20000","prettier":"prettier --single-quote --write './{src,__tests__}/**/*.js'"},"license":"MIT","repository":{"type":"git","url":"git+https://github.com/turist-cloud/async-retry-ng.git"},"devDependencies":{"jest":"29.7.0","node-fetch":"2.6.7","prettier":"3.4.2","then-sleep":"1.0.1"},"_id":"async-retry-ng@2.0.2","gitHead":"4826740c02d684f9c7343b712f6c280834e16dbd","types":"./lib/index.d.ts","bugs":{"url":"https://github.com/turist-cloud/async-retry-ng/issues"},"homepage":"https://github.com/turist-cloud/async-retry-ng#readme","_nodeVersion":"20.11.1","_npmVersion":"10.2.4","dist":{"integrity":"sha512-mXb0C8K7sgQHwmohKeQUWtXR/VHVvp9rBGtqclMcLVWtz/8gxNKLkOXEP5wjDMsDGGXxdRPrV/Z4349MbAOSxA==","shasum":"c46db8fc6f67b75079c373381e64bfea53a0f298","tarball":"https://registry.npmjs.org/async-retry-ng/-/async-retry-ng-2.0.2.tgz","fileCount":7,"unpackedSize":12462,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQDSG+pE78wT/TPDt6m4+mMoNRAcc6EwkOiXfs3NYegVnAIhANylX9/ocSSvuX8dnd17fFVMm+OBpr/xL7fgB2wf1RCJ"}]},"_npmUser":{"name":"olliv","email":"olli.vanhoja@gmail.com"},"directories":{},"maintainers":[{"name":"olliv","email":"olli.vanhoja@gmail.com"},{"name":"jamo","email":"jamo@isotalo.fi"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages-npm-production","tmp":"tmp/async-retry-ng_2.0.2_1735637725848_0.0012143795184662576"},"_hasShrinkwrap":false}},"time":{"created":"2019-12-15T00:31:13.963Z","modified":"2024-12-31T09:35:26.231Z","1.0.0":"2019-12-15T00:31:14.177Z","1.0.1":"2019-12-15T00:40:29.271Z","1.0.2":"2020-02-23T20:13:55.785Z","2.0.0":"2020-03-22T20:17:09.302Z","2.0.1":"2020-05-13T18:05:44.642Z","2.0.2":"2024-12-31T09:35:26.027Z"},"bugs":{"url":"https://github.com/turist-cloud/async-retry-ng/issues"},"license":"MIT","homepage":"https://github.com/turist-cloud/async-retry-ng#readme","repository":{"type":"git","url":"git+https://github.com/turist-cloud/async-retry-ng.git"},"description":"Retrying made simple, easy and async","maintainers":[{"name":"olliv","email":"olli.vanhoja@gmail.com"},{"name":"jamo","email":"jamo@isotalo.fi"}],"readme":"# async-retry-ng\n\n[![Code Style](https://badgen.net/badge/code%20style/airbnb/fd5c63)](https://github.com/airbnb/javascript)\n\nRetrying made simple, easy, and async.\n\n## Usage\n\n```js\n// Packages\nconst retry = require('async-retry-ng')\nconst fetch = require('node-fetch')\n\nawait retry(async bail => {\n  // if anything throws, we retry\n  const res = await fetch('https://google.com')\n\n  if (403 === res.status) {\n    // don't retry upon 403\n    bail(new Error('Unauthorized'))\n    return\n  }\n\n  const data = await res.text()\n  return data.substr(0, 500)\n}, {\n  retries: 5\n})\n```\n\n### API\n\n```js\nretry(retrier : Function, opts : Object) => Promise\n```\n\n- The supplied function can be `async` or not. In other words, it can be a function that returns a `Promise` or a value.\n- The supplied function receives two parameters\n  1. A `Function` you can invoke to abort the retrying (bail)\n  2. A `Number` identifying the attempt. The absolute first attempt (before any retries) is `1`.\n- The `opts`\n  * `retries`: The maximum amount of times to retry the operation. Default is `10`.\n  * `factor`: The exponential factor to use. Default is `2`.\n  * `minTimeout`: The number of milliseconds before starting the first retry. Default is `1000`.\n  * `maxTimeout`: The maximum number of milliseconds between two retries. Default is `Infinity`.\n  * `randomize`: Randomizes the timeouts by multiplying with a factor between `1` to `2`. Default is `true`.\n  * `onRetry`: an optional `Function` that is invoked after a new retry is performed. It's passed the `Error` that triggered it as a parameter.\n\nAll time values are in milliseconds.\n\n### Retries Explained\n\nThe formula used to calculate the individual timeouts is:\n\n```\nMath.min(random * minTimeout * Math.pow(factor, attempt), maxTimeout)\n```\n\nHave a look at [this article][article] for a better explanation of approach.\n\nIf you want to tune your `factor` / `times` settings to attempt the last retry\nafter a certain amount of time, you can use wolfram alpha. For example in order\nto tune for `10` attempts in `5 minutes`, you can use this equation:\n\n![screenshot](https://github.com/OlliV/async-retry-ng/raw/master/equation.gif)\n\nExplaining the various values from left to right:\n\n* `k = 0 ... 9`:  The `retries` value (10)\n* `1000`: The `minTimeout` value in ms (1000)\n* `x^k`: No need to change this, `x` will be your resulting factor\n* `5 * 60 * 1000`: The desired total amount of time for retrying in ms (5 minutes)\n\nTo make this a little easier for you, use wolfram alpha to do the calculations:\n\n<http://www.wolframalpha.com/input/?i=Sum%5B1000*x^k%2C+{k%2C+0%2C+9}%5D+%3D+5+*+60+*+1000>\n\n[article]: http://dthain.blogspot.com/2009/02/exponential-backoff-in-distributed.html\n","readmeFilename":"README.md"}