melody-idom
Advanced tools
Comparing version 1.2.0-4 to 1.2.0-21.2
@@ -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; |
@@ -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); |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
New author
Supply chain riskA new npm collaborator published a version of the package for the first time. New collaborators are usually benign additions to a project, but do indicate a change to the security surface area of a package.
Found 1 instance in 1 package
275736
8234
0