@runware/sdk-js 1.1.7 → 1.1.8

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,14 @@ 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
- images = images.map((image) => __spreadProps(__spreadValues({}, image), {
887
- positivePrompt,
888
- negativePrompt
889
- }));
890
886
  onPartialImages == null ? void 0 : onPartialImages(images, (m == null ? void 0 : m.error) && m);
891
887
  if (m.error) {
892
888
  this._globalError = m;
893
889
  } else {
890
+ images = images.map((image) => __spreadProps(__spreadValues({}, image), {
891
+ positivePrompt,
892
+ negativePrompt
893
+ }));
894
894
  if (this._sdkType === "CLIENT" /* CLIENT */) {
895
895
  this._globalImages = [
896
896
  ...this._globalImages,
@@ -1077,6 +1077,9 @@ var RunwareBase = class {
1077
1077
  }
1078
1078
  );
1079
1079
  } catch (e) {
1080
+ if (e.taskUUID) {
1081
+ throw e;
1082
+ }
1080
1083
  if (retryCount >= retry) {
1081
1084
  return this.handleIncompleteImages({ taskUUIDs, error: e });
1082
1085
  }
package/dist/index.mjs CHANGED
@@ -862,14 +862,14 @@ 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
- images = images.map((image) => __spreadProps(__spreadValues({}, image), {
866
- positivePrompt,
867
- negativePrompt
868
- }));
869
865
  onPartialImages == null ? void 0 : onPartialImages(images, (m == null ? void 0 : m.error) && m);
870
866
  if (m.error) {
871
867
  this._globalError = m;
872
868
  } else {
869
+ images = images.map((image) => __spreadProps(__spreadValues({}, image), {
870
+ positivePrompt,
871
+ negativePrompt
872
+ }));
873
873
  if (this._sdkType === "CLIENT" /* CLIENT */) {
874
874
  this._globalImages = [
875
875
  ...this._globalImages,
@@ -1056,6 +1056,9 @@ var RunwareBase = class {
1056
1056
  }
1057
1057
  );
1058
1058
  } catch (e) {
1059
+ if (e.taskUUID) {
1060
+ throw e;
1061
+ }
1059
1062
  if (retryCount >= retry) {
1060
1063
  return this.handleIncompleteImages({ taskUUIDs, error: e });
1061
1064
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@runware/sdk-js",
3
- "version": "1.1.7",
3
+ "version": "1.1.8",
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
@@ -364,7 +364,13 @@ return interface IControlNetImage {
364
364
 
365
365
  ## Changelog
366
366
 
367
- ### - v1.1.6
367
+ ### - v1.1.8
368
+
369
+ **Added or Changed**
370
+
371
+ - Fix image generation error
372
+
373
+ ### - v1.1.7
368
374
 
369
375
  **Added or Changed**
370
376