Skip to content

Commit 6e8bcdb

Browse files
authored
Update Dependencies (#8)
- pnpm update - remove mintbase-js deps - fix remaining vulnerabilities with overrides
1 parent 3ff85ea commit 6e8bcdb

File tree

11 files changed

+641
-875
lines changed

11 files changed

+641
-875
lines changed

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1 +1,2 @@
11
node_modules
2+
dist

dist/index.d.mts

Lines changed: 14 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,5 +34,18 @@ type UseNearPriceReturn = {
3434
error: string | null;
3535
};
3636
declare const useNearPrice: () => UseNearPriceReturn;
37+
interface ParsedDataReturn<T> {
38+
error?: null | string;
39+
data?: T | null;
40+
}
41+
interface NearPriceData {
42+
price?: string;
43+
}
44+
interface CoinGeckoNearPriceData {
45+
near?: {
46+
usd: string;
47+
};
48+
}
49+
declare const nearPrice: () => Promise<ParsedDataReturn<string>>;
3750

38-
export { BitteWalletContext, BitteWalletContextProvider, useBitteWallet, useNearPrice };
51+
export { BitteWalletContext, BitteWalletContextProvider, type CoinGeckoNearPriceData, type NearPriceData, type ParsedDataReturn, nearPrice, useBitteWallet, useNearPrice };

dist/index.d.ts

Lines changed: 14 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,5 +34,18 @@ type UseNearPriceReturn = {
3434
error: string | null;
3535
};
3636
declare const useNearPrice: () => UseNearPriceReturn;
37+
interface ParsedDataReturn<T> {
38+
error?: null | string;
39+
data?: T | null;
40+
}
41+
interface NearPriceData {
42+
price?: string;
43+
}
44+
interface CoinGeckoNearPriceData {
45+
near?: {
46+
usd: string;
47+
};
48+
}
49+
declare const nearPrice: () => Promise<ParsedDataReturn<string>>;
3750

38-
export { BitteWalletContext, BitteWalletContextProvider, useBitteWallet, useNearPrice };
51+
export { BitteWalletContext, BitteWalletContextProvider, type CoinGeckoNearPriceData, type NearPriceData, type ParsedDataReturn, nearPrice, useBitteWallet, useNearPrice };

dist/index.js

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

dist/index.js.map

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

dist/index.mjs

Lines changed: 3 additions & 3 deletions
Large diffs are not rendered by default.

dist/index.mjs.map

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 16 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -30,11 +30,11 @@
3030
"devDependencies": {
3131
"@testing-library/react": "^16.3.0",
3232
"@testing-library/user-event": "^14.6.1",
33-
"@types/react": "^19.1.6",
34-
"@types/react-dom": "^19.1.5",
33+
"@types/react": "^19.1.12",
34+
"@types/react-dom": "^19.1.9",
3535
"rxjs": "^7.8.2",
3636
"tsup": "^8.5.0",
37-
"typescript": "^5.8.3"
37+
"typescript": "^5.9.2"
3838
},
3939
"optionalDependencies": {
4040
"fsevents": "^2.3.3"
@@ -44,15 +44,19 @@
4444
},
4545
"dependencies": {
4646
"@bitte-ai/wallet": "0.8.2",
47-
"@mintbase-js/data": "^0.6.6",
48-
"@mintbase-js/sdk": "^0.6.6",
49-
"@near-wallet-selector/core": "^9.0.2",
50-
"@near-wallet-selector/here-wallet": "^9.0.2",
51-
"@near-wallet-selector/meteor-wallet": "^9.0.2",
52-
"@near-wallet-selector/modal-ui": "^9.0.2",
53-
"@near-wallet-selector/my-near-wallet": "^9.0.2",
47+
"@near-wallet-selector/core": "^9.5.1",
48+
"@near-wallet-selector/here-wallet": "^9.5.1",
49+
"@near-wallet-selector/meteor-wallet": "^9.5.1",
50+
"@near-wallet-selector/modal-ui": "^9.5.1",
51+
"@near-wallet-selector/my-near-wallet": "^9.5.1",
5452
"buffer": "^6.0.3",
55-
"react": "^19.1.0",
56-
"react-dom": "^19.1.0"
53+
"react": "^19.1.1",
54+
"react-dom": "^19.1.1"
55+
},
56+
"pnpm": {
57+
"overrides": {
58+
"secp256k1": "^5.0.1",
59+
"base-x": "^3.0.11"
60+
}
5761
}
5862
}

0 commit comments

Comments
 (0)