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

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 4.1.0 to 4.1.1

.zuul.yml

4

index.js

@@ -6,3 +6,3 @@ module.exports = magnetURIDecode

var base32 = require('thirty-two')
var extend = require('extend.js')
var extend = require('xtend')
var flatten = require('flatten')

@@ -84,3 +84,3 @@

function magnetURIEncode (obj) {
obj = extend({}, obj) // clone obj, so we can mutate it
obj = extend(obj) // clone obj, so we can mutate it

@@ -87,0 +87,0 @@ // support official magnet key names and convenience names

{
"name": "magnet-uri",
"description": "Parse a magnet URI and return an object of keys/values",
"version": "4.1.0",
"version": "4.1.1",
"author": {

@@ -14,8 +14,10 @@ "name": "Feross Aboukhadijeh",

"dependencies": {
"extend.js": "0.0.2",
"flatten": "0.0.1",
"thirty-two": "^0.0.2"
"thirty-two": "^0.0.2",
"xtend": "^4.0.0"
},
"devDependencies": {
"tape": "^3.0.0"
"standard": "^2.3.1",
"tape": "^3.0.0",
"zuul": "^1.16.3"
},

@@ -40,14 +42,10 @@ "homepage": "https://github.com/feross/magnet-uri",

"scripts": {
"test": "tape test/*.js"
"test": "standard && npm run test-node && npm run test-browser",
"test-browser": "zuul -- test/*.js",
"test-browser-local": "zuul --local -- test/*.js",
"test-node": "tape test/*.js"
},
"testling": {
"files": "test/*.js",
"browsers": [
"ie/9..latest",
"chrome/25..latest",
"firefox/20..latest",
"safari/6..latest",
"opera/15.0..latest"
]
"files": "test/*.js"
}
}

@@ -1,6 +0,13 @@

# magnet-uri [![travis](https://img.shields.io/travis/feross/magnet-uri.svg)](https://travis-ci.org/feross/magnet-uri) [![npm](https://img.shields.io/npm/v/magnet-uri.svg)](https://npmjs.org/package/magnet-uri) [![downloads](https://img.shields.io/npm/dm/magnet-uri.svg)](https://npmjs.org/package/magnet-uri) [![gittip](https://img.shields.io/gittip/feross.svg)](https://www.gittip.com/feross/)
# magnet-uri [![travis][travis-image]][travis-url] [![npm][npm-image]][npm-url] [![downloads][downloads-image]][downloads-url]
[travis-image]: https://img.shields.io/travis/feross/magnet-uri.svg?style=flat
[travis-url]: https://travis-ci.org/feross/magnet-uri
[npm-image]: https://img.shields.io/npm/v/magnet-uri.svg?style=flat
[npm-url]: https://npmjs.org/package/magnet-uri
[downloads-image]: https://img.shields.io/npm/dm/magnet-uri.svg?style=flat
[downloads-url]: https://npmjs.org/package/magnet-uri
### Parse a magnet URI and return an object of keys/values.
[![browser support](https://ci.testling.com/feross/magnet-uri.png)](https://ci.testling.com/feross/magnet-uri)
[![Sauce Test Status](https://saucelabs.com/browser-matrix/magnet-uri.svg)](https://saucelabs.com/u/magnet-uri)

@@ -7,0 +14,0 @@ Also works in the browser with [browserify](http://browserify.org/)! This module is used by [WebTorrent](http://webtorrent.io).

@@ -86,3 +86,3 @@ var magnet = require('../')

var result = magnet('magnet:?xt=urn:btih:64DZYZWMUAVLIWJUXGDIK4QGAAIN7SL6&kt=joe+blow+mp3')
t.deepEqual(result.keywords, ['joe','blow','mp3'])
t.deepEqual(result.keywords, ['joe', 'blow', 'mp3'])
t.end()

@@ -89,0 +89,0 @@ })

@@ -27,3 +27,2 @@ var magnet = require('../')

test('encode: simple magnet uri using convenience names', function (t) {

@@ -57,3 +56,3 @@ var obj = {

kt: [ 'hey', 'hey2' ],
keywords: [ 'hey', 'hey2' ],
keywords: [ 'hey', 'hey2' ]
}

@@ -60,0 +59,0 @@

Sorry, the diff of this file is not supported yet

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