Updating NPM dependencies

This commit is contained in:
Drew Heavner
2020-11-11 13:30:52 +00:00
committed by GitHub
parent 7a6fb66c63
commit bd487ef324
9068 changed files with 1400893 additions and 587661 deletions

22
node_modules/path-exists/index.js generated vendored
View File

@@ -1,17 +1,23 @@
'use strict';
const fs = require('fs');
const {promisify} = require('util');
module.exports = fp => new Promise(resolve => {
fs.access(fp, err => {
resolve(!err);
});
});
const pAccess = promisify(fs.access);
module.exports.sync = fp => {
module.exports = async path => {
try {
fs.accessSync(fp);
await pAccess(path);
return true;
} catch (err) {
} catch (_) {
return false;
}
};
module.exports.sync = path => {
try {
fs.accessSync(path);
return true;
} catch (_) {
return false;
}
};