magnet-uri
Advanced tools
Comparing version 5.2.1 to 5.2.2
@@ -104,4 +104,4 @@ module.exports = magnetURIDecode | ||
// (example: `infoHash` for `xt`, `name` for `dn`) | ||
if (obj.infoHashBuffer) obj.xt = 'urn:btih:' + obj.infoHashBuffer.toString('hex') | ||
if (obj.infoHash) obj.xt = 'urn:btih:' + obj.infoHash | ||
if (obj.infoHashBuffer) obj.xt = `urn:btih:${obj.infoHashBuffer.toString('hex')}` | ||
if (obj.infoHash) obj.xt = `urn:btih:${obj.infoHash}` | ||
if (obj.name) obj.dn = obj.name | ||
@@ -129,4 +129,4 @@ if (obj.keywords) obj.kt = obj.keywords | ||
if (key === 'kt' && j > 0) result += '+' + val | ||
else result += key + '=' + val | ||
if (key === 'kt' && j > 0) result += `+${val}` | ||
else result += `${key}=${val}` | ||
}) | ||
@@ -133,0 +133,0 @@ }) |
{ | ||
"name": "magnet-uri", | ||
"description": "Parse a magnet URI and return an object of keys/values", | ||
"version": "5.2.1", | ||
"version": "5.2.2", | ||
"author": { | ||
@@ -6,0 +6,0 @@ "name": "WebTorrent, LLC", |
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