New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

@livekit/agents

Package Overview
Dependencies
Maintainers
0
Versions
23
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@livekit/agents - npm Package Compare versions

Comparing version 0.3.4 to 0.3.5

10

CHANGELOG.md
# @livekit/agents
## 0.3.5
### Patch Changes
- fix(treewide): use newer rtc-node version - [#118](https://github.com/livekit/agents-js/pull/118) ([@nbsp](https://github.com/nbsp))
- Subscribe to published mic track for linked participant only - [#123](https://github.com/livekit/agents-js/pull/123) ([@bcherry](https://github.com/bcherry))
- Update everything to rtc 0.11.0 - [#125](https://github.com/livekit/agents-js/pull/125) ([@bcherry](https://github.com/bcherry))
## 0.3.4

@@ -4,0 +14,0 @@

10

dist/multimodal/multimodal_agent.js

@@ -87,5 +87,9 @@ var __classPrivateFieldSet = (this && this.__classPrivateFieldSet) || function (receiver, state, value, kind, f) {

});
room.on(RoomEvent.TrackPublished, () => {
// in case we are connected before the participant has published, we'd need to re-subscribe
__classPrivateFieldGet(this, _MultimodalAgent_instances, "m", _MultimodalAgent_subscribeToMicrophone).call(this);
room.on(RoomEvent.TrackPublished, (trackPublication, participant) => {
if (this.linkedParticipant &&
participant.identity === this.linkedParticipant.identity &&
trackPublication.source === TrackSource.SOURCE_MICROPHONE &&
!trackPublication.subscribed) {
trackPublication.setSubscribed(true);
}
});

@@ -92,0 +96,0 @@ room.on(RoomEvent.TrackSubscribed, __classPrivateFieldGet(this, _MultimodalAgent_instances, "m", _MultimodalAgent_handleTrackSubscription).bind(this));

{
"name": "@livekit/agents",
"version": "0.3.4",
"version": "0.3.5",
"description": "LiveKit Agents - Node.js",

@@ -18,3 +18,3 @@ "main": "dist/index.js",

"@livekit/protocol": "^1.21.0",
"@livekit/rtc-node": "^0.9.0",
"@livekit/rtc-node": "^0.11.0",
"commander": "^12.0.0",

@@ -21,0 +21,0 @@ "livekit-server-sdk": "^2.6.1",

@@ -146,6 +146,15 @@ // SPDX-FileCopyrightText: 2024 LiveKit, Inc.

});
room.on(RoomEvent.TrackPublished, () => {
// in case we are connected before the participant has published, we'd need to re-subscribe
this.#subscribeToMicrophone();
});
room.on(
RoomEvent.TrackPublished,
(trackPublication: RemoteTrackPublication, participant: RemoteParticipant) => {
if (
this.linkedParticipant &&
participant.identity === this.linkedParticipant.identity &&
trackPublication.source === TrackSource.SOURCE_MICROPHONE &&
!trackPublication.subscribed
) {
trackPublication.setSubscribed(true);
}
},
);
room.on(RoomEvent.TrackSubscribed, this.#handleTrackSubscription.bind(this));

@@ -152,0 +161,0 @@

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc