@dcl-regenesislabs/bevy-explorer-web 0.1.0-20464251479.commit-30495cb → 0.1.0-20595857227.commit-00c9135

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/.env CHANGED
@@ -1 +1 @@
1
- PUBLIC_URL="https://cdn.decentraland.org/@dcl-regenesislabs/bevy-explorer-web/0.1.0-20464251479.commit-30495cb"
1
+ PUBLIC_URL="https://cdn.decentraland.org/@dcl-regenesislabs/bevy-explorer-web/0.1.0-20595857227.commit-00c9135"
package/index.html CHANGED
@@ -101,7 +101,7 @@
101
101
  }
102
102
  </style>
103
103
  <link href="https://fonts.googleapis.com/css2?family=Inter:wght@400;600;700&display=swap" rel="stylesheet">
104
- <script>window.PUBLIC_URL = "https://cdn.decentraland.org/@dcl-regenesislabs/bevy-explorer-web/0.1.0-20464251479.commit-30495cb";</script>
104
+ <script>window.PUBLIC_URL = "https://cdn.decentraland.org/@dcl-regenesislabs/bevy-explorer-web/0.1.0-20595857227.commit-00c9135";</script>
105
105
  </head>
106
106
  <body>
107
107
  <div id="header" class="container">
@@ -135,6 +135,6 @@
135
135
  </div>
136
136
  <script src="https://cdn.jsdelivr.net/npm/livekit-client/dist/livekit-client.umd.min.js"></script>
137
137
  <script src="https://cdn.jsdelivr.net/npm/hls.js@1"></script>
138
- <script type="module" src="https://cdn.decentraland.org/@dcl-regenesislabs/bevy-explorer-web/0.1.0-20464251479.commit-30495cb/main.js"></script>
138
+ <script type="module" src="https://cdn.decentraland.org/@dcl-regenesislabs/bevy-explorer-web/0.1.0-20595857227.commit-00c9135/main.js"></script>
139
139
  </body>
140
140
  </html>
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@dcl-regenesislabs/bevy-explorer-web",
3
- "version": "0.1.0-20464251479.commit-30495cb",
3
+ "version": "0.1.0-20595857227.commit-00c9135",
4
4
  "scripts": {
5
5
  "postinstall": "node ./scripts/prebuild.js"
6
6
  },
@@ -8,6 +8,6 @@
8
8
  "type": "git",
9
9
  "url": "git+https://github.com/decentraland/bevy-explorer.git"
10
10
  },
11
- "homepage": "https://cdn.decentraland.org/@dcl-regenesislabs/bevy-explorer-web/0.1.0-20464251479.commit-30495cb",
12
- "commit": "30495cb3232c04808d019fe5eda575e19c3ec445"
11
+ "homepage": "https://cdn.decentraland.org/@dcl-regenesislabs/bevy-explorer-web/0.1.0-20595857227.commit-00c9135",
12
+ "commit": "00c91353920d3a9c1b57b0bd0eaf0164c03b4a1e"
13
13
  }
@@ -42,8 +42,8 @@ export async function connect_room(url, token, handler) {
42
42
  });
43
43
  const pub = await room.localParticipant.publishTrack(audioTrack, {
44
44
  source: LivekitClient.Track.Source.Microphone,
45
- }).catch(error => {
46
- error(`Failed to publish to room: ${error}`);
45
+ }).catch(error_msg => {
46
+ error(`Failed to publish to room: ${error_msg}`);
47
47
  })
48
48
 
49
49
  // avoid race
@@ -92,8 +92,8 @@ export function set_microphone_enabled(enabled) {
92
92
  });
93
93
  let pub = await room.localParticipant.publishTrack(audioTrack, {
94
94
  source: LivekitClient.Track.Source.Microphone,
95
- }).catch(error => {
96
- error(`Failed to publish to room: ${error}`);
95
+ }).catch(error_msg => {
96
+ error(`Failed to publish to room: ${error_msg}`);
97
97
  });
98
98
 
99
99
  // avoid race
@@ -104,8 +104,8 @@ export function set_microphone_enabled(enabled) {
104
104
 
105
105
  Promise.all(publishPromises).then(() => {
106
106
  log('Microphone enabled successfully for all rooms');
107
- }).catch(error => {
108
- error('Failed to enable microphone:', error);
107
+ }).catch(error_msg => {
108
+ error('Failed to enable microphone:', error_msg);
109
109
  });
110
110
  }
111
111
  } else {
@@ -119,21 +119,21 @@ export function set_microphone_enabled(enabled) {
119
119
  try {
120
120
  room.localParticipant.unpublishTrack(pub.track);
121
121
  log(`unpublish ${room.name}`);
122
- } catch (error) {
123
- error(`Failed to unpublish ${pub} from room ${room.name}:`, error);
122
+ } catch (error_msg) {
123
+ error(`Failed to unpublish ${pub} from room ${room.name}:`, error_msg);
124
124
  }
125
125
  });
126
126
 
127
127
  try {
128
128
  await Promise.all(roomSpecificPromises);
129
- } catch (error) {
130
- error(`Failed to unpublish audio from room ${room.name}:`, error);
129
+ } catch (error_msg) {
130
+ error(`Failed to unpublish audio from room ${room.name}:`, error_msg);
131
131
  }
132
132
  });
133
133
 
134
134
  Promise.all(allRoomUnpublishPromises)
135
- .catch(error => {
136
- error('A critical error occurred during the unpublish-all process:', error);
135
+ .catch(error_msg => {
136
+ error('A critical error occurred during the unpublish-all process:', error_msg);
137
137
  })
138
138
  .finally(() => {
139
139
  currentMicTrack = false;
Binary file