@mattkrick/sanitize-svg
Advanced tools
Comparing version 0.2.0 to 0.2.1
"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
7105
38