bae705aa97
- Add NFC ePassport roadmap (ICAO 9303, eIDAS) - Add TensorFlow.js edge face detection (BlazeFace) - Add structured audit logger (GDPR-compliant) - Risk scoring support Part of KYC Apple Native UX v1.1.0
21 lines
535 B
JavaScript
21 lines
535 B
JavaScript
"use strict";
|
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
exports.ignoreENOENTSync = exports.ignoreENOENT = void 0;
|
|
const ignoreENOENT = async (p) => p.catch(er => {
|
|
if (er.code !== 'ENOENT') {
|
|
throw er;
|
|
}
|
|
});
|
|
exports.ignoreENOENT = ignoreENOENT;
|
|
const ignoreENOENTSync = (fn) => {
|
|
try {
|
|
return fn();
|
|
}
|
|
catch (er) {
|
|
if (er?.code !== 'ENOENT') {
|
|
throw er;
|
|
}
|
|
}
|
|
};
|
|
exports.ignoreENOENTSync = ignoreENOENTSync;
|
|
//# sourceMappingURL=ignore-enoent.js.map
|