update bundle and type
This commit is contained in:
parent
a5d486bd3b
commit
5cff70a26b
2 changed files with 20 additions and 0 deletions
12
dist/bundle.es.js
vendored
12
dist/bundle.es.js
vendored
|
@ -2917,6 +2917,18 @@ const defaultState$1 = {
|
||||||
purchasedStreamingUrls: {}
|
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) => {
|
reducers$1[PURCHASE_URI_COMPLETED] = (state, action) => {
|
||||||
const { uri, streamingUrl } = action.data;
|
const { uri, streamingUrl } = action.data;
|
||||||
const newPurchasedUris = state.purchasedUris.slice();
|
const newPurchasedUris = state.purchasedUris.slice();
|
||||||
|
|
8
dist/flow-typed/File.js
vendored
8
dist/flow-typed/File.js
vendored
|
@ -55,3 +55,11 @@ declare type PurchaseUriFailed = {
|
||||||
uri: string
|
uri: string
|
||||||
},
|
},
|
||||||
};
|
};
|
||||||
|
|
||||||
|
declare type PurchaseUriStarted = {
|
||||||
|
type: ACTIONS.PURCHASE_URI_STARTED,
|
||||||
|
data: {
|
||||||
|
uri: string,
|
||||||
|
streamingUrl: string,
|
||||||
|
},
|
||||||
|
};
|
Loading…
Add table
Reference in a new issue