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

react-figma

Package Overview
Dependencies
Maintainers
1
Versions
113
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

react-figma - npm Package Compare versions

Comparing version 0.0.39 to 0.0.40

2

package.json
{
"name": "react-figma",
"version": "0.0.39",
"version": "0.0.40",
"description": "Render React components to Figma",

@@ -5,0 +5,0 @@ "scripts": {

@@ -11,2 +11,3 @@ "use strict";

var blendMixin_1 = require("../mixins/blendMixin");
var isValidSize_1 = require("../helpers/isValidSize");
var textNodePropsAssign = propsAssign_1.propsAssign([

@@ -41,3 +42,12 @@ 'characters',

}
textNode.textAutoResize = props.textAutoResize || (props.hasDefinedWidth ? 'HEIGHT' : 'WIDTH_AND_HEIGHT');
if (props.hasDefinedWidth &&
isValidSize_1.isValidSize(props.width) &&
isValidSize_1.isValidSize(textNode.height) &&
!props.textAutoResize) {
textNode.resize(props.width, textNode.height);
textNode.textAutoResize = 'HEIGHT';
}
else {
textNode.textAutoResize = props.textAutoResize || 'WIDTH_AND_HEIGHT';
}
textNodePropsAssign(textNode)(props);

@@ -44,0 +54,0 @@ }

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