{"_id":"extendo-error","_rev":"4-03af69ed15b8446156ad52634b6acd7f","name":"extendo-error","description":"Safely and simply extend native Error with prototype chaining support","dist-tags":{"latest":"1.0.1"},"versions":{"1.0.0":{"name":"extendo-error","version":"1.0.0","description":"Safely and simply extend native Error with prototype chaining support","main":"src/extendo-error.js","scripts":{"build":"tsc","pretest":"npm run build","test":"alsatian \"**/*.spec.js\"","prepublish":"npm test"},"repository":{"type":"git","url":"git+https://github.com/jamesrichford/extendo-error.git"},"keywords":["extendo","error","extendable","typescript","prototype","chaining","extend error","instanceof"],"author":{"name":"James Richford"},"license":"MIT","bugs":{"url":"https://github.com/jamesrichford/extendo-error/issues"},"homepage":"https://github.com/jamesrichford/extendo-error#readme","devDependencies":{"alsatian":"^1.0.0-beta.4","typescript":"^2.1.4"},"gitHead":"781c8a3851cd6ddf9505780be6934c13666d7053","_id":"extendo-error@1.0.0","_shasum":"5636e70714fe9e9de0c14fbc1a58a70e323c54b3","_from":".","_npmVersion":"3.10.8","_nodeVersion":"6.8.0","_npmUser":{"name":"jamesrichford","email":"jamesrichford@googlemail.com"},"dist":{"shasum":"5636e70714fe9e9de0c14fbc1a58a70e323c54b3","tarball":"https://registry.npmjs.org/extendo-error/-/extendo-error-1.0.0.tgz","integrity":"sha512-Jwl8uARTPdM619crFg8iOtKW9IpXvQAIvvlO/uKx8XDZeo33FJHc9bYKccyYXlSmTU2OOsmlOEToopK2RjcSuQ==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIAl0Q+/QFwb/Hv/naZC0GLB9hRHB9o+IlezEJE5CNrSgAiEAuUN4S1smTZRqardNsnXgrOTffGffGi/dg2K07oE4mPc="}]},"maintainers":[{"name":"jamesrichford","email":"jamesrichford@googlemail.com"}],"_npmOperationalInternal":{"host":"packages-18-east.internal.npmjs.com","tmp":"tmp/extendo-error-1.0.0.tgz_1481305017694_0.21919412538409233"}},"1.0.1":{"name":"extendo-error","version":"1.0.1","description":"Safely and simply extend native Error with prototype chaining support","main":"src/extendo-error.js","typings":"src/extendo-error.d.ts","scripts":{"build":"tsc","pretest":"npm run build","test":"alsatian \"**/*.spec.js\"","prepublish":"npm test"},"repository":{"type":"git","url":"git+https://github.com/jamesrichford/extendo-error.git"},"keywords":["extendo","error","extendable","typescript","prototype","chaining","extend error","instanceof"],"author":{"name":"James Richford"},"license":"MIT","bugs":{"url":"https://github.com/jamesrichford/extendo-error/issues"},"homepage":"https://github.com/jamesrichford/extendo-error#readme","devDependencies":{"alsatian":"^1.0.0-beta.4","typescript":"^2.1.4"},"gitHead":"6246839667333bbda59baf3bcbdd0f91c3cd2085","_id":"extendo-error@1.0.1","_shasum":"30325e0cf6c2fa5f91023d2100ed021826e6317d","_from":".","_npmVersion":"3.10.8","_nodeVersion":"6.8.0","_npmUser":{"name":"jamesrichford","email":"jamesrichford@googlemail.com"},"dist":{"shasum":"30325e0cf6c2fa5f91023d2100ed021826e6317d","tarball":"https://registry.npmjs.org/extendo-error/-/extendo-error-1.0.1.tgz","integrity":"sha512-zgH6hdAwAhvXNKGtPeKTqqUvvamsUt8v6V8Qx8YAWP5JdObSqnPW7DcBgAVFHOcMpzuPJkEEFW3EIVTN2esNXg==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQC2ilkUGygQofizZuH+7TR9HZuy9KBIf8W2AfVMbER3HwIhAJDLfMoc3vW6JaoY06r3UzljU2vQeQho5+EFlEg3W9Lw"}]},"maintainers":[{"name":"jamesrichford","email":"jamesrichford@googlemail.com"}],"_npmOperationalInternal":{"host":"packages-12-west.internal.npmjs.com","tmp":"tmp/extendo-error-1.0.1.tgz_1481305168290_0.8905862921383232"}}},"readme":"# extendo-error\r\nSafely and simply extend native Error with prototype chaining support\r\n\r\n# What is it?\r\n\r\nAllows you to extend the native Error type whilst keeping the ability to have a setable message through constructor and resolving the name correctly.\r\n\r\nIt also gives the right typings and extends all children in the chain correctly (i.e. instanceof works correctly and all functions, properties and fields are accessible).\r\n\r\n# Why use it?\r\n\r\nIn TypeScript 2.1 a breaking change makes it more challenging to extend the Error type and also means you need to do work in every class that extends Error (Exten\r\nSee [this](https://github.com/Microsoft/TypeScript-wiki/blob/master/Breaking-Changes.md#extending-built-ins-like-error-array-and-map-may-no-longer-work)\r\n\r\n# How do I use it?\r\n\r\nInstall it\r\n\r\n```\r\nnpm instal extendo-error --save\r\n```\r\n\r\nImport it and extend it\r\n\r\n```typescript\r\nimport ExtendoError from \"extendo-error\";\r\n\r\nclass YourCustomError extends ExtendoError {\r\n    // add whatever you like here\r\n}\r\n```\r\n\r\nAll done! :)","maintainers":[{"name":"jamesrichford","email":"jamesrichford@googlemail.com"}],"time":{"modified":"2022-06-17T22:54:57.462Z","created":"2016-12-09T17:36:58.416Z","1.0.0":"2016-12-09T17:36:58.416Z","1.0.1":"2016-12-09T17:39:30.141Z"},"homepage":"https://github.com/jamesrichford/extendo-error#readme","keywords":["extendo","error","extendable","typescript","prototype","chaining","extend error","instanceof"],"repository":{"type":"git","url":"git+https://github.com/jamesrichford/extendo-error.git"},"author":{"name":"James Richford"},"bugs":{"url":"https://github.com/jamesrichford/extendo-error/issues"},"license":"MIT","readmeFilename":"README.md"}