New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

dot-torrent

Package Overview
Dependencies
Maintainers
1
Versions
13
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

dot-torrent - npm Package Compare versions

Comparing version 0.3.1 to 1.0.0

14

lib/create/TorrentGenerator.js

@@ -24,2 +24,3 @@ "use strict";

const fs = __importStar(require("fs"));
const path = __importStar(require("path"));
const SourceParser_1 = __importDefault(require("./SourceParser"));

@@ -135,3 +136,5 @@ const PieceCollector_1 = __importDefault(require("./PieceCollector"));

_name() {
// TODO
this._torrentInfo.name = this._parameters.name
? this._parameters.name
: path.basename(this._parameters.source);
}

@@ -165,3 +168,5 @@ /**

_publisher() {
// TODO
if (this._parameters.publisher) {
this._torrent.publisher = this._parameters.publisher;
}
}

@@ -172,5 +177,8 @@ /**

_publisherUrl() {
// TODO
// TODO: validate url
if (this._parameters.publisherUrl) {
this._torrent['publisher-url'] = this._parameters.publisherUrl;
}
}
}
exports.default = TorrentGenerator;

@@ -49,2 +49,3 @@ /// <reference types="node" />

comment?: string;
name?: string;
private?: boolean;

@@ -51,0 +52,0 @@ publisher?: string;

{
"name": "dot-torrent",
"version": "0.3.1",
"version": "1.0.0",
"description": "Library for parsing and creating torrent files.",

@@ -5,0 +5,0 @@ "main": "./lib/index.js",

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