@runware/sdk-js 1.1.8 → 1.1.9

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
@@ -883,14 +883,15 @@ var RunwareBase = class {
883
883
  let images = (_a = m == null ? void 0 : m[taskUUID]) == null ? void 0 : _a.filter(
884
884
  (img) => img.taskUUID === taskUUID
885
885
  );
886
- onPartialImages == null ? void 0 : onPartialImages(images, (m == null ? void 0 : m.error) && m);
887
886
  if (m.error) {
887
+ onPartialImages == null ? void 0 : onPartialImages(images, (m == null ? void 0 : m.error) && m);
888
888
  this._globalError = m;
889
889
  } else {
890
890
  images = images.map((image) => __spreadProps(__spreadValues({}, image), {
891
891
  positivePrompt,
892
892
  negativePrompt
893
893
  }));
894
+ onPartialImages == null ? void 0 : onPartialImages(images, (m == null ? void 0 : m.error) && m);
894
895
  if (this._sdkType === "CLIENT" /* CLIENT */) {
895
896
  this._globalImages = [
896
897
  ...this._globalImages,
package/dist/index.mjs CHANGED
@@ -862,14 +862,15 @@ var RunwareBase = class {
862
862
  let images = (_a = m == null ? void 0 : m[taskUUID]) == null ? void 0 : _a.filter(
863
863
  (img) => img.taskUUID === taskUUID
864
864
  );
865
- onPartialImages == null ? void 0 : onPartialImages(images, (m == null ? void 0 : m.error) && m);
866
865
  if (m.error) {
866
+ onPartialImages == null ? void 0 : onPartialImages(images, (m == null ? void 0 : m.error) && m);
867
867
  this._globalError = m;
868
868
  } else {
869
869
  images = images.map((image) => __spreadProps(__spreadValues({}, image), {
870
870
  positivePrompt,
871
871
  negativePrompt
872
872
  }));
873
+ onPartialImages == null ? void 0 : onPartialImages(images, (m == null ? void 0 : m.error) && m);
873
874
  if (this._sdkType === "CLIENT" /* CLIENT */) {
874
875
  this._globalImages = [
875
876
  ...this._globalImages,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@runware/sdk-js",
3
- "version": "1.1.8",
3
+ "version": "1.1.9",
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
@@ -368,6 +368,12 @@ return interface IControlNetImage {
368
368
 
369
369
  **Added or Changed**
370
370
 
371
+ - Fix partial images not including prompt
372
+
373
+ ### - v1.1.8
374
+
375
+ **Added or Changed**
376
+
371
377
  - Fix image generation error
372
378
 
373
379
  ### - v1.1.7