{"_id":"node-errors-helpers","_rev":"19-b5ff9a4361487f9bdf8eaabf7fac7038","name":"node-errors-helpers","description":"Some helpers for better error handling in Node.js","dist-tags":{"latest":"1.0.0"},"versions":{"0.0.1":{"name":"node-errors-helpers","version":"0.0.1","description":"Some helpers for better error handling in Node.js","main":"lib/index.js","scripts":{"clean":"rimraf lib","lint":"eslint src test","test":"cross-env BABEL_ENV=commonjs mocha --compilers js:babel-register --recursive","test:examples":"node examples/","build":"cross-env BABEL_ENV=commonjs babel src --out-dir lib","prepublish":"npm run clean && npm run lint && npm run test && npm run build"},"repository":{"type":"git","url":"git+https://github.com/Travelport-Ukraine/errors-helpers.git"},"keywords":["error","helpers"],"author":{"name":"Mark mail.ormark@gmail.com"},"license":"MIT","dependencies":{"common-errors":"^0.5.7"},"devDependencies":{"babel":"^6.5.2","babel-cli":"^6.10.1","babel-eslint":"^6.0.4","babel-preset-es2015":"^6.9.0","babel-preset-stage-2":"^6.5.0","babel-register":"^6.9.0","chai":"^3.5.0","cross-env":"^1.0.8","eslint":"^2.12.0","eslint-config-airbnb":"^9.0.1","eslint-plugin-import":"^1.8.1","eslint-plugin-jsx-a11y":"^1.4.2","eslint-plugin-react":"^5.1.1","mocha":"^2.5.3","rimraf":"^2.5.2"},"gitHead":"93975f4a8cd1806030e62b6f618427a412c9a0e3","bugs":{"url":"https://github.com/Travelport-Ukraine/errors-helpers/issues"},"homepage":"https://github.com/Travelport-Ukraine/errors-helpers#readme","_id":"node-errors-helpers@0.0.1","_shasum":"fc4a77dc6e4a1bd08a3860e6db0942b83238a374","_from":".","_npmVersion":"3.8.9","_nodeVersion":"6.2.0","_npmUser":{"name":"shmuga","email":"mail.ormark@gmail.com"},"dist":{"shasum":"fc4a77dc6e4a1bd08a3860e6db0942b83238a374","tarball":"https://registry.npmjs.org/node-errors-helpers/-/node-errors-helpers-0.0.1.tgz","integrity":"sha512-vF/Ar+V7sw+ltMIsH3Mx092XT2iZly9YvL+WVU0YQd8/VXRbw4w2lcP/22FKHT1zpyBSrebLhw4ft5sOKQeVMA==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQCxK3XdKo6NQaFLLTXlAWuTn7YDngZoqjhzUp2jCTDiRAIhAOy/peKNY/JXFWjAp9RAEroXp1G8UoK7x0WOJIZlHkEV"}]},"maintainers":[{"name":"shmuga","email":"mail.ormark@gmail.com"}],"_npmOperationalInternal":{"host":"packages-16-east.internal.npmjs.com","tmp":"tmp/node-errors-helpers-0.0.1.tgz_1465783555722_0.009856923250481486"},"directories":{}},"0.0.2":{"name":"node-errors-helpers","version":"0.0.2","description":"Some helpers for better error handling in Node.js","main":"./lib/index.js","scripts":{"clean":"rimraf lib","lint":"eslint src test","test":"cross-env BABEL_ENV=commonjs mocha --compilers js:babel-register --recursive","test:examples":"node examples/","build":"cross-env BABEL_ENV=commonjs babel src --out-dir lib","prepublish":"npm run clean && npm run lint && npm run test && npm run build"},"repository":{"type":"git","url":"git+https://github.com/Travelport-Ukraine/errors-helpers.git"},"keywords":["error","helpers"],"author":{"name":"Mark mail.ormark@gmail.com"},"license":"MIT","dependencies":{"common-errors":"^0.5.7"},"devDependencies":{"babel":"^6.5.2","babel-cli":"^6.10.1","babel-eslint":"^6.0.4","babel-preset-es2015":"^6.9.0","babel-preset-stage-2":"^6.5.0","babel-register":"^6.9.0","chai":"^3.5.0","cross-env":"^1.0.8","eslint":"^2.12.0","eslint-config-airbnb":"^9.0.1","eslint-plugin-import":"^1.8.1","eslint-plugin-jsx-a11y":"^1.4.2","eslint-plugin-react":"^5.1.1","mocha":"^2.5.3","rimraf":"^2.5.2"},"gitHead":"93975f4a8cd1806030e62b6f618427a412c9a0e3","bugs":{"url":"https://github.com/Travelport-Ukraine/errors-helpers/issues"},"homepage":"https://github.com/Travelport-Ukraine/errors-helpers#readme","_id":"node-errors-helpers@0.0.2","_shasum":"26fa30109bff91630b88275cb2ca964643913d2d","_from":".","_npmVersion":"3.8.9","_nodeVersion":"6.2.0","_npmUser":{"name":"shmuga","email":"mail.ormark@gmail.com"},"dist":{"shasum":"26fa30109bff91630b88275cb2ca964643913d2d","tarball":"https://registry.npmjs.org/node-errors-helpers/-/node-errors-helpers-0.0.2.tgz","integrity":"sha512-dDE9iv/HrNuwzHr1nYzdQ2l1pV/0Tu0+1FtxTM4BG3Aj1DRpDE0+bagf3oyje+C2NsfG8WWJX8ZeLpzo0bSAuA==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIGGcMii47O/xrX/euU82vUtX/Ejsn8YAm09lEoLlTsfOAiEAjYW/3J0Ekse7fU/+XsWN6F4pEk4jDxBkeE+imNTWvNA="}]},"maintainers":[{"name":"shmuga","email":"mail.ormark@gmail.com"}],"_npmOperationalInternal":{"host":"packages-16-east.internal.npmjs.com","tmp":"tmp/node-errors-helpers-0.0.2.tgz_1465783928027_0.809884118149057"},"directories":{}},"0.0.3":{"name":"node-errors-helpers","version":"0.0.3","description":"Some helpers for better error handling in Node.js","main":"./lib/index.js","files":["lib","src"],"scripts":{"clean":"rimraf lib","lint":"eslint src test","test":"cross-env BABEL_ENV=commonjs mocha --compilers js:babel-register --recursive","test:examples":"node examples/","build":"cross-env BABEL_ENV=commonjs babel src --out-dir lib","prepublish":"npm run clean && npm run lint && npm run test && npm run build"},"repository":{"type":"git","url":"git+https://github.com/Travelport-Ukraine/errors-helpers.git"},"keywords":["error","helpers"],"author":{"name":"Mark mail.ormark@gmail.com"},"license":"MIT","dependencies":{"common-errors":"^0.5.7"},"devDependencies":{"babel":"^6.5.2","babel-cli":"^6.10.1","babel-eslint":"^6.0.4","babel-preset-es2015":"^6.9.0","babel-preset-stage-2":"^6.5.0","babel-register":"^6.9.0","chai":"^3.5.0","cross-env":"^1.0.8","eslint":"^2.12.0","eslint-config-airbnb":"^9.0.1","eslint-plugin-import":"^1.8.1","eslint-plugin-jsx-a11y":"^1.4.2","eslint-plugin-react":"^5.1.1","mocha":"^2.5.3","rimraf":"^2.5.2"},"gitHead":"93975f4a8cd1806030e62b6f618427a412c9a0e3","bugs":{"url":"https://github.com/Travelport-Ukraine/errors-helpers/issues"},"homepage":"https://github.com/Travelport-Ukraine/errors-helpers#readme","_id":"node-errors-helpers@0.0.3","_shasum":"4718d61e938ab9524b2efb642fad0cebb4927558","_from":".","_npmVersion":"3.8.9","_nodeVersion":"6.2.0","_npmUser":{"name":"shmuga","email":"mail.ormark@gmail.com"},"dist":{"shasum":"4718d61e938ab9524b2efb642fad0cebb4927558","tarball":"https://registry.npmjs.org/node-errors-helpers/-/node-errors-helpers-0.0.3.tgz","integrity":"sha512-EJrIo9c2onL41bAN6zjQ/BUVcaaW9UN/TP50lo2ymXonzvFLQzl1zTwG8Eah3nZmt8iknGrC7/C8RY4kFkAlUA==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQC6WLed63aHfU4BT1ED8dKm9ij+rnzXhDJl4xOM1s5ukQIgUXGGbymaOkQt6tF1m2N46KHg6RCyZOMRyWvmjql603Y="}]},"maintainers":[{"name":"shmuga","email":"mail.ormark@gmail.com"}],"_npmOperationalInternal":{"host":"packages-12-west.internal.npmjs.com","tmp":"tmp/node-errors-helpers-0.0.3.tgz_1465784074192_0.07844559941440821"},"directories":{}},"0.0.4":{"name":"node-errors-helpers","version":"0.0.4","description":"Some helpers for better error handling in Node.js","main":"./lib/index.js","files":["lib","src"],"scripts":{"clean":"rimraf lib","lint":"eslint src test","test":"cross-env BABEL_ENV=commonjs mocha --compilers js:babel-register --recursive","test:examples":"node examples/","build":"cross-env BABEL_ENV=commonjs babel src --out-dir lib","prepublish":"npm run clean && npm run lint && npm run test && npm run build"},"repository":{"type":"git","url":"git+https://github.com/Travelport-Ukraine/errors-helpers.git"},"keywords":["error","helpers"],"author":{"name":"Mark mail.ormark@gmail.com"},"license":"MIT","dependencies":{"common-errors":"^0.5.7"},"devDependencies":{"babel":"^6.5.2","babel-cli":"^6.10.1","babel-eslint":"^6.0.4","babel-preset-es2015":"^6.9.0","babel-preset-stage-2":"^6.5.0","babel-register":"^6.9.0","chai":"^3.5.0","cross-env":"^1.0.8","eslint":"^2.12.0","eslint-config-airbnb":"^9.0.1","eslint-plugin-import":"^1.8.1","eslint-plugin-jsx-a11y":"^1.4.2","eslint-plugin-react":"^5.1.1","mocha":"^2.5.3","rimraf":"^2.5.2"},"gitHead":"fba38402d317389e7854ad28d495b919c49438a4","bugs":{"url":"https://github.com/Travelport-Ukraine/errors-helpers/issues"},"homepage":"https://github.com/Travelport-Ukraine/errors-helpers#readme","_id":"node-errors-helpers@0.0.4","_shasum":"00ea2228854d86d63517dde8ae09e001013ec95d","_from":".","_npmVersion":"3.8.9","_nodeVersion":"6.2.0","_npmUser":{"name":"shmuga","email":"mail.ormark@gmail.com"},"dist":{"shasum":"00ea2228854d86d63517dde8ae09e001013ec95d","tarball":"https://registry.npmjs.org/node-errors-helpers/-/node-errors-helpers-0.0.4.tgz","integrity":"sha512-Hjw6dv6XjHJJWCd58wdzRT+EUQPTewMB3jobxD9w3Rt9DQ1w1qp97ZQs1tfqN61ILBDzYG2OnwUxsFinD7MFdw==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIBZcu7HE5/PxvugKdS2NnS9X4JaXk8dXL65SxMz7h1HeAiA6bVwA9QUku6LyqYfuqwVVdUKPCZY8LUVXsbbOERu3uA=="}]},"maintainers":[{"name":"shmuga","email":"mail.ormark@gmail.com"}],"_npmOperationalInternal":{"host":"packages-12-west.internal.npmjs.com","tmp":"tmp/node-errors-helpers-0.0.4.tgz_1465944609662_0.73724679579027"},"directories":{}},"0.1.0":{"name":"node-errors-helpers","version":"0.1.0","description":"Some helpers for better error handling in Node.js","main":"index.js","files":["src","index.js"],"scripts":{"lint":"eslint src test","cover":"istanbul cover _mocha --recursive","test":"mocha --recursive","test:examples":"node examples/","prepublish":"npm run lint && npm run test"},"repository":{"type":"git","url":"git+https://github.com/Travelport-Ukraine/errors-helpers.git"},"keywords":["error","helpers"],"author":{"name":"Mark Orel","email":"mail.ormark@gmail.com"},"contributors":[{"name":"Dmitry Chertousov","email":"d.chertousov@gmail.com"}],"license":"MIT","devDependencies":{"chai":"^3.5.0","eslint":"^3.6.0","eslint-config-airbnb":"^12.0.0","eslint-plugin-import":"^2.0.1","eslint-plugin-jsx-a11y":"^2.2.2","eslint-plugin-react":"^6.3.0","mocha":"^3.0.2","istanbul":"^0.4.5"},"gitHead":"845d403d65164252dd58654ca01ae8cf67d0e3db","bugs":{"url":"https://github.com/Travelport-Ukraine/errors-helpers/issues"},"homepage":"https://github.com/Travelport-Ukraine/errors-helpers#readme","_id":"node-errors-helpers@0.1.0","_shasum":"2f1c59b7462be08f1a83a12b096a7ee07b9613b8","_from":".","_npmVersion":"3.10.3","_nodeVersion":"6.7.0","_npmUser":{"name":"shmuga","email":"mail.ormark@gmail.com"},"dist":{"shasum":"2f1c59b7462be08f1a83a12b096a7ee07b9613b8","tarball":"https://registry.npmjs.org/node-errors-helpers/-/node-errors-helpers-0.1.0.tgz","integrity":"sha512-DfkrRVx4FyIq+1jus9tMnyoq5kfTxYYQeUohIgjciPwbu111hSKtPozEagTL92WMfV28C/wqNKxnsJNJMWxPvQ==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQCFtR8qDL2EEp0N15D8Halhdnm4BVR/WgbIz+wMd/GsUgIgbEoO70GeTpnh6Z05aMz5tELmsJFQDVU5FXyDIeXOO8Q="}]},"maintainers":[{"name":"shmuga","email":"mail.ormark@gmail.com"}],"_npmOperationalInternal":{"host":"packages-12-west.internal.npmjs.com","tmp":"tmp/node-errors-helpers-0.1.0.tgz_1476868068333_0.6269603094551712"},"directories":{}},"0.1.1":{"name":"node-errors-helpers","version":"0.1.1","description":"Some helpers for better error handling in Node.js","main":"index.js","files":["src","index.js"],"scripts":{"lint":"eslint src test","cover":"istanbul cover _mocha --recursive","test":"mocha --recursive","test:examples":"node examples/","prepublish":"npm run lint && npm run test"},"repository":{"type":"git","url":"git+https://github.com/Travelport-Ukraine/errors-helpers.git"},"keywords":["error","helpers"],"author":{"name":"Mark Orel","email":"mail.ormark@gmail.com"},"contributors":[{"name":"Dmitry Chertousov","email":"d.chertousov@gmail.com"}],"license":"MIT","devDependencies":{"chai":"^3.5.0","eslint":"^3.6.0","eslint-config-airbnb":"^12.0.0","eslint-plugin-import":"^1.16.0","eslint-plugin-jsx-a11y":"^2.2.2","eslint-plugin-react":"^6.3.0","mocha":"^3.0.2","istanbul":"^0.4.5"},"gitHead":"a3a671955f92733d0b5faebcc9bae5fd55281b2f","bugs":{"url":"https://github.com/Travelport-Ukraine/errors-helpers/issues"},"homepage":"https://github.com/Travelport-Ukraine/errors-helpers#readme","_id":"node-errors-helpers@0.1.1","_shasum":"cce6d36f55e0db2a35a7b6035954ec53da6ea51a","_from":".","_npmVersion":"3.10.3","_nodeVersion":"6.7.0","_npmUser":{"name":"shmuga","email":"mail.ormark@gmail.com"},"dist":{"shasum":"cce6d36f55e0db2a35a7b6035954ec53da6ea51a","tarball":"https://registry.npmjs.org/node-errors-helpers/-/node-errors-helpers-0.1.1.tgz","integrity":"sha512-39jpORxBQhyMdkTMZdB6a4joJe48BPo88EZVW/TtoQ2UdN3DbOhaHkBMlnWYrgVXGAoeJnyhSfU5e9hma7PNEw==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQCv5CQSpUQ4BtwPnEV5tn9a39o7qJPnS0hPu1Uql2M51QIgMrZ3EtEx0pLfQXNIYi+FHd3H6Siz6Jy2vC+VN/z1Hv8="}]},"maintainers":[{"name":"shmuga","email":"mail.ormark@gmail.com"}],"_npmOperationalInternal":{"host":"packages-12-west.internal.npmjs.com","tmp":"tmp/node-errors-helpers-0.1.1.tgz_1476952997980_0.9419509368017316"},"directories":{}},"0.1.2":{"name":"node-errors-helpers","version":"0.1.2","description":"Some helpers for better error handling in Node.js","main":"build/index.js","files":["build"],"scripts":{"lint":"eslint src test","build":"babel --copy-files src/ -d build/","cover":"istanbul cover _mocha --recursive","test":"mocha --recursive","test:examples":"node examples/","prepublish":"npm run lint && npm run test && npm run build"},"repository":{"type":"git","url":"git+https://github.com/Travelport-Ukraine/errors-helpers.git"},"keywords":["error","helpers"],"author":{"name":"Mark Orel","email":"mail.ormark@gmail.com"},"contributors":[{"name":"Dmitry Chertousov","email":"d.chertousov@gmail.com"}],"license":"MIT","devDependencies":{"chai":"^3.5.0","babel-cli":"^6.14.0","babel-plugin-add-module-exports":"^0.2.1","babel-preset-es2015-node4":"^2.1.0","eslint":"^3.6.0","eslint-config-airbnb":"^12.0.0","eslint-plugin-import":"^1.16.0","eslint-plugin-jsx-a11y":"^2.2.2","eslint-plugin-react":"^6.3.0","mocha":"^3.0.2","istanbul":"^0.4.5"},"gitHead":"a7a66246bcd646f6c387c93ac76f9f6adc375c5b","bugs":{"url":"https://github.com/Travelport-Ukraine/errors-helpers/issues"},"homepage":"https://github.com/Travelport-Ukraine/errors-helpers#readme","_id":"node-errors-helpers@0.1.2","_shasum":"d9af22024865992c57842171008f81b52041cf20","_from":".","_npmVersion":"3.10.3","_nodeVersion":"6.7.0","_npmUser":{"name":"shmuga","email":"mail.ormark@gmail.com"},"dist":{"shasum":"d9af22024865992c57842171008f81b52041cf20","tarball":"https://registry.npmjs.org/node-errors-helpers/-/node-errors-helpers-0.1.2.tgz","integrity":"sha512-TyOE47gPVmV53mNtDPrOIe1wX3qnI2d/1KbVMhmGIP2v48Hshjy/7SXdVDhAk7VCF8064l3sd6IrYrjOx4Xe/A==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIE7GV6CPSBaMfkDPLURrjjJWW70LtMPyNJNonBLmbQ12AiBqEyqT4zvpv6hXFLcreCkOf/jpGOzuHiuBS6g3KVi00Q=="}]},"maintainers":[{"name":"shmuga","email":"mail.ormark@gmail.com"}],"_npmOperationalInternal":{"host":"packages-18-east.internal.npmjs.com","tmp":"tmp/node-errors-helpers-0.1.2.tgz_1477575746234_0.3234379522036761"},"directories":{}},"0.1.3":{"name":"node-errors-helpers","version":"0.1.3","description":"Some helpers for better error handling in Node.js","main":"build/index.js","files":["build"],"scripts":{"lint":"eslint src test","build":"babel --copy-files src/ -d build/","cover":"istanbul cover _mocha --recursive","test":"mocha --recursive","test:examples":"node examples/","prepublish":"npm run lint && npm run test && npm run build"},"repository":{"type":"git","url":"git+https://github.com/Travelport-Ukraine/errors-helpers.git"},"keywords":["error","helpers"],"author":{"name":"Mark Orel","email":"mail.ormark@gmail.com"},"contributors":[{"name":"Dmitry Chertousov","email":"d.chertousov@gmail.com"}],"license":"MIT","devDependencies":{"chai":"^3.5.0","babel-cli":"^6.14.0","babel-plugin-add-module-exports":"^0.2.1","babel-preset-es2015-node4":"^2.1.0","eslint":"^3.6.0","eslint-config-airbnb":"^12.0.0","eslint-plugin-import":"^1.16.0","eslint-plugin-jsx-a11y":"^2.2.2","eslint-plugin-react":"^6.3.0","mocha":"^3.0.2","istanbul":"^0.4.5"},"gitHead":"96d4902f2a8f769ca5d90fc12c04648962b8d25b","bugs":{"url":"https://github.com/Travelport-Ukraine/errors-helpers/issues"},"homepage":"https://github.com/Travelport-Ukraine/errors-helpers#readme","_id":"node-errors-helpers@0.1.3","_shasum":"eebeb37540b8c30a274ddcadbc2424e0ddbed3c7","_from":".","_npmVersion":"4.2.0","_nodeVersion":"7.9.0","_npmUser":{"name":"dchertousov","email":"d.chertousov@travelport.ua"},"dist":{"shasum":"eebeb37540b8c30a274ddcadbc2424e0ddbed3c7","tarball":"https://registry.npmjs.org/node-errors-helpers/-/node-errors-helpers-0.1.3.tgz","integrity":"sha512-YEplIL9FAdPcwhzJsw5V3B8xR7u2sh4j7IYy1Qo4/GsxqQEP/VRw7sanyig/G7vRaaEnq8Ziuw/8EyBhRPlQoA==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIFNs4VgTILoA99LnZ6Ep0G49VBbKZBgKgf0xy9RyST5eAiEAiAlquRe/jyXPrtFAuujDl81SCKOzWNBOcx8UmcMFZYs="}]},"maintainers":[{"name":"articice","email":"articicejuice@gmail.com"},{"name":"dchertousov","email":"d.chertousov@travelport.ua"},{"name":"shmuga","email":"mail.ormark@gmail.com"}],"_npmOperationalInternal":{"host":"packages-12-west.internal.npmjs.com","tmp":"tmp/node-errors-helpers-0.1.3.tgz_1494952196475_0.15417215274646878"},"directories":{}},"0.2.0":{"name":"node-errors-helpers","version":"0.2.0","description":"Some helpers for better error handling in Node.js","main":"src/index.js","scripts":{"lint":"eslint src test","cover":"istanbul cover _mocha --recursive","test":"mocha --recursive","test:examples":"node examples/","prepublish":"npm run lint && npm run test"},"repository":{"type":"git","url":"git+https://github.com/Travelport-Ukraine/errors-helpers.git"},"keywords":["error","helpers"],"author":{"name":"Mark Orel","email":"mail.ormark@gmail.com"},"contributors":[{"name":"Dmitry Chertousov","email":"d.chertousov@gmail.com"}],"license":"MIT","devDependencies":{"chai":"^3.5.0","eslint":"^3.6.0","eslint-config-airbnb":"^12.0.0","eslint-plugin-import":"^1.16.0","eslint-plugin-jsx-a11y":"^2.2.2","eslint-plugin-react":"^6.3.0","istanbul":"^0.4.5","mocha":"^6.2.0"},"gitHead":"f5754a4afb49ef4d47e5acfe9f1637d9baeba334","bugs":{"url":"https://github.com/Travelport-Ukraine/errors-helpers/issues"},"homepage":"https://github.com/Travelport-Ukraine/errors-helpers#readme","_id":"node-errors-helpers@0.2.0","_nodeVersion":"12.2.0","_npmVersion":"6.9.0","dist":{"integrity":"sha512-eQaf7uYC6w0Gxia69MiNe8XRaLpk3CXrFw56XhRoQRfCmZnyH0+G5PKyklU+utxukmqk9Z001McTeK14AdiMqw==","shasum":"598c228412422b7bcd797fb4e4eb29343861781e","tarball":"https://registry.npmjs.org/node-errors-helpers/-/node-errors-helpers-0.2.0.tgz","fileCount":10,"unpackedSize":10124,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJdi1MoCRA9TVsSAnZWagAAjh8P/2CpRaIE58DhT61OOvYP\nzX94pRX5LKA8T6qahPuZJzgI+0191LFhwgeUKeGzOn2AKYSfaa+R6eOK3xyL\ngRVOkqPnXPDxFqrBpNlbmwNAh0h9BebZFIVL2CJ7UBMVWhuwunH2gXyYxyYk\nQwy8mQFk+UqRDx1bIWG3jyR/nKeWLrguipCXJ3nKf3rlDEFCqA85gTW9CXWu\nERZCY58ldflih1UwvG+9PbFhvwZI48WVWVVPgXzkUjfefZ0D3Jmkac1kCtaS\nPkAO9+5E949ffjRDZceVTUQuPi5rhETNmoVV9NjngjYkdgcGpcJyBBLSVMsa\nx6bEgM1XHE3ymt+Ae9dZnhOzeRkXwriz5PT+1pxafq2r0/OZuXiuQHT2gqiy\n68dam1HWqI8J2pgpDiLMHB8TPMsTmCRRiV2ds9JwIUIYFLeMqHgpXqP0Tmq7\nyj3hVzG7ycYNMib9gRcxKzSXe72myCXoI1luNF4WV9O0HtfYG6QZEePyiv6i\n1v+raR7aOAmC6ye4TazEfuYgIy0NklqOfjG5avT1zk7AkgXbpoAcTYRbOiWw\nzDHaE7LOywkcbpvDeXVACchqYGsXGmzPWkcKXFPq7AejsPy+n3tGuLygL/x7\nrYxHtpjKucjTGLeHQqCRHa0FKdfetirIB5nvfrUBIOVUNrQU9MWnMY8n9QrN\ngiGY\r\n=r6s8\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQCQo3gyCjkV4KsrA+z+7I8qDINwIGeSGDMeLNlODZjIYwIhAKMv9gfRwbgKwHfT5qyJ2p0K+99ZIePhChiHlTPgh+J6"}]},"maintainers":[{"email":"d.chertousov@travelport.ua","name":"dchertousov"},{"email":"mail.ormark@gmail.com","name":"shmuga"},{"email":"smotrov@travelport.ua","name":"travelport-ua"}],"_npmUser":{"name":"dchertousov","email":"d.chertousov@travelport.ua"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/node-errors-helpers_0.2.0_1569411880226_0.6475406824822942"},"_hasShrinkwrap":false},"0.2.1":{"name":"node-errors-helpers","version":"0.2.1","description":"Some helpers for better error handling in Node.js","main":"src/index.js","scripts":{"lint":"eslint src test","cover":"istanbul cover _mocha --recursive","test":"mocha --recursive","test:examples":"node examples/","prepublish":"npm run lint && npm run test"},"repository":{"type":"git","url":"git+https://github.com/Travelport-Ukraine/errors-helpers.git"},"keywords":["error","helpers"],"author":{"name":"Mark Orel","email":"mail.ormark@gmail.com"},"contributors":[{"name":"Dmitry Chertousov","email":"d.chertousov@gmail.com"}],"license":"MIT","devDependencies":{"chai":"^3.5.0","eslint":"^3.6.0","eslint-config-airbnb":"^12.0.0","eslint-plugin-import":"^1.16.0","eslint-plugin-jsx-a11y":"^2.2.2","eslint-plugin-react":"^6.3.0","istanbul":"^0.4.5","mocha":"^6.2.0"},"gitHead":"17c97a21a54e3912d936b4fc202548defe4e40e6","bugs":{"url":"https://github.com/Travelport-Ukraine/errors-helpers/issues"},"homepage":"https://github.com/Travelport-Ukraine/errors-helpers#readme","_id":"node-errors-helpers@0.2.1","_nodeVersion":"12.18.3","_npmVersion":"6.14.6","dist":{"integrity":"sha512-oJ8HnSomBWTv6BL+zJ7yEIiOSkz+HA4GsjIis19MjMdo6gD8xnOEUxRC44SmUcyXS3ydC/ESj+4B4fk1o1S/XQ==","shasum":"71a1304bb43ebcc82fc1b41fb2fb7d2af9feb79b","tarball":"https://registry.npmjs.org/node-errors-helpers/-/node-errors-helpers-0.2.1.tgz","fileCount":10,"unpackedSize":10206,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJfYH97CRA9TVsSAnZWagAA804P/j1gLc3VQqO84zxPGd6i\n2saEe+zhYN8yjXNyn1dzW0fTi9GeRnLDt26Y9GrF0d23i9wbVgezqFbXVkkK\nCl8dbX51NEypLJnvUP2ZGUb1dCSCudMcFhF8Zev0uo5tZq9J300KFeXkak+T\ncKzQ3Ea2+qQoHZnkQWd+maj/aLtRy2WAwbVsnc8yYyYwQ3hm+iU4dYZpYaEc\nz/MbQI3fQju1VxQXsyCgrZmXHSw4Wk4Q71teB12MTHUpGrcraoEj+jU1A3Dv\niM8MwT4/lZ3mmsrGFt8f98FyrSQx9eUuMsFTZ109kV1qUKFO7c7uwDNjr0ms\nIgaX8lhkDnvwhTJ2hzpGDi5V/gScBUmGmGkR0ekZ+wuemaN/kxwAnkEmTxUl\n+WOxQp6Nvu5xmfDs87fPpjKedQE6OXGSq1gH/5LJaFzeQVtpsmMk6KgsXSjE\n8D5m+zWU0e2VQcwJD4G6nIeo16cHRCIQL1EJUzUNB+rsLYnHw40E5ymIgDlj\nEZqSGgjBeukBovE78FMNHzHnehssnFgfrAvfGiM91O2nVdlN7dPFczw/d/YK\nnmmQ0Qi+kPb0XujWjk7CUJsDwQ8SqTTY8sZcC5DTS3995uufjJn4vQ5JOybr\ncA1ToCVWPbEHh44Z8WWrcgcZC8hnJZPzCZ9huLlIfRGIYN0DgT15nNqrJYx4\neY0q\r\n=ESd2\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQDcEZoho6CwUMWWm5YumCf+OOUUC2igbv67sPB2dxVLMgIgQoO1WMAT/39Pj02mcrjCwkyJUxiqLTkGhSizr0WSsA4="}]},"maintainers":[{"name":"travelport-ua","email":"smotrov@travelport.ua"},{"name":"shmuga","email":"mail.ormark@gmail.com"},{"name":"dchertousov","email":"d.chertousov@travelport.ua"}],"_npmUser":{"name":"dchertousov","email":"d.chertousov@travelport.ua"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/node-errors-helpers_0.2.1_1600159611272_0.662135370756445"},"_hasShrinkwrap":false},"0.3.0":{"name":"node-errors-helpers","version":"0.3.0","description":"Some helpers for better error handling in Node.js","main":"src/index.js","scripts":{"lint":"eslint src/**.js test/**.test.js","cover":"nyc npm run test","test":"mocha --recursive","test:examples":"node examples/","prepublish":"npm run lint && npm run test"},"repository":{"type":"git","url":"git+https://github.com/Travelport-Ukraine/errors-helpers.git"},"keywords":["error","helpers"],"author":{"name":"Mark Orel","email":"mail.ormark@gmail.com"},"contributors":[{"name":"Dmitry Chertousov","email":"d.chertousov@gmail.com"}],"license":"MIT","devDependencies":{"chai":"^3.5.0","eslint":"^7.13.0","eslint-config-airbnb-base":"^13.1.0","eslint-plugin-import":"^2.14.0","nyc":"^15.1.0","mocha":"^8.2.1"},"gitHead":"fc139955bc9c1c54630b66402d4d376d4ca898db","bugs":{"url":"https://github.com/Travelport-Ukraine/errors-helpers/issues"},"homepage":"https://github.com/Travelport-Ukraine/errors-helpers#readme","_id":"node-errors-helpers@0.3.0","_nodeVersion":"14.15.0","_npmVersion":"6.14.8","dist":{"integrity":"sha512-u+acrMShDf2GZSyZE1aDb0PzFrwoC/VZ2lyxWleLRCXsaTy1MMwMZX4I03dHwbo6dBH9PdaBUUyAWjuZrnQguA==","shasum":"331494c016c9c7cb629cb7b4e81158f228e12702","tarball":"https://registry.npmjs.org/node-errors-helpers/-/node-errors-helpers-0.3.0.tgz","fileCount":10,"unpackedSize":10295,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJft3bkCRA9TVsSAnZWagAAHvkP/0IiZm7VPklkeQaEBorN\nZgbUUnUPTyCDRi8mX2OcD0LEUm/yApKiKlIrh9PFMks9sAmMtVuzdfIx70g5\nC6gRYPSL8ZtdZutbyrgpcD3w+xXS47y8szvYQrUPA8YHuw3QDFpEw9zSegVS\nmbnGgkgFra8ieZZwHFHf5dYtYoF72h2ZtvN1NRDeXZhwvLUVuAuN4Gw4L+xZ\n83RbUCRBgNsuRFC6HtAERLMuK1CfAdHhJRhJbmS4Wpr8Y5K7HskPJs5RLXjt\nrCDoCsEVaVR1uUNqI3oN84NuXcnQ5xSjTb14Lmc/msJynBu0FTFYeGu7d+cb\nmA89Z3v9mjZFpfQeLs7y5BiK/4KPE0GoLIbLxKQ8NCPzwK8qcECFBC6DMiTE\ntFxtyJx0yCz331+REK0HrwGcpTcTUTU45SCc9/AXRSP05ikuPjsp7WwFuxO8\nAmjs99jr6YNdmf624BGz70vA6euUiKYePLofrWbWGtqp6xX6ZLw67tUYW4jY\nZtGhMHIgguTthbBYYHwbkH1peS3NXmjxzKV22P0CBUUvRbmcZSVJbs6zxcDL\nO67Yk5ESJzYO/1fpno8b77hbNKtP5IQRjbUvekDmuqfZMNT6t93vAFD/u7yJ\nEzZlJZCD3C46HJyTKIOICvfWAyG1XAE28yG1L9csViVbGLSUHNgP3+bUJcmA\nVS2G\r\n=VUO/\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQDKoCqhuuZR28ikFLz1nqMw6V0UA02+VYrcjpq2Htha+AIgRp06d3TdDZJosVuIapq+e6Ze5Lw4EPlRgkNE7RB0YAk="}]},"_npmUser":{"name":"dchertousov","email":"d.chertousov@travelport.ua"},"directories":{},"maintainers":[{"name":"travelport-ua","email":"smotrov@travelport.ua"},{"name":"shmuga","email":"mail.ormark@gmail.com"},{"name":"dchertousov","email":"d.chertousov@travelport.ua"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/node-errors-helpers_0.3.0_1605859044107_0.17150884818006307"},"_hasShrinkwrap":false},"1.0.0":{"name":"node-errors-helpers","version":"1.0.0","description":"Some helpers for better error handling in Node.js","main":"src/index.js","scripts":{"lint":"eslint src/**.js test/**.test.js","cover":"nyc npm run test","test":"mocha --recursive","test:examples":"node examples/","prepublish":"npm run lint && npm run test"},"repository":{"type":"git","url":"git+https://github.com/Travelport-Ukraine/errors-helpers.git"},"keywords":["error","helpers"],"author":{"name":"Mark Orel","email":"mail.ormark@gmail.com"},"contributors":[{"name":"Dmitry Chertousov","email":"d.chertousov@gmail.com"},{"name":"Mark Omarov"}],"license":"MIT","devDependencies":{"chai":"^3.5.0","eslint":"^7.13.0","eslint-config-airbnb-base":"^13.1.0","eslint-plugin-import":"^2.14.0","nyc":"^15.1.0","mocha":"^8.2.1"},"gitHead":"55a06309c547279d64c62dd60c142f738ed00171","bugs":{"url":"https://github.com/Travelport-Ukraine/errors-helpers/issues"},"homepage":"https://github.com/Travelport-Ukraine/errors-helpers#readme","_id":"node-errors-helpers@1.0.0","_nodeVersion":"14.16.1","_npmVersion":"6.14.12","dist":{"integrity":"sha512-9MKb38K7s7ExDs5xX7tFohK2wdbwjsc/s5gPO9pKbYL06H17P6esNz4JO2hWDxR64pq125nyJHbtwODOWICL1w==","shasum":"b011fddff89dee807633fd5678e75389cf7cc00e","tarball":"https://registry.npmjs.org/node-errors-helpers/-/node-errors-helpers-1.0.0.tgz","fileCount":10,"unpackedSize":10557,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJgvv+iCRA9TVsSAnZWagAAHsgP+wZgJbcPvO5qz8IAgpRH\nBnoN+WQhITwMr02SInrBTk61ArzlWOgM06E6SyXwHn1gWa63D3fT1NjxvlEb\nT7Do+Pfuy2Cp8e20t6Fh+D/xgahte1g/mSWU0YKgiIFCRSOxrJJ/h75MsF9n\n/S5LIRMt9f0H3OjqonCOe7o4SC+QKQgflsA8V2exMeumoDJe0eXcf1nrq5nU\nM3Vz0tD78Kn9WWgy96RYyRbzi8t2csieiB4u12w5YYMq6P5HaGE95A/SN0Ql\njzY03fEJvu3IlhFj9eFPmRUHFt1oGIfVStcw8TI9JrMArozxnnEetZz/BODH\n1WX7SlFC/wbo07dMh8b2nhiEJzuOonLpBU5CSbnKzT6tkh41MSVFqO777/0U\n4Am1LLl1b3D6RI2YoNPqRF8iAiidcBnwjMAkym3s0WRigGRgjx21KaLDWRUk\n90R2Ze2j7Kjzruf8/p0iCcWSVNaNfeVBcQmneEZ1QTRzX6iUufc/mJcSF68M\n6mDfBcbiAkZCn5zuRfx+a1Ef6OwATR1Aqvr4ceywU2zwLXYEFEm1fOnfm9+n\nH1AXsCyxtyctGt235G4YqEBAzPG8qLCweQC0flaUPFH/6+a8N1JSxnlse28W\nOndkdizjx6utJ4aZ0f9W9M5ZuCQv8huNaS+3t1JW2E7cGk6uj9S6tJYa0Rnv\n1i7d\r\n=7R/g\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIAZ4ZokOvsSqmGtPH1aE/O9/Y/UE6EOgjSEj58GjN5RxAiEAuntDnxaOBE4DrKjHty/aR5ZU+J/XVxOZ+kn/jmMOD5k="}]},"_npmUser":{"name":"dchertousov","email":"d.chertousov@travelport.ua"},"directories":{},"maintainers":[{"name":"shmuga","email":"mail.ormark@gmail.com"},{"name":"dchertousov","email":"d.chertousov@travelport.ua"},{"name":"travelport-ua","email":"smotrov@travelport.ua"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/node-errors-helpers_1.0.0_1623130018411_0.811613698306213"},"_hasShrinkwrap":false}},"readme":"# ⚠ Errors Helpers [![Build Status](https://travis-ci.org/Travelport-Ukraine/errors-helpers.svg?branch=master)](https://travis-ci.org/Travelport-Ukraine/errors-helpers)\n\nThis library helps with error handling in Node.\n\nIt provides following API:\n- Generators API\n    - Custom error creation (with inheritance and chaining)\n    - Creates lists of errors from simple key-value objects\n- Helpers API\n    - Getting iterable object from error instance\n    - Getting full name for inherited error instance\n    - Getting array of stacks for an error chain\n    - Detecting if there is an error of particular error class in the chain\n\n## Installation\n\nRun `npm install --save node-errors-helpers`\n\n## Example\n\nSimple usage of this lib.\n\n```javascript\nconst { createErrorClass, createErrorsList } = require('errors-helpers');\n\nconst SWError = createErrorClass(\n  'RuntimeError',\n  'Runtime error',\n  Error // parent error class, optional\n);\n\nconst StarWarsErrors = createErrorsList({\n  'NO_LUKE': 'No Luke Skywalker!',\n  'NO_DARTH': 'No Darth Vader!',\n  'YOUR_FATHER': 'I am you father, Luke!',\n}, SWError);\n\nthrow new SWError();\nthrow new StarWarsErrors.YOUR_FATHER({ location: 'Bespin' });\nthrow new StarWarsErrors.NO_LUKE({ far: 'away' }, causedByError /* some generated or catched error */);\n```\n\n[More examples.](/examples/generateFromList.js)\n\n## API\n* [createErrorClass(name, message, baseType)](#createclass) ⇒ [`CustomError`](#customerror)\n* [createErrorsList(list, extend)](#createlist) ⇒ `Object`\n* helpers\n  * .[getFullName(error)](#fullname) ⇒ `String`\n  * .[getObject(error)](#getobject) ⇒ `Object`\n  * .[getFullStack(error)](#fullstack) ⇒ `Array\\<String>`\n  * .[hasErrorClass(error, ErrorClass)](#haserrorclass) ⇒ `Boolean`\n\n<a name=\"createclass\"></a>\n### createErrorClass(name, message, baseType))\n\nCreates error class with the `name` provided, that will throw error with `message`. When `baseType` class provided, new error class will be extending base one, if not `Error` class is extended. Each error generated with this helper will have specific structure and [constructor](#customerror).\n\n**Returns**: `CustomError`\n\n| Param | Type | Description | Optional |\n| --- | --- | --- | --- |\n| name | `String` | Name the for class to generate. | no |\n| message | `String` | The message calss instance will be thrown with. | no |\n| baseType | `String` | Class to extend. If not provided `Error` class is extended. | yes |\n\n<a name=\"customerror\"></a>\n#### CustomError\n\nAny custom error has such constructor:\n```javascript\n  const err = new CustomError(data = null, causedBy = null);\n  // err.data\n  // err.name\n  // err.causedBy\n```\n\nCreated error class will throw error instance with [`message`](#createclass) provided in class constructor.\nField `data` has `any` type. So you can pass there everything.\n\nYou can pass an error as second param and it will be saved as cause of current error. See [examples](/examples/generateFromList.js) for more information.\n\n<a name=\"createlist\"></a>\n### createErrorsList(list, extend)\nGenerates object of errors from object of definitions.\nIf no `extend` class provided error classes are extended from `Error`.\n\nObject sample:\n```javascript\n{\n  'SOME_ERROR_CODE': 'Message that will be shown.',\n  'ANOTHER_ERROR': 'Another message %)'\n}\n```\n**Returns**: `Object (key - code, value - Error)`\n\n| Param | Type | Description | Optional |\n| --- | --- | --- | --- |\n| list | `Object` |  Object that define errors. | no |\n| extend | `AnyErrorType` |  Class that all generated errors will extend. | yes |\n\n<a name=\"fullname\"></a>\n### helpers.getFullName(error)\n\nReturns full name of error. Concats all parent classes names with `.`.\n\n**Returns**: `String`\n\n| Param | Type | Description | Optional |\n| --- | --- | --- | --- |\n| error | `CustomError` | CustomError | no |\n\n\n<a name=\"getobject\"></a>\n### helpers.getObject(error)\n\nRetruns iterable error data object.\n\nFor better errors representation in JSON format.\n\n**Returns**: `Object { name, stack, message, data, causedBy }`\n\n| Param | Type | Description | Optional |\n| --- | --- | --- | --- |\n| error | `CustomError` | CustomError | no |\n\n\n<a name=\"fullstack\"></a>\n### helpers.getFullStack(error)\n\nRecursively gets stacks from `causedBy` errors and return `Array` of them.\n\n**Returns**: `Array\\<String>`\n\n| Param | Type | Description | Optional |\n| --- | --- | --- | --- |\n| error | `CustomError` | CustomError | no |\n\n<a name=\"haserrorclass\"></a>\n### helpers.hasErrorClass(error, ErrorClass)\n\nLooks for `ErrorClass` in `error`. Recursivly looks in `causedBy` fields.\nReturns `true` if an instance of `ErrorClass` is found, `false` otherwise.\n\n\n**Returns**: `Boolean`\n\n| Param | Type | Description | Optional |\n| --- | --- | --- | --- |\n| error | `CustomError` | Where to look for class. | no |\n| ErrorClass | `AnotherCustomError` | What class to look for. | no |\n\n","maintainers":[{"name":"shmuga","email":"mail.ormark@gmail.com"},{"name":"dchertousov","email":"d.chertousov@travelport.ua"},{"name":"travelport-ua","email":"smotrov@travelport.ua"}],"time":{"modified":"2022-06-21T14:17:52.984Z","created":"2016-06-13T02:05:58.604Z","0.0.1":"2016-06-13T02:05:58.604Z","0.0.2":"2016-06-13T02:12:10.911Z","0.0.3":"2016-06-13T02:14:36.580Z","0.0.4":"2016-06-14T22:50:12.486Z","0.1.0":"2016-10-19T09:07:49.951Z","0.1.1":"2016-10-20T08:43:19.730Z","0.1.2":"2016-10-27T13:42:28.833Z","0.1.3":"2017-05-16T16:29:58.344Z","0.2.0":"2019-09-25T11:44:40.345Z","0.2.1":"2020-09-15T08:46:51.378Z","0.3.0":"2020-11-20T07:57:24.310Z","1.0.0":"2021-06-08T05:26:58.595Z"},"homepage":"https://github.com/Travelport-Ukraine/errors-helpers#readme","keywords":["error","helpers"],"repository":{"type":"git","url":"git+https://github.com/Travelport-Ukraine/errors-helpers.git"},"author":{"name":"Mark Orel","email":"mail.ormark@gmail.com"},"bugs":{"url":"https://github.com/Travelport-Ukraine/errors-helpers/issues"},"license":"MIT","readmeFilename":"README.md","contributors":[{"name":"Dmitry Chertousov","email":"d.chertousov@gmail.com"},{"name":"Mark Omarov"}],"users":{"dchertousov":true}}