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

melody-idom

Package Overview
Dependencies
Maintainers
3
Versions
84
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

melody-idom - npm Package Compare versions

Comparing version 1.2.0-4 to 1.2.0-21.2

1

built/core.d.ts

@@ -14,2 +14,3 @@ import { enqueueComponent } from './renderQueue';

notify(): void;
type: String;
}

@@ -16,0 +17,0 @@ declare const patchInner: (node: any, fn: any, data: any) => any;

22

built/renderQueue.js

@@ -57,13 +57,15 @@ /**

}
// 2: Is the parent of this component already scheduled for an update?
if (getParent(component) === head.component) {
// if so: we don't need to do anything
return;
if (component.type !== 'streaming') {
// 2: Is the parent of this component already scheduled for an update?
if (getParent(component) === head.component) {
// if so: we don't need to do anything
return;
}
// 3: Is the component a parent of a node within the queue?
if (getParent(head.component) === component) {
// if so: replace the child with its parent
head.component = component;
return;
}
}
// 3: Is the component a parent of a node within the queue?
if (getParent(head.component) === component) {
// if so: replace the child with its parent
head.component = component;
return;
}
if (head.next === NIL) {

@@ -70,0 +72,0 @@ // insert the new node at the end of the list

@@ -53,7 +53,7 @@ /**

/*
* Checks to see if one or more attributes have changed for a given Element.
* When no attributes have changed, this is much faster than checking each
* individual argument. When attributes have changed, the overhead of this is
* minimal.
*/
* Checks to see if one or more attributes have changed for a given Element.
* When no attributes have changed, this is much faster than checking each
* individual argument. When attributes have changed, the overhead of this is
* minimal.
*/
var attrsArr = data.attrsArr;

@@ -280,5 +280,5 @@ var newAttrs = data.newAttrs;

/*
* Call the formatter function directly to prevent leaking arguments.
* https://github.com/google/incremental-dom/pull/204#issuecomment-178223574
*/
* Call the formatter function directly to prevent leaking arguments.
* https://github.com/google/incremental-dom/pull/204#issuecomment-178223574
*/
var fn = arguments[i];

@@ -285,0 +285,0 @@ formatted = fn(formatted);

@@ -1102,13 +1102,15 @@ import _debounce from 'lodash/debounce';

}
// 2: Is the parent of this component already scheduled for an update?
if (getParent(component$$1) === head.component) {
// if so: we don't need to do anything
return;
if (component$$1.type !== 'streaming') {
// 2: Is the parent of this component already scheduled for an update?
if (getParent(component$$1) === head.component) {
// if so: we don't need to do anything
return;
}
// 3: Is the component a parent of a node within the queue?
if (getParent(head.component) === component$$1) {
// if so: replace the child with its parent
head.component = component$$1;
return;
}
}
// 3: Is the component a parent of a node within the queue?
if (getParent(head.component) === component$$1) {
// if so: replace the child with its parent
head.component = component$$1;
return;
}
if (head.next === NIL) {

@@ -1571,7 +1573,7 @@ // insert the new node at the end of the list

/*
* Checks to see if one or more attributes have changed for a given Element.
* When no attributes have changed, this is much faster than checking each
* individual argument. When attributes have changed, the overhead of this is
* minimal.
*/
* Checks to see if one or more attributes have changed for a given Element.
* When no attributes have changed, this is much faster than checking each
* individual argument. When attributes have changed, the overhead of this is
* minimal.
*/
var attrsArr = data.attrsArr;

@@ -1798,5 +1800,5 @@ var newAttrs = data.newAttrs;

/*
* Call the formatter function directly to prevent leaking arguments.
* https://github.com/google/incremental-dom/pull/204#issuecomment-178223574
*/
* Call the formatter function directly to prevent leaking arguments.
* https://github.com/google/incremental-dom/pull/204#issuecomment-178223574
*/
var fn = arguments[i];

@@ -1803,0 +1805,0 @@ formatted = fn(formatted);

@@ -1108,13 +1108,15 @@ 'use strict';

}
// 2: Is the parent of this component already scheduled for an update?
if (getParent(component$$1) === head.component) {
// if so: we don't need to do anything
return;
if (component$$1.type !== 'streaming') {
// 2: Is the parent of this component already scheduled for an update?
if (getParent(component$$1) === head.component) {
// if so: we don't need to do anything
return;
}
// 3: Is the component a parent of a node within the queue?
if (getParent(head.component) === component$$1) {
// if so: replace the child with its parent
head.component = component$$1;
return;
}
}
// 3: Is the component a parent of a node within the queue?
if (getParent(head.component) === component$$1) {
// if so: replace the child with its parent
head.component = component$$1;
return;
}
if (head.next === NIL) {

@@ -1577,7 +1579,7 @@ // insert the new node at the end of the list

/*
* Checks to see if one or more attributes have changed for a given Element.
* When no attributes have changed, this is much faster than checking each
* individual argument. When attributes have changed, the overhead of this is
* minimal.
*/
* Checks to see if one or more attributes have changed for a given Element.
* When no attributes have changed, this is much faster than checking each
* individual argument. When attributes have changed, the overhead of this is
* minimal.
*/
var attrsArr = data.attrsArr;

@@ -1804,5 +1806,5 @@ var newAttrs = data.newAttrs;

/*
* Call the formatter function directly to prevent leaking arguments.
* https://github.com/google/incremental-dom/pull/204#issuecomment-178223574
*/
* Call the formatter function directly to prevent leaking arguments.
* https://github.com/google/incremental-dom/pull/204#issuecomment-178223574
*/
var fn = arguments[i];

@@ -1809,0 +1811,0 @@ formatted = fn(formatted);

{
"name": "melody-idom",
"version": "1.2.0-4",
"version": "1.2.0-21.2",
"description": "",

@@ -5,0 +5,0 @@ "main": "./lib/index.js",

@@ -46,2 +46,3 @@ /**

notify(): void;
type: String;
}

@@ -48,0 +49,0 @@

@@ -93,13 +93,15 @@ /**

// 2: Is the parent of this component already scheduled for an update?
if (getParent(component) === head.component) {
// if so: we don't need to do anything
return;
}
if (component.type !== 'streaming') {
// 2: Is the parent of this component already scheduled for an update?
if (getParent(component) === head.component) {
// if so: we don't need to do anything
return;
}
// 3: Is the component a parent of a node within the queue?
if (getParent(head.component) === component) {
// if so: replace the child with its parent
head.component = component;
return;
// 3: Is the component a parent of a node within the queue?
if (getParent(head.component) === component) {
// if so: replace the child with its parent
head.component = component;
return;
}
}

@@ -106,0 +108,0 @@

@@ -72,7 +72,7 @@ /**

/*
* Checks to see if one or more attributes have changed for a given Element.
* When no attributes have changed, this is much faster than checking each
* individual argument. When attributes have changed, the overhead of this is
* minimal.
*/
* Checks to see if one or more attributes have changed for a given Element.
* When no attributes have changed, this is much faster than checking each
* individual argument. When attributes have changed, the overhead of this is
* minimal.
*/
const attrsArr = data.attrsArr;

@@ -329,5 +329,5 @@ const newAttrs = data.newAttrs;

/*
* Call the formatter function directly to prevent leaking arguments.
* https://github.com/google/incremental-dom/pull/204#issuecomment-178223574
*/
* Call the formatter function directly to prevent leaking arguments.
* https://github.com/google/incremental-dom/pull/204#issuecomment-178223574
*/
var fn = arguments[i];

@@ -334,0 +334,0 @@ formatted = fn(formatted);

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