Merge pull request #142 from lbryio/nsfw-export

add: isNSFW + others
This commit is contained in:
Sean Yesmunt 2019-05-09 12:07:52 -04:00 committed by GitHub
commit 27366c1137
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
4 changed files with 6 additions and 6 deletions

1
dist/bundle.es.js vendored
View file

@ -3446,6 +3446,7 @@ exports.doWalletUnlock = doWalletUnlock;
exports.fileInfoReducer = fileInfoReducer;
exports.formatCredits = formatCredits;
exports.formatFullPrice = formatFullPrice;
exports.isClaimNsfw = isClaimNsfw;
exports.isNameValid = isNameValid;
exports.isURIClaimable = isURIClaimable;
exports.isURIValid = isURIValid;

View file

@ -29,7 +29,6 @@ declare type GenericClaim = {
claim_op: 'create' | 'update',
confirmations: number, // This isn't the most stable atm: https://github.com/lbryio/lbry/issues/2000
decoded_claim: boolean, // claim made in accordance with sdk protobuf types
depth: number, // confirmations since tx
effective_amount: number, // bid amount + supports
timestamp?: number, // date of transaction
has_signature: boolean,
@ -61,10 +60,9 @@ declare type GenericMetadata = {
declare type ChannelMetadata = GenericMetadata & {
public_key: string,
cover_url?: string,
contact_email?: string,
homepage_url?: string,
email?: string,
website_url?: string,
featured?: Array<string>,
};
declare type StreamMetadata = GenericMetadata & {
@ -108,6 +106,7 @@ declare type Location = {
longitude?: number,
country?: string,
state?: string,
city?: string,
code?: string,
};

5
flow-typed/Claim.js vendored
View file

@ -29,7 +29,6 @@ declare type GenericClaim = {
claim_op: 'create' | 'update',
confirmations: number, // This isn't the most stable atm: https://github.com/lbryio/lbry/issues/2000
decoded_claim: boolean, // claim made in accordance with sdk protobuf types
depth: number, // confirmations since tx
effective_amount: number, // bid amount + supports
timestamp?: number, // date of transaction
has_signature: boolean,
@ -61,10 +60,9 @@ declare type GenericMetadata = {
declare type ChannelMetadata = GenericMetadata & {
public_key: string,
cover_url?: string,
contact_email?: string,
homepage_url?: string,
email?: string,
website_url?: string,
featured?: Array<string>,
};
declare type StreamMetadata = GenericMetadata & {
@ -108,6 +106,7 @@ declare type Location = {
longitude?: number,
country?: string,
state?: string,
city?: string,
code?: string,
};

View file

@ -89,6 +89,7 @@ export {
export { batchActions } from 'util/batchActions';
export { parseQueryParams, toQueryString } from 'util/query_params';
export { formatCredits, formatFullPrice, creditsToString } from 'util/formatCredits';
export { isClaimNsfw } from 'util/claim';
// reducers
export { claimsReducer } from 'redux/reducers/claims';