@zeplin/cli
Advanced tools
Comparing version 1.1.11 to 1.1.12
{ | ||
"name": "@zeplin/cli", | ||
"version": "1.1.11", | ||
"version": "1.1.12", | ||
"description": "Zeplin CLI", | ||
@@ -5,0 +5,0 @@ "main": "./dist/src/index.js", |
@@ -41,3 +41,3 @@ "use strict"; | ||
const authFileUtil = __importStar(require("../../util/auth-file")); | ||
const index_1 = require("../../service/index"); | ||
const service_1 = require("../../service"); | ||
function login(options) { | ||
@@ -61,13 +61,15 @@ return __awaiter(this, void 0, void 0, function* () { | ||
} | ||
const authService = new index_1.AuthenticationService({ | ||
} | ||
const authService = new service_1.AuthenticationService(existingToken | ||
? { | ||
token: existingToken, | ||
method: index_1.AUTH_METHOD.LOCAL_AUTH_FILE | ||
}); | ||
yield authService.promptForLogin({ | ||
ignoreSaveTokenErrors: false, | ||
noBrowser: options.noBrowser, | ||
forceRenewal: true | ||
}); | ||
logger_1.default.info(chalk_1.default.bold("\n🦄 Successfully authenticated.")); | ||
} | ||
method: service_1.AUTH_METHOD.LOCAL_AUTH_FILE | ||
} | ||
: undefined); | ||
yield authService.promptForLogin({ | ||
ignoreSaveTokenErrors: false, | ||
noBrowser: options.noBrowser, | ||
forceRenewal: true | ||
}); | ||
logger_1.default.info(chalk_1.default.bold("\n🦄 Successfully authenticated.")); | ||
} | ||
@@ -74,0 +76,0 @@ }); |
{ | ||
"name": "@zeplin/cli", | ||
"version": "1.1.11", | ||
"version": "1.1.12", | ||
"description": "Zeplin CLI", | ||
@@ -5,0 +5,0 @@ "main": "./dist/src/index.js", |
248292
5583