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