@memlab/cli 2.0.1 → 2.0.2

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.
@@ -116,7 +116,7 @@ class InteractiveHeapViewCommand extends BaseCommand_1.default {
116
116
  getDetachedNodes(heap) {
117
117
  return __awaiter(this, void 0, void 0, function* () {
118
118
  const ret = [];
119
- const idSet = new Set();
119
+ const idSet = new core_1.NumericSet();
120
120
  heap.nodes.forEach(node => {
121
121
  if (core_1.utils.isDetachedDOMNode(node) || core_1.utils.isDetachedFiberNode(node)) {
122
122
  idSet.add(node.id);
@@ -54,7 +54,7 @@ class HeapViewController {
54
54
  }
55
55
  clusterComponentDataItems(nodes) {
56
56
  const ret = [];
57
- const nodeIds = new Set(nodes
57
+ const nodeIds = new core_1.NumericSet(nodes
58
58
  .filter(node => node.heapObject)
59
59
  .map(node => { var _a, _b; return (_b = (_a = node.heapObject) === null || _a === void 0 ? void 0 : _a.id) !== null && _b !== void 0 ? _b : -1; }));
60
60
  const clusters = core_1.analysis.clusterHeapObjects(nodeIds, this.heap);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@memlab/cli",
3
- "version": "2.0.1",
3
+ "version": "2.0.2",
4
4
  "license": "MIT",
5
5
  "description": "command line interface for memlab",
6
6
  "author": "Liang Gong <lgong@meta.com>",
@@ -26,10 +26,10 @@
26
26
  "access": "public"
27
27
  },
28
28
  "dependencies": {
29
- "@memlab/api": "^2.0.1",
30
- "@memlab/core": "^2.0.1",
31
- "@memlab/e2e": "^2.0.1",
32
- "@memlab/heap-analysis": "^2.0.1",
29
+ "@memlab/api": "^2.0.2",
30
+ "@memlab/core": "^2.0.2",
31
+ "@memlab/e2e": "^2.0.2",
32
+ "@memlab/heap-analysis": "^2.0.2",
33
33
  "ansi": "^0.3.1",
34
34
  "babar": "^0.2.0",
35
35
  "blessed": "^0.1.81",