{"_id":"mu-error","_rev":"27-3fca14bc9a419ccc62fc88c196c213e3","name":"mu-error","description":"The official error handling library for mu, provides distributed error handling functionality","dist-tags":{"latest":"1.4.5"},"versions":{"1.0.0":{"name":"mu-error","version":"1.0.0","description":"Generic Error Maker for `mu`, the microservices toolkit","main":"index.js","scripts":{"browser-test":"zuul tape test --local","cov":"tap test --cov","ci":"standard && tap test --coverage-report=lcov && codecov","test":"tap test","lint":"standard"},"pre-commit":["lint","test"],"keywords":[],"author":{"name":"David Mark Clements"},"license":"MIT","dependencies":{"boom":"^4.2.0"},"devDependencies":{"codecov":"^1.0.1","pre-commit":"^1.1.3","standard":"^8.5.0","tap":"^8.0.0","tape":"^4.6.2","zuul":"^3.11.1"},"gitHead":"1714c7c41a360d84c9d1fc968e6f0c854c0a9fd4","_id":"mu-error@1.0.0","_shasum":"73dec641d3e1ad184f7967da4a2656af45efb40e","_from":".","_npmVersion":"2.14.17","_nodeVersion":"6.9.0","_npmUser":{"name":"davidmarkclements","email":"huperekchuno@googlemail.com"},"dist":{"shasum":"73dec641d3e1ad184f7967da4a2656af45efb40e","tarball":"https://registry.npmjs.org/mu-error/-/mu-error-1.0.0.tgz","integrity":"sha512-Ha53NexVQxAHQC7ffEnhZau5QA+LekQHdEmlS7PGv8kjsBOfT/cWRUOLUPIGzWPMEmtuPqo4t8ZJdxOMtFg5Fw==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIAoZp2YissiRk3cNc1VpRI4MEGlsmbZBP1IaM254Ds30AiAmdRXJHUs/4WGkd3ZY4Ebbv0o28lVh9NnrnP7WI6DjBA=="}]},"maintainers":[{"name":"davidmarkclements","email":"huperekchuno@googlemail.com"}],"_npmOperationalInternal":{"host":"packages-18-east.internal.npmjs.com","tmp":"tmp/mu-error-1.0.0.tgz_1477492068789_0.12111494690179825"},"directories":{}},"1.1.0":{"name":"mu-error","version":"1.1.0","description":"Generic Error Maker for `mu`, the microservices toolkit","main":"index.js","scripts":{"browser-test":"zuul tape test --local","cov":"tap test --cov","html-cov":"tap test --coverage-report=html","ci":"standard && tap test --coverage-report=lcov && codecov","test":"tap test","lint":"standard"},"pre-commit":["lint","test"],"keywords":[],"author":{"name":"David Mark Clements"},"license":"MIT","dependencies":{"boom":"^4.2.0"},"devDependencies":{"codecov":"^1.0.1","pre-commit":"^1.1.3","standard":"^8.5.0","tap":"^8.0.0","tape":"^4.6.2","zuul":"^3.11.1"},"gitHead":"1c7bd24aff48923bb284a95485241412835adbfb","_id":"mu-error@1.1.0","_shasum":"a864e2d94a522c3112b44c72e62f854133945e71","_from":".","_npmVersion":"2.14.17","_nodeVersion":"6.9.0","_npmUser":{"name":"davidmarkclements","email":"huperekchuno@googlemail.com"},"dist":{"shasum":"a864e2d94a522c3112b44c72e62f854133945e71","tarball":"https://registry.npmjs.org/mu-error/-/mu-error-1.1.0.tgz","integrity":"sha512-z8MrOPfh2sBfBitKu6rCqPEZC0jmqwR8nnBfov3WgyTNnscw128sbF0NKKiULKMLfhfoh410/o3PIJju4ZA2vw==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIFFjqYWHdIMh6ktJ9sBf14tNeWfzqZpgiy70OrTtftaFAiEAl56QZjVBRQlg5uDUYB5Ac+WC2k9oxndb/jZHE6m9+Fc="}]},"maintainers":[{"name":"davidmarkclements","email":"huperekchuno@googlemail.com"}],"_npmOperationalInternal":{"host":"packages-18-east.internal.npmjs.com","tmp":"tmp/mu-error-1.1.0.tgz_1477496788574_0.404109405586496"},"directories":{}},"1.1.1":{"name":"mu-error","version":"1.1.1","description":"Generic Error Maker for `mu`, the microservices toolkit","main":"index.js","scripts":{"browser-test":"zuul tape test --local","cov":"tap test --cov","html-cov":"tap test --coverage-report=html","ci":"standard && tap test --coverage-report=lcov && codecov","test":"tap test","lint":"standard"},"pre-commit":["lint","test"],"keywords":[],"author":{"name":"David Mark Clements"},"license":"MIT","dependencies":{"boom":"^4.2.0"},"devDependencies":{"codecov":"^1.0.1","pre-commit":"^1.1.3","standard":"^8.5.0","tap":"^8.0.0","tape":"^4.6.2","zuul":"^3.11.1"},"gitHead":"cb46cc978fcb3da5dd698055e7d235fdd56aa7ae","_id":"mu-error@1.1.1","_shasum":"1eaca1de08f59e248320e6aa863b8b9379ae89bf","_from":".","_npmVersion":"2.14.17","_nodeVersion":"6.9.0","_npmUser":{"name":"davidmarkclements","email":"huperekchuno@googlemail.com"},"dist":{"shasum":"1eaca1de08f59e248320e6aa863b8b9379ae89bf","tarball":"https://registry.npmjs.org/mu-error/-/mu-error-1.1.1.tgz","integrity":"sha512-MPBCS/FuOqsX3u7QPCtR6TjnKqkQa5KP1ZFCLpDAEPWDL2hjOCnMsEB9m0zWXpvlzC/T1y77bcEEEILCMOWGow==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIBygqwWYSSSGhbpJt7GUSTxBF0YSJ4AiG1QD4OTeXfiQAiACxMeMPk50k/YmL0gTuw0sSx0saJjNNGvx6S7/R6CgcA=="}]},"maintainers":[{"name":"davidmarkclements","email":"huperekchuno@googlemail.com"}],"_npmOperationalInternal":{"host":"packages-12-west.internal.npmjs.com","tmp":"tmp/mu-error-1.1.1.tgz_1477502541217_0.2587558329105377"},"directories":{}},"1.1.2":{"name":"mu-error","version":"1.1.2","description":"Generic Error Maker for `mu`, the microservices toolkit","main":"index.js","scripts":{"browser-test":"zuul tape test --local","cov":"tap test --cov","html-cov":"tap test --coverage-report=html","ci":"standard && tap test --coverage-report=lcov && codecov","test":"tap test","lint":"standard"},"pre-commit":["lint","test"],"keywords":[],"author":{"name":"David Mark Clements"},"license":"MIT","dependencies":{"boom":"^4.2.0"},"devDependencies":{"codecov":"^1.0.1","pre-commit":"^1.1.3","standard":"^8.5.0","tap":"^8.0.0","tape":"^4.6.2","zuul":"^3.11.1"},"gitHead":"5171d7beb07625e389f9f5c2bd748e3432a5120b","_id":"mu-error@1.1.2","_shasum":"cfe8029568389c88565a6264f9ec79c8fc9d1767","_from":".","_npmVersion":"2.14.17","_nodeVersion":"6.9.0","_npmUser":{"name":"davidmarkclements","email":"huperekchuno@googlemail.com"},"dist":{"shasum":"cfe8029568389c88565a6264f9ec79c8fc9d1767","tarball":"https://registry.npmjs.org/mu-error/-/mu-error-1.1.2.tgz","integrity":"sha512-vLFITq36QN2u5z+tEPBKK6UJS9An0q1gokZyOyVbCxqTVXhiknTLtpc5pp4Rv334yx3LaflwjIlluDJjqJeZMw==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQCSstRwqhXgNDWh5BwwS1FpWHtYXqrMQCFbYy311Roz7gIhAKMNempHfklsRvQ9dT2XYfZnKLWJ3MKe307MRpskUDsh"}]},"maintainers":[{"name":"davidmarkclements","email":"huperekchuno@googlemail.com"}],"_npmOperationalInternal":{"host":"packages-12-west.internal.npmjs.com","tmp":"tmp/mu-error-1.1.2.tgz_1477502980974_0.02599813137203455"},"directories":{}},"1.2.0":{"name":"mu-error","version":"1.2.0","description":"Generic Error Maker for `mu`, the microservices toolkit","main":"index.js","scripts":{"browser-test":"zuul tape test --local","cov":"tap test --cov","html-cov":"tap test --coverage-report=html","ci":"standard && tap test --coverage-report=lcov && codecov","test":"tap test","lint":"standard"},"pre-commit":["lint","test"],"keywords":[],"author":{"name":"David Mark Clements"},"license":"MIT","dependencies":{"boom":"^4.2.0"},"devDependencies":{"codecov":"^1.0.1","pre-commit":"^1.1.3","standard":"^8.5.0","tap":"^8.0.0","tape":"^4.6.2","zuul":"^3.11.1"},"gitHead":"38b6f70f4c4339a1392c0e46cb3b7cfddc95c3ed","_id":"mu-error@1.2.0","_shasum":"6f90d5d8e28a167f098915deb955208534665671","_from":".","_npmVersion":"2.14.17","_nodeVersion":"6.9.0","_npmUser":{"name":"davidmarkclements","email":"huperekchuno@googlemail.com"},"dist":{"shasum":"6f90d5d8e28a167f098915deb955208534665671","tarball":"https://registry.npmjs.org/mu-error/-/mu-error-1.2.0.tgz","integrity":"sha512-AoMuQ/hnF6pKpCYSGKShkTWh2S/7f+SR7j29TEn+fzpVXWWLhYtZwfWtczC7dG6tPZ0LSdVFB2Vkvb37gizLFw==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQCrBqR1KzJm/b1S4BXDD8nZ6DfqgrfJ1C8PkF1eYPXP6wIgfbbvP7amvF6tXbu6/DOVvaAeL3Sck0wWgW3ElVKfFIE="}]},"maintainers":[{"name":"davidmarkclements","email":"huperekchuno@googlemail.com"}],"_npmOperationalInternal":{"host":"packages-12-west.internal.npmjs.com","tmp":"tmp/mu-error-1.2.0.tgz_1477515777381_0.5702756033279002"},"directories":{}},"1.2.1":{"name":"mu-error","version":"1.2.1","description":"Generic Error Maker for `mu`, the microservices toolkit","main":"index.js","scripts":{"browser-test":"zuul tape test --local","cov":"tap test --cov","html-cov":"tap test --coverage-report=html","ci":"standard && tap test --coverage-report=lcov && codecov","test":"tap test","lint":"standard"},"pre-commit":["lint","test"],"keywords":[],"author":{"name":"David Mark Clements"},"license":"MIT","dependencies":{"boom":"^4.2.0"},"devDependencies":{"codecov":"^1.0.1","pre-commit":"^1.1.3","standard":"^8.5.0","tap":"^8.0.0","tape":"^4.6.2","zuul":"^3.11.1"},"gitHead":"3f325c886ee59e294ca0502ab7c8f10fa23adaa8","_id":"mu-error@1.2.1","_shasum":"a18b6ec60484a355922de551cce602de2ceddf07","_from":".","_npmVersion":"2.14.17","_nodeVersion":"6.9.0","_npmUser":{"name":"davidmarkclements","email":"huperekchuno@googlemail.com"},"dist":{"shasum":"a18b6ec60484a355922de551cce602de2ceddf07","tarball":"https://registry.npmjs.org/mu-error/-/mu-error-1.2.1.tgz","integrity":"sha512-jPZgbcTBYPNaDuycnxPugIBYJEOZathpMlsjdif4Ebw8a4imAOKOlQz8T72fbAnqAgKErJCRV8iLDMdiyEmPVw==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQCpbhBx0mKuhtAogiauagViFusZGeVA7E5yoyCKhhHgZgIgbwYkNf5Wu/jqjmp6V0hvFvwKlQIbBmsSwp8OTppMFrU="}]},"maintainers":[{"name":"davidmarkclements","email":"huperekchuno@googlemail.com"}],"_npmOperationalInternal":{"host":"packages-18-east.internal.npmjs.com","tmp":"tmp/mu-error-1.2.1.tgz_1477559010996_0.01661305339075625"},"directories":{}},"1.3.0":{"name":"mu-error","version":"1.3.0","description":"Generic Error Maker for `mu`, the microservices toolkit","main":"index.js","scripts":{"browser-test":"zuul tape test --local","cov":"tap test --cov","html-cov":"tap test --coverage-report=html","ci":"standard && tap test --coverage-report=lcov && codecov","test":"tap test","lint":"standard"},"pre-commit":["lint","test"],"keywords":[],"author":{"name":"David Mark Clements"},"license":"MIT","dependencies":{"boom":"^4.2.0"},"devDependencies":{"codecov":"^1.0.1","pre-commit":"^1.1.3","standard":"^8.5.0","tap":"^8.0.0","tape":"^4.6.2","zuul":"^3.11.1"},"gitHead":"b63de0af0906a46d1b88f028ece974419e0f4843","_id":"mu-error@1.3.0","_shasum":"d1b8cb2ff66b358adeddb93c43452166d50a2164","_from":".","_npmVersion":"2.14.17","_nodeVersion":"4.4.7","_npmUser":{"name":"davidmarkclements","email":"huperekchuno@googlemail.com"},"dist":{"shasum":"d1b8cb2ff66b358adeddb93c43452166d50a2164","tarball":"https://registry.npmjs.org/mu-error/-/mu-error-1.3.0.tgz","integrity":"sha512-O6yByF6Wi9X6zSbO/ymeV8sYQKTPb3G5XHAx67/6m5yipdnvhu+hs/V9ITpMpGgRRf2SvZxUwUYB9A47bxb9VA==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQDko+6m9N1yRDK38NKt2VfKR7bIWFZLHyqNCWA9yx5GBAIhAMqBd03RCEQD55OINAXV10I5CxeTRvjCo1DgeBve56qk"}]},"maintainers":[{"name":"davidmarkclements","email":"huperekchuno@googlemail.com"}],"_npmOperationalInternal":{"host":"packages-18-east.internal.npmjs.com","tmp":"tmp/mu-error-1.3.0.tgz_1477577629369_0.18535768915899098"},"directories":{}},"1.3.1":{"name":"mu-error","version":"1.3.1","description":"Generic Error Maker for `mu`, the microservices toolkit","main":"index.js","scripts":{"browser-test":"zuul tape test --local","cov":"tap test --cov","html-cov":"tap test --coverage-report=html","ci":"standard && tap test --coverage-report=lcov && codecov","test":"tap test","lint":"standard"},"pre-commit":["lint","test"],"keywords":[],"author":{"name":"David Mark Clements"},"license":"MIT","dependencies":{"boom":"^4.2.0"},"devDependencies":{"codecov":"^1.0.1","pre-commit":"^1.1.3","standard":"^8.5.0","tap":"^8.0.0","tape":"^4.6.2","zuul":"^3.11.1"},"gitHead":"92abc4ceb93f779c0a4a9827d3fc7e4570217fa4","_id":"mu-error@1.3.1","_shasum":"384898a8507fc8779a9918b5719a6f31ca83ad8b","_from":".","_npmVersion":"2.14.17","_nodeVersion":"4.4.7","_npmUser":{"name":"davidmarkclements","email":"huperekchuno@googlemail.com"},"dist":{"shasum":"384898a8507fc8779a9918b5719a6f31ca83ad8b","tarball":"https://registry.npmjs.org/mu-error/-/mu-error-1.3.1.tgz","integrity":"sha512-E5O2wR1vWmBBykWBXJ7eOzeQsdDLw+t4Pzb4JX9gPx9UbG3xPrs8LknQXPChTL21hjZ9XKkd+2VG8KLyfty1ow==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIFhNAUWIgMTMH8CMnSbP5cXsYUhHKmIlnsbjU0eNK6vyAiBViP/iZCeeWlDMAKMrhGuNP5iWWduTnpYJhy/ZbzNgaA=="}]},"maintainers":[{"name":"davidmarkclements","email":"huperekchuno@googlemail.com"}],"_npmOperationalInternal":{"host":"packages-18-east.internal.npmjs.com","tmp":"tmp/mu-error-1.3.1.tgz_1477579497774_0.9506154055707157"},"directories":{}},"1.4.0":{"name":"mu-error","version":"1.4.0","description":"Generic Error Maker for `mu`, the microservices toolkit","main":"index.js","scripts":{"browser-test":"zuul tape test --local","cov":"tap test --cov","html-cov":"tap test --coverage-report=html","ci":"standard && tap test --coverage-report=lcov && codecov","test":"tap test","lint":"standard"},"pre-commit":["lint","test"],"keywords":[],"author":{"name":"David Mark Clements"},"license":"MIT","dependencies":{"boom":"^4.2.0"},"devDependencies":{"codecov":"^1.0.1","pre-commit":"^1.1.3","standard":"^8.5.0","tap":"^8.0.0","tape":"^4.6.2","zuul":"^3.11.1"},"gitHead":"620a03cc90eb53f4da92c3e4cd25f0eed7a5a235","_id":"mu-error@1.4.0","_shasum":"a1bd9c93655cff1bb554db348b09a4e1fa437502","_from":".","_npmVersion":"2.14.17","_nodeVersion":"4.4.7","_npmUser":{"name":"davidmarkclements","email":"huperekchuno@googlemail.com"},"dist":{"shasum":"a1bd9c93655cff1bb554db348b09a4e1fa437502","tarball":"https://registry.npmjs.org/mu-error/-/mu-error-1.4.0.tgz","integrity":"sha512-EzX6qh48lta6lFBORLbFe1Q6i5KDYDGo9P8EkFutmReKrIIzTX0VFK+v7RVfuxibbCEWGksAR7yE8FkHcNWI4Q==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCID4VPdDmfMRxl9Irq5Xp3J683p15E7udN7o7BigfCNAnAiEAvTLreED9fBiBsaYaYlz/33zgBFV2h2Sy65eETrl6jXI="}]},"maintainers":[{"name":"davidmarkclements","email":"huperekchuno@googlemail.com"}],"_npmOperationalInternal":{"host":"packages-18-east.internal.npmjs.com","tmp":"tmp/mu-error-1.4.0.tgz_1477588986655_0.7448327234014869"},"directories":{}},"1.4.1":{"name":"mu-error","version":"1.4.1","description":"Generic Error Maker for `mu`, the microservices toolkit","main":"index.js","scripts":{"browser-test":"zuul tape test --local","cov":"tap test --cov","html-cov":"tap test --coverage-report=html","ci":"standard && tap test --coverage-report=lcov && codecov","test":"tap test","lint":"standard"},"pre-commit":["lint","test"],"keywords":[],"author":{"name":"David Mark Clements"},"license":"MIT","dependencies":{"boom":"^4.2.0"},"devDependencies":{"codecov":"^1.0.1","pre-commit":"^1.1.3","standard":"^8.5.0","tap":"^8.0.0","tape":"^4.6.2","zuul":"^3.11.1"},"gitHead":"d14cfa235c6c4d106d7b098bd0addde48849ed40","_id":"mu-error@1.4.1","_shasum":"9e7e7144cf96285d7f701b2c7e520f8722bfae79","_from":".","_npmVersion":"2.14.17","_nodeVersion":"4.4.7","_npmUser":{"name":"davidmarkclements","email":"huperekchuno@googlemail.com"},"dist":{"shasum":"9e7e7144cf96285d7f701b2c7e520f8722bfae79","tarball":"https://registry.npmjs.org/mu-error/-/mu-error-1.4.1.tgz","integrity":"sha512-mBKKvI6hTqcpj7ZfjItB6RILaVRDzOJ5XCYpOIKFq2mKDTHP7N+v8qdHRMEwyaCk7Ld+kHbf3qj0zbjr0vhAAA==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQCktIj98Lj/o14t3PDlC0ZABihR0k4YNk//2GYjzheJ4wIhAKYZx7zLNP+6tKFLh0uZ1MeLJsX5+bzqq5EEL3iO3cOw"}]},"maintainers":[{"name":"davidmarkclements","email":"huperekchuno@googlemail.com"}],"_npmOperationalInternal":{"host":"packages-18-east.internal.npmjs.com","tmp":"tmp/mu-error-1.4.1.tgz_1477591958415_0.40936985961161554"},"directories":{}},"1.4.2":{"name":"mu-error","version":"1.4.2","description":"[![npm][npm-badge]][npm-url] [![travis][travis-badge]][travis-url] [![coveralls][coveralls-badge]][coveralls-url] [![david][david-badge]][david-url]","main":"index.js","scripts":{"browser-test":"zuul tape test --local","cov":"tap test --cov","html-cov":"tap test --coverage-report=html","ci":"standard && tap test --coverage-report=lcov && codecov","test":"tap test","lint":"standard"},"pre-commit":["lint","test"],"repository":{"type":"git","url":"git+https://github.com/apparatus/mu.git"},"keywords":[],"author":{"name":"David Mark Clements"},"license":"MIT","dependencies":{"boom":"^4.2.0"},"devDependencies":{"codecov":"^1.0.1","pre-commit":"^1.1.3","standard":"^8.5.0","tap":"^8.0.0","tape":"^4.6.2","zuul":"^3.11.1"},"bugs":{"url":"https://github.com/apparatus/mu/issues"},"homepage":"https://github.com/apparatus/mu#readme","_id":"mu-error@1.4.2","_shasum":"d09050b0da416475c55b31959c5510c676608713","_from":".","_npmVersion":"2.14.17","_nodeVersion":"4.6.1","_npmUser":{"name":"davidmarkclements","email":"huperekchuno@googlemail.com"},"dist":{"shasum":"d09050b0da416475c55b31959c5510c676608713","tarball":"https://registry.npmjs.org/mu-error/-/mu-error-1.4.2.tgz","integrity":"sha512-KSLqDJ0vEdVsArDQo9UoPebbGmX9hdU2sstyJJVkiR5/oBOkQvThTp/jDiCXl4jXiWYbGm/Qzjf6N6gvLM+lCA==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQCUbNcXnBsNZIC4FWZ36+0acqzo4rMDhd/2qhmpoQpZwwIgesp+4ikGweQKHufpCoYuCB5THbCOOvtQ4aX975ONmhU="}]},"maintainers":[{"name":"davidmarkclements","email":"huperekchuno@googlemail.com"}],"_npmOperationalInternal":{"host":"packages-12-west.internal.npmjs.com","tmp":"tmp/mu-error-1.4.2.tgz_1478537574236_0.48605926567688584"},"directories":{}},"1.4.3":{"name":"mu-error","version":"1.4.3","description":"The official error handling library for mu, provides distributed error handling functionality to mu","main":"index.js","scripts":{"browser-test":"zuul tape test --local","cov":"tap test --cov","html-cov":"tap test --coverage-report=html","ci":"standard && tap test --coverage-report=lcov && codecov","test":"tap test","lint":"standard"},"pre-commit":["lint","test"],"repository":{"type":"git","url":"git+https://github.com/apparatus/mu.git"},"keywords":[],"author":{"name":"David Mark Clements"},"license":"MIT","dependencies":{"boom":"^4.2.0"},"devDependencies":{"codecov":"^1.0.1","pre-commit":"^1.1.3","standard":"^8.5.0","tap":"^8.0.0","tape":"^4.6.2","zuul":"^3.11.1"},"bugs":{"url":"https://github.com/apparatus/mu/issues"},"homepage":"https://github.com/apparatus/mu#readme","_id":"mu-error@1.4.3","_shasum":"c722ae03f329d8ac76d5a556cf00f489f7a15d15","_from":".","_npmVersion":"2.14.17","_nodeVersion":"4.6.1","_npmUser":{"name":"davidmarkclements","email":"huperekchuno@googlemail.com"},"dist":{"shasum":"c722ae03f329d8ac76d5a556cf00f489f7a15d15","tarball":"https://registry.npmjs.org/mu-error/-/mu-error-1.4.3.tgz","integrity":"sha512-sJ2xnRwlCVo2va+rWsfr3WuANKkB02251K8cf7d8ir9Us8/Nc+cRHUjMvBZMTdne6uWwPPbaoFTSsvm0NfXoew==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIFOpKmKSsyXzSeXD4wiZklRDFFWA/VfwV9uDxP2I4LHPAiEA9J4IRYWYzdbArduESlzeotuZiPQmpqHo3QzIHbI9kQM="}]},"maintainers":[{"name":"davidmarkclements","email":"huperekchuno@googlemail.com"},{"name":"matteo.collina","email":"hello@matteocollina.com"},{"name":"mcdonnelldean","email":"mcdonnelldean@outlook.com"},{"name":"pelger","email":"elger.peter@gmail.com"}],"_npmOperationalInternal":{"host":"packages-12-west.internal.npmjs.com","tmp":"tmp/mu-error-1.4.3.tgz_1478540103759_0.6187691707164049"},"directories":{}},"1.4.4":{"name":"mu-error","version":"1.4.4","description":"The official error handling library for mu, provides distributed error handling functionality","main":"index.js","scripts":{"browser-test":"zuul tape test --local","cov":"tap test --cov","html-cov":"tap test --coverage-report=html","ci":"standard && tap test --coverage-report=lcov && codecov","test":"tap test","lint":"standard"},"pre-commit":["lint","test"],"repository":{"type":"git","url":"git+https://github.com/apparatus/mu.git"},"keywords":[],"author":{"name":"David Mark Clements"},"license":"MIT","dependencies":{"boom":"^4.2.0"},"devDependencies":{"codecov":"^1.0.1","pre-commit":"^1.1.3","standard":"^8.5.0","tap":"^8.0.0","tape":"^4.6.2","zuul":"^3.11.1"},"bugs":{"url":"https://github.com/apparatus/mu/issues"},"homepage":"https://github.com/apparatus/mu#readme","_id":"mu-error@1.4.4","_shasum":"4f6dfd32fc5a0928f210a065ef433b12452614e7","_from":".","_npmVersion":"2.14.17","_nodeVersion":"4.6.1","_npmUser":{"name":"davidmarkclements","email":"huperekchuno@googlemail.com"},"dist":{"shasum":"4f6dfd32fc5a0928f210a065ef433b12452614e7","tarball":"https://registry.npmjs.org/mu-error/-/mu-error-1.4.4.tgz","integrity":"sha512-aaIhFVXXTDBnrFFr4Idzhi+KjRCZuYf6jLLqQAh9jBckcWGf47MSgFr11ikfI0FJsAmUhWHScsur5MIbk+aiGQ==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQCauz86ijW3vOu1KHbmcHQJ9Y6A0p1PdJwrkoYjXSkBWAIgTZUWIU5H6XJ4MNKFfKn9T5LsPEws4tLIKH3qIX/qxcg="}]},"maintainers":[{"name":"davidmarkclements","email":"huperekchuno@googlemail.com"},{"name":"matteo.collina","email":"hello@matteocollina.com"},{"name":"mcdonnelldean","email":"mcdonnelldean@outlook.com"},{"name":"pelger","email":"elger.peter@gmail.com"}],"_npmOperationalInternal":{"host":"packages-18-east.internal.npmjs.com","tmp":"tmp/mu-error-1.4.4.tgz_1478540911638_0.6385084106586874"},"directories":{}},"1.4.5":{"name":"mu-error","version":"1.4.5","description":"The official error handling library for mu, provides distributed error handling functionality","main":"index.js","scripts":{"browser-test":"zuul tape test --local","cov":"tap test --cov","html-cov":"tap test --coverage-report=html","ci":"standard && tap test --coverage-report=lcov && codecov","test":"tap test","lint":"standard"},"pre-commit":["lint","test"],"repository":{"type":"git","url":"git+https://github.com/apparatus/mu.git"},"keywords":[],"author":{"name":"David Mark Clements"},"license":"MIT","dependencies":{"boom":"^4.2.0"},"devDependencies":{"codecov":"^1.0.1","pre-commit":"^1.1.3","standard":"^8.5.0","tap":"^8.0.0","tape":"^4.6.2","zuul":"^3.11.1"},"bugs":{"url":"https://github.com/apparatus/mu/issues"},"homepage":"https://github.com/apparatus/mu#readme","_id":"mu-error@1.4.5","_shasum":"0831be547ec7e8cf3890d534210a874862a6678f","_from":".","_npmVersion":"4.0.2","_nodeVersion":"6.9.1","_npmUser":{"name":"davidmarkclements","email":"huperekchuno@googlemail.com"},"dist":{"shasum":"0831be547ec7e8cf3890d534210a874862a6678f","tarball":"https://registry.npmjs.org/mu-error/-/mu-error-1.4.5.tgz","integrity":"sha512-XGDUSu0J/fsF5I7auqxWUD5eZdOMgBAwSWHVvAN9q9hR2MYXOsuIUeYJQQ6q7VWQygKT8xZD5CnXDkDRukLl3A==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIBh2p5GFIdC1XzfFqekgVpeZoAFtmkPGCYq6Q3epcwNLAiB98cU6x0iGIlOJSE7isc0fqbFCBD/Ry+5apCRuQkMzBA=="}]},"maintainers":[{"name":"davidmarkclements","email":"huperekchuno@googlemail.com"},{"name":"matteo.collina","email":"hello@matteocollina.com"},{"name":"mcdonnelldean","email":"mcdonnelldean@outlook.com"},{"name":"pelger","email":"elger.peter@gmail.com"}],"_npmOperationalInternal":{"host":"packages-18-east.internal.npmjs.com","tmp":"tmp/mu-error-1.4.5.tgz_1479490483325_0.4814334975089878"},"directories":{}}},"readme":"# mu-error\n\nGeneric Error Maker for `mu`, the microservices toolkit\n\n[![Build Status](https://travis-ci.org/apparatus/mu-error.svg?branch=master)](https://travis-ci.org/apparatus/mu-error)\n\n[![codecov.io](http://codecov.io/github/apparatus/mu-error/coverage.svg?branch=master)](http://codecov.io/github/apparatus/mu-error?branch=master)\n\n## Usage with `mu`\n\nIf you are using the `mu` library, then there is probably no need to require this module directly, simply use the `mu.error` instance.\n\n## Overview\n\n`mu-error` creates decorated [`boom`](http://npm.im/boom) objects, which allows\nfor compatibility with the Hapi `reply` function, without losing any value when\nintegrating with other frameworks such as Express or Koa. \n\nWhile `boom` allows HTTP status codes of 400+, `mu-error` reserves the range\nof 1..99 for mu specific errors, creating an error with this a code this range\nwill generate an HTTP status code of 500 by default and inject the mu error context into the `boom` error `output` object.\n\n## Quick Start Example\n\nIf used in a service context, simply call mue with a string.\n\n```js\nconst mu = require('mu')()\nconst mue = require('mu-error')()\n\nmu.define({role: 'some': cmd: 'thing'}, function (args, cb) {\n  if (!args.pattern.user) {\n    return cb(mue('no user found!'))\n  }\n  cb(null, {some: 'data'})\n})\n```\n\nThis will create an object like the following: \n\n```js\n{ Error: <Error Object>,\n  data: null,\n  isBoom: true,\n  isServer: true,\n  output:\n   { statusCode: 500,\n     payload:\n      { statusCode: 500,\n        error: 'Internal Server Error',\n        message: 'An internal server error occurred' },\n     headers: {},\n     mu:\n      { code: 1,\n        error: 'general service error',\n        message: 'no user found!' } },\n  reformat: [Function],\n  isMu: true }\n```\n\n## Dev Mode\n\nIf we want to see the `mu` error object returned over HTTP, we can pass a\n`dev` option, it makes sense set this based on the `NODE_ENV` environment variable.\n\n```js\nconst mue = require('mu-error')({dev: process.NODE_ENV !== 'production'})\n```\nThis will add the `output.mu` object to `output.payload.mu` also.\n\n## Error Serialization\n\n`mu-error` uses `boom` and `boom` objects are `Error` objects.\n\nThe native `Error` object has `message` and `stack` properties but they are non-enumerable, which means they don't get serialized (via `JSON.stringify`). This is somewhat awkward in a service-based system.\n\nBy default `mu-error` will make sure these values end up in the stringify output. To turn this off (e.g. perhaps in production) use `serializeErrorProps`:\n\n```js\nrequire('mu-error')({serializeErrorProps: false})\n```\n\n## Remote Errors\n\nErrors that have been propagated from another service can be passed to `mue.wrapRemote`. This is for cases where the deserialized `stack` property relates to a stack in another process. Passing the error to `mue.wrapRemote` will place a new local stack on the `err.stack` property, and append the remote stack to a `err.remoteStacks` array, which contains the object of the form `{timestamp, stack}`.\n\nThe `maxRemoteStacks` option can be used to set the maximum allowed stacks to retain in `err.remoteStacks`. This defaults to 30 when the `dev` option is false, or `Infinity` in `dev` mode.\n\n\n## Generate Specific HTTP errors\n\n`mu-error` can be used in the same way as `boom` to create http errors\n\n```js\nmu.define({role: 'some': cmd: 'thing'}, function (args, cb) {\n  if (!args.pattern.user) {\n    return cb(mue(401, 'no user found'))\n  }\n  cb(null, {some: 'data'})\n})\n```\n\nThe `boom` methods are also supported\n\n```js\nmu.define({role: 'some': cmd: 'thing'}, function (args, cb) {\n  if (!args.pattern.user) {\n    return cb(mue.unauthorized('no user found'))\n  }\n  cb(null, {some: 'data'})\n})\n```\n\nSee the [boom](http://npm.im) docs for more.\n\n## Custom mu error HTTP status code\n\nIn the event of a mu error, the status code is 500 (internal server error).\n\nWe can set this to default to another code:\n\n```js\nrequire('mu-error')({httpCode: 509})\n```\n\nIf we want to specify an error code on an individual basis we can use the `mue.makeMuError` method directly (see API). \n\n## API\n\n### `require('mu-error')(options)`\n\nInstantiate `mu-error`. \n\nOptions are\n\n* `dev` (`false`) - see [Dev Mode](#dev-mode)\n* `httpCode` (`500`) - see [Custom mu error HTTP status code](#custom-mu-error-http-status-code)\n* `serializeErrorProps` (`true`) - see [Serialize Error Props](#serialize-error-props)\n* `maxRemoteStacks` (`dev ? Infinity : 20`) see [Remote Errors](#remote-errors)\n\n### `mue(code|message, message|data, data)`\n\nThe main function for creating mu error objects.\n\nThe first arguments may be a number between 1 and 99, or 400+, \nor a string (or undefined).\n\nAs with boom, a `data` parameter can be passed to attach any useful state to the \nerror context.\n\n**Alias**: `mue.create`\n\n### `mue.wrap(error, muCode, statusCode, message)`\n\nSame concept as `boom.wrap`.\n\nWraps an `Error` (or `boom`) object (included deserialized `boom` objects) with a mu error object, \nor adds mu context to a pre-existing `boom` object.\n\n### `mue.wrapRemote(error, muCode, statusCode, message)`\n\nIntended to wraps a (usually deserialized `boom` schema) object (i.e. an error propagating across a transport), and keeps a live list of remote stacks as an array on `err.remoteStacks`. See [Remote Errors](#remote-errors).\n\n**Alias**: `mue.remote`\n\n### `mue.makeMuError(muCode, httpStatusCode, message, data)`\n\nDirectly create a mu error object, this method can be used to \ncreate a single mu error object with a custom http status code.\n\n### `mue.extract(err)`\n\nInverts the shape of the `boom` object so that the mu error context is at the top level, along with payload and data objects.\n\nFor example: \n\n```js\nconsole.log(mue.extract(mue('no user found!'))) \n```\n\nWould give\n\n```js\n{ code: 1,\n  error: 'service error',\n  message: 'no user found!',\n  data: null,\n  payload:\n   { statusCode: 500,\n     error: 'Internal Server Error',\n     message: 'An internal server error occurred' } }\n```\n\n**Alias**: `require('mu-error').extract` \n\n\n### Mu Constants\n\nThe `mue.ERRORS` object has the following constants\n\n```js\n  SERVICE: 1,\n  FRAMEWORK: 2,\n  TRANSPORT: 3,\n  UNKNOWN: 99\n```\n\n### Mu Codes\n\nThe following codes (`mue.MU_CODES`) represent internal mu errors\n\n```js\n  1: 'service error',\n  2: 'framework error',\n  3: 'transport error',\n  99: 'unknown'\n```\n\nIn userland the only code currently of interest is the `service error`, the other codes are used in mu internally.\n\n### `mue.service(message|Error, data)`\n\nGenerate a service error. \n\nWhen passed a message, this is functionally equivalent to calling `mue` directly without a code. (`mue('message') === mue.service('message')`).\n\nWhen passed an `Error` (or `boom`) object it wraps the object with the correct mu context\n\nWhen passed an `Error` this is the equivalent of calling `mue.wrap` (`mue.wrap(Error('foo') === mue.service(Error('foo'))`)\n\n### `mue.framework(message|Error, data)`\n\nGenerate a framework error, used internally by mu\n\nWhen passed an `Error` (or `boom`) object it wraps the object with the correct mu context\n\n### `mue.transport(message|Error, data)`\n\nGenerate a transport error, used internally by mu\n\nWhen passed an `Error` (or `boom`) object it wraps the object with the correct mu context\n\n## License\n\nMIT\n\n## Acknowledgements\n\n* Sponsored by [nearForm](http://nearform.com)\n","maintainers":[{"name":"davidmarkclements","email":"huperekchuno@googlemail.com"},{"name":"matteo.collina","email":"hello@matteocollina.com"},{"name":"mcdonnelldean","email":"mcdonnelldean@outlook.com"},{"name":"pelger","email":"elger.peter@gmail.com"}],"time":{"modified":"2022-06-20T12:50:47.357Z","created":"2016-10-26T14:27:49.235Z","1.0.0":"2016-10-26T14:27:49.235Z","1.1.0":"2016-10-26T15:46:30.922Z","1.1.1":"2016-10-26T17:22:23.031Z","1.1.2":"2016-10-26T17:29:43.056Z","1.2.0":"2016-10-26T21:02:59.333Z","1.2.1":"2016-10-27T09:03:33.513Z","1.3.0":"2016-10-27T14:13:52.368Z","1.3.1":"2016-10-27T14:45:00.391Z","1.4.0":"2016-10-27T17:23:09.550Z","1.4.1":"2016-10-27T18:12:41.136Z","1.4.2":"2016-11-07T16:52:56.176Z","1.4.3":"2016-11-07T17:35:05.692Z","1.4.4":"2016-11-07T17:48:32.306Z","1.4.5":"2016-11-18T17:34:44.036Z"},"keywords":[],"author":{"name":"David Mark Clements"},"license":"MIT","readmeFilename":"readme.md","homepage":"https://github.com/apparatus/mu#readme","repository":{"type":"git","url":"git+https://github.com/apparatus/mu.git"},"bugs":{"url":"https://github.com/apparatus/mu/issues"}}