@toruslabs/ethereum-controllers 5.2.2 → 5.2.3

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": "@toruslabs/ethereum-controllers",
3
- "version": "5.2.2",
3
+ "version": "5.2.3",
4
4
  "homepage": "https://github.com/torusresearch/controllers#readme",
5
5
  "license": "ISC",
6
6
  "main": "dist/ethereumControllers.cjs.js",
@@ -24,7 +24,7 @@
24
24
  "@ethereumjs/util": "^9.0.1",
25
25
  "@metamask/eth-sig-util": "^7.0.1",
26
26
  "@metamask/rpc-errors": "^6.1.0",
27
- "@toruslabs/base-controllers": "^5.2.0",
27
+ "@toruslabs/base-controllers": "^5.2.3",
28
28
  "@toruslabs/http-helpers": "^6.0.0",
29
29
  "@toruslabs/openlogin-jrpc": "^6.1.0",
30
30
  "async-mutex": "^0.4.0",
@@ -64,7 +64,7 @@
64
64
  "publishConfig": {
65
65
  "access": "public"
66
66
  },
67
- "gitHead": "9643425ff580ac0b7ef27f234935f71d7b2e33b6",
67
+ "gitHead": "058a00410c045268e91be28493dcaf70f30e5acf",
68
68
  "devDependencies": {
69
69
  "@nomicfoundation/hardhat-toolbox": "^4.0.0",
70
70
  "hardhat": "^2.19.3"
@@ -119,9 +119,11 @@ export const idleTimeTracker = ((activityThresholdTime: number): { checkIfIdle:
119
119
  }, activityThresholdTime * 1000);
120
120
  };
121
121
 
122
- window.addEventListener("load", resetTimer);
123
- document.addEventListener("mousemove", resetTimer);
124
- document.addEventListener("keydown", resetTimer);
122
+ if (typeof window !== "undefined" && typeof document !== "undefined") {
123
+ window.addEventListener("load", resetTimer);
124
+ document.addEventListener("mousemove", resetTimer);
125
+ document.addEventListener("keydown", resetTimer);
126
+ }
125
127
 
126
128
  function checkIfIdle() {
127
129
  return isIdle;