@grafana/data: fix build issue caused by merge of #43222 after #43423 (#43436)

This commit is contained in:
Todd Treece
2021-12-21 12:28:10 -05:00
committed by GitHub
parent 119f756c0e
commit 6b0f5d464b

View File

@@ -1,12 +1,12 @@
import { FilterXSS, whiteList, IWhiteList } from 'xss';
import * as xss from 'xss';
import { sanitizeUrl as braintreeSanitizeUrl } from '@braintree/sanitize-url';
const XSSWL = Object.keys(whiteList).reduce((acc, element) => {
acc[element] = whiteList[element]?.concat(['class', 'style']);
const XSSWL = Object.keys(xss.whiteList).reduce((acc, element) => {
acc[element] = xss.whiteList[element]?.concat(['class', 'style']);
return acc;
}, {} as IWhiteList);
}, {} as xss.IWhiteList);
const sanitizeXSS = new FilterXSS({
const sanitizeXSS = new xss.FilterXSS({
whiteList: XSSWL,
});