exposes api call for use by tv update #239
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.THUMBNAIL_STATUSES = thumbnail_upload_statuses;
|
||||||
exports.TRANSACTIONS = transaction_types;
|
exports.TRANSACTIONS = transaction_types;
|
||||||
exports.TX_LIST = transaction_list;
|
exports.TX_LIST = transaction_list;
|
||||||
|
exports.apiCall = apiCall;
|
||||||
exports.batchActions = batchActions;
|
exports.batchActions = batchActions;
|
||||||
exports.blockedReducer = blockedReducer;
|
exports.blockedReducer = blockedReducer;
|
||||||
exports.buildSharedStateMiddleware = buildSharedStateMiddleware;
|
exports.buildSharedStateMiddleware = buildSharedStateMiddleware;
|
||||||
|
|
|
@ -10,7 +10,7 @@ import * as TX_LIST from 'constants/transaction_list';
|
||||||
import * as SPEECH_URLS from 'constants/speech_urls';
|
import * as SPEECH_URLS from 'constants/speech_urls';
|
||||||
import { SEARCH_TYPES, SEARCH_OPTIONS } from 'constants/search';
|
import { SEARCH_TYPES, SEARCH_OPTIONS } from 'constants/search';
|
||||||
import { DEFAULT_KNOWN_TAGS, DEFAULT_FOLLOWED_TAGS, MATURE_TAGS } from 'constants/tags';
|
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';
|
import { selectState as selectSearchState } from 'redux/selectors/search';
|
||||||
|
|
||||||
// constants
|
// constants
|
||||||
|
@ -33,7 +33,7 @@ export {
|
||||||
};
|
};
|
||||||
|
|
||||||
// common
|
// common
|
||||||
export { Lbry };
|
export { Lbry, apiCall };
|
||||||
export {
|
export {
|
||||||
regexInvalidURI,
|
regexInvalidURI,
|
||||||
regexAddress,
|
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 counter = new Date().getTime();
|
||||||
const options = {
|
const options = {
|
||||||
method: 'POST',
|
method: 'POST',
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue