Comparing version 2.11.2 to 2.12.0
@@ -1,1 +0,1 @@ | ||
{"processes":{"6163c2ae-86e8-4309-b45f-352bc201e34f":{"parent":null,"children":["6966c41a-2d75-44db-9dcc-c72552538c70"]},"6966c41a-2d75-44db-9dcc-c72552538c70":{"parent":"6163c2ae-86e8-4309-b45f-352bc201e34f","children":[]}},"files":{"/media/fippo/houseparty/webrtc/sdp/sdp.js":["6966c41a-2d75-44db-9dcc-c72552538c70"]},"externalIds":{}} | ||
{"processes":{"987304f6-c747-496b-a588-c3a3acec9b3c":{"parent":null,"children":["d2946562-4d8d-4611-a0c2-7de213f7152d"]},"d2946562-4d8d-4611-a0c2-7de213f7152d":{"parent":"987304f6-c747-496b-a588-c3a3acec9b3c","children":[]}},"files":{"/media/fippo/houseparty/webrtc/sdp/sdp.js":["d2946562-4d8d-4611-a0c2-7de213f7152d"]},"externalIds":{}} |
{ | ||
"name": "sdp", | ||
"version": "2.11.2", | ||
"version": "2.12.0", | ||
"description": "SDP parsing and serialization utilities", | ||
@@ -5,0 +5,0 @@ "main": "sdp.js", |
21
sdp.js
@@ -373,14 +373,13 @@ /* eslint-env node */ | ||
SDPUtils.getIceParameters = function(mediaSection, sessionpart) { | ||
var lines = SDPUtils.splitLines(mediaSection); | ||
// Search in session part, too. | ||
lines = lines.concat(SDPUtils.splitLines(sessionpart)); | ||
var iceParameters = { | ||
usernameFragment: lines.filter(function(line) { | ||
return line.indexOf('a=ice-ufrag:') === 0; | ||
})[0].substr(12), | ||
password: lines.filter(function(line) { | ||
return line.indexOf('a=ice-pwd:') === 0; | ||
})[0].substr(10) | ||
var ufrag = SDPUtils.matchPrefix(mediaSection + sessionpart, | ||
'a=ice-ufrag:')[0]; | ||
var pwd = SDPUtils.matchPrefix(mediaSection + sessionpart, | ||
'a=ice-pwd:')[0]; | ||
if (!(ufrag && pwd)) { | ||
return null; | ||
} | ||
return { | ||
usernameFragment: ufrag.substr(12), | ||
password: pwd.substr(10), | ||
}; | ||
return iceParameters; | ||
}; | ||
@@ -387,0 +386,0 @@ |
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
98832
755