@dashevo/dashcore-lib
Advanced tools
Comparing version 0.17.0 to 0.17.1
@@ -162,2 +162,10 @@ /* eslint-disable */ | ||
/** | ||
* Gets the ip from the service property | ||
* @return {string} | ||
*/ | ||
SimplifiedMNListEntry.prototype.getIp = function getIp() { | ||
return this.service.split(':')[0]; | ||
}; | ||
/** | ||
* Creates a copy of SimplifiedMNListEntry | ||
@@ -164,0 +172,0 @@ * @return {SimplifiedMNListEntry} |
{ | ||
"name": "@dashevo/dashcore-lib", | ||
"version": "0.17.0", | ||
"version": "0.17.1", | ||
"description": "A pure and powerful JavaScript Dash library.", | ||
@@ -5,0 +5,0 @@ "author": "Dash Core Group, Inc. <dev@dash.org>", |
@@ -128,2 +128,9 @@ /* eslint-disable */ | ||
}); | ||
describe('getIp', function () { | ||
it('Should get the ip address', function() { | ||
var entry = new SimplifiedMNListEntry(smlEntryJSON); | ||
var ip = entry.getIp(); | ||
expect(ip).to.be.equal('95.183.51.146'); | ||
}); | ||
}); | ||
}); |
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
2801490
207
39921