ftmocks-utils 1.4.9 → 1.5.1

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "ftmocks-utils",
3
- "version": "1.4.9",
3
+ "version": "1.5.1",
4
4
  "description": "Util functions for FtMocks",
5
5
  "main": "src/index.js",
6
6
  "scripts": {
@@ -19,8 +19,6 @@
19
19
  "homepage": "https://github.com/SodhanaLibrary/ftmocks-utils#readme",
20
20
  "dependencies": {
21
21
  "uui": "^1.0.7",
22
- "uuid": "^11.1.0",
23
- "pixelmatch": "^5.3.1",
24
- "pngjs": "^7.0.1"
22
+ "uuid": "^11.1.0"
25
23
  }
26
24
  }
@@ -652,8 +652,8 @@ const injectEventRecordingScript = async (
652
652
  });
653
653
  };
654
654
 
655
- document.addEventListener("click", (event) => {
656
- console.log('calling document.addEventListener("click")');
655
+ document.addEventListener("pointerdown", (event) => {
656
+ console.log('calling document.addEventListener("pointerdown")');
657
657
  currentEventSnapshot = document.documentElement.innerHTML;
658
658
  const currentTarget = getParentElementWithEventOrId(event, "onclick");
659
659
  const selectors = getBestSelectors(currentTarget, event);