Socket
Socket
Sign inDemoInstall

abstract-image

Package Overview
Dependencies
Maintainers
12
Versions
46
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

abstract-image - npm Package Compare versions

Comparing version 3.2.3 to 3.2.4

4

lib/exporters/react-svg-export-image.js

@@ -75,3 +75,5 @@ "use strict";

case "svg":
const svg = component.data.reduce((a, b) => a + String.fromCharCode(b), "");
const svg = component.data
.reduce((a, b) => a + String.fromCharCode(b), "")
.replace('<?xml version="1.0" encoding="utf-8"?>', "");
return [

@@ -78,0 +80,0 @@ React.createElement("image", { key: key, x: component.topLeft.x, y: component.topLeft.y, width: component.bottomRight.x - component.topLeft.x, height: component.bottomRight.y - component.topLeft.y, id: makeIdAttr(component.id), href: `data:image/svg+xml;utf8,${svg}` }),

@@ -23,3 +23,5 @@ "use strict";

case "svg":
const svg = component.data.reduce((a, b) => a + String.fromCharCode(b), "");
const svg = component.data
.reduce((a, b) => a + String.fromCharCode(b), "")
.replace('<?xml version="1.0" encoding="utf-8"?>', "");
return createElement("image", {

@@ -26,0 +28,0 @@ x: component.topLeft.x.toString(),

{
"name": "abstract-image",
"version": "3.2.3",
"version": "3.2.4",
"description": "Dynamically create images using code or JSX and render to any format",

@@ -25,3 +25,3 @@ "repository": "https://github.com/dividab/abstract-visuals/tree/master/packages/abstract-image",

},
"gitHead": "81109d0f47e5d8c0539e47ff83372f6c4ab9182a"
"gitHead": "6771b0df367bd2617498ace3c1c61e08a370d0bd"
}

@@ -31,3 +31,5 @@ import * as AbstractImage from "../model/index";

case "svg":
const svg = component.data.reduce((a, b) => a + String.fromCharCode(b), "");
const svg = component.data
.reduce((a, b) => a + String.fromCharCode(b), "")
.replace('<?xml version="1.0" encoding="utf-8"?>', "");
return createElement(

@@ -34,0 +36,0 @@ "image",

Sorry, the diff of this file is not supported yet

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