mirror of
https://github.com/Xahau/xahau.js.git
synced 2025-11-26 23:25:49 +00:00
[CHORE] update comments
This commit is contained in:
@@ -5,7 +5,12 @@ function AuthInfo () {
|
||||
this.rippleTxt = new RippleTxt;
|
||||
}
|
||||
|
||||
//Can I cache the auth info for later use?
|
||||
/**
|
||||
* Get auth info for a given username
|
||||
* @param {string} domain - Domain which hosts the user's info
|
||||
* @param {string} username - Username who's info we are retreiving
|
||||
* @param {function} fn - Callback function
|
||||
*/
|
||||
AuthInfo.prototype.get = function (domain, username, fn) {
|
||||
var self = this;
|
||||
|
||||
|
||||
@@ -1,14 +1,15 @@
|
||||
var request = require('superagent');
|
||||
|
||||
|
||||
function RippleTxt(opts) {
|
||||
function RippleTxt() {
|
||||
this.txts = {};
|
||||
};
|
||||
|
||||
|
||||
/*
|
||||
/**
|
||||
* Gets the ripple.txt file for the given domain
|
||||
*
|
||||
* @param {string} domain - Domain to retrieve file from
|
||||
* @param {function} fn - Callback function
|
||||
*/
|
||||
RippleTxt.prototype.get = function (domain, fn) {
|
||||
var self = this;
|
||||
@@ -40,9 +41,9 @@ RippleTxt.prototype.get = function (domain, fn) {
|
||||
}
|
||||
|
||||
|
||||
/*
|
||||
* parse a ripple.txt file
|
||||
*
|
||||
/**
|
||||
* Parse a ripple.txt file
|
||||
* @param {string} txt - Unparsed ripple.txt data
|
||||
*/
|
||||
RippleTxt.prototype.parse = function (txt) {
|
||||
|
||||
|
||||
Reference in New Issue
Block a user