querystring param
This commit is contained in:
parent
e8c6efcea8
commit
5f97dc03fd
2 changed files with 14 additions and 1 deletions
14
dist/bundle.es.js
vendored
14
dist/bundle.es.js
vendored
|
@ -988,7 +988,7 @@ function parseURI(URL, requireProto = false) {
|
|||
// They will not work properly with canonical_urls
|
||||
claimName: streamNameOrChannelName,
|
||||
claimId: primaryClaimId
|
||||
}, streamName ? { contentName: streamName } : {});
|
||||
}, streamName ? { contentName: streamName } : {}, qs ? { queryString: qs } : {});
|
||||
}
|
||||
|
||||
function parseURIModifier(modSeperator, modValue) {
|
||||
|
@ -1044,6 +1044,18 @@ function buildURI(UrlObj, includeProto = true, protoDefault = 'lbry://') {
|
|||
deprecatedParts = _objectWithoutProperties(UrlObj, ['streamName', 'streamClaimId', 'channelName', 'channelClaimId', 'primaryClaimSequence', 'primaryBidPosition', 'secondaryClaimSequence', 'secondaryBidPosition']);
|
||||
const { claimId, claimName, contentName } = deprecatedParts;
|
||||
|
||||
{
|
||||
if (claimId) {
|
||||
console.error(__("'claimId' should no longer be used. Use 'streamClaimId' or 'channelClaimId' instead"));
|
||||
}
|
||||
if (claimName) {
|
||||
console.error(__("'claimName' should no longer be used. Use 'streamClaimName' or 'channelClaimName' instead"));
|
||||
}
|
||||
if (contentName) {
|
||||
console.error(__("'contentName' should no longer be used. Use 'streamName' instead"));
|
||||
}
|
||||
}
|
||||
|
||||
if (!claimName && !channelName && !streamName) {
|
||||
throw new Error(__("'claimName', 'channelName', and 'streamName' are all empty. One must be present to build a url."));
|
||||
}
|
||||
|
|
|
@ -119,6 +119,7 @@ export function parseURI(URL: string, requireProto: boolean = false): LbryUrlObj
|
|||
claimName: streamNameOrChannelName,
|
||||
claimId: primaryClaimId,
|
||||
...(streamName ? { contentName: streamName } : {}),
|
||||
...(qs ? { queryString: qs} : {}),
|
||||
};
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue