Debian Codegraph @

workspaces/arborist/test/fixtures/registry-mocks/content/p-retry.json

raw
1 {
2 "_id": "p-retry",
3 "_rev": "10-640bc99bda33230566a0cc4e32798cfb",
4 "name": "p-retry",
5 "description": "Retry a promise-returning or async function",
6 "dist-tags": {
7 "latest": "4.2.0"
8 },
9 "versions": {
10 "1.0.0": {
11 "name": "p-retry",
12 "version": "1.0.0",
13 "description": "Retry a promise-returning or async function",
14 "license": "MIT",
15 "repository": {
16 "type": "git",
17 "url": "git+https://github.com/sindresorhus/p-retry.git"
18 },
19 "author": {
20 "name": "Sindre Sorhus",
21 "email": "[email protected]",
22 "url": "sindresorhus.com"
23 },
24 "engines": {
25 "node": ">=4"
26 },
27 "scripts": {
28 "test": "xo && ava"
29 },
30 "files": [
31 "index.js"
32 ],
33 "keywords": [
34 "promise",
35 "retry",
36 "retries",
37 "operation",
38 "failed",
39 "rejected",
40 "try",
41 "exponential",
42 "backoff",
43 "attempt",
44 "async",
45 "await",
46 "promises",
47 "concurrently",
48 "concurrency",
49 "parallel",
50 "bluebird"
51 ],
52 "dependencies": {
53 "retry": "^0.10.0"
54 },
55 "devDependencies": {
56 "ava": "*",
57 "delay": "^1.3.1",
58 "xo": "*"
59 },
60 "xo": {
61 "esnext": true
62 },
63 "gitHead": "7d9ea993a59e23ca8d19cd651efa39a1651e6357",
64 "bugs": {
65 "url": "https://github.com/sindresorhus/p-retry/issues"
66 },
67 "homepage": "https://github.com/sindresorhus/p-retry#readme",
68 "_id": "[email protected]",
69 "_shasum": "3927332a4b7d70269b535515117fc547da1a6968",
70 "_from": ".",
71 "_npmVersion": "2.15.9",
72 "_nodeVersion": "4.6.0",
73 "_npmUser": {
74 "name": "sindresorhus",
75 "email": "[email protected]"
76 },
77 "dist": {
78 "shasum": "3927332a4b7d70269b535515117fc547da1a6968",
79 "tarball": "https://registry.npmjs.org/p-retry/-/p-retry-1.0.0.tgz"
80 },
81 "maintainers": [
82 {
83 "name": "sindresorhus",
84 "email": "[email protected]"
85 }
86 ],
87 "_npmOperationalInternal": {
88 "host": "packages-18-east.internal.npmjs.com",
89 "tmp": "tmp/p-retry-1.0.0.tgz_1477036222168_0.5073128861840814"
90 },
91 "directories": {}
92 },
93 "2.0.0": {
94 "name": "p-retry",
95 "version": "2.0.0",
96 "description": "Retry a promise-returning or async function",
97 "license": "MIT",
98 "repository": {
99 "type": "git",
100 "url": "git+https://github.com/sindresorhus/p-retry.git"
101 },
102 "author": {
103 "name": "Sindre Sorhus",
104 "email": "[email protected]",
105 "url": "sindresorhus.com"
106 },
107 "engines": {
108 "node": ">=6"
109 },
110 "scripts": {
111 "test": "xo && ava"
112 },
113 "files": [
114 "index.js"
115 ],
116 "keywords": [
117 "promise",
118 "retry",
119 "retries",
120 "operation",
121 "failed",
122 "rejected",
123 "try",
124 "exponential",
125 "backoff",
126 "attempt",
127 "async",
128 "await",
129 "promises",
130 "concurrently",
131 "concurrency",
132 "parallel",
133 "bluebird"
134 ],
135 "dependencies": {
136 "retry": "^0.12.0"
137 },
138 "devDependencies": {
139 "ava": "*",
140 "delay": "^2.0.0",
141 "xo": "*"
142 },
143 "gitHead": "8fa0decbb30cf97a74f242c9ab70bd069cd3e446",
144 "bugs": {
145 "url": "https://github.com/sindresorhus/p-retry/issues"
146 },
147 "homepage": "https://github.com/sindresorhus/p-retry#readme",
148 "_id": "[email protected]",
149 "_npmVersion": "5.6.0",
150 "_nodeVersion": "8.11.1",
151 "_npmUser": {
152 "name": "sindresorhus",
153 "email": "[email protected]"
154 },
155 "dist": {
156 "integrity": "sha512-ZbCuzAmiwJ45q4evp/IG9D+5MUllGSUeCWwPt3j/tdYSi1KPkSD+46uqmAA1LhccDhOXv8kYZKNb8x78VflzfA==",
157 "shasum": "b97f1f4d6d81a3c065b2b40107b811e995c1bfba",
158 "tarball": "https://registry.npmjs.org/p-retry/-/p-retry-2.0.0.tgz",
159 "fileCount": 4,
160 "unpackedSize": 5629,
161 "npm-signature": "-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJa4i26CRA9TVsSAnZWagAATwIP/1n1EEaOrGwqi3kX7Ivg\n9o0okbSaOktXAhkXDn7WyirQPc9PKMHoKS6IRPFzw/0EtPJzwE4nw2eYE0xu\nTe9qSH1nTdfPlp2objfT487MubFy//wBHCduTRN0RcA5XmioXpNg7GL9EBUY\nvRR5vArD1jCm8VNIuryOWAUvhtrOFpcScQuEL1Q17gyWUJ/X/LfSUpDbSLeZ\nKf1D3FGMQ+EaaIyrZS2KZeMgWq3QIJRzp7GafXtgc9SIFVJAzr21qkcYGzZ9\n8Bt0PfZ3aubCbhCX1wWRRJ0nDgmzb0V6MZYJyZY4XSAaG5xzFqtnHKc8uazO\nBiIVs9Rh0WyZe/iOltik0WfP8P/0/AiwAM23KGNFYVDqqP765k9mIKv2IgJM\nbt12KyReEVEKSdIleZO+o5AJjg1P2IJN6MufW0QadHLW6Sw9VeXn39YKc12q\nCvU7tfFrwZUbf7DyEci0mys7RiQCN3aHkv/dOWFB45yldny1zN46qWJdwEi/\nwToT+6RNNIxmDr+YsRLpF8QGHc3Lu9tRYqGWo6Hj5qcYPz5033VTzjpXwmcn\nEo9u6F0oycmcgzHwu1nPeSXZNxGNpkZOho13Iv5F6CGkcCJFD+ayxVazpfqq\nlaDBsw3thqPKRb2EE9G3S2YQmo8vVulNBTlwllLegdJtTnRW8IGgqr1hirxd\nI6yk\r\n=HiK1\r\n-----END PGP SIGNATURE-----\r\n"
162 },
163 "maintainers": [
164 {
165 "name": "sindresorhus",
166 "email": "[email protected]"
167 }
168 ],
169 "directories": {},
170 "_npmOperationalInternal": {
171 "host": "s3://npm-registry-packages",
172 "tmp": "tmp/p-retry_2.0.0_1524772281457_0.13741405149716912"
173 },
174 "_hasShrinkwrap": false
175 },
176 "3.0.0": {
177 "name": "p-retry",
178 "version": "3.0.0",
179 "description": "Retry a promise-returning or async function",
180 "license": "MIT",
181 "repository": {
182 "type": "git",
183 "url": "git+https://github.com/sindresorhus/p-retry.git"
184 },
185 "author": {
186 "name": "Sindre Sorhus",
187 "email": "[email protected]",
188 "url": "sindresorhus.com"
189 },
190 "engines": {
191 "node": ">=6"
192 },
193 "scripts": {
194 "test": "xo && ava"
195 },
196 "keywords": [
197 "promise",
198 "retry",
199 "retries",
200 "operation",
201 "failed",
202 "rejected",
203 "try",
204 "exponential",
205 "backoff",
206 "attempt",
207 "async",
208 "await",
209 "promises",
210 "concurrently",
211 "concurrency",
212 "parallel",
213 "bluebird"
214 ],
215 "dependencies": {
216 "retry": "^0.12.0"
217 },
218 "devDependencies": {
219 "ava": "^0.25.0",
220 "delay": "^4.1.0",
221 "xo": "^0.23.0"
222 },
223 "gitHead": "a9b5fc1e71ebc1fd5bd5926d2b1eff57512c124f",
224 "bugs": {
225 "url": "https://github.com/sindresorhus/p-retry/issues"
226 },
227 "homepage": "https://github.com/sindresorhus/p-retry#readme",
228 "_id": "[email protected]",
229 "_npmVersion": "6.5.0",
230 "_nodeVersion": "10.13.0",
231 "_npmUser": {
232 "name": "sindresorhus",
233 "email": "[email protected]"
234 },
235 "dist": {
236 "integrity": "sha512-fAB7bebxaj8nylNAsxPNkwPZ/48bXFdFnWrz0v2sV+H5BsGfVL7Ap7KgONqy7rOK4ZI1I+SU+lmettO3hM+2HQ==",
237 "shasum": "f1a09233417dd40b42a7a4a3ed0f4780f23b90d8",
238 "tarball": "https://registry.npmjs.org/p-retry/-/p-retry-3.0.0.tgz",
239 "fileCount": 4,
240 "unpackedSize": 6024,
241 "npm-signature": "-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJcESWVCRA9TVsSAnZWagAArOwP/0p+mRIhK3+IVAB63YSE\n9nDYrW6Kdg/H63TIagopJ4uoWABKKy84IFZFYFndcUkTs9Sa6DRNEn2Hmyhb\nRSOC2WlNy9ZKE9ZEACUuJRW69isnDj2ORYWH6Vp59PYgMNb1EDeKGSm38+ny\n0yOhkJjmyNxAe9mT1zGlff1pEESXPfTdIHiQ/uvqAyqrCAPf63KAWbHMlFdR\nOYeIDBoBjQyAV9Sj8m9Z9f1swdSVzFfeiVgfiLL7pmB0FkGkqNPqY8xn+qGo\n9draJJlIzyuYEeYLO9MvQ9KkhwKozZ92bfGB19PFNnvuj2sPfizcFFWvk2gL\nkRprWSRp6476nGCx2Hx9deA7Vgia9pyzGjiOPFTnMfoDaVqcozTtiWER+6dE\nELEtdQz9TCMYU42Iy/N48AeuR3YuXavzWr61TN2EHSfs7xqIzCwJNRzNTeP0\n3wGW/2yG/e4e8/y+rJk6FbPavcSRbeFLlPI6CqaSJ7u8IyeaiJmTdye8OIIE\nceTCLTyrwo/ggyKMWueWE1SWt+y3jnvp5klOvAgyhk/pdVdziiEnA308WxjG\nDvk3wyfw8yPKSy+10Y4Wdt1qA6bnbyGtoRYsiYChoEOH6TimF1K/7w6mVvuR\nbve8h07DgGHkmh9083dpCVDNB3rtQFmRWgj9uqarrhnwVDjF/4OATMRcIpu8\nCXLV\r\n=ouCA\r\n-----END PGP SIGNATURE-----\r\n"
242 },
243 "maintainers": [
244 {
245 "name": "sindresorhus",
246 "email": "[email protected]"
247 }
248 ],
249 "directories": {},
250 "_npmOperationalInternal": {
251 "host": "s3://npm-registry-packages",
252 "tmp": "tmp/p-retry_3.0.0_1544627604837_0.13288153733032493"
253 },
254 "_hasShrinkwrap": false
255 },
256 "3.0.1": {
257 "name": "p-retry",
258 "version": "3.0.1",
259 "description": "Retry a promise-returning or async function",
260 "license": "MIT",
261 "repository": {
262 "type": "git",
263 "url": "git+https://github.com/sindresorhus/p-retry.git"
264 },
265 "author": {
266 "name": "Sindre Sorhus",
267 "email": "[email protected]",
268 "url": "sindresorhus.com"
269 },
270 "engines": {
271 "node": ">=6"
272 },
273 "scripts": {
274 "test": "xo && ava"
275 },
276 "keywords": [
277 "promise",
278 "retry",
279 "retries",
280 "operation",
281 "failed",
282 "rejected",
283 "try",
284 "exponential",
285 "backoff",
286 "attempt",
287 "async",
288 "await",
289 "promises",
290 "concurrently",
291 "concurrency",
292 "parallel",
293 "bluebird"
294 ],
295 "dependencies": {
296 "retry": "^0.12.0"
297 },
298 "devDependencies": {
299 "ava": "^1.1.0",
300 "delay": "^4.1.0",
301 "xo": "^0.24.0"
302 },
303 "gitHead": "2187e87bca3d06795b34d5422c940bd99d3dd3d1",
304 "bugs": {
305 "url": "https://github.com/sindresorhus/p-retry/issues"
306 },
307 "homepage": "https://github.com/sindresorhus/p-retry#readme",
308 "_id": "[email protected]",
309 "_npmVersion": "6.5.0",
310 "_nodeVersion": "10.13.0",
311 "_npmUser": {
312 "name": "sindresorhus",
313 "email": "[email protected]"
314 },
315 "dist": {
316 "integrity": "sha512-XE6G4+YTTkT2a0UWb2kjZe8xNwf8bIbnqpc/IS/idOBVhyves0mK5OJgeocjx7q5pvX/6m23xuzVPYT1uGM73w==",
317 "shasum": "316b4c8893e2c8dc1cfa891f406c4b422bebf328",
318 "tarball": "https://registry.npmjs.org/p-retry/-/p-retry-3.0.1.tgz",
319 "fileCount": 4,
320 "unpackedSize": 6360,
321 "npm-signature": "-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJcPJVRCRA9TVsSAnZWagAADW4P/3B97InLQLUYgxvfgH3B\nHyog9CWU/OzvY0f7wTuDXbG7eaCuki5652pHfW4AonUC/v9o5bSpfY67yb2w\ndXrsO+GMZZtieFsaZW+tB8U/QzvKCfvKbQkSd3pdgL3mWkYnM0wOKjVcmasO\nB4atXZoqXMzbYpnWyRzQ5hjMlC99nKJnRRMC2MUsTP1AX4swXVfbuQ3EhxPw\n9UuzNBMyNuRZdPVBCvcOySiLwpEfas8S+53OGS7JuhtlVTAUtGQAmY56wOWF\nBUy7RK7AeKAjHB6jmqRAA2J/KeJNoMj/FHOQ4gGiORUubRq6Hz79l06CqHJo\n1CQMppsJwtBw3M7Cjt6QvOCOPVxnki6ZpNn/lyVO1H85IbEyGtLGuz+ej8G2\ntgaLroEBHfCGjRf8gRjsxeZPn9TuhiSFqDNoBg6URPnEMKLRAte9Zd8iYojq\nQ7vaqPN++N1DRqWxw6IrMklSz70djK4wErKhiWdai1dieDcqcgdwFz5+AJ17\nerTmK1bHpAAXAp6xyA66P61WccgjXxopFBY25OVrgJsFQTTzCzXBk6GiVVPD\nexaAndvcxr3VO5xr/eSPab4vx/QhoIH/kkiuJ7YOWYQvAceR3/J6ZYpLzveO\nqgpN+WwKlOA+cvGLBTUBSUOUE5Mz6aPcYA7ANgVzo5bSye2xgNjKCB1byp/0\nu3IP\r\n=bb5S\r\n-----END PGP SIGNATURE-----\r\n"
322 },
323 "maintainers": [
324 {
325 "name": "sindresorhus",
326 "email": "[email protected]"
327 }
328 ],
329 "directories": {},
330 "_npmOperationalInternal": {
331 "host": "s3://npm-registry-packages",
332 "tmp": "tmp/p-retry_3.0.1_1547474257271_0.5381000574836654"
333 },
334 "_hasShrinkwrap": false
335 },
336 "4.0.0": {
337 "name": "p-retry",
338 "version": "4.0.0",
339 "description": "Retry a promise-returning or async function",
340 "license": "MIT",
341 "repository": {
342 "type": "git",
343 "url": "git+https://github.com/sindresorhus/p-retry.git"
344 },
345 "author": {
346 "name": "Sindre Sorhus",
347 "email": "[email protected]",
348 "url": "sindresorhus.com"
349 },
350 "engines": {
351 "node": ">=8"
352 },
353 "scripts": {
354 "test": "xo && ava && tsd-check"
355 },
356 "keywords": [
357 "promise",
358 "retry",
359 "retries",
360 "operation",
361 "failed",
362 "rejected",
363 "try",
364 "exponential",
365 "backoff",
366 "attempt",
367 "async",
368 "await",
369 "promises",
370 "concurrently",
371 "concurrency",
372 "parallel",
373 "bluebird"
374 ],
375 "dependencies": {
376 "@types/retry": "^0.12.0",
377 "retry": "^0.12.0"
378 },
379 "devDependencies": {
380 "ava": "^1.3.1",
381 "delay": "^4.1.0",
382 "tsd-check": "^0.3.0",
383 "xo": "^0.24.0"
384 },
385 "gitHead": "0e71c46bc994114b2fa56aa38c79e667f22f46de",
386 "bugs": {
387 "url": "https://github.com/sindresorhus/p-retry/issues"
388 },
389 "homepage": "https://github.com/sindresorhus/p-retry#readme",
390 "_id": "[email protected]",
391 "_nodeVersion": "8.15.0",
392 "_npmVersion": "6.9.0",
393 "_npmUser": {
394 "name": "sindresorhus",
395 "email": "[email protected]"
396 },
397 "dist": {
398 "integrity": "sha512-bMW1FwszSBsMi6DgPnDKLhAVMDhqeySD4viMI0UiKRv7cQzRS/KYhRPWjnoxSQdvunXwZYKgN10Ya6VxF9w+Og==",
399 "shasum": "56633299ac2fc9f6ecda749398330fdff632607a",
400 "tarball": "https://registry.npmjs.org/p-retry/-/p-retry-4.0.0.tgz",
401 "fileCount": 5,
402 "unpackedSize": 8018,
403 "npm-signature": "-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJchelwCRA9TVsSAnZWagAAUAUP/AqaZoeQYMbb0VRz5XMJ\nVdELSGP2vk1eHDYruV/UXV0kvcpi5ce11Ml1FtiBRfNLPtujN0O07KV5vNxJ\nAbCuoLyB9q4/AgLUVEtnsfoDBXQe3f/K6vn5fqcPd6QICe/mehQuHCdBma09\nkfDVxMkgqS805Jl3ZkWCIJHaKmYS+MYPk/g+//742gxEbwU3+J6sDCnsdFTi\nWBGoc9FiDi94MuiU3jVuRqBLUzVSkOgcamndYYsGPcdWI0bFgIXuGkTnXkx/\ndGMRu5HFpz4fVHgb3ObbhhlPLdcDyMMxrkFHtfhFo3hAeUi88oVXwKUGCx0e\nxsnvgYePczmzlEwL9MvW+M00suec0r4Gg+gRXMa9KleAkcWjzB/WRwErjaJh\n640MGlqpjT11NGz1NSvKqsM6uBQpS6M2o2Q6RLkZU47qrPd3RJvj+MKmq9HT\n4Ah+iutZbEQDGp4Fcq+S9q156wmc1knrWeftz0LsY3i0WpIOOTPWwMYAn6OO\nR6aNKzGV9lwcy+GaKBW4uhPRsszN67xcGBP7XR9sinGEOPxtZWkpMlYw1L5p\nyoVo/aIZArQB2YDJiOM5vZpNa5m6bpOQvle6AmDY3hdF1o+M9F/YTFZqTkhW\n2/9TsfGAPPfTozsbwYoVF0UuzpXK142V96dAtvjC2/sKJSH3Jf+9zuvE7DUm\nO8w8\r\n=sSXH\r\n-----END PGP SIGNATURE-----\r\n"
404 },
405 "maintainers": [
406 {
407 "name": "sindresorhus",
408 "email": "[email protected]"
409 }
410 ],
411 "directories": {},
412 "_npmOperationalInternal": {
413 "host": "s3://npm-registry-packages",
414 "tmp": "tmp/p-retry_4.0.0_1552279919864_0.31116028535357"
415 },
416 "_hasShrinkwrap": false
417 },
418 "4.1.0": {
419 "name": "p-retry",
420 "version": "4.1.0",
421 "description": "Retry a promise-returning or async function",
422 "license": "MIT",
423 "repository": {
424 "type": "git",
425 "url": "git+https://github.com/sindresorhus/p-retry.git"
426 },
427 "author": {
428 "name": "Sindre Sorhus",
429 "email": "[email protected]",
430 "url": "sindresorhus.com"
431 },
432 "engines": {
433 "node": ">=8"
434 },
435 "scripts": {
436 "test": "xo && ava && tsd"
437 },
438 "keywords": [
439 "promise",
440 "retry",
441 "retries",
442 "operation",
443 "failed",
444 "rejected",
445 "try",
446 "exponential",
447 "backoff",
448 "attempt",
449 "async",
450 "await",
451 "promises",
452 "concurrently",
453 "concurrency",
454 "parallel",
455 "bluebird"
456 ],
457 "dependencies": {
458 "@types/retry": "^0.12.0",
459 "retry": "^0.12.0"
460 },
461 "devDependencies": {
462 "ava": "^1.4.1",
463 "delay": "^4.1.0",
464 "tsd": "^0.7.1",
465 "xo": "^0.24.0"
466 },
467 "gitHead": "9e2c0169f5e52ce2b9f08aa1ea024ed99e6c8f20",
468 "bugs": {
469 "url": "https://github.com/sindresorhus/p-retry/issues"
470 },
471 "homepage": "https://github.com/sindresorhus/p-retry#readme",
472 "_id": "[email protected]",
473 "_nodeVersion": "8.15.0",
474 "_npmVersion": "6.9.0",
475 "_npmUser": {
476 "name": "sindresorhus",
477 "email": "[email protected]"
478 },
479 "dist": {
480 "integrity": "sha512-oepllyG9gX1qH4Sm20YAKxg1GA7L7puhvGnTfimi31P07zSIj7SDV6YtuAx9nbJF51DES+2CIIRkXs8GKqWJxA==",
481 "shasum": "9ce7cef2069e84bf590df3b8ec18d740109338d6",
482 "tarball": "https://registry.npmjs.org/p-retry/-/p-retry-4.1.0.tgz",
483 "fileCount": 5,
484 "unpackedSize": 9071,
485 "npm-signature": "-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJcoKr6CRA9TVsSAnZWagAAqIAP/AoqYWHfa3UjmQSYEQKZ\nrIZBom40lSEgovWa2RMnh8EeszSKFtEaRCxQ7/iaep4KGanURFQLhTG+A3Wy\nyM5wlZgbgniUrZauFk4xtQwqGN/rQAXMA5kUPvkOG3NY4ySrzXKqc8lOcUzP\nScaSvL1qHvdq7ihX53lC/QLVFJzRqyNvjV2DHjXirXxgC0psDAXvVvWA8TaN\n2scPs5nqV/fkPyYb7FhOlQ4N8yUQz1M+1IUmcKRGTwhmbtCTmqjwDokeuJzZ\nUew6eGHGkIGUqTQhwvFw9KDoVCtFAC1C1/cC0dEEjmCfU/91xvPio/qaW0mW\nhmxxKz3cs+Mez1RheK6zkziAuz3Wd9OXAVMzuzN6SDpioBiJhVHSkF83OZEi\ngbzMtlV624iG6QKRMmKDOXTh3KJ5Qf4lA+bwI8bfTIitYAxake77AepNlI5c\nuPu8zxXQUND6K5ywY71YDFvA6oqGysoRQuFJZsKHHFUeVJZf0hdPuEJPRVsC\nMXYiqtJu+ySa8HCklaqgk0MlbXdt5rgdfjdEwhPkqilCgDYT5BL96ar5Ndk/\nGJifIZ0a9+jYo1gBpk4GA1NLxDcDor4lmoWKOzNjQnqkRgn0G01Wv4WrII+m\njxUA5PtH29tlwlP320Cfqi+GEsq5USGxWNh/qJSe/D5+UNtoe51qV/Fmi0k5\nqXhO\r\n=FfH+\r\n-----END PGP SIGNATURE-----\r\n"
486 },
487 "maintainers": [
488 {
489 "name": "sindresorhus",
490 "email": "[email protected]"
491 }
492 ],
493 "directories": {},
494 "_npmOperationalInternal": {
495 "host": "s3://npm-registry-packages",
496 "tmp": "tmp/p-retry_4.1.0_1554033401809_0.38545075931703976"
497 },
498 "_hasShrinkwrap": false
499 },
500 "4.2.0": {
501 "name": "p-retry",
502 "version": "4.2.0",
503 "description": "Retry a promise-returning or async function",
504 "license": "MIT",
505 "repository": {
506 "type": "git",
507 "url": "git+https://github.com/sindresorhus/p-retry.git"
508 },
509 "author": {
510 "name": "Sindre Sorhus",
511 "email": "[email protected]",
512 "url": "sindresorhus.com"
513 },
514 "engines": {
515 "node": ">=8"
516 },
517 "scripts": {
518 "test": "xo && ava && tsd"
519 },
520 "keywords": [
521 "promise",
522 "retry",
523 "retries",
524 "operation",
525 "failed",
526 "rejected",
527 "try",
528 "exponential",
529 "backoff",
530 "attempt",
531 "async",
532 "await",
533 "promises",
534 "concurrently",
535 "concurrency",
536 "parallel",
537 "bluebird"
538 ],
539 "dependencies": {
540 "@types/retry": "^0.12.0",
541 "retry": "^0.12.0"
542 },
543 "devDependencies": {
544 "ava": "^2.4.0",
545 "delay": "^4.1.0",
546 "tsd": "^0.10.0",
547 "xo": "^0.25.3"
548 },
549 "gitHead": "7cf46fe6037cd4f8303f06b7ce4bda29cc6f4010",
550 "bugs": {
551 "url": "https://github.com/sindresorhus/p-retry/issues"
552 },
553 "homepage": "https://github.com/sindresorhus/p-retry#readme",
554 "_id": "[email protected]",
555 "_nodeVersion": "10.16.3",
556 "_npmVersion": "6.12.1",
557 "_npmUser": {
558 "name": "sindresorhus",
559 "email": "[email protected]"
560 },
561 "dist": {
562 "integrity": "sha512-jPH38/MRh263KKcq0wBNOGFJbm+U6784RilTmHjB/HM9kH9V8WlCpVUcdOmip9cjXOh6MxZ5yk1z2SjDUJfWmA==",
563 "shasum": "ea9066c6b44f23cab4cd42f6147cdbbc6604da5d",
564 "tarball": "https://registry.npmjs.org/p-retry/-/p-retry-4.2.0.tgz",
565 "fileCount": 5,
566 "unpackedSize": 10232,
567 "npm-signature": "-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJdusTnCRA9TVsSAnZWagAAy5AP/R1Cm+osSni2bNUDI3TQ\n9YajvxxcWk6tsE/6JinW3DuzeDd9qJROSGbw49aFok/HCL9Civ9z0cirBcTb\nbjvFc8tv7duxl/lxctEFcWzKh6XP4yisFBPbD/ncCTt8X2PLcV6cOYECu/lW\nzT6/q2GzggpTffR7IAV0Te0A8MIR9+G6oAxFwRrlNxanDh4F4kGcy4uEboEy\nZz0suO0b+mPs5oqlFgBWYGKmI+bQJ+1dX4clF9gPVj1RxzWot8jiLoN7oo4Y\ncebU13ptmxrVibIDjwmQWZ6gtW4NVa+V3mQGL0vt/+w5FSdIYwCPRTCeaTiT\n8NU939x9wY2+tqalqrho9Ju77Zr9pR9vn8fh96Qi+tzxRB2KQhDi8zYm+eLR\ngT5mpd1V98cGw2G2J7KCw+G4Uslbv6phADG06G6gngubJeewGrtmyBDTUdio\nk/JCk5+CEGjOxOqHiK25aXMrwdp0Tp2hlUnQS0jBNiXIFlDRNidk6bUJe52x\nqB1IZB0kq/iC/Y0gNLPlAHUneLghTXjB/5PjiIjn2ixKawchjvrkL//8Iekl\nR3RjvJm6TVwfFWeA8wtVWWk5YT/YPXwKsjHdFouJfyapTAckqyduQaSsg1I6\nO9w7rJhtTFNfdlmS4mwOSpqMwrTtKQWW4EhseOBiYw7EWZZsXAERLp12crKO\ncl0H\r\n=YYLB\r\n-----END PGP SIGNATURE-----\r\n"
568 },
569 "maintainers": [
570 {
571 "name": "sindresorhus",
572 "email": "[email protected]"
573 }
574 ],
575 "directories": {},
576 "_npmOperationalInternal": {
577 "host": "s3://npm-registry-packages",
578 "tmp": "tmp/p-retry_4.2.0_1572521190506_0.46832001284144087"
579 },
580 "_hasShrinkwrap": false
581 }
582 },
583 "readme": "# p-retry [![Build Status](https://travis-ci.org/sindresorhus/p-retry.svg?branch=master)](https://travis-ci.org/sindresorhus/p-retry)\n\n> Retry a promise-returning or async function\n\nIt does exponential backoff and supports custom retry strategies for failed operations.\n\n\n## Install\n\n```\n$ npm install p-retry\n```\n\n\n## Usage\n\n```js\nconst pRetry = require('p-retry');\nconst fetch = require('node-fetch');\n\nconst run = async () => {\n\tconst response = await fetch('https://sindresorhus.com/unicorn');\n\n\t// Abort retrying if the resource doesn't exist\n\tif (response.status === 404) {\n\t\tthrow new pRetry.AbortError(response.statusText);\n\t}\n\n\treturn response.blob();\n};\n\n(async () => {\n\tconsole.log(await pRetry(run, {retries: 5}));\n})();\n```\n\n## API\n\n### pRetry(input, options?)\n\nReturns a `Promise` that is fulfilled when calling `input` returns a fulfilled promise. If calling `input` returns a rejected promise, `input` is called again until the maximum number of retries is reached. It then rejects with the last rejection reason.\n\nIt doesn't retry on `TypeError` as that's a user error.\n\n#### input\n\nType: `Function`\n\nReceives the current attempt number as the first argument and is expected to return a `Promise` or any value.\n\n#### options\n\nType: `object`\n\nOptions are passed to the [`retry`](https://github.com/tim-kos/node-retry#retryoperationoptions) module.\n\n##### onFailedAttempt(error)\n\nType: `Function`\n\nCallback invoked on each retry. Receives the error thrown by `input` as the first argument with properties `attemptNumber` and `retriesLeft` which indicate the current attempt number and the number of attempts left, respectively.\n\n```js\nconst run = async () => {\n\tconst response = await fetch('https://sindresorhus.com/unicorn');\n\n\tif (response.status !== 200) {\n\t\tthrow new Error(response.statusText);\n\t}\n\n\treturn response.json();\n};\n\n(async () => {\n\tconst result = await pRetry(run, {\n\t\tonFailedAttempt: error => {\n\t\t\tconsole.log(`Attempt ${error.attemptNumber} failed. There are ${error.retriesLeft} retries left.`);\n\t\t\t// 1st request => Attempt 1 failed. There are 4 retries left.\n\t\t\t// 2nd request => Attempt 2 failed. There are 3 retries left.\n\t\t\t// …\n\t\t},\n\t\tretries: 5\n\t});\n\n\tconsole.log(result);\n})();\n```\n\nThe `onFailedAttempt` function can return a promise. For example, to add a [delay](https://github.com/sindresorhus/delay):\n\n```js\nconst pRetry = require('p-retry');\nconst delay = require('delay');\n\nconst run = async () => { ... };\n\n(async () => {\n\tconst result = await pRetry(run, {\n\t\tonFailedAttempt: async error => {\n\t\t\tconsole.log('Waiting for 1 second before retrying');\n\t\t\tawait delay(1000);\n\t\t}\n\t});\n})();\n```\n\nIf the `onFailedAttempt` function throws, all retries will be aborted and the original promise will reject with the thrown error.\n\n### pRetry.AbortError(message)\n### pRetry.AbortError(error)\n\nAbort retrying and reject the promise.\n\n### message\n\nType: `string`\n\nError message.\n\n### error\n\nType: `Error`\n\nCustom error.\n\n\n## Tip\n\nYou can pass arguments to the function being retried by wrapping it in an inline arrow function:\n\n```js\nconst pRetry = require('p-retry');\n\nconst run = async emoji => {\n\t// …\n};\n\n(async () => {\n\t// Without arguments\n\tawait pRetry(run, {retries: 5});\n\n\t// With arguments\n\tawait pRetry(() => run('🦄'), {retries: 5});\n})();\n```\n\n\n## Related\n\n- [p-timeout](https://github.com/sindresorhus/p-timeout) - Timeout a promise after a specified amount of time\n- [More…](https://github.com/sindresorhus/promise-fun)\n",
584 "maintainers": [
585 {
586 "name": "sindresorhus",
587 "email": "[email protected]"
588 }
589 ],
590 "time": {
591 "modified": "2019-10-31T11:26:34.590Z",
592 "created": "2016-10-21T07:50:24.250Z",
593 "1.0.0": "2016-10-21T07:50:24.250Z",
594 "2.0.0": "2018-04-26T19:51:21.523Z",
595 "3.0.0": "2018-12-12T15:13:25.041Z",
596 "3.0.1": "2019-01-14T13:57:37.382Z",
597 "4.0.0": "2019-03-11T04:52:00.041Z",
598 "4.1.0": "2019-03-31T11:56:41.924Z",
599 "4.2.0": "2019-10-31T11:26:30.643Z"
600 },
601 "homepage": "https://github.com/sindresorhus/p-retry#readme",
602 "keywords": [
603 "promise",
604 "retry",
605 "retries",
606 "operation",
607 "failed",
608 "rejected",
609 "try",
610 "exponential",
611 "backoff",
612 "attempt",
613 "async",
614 "await",
615 "promises",
616 "concurrently",
617 "concurrency",
618 "parallel",
619 "bluebird"
620 ],
621 "repository": {
622 "type": "git",
623 "url": "git+https://github.com/sindresorhus/p-retry.git"
624 },
625 "author": {
626 "name": "Sindre Sorhus",
627 "email": "[email protected]",
628 "url": "sindresorhus.com"
629 },
630 "bugs": {
631 "url": "https://github.com/sindresorhus/p-retry/issues"
632 },
633 "license": "MIT",
634 "readmeFilename": "readme.md",
635 "users": {
636 "rocket0191": true,
637 "johnloy": true,
638 "ash": true
639 }
640 }