{"_id":"p-all-with-failures","_rev":"2-b4427e111a00eed6a3b55ffd953b4345","name":"p-all-with-failures","dist-tags":{"latest":"0.0.3"},"versions":{"0.0.2":{"name":"p-all-with-failures","version":"0.0.2","description":"Wrapper on promise all for returning failures ","main":"index.js","repository":{"type":"git","url":"https://github.com/Mohit21GoJs/p-all-with-failures.git"},"author":{"name":"Mohit Yadav"},"license":"MIT","private":false,"devDependencies":{"coveralls":"^3.0.3","jest":"^24.3.1"},"scripts":{"test":"jest"},"licenseText":"MIT License\n\nCopyright (c) 2019 Mohit Y\n\nPermission is hereby granted, free of charge, to any person obtaining a copy\nof this software and associated documentation files (the \"Software\"), to deal\nin the Software without restriction, including without limitation the rights\nto use, copy, modify, merge, publish, distribute, sublicense, and/or sell\ncopies of the Software, and to permit persons to whom the Software is\nfurnished to do so, subject to the following conditions:\n\nThe above copyright notice and this permission notice shall be included in all\ncopies or substantial portions of the Software.\n\nTHE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\nIMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\nFITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE\nAUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\nLIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,\nOUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE\nSOFTWARE.\n","_id":"p-all-with-failures@0.0.2","dist":{"shasum":"af84b54f6b5c36c5d86248c72a1258050f695c00","integrity":"sha512-SHdJ1dh4VA3weqbAJ/nMeBTnp0sVuGLNfjuq05RkDh9z9FieyopkFw06vWJ66sY40m2HLJYQ2uIhWdAy06qqRA==","tarball":"https://registry.npmjs.org/p-all-with-failures/-/p-all-with-failures-0.0.2.tgz","fileCount":10,"unpackedSize":4191,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJcg5J3CRA9TVsSAnZWagAA1QUP/3mxrsHqjhw+yJzD9vMp\ndQcchpbIsEmYdzC/x0fOGAzbxRwEbsv2XxB4lRkSLfbirq9DON7O6XIwVa3o\n3PN17LRCYv32qFFyhg+ElEWTMq92uG3jD4jo1aMd39GMexg1QaaCghAdh8gs\n8vu1kZfurBzTyNXgI4p1KupOLv5KM7Ji+g6+yiZ2Av2vmM+R6isl1+mYqbD8\nFPnkm7kxJ/hhium9HLKsgFpMgayfjkeqKNvEfhZUrUsvvvTlfZEE8yad/9Ic\nkTXjG0CyeGvbDfvc3mRdJeEALryKlwdnGvUuSAAGdUq2TevSk34t7PMljht6\nQk3VJ5TZXvNSpNAAanK/e1QfQWpJ3BrwoAc0H01XUj3Tm0FvQzeyv6eFe7pC\ngl5G1HyPp9iNmHbZcymDqOumfRAfvBkiAC94kUakxcWJOd7bsL5IVM3ORshg\n0yMTexN+c6E/zB26SMySe3wFaMTm2yNElozVitP6MbR42DxjJbOCyBYDiu26\n5pyoybrKvfCzhWe7dwnyuQD5xTMNpwSBXQtg2pU/deS9gH2elFhfkXyd1eSK\nzgleQTJiJCZlFTo3VPTlSjANlF1qaHLC1yKJCOFfCQ/lcteSJZ3bEWYeHzpn\npqMIRlaa6Bz1XbolmOxzP2lZM1ooeX9bXL25oGiPm5v137vBu+zJBMVI3TKh\n9zD6\r\n=ngok\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIFrhaiWY8kclwE++OUlJrC4HalM4a3xZVL7QTbjCLyCtAiBU/29uyl83b+hDmG/DDL9Cv2nNBal8H5Sk+c+A58mClg=="}]},"maintainers":[{"name":"mohit21js","email":"y.mohit2316@gmail.com"}],"_npmUser":{"name":"mohit21js","email":"y.mohit2316@gmail.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/p-all-with-failures_0.0.2_1552126582572_0.7640156404451175"},"_hasShrinkwrap":false},"0.0.3":{"name":"p-all-with-failures","version":"0.0.3","description":"Wrapper on promise all for returning failures ","main":"index.js","repository":{"type":"git","url":"git+https://github.com/Mohit21GoJs/p-all-with-failures.git"},"author":{"name":"Mohit Yadav"},"license":"MIT","private":false,"devDependencies":{"coveralls":"^3.0.3","jest":"^24.3.1"},"scripts":{"test":"jest"},"gitHead":"77c94d19bbb30893fb25068287d80922f1403813","bugs":{"url":"https://github.com/Mohit21GoJs/p-all-with-failures/issues"},"homepage":"https://github.com/Mohit21GoJs/p-all-with-failures#readme","_id":"p-all-with-failures@0.0.3","_npmVersion":"6.4.1","_nodeVersion":"10.14.2","_npmUser":{"name":"mohit21js","email":"y.mohit2316@gmail.com"},"dist":{"integrity":"sha512-OUL/cyyHn2pxEAmum+dcgEXWEyK+EVSIUyh4sY/Z+FqdmaLazCChllNNTh9hz3zCG6LFbhSpR3aYD/Sg3rNZvQ==","shasum":"ed78fd86f1e8cdb742612befc272da4e9e92a5bb","tarball":"https://registry.npmjs.org/p-all-with-failures/-/p-all-with-failures-0.0.3.tgz","fileCount":8,"unpackedSize":142619,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJcipevCRA9TVsSAnZWagAAS48QAIZPnta6OdkdWaAkYDJP\nJqOAqCWgySMiy8aH8aiuIJTsdtm5v0EeSA3QoJpErmr4XNacrNMQr8BzBHCY\nnRvppCgikyE1Byn9o1rOUuzzONpR7qM6lQDV5a2i/4ERXXPpERHtA0MlYwss\nHrYM4qiE/Vuyrt93uLj0pFVXhNl6l24DVcDSs9UYYxk4DttxdNAVsV7md0zK\nxOWOKbICIg6Y8ywVA/d/gmNgHZyVvT2MABbQCLR43wRW/c4lfotNfi4VWRKC\nQfJCLYgb498WiEm5Mf6jzA0lqKVrznMSdwqRivbSY7iQ4ZNcsD32VbpkMzKD\ncLajg/0b3CS1J21wNzEJi2WCJzXXttpb4J1n8bJ9B2U764zxh3hLsEk5X//X\nrEVhBMFvnyHA0vefKI31755GXxLFIA7ugPQb75azx/ynByT6+edxUvtZbrhC\nr59VqIu/zIPeEP2/tqwuTILpoSyeAvNZz7+Ae20ixni5tkH+x7ktzRcz9QsS\negSSVVtTg22EO2ht70Bxc3eslCXhH10SsdUFE87PUNqwIuH12ZXhkS+2tCoR\nGrP56zqaOOXuPr6pMSl10jAhNPzh5qUTA0zDG9NaO2LTuay7XbZUWCAOg5Gd\njuYuAFTI9j81rdgU5qZz53b2RTA5Ue66pQDE9X9Z52KVIYElXAiWTgsPwNbd\n1Tqn\r\n=4pD1\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIBFvPXSN0J2o8VDpG/igVCXVCXfEbV5V29AARMGSWbUnAiBozpY/ZQq8UNKRH7i0+NF2GHN1tX8IZ0h1PJW/kPpgUw=="}]},"maintainers":[{"name":"mohit21js","email":"y.mohit2316@gmail.com"}],"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/p-all-with-failures_0.0.3_1552586671223_0.48920599710392176"},"_hasShrinkwrap":false}},"time":{"created":"2019-03-09T10:16:22.571Z","0.0.2":"2019-03-09T10:16:22.705Z","modified":"2022-05-12T10:26:41.292Z","0.0.3":"2019-03-14T18:04:31.366Z"},"maintainers":[{"name":"mohit21js","email":"y.mohit2316@gmail.com"}],"description":"Wrapper on promise all for returning failures ","repository":{"type":"git","url":"git+https://github.com/Mohit21GoJs/p-all-with-failures.git"},"author":{"name":"Mohit Yadav"},"license":"MIT","readme":"# p-all-with-failures\nA wrapper for using promise all with failures.\n\n[![Build Status](https://travis-ci.org/Mohit21GoJs/p-all-with-failures.svg?branch=master)](https://travis-ci.org/Mohit21GoJs/p-all-with-failures) [![Coverage Status](https://coveralls.io/repos/github/Mohit21GoJs/p-all-with-failures/badge.svg?branch=master)](https://coveralls.io/github/Mohit21GoJs/p-all-with-failures?branch=master)\n\n\n\n### For running locally ###\n`yarn install`\n\n### For running tests ###\n`yarn test`\n\n### Usage ###\n\nPass in array of objects having key `func` as a thennable and `failureCb` as a callback function which can operate on error passed in if promise fails.\n\n#### For example ####\n\n`[{ func: Promise.resolve({some: 'value'})}, { func: Promise.reject({ message: 'Error'}), failureCb: (err) => err.message}] returns [{some: 'value'}, 'Error']` \n\nIf we were to use Promise.all with . `[Promise.resolve({some: 'value'}), Promise.reject({ message: 'Error'})]` would result in rejection with error message.\n","readmeFilename":"README.md","homepage":"https://github.com/Mohit21GoJs/p-all-with-failures#readme","bugs":{"url":"https://github.com/Mohit21GoJs/p-all-with-failures/issues"}}