@signalwire/js 4.0.0-dev-20260311182902 → 4.0.0-dev-20260311183522
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/dist/browser.mjs +19 -9
- package/dist/browser.mjs.map +1 -1
- package/dist/browser.umd.js +19 -9
- package/dist/browser.umd.js.map +1 -1
- package/dist/index.cjs +19 -9
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +7 -2
- package/dist/index.d.cts.map +1 -1
- package/dist/index.d.mts +7 -2
- package/dist/index.d.mts.map +1 -1
- package/dist/index.mjs +19 -9
- package/dist/index.mjs.map +1 -1
- package/package.json +1 -1
package/dist/browser.mjs
CHANGED
|
@@ -12051,7 +12051,13 @@ var Participant = class extends Destroyable {
|
|
|
12051
12051
|
}
|
|
12052
12052
|
/** Removes this participant from the call. */
|
|
12053
12053
|
async remove() {
|
|
12054
|
-
|
|
12054
|
+
const state = this._state$.value;
|
|
12055
|
+
const target = {
|
|
12056
|
+
member_id: this.id,
|
|
12057
|
+
call_id: state.call_id ?? "",
|
|
12058
|
+
node_id: state.node_id ?? ""
|
|
12059
|
+
};
|
|
12060
|
+
await this.executeMethod(target, "call.member.remove", {});
|
|
12055
12061
|
}
|
|
12056
12062
|
/** Ends the call for this participant. */
|
|
12057
12063
|
async end() {
|
|
@@ -14746,18 +14752,22 @@ var WebRTCCall = class extends Destroyable {
|
|
|
14746
14752
|
}
|
|
14747
14753
|
}
|
|
14748
14754
|
buildMethodParams(target, args) {
|
|
14749
|
-
const
|
|
14750
|
-
node_id: this.nodeId,
|
|
14751
|
-
call_id: this.id
|
|
14755
|
+
const self = {
|
|
14756
|
+
node_id: this.nodeId ?? "",
|
|
14757
|
+
call_id: this.id,
|
|
14758
|
+
member_id: this.vertoManager.selfId ?? ""
|
|
14759
|
+
};
|
|
14760
|
+
if (typeof target === "object") return {
|
|
14761
|
+
...args,
|
|
14762
|
+
self,
|
|
14763
|
+
targets: [target]
|
|
14752
14764
|
};
|
|
14753
14765
|
return {
|
|
14754
14766
|
...args,
|
|
14755
|
-
self
|
|
14756
|
-
...reference,
|
|
14757
|
-
member_id: this.vertoManager.selfId
|
|
14758
|
-
},
|
|
14767
|
+
self,
|
|
14759
14768
|
target: {
|
|
14760
|
-
|
|
14769
|
+
node_id: this.nodeId ?? "",
|
|
14770
|
+
call_id: this.id,
|
|
14761
14771
|
member_id: target
|
|
14762
14772
|
}
|
|
14763
14773
|
};
|