New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

@mattkrick/sanitize-svg

Package Overview
Dependencies
Maintainers
1
Versions
6
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@mattkrick/sanitize-svg - npm Package Compare versions

Comparing version

to
0.3.1

2

dist/lib/sanitizeSVG.js

@@ -30,3 +30,3 @@ "use strict";

const svgEl = div.firstElementChild;
const attributes = Array.from(svgEl.attributes);
const attributes = Array.from(svgEl.attributes).map(({ name }) => name);
const hasScriptAttr = !!attributes.find((attr) => attr.startsWith('on'));

@@ -33,0 +33,0 @@ const scripts = svgEl.getElementsByTagName('script');

{
"name": "@mattkrick/sanitize-svg",
"version": "0.3.0",
"version": "0.3.1",
"description": "a small script to remove script tags from SVGs",

@@ -5,0 +5,0 @@ "keywords": [

Sorry, the diff of this file is not supported yet