Socket
Socket
Sign inDemoInstall

abstract-image

Package Overview
Dependencies
8
Maintainers
10
Versions
45
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

Comparing version 2.2.6 to 3.0.0

8

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

@@ -139,9 +139,9 @@ "use strict";

var tags = [];
for (var _i = 0, split_1 = split; _i < split_1.length; _i++) {
var text_1 = split_1[_i];
for (var i = 0; i < split.length; ++i) {
var splitText = split[i];
if (inside) {
tags.push(React.createElement("tspan", { baselineShift: "sub", style: { fontSize: (fontSize * 0.8).toString() + "px" } }, text_1));
tags.push(React.createElement("tspan", { key: i, baselineShift: "sub", style: { fontSize: (fontSize * 0.8).toString() + "px" } }, splitText));
}
else {
tags.push(React.createElement("tspan", null, text_1));
tags.push(React.createElement("tspan", { key: i }, splitText));
}

@@ -148,0 +148,0 @@ inside = !inside;

@@ -136,9 +136,9 @@ import * as R from "ramda";

var tags = [];
for (var _i = 0, split_1 = split; _i < split_1.length; _i++) {
var text_1 = split_1[_i];
for (var i = 0; i < split.length; ++i) {
var splitText = split[i];
if (inside) {
tags.push(React.createElement("tspan", { baselineShift: "sub", style: { fontSize: (fontSize * 0.8).toString() + "px" } }, text_1));
tags.push(React.createElement("tspan", { key: i, baselineShift: "sub", style: { fontSize: (fontSize * 0.8).toString() + "px" } }, splitText));
}
else {
tags.push(React.createElement("tspan", null, text_1));
tags.push(React.createElement("tspan", { key: i }, splitText));
}

@@ -145,0 +145,0 @@ inside = !inside;

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

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

"dependencies": {
"react": "^15.6.1",
"react-dom": "^15.4.2"
"react": "^16.13.1",
"react-dom": "^16.13.1"
},

@@ -24,0 +24,0 @@ "devDependencies": {

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

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc