{"name":"domexception","description":"An implementation of the DOMException class from browsers","keywords":["dom","webidl","web idl","domexception","error","exception"],"version":"4.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":"^17.0.0"},"engines":{"node":">=12"},"gitHead":"29ea43cc590749551ee92582a58f9517074c543f","bugs":{"url":"https://github.com/jsdom/domexception/issues"},"homepage":"https://github.com/jsdom/domexception#readme","_id":"domexception@4.0.0","_nodeVersion":"16.9.1","_npmVersion":"7.21.1","dist":{"integrity":"sha512-A2is4PLG+eeSfoTMA95/s4pvAoSo2mKtiM5jlHkAVewmiO8ISFTFKZjH7UAM1Atli/OT/7JHOrJRJiMKUZKYBw==","shasum":"4ad1be56ccadc86fc76d033353999a8037d03673","tarball":"http://registry-npm.ywwl.com/domexception/download/domexception-4.0.0.tgz","fileCount":11,"unpackedSize":20182,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJh2oipCRA9TVsSAnZWagAA3PcP/jo/GvmLt259Cts5LDur\nGL7WjY4IR9TN+vHQt6ZjyZvQPAM3TLy6fwhvfRdw2FNqeKjwcQtzt5uU+l2n\nGblYSF3+bibmfJ2zjYBfFzF0deY4KB+xYRkw4gzMrw0DbWP8Q0g2Iavl5sxj\nnwLzlfjOaH73Z+kjFWHQnHi2pleirEWiIbWEEupCSmM1d02IIZKV3Dc4gShM\nN979Jlf6PGGGxfg+Knz4PEt82DRlZZtp4tzlsvDowI+EPzordsKkjFqDg2mh\ndpOSbVeMPF8A91cG93tPxfqcPrRI2vuvrmybk8zhTvmCSvmzXU12r74clFNd\nlQisTfYPce7MDlUC8PGCrlLGrmLXawLSlLPg78vVN/Tgc2fWqG4FPKwAJ+xh\nVlTUNKmet66396ViTZ6P5nHoOqgGF4m2RJxema8yaF1sfRqbAsnKGkKA10V2\nhgn/1XwfXg6I1DmK/b6wdr+Kj07wkZu4pmgfq5iqlyGwx/NzEsLq7/4xoHH3\njPLk+A17BaFaki+dFcPGkC2NvY28GQam7qihymoX2+ycKdfkl6CEOe/IsSz0\nW1ex2qMMTSe/Ls40fpAJr30zFkAsslWPzS8k+rye4/YwOM4Gyribsn7Pr3HQ\numovK0J5LapcBUFV15WJS6xZDhZItzGNHGvAWF0hU7j7nADbXPrkFbUIrR7P\nKAAL\r\n=OL/6\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIG/xwAWtjglXiywO7ecqj58iFZMtuiBTkgRguvN4PkYQAiAKudMGIRB5l4sXN3jEbRc+skV1ctDExd5epapmfLdIeQ=="}],"size":5653,"noattachment":false,"key":"/domexception/-/domexception-4.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_4.0.0_1633538689390_0.5470600130309544"},"_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":1633538689514,"_cnpm_publish_time":1633538689514,"dist-tags":{"latest":"4.0.0"}}