UNPKG

798 BJavaScriptView Raw
1"use strict";
2Object.defineProperty(exports, "__esModule", { value: true });
3const tslib_1 = require("tslib");
4const composerLockFileParser = require("@snyk/composer-lockfile-parser");
5const system_deps_1 = require("./system-deps");
6const PLUGIN_NAME = 'snyk-php-plugin';
7function inspect(basePath, fileName, options = {}) {
8 return tslib_1.__awaiter(this, void 0, void 0, function* () {
9 const systemVersions = system_deps_1.systemDeps(basePath, options);
10 const depsTree = composerLockFileParser.buildDepTreeFromFiles(basePath, fileName, systemVersions, options.dev);
11 return Promise.resolve({
12 package: depsTree,
13 plugin: { name: PLUGIN_NAME, targetFile: fileName },
14 });
15 });
16}
17exports.inspect = inspect;
18//# sourceMappingURL=index.js.map
\No newline at end of file