summaryrefslogtreecommitdiff
path: root/node_modules/svgo/plugins/removeUnknownsAndDefaults.js
diff options
context:
space:
mode:
authorlittleblack111 <littleblack11111@gmail.com>2024-01-04 11:07:54 +0800
committerlittleblack111 <littleblack11111@gmail.com>2024-01-04 11:07:54 +0800
commit275f9dc0bdf3e58aa36b800f55f8648fbc55d8af (patch)
tree81c7cf120fb703cfd5e3162f2366033d9fe5c7f8 /node_modules/svgo/plugins/removeUnknownsAndDefaults.js
parent2b4ab36917baef56c7ce1602966f941be15af785 (diff)
upgrade
Diffstat (limited to 'node_modules/svgo/plugins/removeUnknownsAndDefaults.js')
-rw-r--r--node_modules/svgo/plugins/removeUnknownsAndDefaults.js4
1 files changed, 2 insertions, 2 deletions
diff --git a/node_modules/svgo/plugins/removeUnknownsAndDefaults.js b/node_modules/svgo/plugins/removeUnknownsAndDefaults.js
index 7462e8dc..e76e4e5f 100644
--- a/node_modules/svgo/plugins/removeUnknownsAndDefaults.js
+++ b/node_modules/svgo/plugins/removeUnknownsAndDefaults.js
@@ -129,7 +129,7 @@ exports.fn = (root, params) => {
// remove unknown element's content
if (unknownContent && parentNode.type === 'element') {
const allowedChildren = allowedChildrenPerElement.get(
- parentNode.name
+ parentNode.name,
);
if (allowedChildren == null || allowedChildren.size === 0) {
// remove unknown elements
@@ -197,7 +197,7 @@ exports.fn = (root, params) => {
if (uselessOverrides && node.attributes.id == null) {
const style = computedParentStyle?.[name];
if (
- presentationNonInheritableGroupAttrs.includes(name) === false &&
+ presentationNonInheritableGroupAttrs.has(name) === false &&
style != null &&
style.type === 'static' &&
style.value === value