oauth2-cli 0.8.7 → 0.8.9
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 +19 -15
- package/dist/Client.js +1 -10
- package/package.json +3 -3
package/CHANGELOG.md
CHANGED
|
@@ -2,54 +2,58 @@
|
|
|
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
|
+
## [0.8.9](https://github.com/battis/oauth2-cli/compare/oauth2-cli/0.8.8...oauth2-cli/0.8.9) (2026-02-19)
|
|
6
|
+
|
|
7
|
+
|
|
8
|
+
### Bug Fixes
|
|
6
9
|
|
|
7
|
-
|
|
10
|
+
* further refinement in debug logging ([568e563](https://github.com/battis/oauth2-cli/commit/568e563bc0a918cd9741951654db685488f10330))
|
|
8
11
|
|
|
12
|
+
## [0.8.8](https://github.com/battis/oauth2-cli/compare/oauth2-cli/0.8.7...oauth2-cli/0.8.8) (2026-02-19)
|
|
9
13
|
|
|
10
14
|
### Bug Fixes
|
|
11
15
|
|
|
12
|
-
|
|
16
|
+
- very empty responses ([fe9831d](https://github.com/battis/oauth2-cli/commit/fe9831da4f6662719132a1f540bc3ca31a103348))
|
|
13
17
|
|
|
14
|
-
## [0.8.
|
|
18
|
+
## [0.8.7](https://github.com/battis/oauth2-cli/compare/oauth2-cli/0.8.6...oauth2-cli/0.8.7) (2026-02-19)
|
|
19
|
+
|
|
20
|
+
### Bug Fixes
|
|
15
21
|
|
|
22
|
+
- apparently some responses don't have headers ([bcc621a](https://github.com/battis/oauth2-cli/commit/bcc621a5e8b45a609c497205559dd814d91e19f1))
|
|
23
|
+
|
|
24
|
+
## [0.8.5](https://github.com/battis/oauth2-cli/compare/oauth2-cli/0.8.4...oauth2-cli/0.8.5) (2026-02-19)
|
|
16
25
|
|
|
17
26
|
### Bug Fixes
|
|
18
27
|
|
|
19
|
-
|
|
28
|
+
- include error response when unparseable as JSON ([0138b14](https://github.com/battis/oauth2-cli/commit/0138b145b564be46e9dbcda0b546305375839826))
|
|
20
29
|
|
|
21
30
|
## [0.8.4](https://github.com/battis/oauth2-cli/compare/oauth2-cli/0.8.3...oauth2-cli/0.8.4) (2026-02-19)
|
|
22
31
|
|
|
23
|
-
|
|
24
32
|
### Features
|
|
25
33
|
|
|
26
|
-
|
|
34
|
+
- human-readable client name for clarity ([68b4287](https://github.com/battis/oauth2-cli/commit/68b42872998ec423440d07447012282528e3ee76))
|
|
27
35
|
|
|
28
36
|
## [0.8.3](https://github.com/battis/oauth2-cli/compare/oauth2-cli/0.8.2...oauth2-cli/0.8.3) (2026-02-18)
|
|
29
37
|
|
|
30
|
-
|
|
31
38
|
### Bug Fixes
|
|
32
39
|
|
|
33
|
-
|
|
40
|
+
- continued server timeout improvements ([2e8d275](https://github.com/battis/oauth2-cli/commit/2e8d275706be411b317e2257bd97ee8f7fe4bc95))
|
|
34
41
|
|
|
35
42
|
## [0.8.2](https://github.com/battis/oauth2-cli/compare/oauth2-cli/0.8.1...oauth2-cli/0.8.2) (2026-02-18)
|
|
36
43
|
|
|
37
|
-
|
|
38
44
|
### Features
|
|
39
45
|
|
|
40
|
-
|
|
41
|
-
|
|
46
|
+
- isAuthorized() ([56b0436](https://github.com/battis/oauth2-cli/commit/56b0436d98b9d9f213518e806ead846321180a63))
|
|
42
47
|
|
|
43
48
|
### Bug Fixes
|
|
44
49
|
|
|
45
|
-
|
|
50
|
+
- 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
51
|
|
|
47
52
|
## [0.8.1](https://github.com/battis/oauth2-cli/compare/oauth2-cli/0.8.0...oauth2-cli/0.8.1) (2026-02-18)
|
|
48
53
|
|
|
49
|
-
|
|
50
54
|
### Features
|
|
51
55
|
|
|
52
|
-
|
|
56
|
+
- provide parameterized credentials with simplified typing ([5a92c67](https://github.com/battis/oauth2-cli/commit/5a92c67dbd4ab52fa4f0b02a910e788f5ae67adb))
|
|
53
57
|
|
|
54
58
|
## [0.8.0](https://github.com/battis/oauth2-cli/compare/oauth2-cli/0.7.3...oauth2-cli/0.8.0) (2026-02-17)
|
|
55
59
|
|
package/dist/Client.js
CHANGED
|
@@ -229,16 +229,7 @@ export class Client extends EventEmitter {
|
|
|
229
229
|
return (await response.json());
|
|
230
230
|
}
|
|
231
231
|
else {
|
|
232
|
-
throw new Error(`The response could not be parsed as JSON by ${this.clientName()}.`, {
|
|
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
|
-
}
|
|
241
|
-
});
|
|
232
|
+
throw new Error(`The response could not be parsed as JSON by ${this.clientName()}.`, { cause: { response } });
|
|
242
233
|
}
|
|
243
234
|
}
|
|
244
235
|
/**
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "oauth2-cli",
|
|
3
|
-
"version": "0.8.
|
|
3
|
+
"version": "0.8.9",
|
|
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": {
|
|
@@ -22,8 +22,8 @@
|
|
|
22
22
|
"oauth4webapi": "^3.8.5",
|
|
23
23
|
"openid-client": "^6.8.2",
|
|
24
24
|
"ora": "^9.3.0",
|
|
25
|
-
"
|
|
26
|
-
"
|
|
25
|
+
"requestish": "0.1.1",
|
|
26
|
+
"gcrtl": "0.1.7"
|
|
27
27
|
},
|
|
28
28
|
"devDependencies": {
|
|
29
29
|
"@battis/descriptive-types": "^0.2.6",
|