rtcpeerconnection
Advanced tools
Comparing version 0.1.1 to 0.1.2
{ | ||
"name": "rtcpeerconnection", | ||
"version": "0.1.1", | ||
"version": "0.1.2", | ||
"description": "A tiny browser module that gives normalizes and simplifies the API for WebRTC peer connections.", | ||
@@ -19,3 +19,3 @@ "main": "rtcpeerconnection.js", | ||
"wildemitter": "0.0.5", | ||
"webrtcsupport": "0.3.1" | ||
"webrtcsupport": "0.3.2" | ||
}, | ||
@@ -22,0 +22,0 @@ "devDependencies": { |
@@ -126,30 +126,3 @@ (function(e){if("function"==typeof bootstrap)bootstrap("peerconnection",e);else if("object"==typeof exports)module.exports=e();else if("function"==typeof define&&define.amd)define(e);else if("undefined"!=typeof ses){if(!ses.ok())return;ses.makePeerConnection=e}else"undefined"!=typeof window?window.PeerConnection=e():global.PeerConnection=e()})(function(){var define,ses,bootstrap,module,exports; | ||
},{"webrtcsupport":2,"wildemitter":3}],2:[function(require,module,exports){ | ||
// created by @HenrikJoreteg | ||
var PC = window.RTCPeerConnection || window.mozRTCPeerConnection || window.webkitRTCPeerConnection; | ||
var IceCandidate = window.RTCIceCandidate || window.mozRTCIceCandidate; | ||
var SessionDescription = window.RTCSessionDescription || window.mozRTCSessionDescription; | ||
var prefix = function () { | ||
if (window.mozRTCPeerConnection) { | ||
return 'moz'; | ||
} else if (window.webkitRTCPeerConnection) { | ||
return 'webkit'; | ||
} | ||
}(); | ||
var screenSharing = navigator.userAgent.match('Chrome') && parseInt(navigator.userAgent.match(/Chrome\/(.*) /)[1], 10) >= 26; | ||
var webAudio = !!window.webkitAudioContext; | ||
// export support flags and constructors | ||
module.exports = { | ||
support: !!PC, | ||
dataChannel: !!(PC && PC.prototype.createDataChannel), | ||
prefix: prefix, | ||
webAudio: webAudio, | ||
screenSharing: screenSharing, | ||
PeerConnection: PC, | ||
SessionDescription: SessionDescription, | ||
IceCandidate: IceCandidate | ||
}; | ||
},{}],3:[function(require,module,exports){ | ||
},{"wildemitter":2,"webrtcsupport":3}],2:[function(require,module,exports){ | ||
/* | ||
@@ -291,4 +264,31 @@ WildEmitter.js is a slim little event emitter by @henrikjoreteg largely based | ||
},{}],3:[function(require,module,exports){ | ||
// created by @HenrikJoreteg | ||
var PC = window.mozRTCPeerConnection || window.webkitRTCPeerConnection || window.RTCPeerConnection; | ||
var IceCandidate = window.mozRTCIceCandidate || window.RTCIceCandidate; | ||
var SessionDescription = window.mozRTCSessionDescription || window.RTCSessionDescription; | ||
var prefix = function () { | ||
if (window.mozRTCPeerConnection) { | ||
return 'moz'; | ||
} else if (window.webkitRTCPeerConnection) { | ||
return 'webkit'; | ||
} | ||
}(); | ||
var screenSharing = navigator.userAgent.match('Chrome') && parseInt(navigator.userAgent.match(/Chrome\/(.*) /)[1], 10) >= 26; | ||
var webAudio = !!window.webkitAudioContext; | ||
// export support flags and constructors.prototype && PC | ||
module.exports = { | ||
support: !!PC, | ||
dataChannel: !!(PC && PC.prototype && PC.prototype.createDataChannel), | ||
prefix: prefix, | ||
webAudio: webAudio, | ||
screenSharing: screenSharing, | ||
PeerConnection: PC, | ||
SessionDescription: SessionDescription, | ||
IceCandidate: IceCandidate | ||
}; | ||
},{}]},{},[1])(1) | ||
}); | ||
; |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
17721
+ Addedwebrtcsupport@0.3.2(transitive)
- Removedwebrtcsupport@0.3.1(transitive)
Updatedwebrtcsupport@0.3.2