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

cascade

Package Overview
Dependencies
Maintainers
1
Versions
68
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

cascade - npm Package Compare versions

Comparing version 0.4.1 to 0.4.2

8

dist/scripts/dom/Component.js

@@ -209,6 +209,12 @@ Object.defineProperty(exports, "__esModule", { value: true });

let innerOldRoot;
let innerRoot;
if (oldRoot) {
innerOldRoot = Cascade_1.default.peekDirty(oldRoot, 'root');
innerRoot = oldRoot.update(newRootComponentNode.props, ...newRootComponentNode.children);
}
let innerRoot = oldRoot.update(newRootComponentNode.props, ...newRootComponentNode.children);
else {
console.error('Old Component has never been rendered. Replacing with new Component.');
newRootComponentNode.toComponent();
innerRoot = Cascade_1.default.peekDirty(newRootComponentNode.component, 'root');
}
if (!innerOldRoot) {

@@ -215,0 +221,0 @@ switch (typeof innerRoot) {

2

package.json
{
"name": "cascade",
"version": "0.4.1",
"version": "0.4.2",
"description": "A modern library for creating user interfaces.",

@@ -5,0 +5,0 @@ "author": "Sean Johnson <sjohnson@sjohnsonaz.com>",

@@ -289,7 +289,12 @@ import Cascade from '../cascade/Cascade';

let innerOldRoot;
let innerRoot;
// TODO: Fix this. It should always have a value, but occasionally it doesn't.
if (oldRoot) {
innerOldRoot = Cascade.peekDirty(oldRoot, 'root');
innerRoot = oldRoot.update(newRootComponentNode.props, ...newRootComponentNode.children);
} else {
console.error('Old Component has never been rendered. Replacing with new Component.');
newRootComponentNode.toComponent();
innerRoot = Cascade.peekDirty(newRootComponentNode.component, 'root');
}
let innerRoot = oldRoot.update(newRootComponentNode.props, ...newRootComponentNode.children);

@@ -296,0 +301,0 @@ if (!innerOldRoot) {

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