wormclaude 1.0.4 → 1.0.5
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/dist/auth.js +3 -6
- package/dist/theme.js +1 -1
- package/package.json +1 -1
package/dist/auth.js
CHANGED
|
@@ -184,16 +184,13 @@ export async function deviceLogin() {
|
|
|
184
184
|
process.exit(1);
|
|
185
185
|
}
|
|
186
186
|
const url = start.verification_uri_complete || start.verification_uri;
|
|
187
|
-
const userCode = start.user_code;
|
|
188
187
|
const deviceCode = start.device_code;
|
|
189
|
-
process.stdout.write('\n');
|
|
190
|
-
process.stdout.write(' Tarayıcıda açın ve giriş yapın:\n');
|
|
191
|
-
process.stdout.write(' \x1b[36m' + url + '\x1b[0m\n\n');
|
|
192
|
-
process.stdout.write(' Doğrulama kodu: \x1b[1m' + userCode + '\x1b[0m\n\n');
|
|
193
188
|
openBrowser(url);
|
|
189
|
+
process.stdout.write('\n Tarayıcıda Google ile giriş yapın...\n');
|
|
190
|
+
process.stdout.write(' \x1b[2m(tarayıcı açılmadıysa: ' + url + ')\x1b[0m\n\n');
|
|
194
191
|
const pollMs = Math.max(2, Number(start.interval) || 3) * 1000;
|
|
195
192
|
const deadline = Date.now() + (Number(start.expires_in) || 600) * 1000;
|
|
196
|
-
process.stdout.write('
|
|
193
|
+
process.stdout.write(' Bekleniyor');
|
|
197
194
|
while (Date.now() < deadline) {
|
|
198
195
|
await sleep(pollMs);
|
|
199
196
|
process.stdout.write('.');
|
package/dist/theme.js
CHANGED