@searchspring/snap-tracker 0.42.3 → 0.43.0

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.
@@ -459,9 +459,9 @@ export class Tracker {
459
459
  if (this.mode !== AppMode.production) {
460
460
  return;
461
461
  }
462
- let savedEvents = JSON.parse(this.localStorage.get(LOCALSTORAGE_BEACON_POOL_NAME) || '[]');
462
+ const savedEvents = JSON.parse(this.localStorage.get(LOCALSTORAGE_BEACON_POOL_NAME) || '[]');
463
463
  if (eventsToSend) {
464
- let eventsClone = [];
464
+ const eventsClone = [];
465
465
  savedEvents.forEach((_event, idx) => {
466
466
  // using Object.assign since we are not modifying nested properties
467
467
  eventsClone.push(Object.assign({}, _event));
@@ -471,7 +471,7 @@ export class Tracker {
471
471
  const stringyEventsClone = JSON.stringify(eventsClone);
472
472
  // de-dupe events
473
473
  eventsToSend.forEach((event, idx) => {
474
- let newEvent = Object.assign({}, event);
474
+ const newEvent = Object.assign({}, event);
475
475
  delete newEvent.id;
476
476
  delete newEvent.pid;
477
477
  if (stringyEventsClone.indexOf(JSON.stringify(newEvent)) == -1) {
@@ -568,7 +568,7 @@ export class Tracker {
568
568
  elem = event && event.target;
569
569
  while (Object.keys(attributes).length == 0 && elem !== null && levels <= MAX_PARENT_LEVELS) {
570
570
  Object.values(elem.attributes).forEach((attr) => {
571
- var attrName = attr.nodeName;
571
+ const attrName = attr.nodeName;
572
572
  if (attributeList.indexOf(attrName) != -1) {
573
573
  attributes[attrName] = elem && elem.getAttribute(attrName);
574
574
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@searchspring/snap-tracker",
3
- "version": "0.42.3",
3
+ "version": "0.43.0",
4
4
  "description": "Snap Tracker",
5
5
  "main": "dist/cjs/index.js",
6
6
  "module": "dist/esm/index.js",
@@ -20,15 +20,15 @@
20
20
  "test:watch": "jest --watch"
21
21
  },
22
22
  "dependencies": {
23
- "@searchspring/snap-store-mobx": "^0.42.3",
24
- "@searchspring/snap-toolbox": "^0.42.3",
23
+ "@searchspring/snap-store-mobx": "^0.43.0",
24
+ "@searchspring/snap-toolbox": "^0.43.0",
25
25
  "@types/uuid": "8.3.4",
26
- "deepmerge": "4.2.2",
26
+ "deepmerge": "4.3.1",
27
27
  "uuid": "8.3.2"
28
28
  },
29
29
  "sideEffects": false,
30
30
  "files": [
31
31
  "dist/**/*"
32
32
  ],
33
- "gitHead": "1f4391fecb93cba1e227bee2b965a9903b29c65b"
33
+ "gitHead": "60b06644edb6f2f8258334321e15cafb5d7d4888"
34
34
  }