@lightdash/cli 2.537.0 → 2.538.0

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.
@@ -1 +1 @@
1
- {"version":3,"file":"oauthLogin.d.ts","sourceRoot":"","sources":["../../src/handlers/oauthLogin.ts"],"names":[],"mappings":"AAcA,eAAO,MAAM,cAAc,QAClB,MAAM,cACC,MAAM,KACnB,OAAO,CAAC;IAAE,QAAQ,EAAE,MAAM,CAAC;IAAC,gBAAgB,EAAE,MAAM,CAAC;IAAC,KAAK,EAAE,MAAM,CAAA;CAAE,CAwPvE,CAAC"}
1
+ {"version":3,"file":"oauthLogin.d.ts","sourceRoot":"","sources":["../../src/handlers/oauthLogin.ts"],"names":[],"mappings":"AAcA,eAAO,MAAM,cAAc,QAClB,MAAM,cACC,MAAM,KACnB,OAAO,CAAC;IAAE,QAAQ,EAAE,MAAM,CAAC;IAAC,gBAAgB,EAAE,MAAM,CAAC;IAAC,KAAK,EAAE,MAAM,CAAA;CAAE,CAoPvE,CAAC"}
@@ -130,7 +130,7 @@ const loginWithOauth = async (url, oauthPort) => {
130
130
  await (0, oauth_1.openBrowser)(authUrl);
131
131
  // Wait for the authorization code
132
132
  const { code } = await authPromise;
133
- globalState_1.default.debug(`> Got authorization code ${code.substring(0, 10)}...`);
133
+ globalState_1.default.debug(`> Got authorization code`);
134
134
  globalState_1.default.debug(`> Getting token for authorization code`);
135
135
  // Exchange the authorization code for an access token manually (pure OAuth2)
136
136
  const tokenUrl = new url_1.URL('/api/v1/oauth/token', url);
@@ -156,13 +156,13 @@ const loginWithOauth = async (url, oauthPort) => {
156
156
  if (!accessToken) {
157
157
  throw new common_1.AuthorizationError('No access token received from OAuth server');
158
158
  }
159
- globalState_1.default.debug(`> OAuth access token: ${accessToken.substring(0, 10)}...`);
159
+ globalState_1.default.debug(`> Got OAuth access token`);
160
160
  globalState_1.default.debug(`> Creating PAT for user`);
161
161
  // Generate a new PAT from this access token
162
162
  const pat = await (0, pat_1.generatePersonalAccessToken)({
163
163
  Authorization: `Bearer ${accessToken}`,
164
164
  }, url, 8);
165
- globalState_1.default.debug(`> PAT: ${pat.substring(0, 10)}...`);
165
+ globalState_1.default.debug(`> Got PAT`);
166
166
  // Get user information using the PAT
167
167
  const userInfoUrl = new url_1.URL('/api/v1/user', url);
168
168
  const userResponse = await (0, node_fetch_1.default)(userInfoUrl.href, {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@lightdash/cli",
3
- "version": "2.537.0",
3
+ "version": "2.538.0",
4
4
  "description": "Lightdash CLI tool",
5
5
  "license": "MIT",
6
6
  "repository": {
@@ -22,8 +22,8 @@
22
22
  "@actions/core": "1.11.1",
23
23
  "@aws-sdk/credential-providers": "3.995.0",
24
24
  "@casl/ability": "6.8.0",
25
- "@lightdash/common": "2.537.0",
26
- "@lightdash/warehouses": "2.537.0",
25
+ "@lightdash/common": "2.538.0",
26
+ "@lightdash/warehouses": "2.538.0",
27
27
  "@sidvind/better-ajv-errors": "7.0.0",
28
28
  "@types/columnify": "1.5.1",
29
29
  "ajv": "8.18.0",