@eluvio/elv-client-js 4.0.55 → 4.0.57
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/ElvClient-min.js +11 -10
- package/dist/ElvClient-node-min.js +10 -10
- package/dist/ElvFrameClient-min.js +4 -4
- package/dist/ElvPermissionsClient-min.js +1 -1
- package/dist/ElvWalletClient-min.js +10 -9
- package/dist/ElvWalletClient-node-min.js +10 -10
- package/dist/src/ElvClient.js +441 -306
- package/dist/src/FrameClient.js +2 -2
- package/dist/src/HttpClient.js +10 -1
- package/dist/src/UserProfileClient.js +206 -88
- package/dist/src/Utils.js +10 -0
- package/dist/src/Validation.js +1 -1
- package/dist/src/client/ContentAccess.js +574 -405
- package/dist/src/client/LiveConf.js +330 -0
- package/dist/src/client/LiveStream.js +1785 -0
- package/package.json +1 -1
- package/src/Utils.js +1 -1
- package/src/client/Files.js +23 -2
- package/testScripts/Test.js +0 -14
package/package.json
CHANGED
package/src/Utils.js
CHANGED
|
@@ -755,7 +755,7 @@ const Utils = {
|
|
|
755
755
|
"maxBufferLength": 5,
|
|
756
756
|
"backBufferLength": 5,
|
|
757
757
|
"liveSyncDuration": 5,
|
|
758
|
-
"liveMaxLatencyDuration": !lowLatency || isSafari ? 15 :
|
|
758
|
+
"liveMaxLatencyDuration": !lowLatency || isSafari ? 15 : 10,
|
|
759
759
|
"liveDurationInfinity": false,
|
|
760
760
|
"highBufferWatchdogPeriod": 1
|
|
761
761
|
};
|
package/src/client/Files.js
CHANGED
|
@@ -516,14 +516,35 @@ exports.UploadJobStatus = async function({libraryId, objectId, writeToken, uploa
|
|
|
516
516
|
|
|
517
517
|
const path = UrlJoin("q", writeToken, "file_jobs", uploadId, "uploads", jobId);
|
|
518
518
|
|
|
519
|
-
|
|
519
|
+
let response = await this.utils.ResponseToJson(
|
|
520
520
|
this.HttpClient.Request({
|
|
521
521
|
headers: await this.authClient.AuthorizationHeader({libraryId, objectId, update: true}),
|
|
522
522
|
method: "GET",
|
|
523
523
|
path: path,
|
|
524
|
-
allowFailover: false
|
|
524
|
+
allowFailover: false,
|
|
525
|
+
queryParams: { start: 0, limit: 10000 }
|
|
525
526
|
})
|
|
526
527
|
);
|
|
528
|
+
|
|
529
|
+
while(response.next !== response.total && response.next >= 0) {
|
|
530
|
+
const newResponse = await this.utils.ResponseToJson(
|
|
531
|
+
this.HttpClient.Request({
|
|
532
|
+
headers: await this.authClient.AuthorizationHeader({libraryId, objectId, update: true}),
|
|
533
|
+
method: "GET",
|
|
534
|
+
path: path,
|
|
535
|
+
allowFailover: false,
|
|
536
|
+
queryParams: { start: response.next }
|
|
537
|
+
})
|
|
538
|
+
);
|
|
539
|
+
|
|
540
|
+
response.files = [
|
|
541
|
+
...response.files,
|
|
542
|
+
...newResponse.files
|
|
543
|
+
];
|
|
544
|
+
response.next = newResponse.next;
|
|
545
|
+
}
|
|
546
|
+
|
|
547
|
+
return response;
|
|
527
548
|
};
|
|
528
549
|
|
|
529
550
|
exports.UploadFileData = async function({libraryId, objectId, writeToken, encryption, uploadId, jobId, filePath, fileData}) {
|
package/testScripts/Test.js
CHANGED
|
@@ -16,20 +16,6 @@ const Test = async () => {
|
|
|
16
16
|
});
|
|
17
17
|
|
|
18
18
|
client.SetSigner({signer});
|
|
19
|
-
|
|
20
|
-
client.ToggleLogging(true);
|
|
21
|
-
const response = await client.CallContractMethod({
|
|
22
|
-
cacheContract: true,
|
|
23
|
-
contractAddress: "0xc4958836b7f883a02e9fedcc11f7ebbcc8c2d5bb",
|
|
24
|
-
formatAgruments: true,
|
|
25
|
-
methodArgs: [1],
|
|
26
|
-
methodName: "membersList",
|
|
27
|
-
overrideCachedContract: false,
|
|
28
|
-
overrides: {}
|
|
29
|
-
});
|
|
30
|
-
client.ToggleLogging(false);
|
|
31
|
-
|
|
32
|
-
console.log("response", response)
|
|
33
19
|
} catch(error) {
|
|
34
20
|
console.error(error);
|
|
35
21
|
console.error(JSON.stringify(error, null, 2));
|