{"_id":"make-promises-safe","_rev":"13-a525f4868206b38194afa76c53ff065c","name":"make-promises-safe","description":"Crash or abort if you get an unhandledRejection or multipleResolves","dist-tags":{"latest":"5.1.0"},"versions":{"1.0.0":{"name":"make-promises-safe","version":"1.0.0","description":"Crash or abort if you get an unhandledRejection","main":"make-promises-safe.js","scripts":{"test":"standard | snazzy && tap test.js"},"repository":{"type":"git","url":"git+https://github.com/mcollina/make-promises-safe.git"},"keywords":["promise","promises","safe","unhandled","rejection","unhandledRejection"],"author":{"name":"Matteo Collina","email":"hello@matteocollina.com"},"license":"MIT","bugs":{"url":"https://github.com/mcollina/make-promises-safe/issues"},"homepage":"https://github.com/mcollina/make-promises-safe#readme","devDependencies":{"pre-commit":"^1.2.2","snazzy":"^7.0.0","standard":"^10.0.2","tap":"^10.3.3"},"gitHead":"b0375ad06558821fa7207cffb2607bdcfcc86b54","_id":"make-promises-safe@1.0.0","_npmVersion":"5.0.3","_nodeVersion":"6.10.1","_npmUser":{"name":"matteo.collina","email":"hello@matteocollina.com"},"dist":{"integrity":"sha512-VEnLD/yVf4FGaSZMn8rLAGWKSwWH9DHPoL1fQzMb6XmvG/Vx6Eiy8kBqkxaIosg+WERcCRDa11fJC2Q2wGaNnQ==","shasum":"0043400fcca507b466c2651194920e955d0f96be","tarball":"https://registry.npmjs.org/make-promises-safe/-/make-promises-safe-1.0.0.tgz","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQDRh7ioiMtqeDdKd7EcNNdg8fdU2gQKXx6tmXUDlhYkfgIhAOy1SfASr2QR9wPSVdE8Pe5u5rKzfk1HBfdZPtztVZmt"}]},"maintainers":[{"name":"matteo.collina","email":"hello@matteocollina.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/make-promises-safe-1.0.0.tgz_1497889661136_0.0010998109355568886"},"directories":{}},"1.0.1":{"name":"make-promises-safe","version":"1.0.1","description":"Crash or abort if you get an unhandledRejection","main":"make-promises-safe.js","scripts":{"test":"standard | snazzy && tap test.js"},"repository":{"type":"git","url":"git+https://github.com/mcollina/make-promises-safe.git"},"keywords":["promise","promises","safe","unhandled","rejection","unhandledRejection"],"author":{"name":"Matteo Collina","email":"hello@matteocollina.com"},"license":"MIT","bugs":{"url":"https://github.com/mcollina/make-promises-safe/issues"},"homepage":"https://github.com/mcollina/make-promises-safe#readme","devDependencies":{"pre-commit":"^1.2.2","snazzy":"^7.0.0","standard":"^10.0.2","tap":"^10.3.3"},"gitHead":"ffdceee69dd4a666e10fc0b486c53ad796b01ab3","_id":"make-promises-safe@1.0.1","_npmVersion":"5.0.3","_nodeVersion":"6.10.1","_npmUser":{"name":"matteo.collina","email":"hello@matteocollina.com"},"dist":{"integrity":"sha512-JUaGrF766VHQ9HbMjSp2zosYK1AT5kkrjJ3aDExo3ze7shNX1moBHzDO+uLFdrpMoglWq+ObQkddMAojD0j1Ig==","shasum":"19828995eb1f67cc25a9a7df25d082afc0ea17da","tarball":"https://registry.npmjs.org/make-promises-safe/-/make-promises-safe-1.0.1.tgz","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIEHezJ9VzY9j589Jg/P2OEnIJVvhe0Yg/dM7oILeG5meAiEAoNhBHEsNjquArtdEApvwLO/z80Rtekso1xym8tJpOfk="}]},"maintainers":[{"name":"matteo.collina","email":"hello@matteocollina.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/make-promises-safe-1.0.1.tgz_1497890041613_0.566269418457523"},"directories":{}},"1.1.0":{"name":"make-promises-safe","version":"1.1.0","description":"Crash or abort if you get an unhandledRejection","main":"make-promises-safe.js","scripts":{"test":"standard | snazzy && tap test.js"},"repository":{"type":"git","url":"git+https://github.com/mcollina/make-promises-safe.git"},"keywords":["promise","promises","safe","unhandled","rejection","unhandledRejection"],"author":{"name":"Matteo Collina","email":"hello@matteocollina.com"},"license":"MIT","bugs":{"url":"https://github.com/mcollina/make-promises-safe/issues"},"homepage":"https://github.com/mcollina/make-promises-safe#readme","devDependencies":{"pre-commit":"^1.2.2","snazzy":"^7.0.0","standard":"^10.0.2","tap":"^10.3.3"},"gitHead":"c6c6604080674a2f5e9946b177d945e24c4a8e5a","_id":"make-promises-safe@1.1.0","_shasum":"b4d28c61ef8ad5502f38dbb3a0ee89627f76ad61","_from":".","_npmVersion":"3.10.10","_nodeVersion":"6.11.0","_npmUser":{"name":"matteo.collina","email":"hello@matteocollina.com"},"dist":{"shasum":"b4d28c61ef8ad5502f38dbb3a0ee89627f76ad61","tarball":"https://registry.npmjs.org/make-promises-safe/-/make-promises-safe-1.1.0.tgz","integrity":"sha512-2CAadnsc91Cg7bCecBmjuAy9p1Zbrsbub0hgMSn68OoTuoutyrv76jY8FdsoOUTKEdl6OG/dGt8aG2obO+JA2w==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQC9ewxe6AgnSyRARFLB+4w+DeVrNjlJyiglbOio59K5PgIgKS2J+Ppl/pqufaVbLf93FYX/Keuz+zw0WI2Cy/q2MW8="}]},"maintainers":[{"name":"matteo.collina","email":"hello@matteocollina.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/make-promises-safe-1.1.0.tgz_1498168633084_0.896346993977204"},"directories":{}},"2.0.0":{"name":"make-promises-safe","version":"2.0.0","description":"Crash or abort if you get an unhandledRejection or multipleResolves","main":"make-promises-safe.js","scripts":{"test":"standard | snazzy && tap test.js"},"repository":{"type":"git","url":"git+https://github.com/mcollina/make-promises-safe.git"},"keywords":["promise","promises","safe","unhandled","rejection","unhandledRejection"],"author":{"name":"Matteo Collina","email":"hello@matteocollina.com"},"license":"MIT","bugs":{"url":"https://github.com/mcollina/make-promises-safe/issues"},"homepage":"https://github.com/mcollina/make-promises-safe#readme","devDependencies":{"pre-commit":"^1.2.2","snazzy":"^7.0.0","standard":"^10.0.2","tap":"^10.3.3"},"gitHead":"bf1c62dd3e9ecb47b07eff89517b07bf0e910097","_id":"make-promises-safe@2.0.0","_npmVersion":"6.4.1","_nodeVersion":"10.12.0","_npmUser":{"name":"matteo.collina","email":"hello@matteocollina.com"},"dist":{"integrity":"sha512-KYfljTCPZOsm0Ur1hRmDH8gBoRf2jJsyOzRLCFYK8A4Yf5HkXy92DSIknSWcG6dLCulFM++55QaSgKzqkIpWTA==","shasum":"50a24aa25cb6ef1d1915d3008947670e66ec04c8","tarball":"https://registry.npmjs.org/make-promises-safe/-/make-promises-safe-2.0.0.tgz","fileCount":7,"unpackedSize":5472,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJb0gCCCRA9TVsSAnZWagAAN8wP/0C+/1cYMmfSZ2H5Xs1U\nLwyyEcM+6N9776BRcJOOPPTiEp0HIvJmyHgLDK7buC4nmpjTo0vzNYmt1Scr\nTxWnsqnmYe/iHHV7Hzr3ct4osZd94pGxkMIGWhl1juHtgifU9SS830jhGpbA\nCEemWlEDMqx76hyPkdBq/R8tAMmsgqOP4xgsHAlc+ZAzTpMbkZZl981Ys69n\n1errCqdLuTt8w79br2Cfbxa8AmPZytbFeuUeyXnu6DtaGbAvfHdI6GgnuHET\nWlaW58oo0ZawNwt7yugCZmKWmdZ4/HLf1fmkDP60mazu+CEe68TsS9p4S+7e\nqHbGz9Y8relRYNEhK/wr5KagAzddi+DlDoq0jn2ZyvUPx+fVOo9vLV5lAPIT\nTSwahWIVQAOGyWo83/QX1P/hcDvOdGyRwXeNIP4TZpQj+bZeIO+xWLODFwxo\nJLc4XdQF1OCsSSap+Q1Qyz7lhZp6v4yb7R3m+YUHE6b4tPtyX5GRVrzanL4E\nXpA5056Xvp4W9XshHe1QsE+ES0fN7Ex0TNRaNL8zjbEZh+yeORkcpx+LJFMe\nWtiCLvRueor/+10+Gr2utq8JuZmYT5yHPmRMeY3N1X9rGEnNBJgd/Xuy1H9+\n9sKVyB0UcPFgDFORNJO+XdLS+Ydn3csg44sBJwKUIk6qc08E7KfDZp+gcHp3\nBvBB\r\n=/yL8\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQDW9nkwrkFYVdc7tKjLs4+SA0tb5TgQsS/+0rYYRKmn4QIgWIGrv6JEj8rtxN5vYl3/kftComg2XyRlVj6E4qkxO4k="}]},"maintainers":[{"name":"matteo.collina","email":"hello@matteocollina.com"}],"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/make-promises-safe_2.0.0_1540489345453_0.8717122690076506"},"_hasShrinkwrap":false,"deprecated":"this release did not contain what it was planning to contain, use v3.0.0 instead for multipleResolves support"},"3.0.0":{"name":"make-promises-safe","version":"3.0.0","description":"Crash or abort if you get an unhandledRejection or multipleResolves","main":"make-promises-safe.js","scripts":{"test":"standard | snazzy && tap test.js"},"repository":{"type":"git","url":"git+https://github.com/mcollina/make-promises-safe.git"},"keywords":["promise","promises","safe","unhandled","rejection","unhandledRejection"],"author":{"name":"Matteo Collina","email":"hello@matteocollina.com"},"license":"MIT","bugs":{"url":"https://github.com/mcollina/make-promises-safe/issues"},"homepage":"https://github.com/mcollina/make-promises-safe#readme","devDependencies":{"pre-commit":"^1.2.2","semver":"^5.6.0","snazzy":"^7.0.0","standard":"^10.0.2","tap":"^10.3.3"},"gitHead":"8d5c86df009c0d3db2cb6571423bd24bdcefff37","_id":"make-promises-safe@3.0.0","_npmVersion":"6.4.1","_nodeVersion":"10.12.0","_npmUser":{"name":"matteo.collina","email":"hello@matteocollina.com"},"dist":{"integrity":"sha512-ebUkRFxjClLDsvNfajkiWkhnOgUWF65RK1HOGLhqggjzW66xAelaPBEYnjhIeRWWy1bcNdtzbskcHxglhEJqwA==","shasum":"84cdf9e3e4f3144bb0f9f52d25569849063e7a90","tarball":"https://registry.npmjs.org/make-promises-safe/-/make-promises-safe-3.0.0.tgz","fileCount":8,"unpackedSize":9571,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJb2seSCRA9TVsSAnZWagAA3mUP/0CJ/6qZTHzAGeb/jQmD\nzLXu9iHIQSo+Z1MUS5KUytQzCOrehubh4ENNQhnxz9yW2Y09Ac6o3WJTZzob\n9UgciJ6KBHJzdsJzicfZ/786aI2Pxe3Kn9Kewe+/N9zoj1lr+kTDfH0V7+Xq\nbIegWIxoNISvvwe+PiT3yAJOJ9FAHBb07C8MOkLCeTXbHmm3qeUb4Czq/wTo\n5+heimHWQwKpaDIvrVr4zp1X2UVXM7j/pGnxsW3i4sCoJ9fSHvqlVtugATrM\nqMBc+TAyD1DMTZHMfmRIIC36DXm6XkrYILgf7hRFOElTTl6wPw+M6KaOE0Wn\nUbF2KzDNdtSwj5xlGeADyvLvEMcIZwx2x9viaxm9YiZE9G3Z6E/QuXEE5sAU\n1KzoB+Uxc1MoMA6HNEJPJp2bZn0nAeWExhWPsaqLFXVJ2aFt6823mzmft4hG\nU+lrhphZwCyugV44+tXGpwbamT/S4AMW3imvhXitgp7Ezu3CcgqBe2nSv1b9\nRKcNM6gpf2IecrGXN8YgKKfPQHE3Z6Qindbs19OIhkF+sI+kNk3lUjJICdD7\nJxfRtu31t8q1PLlWqtsHNBX8rVdzRA0kLjOBBbP8jDxSFcw/6s0oRPIraHxp\nl2eBVn2jbxGH1QjBDTu/KpxKNtbxXF1B3dzS725kTEzPJNgVkrtAlMkVapdW\n8tDJ\r\n=/zPh\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCICehjWnUCG4G1wYeje7vAytZ+y2UiYWs72nUSVcb582yAiEA9mb+KLtxfY9gWKbrXrCD4lsdFWq/u5A2Vd88tBWn/Y8="}]},"maintainers":[{"name":"matteo.collina","email":"hello@matteocollina.com"}],"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/make-promises-safe_3.0.0_1541064593372_0.6889143501626351"},"_hasShrinkwrap":false,"deprecated":"it unintentionally crashes the process on every Promise.race()"},"4.0.0":{"name":"make-promises-safe","version":"4.0.0","description":"Crash or abort if you get an unhandledRejection or multipleResolves","main":"make-promises-safe.js","scripts":{"test":"standard | snazzy && tap test.js"},"repository":{"type":"git","url":"git+https://github.com/mcollina/make-promises-safe.git"},"keywords":["promise","promises","safe","unhandled","rejection","unhandledRejection"],"author":{"name":"Matteo Collina","email":"hello@matteocollina.com"},"license":"MIT","bugs":{"url":"https://github.com/mcollina/make-promises-safe/issues"},"homepage":"https://github.com/mcollina/make-promises-safe#readme","devDependencies":{"pre-commit":"^1.2.2","snazzy":"^7.0.0","standard":"^10.0.2","tap":"^10.3.3"},"gitHead":"4209c75c042275ef8dba77254e62bc3ec263512c","_id":"make-promises-safe@4.0.0","_npmVersion":"6.4.1","_nodeVersion":"10.12.0","_npmUser":{"name":"matteo.collina","email":"hello@matteocollina.com"},"dist":{"integrity":"sha512-THuAUvvKk+cFWEev3BmiLHwCpXyCHgOHxqzwHxKi4gxzxYNY4RQGJFeBtH6n7sukCLqRbtZ+FPqyq30F92Dltg==","shasum":"cee2ccf0871753be6829828483f32de397cf7594","tarball":"https://registry.npmjs.org/make-promises-safe/-/make-promises-safe-4.0.0.tgz","fileCount":7,"unpackedSize":5464,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJb9Bl2CRA9TVsSAnZWagAAGqAP/2YNkydslGHNQ4IM33yQ\nag8fOE9n2PFjBQ42QRHV8KbtJR7r1ThP1tZurG27mUsdnSExxhIEsgJyKMJa\ny792xTHlto8demufBmIwLjbHe+XkpuaeF8JF5nH085cYLqK3QdK0hsoFuKEe\nGtP29nXbzCAvzu4mPmCBKy91CEEEb0BbpVvqmjuXmfDj/1MdgBdu6e1qrLdc\nwqVmJzlU8F1+KHG3d4cabC7/ipfY1XtYrRHbwDaFEvXoSsQ9fjvOOhdty0Gv\nniPhEbtLggilzYp1S5ZpBrBSCNHbXO+AcqZHk/J8kd72qqJ1LmFuFX4kuCxY\n/GwgJmwLrKS670iGk+ODZRBSRmU7Jop3VhWM8ifX0Yg1t95BnnVxdYzLd/sO\ncSStTiJkbK813U00KQCLS+1e2YFWTS3E6CPfqWOF7c11AV8/yXPTbbqAo2WW\nVV4i5vrcIg9jFDyM3JR0/2bKUYlpd8Tqkaqx19Ef/YYB0aQJvyJCJgi6J3RM\nCbim5+zN36x2X3r/a4Mpl4kYj/kLb+U6fBbdYDJ5zMSE+SEbP3YcsUqWYytz\nDSPDyXr+FBA3zw9J5qU1X8HKMNCRYGMDwQ56ZIZ2lGpz28FsZahPhuOUA5zF\nvDkW2IET9Hcp34+KTsvi9TyaMqbOFsp1j7Y0/vYr/WUdKAikpJxKYXq0DR97\nN0Am\r\n=TZsw\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIFZGyTCro4LR6AOmMccEUD4cMGvISmfxMOw7zSJDfNLwAiEAsXU0S54JKMKOOefMTinTZfdeq3rm/p9uQxl05sb0Qnk="}]},"maintainers":[{"name":"matteo.collina","email":"hello@matteocollina.com"}],"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/make-promises-safe_4.0.0_1542723957472_0.23993939996620428"},"_hasShrinkwrap":false},"5.0.0":{"name":"make-promises-safe","version":"5.0.0","description":"Crash or abort if you get an unhandledRejection or multipleResolves","main":"make-promises-safe.js","scripts":{"test":"standard | snazzy && tap test.js"},"repository":{"type":"git","url":"git+https://github.com/mcollina/make-promises-safe.git"},"keywords":["promise","promises","safe","unhandled","rejection","unhandledRejection"],"author":{"name":"Matteo Collina","email":"hello@matteocollina.com"},"license":"MIT","bugs":{"url":"https://github.com/mcollina/make-promises-safe/issues"},"homepage":"https://github.com/mcollina/make-promises-safe#readme","devDependencies":{"pre-commit":"^1.2.2","snazzy":"^7.0.0","standard":"^10.0.2","tap":"^10.3.3"},"gitHead":"f33e8861dd697434adf6bd845d6928ae1396e7a0","_id":"make-promises-safe@5.0.0","_nodeVersion":"10.15.2","_npmVersion":"6.9.0","_npmUser":{"name":"matteo.collina","email":"hello@matteocollina.com"},"dist":{"integrity":"sha512-QfwbMG10X/sZ5H0fkxziUSl/UhORD4QBMhK5kTMDUyqPRJblVJSG6UMdKwl0ymshK7jpdclaXhC56uUC0exvDw==","shasum":"a42b6d9cebfa1642fc3a5bdb4e583dce35f2689d","tarball":"https://registry.npmjs.org/make-promises-safe/-/make-promises-safe-5.0.0.tgz","fileCount":7,"unpackedSize":5476,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJck11ICRA9TVsSAnZWagAAU7YP/1iYkSYY+ckueLIqyPzh\ndSl3jHcGPO4Wi8ohKCjSGYNR90NJwas/abPopbaARNbyVx0Q2qK3fagCfQ+e\n05xqHOb30EkBcdUShD8Rlu5GR1Zsau0LoFJJ11G3yRQytQPZDAREFsM4977D\n9C3NJV0dZ8E2VZE4VQJCLvbsVFah73+vMfnpizwdzoD53CezOCzRvc7AFTPG\nmbGtrA4lUDvEE1z5vjOfZpEhVwgcFDWA6y+HSKB+NNeG7U+BKNo0MUhx3RwD\nXBxrm2TmftOGBNEUKlSYBW2R/fiFgjzRQRfUa0sbYWRZxT7aq/3+XUHbJIOK\nHqVTMM6ZAC47BecQBwJTqrCIPMHwAbJeLSJtGz9Wa4hmVE6oSleyNXD5CCmf\nW6btfmeqVRGruOxhlY2DEjGeezQQLxZvOvefYeMuzBOkRa1fOdc3OE+2E68U\nGJjfQ+27GLqdGQd1Xq938IMXrrn9GoXD+1B/StuQmzUc8D/lSKg2O3qfpXGK\nWiEhQ7v37hS3OymlFwASF4uEzDcECn2mq5WvSCB3OuMJoKSRD4aSDZicVu7x\ncjVB8gxhew8gnt4CmCFoh/+cd/yWj/tqzBCcTSpVUC1RKp8lAC3YJq0ubT5f\nphbVTzB2zig3TFQMPKMt0j2ETfe0MzQT+LhdCUZjjQH8StJoiwTKFMkOlMho\npyoC\r\n=91f5\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQCxw0nqs5lz61EjvHF9hOe+dWiSRYRzkiwExU2zfhy/IQIhAMUENRn7q2okZAutG/zQOtC7ds/IT2XxAl7PAlacQ8K2"}]},"maintainers":[{"name":"matteo.collina","email":"hello@matteocollina.com"}],"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/make-promises-safe_5.0.0_1553161544339_0.4782980241396433"},"_hasShrinkwrap":false},"5.1.0":{"name":"make-promises-safe","version":"5.1.0","description":"Crash or abort if you get an unhandledRejection or multipleResolves","main":"make-promises-safe.js","scripts":{"test":"standard | snazzy && tap test.js"},"repository":{"type":"git","url":"git+https://github.com/mcollina/make-promises-safe.git"},"keywords":["promise","promises","safe","unhandled","rejection","unhandledRejection"],"author":{"name":"Matteo Collina","email":"hello@matteocollina.com"},"license":"MIT","bugs":{"url":"https://github.com/mcollina/make-promises-safe/issues"},"homepage":"https://github.com/mcollina/make-promises-safe#readme","devDependencies":{"pre-commit":"^1.2.2","sinon":"^7.5.0","snazzy":"^8.0.0","standard":"^14.3.1","tap":"^12.5.2"},"gitHead":"6a4b6ba8c818538abe1eb9eb89861c624056686b","_id":"make-promises-safe@5.1.0","_nodeVersion":"10.16.3","_npmVersion":"6.11.3","_npmUser":{"name":"matteo.collina","email":"hello@matteocollina.com"},"dist":{"integrity":"sha512-AfdZ49rtyhQR/6cqVKGoH7y4ql7XkS5HJI1lZm0/5N6CQosy1eYbBJ/qbhkKHzo17UH7M918Bysf6XB9f3kS1g==","shasum":"dd9d311f555bcaa144f12e225b3d37785f0aa8f2","tarball":"https://registry.npmjs.org/make-promises-safe/-/make-promises-safe-5.1.0.tgz","fileCount":7,"unpackedSize":6309,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJdlNA8CRA9TVsSAnZWagAAJCYP/iTdFksOXvz4C2pn5/eF\nwU2By8BsBA3fsAPx2hh4YDvKk6DemVHEswgl7Tv6Z6pNoPFVeoHjytNViYNl\n3vXpwb39qPFWSqz+8bmVmddND3nwTlm4ZPfY8Lc4w9beYp2TUYsy028HU+0r\nwGaMnKpdjyALa433flDzUwMj+hx6Z7IPOxQ/Z2WcH3A7eEn4ZWGBj8zWxqZx\ngMEQ5abOmdGc47ueXNesbFuutucBjD+WJnDSJY75smQY7zaOlyRlfqC7bW4Z\nr+pEito1RSqpN3fMYKShZPp+vn9rnfaOMR0800YFsSZwiFIfJrnW4czUfYma\nh2sbj03B7HBlBZ4rQkOejZ/jnvHCuYPrR9Lb4CFCftSQs3uqcTuNetKI5Smo\nLbHM8lgBRnqv6XeLppPcReOGaIGI4A/qi7+hMb3LZX0tyAfyBvf8Cc0E5tzG\npvCirQYSrbQcnAoZ0MYryfGY34A6i/aH8t6l7QLNqoMOAVNJ45gnadb9Iwky\nthSElFrFbTcM7m0efY/hx5NtWXJyklJ2/guBt+tqKaXnyDAJBy560oOFVR+o\nFnV3sp0X63ch5fXoDdc8U8Ud4IwnOLZv1GL4baDh63EW+LA4n4jlB2hcQYzC\n2mKpYOvCNz1K8ZjwCTWaGel+EbfvGvV+9GIvUYF2lWo5K7l818FidPiNCFew\nk1/d\r\n=wS3i\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIFFxnjTX74zEpE0sdt998PhDTtdV8TE3DPdXo7QdSby8AiAaJs8x2HFFZyrsahBKXAqT4VcZakJBVHNZeniUcxn3Bw=="}]},"maintainers":[{"name":"matteo.collina","email":"hello@matteocollina.com"}],"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/make-promises-safe_5.1.0_1570033724113_0.2600141202305517"},"_hasShrinkwrap":false}},"readme":"# make-promises-safe &nbsp;&nbsp;[![Build Status](https://travis-ci.org/mcollina/make-promises-safe.svg?branch=master)](https://travis-ci.org/mcollina/make-promises-safe)\n\nA node.js module to make the use of promises safe.\nIt implements the deprecation [DEP0018][unhandled] of Node.js in versions 6+.\nUsing Promises without this module might cause file descriptor and memory\nleaks.\n\n**It is important that this module is only used in top-level program code, not\nin reusable modules!**\n\n## The Problem\n\nNode.js crashes if there is an uncaught exception, while it does not\ncrash if there is an `'unhandledRejection'`, i.e. a Promise without a\n`.catch()` handler.\n\n**If you are using promises, you should attach a `.catch()` handler\nsynchronously**.\n\nAs an example, the following server will leak a file descriptor because\nof a missing `.catch()`  handler:\n\n```js\nconst http = require('http')\nconst server = http.createServer(handle)\n\nserver.listen(3000)\n\nfunction handle (req, res) {\n  doStuff()\n    .then((body) => {\n      res.end(body)\n    })\n}\n\nfunction doStuff () {\n  if (Math.random() < 0.5) {\n    return Promise.reject(new Error('kaboom'))\n  }\n\n  return Promise.resolve('hello world')\n}\n```\n\n## The Solution\n\n`make-promises-safe` installs an `process.on('unhandledRejection')`\nhandler that prints the stacktrace and exits the process with an exit\ncode of 1, just like any uncaught exception.\n\n## Install\n\n```\nnpm install make-promises-safe --save\n```\n\n## Usage\n\n```js\n'use strict'\n\nrequire('make-promises-safe') // installs an 'unhandledRejection' handler\nconst http = require('http')\nconst server = http.createServer(handle)\n\nserver.listen(3000)\n\nfunction handle (req, res) {\n  doStuff()\n    .then((body) => {\n      res.end(body)\n    })\n}\n\nfunction doStuff () {\n  if (Math.random() < 0.5) {\n    return Promise.reject(new Error('kaboom'))\n  }\n\n  return Promise.resolve('hello world')\n}\n```\n\n### as a preloader\n\nYou can add this behavior to any Node.js application by using it as a\npreloader:\n\n```\nnode -r make-promises-safe server.js\n```\n\n### with core dumps\n\nYou can also create a core dump when an unhandled rejection occurs:\n\n\n```\nrequire('make-promises-safe').abort = true\n```\n\n### With custom logging\n\nYou can add a custom logger to log errors in your own format. To do this override the `logError` property with a function that takes a single `Error` parameter. This defaults to `console.error`.\n\n```\nconst makePromisesSafe = require('make-promises-safe');\nmakePromisesSafe.logError = function(err) {\n  // log the err object\n}\n```\n\n## License\n\nMIT\n\n[unhandled]: https://nodejs.org/dist/latest-v8.x/docs/api/deprecations.html#deprecations_dep0018_unhandled_promise_rejections\n","maintainers":[{"name":"matteo.collina","email":"hello@matteocollina.com"}],"time":{"modified":"2023-07-12T19:06:24.199Z","created":"2017-06-19T16:27:42.131Z","1.0.0":"2017-06-19T16:27:42.131Z","1.0.1":"2017-06-19T16:34:02.475Z","1.1.0":"2017-06-22T21:57:13.971Z","2.0.0":"2018-10-25T17:42:25.626Z","3.0.0":"2018-11-01T09:29:53.515Z","4.0.0":"2018-11-20T14:25:57.588Z","5.0.0":"2019-03-21T09:45:44.458Z","5.1.0":"2019-10-02T16:28:44.304Z"},"homepage":"https://github.com/mcollina/make-promises-safe#readme","keywords":["promise","promises","safe","unhandled","rejection","unhandledRejection"],"repository":{"type":"git","url":"git+https://github.com/mcollina/make-promises-safe.git"},"author":{"name":"Matteo Collina","email":"hello@matteocollina.com"},"bugs":{"url":"https://github.com/mcollina/make-promises-safe/issues"},"license":"MIT","readmeFilename":"README.md","users":{"flumpus-dev":true}}