exposes api call for use by tv update
This commit is contained in:
parent
130edee41c
commit
d3a9b26787
3 changed files with 4 additions and 3 deletions
1
dist/bundle.es.js
vendored
1
dist/bundle.es.js
vendored
|
@ -5325,6 +5325,7 @@ exports.SPEECH_URLS = speech_urls;
|
|||
exports.THUMBNAIL_STATUSES = thumbnail_upload_statuses;
|
||||
exports.TRANSACTIONS = transaction_types;
|
||||
exports.TX_LIST = transaction_list;
|
||||
exports.apiCall = apiCall;
|
||||
exports.batchActions = batchActions;
|
||||
exports.blockedReducer = blockedReducer;
|
||||
exports.buildSharedStateMiddleware = buildSharedStateMiddleware;
|
||||
|
|
|
@ -10,7 +10,7 @@ import * as TX_LIST from 'constants/transaction_list';
|
|||
import * as SPEECH_URLS from 'constants/speech_urls';
|
||||
import { SEARCH_TYPES, SEARCH_OPTIONS } from 'constants/search';
|
||||
import { DEFAULT_KNOWN_TAGS, DEFAULT_FOLLOWED_TAGS, MATURE_TAGS } from 'constants/tags';
|
||||
import Lbry from 'lbry';
|
||||
import Lbry, { apiCall } from 'lbry';
|
||||
import { selectState as selectSearchState } from 'redux/selectors/search';
|
||||
|
||||
// constants
|
||||
|
@ -33,7 +33,7 @@ export {
|
|||
};
|
||||
|
||||
// common
|
||||
export { Lbry };
|
||||
export { Lbry, apiCall };
|
||||
export {
|
||||
regexInvalidURI,
|
||||
regexAddress,
|
||||
|
|
|
@ -171,7 +171,7 @@ function checkAndParse(response) {
|
|||
});
|
||||
}
|
||||
|
||||
function apiCall(method: string, params: ?{}, resolve: Function, reject: Function) {
|
||||
export function apiCall(method: string, params: ?{}, resolve: Function, reject: Function) {
|
||||
const counter = new Date().getTime();
|
||||
const options = {
|
||||
method: 'POST',
|
||||
|
|
Loading…
Add table
Reference in a new issue