mirror of
https://github.com/vacp2p/universal-connectivity.git
synced 2026-01-08 22:58:07 -05:00
deps: upgrade js-peer to latest libp2p (#103)
Co-authored-by: Daniel N <2color@users.noreply.github.com>
This commit is contained in:
4744
js-peer/package-lock.json
generated
4744
js-peer/package-lock.json
generated
File diff suppressed because it is too large
Load Diff
@@ -7,43 +7,41 @@
|
||||
"lint": "next lint"
|
||||
},
|
||||
"dependencies": {
|
||||
"@chainsafe/libp2p-gossipsub": "^8.0.0",
|
||||
"@chainsafe/libp2p-noise": "^12.0.1",
|
||||
"@chainsafe/libp2p-yamux": "^4.0.2",
|
||||
"@chainsafe/libp2p-gossipsub": "^10.1.0",
|
||||
"@chainsafe/libp2p-noise": "^13.0.3",
|
||||
"@chainsafe/libp2p-yamux": "^5.0.2",
|
||||
"@download/blockies": "^1.0.3",
|
||||
"@headlessui/react": "^1.7.13",
|
||||
"@heroicons/react": "^2.0.16",
|
||||
"@libp2p/bootstrap": "^8.0.0",
|
||||
"@headlessui/react": "^1.7.17",
|
||||
"@heroicons/react": "^2.0.18",
|
||||
"@libp2p/bootstrap": "^9.0.12",
|
||||
"@libp2p/interface-pubsub": "^4.0.1",
|
||||
"@libp2p/kad-dht": "^9.3.6",
|
||||
"@libp2p/webrtc": "^2.0.6",
|
||||
"@libp2p/websockets": "^6.0.3",
|
||||
"@libp2p/webtransport": "^2.0.1",
|
||||
"@multiformats/mafmt": "^12.1.5",
|
||||
"@multiformats/multiaddr": "^12.1.3",
|
||||
"@types/node": "18.14.6",
|
||||
"@types/react": "18.0.28",
|
||||
"@types/react-dom": "18.0.11",
|
||||
"@libp2p/kad-dht": "^10.0.15",
|
||||
"@libp2p/webrtc": "^3.2.11",
|
||||
"@libp2p/websockets": "^7.0.9",
|
||||
"@libp2p/webtransport": "^3.1.10",
|
||||
"@multiformats/multiaddr": "^12.1.10",
|
||||
"@types/node": "20.9.0",
|
||||
"@types/react": "18.2.37",
|
||||
"@types/react-dom": "18.2.15",
|
||||
"debug": "^4.3.4",
|
||||
"eslint": "8.35.0",
|
||||
"eslint-config-next": "13.2.3",
|
||||
"it-length-prefixed": "^9.0.1",
|
||||
"it-map": "^3.0.3",
|
||||
"eslint": "8.53.0",
|
||||
"eslint-config-next": "14.0.2",
|
||||
"it-length-prefixed": "^9.0.3",
|
||||
"it-map": "^3.0.4",
|
||||
"it-pipe": "^3.0.1",
|
||||
"libp2p": "^0.45.5",
|
||||
"next": "13.2.3",
|
||||
"private-ip": "^3.0.0",
|
||||
"libp2p": "^0.46.21",
|
||||
"next": "13.5.4",
|
||||
"react": "18.2.0",
|
||||
"react-dom": "18.2.0",
|
||||
"typescript": "4.9.5",
|
||||
"uint8arrays": "^4.0.4",
|
||||
"typescript": "5.2.2",
|
||||
"uint8arrays": "^4.0.6",
|
||||
"usehooks-ts": "^2.9.1",
|
||||
"uuid": "^9.0.0"
|
||||
"uuid": "^9.0.1"
|
||||
},
|
||||
"devDependencies": {
|
||||
"@types/uuid": "^9.0.2",
|
||||
"autoprefixer": "^10.4.13",
|
||||
"postcss": "^8.4.21",
|
||||
"tailwindcss": "^3.2.7"
|
||||
"@types/uuid": "^9.0.5",
|
||||
"autoprefixer": "^10.4.16",
|
||||
"postcss": "^8.4.31",
|
||||
"tailwindcss": "^3.3.3"
|
||||
}
|
||||
}
|
||||
|
||||
@@ -39,7 +39,7 @@ export function AppWrapper({ children }: WrapperProps) {
|
||||
// @ts-ignore
|
||||
window.libp2p = libp2p
|
||||
|
||||
setLibp2p(libp2p)
|
||||
setLibp2p(libp2p as Libp2p<{ pubsub: any; dht: any; identify: any }>)
|
||||
} catch (e) {
|
||||
console.error('failed to start libp2p', e)
|
||||
}
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
import React, { ReactElement, ReactNode, createContext, useContext, useState } from 'react';
|
||||
import type { Connection } from '@libp2p/interface-connection'
|
||||
import React, { ReactNode, createContext, useContext, useState } from 'react';
|
||||
import type { Connection } from '@libp2p/interface/connection'
|
||||
import { PeerId } from '@libp2p/interface-peer-id'
|
||||
|
||||
|
||||
|
||||
@@ -2,7 +2,7 @@ import Head from 'next/head'
|
||||
import { CheckCircleIcon, XCircleIcon } from '@heroicons/react/20/solid'
|
||||
import Nav from '@/components/nav'
|
||||
import { useLibp2pContext } from '@/context/ctx'
|
||||
import type { Connection } from '@libp2p/interface-connection'
|
||||
import type { Connection } from '@libp2p/interface/connection'
|
||||
import { usePeerContext } from '../context/peer-ctx'
|
||||
import { useCallback, useEffect, useState } from 'react'
|
||||
import Image from 'next/image'
|
||||
|
||||
Reference in New Issue
Block a user