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.
@@ -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.type = "function";
63
+ debugNode.kind = "function";
64
64
  } else {
65
- debugNode.type = "null";
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 uniDirFunctionComponentsTree() {
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 uniDirComponentsTree() {
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
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "sefiutils",
3
- "version": "1.0.12",
3
+ "version": "1.0.14",
4
4
  "description": "Utilities (and Jest tests) for Selenium Webdriver Tests and some React tools as well",
5
5
  "author": "Jens von Pilgrim <jens.vonpilgrim@bht-berlin.de>",
6
6
  "license": "EPL-2.0",