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('#', '_')}_`; const refSearch = `_${ref.replace('#', '_')}_`;
activeRepos.forEach(dep => { activeRepos.forEach(dep => {
const depSearch = `_${dep.replace('#', '_')}_`; const depSearch = `_${dep.replace('#', '_')}_`;
const found = this.__resultFiles[activeAnalyzer].find( const found = this.__resultFiles[activeAnalyzer].find(({ fileName }) => {
({ fileName }) => fileName.includes(refSearch) && fileName.includes(depSearch), return (
fileName.includes(encodeURIComponent(refSearch)) &&
fileName.includes(encodeURIComponent(depSearch))
); );
});
if (found) { if (found) {
jsonResultsActiveFilter.push(found.content); jsonResultsActiveFilter.push(found.content);
} else { } else {
// eslint-disable-next-line no-console // 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; let regexSearchOptions;
const externalConfig = InputDataService.getExternalConfig(); const externalConfig = InputDataService.getExternalConfig();
console.log('externalConfig', externalConfig);
async function getQueryInputData( async function getQueryInputData(
/* eslint-disable no-shadow */ /* eslint-disable no-shadow */