oauth2-cli 0.8.4 → 0.8.5

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
@@ -2,6 +2,13 @@
2
2
 
3
3
  All notable changes to this project will be documented in this file. See [commit-and-tag-version](https://github.com/absolute-version/commit-and-tag-version) for commit guidelines.
4
4
 
5
+ ## [0.8.5](https://github.com/battis/oauth2-cli/compare/oauth2-cli/0.8.4...oauth2-cli/0.8.5) (2026-02-19)
6
+
7
+
8
+ ### Bug Fixes
9
+
10
+ * include error response when unparseable as JSON ([0138b14](https://github.com/battis/oauth2-cli/commit/0138b145b564be46e9dbcda0b546305375839826))
11
+
5
12
  ## [0.8.4](https://github.com/battis/oauth2-cli/compare/oauth2-cli/0.8.3...oauth2-cli/0.8.4) (2026-02-19)
6
13
 
7
14
 
package/dist/Client.js CHANGED
@@ -230,7 +230,14 @@ export class Client extends EventEmitter {
230
230
  }
231
231
  else {
232
232
  throw new Error(`The response could not be parsed as JSON by ${this.clientName()}.`, {
233
- cause: response
233
+ cause: {
234
+ response: {
235
+ status: response.status,
236
+ statusText: response.statusText,
237
+ headers: Object.fromEntries(response.headers.entries()),
238
+ body: await response.text()
239
+ }
240
+ }
234
241
  });
235
242
  }
236
243
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "oauth2-cli",
3
- "version": "0.8.4",
3
+ "version": "0.8.5",
4
4
  "description": "Acquire API access tokens via OAuth 2.0 within CLI tools",
5
5
  "homepage": "https://github.com/battis/oauth2-cli/tree/main/packages/oauth2-cli#readme",
6
6
  "repository": {