@localess/cli 0.0.1-dev.20260216101417 → 0.0.1-dev.20260216111227
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/index.js +0 -3
- package/dist/index.mjs +0 -3
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -386,9 +386,7 @@ async function getSession() {
|
|
|
386
386
|
};
|
|
387
387
|
}
|
|
388
388
|
} catch (e) {
|
|
389
|
-
console.error('No credentials found. Please log in using the "localess login" command.');
|
|
390
389
|
}
|
|
391
|
-
console.debug("Not logged in.");
|
|
392
390
|
return session;
|
|
393
391
|
}
|
|
394
392
|
async function persistSession(data) {
|
|
@@ -411,7 +409,6 @@ async function clearSession() {
|
|
|
411
409
|
|
|
412
410
|
// src/commands/login/index.ts
|
|
413
411
|
var loginCommand = new import_commander.Command("login").description("Login to Localess CLI").option("-t, --token <token>", "Token to login to Localess CLI").option("-s, --space <space>", "Space ID to login to").option("-o, --origin <origin>", "Origin of the Localess instance").action(async (options) => {
|
|
414
|
-
console.log("Logging in with options:", options);
|
|
415
412
|
const session = await getSession();
|
|
416
413
|
if (session.isLoggedIn && session.method === "file") {
|
|
417
414
|
console.log('Already logged in. If you want to log in with different credentials, please log out first using "localess logout" command.');
|
package/dist/index.mjs
CHANGED
|
@@ -363,9 +363,7 @@ async function getSession() {
|
|
|
363
363
|
};
|
|
364
364
|
}
|
|
365
365
|
} catch (e) {
|
|
366
|
-
console.error('No credentials found. Please log in using the "localess login" command.');
|
|
367
366
|
}
|
|
368
|
-
console.debug("Not logged in.");
|
|
369
367
|
return session;
|
|
370
368
|
}
|
|
371
369
|
async function persistSession(data) {
|
|
@@ -388,7 +386,6 @@ async function clearSession() {
|
|
|
388
386
|
|
|
389
387
|
// src/commands/login/index.ts
|
|
390
388
|
var loginCommand = new Command("login").description("Login to Localess CLI").option("-t, --token <token>", "Token to login to Localess CLI").option("-s, --space <space>", "Space ID to login to").option("-o, --origin <origin>", "Origin of the Localess instance").action(async (options) => {
|
|
391
|
-
console.log("Logging in with options:", options);
|
|
392
389
|
const session = await getSession();
|
|
393
390
|
if (session.isLoggedIn && session.method === "file") {
|
|
394
391
|
console.log('Already logged in. If you want to log in with different credentials, please log out first using "localess logout" command.');
|