{"_id":"domexception","_rev":"1137617","name":"domexception","description":"An implementation of the DOMException class from browsers","dist-tags":{"latest":"4.0.0"},"maintainers":[{"name":"domenic","email":""},{"name":"joris-van-der-wel","email":"joris@jorisvanderwel.com"},{"name":"sebmaster","email":""},{"name":"timothygu","email":"timothygu99@gmail.com"},{"name":"tmpvar","email":"tmpvar@gmail.com"},{"name":"zirro","email":"code@zirro.se"}],"time":{"modified":"2024-01-11T03:19:37.000Z","created":"2017-08-14T03:16:40.561Z","4.0.0":"2021-10-06T16:44:49.514Z","3.0.0":"2021-10-03T22:50:06.291Z","2.0.1":"2019-12-14T19:46:05.375Z","2.0.0":"2019-12-07T18:27:11.550Z","1.0.1":"2018-01-22T00:32:26.351Z","1.0.0":"2017-08-14T03:16:40.561Z"},"users":{},"author":{"name":"Domenic Denicola","email":"d@domenic.me","url":"https://domenic.me/"},"repository":{"type":"git","url":"git+https://github.com/jsdom/domexception.git"},"versions":{"4.0.0":{"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":{"shasum":"4ad1be56ccadc86fc76d033353999a8037d03673","size":5653,"noattachment":false,"key":"/domexception/-/domexception-4.0.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/domexception/download/domexception-4.0.0.tgz"},"_npmUser":{"name":"domenic","email":"d@domenic.me"},"directories":{},"maintainers":[{"name":"domenic","email":""},{"name":"joris-van-der-wel","email":"joris@jorisvanderwel.com"},{"name":"sebmaster","email":""},{"name":"timothygu","email":"timothygu99@gmail.com"},{"name":"tmpvar","email":"tmpvar@gmail.com"},{"name":"zirro","email":"code@zirro.se"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/domexception_4.0.0_1633538689390_0.5470600130309544"},"_hasShrinkwrap":false,"publish_time":1633538689514,"_cnpm_publish_time":1633538689514,"deprecated":"Use your platform's native DOMException instead"},"3.0.0":{"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":{"shasum":"55a1b652ae76b717679cc13cb8447bba2aa0271d","size":5184,"noattachment":false,"key":"/domexception/-/domexception-3.0.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/domexception/download/domexception-3.0.0.tgz"},"_npmUser":{"name":"domenic","email":"d@domenic.me"},"directories":{},"maintainers":[{"name":"domenic","email":""},{"name":"joris-van-der-wel","email":"joris@jorisvanderwel.com"},{"name":"sebmaster","email":""},{"name":"timothygu","email":"timothygu99@gmail.com"},{"name":"tmpvar","email":"tmpvar@gmail.com"},{"name":"zirro","email":"code@zirro.se"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/domexception_3.0.0_1633301406134_0.7735417301627232"},"_hasShrinkwrap":false,"publish_time":1633301406291,"_cnpm_publish_time":1633301406291,"deprecated":"Use your platform's native DOMException instead"},"2.0.1":{"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":{"shasum":"fb44aefba793e1574b0af6aed2801d057529f304","size":4777,"noattachment":false,"key":"/domexception/-/domexception-2.0.1.tgz","tarball":"http://registry.cnpm.dingdandao.com/domexception/download/domexception-2.0.1.tgz"},"maintainers":[{"name":"domenic","email":""},{"name":"joris-van-der-wel","email":"joris@jorisvanderwel.com"},{"name":"sebmaster","email":""},{"name":"timothygu","email":"timothygu99@gmail.com"},{"name":"tmpvar","email":"tmpvar@gmail.com"},{"name":"zirro","email":"code@zirro.se"}],"_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,"publish_time":1576352765375,"_cnpm_publish_time":1576352765375,"deprecated":"Use your platform's native DOMException instead"},"2.0.0":{"name":"domexception","description":"An implementation of the DOMException class from browsers","keywords":["dom","webidl","web idl","domexception","error","exception"],"version":"2.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 lib"},"dependencies":{"webidl-conversions":"^4.0.2"},"devDependencies":{"eslint":"^6.7.2","mkdirp":"^0.5.1","mocha":"^6.2.2","request":"^2.88.0","webidl2js":"^11.0.0"},"engines":{"node":">=8"},"gitHead":"696792281e474a68cc8fcb4db13dec4ca8a0762f","bugs":{"url":"https://github.com/jsdom/domexception/issues"},"homepage":"https://github.com/jsdom/domexception#readme","_id":"domexception@2.0.0","_nodeVersion":"12.1.0","_npmVersion":"6.9.0","dist":{"shasum":"914a1dcfa9a9ae57cfe7223372f57b25861cc07c","size":4696,"noattachment":false,"key":"/domexception/-/domexception-2.0.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/domexception/download/domexception-2.0.0.tgz"},"maintainers":[{"name":"domenic","email":""},{"name":"joris-van-der-wel","email":"joris@jorisvanderwel.com"},{"name":"sebmaster","email":""},{"name":"timothygu","email":"timothygu99@gmail.com"},{"name":"tmpvar","email":"tmpvar@gmail.com"},{"name":"zirro","email":"code@zirro.se"}],"_npmUser":{"name":"domenic","email":"d@domenic.me"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/domexception_2.0.0_1575743231412_0.4986577227494411"},"_hasShrinkwrap":false,"publish_time":1575743231550,"_cnpm_publish_time":1575743231550,"deprecated":"Use your platform's native DOMException instead"},"1.0.1":{"name":"domexception","description":"An implementation of the DOMException class from browsers","keywords":["dom","webidl","web idl","domexception","error","exception"],"version":"1.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":"lib/public-api.js","files":["lib/"],"scripts":{"prepublish":"node scripts/generate.js","pretest":"npm run prepublish","test":"mocha","lint":"eslint lib"},"dependencies":{"webidl-conversions":"^4.0.2"},"devDependencies":{"eslint":"^4.3.0","mkdirp":"^0.5.1","mocha":"^3.5.0","request":"^2.81.0","webidl2js":"^7.2.0"},"gitHead":"5995e990587d4e3d49beb1d9f8a1e430f4be75e0","bugs":{"url":"https://github.com/jsdom/domexception/issues"},"homepage":"https://github.com/jsdom/domexception#readme","_id":"domexception@1.0.1","_npmVersion":"5.6.0","_nodeVersion":"8.9.4","_npmUser":{"name":"domenic","email":"d@domenic.me"},"dist":{"shasum":"937442644ca6a31261ef36e3ec677fe805582c90","size":4124,"noattachment":false,"key":"/domexception/-/domexception-1.0.1.tgz","tarball":"http://registry.cnpm.dingdandao.com/domexception/download/domexception-1.0.1.tgz"},"maintainers":[{"name":"domenic","email":""},{"name":"joris-van-der-wel","email":"joris@jorisvanderwel.com"},{"name":"sebmaster","email":""},{"name":"timothygu","email":"timothygu99@gmail.com"},{"name":"tmpvar","email":"tmpvar@gmail.com"},{"name":"zirro","email":"code@zirro.se"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/domexception-1.0.1.tgz_1516581145452_0.33150808280333877"},"directories":{},"publish_time":1516581146351,"_hasShrinkwrap":false,"_cnpm_publish_time":1516581146351,"deprecated":"Use your platform's native DOMException instead"},"1.0.0":{"name":"domexception","description":"An implementation of the DOMException class from browsers","keywords":["dom","webidl","web idl","domexception","error","exception"],"version":"1.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":"lib/public-api.js","files":["lib/"],"scripts":{"prepublish":"node scripts/generate.js","pretest":"npm run prepublish","test":"mocha","lint":"eslint lib"},"devDependencies":{"eslint":"^4.3.0","mkdirp":"^0.5.1","mocha":"^3.5.0","request":"^2.81.0","webidl2js":"^7.2.0"},"gitHead":"ddf4e33b53d5ef8d77d6e06f7c38030aadab1440","bugs":{"url":"https://github.com/jsdom/domexception/issues"},"homepage":"https://github.com/jsdom/domexception#readme","_id":"domexception@1.0.0","_npmVersion":"5.3.0","_nodeVersion":"8.3.0","_npmUser":{"name":"domenic","email":"d@domenic.me"},"dist":{"shasum":"81fe5df81b3f057052cde3a9fa9bf536a85b9ab0","size":4114,"noattachment":false,"key":"/domexception/-/domexception-1.0.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/domexception/download/domexception-1.0.0.tgz"},"maintainers":[{"name":"domenic","email":""},{"name":"joris-van-der-wel","email":"joris@jorisvanderwel.com"},{"name":"sebmaster","email":""},{"name":"timothygu","email":"timothygu99@gmail.com"},{"name":"tmpvar","email":"tmpvar@gmail.com"},{"name":"zirro","email":"code@zirro.se"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/domexception-1.0.0.tgz_1502680599604_0.9427031551022083"},"directories":{},"publish_time":1502680600561,"_hasShrinkwrap":false,"_cnpm_publish_time":1502680600561,"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","_attachments":{},"homepage":"https://github.com/jsdom/domexception#readme","bugs":{"url":"https://github.com/jsdom/domexception/issues"},"license":"MIT"}