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

ink

Package Overview
Dependencies
Maintainers
2
Versions
76
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

ink - npm Package Compare versions

Comparing version 2.0.0-9 to 2.0.0-10

24

build/apply-styles.js

@@ -49,32 +49,32 @@ "use strict";

if (style.padding) {
node.setMargin(_yogaLayoutPrebuilt.default.EDGE_TOP, style.padding);
node.setMargin(_yogaLayoutPrebuilt.default.EDGE_BOTTOM, style.padding);
node.setMargin(_yogaLayoutPrebuilt.default.EDGE_LEFT, style.padding);
node.setMargin(_yogaLayoutPrebuilt.default.EDGE_RIGHT, style.padding);
node.setPadding(_yogaLayoutPrebuilt.default.EDGE_TOP, style.padding);
node.setPadding(_yogaLayoutPrebuilt.default.EDGE_BOTTOM, style.padding);
node.setPadding(_yogaLayoutPrebuilt.default.EDGE_LEFT, style.padding);
node.setPadding(_yogaLayoutPrebuilt.default.EDGE_RIGHT, style.padding);
}
if (style.paddingX) {
node.setMargin(_yogaLayoutPrebuilt.default.EDGE_LEFT, style.paddingX);
node.setMargin(_yogaLayoutPrebuilt.default.EDGE_RIGHT, style.paddingX);
node.setPadding(_yogaLayoutPrebuilt.default.EDGE_LEFT, style.paddingX);
node.setPadding(_yogaLayoutPrebuilt.default.EDGE_RIGHT, style.paddingX);
}
if (style.paddingY) {
node.setMargin(_yogaLayoutPrebuilt.default.EDGE_TOP, style.paddingY);
node.setMargin(_yogaLayoutPrebuilt.default.EDGE_BOTTOM, style.paddingY);
node.setPadding(_yogaLayoutPrebuilt.default.EDGE_TOP, style.paddingY);
node.setPadding(_yogaLayoutPrebuilt.default.EDGE_BOTTOM, style.paddingY);
}
if (style.paddingTop) {
node.setMargin(_yogaLayoutPrebuilt.default.EDGE_TOP, style.paddingTop);
node.setPadding(_yogaLayoutPrebuilt.default.EDGE_TOP, style.paddingTop);
}
if (style.paddingBottom) {
node.setMargin(_yogaLayoutPrebuilt.default.EDGE_BOTTOM, style.paddingBottom);
node.setPadding(_yogaLayoutPrebuilt.default.EDGE_BOTTOM, style.paddingBottom);
}
if (style.paddingLeft) {
node.setMargin(_yogaLayoutPrebuilt.default.EDGE_LEFT, style.paddingLeft);
node.setPadding(_yogaLayoutPrebuilt.default.EDGE_LEFT, style.paddingLeft);
}
if (style.paddingRight) {
node.setMargin(_yogaLayoutPrebuilt.default.EDGE_RIGHT, style.paddingRight);
node.setPadding(_yogaLayoutPrebuilt.default.EDGE_RIGHT, style.paddingRight);
}

@@ -81,0 +81,0 @@ };

@@ -34,3 +34,3 @@ "use strict";

const textElement = (0, _dom.createNode)('span');
textElement.textContent = value;
textElement.textContent = String(value);
(0, _dom.appendChildNode)(node, textElement);

@@ -83,3 +83,3 @@ }

if (typeof value === 'string' || typeof value === 'number') {
node.childNodes[0].textContent = value;
node.childNodes[0].textContent = String(value);
}

@@ -86,0 +86,0 @@ } else if (key === 'style') {

{
"name": "ink",
"version": "2.0.0-9",
"version": "2.0.0-10",
"description": "React for CLI",

@@ -5,0 +5,0 @@ "license": "MIT",

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