redskillhub-upload 1.0.0-alpha.6 → 1.0.0-alpha.7

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/cli/auth.mjs CHANGED
@@ -427,12 +427,15 @@ export async function login({
427
427
  throw error;
428
428
  }
429
429
 
430
+ console.log(authorizationCode);
431
+ console.log(codeVerifier);
430
432
  const token = await exchangeToken({
431
433
  authorizationCode,
432
434
  codeVerifier,
433
435
  tokenUrl: `${apiBase}${PATHS.EXCHANGE_CLI_OAUTH_TOKEN}`,
434
436
  fetchImpl
435
437
  });
438
+ console.log(token);
436
439
  await writeCredentials(buildCredentialsFromToken(token, now(), 'OAS_TOKEN_EXCHANGE_INVALID_RESPONSE'), env, flags);
437
440
  await clearPendingAuth(env, flags);
438
441
  return maskCredentials(await readCredentials(env, flags));
package/cli/index.mjs CHANGED
@@ -39,6 +39,7 @@ export function parseArgs(argv) {
39
39
  if (item === '--dry-run') flags.dryRun = true;
40
40
  else if (item === '--agent') flags.agent = true;
41
41
  else if (item === '--yes') flags.yes = true;
42
+ else if (item === '--cancel') flags.cancel = true;
42
43
  else if (item.startsWith('--') && item.includes('=')) {
43
44
  const equalIndex = item.indexOf('=');
44
45
  setFlag(flags, item.slice(2, equalIndex), item.slice(equalIndex + 1));
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "redskillhub-upload",
3
- "version": "1.0.0-alpha.6",
3
+ "version": "1.0.0-alpha.7",
4
4
  "type": "module",
5
5
  "publishConfig": {
6
6
  "access": "public",