@meshconnect/uwc-core 0.3.18 → 0.3.20

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": "@meshconnect/uwc-core",
3
- "version": "0.3.18",
3
+ "version": "0.3.20",
4
4
  "description": "Core functionality for Universal Wallet Connector",
5
5
  "type": "module",
6
6
  "main": "dist/index.js",
@@ -16,13 +16,13 @@
16
16
  "src"
17
17
  ],
18
18
  "dependencies": {
19
- "@meshconnect/uwc-types": "0.5.2",
20
- "@meshconnect/uwc-injected-connector": "0.6.2",
21
- "@meshconnect/uwc-wallet-connect-connector": "0.4.2",
22
- "@meshconnect/uwc-bridge-child": "0.0.3"
19
+ "@meshconnect/uwc-bridge-child": "0.0.4",
20
+ "@meshconnect/uwc-injected-connector": "0.7.0",
21
+ "@meshconnect/uwc-types": "0.5.3",
22
+ "@meshconnect/uwc-wallet-connect-connector": "0.4.3"
23
23
  },
24
24
  "devDependencies": {
25
- "typescript": "^5.9.2"
25
+ "typescript": "^5.9.3"
26
26
  },
27
27
  "publishConfig": {
28
28
  "access": "public"
@@ -56,11 +56,15 @@ const mockTransactionService = {
56
56
 
57
57
  // Mock the dependencies
58
58
  vi.mock('@meshconnect/uwc-injected-connector', () => ({
59
- InjectedConnector: vi.fn(() => mockInjectedConnector)
59
+ InjectedConnector: vi.fn().mockImplementation(function () {
60
+ return mockInjectedConnector
61
+ })
60
62
  }))
61
63
 
62
64
  vi.mock('@meshconnect/uwc-wallet-connect-connector', () => ({
63
- WalletConnectConnector: vi.fn(() => mockWalletConnectConnector)
65
+ WalletConnectConnector: vi.fn().mockImplementation(function () {
66
+ return mockWalletConnectConnector
67
+ })
64
68
  }))
65
69
 
66
70
  vi.mock('@meshconnect/uwc-bridge-child', () => ({
@@ -68,27 +72,39 @@ vi.mock('@meshconnect/uwc-bridge-child', () => ({
68
72
  }))
69
73
 
70
74
  vi.mock('./managers/session-manager', () => ({
71
- SessionManager: vi.fn(() => mockSessionManager)
75
+ SessionManager: vi.fn().mockImplementation(function () {
76
+ return mockSessionManager
77
+ })
72
78
  }))
73
79
 
74
80
  vi.mock('./managers/event-manager', () => ({
75
- EventManager: vi.fn(() => mockEventManager)
81
+ EventManager: vi.fn().mockImplementation(function () {
82
+ return mockEventManager
83
+ })
76
84
  }))
77
85
 
78
86
  vi.mock('./services/connection-service', () => ({
79
- ConnectionService: vi.fn(() => mockConnectionService)
87
+ ConnectionService: vi.fn().mockImplementation(function () {
88
+ return mockConnectionService
89
+ })
80
90
  }))
81
91
 
82
92
  vi.mock('./services/network-switch-service', () => ({
83
- NetworkSwitchService: vi.fn(() => mockNetworkSwitchService)
93
+ NetworkSwitchService: vi.fn().mockImplementation(function () {
94
+ return mockNetworkSwitchService
95
+ })
84
96
  }))
85
97
 
86
98
  vi.mock('./services/signature-service', () => ({
87
- SignatureService: vi.fn(() => mockSignatureService)
99
+ SignatureService: vi.fn().mockImplementation(function () {
100
+ return mockSignatureService
101
+ })
88
102
  }))
89
103
 
90
104
  vi.mock('./services/transaction-service', () => ({
91
- TransactionService: vi.fn(() => mockTransactionService)
105
+ TransactionService: vi.fn().mockImplementation(function () {
106
+ return mockTransactionService
107
+ })
92
108
  }))
93
109
 
94
110
  vi.mock('./utils/network-rpc-utils', () => ({