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.2.0 to 0.2.1

3

dist/lib/sanitizeSVG.js
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
const getWindow = () => typeof window === 'undefined' ? null : window;

@@ -32,3 +33,3 @@ const readAsText = (svg) => new Promise((resolve) => {

};
module.exports = sanitizeSVG;
exports.default = sanitizeSVG;
//# sourceMappingURL=sanitizeSVG.js.map
/// <reference types="node" />
declare const getWindow: () => Window | null;
declare const readAsText: (svg: File | Buffer) => Promise<string | null>;
declare const isFile: (obj: File | Buffer) => obj is File;
declare const sanitizeSVG: (svg: File | Buffer, window?: Window | null) => Promise<File | Buffer | null>;
export default sanitizeSVG;
//# sourceMappingURL=sanitizeSVG.d.ts.map
{
"name": "@mattkrick/sanitize-svg",
"version": "0.2.0",
"version": "0.2.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

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