refactor: convert to cjs

This commit is contained in:
Derrick Hammer 2023-04-23 08:08:27 -04:00
parent 0abf7f5633
commit 534ba472a8
Signed by: pcfreak30
GPG Key ID: C997C339BE476FF2
2 changed files with 6 additions and 7 deletions

View File

@ -1,10 +1,10 @@
export default function pDefer() { exports = function pDefer () {
const deferred = {}; const deferred = {}
deferred.promise = new Promise((resolve, reject) => { deferred.promise = new Promise((resolve, reject) => {
deferred.resolve = resolve; deferred.resolve = resolve
deferred.reject = reject; deferred.reject = reject
}); })
return deferred; return deferred
} }

View File

@ -10,7 +10,6 @@
"email": "sindresorhus@gmail.com", "email": "sindresorhus@gmail.com",
"url": "https://sindresorhus.com" "url": "https://sindresorhus.com"
}, },
"type": "module",
"exports": "./index.js", "exports": "./index.js",
"engines": { "engines": {
"node": ">=12" "node": ">=12"