{"_id":"layerr","_rev":"13-eaf4cc3d61ca6d567d24e4228bb79929","name":"layerr","dist-tags":{"latest":"3.0.0","next":"1.0.0-r1"},"versions":{"0.1.0":{"name":"layerr","version":"0.1.0","description":"Error wrapping utility for NodeJS and the browser","main":"dist/index.js","scripts":{"build":"npm run clean && tsc","clean":"rimraf ./dist","prepublishOnly":"npm run build","test":"run-s build test:specs","test:specs":"nyc mocha -r test/index.js test/**/*.spec.js"},"repository":{"type":"git","url":"git+https://github.com/perry-mitchell/layerr.git"},"keywords":["error","verror","err","nerror","exception","wrapper","extend"],"author":{"name":"Perry Mitchell","email":"perry@perrymitchell.net"},"license":"MIT","bugs":{"url":"https://github.com/perry-mitchell/layerr/issues"},"homepage":"https://github.com/perry-mitchell/layerr#readme","devDependencies":{"@types/node":"^14.6.1","chai":"^4.2.0","mocha":"^8.1.2","npm-run-all":"^4.1.5","nyc":"^15.1.0","rimraf":"^3.0.2","sinon":"^9.0.3","typescript":"^4.0.2"},"gitHead":"f550aa4bce363764890dcb4ef78d7eb94a61106d","_id":"layerr@0.1.0","_nodeVersion":"12.18.1","_npmVersion":"6.14.5","dist":{"integrity":"sha512-Lj+L6lIEWh9yIgMWFgnYdGDA2XSd/dKx3xXlRuLwRULVZPQc1KxHccv6wcg95IKccK7NIy/QWyxALB68TQR11A==","shasum":"f0158dd9f86bd925a538dc6e3c49ec4bf9b3ec96","tarball":"https://registry.npmjs.org/layerr/-/layerr-0.1.0.tgz","fileCount":14,"unpackedSize":8223,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJfSA5oCRA9TVsSAnZWagAAerwP/iYmznPOwqWerpUbnNI7\nXtQzahOUY0s0sN4BnW8yiNQpP5UlRxQOuatnuor0F2HpPpORhpxZT6zI3zB8\nS6r7KboSHUV831O94ZbHnVx/J6UPgC7+AfRJU22K4WcLpUA+JDcqZ3AgqzyS\na14qaRqEH325q/Ncj0TGW9CdR90r7HKVWRqIK+Y4F/E3IVsnD4f4sXh1tNbD\nxXTs7aShaML2Eni1QcqGm614/D5qPEeJPmXxhrC2wRLOsEQaPis3c44B3ZBY\nJlROcbOEaJQt+F0VG3s32dX93vuqdaBhIJT9MAUxiKCYOHsAxW9IzWOis6m5\n68rWLm+A5JRifzVbdr1o5QyQRwRcLDgnKpAeOnt4xoaB+cft6HkvvXSUvNH7\n632CNjHsW0VJ7ytjYgJgIbLu1qt1GkZqb59JmOoIs9+txpvKauKez7ZOAnJh\nN5H788fKNtmytLbRZWnejWDOsLpqKlcD1IXUDCTo/7Q0BdB9B9QPSHka8ypY\nE9YiQM9T7oOyC7cyKIVTD/eqCT+rwUMkgxJqggiNr1oZikBYxZ/1vaTDVIXr\noNDDVIycoUR8zqYQpYRgyuTRLonvX2arrNxtvjw4vuYDA3n7yH93i1EWY8LE\nGUNxyPKaQHiZJbnQ/1vnVpp1+dC/O1mlTDkW+sFWHUGkujxH9tFXUjcclpcx\nJZRc\r\n=Gb57\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIEOeWnU5LOk9lpuDl5qtuYCut1eJxqkZ2lbx2b/9CIUtAiEA4DbYC6vdiU3AmgEqCQui11UtTuKG+IHWut52bm5PqG0="}]},"maintainers":[{"name":"perrymitchell","email":"perry@perrymitchell.net"}],"_npmUser":{"name":"perrymitchell","email":"perry@perrymitchell.net"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/layerr_0.1.0_1598557799785_0.2771026452484904"},"_hasShrinkwrap":false},"0.1.1":{"name":"layerr","version":"0.1.1","description":"Error wrapping utility for NodeJS and the browser","main":"dist/index.js","scripts":{"build":"npm run clean && tsc","clean":"rimraf ./dist","prepublishOnly":"npm run build","test":"run-s build test:specs","test:specs":"nyc mocha -r test/index.js test/**/*.spec.js"},"repository":{"type":"git","url":"git+https://github.com/perry-mitchell/layerr.git"},"keywords":["error","verror","err","nerror","exception","wrapper","extend"],"author":{"name":"Perry Mitchell","email":"perry@perrymitchell.net"},"license":"MIT","bugs":{"url":"https://github.com/perry-mitchell/layerr/issues"},"homepage":"https://github.com/perry-mitchell/layerr#readme","devDependencies":{"@types/node":"^14.6.1","chai":"^4.2.0","mocha":"^8.1.2","npm-run-all":"^4.1.5","nyc":"^15.1.0","rimraf":"^3.0.2","sinon":"^9.0.3","typescript":"^4.0.2"},"gitHead":"da036dad1b391d801caa061abcede25bee0c6e9b","_id":"layerr@0.1.1","_nodeVersion":"12.18.1","_npmVersion":"6.14.5","dist":{"integrity":"sha512-IVTD0G7ZHdeU4AA96O7j3t5ROcXHiO8/pCZdYmE1VIgQ2hYUJuIkpXCWjJDtw/VhIXqAs6Js6xLXtYEGd4T+mg==","shasum":"df6436d939bb1ad5cff892a18458be3370402115","tarball":"https://registry.npmjs.org/layerr/-/layerr-0.1.1.tgz","fileCount":14,"unpackedSize":9051,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJfSgfJCRA9TVsSAnZWagAAuKQQAJ4mV2P0Go7KkVAnzPu0\ngLjW8XlCyaXlEi+njQ4xnxU3LvHOgcYGC/Om4Qn554Vse6uvdhGIRf9F2Tdm\nhcZ3m+Ce2F9mWtfLeh7KZyKyRLe0nkNtUAMIyvDok3PO0tjCHObhvJXAqQRa\nbNaRT3H/rBaUCZwm724gHHazBt3u83jzBua2ruoid+92xtxiMxKMGA+ebU6Y\nKSZ74jhWzy+6qAA+DMdmyLikggcQ4I78GIiPFZV/e9eTTfdSuz4ymn7eLr85\nBMokJuMowfjb2qIqcZPVGoVJgZaoYn06qQjfuIny0NdzmI91BaOWW+ISQ0ar\n15ApmvKorwVyRf3GIZCZDr2DDnGhj/0rtkXXrtcMs30o9N2mySomVgtR9CpV\nrXXHN5II7RcWJLW4vtMOAMkZHqSX2wulqLwxCY4J+QKqlJ0vPDqeetW73ei7\nmU5ZfVwjjAFvt0KPMWKNHu9KYD0pYDhshKB5UhSt7asWtAc5Y6SKxzFyNb7S\nWYkRbu/ppvqT+ShaMRBRfEqrb64CQFXbt661OXopmi3g/0JxrqZ5lntk5qXr\nNs/LCNWsYSs8D8RsTqSbspMKV1/vkgH7E3KJNsEu9tH8lx1T3mklN7swKA6Y\nsweVNgh+3Y0dq/8tPfC83KV4Te6I3ga/FhLzDsRb2IQk1KYT8CGtors5QO2b\nv1u2\r\n=fLkG\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQDAaR2yhS2HPQlpYbVw+SUroMKPSjOWznrvPT5bkItPTQIgNBejrvLN6nZP7iZQVar3s967O/g7lkLlBp7VkxHLFc8="}]},"maintainers":[{"name":"perrymitchell","email":"perry@perrymitchell.net"}],"_npmUser":{"name":"perrymitchell","email":"perry@perrymitchell.net"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/layerr_0.1.1_1598687177110_0.6064661201241586"},"_hasShrinkwrap":false,"deprecated":"This build is not stable. Please upgrade to at least 0.1.2"},"0.1.2":{"name":"layerr","version":"0.1.2","description":"Error wrapping utility for NodeJS and the browser","main":"dist/index.js","scripts":{"build":"npm run clean && tsc","clean":"rimraf ./dist","dev":"npm run clean && tsc --watch","prepublishOnly":"npm run build","test":"run-s build test:specs","test:specs":"nyc mocha -r test/index.js test/**/*.spec.js"},"repository":{"type":"git","url":"git+https://github.com/perry-mitchell/layerr.git"},"keywords":["error","verror","err","nerror","exception","wrapper","extend"],"author":{"name":"Perry Mitchell","email":"perry@perrymitchell.net"},"license":"MIT","bugs":{"url":"https://github.com/perry-mitchell/layerr/issues"},"homepage":"https://github.com/perry-mitchell/layerr#readme","devDependencies":{"@types/node":"^14.6.1","chai":"^4.2.0","mocha":"^8.1.2","npm-run-all":"^4.1.5","nyc":"^15.1.0","rimraf":"^3.0.2","sinon":"^9.0.3","typescript":"^4.0.2"},"gitHead":"ba7315a20fe8987714642e90ac32e841e423830a","_id":"layerr@0.1.2","_nodeVersion":"12.18.1","_npmVersion":"6.14.5","dist":{"integrity":"sha512-ob5kTd9H3S4GOG2nVXyQhOu9O8nBgP555XxWPkJI0tR0JeRilfyTp8WtPdIJHLXBmHMSdEq5+KMxiYABeScsIQ==","shasum":"16c8e7fb042d3595ab15492bdad088f31d7afd15","tarball":"https://registry.npmjs.org/layerr/-/layerr-0.1.2.tgz","fileCount":14,"unpackedSize":9295,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJfSgtKCRA9TVsSAnZWagAALRMP/0G8it10KNeVxbXcrXYX\n22fsgKcMKK4RIHaJTPYpgwf7IqI+SRuwW9ODpomhmeqNsj9jxS7BTANBgi1B\n3vRJricud+Ak/diU8++Cny4jVq994ZubanumRicbUstMe7pbja7gNEtPRO29\nGGcg+1R9+21uQXdfMq+r80tO0ibpuaapey0cjFQvkiaiNdJgy9LgzBXLuGN/\nTtX89rsKtQY8hskd8jPadT9430TBtugrwUZlPHz+eKFc3gkdEd5aAaCLUkg3\nFAPUOjgCWQOLWh5+xHuRNudlbo6wwFU+1PplXtrsjb66vojksYoLotxT8heX\nqMq/warsmnUQfwXDnRBLaS93kq4fdgWy5YRqtVMT79gSD3HtAKQk8dx/HRvt\n9jhConfhCsq9qPSkvFIFM/hLg1/Uu2+Byy6VtY3oTFYHH0aCKSCbpsiJoR4B\nQCiAtqnOYPyLMWc6KvFzbmJg+PRQgRhUO2P+uAT3vD4MUOxJ5vixYVIVFJ59\nn2u6NeZsjV8sCZH/KSepAKq3Ans2X3kLe2xxuSaM/+W9AqOy5WPTe9i0fxOY\n72PIeq7qhhfJklMfrxueBwkQMs72xQhoyZdf5QM4wQ1Db+jBIWW1C1zKX9oQ\nitUbBqAGJX+WbmRPGdWCnTrIFOwzm5fMqfBRBwW7yqDnoAc/ojSJDBEbDHgY\nUmV4\r\n=erRF\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQCQ5ZIM1wb//HIU4g7p9l5hZJYe7hPSeUTQ/hyGVkrTUQIhAKbOp805a6T2bSW1kHm3P7lutyVMs22klaCqUuFy/JXQ"}]},"maintainers":[{"name":"perrymitchell","email":"perry@perrymitchell.net"}],"_npmUser":{"name":"perrymitchell","email":"perry@perrymitchell.net"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/layerr_0.1.2_1598688074551_0.44536557228867024"},"_hasShrinkwrap":false},"0.2.0-r1":{"name":"layerr","version":"0.2.0-r1","description":"Error wrapping utility for NodeJS and the browser","main":"dist/index.js","scripts":{"build":"npm run clean && tsc","clean":"rimraf ./dist","dev":"npm run clean && tsc --watch","prepublishOnly":"npm run build","test":"run-s build test:specs","test:specs":"nyc mocha -r test/index.js test/**/*.spec.js"},"repository":{"type":"git","url":"git+https://github.com/perry-mitchell/layerr.git"},"keywords":["error","verror","err","nerror","exception","wrapper","extend"],"author":{"name":"Perry Mitchell","email":"perry@perrymitchell.net"},"license":"MIT","bugs":{"url":"https://github.com/perry-mitchell/layerr/issues"},"homepage":"https://github.com/perry-mitchell/layerr#readme","devDependencies":{"@types/node":"^18.11.10","chai":"^4.3.7","mocha":"^10.1.0","npm-run-all":"^4.1.5","nyc":"^15.1.0","rimraf":"^3.0.2","sinon":"^15.0.0","typescript":"^4.9.3"},"types":"./dist/index.d.ts","readme":"# Layerr\n> Errors, with.. layers..\n\nA NodeJS and Web `Error` wrapping utility, based heavily on [VError](https://github.com/joyent/node-verror), but without all the extras and dependencies on Node core utilities. Written in Typescript, compiled to JavaScript and suitable for bundling in the browser.\n\nUses no dependencies, minifies well and is a great way to wrap errors as they propagate through complex applications (such as Express services, for instance).\n\n## Installation\n\nInstall by running: `npm install layerr`.\n\n## Usage\n\nUse it as a regular error:\n\n```javascript\nconst { Layerr } = require(\"layerr\");\n\nthrow new Layerr(\"Test error\");\n```\n\nOr use it to wrap errors:\n\n```javascript\ndoSomething().catch(err => {\n    throw new Layerr(err, \"Failed doing something\");\n});\n```\n\nLayerr's can have info attached:\n\n```javascript\nconst { Layerr } = require(\"layerr\");\n\nfunction somethingElse() {\n    throw new Layerr({\n        info: {\n            code: 123\n        }\n    }, \"Problem\");\n}\n\nsomethingElse().catch((err: Layerr) => {\n    const { code } = Layerr.info(err);\n    // code === 123\n});\n```\n","readmeFilename":"README.md","gitHead":"31bf3be06b91e002733b5adeb238b57ede988cfa","_id":"layerr@0.2.0-r1","_nodeVersion":"16.13.1","_npmVersion":"8.12.1","dist":{"integrity":"sha512-BGYrHu2ZkyDxMprM64m+6q7L1abM7dR7tgsfTrjumdPmOhwaGJR9UpXwmCydx1nnssfuBfMiPbVrKlKPBMnFnA==","shasum":"23f3e4895f39a467f343efef628a0c5233713b4d","tarball":"https://registry.npmjs.org/layerr/-/layerr-0.2.0-r1.tgz","fileCount":14,"unpackedSize":9957,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIG3n+HRsnV6l+GDGw5sGShHlrC29mdyI6CYKvFq+jfNKAiEAuCLAxbEsvJm5C2A0x8gpWrD4XTeAvjOsCLLglkU8is8="}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJjlt4AACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmrExw/9EzN2crz5x6aX7GHaJ2FovRAqNgfAxG+iP6fC8HpxIu/ziFfR\r\nHOhG9E5Kt5QYXj/fKI/MTFlepRUh5ccKMLbeKKUxTiiE21AN9i8Akl3m+EYa\r\n8crWWUCu04eVhPPxtfmNZ7xnfOkvcgBUDb00dy/s9baSbQbKO64B0SzAKWJB\r\nBuzDpJDekFjHSRcsth/UVvlEN3PbS0zSajoFHcJk59grPzMe834zfvkmJlMP\r\nTuXr5pkPBbDongkn0Gqtd1U9UkAGZiZzYdyxBxR+w0lhpMVoAV4opWCa+ocL\r\nV2P+wEzfAial0R9wT24/Pfh+xdu2cp9ZTAWdw7M8Uyg3P1MVYqp+AjQpuTvM\r\n2vmQzmqn08m2aEPy5IozF0MTlmnyIrt69rSDydr3u1ssnUKo7l2DluJ6fr3b\r\nrfc/PoV/hrXQ6YtMnc/OqgYIkT1Gu7/rEa00AQvxn0XvxkvUrFa9mr6MFq9S\r\nVn65ZerYpkD6CsQqOlEj8m5W18xBTR5xtFiqr61E1XgUD79al83+w1qovdMi\r\nyfQlbp9kQQzTJ1tDJnL6/en8Omy0F/nkKdJLbXptZ9yNaFfyLotdQ62d+cSL\r\nwGDEMyDyJVjMqK4QjadiQAsC7J2UYjwRUH2tBdNCIWL1ybHuqatGhq6+GwGg\r\nU4cIyOESEeNrflNZAIaNtx76BIM+WMqlyVc=\r\n=P15V\r\n-----END PGP SIGNATURE-----\r\n"},"_npmUser":{"name":"perrymitchell","email":"perry@perrymitchell.net"},"directories":{},"maintainers":[{"name":"perrymitchell","email":"perry@perrymitchell.net"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/layerr_0.2.0-r1_1670831616398_0.1031797568889512"},"_hasShrinkwrap":false},"1.0.0-r1":{"name":"layerr","version":"1.0.0-r1","description":"Error wrapping utility for NodeJS and the browser","main":"dist/index.js","scripts":{"build":"run-s clean build:source build:types","build:source":"webpack --config webpack.config.js --mode=production","build:types":"tsc --emitDeclarationOnly","clean":"rimraf ./dist","dev":"npm run clean && tsc --watch","prepublishOnly":"npm run build","test":"run-s build test:specs","test:specs":"nyc mocha -r test/index.js test/**/*.spec.js"},"repository":{"type":"git","url":"git+https://github.com/perry-mitchell/layerr.git"},"keywords":["error","verror","err","nerror","exception","wrapper","extend"],"author":{"name":"Perry Mitchell","email":"perry@perrymitchell.net"},"license":"MIT","bugs":{"url":"https://github.com/perry-mitchell/layerr/issues"},"homepage":"https://github.com/perry-mitchell/layerr#readme","devDependencies":{"@babel/core":"^7.20.5","@babel/preset-env":"^7.20.2","@babel/preset-typescript":"^7.18.6","@types/node":"^18.11.10","babel-loader":"^9.1.0","chai":"^4.3.7","mocha":"^10.1.0","npm-run-all":"^4.1.5","nyc":"^15.1.0","resolve-typescript-plugin":"^2.0.0","rimraf":"^3.0.2","sinon":"^15.0.0","typescript":"^4.9.3","webpack":"^5.75.0","webpack-cli":"^5.0.1"},"types":"./dist/index.d.ts","readme":"# Layerr\n> Errors, with.. layers..\n\nA NodeJS and Web `Error` wrapping utility, based heavily on [VError](https://github.com/joyent/node-verror), but without all the extras and dependencies on Node core utilities. Written in Typescript, compiled to JavaScript and suitable for bundling in the browser.\n\nUses no dependencies, minifies well and is a great way to wrap errors as they propagate through complex applications (such as Express services, for instance).\n\n## Installation\n\nInstall by running: `npm install layerr`.\n\n## Usage\n\nUse it as a regular error:\n\n```javascript\nconst { Layerr } = require(\"layerr\");\n\nthrow new Layerr(\"Test error\");\n```\n\nOr use it to wrap errors:\n\n```javascript\ndoSomething().catch(err => {\n    throw new Layerr(err, \"Failed doing something\");\n});\n```\n\nLayerr's can have info attached:\n\n```javascript\nconst { Layerr } = require(\"layerr\");\n\nfunction somethingElse() {\n    throw new Layerr({\n        info: {\n            code: 123\n        }\n    }, \"Problem\");\n}\n\nsomethingElse().catch((err: Layerr) => {\n    const { code } = Layerr.info(err);\n    // code === 123\n});\n```\n","readmeFilename":"README.md","gitHead":"9516dc669eeefc754122a400a4e1c8d0446ee88b","_id":"layerr@1.0.0-r1","_nodeVersion":"16.13.1","_npmVersion":"8.12.1","dist":{"integrity":"sha512-V5LRZpIzJ5jHZEjhgzl/yI9YsbQB60zXjbzb3p9IiJf0jAcqYKrroED4GV71PehtqG2yf7Kavhvx25hrSxpK0w==","shasum":"bc0213b5d30affb9757f0c97e366b8cbc73e5eef","tarball":"https://registry.npmjs.org/layerr/-/layerr-1.0.0-r1.tgz","fileCount":10,"unpackedSize":10030,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIGRfPxLnXTYqayqfed6uDTtQGCT5S3AehLM5tD5ErlSlAiEAs4fudaeKG8eF/1VpP1goA8U69r3EQSqCdfAPv2TLKOs="}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJjlvW9ACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmoZzQ/5ADDflcSh4odlGtDQPCBM/Qf2C1dgAIs3zGJctwY4x3wCN89N\r\nWJeuP4dDumEYfvQt9LLUIq/0yTM5ZMWqi0FtSYX3sCXOzwxhG9cgNXPnt2P7\r\nFaMF6t9g4dA8IcfSBkNnrvHm2PlUle1VmsyBV63GEM2vHhC9XgjDehkXe+JO\r\nu6kWatyLJiVI7QcHAmD5OUvDxnrcj1qCoB5oo6s7SrUgZelhJJqQ3IzTS1zr\r\nM9wjBK5TMxh5iscC+b8gK+lhvwpIu8Dy7SR1b6w+n1ImaawlNYfckU0NnpOJ\r\neLN+Zlc15CBj9nkHbF8hxJ6uuHw6kMAvB6Xo9Srre3/zK6HowtQRlROtQVCh\r\njRON1w2bvNZLILwWm8VxerKvgeSe1qEWlpEtOeVhs0EcWhCQ7Mj2se3NuHr0\r\niltYWliFx5xz0uIgF4P/LaFRpb+SYb3c0ycFIUTNbE5z0KlK+zX8dWKTUXdF\r\nxSGofhE8TjdsGAZ3t4hk0Vg3UW+l6zum4lvHg7WRPZF3v48wdyuoTRdU8j+F\r\nqsqZl0/yrkFSUo+XvZ0JcvOZ3YNLV1vN3tcbux6UfQvSNAhXjI+I/MYukIfU\r\nP3UpJBIwAXB3ndwPIZtEQBetuJOARXBpKn4nB3FSpjFTngsRxGhRtAqlrJg6\r\nuKS1tBdtcReeF4A+Va91cydWP/APXOqPDSY=\r\n=XgQY\r\n-----END PGP SIGNATURE-----\r\n"},"_npmUser":{"name":"perrymitchell","email":"perry@perrymitchell.net"},"directories":{},"maintainers":[{"name":"perrymitchell","email":"perry@perrymitchell.net"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/layerr_1.0.0-r1_1670837693556_0.8673924118334637"},"_hasShrinkwrap":false},"1.0.0":{"name":"layerr","version":"1.0.0","description":"Error wrapping utility for NodeJS and the browser","main":"dist/index.js","scripts":{"build":"run-s clean build:source build:types","build:source":"webpack --config webpack.config.js --mode=production","build:types":"tsc --emitDeclarationOnly","clean":"rimraf ./dist","dev":"npm run clean && tsc --watch","prepublishOnly":"npm run build","test":"run-s build test:specs","test:specs":"nyc mocha -r test/index.js test/**/*.spec.js"},"repository":{"type":"git","url":"git+https://github.com/perry-mitchell/layerr.git"},"keywords":["error","verror","err","nerror","exception","wrapper","extend"],"author":{"name":"Perry Mitchell","email":"perry@perrymitchell.net"},"license":"MIT","bugs":{"url":"https://github.com/perry-mitchell/layerr/issues"},"homepage":"https://github.com/perry-mitchell/layerr#readme","devDependencies":{"@babel/core":"^7.20.5","@babel/preset-env":"^7.20.2","@babel/preset-typescript":"^7.18.6","@types/node":"^18.11.10","babel-loader":"^9.1.0","chai":"^4.3.7","mocha":"^10.1.0","npm-run-all":"^4.1.5","nyc":"^15.1.0","resolve-typescript-plugin":"^2.0.0","rimraf":"^3.0.2","sinon":"^15.0.0","typescript":"^4.9.3","webpack":"^5.75.0","webpack-cli":"^5.0.1"},"types":"./dist/index.d.ts","gitHead":"0f8aebf9698385a222b4555586fa5d61c0b7cad1","_id":"layerr@1.0.0","_nodeVersion":"16.13.1","_npmVersion":"8.12.1","dist":{"integrity":"sha512-PlgghXyHzISC50rHl4alYWKp91wFSCdIHa/qK+OZ4SgZAsRlHX1AWJIalvS0v5Xl6/mvPe1ZSIBkhiWQ5CNR2w==","shasum":"7279eba2d81ed3ee83649140ddd0a680b90cc39f","tarball":"https://registry.npmjs.org/layerr/-/layerr-1.0.0.tgz","fileCount":10,"unpackedSize":10027,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQC94CF8Pv2j/XxMnpH55g6rIP1v4XYbsWNV92WYKmxncAIhAM+nhhjVNB5YamCFYKSfV0miY5yZ59f7MiElvKlJ/TjI"}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJjlwqiACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2Vmp7Cg//XHOeQH9G/brYEa40kVSXJ3mjBkYCahFJUlQzLQGcHSvV7a2B\r\nsevZEi0BhyCohz+u2W5EGnoDjKGKxGez8dhBs8M7GkEm0q3JaSrE4nB1iOT8\r\n5NyP4Wicsc5OH3xnJJi/T4PC9G625sPkPkPYBZLiHsYGdzk9jIWg+yOAfZWc\r\n95lLwmcDqjpcwNPCVQG6byo/cXPfYmAurhxP8JuAcLko62uq553b8Ok/2NwH\r\nB3DOn97K90AYSkHyqrZ/OxX7crXI1zeFtAYXeeNw3uYBPFxK3y8RSXJffQyO\r\ncrF6lbdCNJBmRy/QBCgqOaRSmFS2WryDY22kywt4zAyI7qR2AzKcIu5MC0/S\r\nl/MOBQNzXL2a6xoUr0q/tfEuXXqzv4wqA3lagIRcb24fwUKGHTBEP7z4ZSRC\r\nmHbeX8uIjM5l1nu/TvV0h+mZ2XVzu5h73jZT+6jAI1vQf0YfxUNWD/Mjy4KC\r\ndfg83hpBmlUffDwxhklEFBxSFE1xhwj7VT1XUOc2oJWHT3yLYuvtjk7m1rYs\r\nndIjLUiNpuje91MCg97UojZPMg/XcCBAe0XR19NAkCuJgS3P30JtQmjpHL70\r\npuUzifvr77MWqjJ4Wox78ZFBWHSQMIJCABTXFb9IpEkmm544/f1Mc/YbaGfF\r\n/1+3ccw2e+OJ5pDwYWu55WYl6w3tiXU8O7w=\r\n=prN8\r\n-----END PGP SIGNATURE-----\r\n"},"_npmUser":{"name":"perrymitchell","email":"perry@perrymitchell.net"},"directories":{},"maintainers":[{"name":"perrymitchell","email":"perry@perrymitchell.net"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/layerr_1.0.0_1670843042220_0.48834042455505267"},"_hasShrinkwrap":false},"2.0.0":{"name":"layerr","version":"2.0.0","description":"Error wrapping utility for NodeJS and the browser","exports":"./dist/index.js","types":"./dist/index.d.ts","type":"module","scripts":{"build":"run-s clean && tsc","clean":"rimraf ./dist","dev":"npm run clean && tsc --watch","prepublishOnly":"npm run build","test":"run-s build test:specs","test:specs":"nyc mocha 'test/**/*.spec.js'"},"repository":{"type":"git","url":"git+https://github.com/perry-mitchell/layerr.git"},"keywords":["error","verror","err","nerror","exception","wrapper","extend"],"author":{"name":"Perry Mitchell","email":"perry@perrymitchell.net"},"license":"MIT","bugs":{"url":"https://github.com/perry-mitchell/layerr/issues"},"homepage":"https://github.com/perry-mitchell/layerr#readme","devDependencies":{"@babel/core":"^7.20.5","@babel/preset-env":"^7.20.2","@babel/preset-typescript":"^7.18.6","@types/node":"^18.11.10","babel-loader":"^9.1.0","chai":"^4.3.7","mocha":"^10.1.0","npm-run-all":"^4.1.5","nyc":"^15.1.0","resolve-typescript-plugin":"^2.0.0","rimraf":"^3.0.2","typescript":"^4.9.3","webpack":"^5.75.0","webpack-cli":"^5.0.1"},"gitHead":"f1116cbd4487447bef70fb7183b53266df21a32e","_id":"layerr@2.0.0","_nodeVersion":"16.13.1","_npmVersion":"8.12.1","dist":{"integrity":"sha512-d17+qA3CAekh29Z67nLQaqCXJSvoo9zKBvZAziYdDwTOeA1XdOoTuLtNOLg+TW5Tse+D9bw8VHsTQo5vU7G/kA==","shasum":"2e0e8d9af6851208a8f69251b0b6cb87c005dc68","tarball":"https://registry.npmjs.org/layerr/-/layerr-2.0.0.tgz","fileCount":14,"unpackedSize":8345,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIBxWVTzeAVwsBJ2yE5YWck3/mvBDIGnxmINVtVy9ycbdAiArye03LFS+Ne565ATWNJqXq6HF2YlapPthG8B5+6X/oA=="}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJj6pVeACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmqMwQ//Y8pci15Z9KAaTgTpm8Pz7SfAns+e83MuIJmf/4kdrBQv/Q2N\r\n7zDK5aG5ZifZFMKY/eh2b6rsFUY0hL0D2NC0xNAQ0u8R+/Japqlnekj+ZKh4\r\nIQ13/wfmAUylyK/XpsbpqABZdRhl2k8AFig/HX7vclAUc1WSdaHIfekO7BCe\r\nT+q3fzqjJPpWL8gRPvl7VJKG2qoHoGChcH4GjYWm+qU9lIHriDrlftHLlUoz\r\nraLTbErYx1BQmROzC1GAdE9a/c9tfrlNHuOcf84jv3bM121fJUPJhBdikeeV\r\nhCD2t/zUfcKRZb7GrXTm9g0iyXK498qsKPOJFf4h9MWVAN3CNMoH/CSEJtVy\r\nPeIi2zlkc/HWSCy7BNpibr16mY9hrC2JwX0yc/t6Un7Vn+hUmllx4EBDpOdL\r\naiFAK19obaMJFCdKZ/vbkkw0kSo8XamwGJ+gfzZx5FIpQyoUZMKm/oRc9sbr\r\nAN8YnDspR7cOQGyYVpNyfdoAH4CGRKRkoYTIBFZWZ8A/jWVjRK0mp2dJbO9M\r\nWFpDWPbOLCrkoRRYbbbFsTg/HYO1haW19ZGZKQMqZJmWeZwoD3phiONoA+4Z\r\nrhz+v+ifEasi/l1e4Z07y3tZeRG79avztkRV8W/zLFPO898Qqyy38AOehnF3\r\n2sdT9piZKC0MuR8PvXwRf1eDUMpbByKA4vE=\r\n=K5tS\r\n-----END PGP SIGNATURE-----\r\n"},"_npmUser":{"name":"perrymitchell","email":"perry@perrymitchell.net"},"directories":{},"maintainers":[{"name":"perrymitchell","email":"perry@perrymitchell.net"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/layerr_2.0.0_1676318046686_0.04584167661965344"},"_hasShrinkwrap":false},"2.0.1":{"name":"layerr","version":"2.0.1","description":"Error wrapping utility for NodeJS and the browser","exports":"./dist/index.js","react-native":"./dist/index.js","types":"./dist/index.d.ts","type":"module","scripts":{"build":"run-s clean && tsc","clean":"rimraf ./dist","dev":"npm run clean && tsc --watch","prepublishOnly":"npm run build","test":"run-s build test:specs","test:specs":"nyc mocha 'test/**/*.spec.js'"},"repository":{"type":"git","url":"git+https://github.com/perry-mitchell/layerr.git"},"keywords":["error","verror","err","nerror","exception","wrapper","extend"],"author":{"name":"Perry Mitchell","email":"perry@perrymitchell.net"},"license":"MIT","bugs":{"url":"https://github.com/perry-mitchell/layerr/issues"},"homepage":"https://github.com/perry-mitchell/layerr#readme","devDependencies":{"@babel/core":"^7.20.5","@babel/preset-env":"^7.20.2","@babel/preset-typescript":"^7.18.6","@types/node":"^18.11.10","babel-loader":"^9.1.0","chai":"^4.3.7","mocha":"^10.1.0","npm-run-all":"^4.1.5","nyc":"^15.1.0","resolve-typescript-plugin":"^2.0.0","rimraf":"^3.0.2","typescript":"^4.9.3","webpack":"^5.75.0","webpack-cli":"^5.0.1"},"gitHead":"705993f0ff5f33c8d1211aba8e24bb705384ba6a","_id":"layerr@2.0.1","_nodeVersion":"16.19.0","_npmVersion":"8.19.3","dist":{"integrity":"sha512-z0730CwG/JO24evdORnyDkwG1Q7b7mF2Tp1qRQ0YvrMMARbt1DFG694SOv439Gm7hYKolyZyaB49YIrYIfZBdg==","shasum":"0c98e6f599de4f76b75c7a6522c54b8c6c591ff0","tarball":"https://registry.npmjs.org/layerr/-/layerr-2.0.1.tgz","fileCount":14,"unpackedSize":8447,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQCx99przDBVBbsHqEV1z/hbAfp6/ZtzC0lfQDAqyI5jAAIhALswHq5gkmktdLq4wq6OrRgGgapKBxIQ8PM0Qoh6vQbi"}]},"_npmUser":{"name":"perrymitchell","email":"perry@perrymitchell.net"},"directories":{},"maintainers":[{"name":"perrymitchell","email":"perry@perrymitchell.net"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/layerr_2.0.1_1689593059830_0.45559305429213115"},"_hasShrinkwrap":false},"2.1.0":{"name":"layerr","version":"2.1.0","description":"Error wrapping utility for NodeJS and the browser","exports":"./dist/index.js","react-native":"./dist/index.js","types":"./dist/index.d.ts","type":"module","scripts":{"build":"run-s clean && tsc","clean":"rimraf ./dist","dev":"npm run clean && tsc --watch","prepublishOnly":"npm run build","test":"run-s build test:specs","test:specs":"nyc mocha 'test/**/*.spec.js'"},"repository":{"type":"git","url":"git+https://github.com/perry-mitchell/layerr.git"},"keywords":["error","verror","err","nerror","exception","wrapper","extend"],"author":{"name":"Perry Mitchell","email":"perry@perrymitchell.net"},"license":"MIT","bugs":{"url":"https://github.com/perry-mitchell/layerr/issues"},"homepage":"https://github.com/perry-mitchell/layerr#readme","devDependencies":{"@babel/core":"^7.20.5","@babel/preset-env":"^7.20.2","@babel/preset-typescript":"^7.18.6","@types/node":"^18.11.10","babel-loader":"^9.1.0","chai":"^4.3.7","mocha":"^10.1.0","npm-run-all":"^4.1.5","nyc":"^15.1.0","resolve-typescript-plugin":"^2.0.0","rimraf":"^3.0.2","typescript":"^4.9.3","webpack":"^5.75.0","webpack-cli":"^5.0.1"},"_id":"layerr@2.1.0","gitHead":"a7ae38ebc7330979d52a9585025ed8d6d0c74866","_nodeVersion":"20.12.2","_npmVersion":"10.5.0","dist":{"integrity":"sha512-xDD9suWxfBYeXgqffRVH/Wqh+mqZrQcqPRn0I0ijl7iJQ7vu8gMGPt1Qop59pEW/jaIDNUN7+PX1Qk40+vuflg==","shasum":"7b2aa335837b856fd25b3dd4fb44dc17d0785491","tarball":"https://registry.npmjs.org/layerr/-/layerr-2.1.0.tgz","fileCount":14,"unpackedSize":8529,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQDdTyRNhgc+AsEpnUAS1L1vLAqDWBb5DUynHqyKYVql8QIhAL4HbCfNXPVQBnYLegKIcH6IGCXbXGrwMoXFflv5ciAp"}]},"_npmUser":{"name":"perrymitchell","email":"perry@perrymitchell.net"},"directories":{},"maintainers":[{"name":"perrymitchell","email":"perry@perrymitchell.net"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/layerr_2.1.0_1713438746153_0.21801721205570446"},"_hasShrinkwrap":false},"3.0.0":{"name":"layerr","version":"3.0.0","description":"Error wrapping utility for NodeJS and the browser","exports":"./dist/index.js","react-native":"./dist/index.js","types":"./dist/index.d.ts","type":"module","scripts":{"build":"run-s clean && tsc","clean":"rimraf ./dist","dev":"npm run clean && tsc --watch","prepublishOnly":"npm run build","test":"run-s build test:specs","test:specs":"nyc mocha 'test/**/*.spec.js'"},"repository":{"type":"git","url":"git+https://github.com/perry-mitchell/layerr.git"},"keywords":["error","verror","err","nerror","exception","wrapper","extend"],"author":{"name":"Perry Mitchell","email":"perry@perrymitchell.net"},"license":"MIT","bugs":{"url":"https://github.com/perry-mitchell/layerr/issues"},"homepage":"https://github.com/perry-mitchell/layerr#readme","devDependencies":{"@babel/core":"^7.24.4","@babel/preset-env":"^7.24.4","@babel/preset-typescript":"^7.24.1","@types/node":"^20.12.7","babel-loader":"^9.1.3","chai":"^5.1.0","mocha":"^10.4.0","npm-run-all":"^4.1.5","nyc":"^15.1.0","resolve-typescript-plugin":"^2.0.1","rimraf":"^5.0.5","typescript":"^5.4.5","webpack":"^5.91.0","webpack-cli":"^5.1.4"},"_id":"layerr@3.0.0","gitHead":"7164e3959fb7a746e5ab5f01c47d01008913c3ce","_nodeVersion":"20.12.2","_npmVersion":"10.5.0","dist":{"integrity":"sha512-tv754Ki2dXpPVApOrjTyRo4/QegVb9eVFq4mjqp4+NM5NaX7syQvN5BBNfV/ZpAHCEHV24XdUVrBAoka4jt3pA==","shasum":"bc4e0e5986ffd3ab8c3c88b458f53be8dceea29e","tarball":"https://registry.npmjs.org/layerr/-/layerr-3.0.0.tgz","fileCount":16,"unpackedSize":9704,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQCpniDlKMQQvMGjD0Lrs3DLyvg5bsu4SenyIwIryFvdWgIgFow560cdIXDQ+KmOJ1grpVrNENyVhqQNmOiYF8dH+ig="}]},"_npmUser":{"name":"perrymitchell","email":"perry@perrymitchell.net"},"directories":{},"maintainers":[{"name":"perrymitchell","email":"perry@perrymitchell.net"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/layerr_3.0.0_1713775731065_0.5391044004146199"},"_hasShrinkwrap":false}},"time":{"created":"2020-08-27T18:33:01.382Z","0.0.0":"2020-08-27T18:33:01.510Z","modified":"2024-04-22T08:48:51.403Z","0.1.0":"2020-08-27T19:49:59.919Z","0.1.1":"2020-08-29T07:46:17.238Z","0.1.2":"2020-08-29T08:01:14.677Z","0.2.0-r1":"2022-12-12T07:53:36.577Z","1.0.0-r1":"2022-12-12T09:34:53.754Z","1.0.0":"2022-12-12T11:04:02.381Z","2.0.0":"2023-02-13T19:54:06.943Z","2.0.1":"2023-07-17T11:24:20.064Z","2.1.0":"2024-04-18T11:12:26.325Z","3.0.0":"2024-04-22T08:48:51.233Z"},"maintainers":[{"name":"perrymitchell","email":"perry@perrymitchell.net"}],"description":"Error wrapping utility for NodeJS and the browser","homepage":"https://github.com/perry-mitchell/layerr#readme","keywords":["error","verror","err","nerror","exception","wrapper","extend"],"repository":{"type":"git","url":"git+https://github.com/perry-mitchell/layerr.git"},"author":{"name":"Perry Mitchell","email":"perry@perrymitchell.net"},"bugs":{"url":"https://github.com/perry-mitchell/layerr/issues"},"license":"MIT","readme":"# Layerr\n\n> Errors, with.. layers..\n\nA NodeJS and Web `Error` wrapping utility, based heavily on [VError](https://github.com/joyent/node-verror), but without all the extras and dependencies on Node core utilities. Written in Typescript, compiled to JavaScript and suitable for bundling in the browser.\n\nUses no dependencies, minifies well and is a great way to wrap errors as they propagate through complex applications (such as Express services, for instance).\n\n_Layerr is an ESM library, and as such you need a compatible environment in which to install and use it._\n\n## Installation\n\nInstall by running: `npm install layerr`.\n\n## Usage\n\nUse it as a regular error:\n\n```typescript\nconst { Layerr } = require(\"layerr\");\n\nthrow new Layerr(\"Test error\");\n```\n\nOr use it to wrap errors:\n\n```typescript\ndoSomething().catch((err) => {\n    throw new Layerr(err, \"Failed doing something\");\n});\n```\n\nLayerr's can have info attached:\n\n```typescript\nconst { Layerr } = require(\"layerr\");\n\nfunction somethingElse() {\n    throw new Layerr(\n        {\n            info: {\n                code: 123,\n            },\n        },\n        \"Problem\"\n    );\n}\n\nsomethingElse().catch((err: Layerr) => {\n    const { code } = Layerr.info(err);\n    // code === 123\n});\n```\n\n### Global Name\n\nBy default Layerr names all created errors as `Layerr`. You can change this name by calling `setGlobalName`, and revert it by passing `null` to this function:\n\n```typescript\nimport { Layerr, setGlobalName } from \"layerr\";\n\nsetGlobalName(\"CustomError\");\n\nconst err = new Layerr(\"My error\");\n\nerr.name; // \"CustomError\"\n\nthrow err;\n// Uncaught Layerr [CustomError]: My error\n```\n\n## Support\n\nLayerr (v3) supports NodeJS 16 onwards. It should also support all major+current browsers, once compiled/bundled.\n","readmeFilename":"README.md"}