{"name":"domexception","description":"An implementation of the DOMException class from browsers","keywords":["dom","webidl","web idl","domexception","error","exception"],"version":"2.0.1","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 lib"},"dependencies":{"webidl-conversions":"^5.0.0"},"devDependencies":{"eslint":"^6.7.2","mkdirp":"^0.5.1","mocha":"^6.2.2","request":"^2.88.0","webidl2js":"^12.0.0"},"engines":{"node":">=8"},"gitHead":"58fee1913c3586b297ac340f0ea30b26d005f8a8","bugs":{"url":"https://github.com/jsdom/domexception/issues"},"homepage":"https://github.com/jsdom/domexception#readme","_id":"domexception@2.0.1","_nodeVersion":"12.1.0","_npmVersion":"6.9.0","dist":{"integrity":"sha512-yxJ2mFy/sibVQlu5qHjOkf9J3K6zgmCxgJ94u2EdvDOV09H+32LtRswEcUsmUWN72pVLOEnTSRaIVVzVQgS0dg==","shasum":"fb44aefba793e1574b0af6aed2801d057529f304","tarball":"http://registry-npm.ywwl.com/domexception/download/domexception-2.0.1.tgz","fileCount":9,"unpackedSize":15542,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJd9Tv9CRA9TVsSAnZWagAAessP/35PizgLrtUzzbaWkAjB\n9CEVNi+e+w38PSPao6ybSY1BEUOEULghPEpCvBosiGIeidl/u6HKQSKHBN/0\nuQv1D3fy1JMjEQaj3KZ/DGIoBaiZKL14DwiiTOs3YVYBxuB+zLW1/99FdAIq\nSyesAiagoFmZ8ZuUn3aS5GtiikpkmF39/N6XT9Wn0nefdXxOnN0Fs3IeiNvK\npBiBUTa8IWV8M6eifccQbxzqCZYr2FD4tG2Jwl9/zYNFvViNMM09+2fnDH2i\nswBQzlbqTtmd74iVst/fmvHyVbC6dfjNYAmYAuf2JvOrqgo+FVdEeGrf9RTE\n8X3rMgEIIz4hHCaT0OZt+F2w4Us2GReQGzc+P5+9FPUez2OZU8u6gqD5ubOx\nQ/BnKyXQBsd5qAXGK53E1wmcNXsnbVAEqv7QZBgBvTTEJnLZ0Gvpeg0920BY\ngERAhEyHwJMfL69RlrcNWtZdRErzhQc2tN1nuPrXo+7qeuHsF8304k/j0FPm\ndttqx8o6TK5WsMlM5TbFMVSC5l0iesg7olN/oOxA/npWMGYJYu3QvShhug0J\nueyVGf03rpqT1XAa5zIkHiFYKLdV6r17/Z3yY3EyRih4vwvjzey86bylY8ou\nksYJCFrPrn6AcxjwR8K4hXvt5DYnovPN0KHopRdrM8Xu0kuj7gdURgNisPvl\nE9EF\r\n=ludO\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIEus3VV/dVlvtjE7Ln6ZUequm60QBW0PQNYTGIGmtz5PAiEAnSXjPmut4mEPMi7ID97krWFNFsXn1WYTBBGbnuKS378="}],"size":4777,"noattachment":false,"key":"/domexception/-/domexception-2.0.1.tgz"},"maintainers":[{"email":"d@domenic.me","name":"domenic"},{"email":"joris@jorisvanderwel.com","name":"joris-van-der-wel"},{"email":"sebmaster16@gmail.com","name":"sebmaster"},{"email":"timothygu99@gmail.com","name":"timothygu"},{"email":"tmpvar@gmail.com","name":"tmpvar"},{"email":"code@zirro.se","name":"zirro"}],"_npmUser":{"name":"domenic","email":"d@domenic.me"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/domexception_2.0.1_1576352765265_0.9754469431379906"},"_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":1576352765375,"_cnpm_publish_time":1576352765375,"dist-tags":{"latest":"4.0.0"}}