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 0.3.0 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

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc