magnet-uri
Advanced tools
Comparing version 5.1.4 to 5.1.5
@@ -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]) { |
{ | ||
"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() | ||
}) |
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
19548
305