"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.queryDependsMap = exports.queryDepends = void 0;
var utils_1 = require("./utils");
var queryRelations = function (code) {
    if (!code) {
        return [];
    }
    var data = JSON.parse(code);
    var _a = data.usingComponents, usingComponents = _a === void 0 ? {} : _a;
    var depends = Object.values(usingComponents || {});
    return depends;
};
exports.queryDepends = (0, utils_1.createQueryDepends)(queryRelations);
exports.queryDependsMap = (0, utils_1.createQueryDependsMap)(queryRelations);
