Socket
Socket
Sign inDemoInstall

magnet-uri

Package Overview
Dependencies
Maintainers
1
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.1.4 to 5.1.5

3

index.js

@@ -46,2 +46,5 @@ module.exports = magnetURIDecode

// Cast file index (ix) to a number
if (key === 'ix') val = Number(val)
// If there are repeated parameters, return an array of values

@@ -48,0 +51,0 @@ if (result[key]) {

4

package.json
{
"name": "magnet-uri",
"description": "Parse a magnet URI and return an object of keys/values",
"version": "5.1.4",
"version": "5.1.5",
"author": {

@@ -19,3 +19,3 @@ "name": "Feross Aboukhadijeh",

"devDependencies": {
"standard": "^7.0.0",
"standard": "*",
"tape": "^4.0.0",

@@ -22,0 +22,0 @@ "zuul": "^3.0.0"

@@ -130,1 +130,8 @@ var extend = require('xtend')

})
test('Cast file index (ix) to a number', function (t) {
var result = magnet(leavesOfGrass + '&ix=1')
t.equal(typeof result.ix, 'number')
t.equal(result.ix, 1)
t.end()
})
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