feat: added dependencies and removed .idea

This commit is contained in:
SethCohen
2022-08-24 00:36:52 -04:00
parent 09782e77e8
commit fd59991cc1
146 changed files with 60143 additions and 443 deletions
+16
View File
@@ -0,0 +1,16 @@
/*! node-domexception. MIT License. Jimmy Wärting <https://jimmy.warting.se/opensource> */
if (!globalThis.DOMException) {
try {
const { MessageChannel } = require('worker_threads'),
port = new MessageChannel().port1,
ab = new ArrayBuffer()
port.postMessage(ab, [ab, ab])
} catch (err) {
err.constructor.name === 'DOMException' && (
globalThis.DOMException = err.constructor
)
}
}
module.exports = globalThis.DOMException