flowscale 1.0.4 → 1.0.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 CHANGED
@@ -93,6 +93,9 @@ class FlowscaleAPI {
93
93
  const response = await this.client.get('/api/v1/runs/output', {
94
94
  params: { filename },
95
95
  });
96
+ if (response.status === 204) {
97
+ return null;
98
+ }
96
99
  return response.data;
97
100
  }
98
101
  catch (error) {
@@ -186,6 +189,7 @@ class FlowscaleAPI {
186
189
  throw new Error('No response received from API server');
187
190
  }
188
191
  }
192
+ console.error(error);
189
193
  // Something else happened
190
194
  throw new Error(`Error: ${error.message}`);
191
195
  }
package/package.json CHANGED
@@ -1,9 +1,15 @@
1
1
  {
2
2
  "name": "flowscale",
3
- "version": "1.0.4",
3
+ "version": "1.0.6",
4
4
  "description": "An NPM library for communicating with the Flowscale APIs",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",
7
+ "keywords": [
8
+ "flowscale",
9
+ "api",
10
+ "flowscale-api",
11
+ "comfyui"
12
+ ],
7
13
  "scripts": {
8
14
  "build": "tsc",
9
15
  "test": "echo \"No tests yet\""
package/src/index.ts CHANGED
@@ -125,6 +125,9 @@ export class FlowscaleAPI {
125
125
  params: { filename },
126
126
  }
127
127
  );
128
+ if (response.status === 204) {
129
+ return null;
130
+ }
128
131
  return response.data;
129
132
  } catch (error) {
130
133
  const axiosError = error as AxiosError;