Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
return elementAsDURISVG(clone, document, opts).then(xml => {
// update
urlNode.value = xml;
// conditionally quote
if (opts.utf8) {
urlNode.replaceWith(
parser.string({
value: urlNode.value,
quoted: true,
raws: Object.assign(urlNode.raws, { quote: '"' })
})
);
}
// update declaration
decl.value = String(declAST);
});
}