Socket
Socket
Sign inDemoInstall

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.2.0 to 2.3.0

2

package.json
{
"name": "sdp",
"version": "2.2.0",
"version": "2.3.0",
"description": "SDP parsing and serialization utilities",

@@ -5,0 +5,0 @@ "main": "sdp.js",

@@ -71,2 +71,6 @@ /* eslint-env node */

break;
case 'ufrag':
candidate.ufrag = parts[i + 1]; // for backward compability.
candidate.usernameFragment = parts[i + 1];
break;
default: // extension handling, in particular ufrag

@@ -73,0 +77,0 @@ candidate[parts[i]] = parts[i + 1];

@@ -553,3 +553,4 @@ /* jshint node: true */

'tcptype active ' +
'ufrag abc';
'ufrag abc ' +
'generation 0';
const candidate = SDPUtils.parseCandidate(candidateString);

@@ -599,2 +600,10 @@

it('parses ufrag as usernameFragment', () => {
expect(candidate.usernameFragment).to.equal('abc');
});
it('parses an unknown key-value element like generation', () => {
expect(candidate.generation).to.equal('0');
});
it('parses the candidate with the legacy a= prefix', () => {

@@ -601,0 +610,0 @@ expect(SDPUtils.parseCandidate('a=' + candidateString).foundation)

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