sefiutils 1.0.12 → 1.0.14
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/lib/execScripts/fiber.js +5 -4
- package/package.json +1 -1
package/lib/execScripts/fiber.js
CHANGED
|
@@ -60,9 +60,9 @@ function createComponentNode(fiber/* : Fiber */, parent/* : ComponentNode|undefi
|
|
|
60
60
|
|
|
61
61
|
debugNode.name = debugType.displayName;
|
|
62
62
|
if (typeof debugType.render === 'function') {
|
|
63
|
-
debugNode.
|
|
63
|
+
debugNode.kind = "function";
|
|
64
64
|
} else {
|
|
65
|
-
debugNode.
|
|
65
|
+
debugNode.kind = "null";
|
|
66
66
|
}
|
|
67
67
|
node.parent = debugNode;
|
|
68
68
|
if (parent) {
|
|
@@ -171,7 +171,7 @@ function removeParentReferences(node/* : ComponentNode */) {
|
|
|
171
171
|
|
|
172
172
|
}
|
|
173
173
|
|
|
174
|
-
function
|
|
174
|
+
function uniDirComponentsTree() {
|
|
175
175
|
const tree = getComponentTree(document);
|
|
176
176
|
if (!tree) {
|
|
177
177
|
return;
|
|
@@ -181,11 +181,12 @@ function uniDirFunctionComponentsTree() {
|
|
|
181
181
|
return tree;
|
|
182
182
|
}
|
|
183
183
|
|
|
184
|
-
function
|
|
184
|
+
function uniDirFunctionComponentsTree() {
|
|
185
185
|
const tree = getComponentTree(document);
|
|
186
186
|
if (!tree) {
|
|
187
187
|
return;
|
|
188
188
|
}
|
|
189
|
+
retainFunctions(tree);
|
|
189
190
|
removeParentReferences(tree);
|
|
190
191
|
return tree;
|
|
191
192
|
}
|
package/package.json
CHANGED