🚀 Big News: Socket Acquires Coana to Bring Reachability Analysis to Every Appsec Team.Learn more
Socket
DemoInstallSign in
Socket

@skjnldsv/sanitize-svg

Package Overview
Dependencies
Maintainers
1
Versions
3
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@skjnldsv/sanitize-svg - npm Package Compare versions

Comparing version

to
1.0.1

2

dist/index.esm.js

@@ -23,3 +23,3 @@ import isSvg from 'is-svg';

let svgText = '';
if (svg instanceof Buffer || svg instanceof File) {
if (Buffer.isBuffer(svg) || svg instanceof File) {
svgText = await readAsText(svg);

@@ -26,0 +26,0 @@ }

@@ -90,3 +90,3 @@ 'use strict';

svgText = '';
if (!(svg instanceof Buffer || svg instanceof File)) return [3 /*break*/, 2];
if (!(Buffer.isBuffer(svg) || svg instanceof File)) return [3 /*break*/, 2];
return [4 /*yield*/, readAsText(svg)];

@@ -93,0 +93,0 @@ case 1:

{
"name": "@skjnldsv/sanitize-svg",
"version": "1.0.0",
"version": "1.0.1",
"description": "a small script to remove script tags from SVGs",

@@ -5,0 +5,0 @@ "main": "dist/index.js",

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet