@kokimoki/app 1.12.0 → 1.13.0

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.
@@ -720,6 +720,9 @@ export class KokimokiClient extends EventEmitter {
720
720
  headers: this.apiHeaders,
721
721
  body: JSON.stringify({ baseImageUrl, prompt, tags }),
722
722
  });
723
+ if (!res.ok) {
724
+ throw await res.json();
725
+ }
723
726
  return await res.json();
724
727
  }
725
728
  }
@@ -486,7 +486,7 @@ function eventTargetAgnosticAddListener(emitter, name, listener, flags) {
486
486
  var eventsExports = events.exports;
487
487
  var EventEmitter$1 = /*@__PURE__*/getDefaultExportFromCjs(eventsExports);
488
488
 
489
- const KOKIMOKI_APP_VERSION = "1.12.0";
489
+ const KOKIMOKI_APP_VERSION = "1.13.0";
490
490
 
491
491
  /**
492
492
  * Utility module to work with key-value stores.
@@ -14943,6 +14943,9 @@ class KokimokiClient extends EventEmitter$1 {
14943
14943
  headers: this.apiHeaders,
14944
14944
  body: JSON.stringify({ baseImageUrl, prompt, tags }),
14945
14945
  });
14946
+ if (!res.ok) {
14947
+ throw await res.json();
14948
+ }
14946
14949
  return await res.json();
14947
14950
  }
14948
14951
  }