clarity-visualize 0.8.19 → 0.8.21

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.
@@ -269,21 +269,21 @@ var selector = /*#__PURE__*/Object.freeze({
269
269
  reset: reset$8
270
270
  });
271
271
 
272
- var index = 1;
272
+ var index$1 = 1;
273
273
  var nodesMap = null; // Maps id => node to retrieve further node details using id.
274
- var values = [];
274
+ var values$1 = [];
275
275
  var hashMap = {};
276
276
  // The WeakMap object is a collection of key/value pairs in which the keys are weakly referenced
277
- var idMap = null; // Maps node => id.
278
- function getId(node, autogen) {
277
+ var idMap$1 = null; // Maps node => id.
278
+ function getId$1(node, autogen) {
279
279
  if (autogen === void 0) { autogen = false; }
280
280
  if (node === null) {
281
281
  return null;
282
282
  }
283
- var id = idMap.get(node);
283
+ var id = idMap$1.get(node);
284
284
  if (!id && autogen) {
285
- id = index++;
286
- idMap.set(node, id);
285
+ id = index$1++;
286
+ idMap$1.set(node, id);
287
287
  }
288
288
  return id ? id : null;
289
289
  }
@@ -291,8 +291,8 @@ function getNode(id) {
291
291
  return nodesMap.has(id) ? nodesMap.get(id) : null;
292
292
  }
293
293
  function get$2(node) {
294
- var id = getId(node);
295
- return id in values ? values[id] : null;
294
+ var id = getId$1(node);
295
+ return id in values$1 ? values$1[id] : null;
296
296
  }
297
297
  function lookup(hash) {
298
298
  return hash in hashMap ? hashMap[hash] : null;
@@ -267,21 +267,21 @@ var selector = /*#__PURE__*/Object.freeze({
267
267
  reset: reset$8
268
268
  });
269
269
 
270
- var index = 1;
270
+ var index$1 = 1;
271
271
  var nodesMap = null; // Maps id => node to retrieve further node details using id.
272
- var values = [];
272
+ var values$1 = [];
273
273
  var hashMap = {};
274
274
  // The WeakMap object is a collection of key/value pairs in which the keys are weakly referenced
275
- var idMap = null; // Maps node => id.
276
- function getId(node, autogen) {
275
+ var idMap$1 = null; // Maps node => id.
276
+ function getId$1(node, autogen) {
277
277
  if (autogen === void 0) { autogen = false; }
278
278
  if (node === null) {
279
279
  return null;
280
280
  }
281
- var id = idMap.get(node);
281
+ var id = idMap$1.get(node);
282
282
  if (!id && autogen) {
283
- id = index++;
284
- idMap.set(node, id);
283
+ id = index$1++;
284
+ idMap$1.set(node, id);
285
285
  }
286
286
  return id ? id : null;
287
287
  }
@@ -289,8 +289,8 @@ function getNode(id) {
289
289
  return nodesMap.has(id) ? nodesMap.get(id) : null;
290
290
  }
291
291
  function get$2(node) {
292
- var id = getId(node);
293
- return id in values ? values[id] : null;
292
+ var id = getId$1(node);
293
+ return id in values$1 ? values$1[id] : null;
294
294
  }
295
295
  function lookup(hash) {
296
296
  return hash in hashMap ? hashMap[hash] : null;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "clarity-visualize",
3
- "version": "0.8.19",
3
+ "version": "0.8.21",
4
4
  "description": "An analytics library that uses web page interactions to generate aggregated insights",
5
5
  "author": "Microsoft Corp.",
6
6
  "license": "MIT",
@@ -27,7 +27,7 @@
27
27
  "url": "https://github.com/Microsoft/clarity/issues"
28
28
  },
29
29
  "dependencies": {
30
- "clarity-decode": "^0.8.19"
30
+ "clarity-decode": "^0.8.21"
31
31
  },
32
32
  "devDependencies": {
33
33
  "@rollup/plugin-commonjs": "^24.0.0",