neonctl 1.27.4 → 1.27.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.
Files changed (2) hide show
  1. package/auth.js +10 -0
  2. package/package.json +3 -2
package/auth.js CHANGED
@@ -65,6 +65,16 @@ export const auth = async ({ oauthHost, clientId }) => {
65
65
  response.end();
66
66
  return;
67
67
  }
68
+ // process the CORS preflight OPTIONS request
69
+ if (request.method === 'OPTIONS') {
70
+ response.writeHead(200, {
71
+ 'Access-Control-Allow-Origin': '*',
72
+ 'Access-Control-Allow-Methods': 'GET, POST',
73
+ 'Access-Control-Allow-Headers': 'Content-Type',
74
+ });
75
+ response.end();
76
+ return;
77
+ }
68
78
  log.debug(`Callback received: ${request.url}`);
69
79
  const params = neonOAuthClient.callbackParams(request);
70
80
  const tokenSet = await neonOAuthClient.callback(REDIRECT_URI(listen_port), params, {
package/package.json CHANGED
@@ -5,7 +5,7 @@
5
5
  "url": "git@github.com:neondatabase/neonctl.git"
6
6
  },
7
7
  "type": "module",
8
- "version": "1.27.4",
8
+ "version": "1.27.6",
9
9
  "description": "CLI tool for NeonDB Cloud management",
10
10
  "main": "index.js",
11
11
  "author": "NeonDB",
@@ -80,7 +80,8 @@
80
80
  "targets": [
81
81
  "node18-linux-x64",
82
82
  "node18-macos-x64",
83
- "node18-win-x64"
83
+ "node18-win-x64",
84
+ "node18-linux-arm64"
84
85
  ]
85
86
  },
86
87
  "scripts": {