Update dependencies

This commit is contained in:
grandeljay 2022-06-08 12:36:39 +02:00
parent 686c644751
commit 6b024302d3
7679 changed files with 179547 additions and 183379 deletions

31
node_modules/path-exists/index.js generated vendored
View file

@ -1,24 +1,23 @@
'use strict';
var fs = require('fs');
var Promise = require('pinkie-promise');
const fs = require('fs');
const {promisify} = require('util');
module.exports = function (fp) {
var fn = typeof fs.access === 'function' ? fs.access : fs.stat;
return new Promise(function (resolve) {
fn(fp, function (err) {
resolve(!err);
});
});
};
module.exports.sync = function (fp) {
var fn = typeof fs.accessSync === 'function' ? fs.accessSync : fs.statSync;
const pAccess = promisify(fs.access);
module.exports = async path => {
try {
fn(fp);
await pAccess(path);
return true;
} catch (err) {
} catch (_) {
return false;
}
};
module.exports.sync = path => {
try {
fs.accessSync(path);
return true;
} catch (_) {
return false;
}
};