Comparing version 2.2.0 to 2.3.0
{ | ||
"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) |
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
48989
1231