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

magnet-uri

Package Overview
Dependencies
Maintainers
8
Versions
46
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

magnet-uri - npm Package Compare versions

Comparing version 5.2.1 to 5.2.2

8

index.js

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

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