ÿØÿà JFIF ÿá Exif MM * ÿÛ C
Server IP : 199.250.214.225 / Your IP : 18.118.195.166 Web Server : Apache System : Linux vps64074.inmotionhosting.com 3.10.0-1160.105.1.vz7.214.3 #1 SMP Tue Jan 9 19:45:01 MSK 2024 x86_64 User : nicngo5 ( 1001) PHP Version : 7.4.33 Disable Function : exec,passthru,shell_exec,system MySQL : OFF | cURL : ON | WGET : ON | Perl : ON | Python : ON | Sudo : ON | Pkexec : OFF Directory : /home/nicngo5/funds.upgrade.nicn.gov.ng/funds-upgraded/node_modules/enhanced-resolve/lib/ |
Upload File : |
/* MIT License http://www.opensource.org/licenses/mit-license.php Author Tobias Koppers @sokra */ "use strict"; /** @typedef {import("./Resolver").FileSystem} FileSystem */ /** @typedef {import("./Resolver").SyncFileSystem} SyncFileSystem */ /** * @param {SyncFileSystem} fs file system implementation * @constructor */ function SyncAsyncFileSystemDecorator(fs) { this.fs = fs; this.lstat = undefined; this.lstatSync = undefined; const lstatSync = fs.lstatSync; if (lstatSync) { this.lstat = (arg, options, callback) => { let result; try { result = lstatSync.call(fs, arg); } catch (e) { return (callback || options)(e); } (callback || options)(null, result); }; this.lstatSync = (arg, options) => lstatSync.call(fs, arg, options); } this.stat = (arg, options, callback) => { let result; try { result = callback ? fs.statSync(arg, options) : fs.statSync(arg); } catch (e) { return (callback || options)(e); } (callback || options)(null, result); }; this.statSync = (arg, options) => fs.statSync(arg, options); this.readdir = (arg, options, callback) => { let result; try { result = fs.readdirSync(arg); } catch (e) { return (callback || options)(e); } (callback || options)(null, result); }; this.readdirSync = (arg, options) => fs.readdirSync(arg, options); this.readFile = (arg, options, callback) => { let result; try { result = fs.readFileSync(arg); } catch (e) { return (callback || options)(e); } (callback || options)(null, result); }; this.readFileSync = (arg, options) => fs.readFileSync(arg, options); this.readlink = (arg, options, callback) => { let result; try { result = fs.readlinkSync(arg); } catch (e) { return (callback || options)(e); } (callback || options)(null, result); }; this.readlinkSync = (arg, options) => fs.readlinkSync(arg, options); this.readJson = undefined; this.readJsonSync = undefined; const readJsonSync = fs.readJsonSync; if (readJsonSync) { this.readJson = (arg, options, callback) => { let result; try { result = readJsonSync.call(fs, arg); } catch (e) { return (callback || options)(e); } (callback || options)(null, result); }; this.readJsonSync = (arg, options) => readJsonSync.call(fs, arg, options); } } module.exports = SyncAsyncFileSystemDecorator;