Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
(err, pageWindow) => {
bail(err)
const jQuery = pageWindow.$
const reactSVGAttributesCrawled = getList(
jQuery, svgAttributeListTitleSelector,
)
const reactHtmlAttributesCrawled = getList(
jQuery, htmlAttributeListTitleSelector,
)
const reactHtmlAttributesFull = fp.pipe([
// Get rid of normal HTML attributes that React doesn't support
fp.mapValues(attributes => fp.intersection(reactHtmlAttributesCrawled)(attributes)),
fp.set('svg', reactSVGAttributesCrawled),
// Add supported attributes copied from the site