neonctl 1.17.2 → 1.17.3
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/auth.js +2 -1
- package/commands/databases.js +1 -1
- package/index.js +2 -1
- package/package.json +1 -1
package/auth.js
CHANGED
|
@@ -39,9 +39,10 @@ export const auth = async ({ oauthHost, clientId }) => {
|
|
|
39
39
|
// Start HTTP server and wait till /callback is hit
|
|
40
40
|
//
|
|
41
41
|
const server = createServer();
|
|
42
|
-
server.listen(0, '
|
|
42
|
+
server.listen(0, '127.0.0.1', function () {
|
|
43
43
|
log.info(`Listening on port ${this.address().port}`);
|
|
44
44
|
});
|
|
45
|
+
await new Promise((resolve) => server.once('listening', resolve));
|
|
45
46
|
const listen_port = server.address().port;
|
|
46
47
|
const neonOAuthClient = new issuer.Client({
|
|
47
48
|
token_endpoint_auth_method: 'none',
|
package/commands/databases.js
CHANGED
|
@@ -5,7 +5,7 @@ import { writer } from '../writer.js';
|
|
|
5
5
|
const DATABASE_FIELDS = ['name', 'owner_name', 'created_at'];
|
|
6
6
|
export const command = 'databases';
|
|
7
7
|
export const describe = 'Manage databases';
|
|
8
|
-
export const aliases = ['database'];
|
|
8
|
+
export const aliases = ['database', 'db'];
|
|
9
9
|
export const builder = (argv) => argv
|
|
10
10
|
.demandCommand(1, '')
|
|
11
11
|
.fail(commandFailHandler)
|
package/index.js
CHANGED
|
@@ -96,7 +96,8 @@ builder = builder
|
|
|
96
96
|
log.error('Authentication failed, please run `neonctl auth`');
|
|
97
97
|
}
|
|
98
98
|
else {
|
|
99
|
-
log.
|
|
99
|
+
log.debug('Fail: %d | %s', err.response?.status, err.response?.statusText);
|
|
100
|
+
log.error(err.response?.data?.message);
|
|
100
101
|
}
|
|
101
102
|
}
|
|
102
103
|
else {
|