oauth2-cli 1.2.0 → 1.2.1

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
+ ## [1.2.1](https://github.com/battis/oauth2-cli/compare/oauth2-cli/1.2.0...oauth2-cli/1.2.1) (2026-03-08)
6
+
7
+
8
+ ### Bug Fixes
9
+
10
+ * still more detail on JSON error ([d9d28ce](https://github.com/battis/oauth2-cli/commit/d9d28ce8145a5c29288f28317041e8545b232a1e))
11
+
5
12
  ## [1.2.0](https://github.com/battis/oauth2-cli/compare/oauth2-cli/1.1.5...oauth2-cli/1.2.0) (2026-03-08)
6
13
 
7
14
 
package/dist/Client.js CHANGED
@@ -2,6 +2,7 @@ import { Mutex } from 'async-mutex';
2
2
  import * as gcrtl from 'gcrtl';
3
3
  import { EventEmitter } from 'node:events';
4
4
  import path from 'node:path';
5
+ import { text } from 'node:stream/consumers';
5
6
  import * as OpenIDClient from 'openid-client';
6
7
  import { Body, Headers, URL, URLSearchParams } from 'requestish';
7
8
  import * as Localhost from './Localhost/index.js';
@@ -321,7 +322,7 @@ export class Client extends EventEmitter {
321
322
  status: response.status,
322
323
  statusText: response.statusText,
323
324
  headers: Object.fromEntries(response.headers.entries()),
324
- body: `${response.body}`
325
+ body: response.body ? `${await text(response.body)}` : undefined
325
326
  }
326
327
  }
327
328
  });
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "oauth2-cli",
3
- "version": "1.2.0",
3
+ "version": "1.2.1",
4
4
  "description": "Acquire API access tokens via OAuth 2.0 / OpenID Connect within CLI tools",
5
5
  "homepage": "https://github.com/battis/oauth2-cli/tree/main/packages/oauth2-cli#readme",
6
6
  "repository": {
@@ -23,8 +23,8 @@
23
23
  "open": "^11.0.0",
24
24
  "openid-client": "^6.8.2",
25
25
  "ora": "^9.3.0",
26
- "requestish": "0.1.10",
27
- "gcrtl": "0.1.11"
26
+ "gcrtl": "0.1.11",
27
+ "requestish": "0.1.10"
28
28
  },
29
29
  "devDependencies": {
30
30
  "@battis/descriptive-types": "^0.2.6",