Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

svgsaver

Package Overview
Dependencies
Maintainers
1
Versions
24
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

svgsaver - npm Package Compare versions

Comparing version 0.1.6 to 0.1.7

lib/collection.js

0

index.es6.js
export {default} from './src/svgsaver';

2

package.json
{
"name": "svgsaver",
"version": "0.1.6",
"version": "0.1.7",
"description": "download an SVG element with css styles",

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

@@ -13,3 +13,3 @@ svgsaver

*For maximum compatibility across browsers include [eligrey/FileSaver.js/](https://github.com/eligrey/FileSaver.js) and [eligrey/canvas-toBlob.js](https://github.com/eligrey/canvas-toBlob.js)*.
*For maximum compatibility across browsers include [eligrey/FileSaver.js/](https://github.com/eligrey/FileSaver.js) and [eligrey/canvas-toBlob.js](https://github.com/eligrey/canvas-toBlob.js). See [Compatibility-Chart](https://github.com/Hypercubed/svgsaver/wiki/Compatibility-Chart) for more information.*

@@ -16,0 +16,0 @@ ### Example

@@ -0,0 +0,0 @@ export var svgStyles = { // Whitelist of CSS styles and default values

@@ -129,4 +129,6 @@ import saveAs from 'html5-filesaver.js';

var html = this.getHTML(el);
return 'data:image/svg+xml;base64,' + window.btoa(html);
//return "data:image/svg+xml," + encodeURIComponent(html);
if (isDefined(window.btoa)) {
return 'data:image/svg+xml;base64,' + window.btoa(html);
}
return "data:image/svg+xml," + encodeURIComponent(html);
}

@@ -133,0 +135,0 @@

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