@adobe/spacecat-shared-gpt-client 1.5.0 → 1.5.2

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 CHANGED
@@ -1,3 +1,17 @@
1
+ # [@adobe/spacecat-shared-gpt-client-v1.5.2](https://github.com/adobe/spacecat-shared/compare/@adobe/spacecat-shared-gpt-client-v1.5.1...@adobe/spacecat-shared-gpt-client-v1.5.2) (2025-03-03)
2
+
3
+
4
+ ### Bug Fixes
5
+
6
+ * **deps:** update external fixes ([#638](https://github.com/adobe/spacecat-shared/issues/638)) ([64625c2](https://github.com/adobe/spacecat-shared/commit/64625c24f1b3b7bc4a26b576155bb6bc8529ef45))
7
+
8
+ # [@adobe/spacecat-shared-gpt-client-v1.5.1](https://github.com/adobe/spacecat-shared/compare/@adobe/spacecat-shared-gpt-client-v1.5.0...@adobe/spacecat-shared-gpt-client-v1.5.1) (2025-02-26)
9
+
10
+
11
+ ### Bug Fixes
12
+
13
+ * improves logs for Firefall client failures ([#632](https://github.com/adobe/spacecat-shared/issues/632)) ([eeac857](https://github.com/adobe/spacecat-shared/commit/eeac8575ceab5b5b086dd8daaf46dc07430fe5a4))
14
+
1
15
  # [@adobe/spacecat-shared-gpt-client-v1.5.0](https://github.com/adobe/spacecat-shared/compare/@adobe/spacecat-shared-gpt-client-v1.4.7...@adobe/spacecat-shared-gpt-client-v1.5.0) (2025-02-17)
2
16
 
3
17
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@adobe/spacecat-shared-gpt-client",
3
- "version": "1.5.0",
3
+ "version": "1.5.2",
4
4
  "description": "Shared modules of the Spacecat Services - GPT Client",
5
5
  "type": "module",
6
6
  "engines": {
@@ -45,6 +45,6 @@
45
45
  "nock": "14.0.1",
46
46
  "sinon": "19.0.2",
47
47
  "sinon-chai": "4.0.0",
48
- "typescript": "5.7.3"
48
+ "typescript": "5.8.2"
49
49
  }
50
50
  }
@@ -134,7 +134,8 @@ export default class FirefallClient {
134
134
  });
135
135
 
136
136
  if (!response.ok) {
137
- throw new Error(`Job submission failed with status code ${response.status}`);
137
+ const errorBody = await response.text();
138
+ throw new Error(`Job submission failed with status code ${response.status} and body: ${errorBody}`);
138
139
  }
139
140
 
140
141
  return response.json();