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 11
11
"dependencies" : {
12
12
"@dstack-js/ipfs" : " ^0.2.33" ,
13
13
"@dstack-js/lib" : " ^0.2.33" ,
14
+ "@dstack-js/wrtc" : " 0.4.8" ,
14
15
"@oclif/command" : " ^1" ,
15
16
"@oclif/config" : " ^1" ,
16
17
"blessed" : " ^0.1.81" ,
17
18
"discord.js" : " ^13.6.0" ,
18
19
"graphql" : " ^16.3.0" ,
19
20
"graphql-request" : " ^4.0.0" ,
20
21
"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"
24
29
},
25
30
"devDependencies" : {
26
31
"@oclif/dev-cli" : " ^1" ,
Original file line number Diff line number Diff line change 1
1
import { create } from '@dstack-js/ipfs'
2
2
import { Stack } from '@dstack-js/lib'
3
3
// @ts -expect-error: no types
4
- import WebRTCStar from 'libp2p-webrtc-star'
4
+ import { WebRTCStar } from 'libp2p-webrtc-star'
5
5
// @ts -expect-error: no types
6
6
import WebSocket from 'libp2p-websockets'
7
7
import { getBootstrapData } from './bootstrap'
8
8
9
- const wrtc = require ( 'wrtc' )
9
+ const wrtc = require ( '@dstack-js/ wrtc' )
10
10
11
11
export const getStack = async ( ) => {
12
12
const bootstrap = await getBootstrapData ( )
You can’t perform that action at this time.
0 commit comments