diff --git a/package.json b/package.json index a204ead..6bcf502 100644 --- a/package.json +++ b/package.json @@ -26,7 +26,7 @@ "yazl": "^2.5.1" }, "engines": { - "node": ">=8.1.0" + "node": ">=10.0.0" }, "devDependencies": { "@types/debug": "^4.1.5", diff --git a/src/parser.ts b/src/parser.ts index 7f92712..49bad8f 100644 --- a/src/parser.ts +++ b/src/parser.ts @@ -3,13 +3,11 @@ import forge from "node-forge"; import formatMessage from "./messages"; import { FactoryOptions, PartitionedBundle, BundleUnit, Certificates, FinalCertificates, isValid } from "./schema"; import { removeHidden, splitBufferBundle, getAllFilesWithName, hasFilesWithName, deletePersonalization } from "./utils"; -import { promisify } from "util"; -import { readFile as _readFile, readdir as _readdir } from "fs"; +import fs from "fs"; import debug from "debug"; const prsDebug = debug("Personalization"); -const readDir = promisify(_readdir); -const readFile = promisify(_readFile); +const { readdir: readDir, readFile } = fs.promises; /** * Performs checks on the passed model to