Skip to content
This repository was archived by the owner on Aug 15, 2022. It is now read-only.

Commit 60262d0

Browse files
committed
fix(deps): fix wrtc on m1
1 parent d9b0eb7 commit 60262d0

File tree

3 files changed

+830
-732
lines changed

3 files changed

+830
-732
lines changed

package.json

Lines changed: 8 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -11,16 +11,21 @@
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",

src/services/stack.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,12 @@
11
import { create } from '@dstack-js/ipfs'
22
import { 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
66
import WebSocket from 'libp2p-websockets'
77
import { getBootstrapData } from './bootstrap'
88

9-
const wrtc = require('wrtc')
9+
const wrtc = require('@dstack-js/wrtc')
1010

1111
export const getStack = async () => {
1212
const bootstrap = await getBootstrapData()

0 commit comments

Comments
 (0)