function cardVersions(name, cb) {
    const ret = (cb) => {
        APIRequest(`/cards/search?q=%2b%2b!%22${name}%22`, (cardData) => {
            cb(cardData);
        }, true);
    };
    if (cb) {
        ret(cb);
    }
    else {
        return new Promise((resolve, reject) => ret(resolve));
    }
}
/**
 * Fetches all versions of a card with the specified name.
 * @param name The card name to search for.
 * @param cb An optional callback to pass card data to.
 * @returns A promise, if no callback is specified. Otherwise nothing.
 */
Fetches all versions of a card with the specified name.
@param name The card name to search for.
@param cb An optional callback to pass card data to.
@returns A promise, if no callback is specified. Otherwise nothing.
Fetches all versions of a card with the specified name . @param name The card name to search for . @param cb An optional callback to pass card data to . @returns A promise if no callback is specified . Otherwise nothing .
function cardVersions(name, cb) {
    const ret = (cb) => {
        APIRequest(`/cards/search?q=%2b%2b!%22${name}%22`, (cardData) => {
            cb(cardData);
        }, true);
    };
    if (cb) {
        ret(cb);
    }
    else {
        return new Promise((resolve, reject) => ret(resolve));
    }
}
function cardVersions ( name , cb ) { const ret = ( cb ) => { APIRequest ( ` ${ name } ` , ( cardData ) => { cb ( cardData ) ; } , true ) ; } ; if ( cb ) { ret ( cb ) ; } else { return new Promise ( ( resolve , reject ) => ret ( resolve ) ) ; } }
Fetches all versions of a card with the specified name.
Fetches all versions of a card with the specified name .