mirror of
https://github.com/marcogll/passkit-generator.git
synced 2026-03-15 14:25:17 +00:00
Moved to minimum node version supported to 10 by using fs.promises instead of promisify functions
This commit is contained in:
@@ -26,7 +26,7 @@
|
|||||||
"yazl": "^2.5.1"
|
"yazl": "^2.5.1"
|
||||||
},
|
},
|
||||||
"engines": {
|
"engines": {
|
||||||
"node": ">=8.1.0"
|
"node": ">=10.0.0"
|
||||||
},
|
},
|
||||||
"devDependencies": {
|
"devDependencies": {
|
||||||
"@types/debug": "^4.1.5",
|
"@types/debug": "^4.1.5",
|
||||||
|
|||||||
@@ -3,13 +3,11 @@ import forge from "node-forge";
|
|||||||
import formatMessage from "./messages";
|
import formatMessage from "./messages";
|
||||||
import { FactoryOptions, PartitionedBundle, BundleUnit, Certificates, FinalCertificates, isValid } from "./schema";
|
import { FactoryOptions, PartitionedBundle, BundleUnit, Certificates, FinalCertificates, isValid } from "./schema";
|
||||||
import { removeHidden, splitBufferBundle, getAllFilesWithName, hasFilesWithName, deletePersonalization } from "./utils";
|
import { removeHidden, splitBufferBundle, getAllFilesWithName, hasFilesWithName, deletePersonalization } from "./utils";
|
||||||
import { promisify } from "util";
|
import fs from "fs";
|
||||||
import { readFile as _readFile, readdir as _readdir } from "fs";
|
|
||||||
import debug from "debug";
|
import debug from "debug";
|
||||||
|
|
||||||
const prsDebug = debug("Personalization");
|
const prsDebug = debug("Personalization");
|
||||||
const readDir = promisify(_readdir);
|
const { readdir: readDir, readFile } = fs.promises;
|
||||||
const readFile = promisify(_readFile);
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Performs checks on the passed model to
|
* Performs checks on the passed model to
|
||||||
|
|||||||
Reference in New Issue
Block a user