This repository was archived by the owner on Aug 15, 2022. It is now read-only.
File tree Expand file tree Collapse file tree 3 files changed +830
-732
lines changed Expand file tree Collapse file tree 3 files changed +830
-732
lines changed Original file line number Diff line number Diff line change 1111 "dependencies" : {
1212 "@dstack-js/ipfs" : " ^0.2.33" ,
1313 "@dstack-js/lib" : " ^0.2.33" ,
14+ "@dstack-js/wrtc" : " 0.4.8" ,
1415 "@oclif/command" : " ^1" ,
1516 "@oclif/config" : " ^1" ,
1617 "blessed" : " ^0.1.81" ,
1718 "discord.js" : " ^13.6.0" ,
1819 "graphql" : " ^16.3.0" ,
1920 "graphql-request" : " ^4.0.0" ,
2021 "libp2p-webrtc-star" : " 0.20.1" ,
21- "libp2p-websockets" : " 0.15.0" ,
22- "tslib" : " ^1" ,
23- "wrtc" : " ^0.4.7"
22+ "libp2p-websockets" : " ^0.16.2" ,
23+ "tslib" : " ^1"
24+ },
25+ "resolutions" : {
26+ "wrtc" : " https://github.com/dstack-js/node-webrtc" ,
27+ "socket.io-client" : " ^4.4.1" ,
28+ "electron" : " ^17.1.2"
2429 },
2530 "devDependencies" : {
2631 "@oclif/dev-cli" : " ^1" ,
Original file line number Diff line number Diff line change 11import { create } from '@dstack-js/ipfs'
22import { Stack } from '@dstack-js/lib'
33// @ts -expect-error: no types
4- import WebRTCStar from 'libp2p-webrtc-star'
4+ import { WebRTCStar } from 'libp2p-webrtc-star'
55// @ts -expect-error: no types
66import WebSocket from 'libp2p-websockets'
77import { getBootstrapData } from './bootstrap'
88
9- const wrtc = require ( 'wrtc' )
9+ const wrtc = require ( '@dstack-js/ wrtc' )
1010
1111export const getStack = async ( ) => {
1212 const bootstrap = await getBootstrapData ( )
You can’t perform that action at this time.
0 commit comments