@runware/sdk-js 1.1.13 → 1.1.14

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/index.js CHANGED
@@ -733,10 +733,11 @@ var RunwareBase = class {
733
733
  };
734
734
  this.getSingleMessage = ({ taskUUID }) => {
735
735
  var _a;
736
- const value = this._globalMessages[taskUUID] || ((_a = this._globalMessages[taskUUID]) == null ? void 0 : _a[0]);
737
- if (!value)
736
+ const value = (_a = this._globalMessages[taskUUID]) == null ? void 0 : _a[0];
737
+ const errorValue = this._globalMessages[taskUUID];
738
+ if (!value && !errorValue)
738
739
  return null;
739
- return value;
740
+ return (errorValue == null ? void 0 : errorValue.error) ? errorValue : value;
740
741
  };
741
742
  this.disconnect = async () => {
742
743
  var _a, _b, _c, _d;
package/dist/index.mjs CHANGED
@@ -711,10 +711,11 @@ var RunwareBase = class {
711
711
  };
712
712
  this.getSingleMessage = ({ taskUUID }) => {
713
713
  var _a;
714
- const value = this._globalMessages[taskUUID] || ((_a = this._globalMessages[taskUUID]) == null ? void 0 : _a[0]);
715
- if (!value)
714
+ const value = (_a = this._globalMessages[taskUUID]) == null ? void 0 : _a[0];
715
+ const errorValue = this._globalMessages[taskUUID];
716
+ if (!value && !errorValue)
716
717
  return null;
717
- return value;
718
+ return (errorValue == null ? void 0 : errorValue.error) ? errorValue : value;
718
719
  };
719
720
  this.disconnect = async () => {
720
721
  var _a, _b, _c, _d;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@runware/sdk-js",
3
- "version": "1.1.13",
3
+ "version": "1.1.14",
4
4
  "description": "The SDK is used to run image inference with the Runware API, powered by the RunWare inference platform. It can be used to generate imaged with text-to-image and image-to-image. It also allows the use of an existing gallery of models or selecting any model or LoRA from the CivitAI gallery. The API also supports upscaling, background removal, inpainting and outpainting, and a series of other ControlNet models.",
5
5
  "main": "dist/index.js",
6
6
  "module": "dist/index.mjs",
package/readme.md CHANGED
@@ -360,6 +360,12 @@ return interface IControlNetImage {
360
360
 
361
361
  ## Changelog
362
362
 
363
+ ### - v1.1.14
364
+
365
+ **Added or Changed**
366
+
367
+ - Fix incorrect response
368
+
363
369
  ### - v1.1.13
364
370
 
365
371
  **Added or Changed**