HEX
Server: Apache
System: Linux webd004.cluster130.gra.hosting.ovh.net 5.15.206-ovh-vps-grsec-zfs-classid #1 SMP Fri May 15 02:41:25 UTC 2026 x86_64
User: frenchy (106757)
PHP: 7.4.33
Disabled: _dyuweyrj4,_dyuweyrj4r,dl
Upload Files
File: /home/frenchy/www/french-american.org/current/node_modules/snyk-php-plugin/dist/composer-cmds.js
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
var path = require("path");
var childProcess = require("child_process");
exports.composerCmd = 'composer --version';
exports.composerShowCmd = 'composer show -p';
exports.pharCmd = "php " + path.resolve(path.resolve() + '/composer.phar') + " show -p --format=json";
function cmdReturnsOk(cmd) {
    return cmd && childProcess.spawnSync(cmd, { shell: true }).status === 0;
}
exports.cmdReturnsOk = cmdReturnsOk;
// run a cmd in a specific folder and it's result should be there
function execWithResult(cmd, basePath) {
    return childProcess.execSync(cmd, { cwd: basePath }).toString();
}
exports.execWithResult = execWithResult;
//# sourceMappingURL=composer-cmds.js.map