@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.
- package/dist/kokimoki-client.js +3 -0
- package/dist/kokimoki.min.js +4 -1
- package/dist/kokimoki.min.js.map +1 -1
- package/dist/version.d.ts +1 -1
- package/dist/version.js +1 -1
- package/package.json +1 -1
package/dist/kokimoki-client.js
CHANGED
package/dist/kokimoki.min.js
CHANGED
|
@@ -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.
|
|
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
|
}
|