diff --git a/package.json b/package.json index feb3f808..2db720b3 100644 --- a/package.json +++ b/package.json @@ -90,7 +90,7 @@ "@babel/runtime": "7.22.6", "oblivious-set": "1.1.1", "p-queue": "6.6.2", - "rimraf": "3.0.2", + "rimraf": "5.0.1", "unload": "2.4.1" }, "devDependencies": { diff --git a/src/methods/node.js b/src/methods/node.js index 0a742fc7..f875881d 100644 --- a/src/methods/node.js +++ b/src/methods/node.js @@ -10,7 +10,7 @@ import os from 'os'; import events from 'events'; import net from 'net'; import path from 'path'; -import rimraf from 'rimraf'; +import { rimraf } from 'rimraf'; import PQueue from 'p-queue'; import { add as unloadAdd @@ -47,7 +47,7 @@ const readFile = util.promisify(fs.readFile); const unlink = util.promisify(fs.unlink); const readdir = util.promisify(fs.readdir); const chmod = util.promisify(fs.chmod); -const removeDir = util.promisify(rimraf); +const removeDir = rimraf.rimraf; const OTHER_INSTANCES = {}; const TMP_FOLDER_NAME = 'pubkey.bc';