Socket
Socket
Sign inDemoInstall

create-torrent

Package Overview
Dependencies
Maintainers
1
Versions
139
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

create-torrent - npm Package Compare versions

Comparing version 3.25.1 to 3.25.2

2

package.json
{
"name": "create-torrent",
"description": "Create .torrent files",
"version": "3.25.1",
"version": "3.25.2",
"author": "Feross Aboukhadijeh <feross@feross.org> (http://feross.org/)",

@@ -6,0 +6,0 @@ "bin": {

var createTorrent = require('../')
var parseTorrent = require('parse-torrent')
var test = require('tape')
var path = require('path')

@@ -115,6 +116,6 @@ test('implicit torrent name and file name', function (t) {

t.equal(parsedTorrent.files[0].name, 'My Cool File 1')
t.equal(parsedTorrent.files[0].path, 'My Cool Torrent/My Cool File 1')
t.equal(parsedTorrent.files[0].path, path.join('My Cool Torrent', 'My Cool File 1'))
t.equal(parsedTorrent.files[1].name, 'My Cool File 2')
t.equal(parsedTorrent.files[1].path, 'My Cool Torrent/My Cool File 2')
t.equal(parsedTorrent.files[1].path, path.join('My Cool Torrent', 'My Cool File 2'))
})

@@ -159,6 +160,6 @@ })

t.equal(parsedTorrent.files[0].name, 'My Cool File 1')
t.equal(parsedTorrent.files[0].path, 'My Cool Torrent/My Cool File 1')
t.equal(parsedTorrent.files[0].path, path.join('My Cool Torrent', 'My Cool File 1'))
t.equal(parsedTorrent.files[1].name, 'My Cool File 2')
t.equal(parsedTorrent.files[1].path, 'My Cool Torrent/My Cool File 2')
t.equal(parsedTorrent.files[1].path, path.join('My Cool Torrent', 'My Cool File 2'))
})

@@ -203,7 +204,7 @@ })

t.equal(parsedTorrent.files[0].name, 'My Cool File 1')
t.equal(parsedTorrent.files[0].path, 'My Cool Folder/My Cool File 1')
t.equal(parsedTorrent.files[0].path, path.join('My Cool Folder', 'My Cool File 1'))
t.equal(parsedTorrent.files[1].name, 'My Cool File 2')
t.equal(parsedTorrent.files[1].path, 'My Cool Folder/My Cool File 2')
t.equal(parsedTorrent.files[1].path, path.join('My Cool Folder', 'My Cool File 2'))
})
})
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