torrent-properties
Advanced tools
Comparing version 1.1.1 to 1.1.2
19
index.js
@@ -121,5 +121,5 @@ const sodium = require('sodium-universal') | ||
propertyData = this.getProperty(address, true) | ||
if(propertyData){ | ||
return callback(new Error('address key is already managed')) | ||
} | ||
// if(propertyData){ | ||
// return callback(new Error('address key is already managed')) | ||
// } | ||
} | ||
@@ -136,3 +136,8 @@ | ||
if(manage){ | ||
this.check.push({ address, infoHash, sequence, own: false }) | ||
if(propertyData){ | ||
propertyData.infoHash = infoHash | ||
propertyData.sequence = sequence | ||
} else { | ||
this.check.push({ address, infoHash, sequence, own: false }) | ||
} | ||
} | ||
@@ -142,3 +147,7 @@ | ||
} else if(!res){ | ||
return callback(new Error('Could not resolve address')) | ||
if(manage && propertyData){ | ||
return callback(null, propertyData) | ||
} else { | ||
return callback(new Error('Could not resolve address')) | ||
} | ||
} | ||
@@ -145,0 +154,0 @@ }) |
{ | ||
"name": "torrent-properties", | ||
"version": "1.1.1", | ||
"version": "1.1.2", | ||
"description": "BEP 46", | ||
@@ -5,0 +5,0 @@ "main": "index.js", |
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
9111
232