Socket
Socket
Sign inDemoInstall

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 0.4.0 to 0.4.1

13

lib/diff.js

@@ -34,9 +34,4 @@ 'use strict';

vnode.instance._onUpdate = onUpdate;
const childContext = vnode.instance.getChildContext();
vnode.instance.context = Object.assign({}, context, childContext);
Object.assign(context, childContext);
vnode.instance.context = Object.assign(context, vnode.instance.getChildContext());
vnode.instance.componentWillMount();
vnode.children = vnode.instance._render();

@@ -74,3 +69,3 @@ } else {

const rerender = vnode => {
const rerender = (vnode, context) => {
const nextProps = getProps(vnode);

@@ -85,3 +80,3 @@ checkPropTypes(vnode.component, nextProps);

vnode.children = vnode.component(nextProps, {});
vnode.children = vnode.component(nextProps, context);
};

@@ -162,3 +157,3 @@

if (shouldUpdate) {
rerender(prevNode);
rerender(prevNode, context);
}

@@ -165,0 +160,0 @@

{
"name": "ink",
"version": "0.4.0",
"version": "0.4.1",
"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