Galerie und tage

This commit is contained in:
2021-11-23 17:56:26 +01:00
parent ff35366279
commit 5f873bee89
4693 changed files with 149659 additions and 301447 deletions

22
node_modules/bin-version/index.js generated vendored
View File

@@ -1,15 +1,17 @@
'use strict';
const execa = require('execa');
const findVersions = require('find-versions');
var childProcess = require('child_process');
var findVersions = require('find-versions');
module.exports = (binary, options = {}) => {
return execa(binary, options.args || ['--version'])
.then(result => findVersions(result.stdout || result.stderr, {loose: true})[0])
.catch(error => {
if (error.code === 'ENOENT') {
error.message = `Couldn't find the \`${binary}\` binary. Make sure it's installed and in your $PATH.`;
module.exports = function (bin, cb) {
childProcess.exec(bin + ' --version', function (err, stdout, stderr) {
if (err) {
if (err.code === 'ENOENT') {
err.message = 'Couldn\'t find the `' + bin + '` binary. Make sure it\'s installed and in your $PATH';
}
throw error;
});
return cb(err);
}
cb(null, findVersions(stdout.trim() || stderr.trim(), {loose: true})[0]);
});
};