Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
api.context.config.getInstalled().forEach(function (inst) {
var def = tsd.Def.getFrom(inst.path);
query.addNamePattern(def.project + '/' + def.name);
});
query.versionMatcher = new tsd.VersionMatcher('latest');
api.context.config.getInstalled().forEach(function (inst) {
var def = tsd.Def.getFrom(inst.path);
query.addNamePattern(def.project + '/' + def.name);
});
query.versionMatcher = new tsd.VersionMatcher('latest');