oauth2-cli 0.8.7 → 0.8.8

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,54 +2,51 @@
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.7](https://github.com/battis/oauth2-cli/compare/oauth2-cli/0.8.6...oauth2-cli/0.8.7) (2026-02-19)
5
+ ## [0.8.8](https://github.com/battis/oauth2-cli/compare/oauth2-cli/0.8.7...oauth2-cli/0.8.8) (2026-02-19)
6
6
 
7
- ## [0.8.6](https://github.com/battis/oauth2-cli/compare/oauth2-cli/0.8.5...oauth2-cli/0.8.6) (2026-02-19)
7
+ ### Bug Fixes
8
8
 
9
+ - very empty responses ([fe9831d](https://github.com/battis/oauth2-cli/commit/fe9831da4f6662719132a1f540bc3ca31a103348))
10
+
11
+ ## [0.8.7](https://github.com/battis/oauth2-cli/compare/oauth2-cli/0.8.6...oauth2-cli/0.8.7) (2026-02-19)
9
12
 
10
13
  ### Bug Fixes
11
14
 
12
- * apparently some responses don't have headers ([bcc621a](https://github.com/battis/oauth2-cli/commit/bcc621a5e8b45a609c497205559dd814d91e19f1))
15
+ - apparently some responses don't have headers ([bcc621a](https://github.com/battis/oauth2-cli/commit/bcc621a5e8b45a609c497205559dd814d91e19f1))
13
16
 
14
17
  ## [0.8.5](https://github.com/battis/oauth2-cli/compare/oauth2-cli/0.8.4...oauth2-cli/0.8.5) (2026-02-19)
15
18
 
16
-
17
19
  ### Bug Fixes
18
20
 
19
- * include error response when unparseable as JSON ([0138b14](https://github.com/battis/oauth2-cli/commit/0138b145b564be46e9dbcda0b546305375839826))
21
+ - include error response when unparseable as JSON ([0138b14](https://github.com/battis/oauth2-cli/commit/0138b145b564be46e9dbcda0b546305375839826))
20
22
 
21
23
  ## [0.8.4](https://github.com/battis/oauth2-cli/compare/oauth2-cli/0.8.3...oauth2-cli/0.8.4) (2026-02-19)
22
24
 
23
-
24
25
  ### Features
25
26
 
26
- * human-readable client name for clarity ([68b4287](https://github.com/battis/oauth2-cli/commit/68b42872998ec423440d07447012282528e3ee76))
27
+ - human-readable client name for clarity ([68b4287](https://github.com/battis/oauth2-cli/commit/68b42872998ec423440d07447012282528e3ee76))
27
28
 
28
29
  ## [0.8.3](https://github.com/battis/oauth2-cli/compare/oauth2-cli/0.8.2...oauth2-cli/0.8.3) (2026-02-18)
29
30
 
30
-
31
31
  ### Bug Fixes
32
32
 
33
- * continued server timeout improvements ([2e8d275](https://github.com/battis/oauth2-cli/commit/2e8d275706be411b317e2257bd97ee8f7fe4bc95))
33
+ - continued server timeout improvements ([2e8d275](https://github.com/battis/oauth2-cli/commit/2e8d275706be411b317e2257bd97ee8f7fe4bc95))
34
34
 
35
35
  ## [0.8.2](https://github.com/battis/oauth2-cli/compare/oauth2-cli/0.8.1...oauth2-cli/0.8.2) (2026-02-18)
36
36
 
37
-
38
37
  ### Features
39
38
 
40
- * isAuthorized() ([56b0436](https://github.com/battis/oauth2-cli/commit/56b0436d98b9d9f213518e806ead846321180a63))
41
-
39
+ - isAuthorized() ([56b0436](https://github.com/battis/oauth2-cli/commit/56b0436d98b9d9f213518e806ead846321180a63))
42
40
 
43
41
  ### Bug Fixes
44
42
 
45
- * block thread until interactive authorization complete ([fb9987e](https://github.com/battis/oauth2-cli/commit/fb9987e41a5a8f129955bc3e88ab17994860091b)), closes [#22](https://github.com/battis/oauth2-cli/issues/22)
43
+ - block thread until interactive authorization complete ([fb9987e](https://github.com/battis/oauth2-cli/commit/fb9987e41a5a8f129955bc3e88ab17994860091b)), closes [#22](https://github.com/battis/oauth2-cli/issues/22)
46
44
 
47
45
  ## [0.8.1](https://github.com/battis/oauth2-cli/compare/oauth2-cli/0.8.0...oauth2-cli/0.8.1) (2026-02-18)
48
46
 
49
-
50
47
  ### Features
51
48
 
52
- * provide parameterized credentials with simplified typing ([5a92c67](https://github.com/battis/oauth2-cli/commit/5a92c67dbd4ab52fa4f0b02a910e788f5ae67adb))
49
+ - provide parameterized credentials with simplified typing ([5a92c67](https://github.com/battis/oauth2-cli/commit/5a92c67dbd4ab52fa4f0b02a910e788f5ae67adb))
53
50
 
54
51
  ## [0.8.0](https://github.com/battis/oauth2-cli/compare/oauth2-cli/0.7.3...oauth2-cli/0.8.0) (2026-02-17)
55
52
 
package/dist/Client.js CHANGED
@@ -235,7 +235,7 @@ export class Client extends EventEmitter {
235
235
  status: response.status,
236
236
  statusText: response.statusText,
237
237
  headers: Object.fromEntries(response.headers?.entries() || []),
238
- body: await response.text()
238
+ body: response.text ? await response.text() : response.body
239
239
  }
240
240
  }
241
241
  });
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "oauth2-cli",
3
- "version": "0.8.7",
3
+ "version": "0.8.8",
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": {