@getpara/wagmi-v2-integration 1.4.4-dev.4 → 1.4.4

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/dist/index.js CHANGED
@@ -115,7 +115,8 @@ var ParaEIP1193Provider = class extends EventEmitter {
115
115
  const { method, params } = args;
116
116
  switch (method) {
117
117
  case "eth_accounts": {
118
- return this.accounts;
118
+ const accounts = this.accounts;
119
+ return accounts || [];
119
120
  }
120
121
  case "eth_chainId": {
121
122
  return this.currentHexChainId;
@@ -279,7 +280,7 @@ var ParaEIP1193Provider = class extends EventEmitter {
279
280
  const startTime = Date.now();
280
281
  while (Date.now() - startTime < timeoutMs) {
281
282
  const accounts = this.accounts;
282
- if (accounts.length > 0) {
283
+ if (accounts && accounts.length > 0) {
283
284
  return accounts;
284
285
  }
285
286
  await new Promise((resolve) => setTimeout(resolve, 500));
package/dist/index.js.br CHANGED
Binary file
package/dist/index.js.gz CHANGED
Binary file
package/package.json CHANGED
@@ -1,13 +1,13 @@
1
1
  {
2
2
  "name": "@getpara/wagmi-v2-integration",
3
- "version": "1.4.4-dev.4",
3
+ "version": "1.4.4",
4
4
  "type": "module",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",
7
7
  "sideEffects": false,
8
8
  "dependencies": {
9
- "@getpara/react-sdk": "1.4.3",
10
- "@getpara/viem-v2-integration": "1.4.3"
9
+ "@getpara/react-sdk": "1.4.4",
10
+ "@getpara/viem-v2-integration": "1.4.4"
11
11
  },
12
12
  "scripts": {
13
13
  "build": "rm -rf dist && yarn typegen && node ./scripts/build.mjs",
@@ -28,5 +28,5 @@
28
28
  "dist",
29
29
  "package.json"
30
30
  ],
31
- "gitHead": "e6e791d4e4f9afd94f2093d6045d686b85e5a682"
31
+ "gitHead": "9a4086c4b352fff2143d3b931d288c5ebaf127fb"
32
32
  }