@wagmi/connectors 5.3.3 → 5.3.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.
@@ -1,2 +1,2 @@
1
- export const version = '5.3.3';
1
+ export const version = '5.3.4';
2
2
  //# sourceMappingURL=version.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"safe.d.ts","sourceRoot":"","sources":["../../src/safe.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,iCAAiC,CAAA;AACtE,OAAO,KAAK,EAAE,IAAI,EAAE,MAAM,4BAA4B,CAAA;AAMtD,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,sBAAsB,CAAA;AAGnD,MAAM,MAAM,cAAc,GAAG,OAAO,CAClC,IAAI,GAAG;IACL;;;;;;;OAOG;IACH,cAAc,CAAC,EAAE,OAAO,GAAG,SAAS,CAAA;IACpC;;;;;OAKG;IACH,uBAAuB,CAAC,EAAE,MAAM,GAAG,SAAS,CAAA;CAC7C,CACF,CAAA;AAGD,wBAAgB,IAAI,CAAC,UAAU,GAAE,cAAmB;yBAKR,IAAI;GAmG/C;yBAxGe,IAAI"}
1
+ {"version":3,"file":"safe.d.ts","sourceRoot":"","sources":["../../src/safe.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,iCAAiC,CAAA;AACtE,OAAO,KAAK,EAAE,IAAI,EAAE,MAAM,4BAA4B,CAAA;AAMtD,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,sBAAsB,CAAA;AAGnD,MAAM,MAAM,cAAc,GAAG,OAAO,CAClC,IAAI,GAAG;IACL;;;;;;;OAOG;IACH,cAAc,CAAC,EAAE,OAAO,GAAG,SAAS,CAAA;IACpC;;;;;OAKG;IACH,uBAAuB,CAAC,EAAE,MAAM,GAAG,SAAS,CAAA;CAC7C,CACF,CAAA;AAGD,wBAAgB,IAAI,CAAC,UAAU,GAAE,cAAmB;yBAKR,IAAI;GA2G/C;yBAhHe,IAAI"}
@@ -1,2 +1,2 @@
1
- export declare const version = "5.3.3";
1
+ export declare const version = "5.3.4";
2
2
  //# sourceMappingURL=version.d.ts.map
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@wagmi/connectors",
3
3
  "description": "Collection of connectors for Wagmi",
4
- "version": "5.3.3",
4
+ "version": "5.3.4",
5
5
  "license": "MIT",
6
6
  "repository": {
7
7
  "type": "git",
@@ -30,7 +30,7 @@
30
30
  "peerDependencies": {
31
31
  "typescript": ">=5.0.4",
32
32
  "viem": "2.x",
33
- "@wagmi/core": "2.14.1"
33
+ "@wagmi/core": "2.14.2"
34
34
  },
35
35
  "peerDependenciesMeta": {
36
36
  "typescript": {
package/src/safe.ts CHANGED
@@ -98,9 +98,17 @@ export function safe(parameters: SafeParameters = {}) {
98
98
  timeout: parameters.unstable_getInfoTimeout ?? 10,
99
99
  })
100
100
  if (!safe) throw new Error('Could not load Safe information')
101
- const { SafeAppProvider } = await import(
102
- '@safe-global/safe-apps-provider'
103
- )
101
+ // Unwrapping import for Vite compatibility.
102
+ // See: https://github.com/vitejs/vite/issues/9703
103
+ const SafeAppProvider = await (async () => {
104
+ const Provider = await import('@safe-global/safe-apps-provider')
105
+ if (
106
+ typeof Provider.SafeAppProvider !== 'function' &&
107
+ typeof Provider.default.SafeAppProvider === 'function'
108
+ )
109
+ return Provider.default.SafeAppProvider
110
+ return Provider.SafeAppProvider
111
+ })()
104
112
  provider_ = new SafeAppProvider(safe, sdk)
105
113
  }
106
114
  return provider_
package/src/version.ts CHANGED
@@ -1 +1 @@
1
- export const version = '5.3.3'
1
+ export const version = '5.3.4'