Skip to content

Commit ddb8cdc

Browse files
Merge pull request #60 from Web3Auth/feat/upgrade-deps
upgrade deps
2 parents 0b1502e + 65fdac2 commit ddb8cdc

File tree

10 files changed

+2969
-3575
lines changed

10 files changed

+2969
-3575
lines changed

example/react-app/package-lock.json

Lines changed: 1214 additions & 2156 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

example/react-app/package.json

Lines changed: 20 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -4,26 +4,26 @@
44
"private": true,
55
"dependencies": {
66
"@react-oauth/google": "^0.12.1",
7-
"@testing-library/jest-dom": "^6.4.6",
8-
"@testing-library/react": "^16.0.0",
7+
"@testing-library/jest-dom": "^6.5.0",
8+
"@testing-library/react": "^16.0.1",
99
"@testing-library/user-event": "^14.5.2",
10-
"@toruslabs/openlogin-utils": "^8.2.1",
11-
"@types/jest": "^29.5.12",
10+
"@types/jest": "^29.5.13",
1211
"@types/node": "^20.14.11",
13-
"@types/react": "^18.3.3",
12+
"@types/react": "^18.3.7",
1413
"@types/react-dom": "^18.3.0",
15-
"@web3auth/base": "^8.8.0",
16-
"@web3auth/ethereum-provider": "^8.10.2",
17-
"@web3auth/passkeys-sfa-plugin": "^8.1.0",
18-
"@web3auth/single-factor-auth": "^8.0.2",
19-
"@web3auth/wallet-services-plugin": "^8.10.2",
14+
"@web3auth/auth": "^9.3.3",
15+
"@web3auth/base": "^9.0.0",
16+
"@web3auth/ethereum-provider": "^9.0.0",
17+
"@web3auth/passkeys-sfa-plugin": "8.1.0",
18+
"@web3auth/single-factor-auth": "file:../..",
19+
"@web3auth/wallet-services-plugin": "^9.0.0",
2020
"bowser": "^2.11.0",
21-
"ethers": "^6.13.1",
21+
"ethers": "^6.13.2",
2222
"react": "^18.3.1",
2323
"react-dom": "^18.3.1",
24-
"react-router-dom": "^6.25.0",
24+
"react-router-dom": "^6.26.2",
2525
"source-map-loader": "^5.0.0",
26-
"typescript": "^5.5.3"
26+
"typescript": "^5.6.2"
2727
},
2828
"eslintConfig": {
2929
"extends": [
@@ -42,20 +42,20 @@
4242
]
4343
},
4444
"devDependencies": {
45-
"@toruslabs/eslint-config-react": "^3.4.1",
45+
"@toruslabs/eslint-config-react": "^3.4.3",
4646
"@vitejs/plugin-react": "^4.3.1",
4747
"assert": "^2.1.0",
48-
"autoprefixer": "^10.4.19",
48+
"autoprefixer": "^10.4.20",
4949
"buffer": "^6.0.3",
50-
"husky": "^9.0.11",
51-
"lint-staged": "^15.2.7",
50+
"husky": "^9.1.6",
51+
"lint-staged": "^15.2.10",
5252
"lodash-es": "^4.17.21",
53-
"postcss": "^8.4.39",
53+
"postcss": "^8.4.47",
5454
"prettier": "^3.3.3",
5555
"process": "^0.11.10",
5656
"source-map-explorer": "^2.5.3",
57-
"tailwindcss": "^3.4.6",
58-
"vite": "^5.3.4"
57+
"tailwindcss": "^3.4.12",
58+
"vite": "^5.4.6"
5959
},
6060
"scripts": {
6161
"start": "vite",

example/react-app/src/services/playground.tsx

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
import { CredentialResponse, googleLogout } from "@react-oauth/google";
2-
import { OpenloginUserInfo } from "@toruslabs/openlogin-utils";
2+
import { AuthUserInfo } from "@web3auth/auth";
33
import { CHAIN_NAMESPACES, IProvider, log, WEB3AUTH_NETWORK } from "@web3auth/base";
44
import { EthereumPrivateKeyProvider } from "@web3auth/ethereum-provider";
55
import { PasskeysPlugin } from "@web3auth/passkeys-sfa-plugin";
@@ -23,7 +23,7 @@ export interface IPlaygroundContext {
2323
chainId: string;
2424
isLoggedIn: boolean;
2525
isLoading: boolean;
26-
userInfo: OpenloginUserInfo | null;
26+
userInfo: AuthUserInfo | null;
2727
playgroundConsoleTitle: string;
2828
playgroundConsoleData: string;
2929
hasPasskeys: boolean;
@@ -36,7 +36,7 @@ export interface IPlaygroundContext {
3636
registerPasskey: () => void;
3737
unlinkPasskey: (id: number) => void;
3838
logout: () => void;
39-
getUserInfo: () => Promise<OpenloginUserInfo | null>;
39+
getUserInfo: () => Promise<AuthUserInfo | null>;
4040
showCheckout: () => void;
4141
showWalletUI: () => void;
4242
showWalletScanner: () => void;
@@ -122,7 +122,7 @@ export function Playground({ children }: IPlaygroundProps) {
122122
const [wsPlugin, setWsPlugin] = useState<WalletServicesPlugin | null>(null);
123123
const [isLoading, setIsLoading] = useState(false);
124124
const [isLoggedIn, setIsLoggedIn] = useState(false);
125-
const [userInfo, setUserInfo] = useState<OpenloginUserInfo | null>(null);
125+
const [userInfo, setUserInfo] = useState<AuthUserInfo | null>(null);
126126
const [address, setAddress] = useState<string>("");
127127
const [balance, setBalance] = useState<string>("");
128128
const [chainId, setChainId] = useState<string>("");
@@ -283,7 +283,7 @@ export function Playground({ children }: IPlaygroundProps) {
283283
uiConsole("Logged out");
284284
}, [web3authSFAuth]);
285285

286-
const getUserInfo = useCallback(async (): Promise<OpenloginUserInfo | null> => {
286+
const getUserInfo = useCallback(async (): Promise<AuthUserInfo | null> => {
287287
if (web3authSFAuth && web3authSFAuth?.connected) {
288288
const useInfo = await web3authSFAuth?.getUserInfo();
289289
setPlaygroundConsoleTitle("User Info Console");

0 commit comments

Comments
 (0)