@runware/sdk-js 1.1.5 → 1.1.6
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 +2 -2
- package/dist/index.mjs +2 -2
- package/package.json +1 -1
- package/readme.md +6 -0
package/dist/index.js
CHANGED
|
@@ -1076,13 +1076,13 @@ var RunwareBase = class {
|
|
|
1076
1076
|
let isConnected = this.connected();
|
|
1077
1077
|
if (isConnected || this._url === BASE_RUNWARE_URLS.TEST)
|
|
1078
1078
|
return;
|
|
1079
|
-
const interval = 200;
|
|
1079
|
+
const interval = this._sdkType === "CLIENT" /* CLIENT */ ? 200 : 2e3;
|
|
1080
1080
|
try {
|
|
1081
1081
|
if (this._invalidAPIkey)
|
|
1082
1082
|
throw this._invalidAPIkey;
|
|
1083
1083
|
return new Promise((resolve, reject) => {
|
|
1084
1084
|
let retry = 0;
|
|
1085
|
-
const MAX_RETRY =
|
|
1085
|
+
const MAX_RETRY = 30;
|
|
1086
1086
|
const intervalId = setInterval(async () => {
|
|
1087
1087
|
try {
|
|
1088
1088
|
const hasConnected = this.connected();
|
package/dist/index.mjs
CHANGED
|
@@ -1055,13 +1055,13 @@ var RunwareBase = class {
|
|
|
1055
1055
|
let isConnected = this.connected();
|
|
1056
1056
|
if (isConnected || this._url === BASE_RUNWARE_URLS.TEST)
|
|
1057
1057
|
return;
|
|
1058
|
-
const interval = 200;
|
|
1058
|
+
const interval = this._sdkType === "CLIENT" /* CLIENT */ ? 200 : 2e3;
|
|
1059
1059
|
try {
|
|
1060
1060
|
if (this._invalidAPIkey)
|
|
1061
1061
|
throw this._invalidAPIkey;
|
|
1062
1062
|
return new Promise((resolve, reject) => {
|
|
1063
1063
|
let retry = 0;
|
|
1064
|
-
const MAX_RETRY =
|
|
1064
|
+
const MAX_RETRY = 30;
|
|
1065
1065
|
const intervalId = setInterval(async () => {
|
|
1066
1066
|
try {
|
|
1067
1067
|
const hasConnected = this.connected();
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@runware/sdk-js",
|
|
3
|
-
"version": "1.1.
|
|
3
|
+
"version": "1.1.6",
|
|
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",
|