@inweb/client 25.3.25 → 25.3.26

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@inweb/client",
3
- "version": "25.3.25",
3
+ "version": "25.3.26",
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",
@@ -26,6 +26,6 @@
26
26
  "ts-docs": "typedoc"
27
27
  },
28
28
  "dependencies": {
29
- "@inweb/eventemitter2": "^25.3.25"
29
+ "@inweb/eventemitter2": "^25.3.26"
30
30
  }
31
31
  }
package/src/Api/Client.ts CHANGED
@@ -491,7 +491,9 @@ export class Client extends EventEmitter2<ClientEventMap> {
491
491
  const jobs: string[] = [];
492
492
  if (params.geometry) jobs.push((await result.extractGeometry(geometryType)).outputFormat);
493
493
  if (params.properties) jobs.push((await result.extractProperties()).outputFormat);
494
- if (params.waitForDone && jobs.length > 0) await result.waitForDone(jobs, true, params);
494
+ if (jobs.length > 0)
495
+ if (params.waitForDone) await result.waitForDone(jobs, true, params);
496
+ else await result.checkout();
495
497
 
496
498
  return result;
497
499
  }
package/src/Api/File.ts CHANGED
@@ -878,7 +878,9 @@ export class File {
878
878
  const jobs: string[] = [];
879
879
  if (params.geometry) jobs.push((await result.extractGeometry(geometryType)).outputFormat);
880
880
  if (params.properties) jobs.push((await result.extractProperties()).outputFormat);
881
- if (params.waitForDone && jobs.length > 0) await result.waitForDone(jobs, true, params);
881
+ if (jobs.length > 0)
882
+ if (params.waitForDone) await result.waitForDone(jobs, true, params);
883
+ else await result.checkout();
882
884
 
883
885
  await this.checkout();
884
886