diff options
author | dependabot-preview[bot] <27856297+dependabot-preview[bot]@users.noreply.github.com> | 2019-07-31 18:06:58 +0300 |
---|---|---|
committer | npmbuildbot[bot] <npmbuildbot[bot]@users.noreply.github.com> | 2019-07-31 18:09:15 +0300 |
commit | 52236deda1f18fd43c4f714d7d8874fee706445d (patch) | |
tree | 16dfdf961635cd32ec0c753424f73d1a3ccb5712 | |
parent | 05e93105ce75376c955bab1b283b99e176766616 (diff) |
Bump webrtc-adapter from 7.2.5 to 7.2.8
Bumps [webrtc-adapter](https://github.com/webrtchacks/adapter) from 7.2.5 to 7.2.8.
- [Release notes](https://github.com/webrtchacks/adapter/releases)
- [Commits](https://github.com/webrtchacks/adapter/compare/v7.2.5...v7.2.8)
Signed-off-by: dependabot-preview[bot] <support@dependabot.com>
Signed-off-by: npmbuildbot[bot] <npmbuildbot[bot]@users.noreply.github.com>
-rw-r--r-- | js/simplewebrtc/bundled.js | 10 | ||||
-rw-r--r-- | package-lock.json | 6 | ||||
-rw-r--r-- | package.json | 2 |
3 files changed, 9 insertions, 9 deletions
diff --git a/js/simplewebrtc/bundled.js b/js/simplewebrtc/bundled.js index a6a5f3403..258631913 100644 --- a/js/simplewebrtc/bundled.js +++ b/js/simplewebrtc/bundled.js @@ -7862,7 +7862,9 @@ function shimLocalStreamsAPI(window) { }); }; - window.RTCPeerConnection.prototype.addTrack = function addTrack(track, stream) { + window.RTCPeerConnection.prototype.addTrack = function addTrack(track) { + var stream = arguments[1]; + if (stream) { if (!this._localStreams) { this._localStreams = [stream]; @@ -7871,7 +7873,7 @@ function shimLocalStreamsAPI(window) { } } - return _addTrack.call(this, track, stream); + return _addTrack.apply(this, arguments); }; } @@ -8124,9 +8126,7 @@ function shimRTCIceServerUrls(window) { function shimTrackEventTransceiver(window) { // Add event.transceiver member over deprecated event.receiver - if ((typeof window === 'undefined' ? 'undefined' : _typeof(window)) === 'object' && window.RTCPeerConnection && 'receiver' in window.RTCTrackEvent.prototype && // can't check 'transceiver' in window.RTCTrackEvent.prototype, as it is - // defined for some reason even when window.RTCTransceiver is not. - !window.RTCTransceiver) { + if ((typeof window === 'undefined' ? 'undefined' : _typeof(window)) === 'object' && window.RTCTrackEvent && 'receiver' in window.RTCTrackEvent.prototype && !('transceiver' in window.RTCTrackEvent.prototype)) { Object.defineProperty(window.RTCTrackEvent.prototype, 'transceiver', { get: function get() { return { diff --git a/package-lock.json b/package-lock.json index 14e75d980..52de7f7c2 100644 --- a/package-lock.json +++ b/package-lock.json @@ -4686,9 +4686,9 @@ "dev": true }, "webrtc-adapter": { - "version": "7.2.5", - "resolved": "https://registry.npmjs.org/webrtc-adapter/-/webrtc-adapter-7.2.5.tgz", - "integrity": "sha512-sqYyxeOLbam7qqx1AwGfzcn5GlBUmcUTYaN/naY64HQtjXQtvMQUPr6rKMnIvZUSZdZHhm7BFGR4QmBJLEM8CA==", + "version": "7.2.8", + "resolved": "https://registry.npmjs.org/webrtc-adapter/-/webrtc-adapter-7.2.8.tgz", + "integrity": "sha512-d/rZVIIqqPqu/1I9rabhI+hmVhNtT+MoJk0eipCJasiVM9L9ZOTBoVhZmtC/naB4G8GTvnCaassrDz5IqWZP6w==", "dev": true, "requires": { "rtcpeerconnection-shim": "^1.2.15", diff --git a/package.json b/package.json index c93010d14..fbd07f627 100644 --- a/package.json +++ b/package.json @@ -24,7 +24,7 @@ "hark": "^1.2.3", "mockconsole": "0.0.1", "util": "^0.12.1", - "webrtc-adapter": "^7.2.5", + "webrtc-adapter": "^7.2.8", "webrtcsupport": "^2.2.0", "wildemitter": "^1.2.1" }, |