oauth2-cli 0.8.4 → 0.8.6
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 +14 -0
- package/dist/Client.js +8 -1
- package/package.json +2 -2
package/CHANGELOG.md
CHANGED
|
@@ -2,6 +2,20 @@
|
|
|
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.6](https://github.com/battis/oauth2-cli/compare/oauth2-cli/0.8.5...oauth2-cli/0.8.6) (2026-02-19)
|
|
6
|
+
|
|
7
|
+
|
|
8
|
+
### Bug Fixes
|
|
9
|
+
|
|
10
|
+
* apparently some responses don't have headers ([bcc621a](https://github.com/battis/oauth2-cli/commit/bcc621a5e8b45a609c497205559dd814d91e19f1))
|
|
11
|
+
|
|
12
|
+
## [0.8.5](https://github.com/battis/oauth2-cli/compare/oauth2-cli/0.8.4...oauth2-cli/0.8.5) (2026-02-19)
|
|
13
|
+
|
|
14
|
+
|
|
15
|
+
### Bug Fixes
|
|
16
|
+
|
|
17
|
+
* include error response when unparseable as JSON ([0138b14](https://github.com/battis/oauth2-cli/commit/0138b145b564be46e9dbcda0b546305375839826))
|
|
18
|
+
|
|
5
19
|
## [0.8.4](https://github.com/battis/oauth2-cli/compare/oauth2-cli/0.8.3...oauth2-cli/0.8.4) (2026-02-19)
|
|
6
20
|
|
|
7
21
|
|
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:
|
|
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.
|
|
3
|
+
"version": "0.8.6",
|
|
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": {
|
|
@@ -53,6 +53,6 @@
|
|
|
53
53
|
"build": "run-s build:*",
|
|
54
54
|
"build:clean": "run-s clean",
|
|
55
55
|
"build:compile": "tsc",
|
|
56
|
-
"
|
|
56
|
+
"release": "commit-and-tag-version"
|
|
57
57
|
}
|
|
58
58
|
}
|