{"name":"domexception","description":"An implementation of the DOMException class from browsers","keywords":["dom","webidl","web idl","domexception","error","exception"],"version":"3.0.0","author":{"name":"Domenic Denicola","email":"d@domenic.me","url":"https://domenic.me/"},"license":"MIT","repository":{"type":"git","url":"git+https://github.com/jsdom/domexception.git"},"main":"index.js","scripts":{"prepare":"node scripts/generate.js","init-wpt":"node scripts/get-latest-platform-tests.js","pretest":"npm run prepare && npm run init-wpt","test":"mocha","lint":"eslint ."},"dependencies":{"webidl-conversions":"^7.0.0"},"devDependencies":{"@domenic/eslint-config":"^1.4.0","eslint":"^7.32.0","minipass-fetch":"^1.4.1","mocha":"^9.1.2","webidl2js":"^16.2.0"},"engines":{"node":">=12"},"gitHead":"a42eab52a4f9b81ab0ccd9bf16a4722f74725fd7","bugs":{"url":"https://github.com/jsdom/domexception/issues"},"homepage":"https://github.com/jsdom/domexception#readme","_id":"domexception@3.0.0","_nodeVersion":"16.9.1","_npmVersion":"7.21.1","dist":{"integrity":"sha512-jq/2HAjXFaOSzLh7vQB14jmaxm0zoAOlsejIhHiCemUBEx1qS5Vvradng9Rx4PLIglpKHHYf4RZT3SLK8DO7fQ==","shasum":"55a1b652ae76b717679cc13cb8447bba2aa0271d","tarball":"http://registry-npm.ywwl.com/domexception/download/domexception-3.0.0.tgz","fileCount":11,"unpackedSize":18658,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQCOXIpMCRSYINJacEjhDX5BScCR44UIQPScJ0QzRd9GXQIhAODZ/o0QJKIyqnbf5Z8EWIfZx56+8r9raQTgvZpozsPG"}],"size":5184,"noattachment":false,"key":"/domexception/-/domexception-3.0.0.tgz"},"_npmUser":{"name":"domenic","email":"d@domenic.me"},"directories":{},"maintainers":[{"name":"timothygu","email":"timothygu99@gmail.com"},{"name":"domenic","email":"d@domenic.me"},{"name":"sebmaster","email":"sebmaster16@gmail.com"},{"name":"zirro","email":"code@zirro.se"},{"name":"tmpvar","email":"tmpvar@gmail.com"},{"name":"joris-van-der-wel","email":"joris@jorisvanderwel.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/domexception_3.0.0_1633301406134_0.7735417301627232"},"_hasShrinkwrap":false,"deprecated":"Use your platform's native DOMException instead","readme":"# DOMException\n\nThis package implements the [`DOMException`](https://heycam.github.io/webidl/#idl-DOMException) class, from web browsers. It exists in service of [jsdom](https://github.com/jsdom/jsdom) and related packages.\n\nExample usage:\n\n```js\nconst DOMException = require(\"domexception\");\n\nconst e1 = new DOMException(\"Something went wrong\", \"BadThingsError\");\nconsole.assert(e1.name === \"BadThingsError\");\nconsole.assert(e1.code === 0);\n\nconst e2 = new DOMException(\"Another exciting error message\", \"NoModificationAllowedError\");\nconsole.assert(e2.name === \"NoModificationAllowedError\");\nconsole.assert(e2.code === 7);\n\nconsole.assert(DOMException.INUSE_ATTRIBUTE_ERR === 10);\n```\n\n## APIs\n\nThis package exposes two flavors of the `DOMException` interface depending on the imported module.\n\n### `domexception` module\n\nThis module default-exports the `DOMException` interface constructor.\n\n### `domexception/webidl2js-wrapper` module\n\nThis module exports the `DOMException` [interface wrapper API](https://github.com/jsdom/webidl2js#for-interfaces) generated by [webidl2js](https://github.com/jsdom/webidl2js).\n","publish_time":1633301406291,"_cnpm_publish_time":1633301406291,"dist-tags":{"latest":"4.0.0"}}