@turnkey/react-wallet-kit 2.5.0 → 2.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.
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Provider.d.ts","sourceRoot":"","sources":["../../../src/providers/client/Provider.tsx"],"names":[],"mappings":"AAuIA,OAAO,EAAE,SAAS,EAA4C,MAAM,OAAO,CAAC;AAyB5E,OAAO,EACL,KAAK,gBAAgB,EACrB,KAAK,qBAAqB,EAM3B,MAAM,kBAAkB,CAAC;AA0D1B;;GAEG;AACH,UAAU,mBAAmB;IAC3B,QAAQ,EAAE,SAAS,CAAC;IACpB,MAAM,EAAE,qBAAqB,CAAC;IAC9B,SAAS,CAAC,EAAE,gBAAgB,GAAG,SAAS,CAAC;CAC1C;AAED;;;;;;;;;;;;;;;;;;;;;;;;;GAyBG;AACH,eAAO,MAAM,cAAc,EAAE,KAAK,CAAC,EAAE,CAAC,mBAAmB,
|
|
1
|
+
{"version":3,"file":"Provider.d.ts","sourceRoot":"","sources":["../../../src/providers/client/Provider.tsx"],"names":[],"mappings":"AAuIA,OAAO,EAAE,SAAS,EAA4C,MAAM,OAAO,CAAC;AAyB5E,OAAO,EACL,KAAK,gBAAgB,EACrB,KAAK,qBAAqB,EAM3B,MAAM,kBAAkB,CAAC;AA0D1B;;GAEG;AACH,UAAU,mBAAmB;IAC3B,QAAQ,EAAE,SAAS,CAAC;IACpB,MAAM,EAAE,qBAAqB,CAAC;IAC9B,SAAS,CAAC,EAAE,gBAAgB,GAAG,SAAS,CAAC;CAC1C;AAED;;;;;;;;;;;;;;;;;;;;;;;;;GAyBG;AACH,eAAO,MAAM,cAAc,EAAE,KAAK,CAAC,EAAE,CAAC,mBAAmB,CA0yMxD,CAAC"}
|
|
@@ -4079,8 +4079,16 @@ const ClientProvider = ({
|
|
|
4079
4079
|
clientParamsRef.current = clientParams;
|
|
4080
4080
|
}
|
|
4081
4081
|
setMasterConfig(buildConfig(proxyAuthConfig, clientParams));
|
|
4082
|
-
} catch {
|
|
4082
|
+
} catch (error) {
|
|
4083
4083
|
setClientState(base.ClientState.Error);
|
|
4084
|
+
// Without this the failure is silent: the provider goes to Error, every
|
|
4085
|
+
// guarded method then throws "Config is not ready yet!", and the cause
|
|
4086
|
+
// never reaches the integrator.
|
|
4087
|
+
if (error instanceof sdkTypes.TurnkeyError || error instanceof sdkTypes.TurnkeyNetworkError) {
|
|
4088
|
+
callbacks?.onError?.(error);
|
|
4089
|
+
} else {
|
|
4090
|
+
callbacks?.onError?.(new sdkTypes.TurnkeyError(`Failed to fetch the wallet kit configuration`, sdkTypes.TurnkeyErrorCodes.INITIALIZE_CLIENT_ERROR, error));
|
|
4091
|
+
}
|
|
4084
4092
|
}
|
|
4085
4093
|
};
|
|
4086
4094
|
fetchProxyAuthConfig();
|