1 | "use strict";
|
2 | Object.defineProperty(exports, "__esModule", { value: true });
|
3 | const tslib_1 = require("tslib");
|
4 | const composerLockFileParser = require("@snyk/composer-lockfile-parser");
|
5 | const system_deps_1 = require("./system-deps");
|
6 | const PLUGIN_NAME = 'snyk-php-plugin';
|
7 | function 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 | }
|
17 | exports.inspect = inspect;
|
18 |
|
\ | No newline at end of file |