@sogni-ai/sogni-client 3.0.0-alpha.2 → 3.0.0-alpha.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/CHANGELOG.md +7 -0
- package/dist/Projects/Job.js +1 -1
- package/package.json +1 -1
- package/src/Projects/Job.ts +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -1,3 +1,10 @@
|
|
|
1
|
+
# [3.0.0-alpha.3](https://github.com/Sogni-AI/sogni-client/compare/v3.0.0-alpha.2...v3.0.0-alpha.3) (2025-03-21)
|
|
2
|
+
|
|
3
|
+
|
|
4
|
+
### Bug Fixes
|
|
5
|
+
|
|
6
|
+
* Fix job.getResultUrl() bug ([ea90083](https://github.com/Sogni-AI/sogni-client/commit/ea900831cd578c5962236b70564cab0da4f2f7a8))
|
|
7
|
+
|
|
1
8
|
# [3.0.0-alpha.2](https://github.com/Sogni-AI/sogni-client/compare/v3.0.0-alpha.1...v3.0.0-alpha.2) (2025-03-21)
|
|
2
9
|
|
|
3
10
|
|
package/dist/Projects/Job.js
CHANGED
|
@@ -107,7 +107,7 @@ class Job extends DataEntity_1.default {
|
|
|
107
107
|
*/
|
|
108
108
|
getResultUrl() {
|
|
109
109
|
return __awaiter(this, void 0, void 0, function* () {
|
|
110
|
-
if (this.data.status
|
|
110
|
+
if (this.data.status !== 'completed') {
|
|
111
111
|
throw new Error('Job is not completed yet');
|
|
112
112
|
}
|
|
113
113
|
const url = yield this._api.downloadUrl({
|
package/package.json
CHANGED
package/src/Projects/Job.ts
CHANGED
|
@@ -157,7 +157,7 @@ class Job extends DataEntity<JobData, JobEventMap> {
|
|
|
157
157
|
* IMPORTANT: URL expires after 30 minutes, so make sure to download the image as soon as possible.
|
|
158
158
|
*/
|
|
159
159
|
async getResultUrl(): Promise<string> {
|
|
160
|
-
if (this.data.status
|
|
160
|
+
if (this.data.status !== 'completed') {
|
|
161
161
|
throw new Error('Job is not completed yet');
|
|
162
162
|
}
|
|
163
163
|
const url = await this._api.downloadUrl({
|