1 | "use strict";
|
2 | Object.defineProperty(exports, "__esModule", { value: true });
|
3 | var forOf = require("object-forof");
|
4 | function parseDependencies(dependencies, nodeDependencies) {
|
5 | if (nodeDependencies) {
|
6 | forOf(function (type, dependency, value) {
|
7 | if (type === 'npm') {
|
8 | if (value !== 'builtin') {
|
9 | if (!dependencies.npm) {
|
10 | dependencies.npm = {};
|
11 | }
|
12 | dependencies.npm[dependency] = value;
|
13 | }
|
14 | }
|
15 | else {
|
16 | console.warn("Unsupported package manager: " + type);
|
17 | }
|
18 | }, nodeDependencies);
|
19 | }
|
20 | return dependencies;
|
21 | }
|
22 | exports.parseDependencies = parseDependencies;
|
23 |
|
\ | No newline at end of file |