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() {
const deferred = {};
exports = function pDefer () {
const deferred = {}
deferred.promise = new Promise((resolve, reject) => {
deferred.resolve = resolve;
deferred.reject = reject;
});
deferred.resolve = resolve
deferred.reject = reject
})
return deferred;
return deferred
}

View File

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