@runware/sdk-js 1.1.2 → 1.1.3

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
@@ -1068,9 +1068,10 @@ var RunwareBase = class {
1068
1068
  async ensureConnection() {
1069
1069
  var _a;
1070
1070
  let isConnected = this.connected();
1071
- if (isConnected)
1071
+ console.log("afah");
1072
+ if (isConnected || this._url === BASE_RUNWARE_URLS.TEST)
1072
1073
  return;
1073
- const interval = 2e3;
1074
+ const interval = 200;
1074
1075
  try {
1075
1076
  if (this._invalidAPIkey)
1076
1077
  throw this._invalidAPIkey;
package/dist/index.mjs CHANGED
@@ -1047,9 +1047,10 @@ var RunwareBase = class {
1047
1047
  async ensureConnection() {
1048
1048
  var _a;
1049
1049
  let isConnected = this.connected();
1050
- if (isConnected)
1050
+ console.log("afah");
1051
+ if (isConnected || this._url === BASE_RUNWARE_URLS.TEST)
1051
1052
  return;
1052
- const interval = 2e3;
1053
+ const interval = 200;
1053
1054
  try {
1054
1055
  if (this._invalidAPIkey)
1055
1056
  throw this._invalidAPIkey;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@runware/sdk-js",
3
- "version": "1.1.2",
3
+ "version": "1.1.3",
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
@@ -356,6 +356,12 @@ return interface IControlNetImage {
356
356
 
357
357
  ## Changelog
358
358
 
359
+ ### - v1.1.3
360
+
361
+ **Added or Changed**
362
+
363
+ - Reduce connection time
364
+
359
365
  ### - v1.1.2
360
366
 
361
367
  **Added or Changed**