@inweb/client 25.3.21 → 25.3.23
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/client.js +4 -4
- package/dist/client.js.map +1 -1
- package/dist/client.min.js +1 -1
- package/dist/client.module.js +4 -6
- package/dist/client.module.js.map +1 -1
- package/package.json +2 -3
- package/src/Api/File.ts +2 -2
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@inweb/client",
|
|
3
|
-
"version": "25.3.
|
|
3
|
+
"version": "25.3.23",
|
|
4
4
|
"description": "JavaScript REST API client for the Open Cloud Server",
|
|
5
5
|
"homepage": "https://cloud.opendesign.com/docs/index.html",
|
|
6
6
|
"license": "SEE LICENSE IN LICENSE",
|
|
@@ -23,8 +23,7 @@
|
|
|
23
23
|
"scripts": {
|
|
24
24
|
"build": "rollup -c rollup.config.js",
|
|
25
25
|
"test": "karma start karma.conf.js",
|
|
26
|
-
"docs": "
|
|
27
|
-
"ts-docs": "typedoc --options ../../typedoc.json"
|
|
26
|
+
"ts-docs": "typedoc"
|
|
28
27
|
},
|
|
29
28
|
"dependencies": {
|
|
30
29
|
"@inweb/eventemitter2": "^25.3.19"
|
package/src/Api/File.ts
CHANGED
|
@@ -759,8 +759,8 @@ export class File {
|
|
|
759
759
|
const checkDone = () =>
|
|
760
760
|
this.checkout().then((file) => {
|
|
761
761
|
const readyJobs = waitJobs.filter((job: string) => {
|
|
762
|
-
const jobStatus = file.status[job] || {
|
|
763
|
-
return ["none", "done", "failed"].includes(jobStatus.state);
|
|
762
|
+
const jobStatus = file.status[job] || {};
|
|
763
|
+
return ["none", "done", "failed"].includes(jobStatus.state || "none");
|
|
764
764
|
});
|
|
765
765
|
const ready = waitAll ? readyJobs.length === waitJobs.length : readyJobs.length > 0;
|
|
766
766
|
const cancel = params?.onCheckout?.(file, ready);
|