Comparing version 2.7.0 to 2.7.1
{ | ||
"name": "sdp", | ||
"version": "2.7.0", | ||
"version": "2.7.1", | ||
"description": "SDP parsing and serialization utilities", | ||
@@ -5,0 +5,0 @@ "main": "sdp.js", |
13
sdp.js
@@ -112,5 +112,5 @@ /* eslint-env node */ | ||
sdp.push('raddr'); | ||
sdp.push(candidate.relatedAddress); // was: relAddr | ||
sdp.push(candidate.relatedAddress); | ||
sdp.push('rport'); | ||
sdp.push(candidate.relatedPort); // was: relPort | ||
sdp.push(candidate.relatedPort); | ||
} | ||
@@ -208,3 +208,7 @@ if (candidate.tcpType && candidate.protocol.toLowerCase() === 'tcp') { | ||
Object.keys(codec.parameters).forEach(function(param) { | ||
params.push(param + '=' + codec.parameters[param]); | ||
if (codec.parameters[param]) { | ||
params.push(param + '=' + codec.parameters[param]); | ||
} else { | ||
params.push(param); | ||
} | ||
}); | ||
@@ -429,4 +433,3 @@ line += 'a=fmtp:' + pt + ' ' + params.join(';') + '\r\n'; | ||
.map(function(line) { | ||
var parts = line.split(' '); | ||
parts.shift(); | ||
var parts = line.substr(17).split(' '); | ||
return parts.map(function(part) { | ||
@@ -433,0 +436,0 @@ return parseInt(part, 10); |
@@ -199,2 +199,7 @@ /* jshint node: true */ | ||
}); | ||
it('serializes non-key-value telephone-event', () => { | ||
const out = SDPUtils.writeFmtp({ payloadType: 100, parameters: {'0-15': undefined }}); | ||
expect(out).to.equal('a=fmtp:100 0-15\r\n'); | ||
}); | ||
}); | ||
@@ -201,0 +206,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
52365
1344