diff --git a/dist/bundle.es.js b/dist/bundle.es.js index 4bbe81d..b55ae23 100644 --- a/dist/bundle.es.js +++ b/dist/bundle.es.js @@ -2917,6 +2917,18 @@ const defaultState$1 = { purchasedStreamingUrls: {} }; +reducers$1[PURCHASE_URI_STARTED] = (state, action) => { + const { uri } = action.data; + const newFailedPurchaseUris = state.failedPurchaseUris.slice(); + if (newFailedPurchaseUris.includes(uri)) { + newFailedPurchaseUris.splice(newFailedPurchaseUris.indexOf(uri), 1); + } + + return _extends$4({}, state, { + failedPurchaseUris: newFailedPurchaseUris + }); +}; + reducers$1[PURCHASE_URI_COMPLETED] = (state, action) => { const { uri, streamingUrl } = action.data; const newPurchasedUris = state.purchasedUris.slice(); diff --git a/dist/flow-typed/File.js b/dist/flow-typed/File.js index 4384d3f..80cc437 100644 --- a/dist/flow-typed/File.js +++ b/dist/flow-typed/File.js @@ -55,3 +55,11 @@ declare type PurchaseUriFailed = { uri: string }, }; + +declare type PurchaseUriStarted = { + type: ACTIONS.PURCHASE_URI_STARTED, + data: { + uri: string, + streamingUrl: string, + }, +}; \ No newline at end of file