Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

sdp

Package Overview
Dependencies
Maintainers
2
Versions
47
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

sdp - npm Package Compare versions

Comparing version 2.11.2 to 2.12.0

.nyc_output/987304f6-c747-496b-a588-c3a3acec9b3c.json

2

.nyc_output/processinfo/index.json

@@ -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",

@@ -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 @@

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