@flink-app/github-app-plugin 0.12.1-alpha.40 → 0.12.1-alpha.43

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.
@@ -76,6 +76,10 @@ class GitHubAPIClient {
76
76
  error.message = errorBody;
77
77
  throw error;
78
78
  }
79
+ // Handle 204 No Content (void response)
80
+ if (response.status === 204) {
81
+ return undefined;
82
+ }
79
83
  // Parse and return response
80
84
  const responseData = await response.json();
81
85
  return responseData;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@flink-app/github-app-plugin",
3
- "version": "0.12.1-alpha.40",
3
+ "version": "0.12.1-alpha.43",
4
4
  "description": "Flink plugin for GitHub App integration with installation management and webhook handling",
5
5
  "scripts": {
6
6
  "test": "node --preserve-symlinks -r ts-node/register -- node_modules/jasmine/bin/jasmine --config=./spec/support/jasmine.json",
@@ -37,5 +37,5 @@
37
37
  "tsc-watch": "^4.2.9",
38
38
  "typescript": "5.4.5"
39
39
  },
40
- "gitHead": "456502f273fe9473df05b71a803f3eda1a2f8931"
40
+ "gitHead": "e5fc78243a97075ce0272f287f3f89fd44681715"
41
41
  }
@@ -145,6 +145,11 @@ export class GitHubAPIClient {
145
145
  throw error;
146
146
  }
147
147
 
148
+ // Handle 204 No Content (void response)
149
+ if (response.status === 204) {
150
+ return undefined as T;
151
+ }
152
+
148
153
  // Parse and return response
149
154
  const responseData = await response.json();
150
155
  return responseData as T;