three-blocks-login 0.1.5 → 0.1.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.
- package/README.md +1 -1
- package/bin/login.js +32 -1
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -9,7 +9,7 @@ Minimal, dependency-free CLI for authenticating to Three Blocks private npm regi
|
|
|
9
9
|
npx -y three-blocks-login@latest
|
|
10
10
|
|
|
11
11
|
# Using pnpm (recommended - no warnings)
|
|
12
|
-
pnpm dlx three-blocks-login@latest
|
|
12
|
+
pnpm dlx three-blocks-login@latest@latest
|
|
13
13
|
```
|
|
14
14
|
|
|
15
15
|
## Authentication Modes
|
package/bin/login.js
CHANGED
|
@@ -640,7 +640,38 @@ const log = {
|
|
|
640
640
|
const merged = base ? `${base}${os.EOL}${os.EOL}${npmrcContent}` : npmrcContent;
|
|
641
641
|
|
|
642
642
|
fs.writeFileSync( out, merged, { mode: 0o600 } );
|
|
643
|
-
|
|
643
|
+
|
|
644
|
+
// Show authentication status (unless in quiet mode)
|
|
645
|
+
|
|
646
|
+
if ( ! QUIET ) {
|
|
647
|
+
|
|
648
|
+
const maskedLicense = maskLicense( LICENSE_CLEAN );
|
|
649
|
+
|
|
650
|
+
renderEnvHeader( {
|
|
651
|
+
|
|
652
|
+
scope: SCOPE,
|
|
653
|
+
registry: u.href,
|
|
654
|
+
expiresAt,
|
|
655
|
+
tmpFile: out,
|
|
656
|
+
licenseMasked: maskedLicense,
|
|
657
|
+
licenseId,
|
|
658
|
+
channel: CHANNEL,
|
|
659
|
+
status: authStatus,
|
|
660
|
+
plan,
|
|
661
|
+
teamName,
|
|
662
|
+
teamId,
|
|
663
|
+
repository,
|
|
664
|
+
domain,
|
|
665
|
+
region,
|
|
666
|
+
userDisplayName: USER_DISPLAY_NAME,
|
|
667
|
+
} );
|
|
668
|
+
|
|
669
|
+
} else {
|
|
670
|
+
|
|
671
|
+
log.ok( `${banner} wrote ${bold( out )} ${dim( `(${SCOPE} → ${u.href}, expires ${expiresAt ?? "unknown"})` )}` );
|
|
672
|
+
|
|
673
|
+
}
|
|
674
|
+
|
|
644
675
|
return;
|
|
645
676
|
|
|
646
677
|
}
|