dot-torrent
Advanced tools
Comparing version 0.3.1 to 1.0.0
@@ -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", |
Major refactor
Supply chain riskPackage has recently undergone a major refactor. It may be unstable or indicate significant internal changes. Use caution when updating to versions that include significant changes.
Found 1 instance in 1 package
No v1
QualityPackage is not semver >=1. This means it is not stable and does not support ^ ranges.
Found 1 instance in 1 package
27683
878
0
0