@zeplin/cli
Advanced tools
Comparing version 0.4.2 to 0.4.3
{ | ||
"name": "@zeplin/cli", | ||
"version": "0.4.2", | ||
"version": "0.4.3", | ||
"description": "Zeplin CLI", | ||
@@ -5,0 +5,0 @@ "main": "./dist/src/app", |
@@ -27,2 +27,3 @@ "use strict"; | ||
const envUtil = __importStar(require("../../util/env")); | ||
const authFileUtil = __importStar(require("../../util/auth-file")); | ||
const index_1 = require("../../service/index"); | ||
@@ -37,4 +38,3 @@ function login() { | ||
else { | ||
const authService = new index_1.AuthenticationService(); | ||
const existingToken = yield authService.authenticate(); | ||
const existingToken = yield authFileUtil.readAuthToken(); | ||
if (existingToken) { | ||
@@ -50,2 +50,3 @@ const answer = yield inquirer_1.default.prompt([{ | ||
} | ||
const authService = new index_1.AuthenticationService(); | ||
yield authService.promptForLogin({ ignoreSaveTokenErrors: false }); | ||
@@ -52,0 +53,0 @@ logger_1.default.info(chalk_1.default.bold("\n🦄 Successfully authenticated.")); |
@@ -62,3 +62,3 @@ "use strict"; | ||
if (tokenFromFile) { | ||
logger_1.default.debug(`Found access token from auth file. value: ${tokenFromEnv}`); | ||
logger_1.default.debug(`Found access token from auth file. value: ${tokenFromFile}`); | ||
this.authToken = tokenFromFile; | ||
@@ -65,0 +65,0 @@ } |
{ | ||
"name": "@zeplin/cli", | ||
"version": "0.4.2", | ||
"version": "0.4.3", | ||
"description": "Zeplin CLI", | ||
@@ -5,0 +5,0 @@ "main": "./dist/src/app", |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
216377
3887