dist/irisLib.js
async function searchText(node, callback, query, limit) {
	  var cursor = arguments.length > 4 && arguments[4] !== undefined ? arguments[4] : '';
	  var desc = arguments[5];

	  var seen = {};
	  console.log('cursor', cursor, 'query', query, 'desc', desc);
	  var q = desc ? { '<': cursor, '-': desc } : { '>': cursor, '-': desc };
	  node.get({ '.': q, '%': 20 * 1000 }).once().map().on(function (value, key) {
	    console.log('searchText', value, key);
	    if (key.indexOf(query) === 0) {
	      if (typeof limit === 'number' && _Object$keys(seen).length >= limit) {
	        return;
	      }
	      if (seen.hasOwnProperty(key)) {
	        return;
	      }
	      if (value && _Object$keys(value).length > 1) {
	        seen[key] = true;
	        callback({ value: value, key: key });
	      }
	    }
	  });
	}
async function searchText(node, callback, query, limit) {
	  var cursor = arguments.length > 4 && arguments[4] !== undefined ? arguments[4] : '';
	  var desc = arguments[5];

	  var seen = {};
	  console.log('cursor', cursor, 'query', query, 'desc', desc);
	  var q = desc ? { '<': cursor, '-': desc } : { '>': cursor, '-': desc };
	  node.get({ '.': q, '%': 20 * 1000 }).once().map().on(function (value, key) {
	    console.log('searchText', value, key);
	    if (key.indexOf(query) === 0) {
	      if (typeof limit === 'number' && _Object$keys(seen).length >= limit) {
	        return;
	      }
	      if (seen.hasOwnProperty(key)) {
	        return;
	      }
	      if (value && _Object$keys(value).length > 1) {
	        seen[key] = true;
	        callback({ value: value, key: key });
	      }
	    }
	  });
	}
async function searchText ( node , callback , query , limit ) { var cursor = arguments . length > 4 && arguments [ 4 ] !== undefined ? arguments [ 4 ] : '' ; var desc = arguments [ 5 ] ; var seen = { } ; console . log ( 'cursor' , cursor , 'query' , query , 'desc' , desc ) ; var q = desc ? { '<' : cursor , '-' : desc } : { '>' : cursor , '-' : desc } ; node . get ( { '.' : q , '%' : 20 * 1000 } ) . once ( ) . map ( ) . on ( function ( value , key ) { console . log ( 'searchText' , value , key ) ; if ( key . indexOf ( query ) === 0 ) { if ( typeof limit === 'number' && _Object$keys ( seen ) . length >= limit ) { return ; } if ( seen . hasOwnProperty ( key ) ) { return ; } if ( value && _Object$keys ( value ) . length > 1 ) { seen [ key ] = true ; callback ( { value : value , key : key } ) ; } } } ) ; }
temp method for GUN search
temp method for GUN search