@edgeandnode/graph-auth-kit 7.4.1 → 7.5.0-states-1752521181825-6c1260222f8def2e2f57e6a4068ce1b416834153
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/{GraphAuthKitInner.context-B8vsvUDy.js → GraphAuthKitInner.context-B2jD5URF.js} +2 -3
- package/dist/client.d.ts +157 -9
- package/dist/client.d.ts.map +1 -1
- package/dist/constants.d.ts +9 -0
- package/dist/constants.d.ts.map +1 -1
- package/dist/ens/index.js +1 -1
- package/dist/{hooks-twDEXOVd.js → hooks-LyNs2vSu.js} +1 -2
- package/dist/index.js +6 -6
- package/dist/safe/SafeEthersSigner.d.ts.map +1 -1
- package/dist/safe/index.js +2 -2
- package/dist/safe/utils.d.ts.map +1 -1
- package/dist/test-harness/index.js +1 -1
- package/dist/test-harness/utils.d.ts +8 -8
- package/dist/types.d.ts +3 -3
- package/dist/{useGraphAuthKitEnsNames-73LGWzqe.js → useGraphAuthKitEnsNames-BVZi8aAz.js} +2 -2
- package/dist/{useWaitForSafeTransaction-BWAytvN4.js → useWaitForSafeTransaction-BLBj56xJ.js} +2 -2
- package/dist/{utils-DAZvb54b.js → utils-DjTu6Mbs.js} +2 -2
- package/package.json +18 -18
package/dist/{GraphAuthKitInner.context-B8vsvUDy.js → GraphAuthKitInner.context-B2jD5URF.js}
RENAMED
|
@@ -7,7 +7,6 @@ import { z } from "zod";
|
|
|
7
7
|
import { l1Mainnet, l1Testnet, l2Mainnet, l2Testnet } from "@edgeandnode/common";
|
|
8
8
|
import { mainnet, sepolia, arbitrum, arbitrumSepolia } from "viem/chains";
|
|
9
9
|
import { injected, coinbaseWallet, walletConnect } from "wagmi/connectors";
|
|
10
|
-
import "@safe-global/protocol-kit";
|
|
11
10
|
import { providers } from "ethers";
|
|
12
11
|
const AUTH_STORAGE_KEY = "thegraph__authstate";
|
|
13
12
|
const MULTISIG_AUTH_STORAGE_KEY = "multisig";
|
|
@@ -226,8 +225,8 @@ async function createApiKit(chainId) {
|
|
|
226
225
|
return apiKit;
|
|
227
226
|
}
|
|
228
227
|
async function createSafe(config) {
|
|
229
|
-
const { default:
|
|
230
|
-
const SafeClass = typeof
|
|
228
|
+
const { default: Safe } = await import("@safe-global/protocol-kit");
|
|
229
|
+
const SafeClass = typeof Safe === "function" ? Safe : Safe.default;
|
|
231
230
|
const protocolKit = await SafeClass.init(config);
|
|
232
231
|
return protocolKit;
|
|
233
232
|
}
|