fix(providence-analytics): allow scoped package refs dashboard

This commit is contained in:
Thijs Louisse 2020-07-22 00:04:15 +02:00
parent b781160919
commit 9dea018310
2 changed files with 8 additions and 4 deletions

View file

@ -304,14 +304,17 @@ class PBoard extends DecorateMixin(LitElement) {
const refSearch = `_${ref.replace('#', '_')}_`;
activeRepos.forEach(dep => {
const depSearch = `_${dep.replace('#', '_')}_`;
const found = this.__resultFiles[activeAnalyzer].find(
({ fileName }) => fileName.includes(refSearch) && fileName.includes(depSearch),
const found = this.__resultFiles[activeAnalyzer].find(({ fileName }) => {
return (
fileName.includes(encodeURIComponent(refSearch)) &&
fileName.includes(encodeURIComponent(depSearch))
);
});
if (found) {
jsonResultsActiveFilter.push(found.content);
} else {
// eslint-disable-next-line no-console
console.warn(`No result output json for ${refSearch} and ${depSearch}`);
console.info(`No result output json for ${refSearch} and ${depSearch}`);
}
});
});

View file

@ -39,6 +39,7 @@ async function cli({ cwd, addProjectDependencyPaths } = {}) {
let regexSearchOptions;
const externalConfig = InputDataService.getExternalConfig();
console.log('externalConfig', externalConfig);
async function getQueryInputData(
/* eslint-disable no-shadow */