fix: switch to using @lumeweb/community-portals

This commit is contained in:
Derrick Hammer 2023-06-24 13:35:26 -04:00
parent 0d042f7867
commit ac822fb939
Signed by: pcfreak30
GPG Key ID: C997C339BE476FF2
3 changed files with 40 additions and 3 deletions

37
npm-shrinkwrap.json generated
View File

@ -8,6 +8,7 @@
"name": "@lumeweb/libweb", "name": "@lumeweb/libweb",
"version": "0.2.0-develop.12", "version": "0.2.0-develop.12",
"dependencies": { "dependencies": {
"@lumeweb/community-portals": "^0.1.0-develop.2",
"@lumeweb/libportal": "0.2.0-develop.8", "@lumeweb/libportal": "0.2.0-develop.8",
"@noble/curves": "^1.1.0", "@noble/curves": "^1.1.0",
"@noble/hashes": "^1.3.1" "@noble/hashes": "^1.3.1"
@ -1788,6 +1789,14 @@
"dev": true, "dev": true,
"peer": true "peer": true
}, },
"node_modules/@lumeweb/community-portals": {
"version": "0.1.0-develop.2",
"resolved": "https://registry.npmjs.org/@lumeweb/community-portals/-/community-portals-0.1.0-develop.2.tgz",
"integrity": "sha512-VbbNh0Jidm5ShYBA2AD9bjl9n1Yvs0ExPlx/+bX+xpv/+WpRLV4QfCBF8pzk4+s+pOEN+0s50biJnBITNBC8JA==",
"peerDependencies": {
"@lumeweb/libweb": "^0.2.0"
}
},
"node_modules/@lumeweb/libportal": { "node_modules/@lumeweb/libportal": {
"version": "0.2.0-develop.8", "version": "0.2.0-develop.8",
"resolved": "https://registry.npmjs.org/@lumeweb/libportal/-/libportal-0.2.0-develop.8.tgz", "resolved": "https://registry.npmjs.org/@lumeweb/libportal/-/libportal-0.2.0-develop.8.tgz",
@ -1804,6 +1813,34 @@
"web-streams-polyfill": "^3.2.1" "web-streams-polyfill": "^3.2.1"
} }
}, },
"node_modules/@lumeweb/libweb": {
"version": "0.2.0",
"resolved": "https://registry.npmjs.org/@lumeweb/libweb/-/libweb-0.2.0.tgz",
"integrity": "sha512-G2G3vu7k18UA67/UiloIWPn8EytOz94CBsY9WYyhuHlt64y9nCqxIx0+Ze6bQ1mdRcgwKP0x7Tvqvq6WPLn3Ow==",
"peer": true,
"dependencies": {
"@lumeweb/libportal": "^0.1.0",
"@noble/curves": "^1.1.0",
"@noble/hashes": "^1.3.1"
}
},
"node_modules/@lumeweb/libweb/node_modules/@lumeweb/libportal": {
"version": "0.1.2",
"resolved": "https://registry.npmjs.org/@lumeweb/libportal/-/libportal-0.1.2.tgz",
"integrity": "sha512-3lA9yU1VArg4vJrewHD3X+2PKm9h+A8PwKDTRI5ob+xuAKJcDITGa1+JfEiqy4OVu39xGdShPKGk4uDWbxrTNA==",
"peer": true,
"dependencies": {
"@noble/curves": "^1.1.0",
"@noble/hashes": "^1.3.1",
"detect-node": "^2.1.0",
"multiformats": "^11.0.2",
"node-fetch": "^3.3.1",
"p-defer": "^4.0.0",
"stream-to-blob": "^2.0.1",
"tus-js-client": "^3.1.0",
"web-streams-polyfill": "^3.2.1"
}
},
"node_modules/@noble/curves": { "node_modules/@noble/curves": {
"version": "1.1.0", "version": "1.1.0",
"resolved": "https://registry.npmjs.org/@noble/curves/-/curves-1.1.0.tgz", "resolved": "https://registry.npmjs.org/@noble/curves/-/curves-1.1.0.tgz",

View File

@ -21,6 +21,7 @@
"semantic-release": "semantic-release" "semantic-release": "semantic-release"
}, },
"dependencies": { "dependencies": {
"@lumeweb/community-portals": "^0.1.0-develop.2",
"@lumeweb/libportal": "0.2.0-develop.8", "@lumeweb/libportal": "0.2.0-develop.8",
"@noble/curves": "^1.1.0", "@noble/curves": "^1.1.0",
"@noble/hashes": "^1.3.1" "@noble/hashes": "^1.3.1"

View File

@ -3,12 +3,11 @@ import { Client } from "@lumeweb/libportal";
import { deriveChildKey } from "#keys.js"; import { deriveChildKey } from "#keys.js";
import { ed25519 } from "@noble/curves/ed25519"; import { ed25519 } from "@noble/curves/ed25519";
import { bytesToHex } from "@noble/hashes/utils"; import { bytesToHex } from "@noble/hashes/utils";
import COMMUNITY_PORTAL_LIST from "@lumeweb/community-portals";
let activePortalMasterKey; let activePortalMasterKey;
export const DEFAULT_PORTAL_LIST: Portal[] = [ export const DEFAULT_PORTAL_LIST = COMMUNITY_PORTAL_LIST;
{ id: "lumeweb", url: "https://web3portal.com", name: "web3portal.com" },
];
let ACTIVE_PORTALS = new Set<Client>(); let ACTIVE_PORTALS = new Set<Client>();