mirror of
https://seed.radicle.dev/rad:z4V1sjrXqjvFdnCUbxPFqd5p4DtH5.git
synced 2026-10-27 15:40:36 +08:00
Update to latest 'caip' package
Signed-off-by: Alexis Sellier <self@cloudhead.io>
This commit is contained in:
Generated
+31
-6
@@ -21,6 +21,7 @@
|
||||
"@walletconnect/types": "^1.6.0",
|
||||
"@walletconnect/utils": "^1.6.0",
|
||||
"buffer": "^6.0.3",
|
||||
"caip": "^1.0.0",
|
||||
"eip1193-provider": "1.0.1",
|
||||
"ethereum-blockies": "^0.1.1",
|
||||
"ethers": "^5.0.31",
|
||||
@@ -189,6 +190,11 @@
|
||||
"caip": "~0.9.2"
|
||||
}
|
||||
},
|
||||
"node_modules/@ceramicnetwork/stream-caip10-link/node_modules/caip": {
|
||||
"version": "0.9.2",
|
||||
"resolved": "https://registry.npmjs.org/caip/-/caip-0.9.2.tgz",
|
||||
"integrity": "sha512-o4aIUSR9lkn7B9lIw8Xgkj+hDh+S1PtsBphoSqP2Dt95gRWPniaqEpnPwiUEhaPQr84JzWIEm4Cck3lMZtIkTA=="
|
||||
},
|
||||
"node_modules/@ceramicnetwork/stream-tile": {
|
||||
"version": "1.0.6",
|
||||
"resolved": "https://registry.npmjs.org/@ceramicnetwork/stream-tile/-/stream-tile-1.0.6.tgz",
|
||||
@@ -241,6 +247,11 @@
|
||||
"node": ">=12"
|
||||
}
|
||||
},
|
||||
"node_modules/@ceramicstudio/idx/node_modules/caip": {
|
||||
"version": "0.9.2",
|
||||
"resolved": "https://registry.npmjs.org/caip/-/caip-0.9.2.tgz",
|
||||
"integrity": "sha512-o4aIUSR9lkn7B9lIw8Xgkj+hDh+S1PtsBphoSqP2Dt95gRWPniaqEpnPwiUEhaPQr84JzWIEm4Cck3lMZtIkTA=="
|
||||
},
|
||||
"node_modules/@eslint/eslintrc": {
|
||||
"version": "0.4.2",
|
||||
"resolved": "https://registry.npmjs.org/@eslint/eslintrc/-/eslintrc-0.4.2.tgz",
|
||||
@@ -1889,9 +1900,9 @@
|
||||
"integrity": "sha1-JuYe0UIvtw3ULm42cp7VHYVf6Nk="
|
||||
},
|
||||
"node_modules/caip": {
|
||||
"version": "0.9.2",
|
||||
"resolved": "https://registry.npmjs.org/caip/-/caip-0.9.2.tgz",
|
||||
"integrity": "sha512-o4aIUSR9lkn7B9lIw8Xgkj+hDh+S1PtsBphoSqP2Dt95gRWPniaqEpnPwiUEhaPQr84JzWIEm4Cck3lMZtIkTA=="
|
||||
"version": "1.0.0",
|
||||
"resolved": "https://registry.npmjs.org/caip/-/caip-1.0.0.tgz",
|
||||
"integrity": "sha512-+U9P7+9jeVBWoP7BDWHVD/JGp9azT4KmFCpDRKTy0U01bCV0x7bxwf6WTl0/dUnnTE+ZA9M4EavptQdHg7k1vA=="
|
||||
},
|
||||
"node_modules/callsites": {
|
||||
"version": "3.1.0",
|
||||
@@ -4834,6 +4845,13 @@
|
||||
"@ceramicnetwork/common": "^1.0.6",
|
||||
"@ceramicnetwork/streamid": "^1.0.2",
|
||||
"caip": "~0.9.2"
|
||||
},
|
||||
"dependencies": {
|
||||
"caip": {
|
||||
"version": "0.9.2",
|
||||
"resolved": "https://registry.npmjs.org/caip/-/caip-0.9.2.tgz",
|
||||
"integrity": "sha512-o4aIUSR9lkn7B9lIw8Xgkj+hDh+S1PtsBphoSqP2Dt95gRWPniaqEpnPwiUEhaPQr84JzWIEm4Cck3lMZtIkTA=="
|
||||
}
|
||||
}
|
||||
},
|
||||
"@ceramicnetwork/stream-tile": {
|
||||
@@ -4877,6 +4895,13 @@
|
||||
"@ceramicstudio/idx-constants": "^1.0.0",
|
||||
"caip": "^0.9.2",
|
||||
"cross-fetch": "^3.1.4"
|
||||
},
|
||||
"dependencies": {
|
||||
"caip": {
|
||||
"version": "0.9.2",
|
||||
"resolved": "https://registry.npmjs.org/caip/-/caip-0.9.2.tgz",
|
||||
"integrity": "sha512-o4aIUSR9lkn7B9lIw8Xgkj+hDh+S1PtsBphoSqP2Dt95gRWPniaqEpnPwiUEhaPQr84JzWIEm4Cck3lMZtIkTA=="
|
||||
}
|
||||
}
|
||||
},
|
||||
"@ceramicstudio/idx-constants": {
|
||||
@@ -6036,9 +6061,9 @@
|
||||
"integrity": "sha1-JuYe0UIvtw3ULm42cp7VHYVf6Nk="
|
||||
},
|
||||
"caip": {
|
||||
"version": "0.9.2",
|
||||
"resolved": "https://registry.npmjs.org/caip/-/caip-0.9.2.tgz",
|
||||
"integrity": "sha512-o4aIUSR9lkn7B9lIw8Xgkj+hDh+S1PtsBphoSqP2Dt95gRWPniaqEpnPwiUEhaPQr84JzWIEm4Cck3lMZtIkTA=="
|
||||
"version": "1.0.0",
|
||||
"resolved": "https://registry.npmjs.org/caip/-/caip-1.0.0.tgz",
|
||||
"integrity": "sha512-+U9P7+9jeVBWoP7BDWHVD/JGp9azT4KmFCpDRKTy0U01bCV0x7bxwf6WTl0/dUnnTE+ZA9M4EavptQdHg7k1vA=="
|
||||
},
|
||||
"callsites": {
|
||||
"version": "3.1.0",
|
||||
|
||||
@@ -36,6 +36,7 @@
|
||||
"@walletconnect/types": "^1.6.0",
|
||||
"@walletconnect/utils": "^1.6.0",
|
||||
"buffer": "^6.0.3",
|
||||
"caip": "^1.0.0",
|
||||
"ethereum-blockies": "^0.1.1",
|
||||
"eventemitter3": "4.0.7",
|
||||
"eip1193-provider": "1.0.1",
|
||||
|
||||
+2
-2
@@ -1,4 +1,4 @@
|
||||
import { AccountID } from 'caip';
|
||||
import { AccountId } from 'caip';
|
||||
import type { EnsProfile } from "@app/base/registrations/registrar";
|
||||
import type { BasicProfile } from "@ceramicstudio/idx-constants";
|
||||
import {
|
||||
@@ -90,7 +90,7 @@ export class Profile {
|
||||
const addr = this.profile?.ens?.anchorsAccount;
|
||||
|
||||
if (addr) {
|
||||
const id = AccountID.parse(addr);
|
||||
const id = new AccountId(addr);
|
||||
|
||||
// Ethereum address.
|
||||
if (typeof id.chainId === "object" && id.chainId.namespace === "eip155") {
|
||||
|
||||
@@ -10,6 +10,8 @@ const config: UserConfig = {
|
||||
plugins: [svelte(), rewriteAll()],
|
||||
resolve: {
|
||||
alias: {
|
||||
// This is needed for vite not to choke.
|
||||
"caip": path.resolve("./node_modules/caip/dist/umd/index.min.js"),
|
||||
'@app': path.resolve('./src'),
|
||||
// Polyfill for Node.js 'stream' library.
|
||||
'stream': path.resolve('./src/polyfills/stream.ts'),
|
||||
|
||||
Reference in New Issue
Block a user