arco-cli
Advanced tools
Comparing version 1.26.1 to 1.26.2
@@ -1,2 +0,2 @@ | ||
export declare function fetchLatestVersion(): any; | ||
export declare function fetchLatestVersion(): Promise<any>; | ||
export declare function printLogo(): void; |
"use strict"; | ||
var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) { | ||
function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); } | ||
return new (P || (P = Promise))(function (resolve, reject) { | ||
function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } } | ||
function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } } | ||
function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); } | ||
step((generator = generator.apply(thisArg, _arguments || [])).next()); | ||
}); | ||
}; | ||
var __importDefault = (this && this.__importDefault) || function (mod) { | ||
@@ -12,9 +21,11 @@ return (mod && mod.__esModule) ? mod : { "default": mod }; | ||
function fetchLatestVersion() { | ||
try { | ||
const info = (0, arco_cli_dev_utils_1.getNpmPackageInfo)(ARCO_CLI_PACKAGE_NAME); | ||
const { latest: lastVersion } = info['dist-tags']; | ||
return lastVersion; | ||
} | ||
catch (e) { } | ||
return null; | ||
return __awaiter(this, void 0, void 0, function* () { | ||
try { | ||
const info = yield (0, arco_cli_dev_utils_1.getNpmPackageInfo)(ARCO_CLI_PACKAGE_NAME); | ||
const { latest: lastVersion } = info['dist-tags']; | ||
return lastVersion; | ||
} | ||
catch (e) { } | ||
return null; | ||
}); | ||
} | ||
@@ -21,0 +32,0 @@ exports.fetchLatestVersion = fetchLatestVersion; |
{ | ||
"name": "arco-cli", | ||
"version": "1.26.1", | ||
"version": "1.26.2", | ||
"description": "Init an Arco material project quickly", | ||
@@ -20,10 +20,10 @@ "keywords": [ | ||
"dependencies": { | ||
"arco-cli-auth": "^1.0.0", | ||
"arco-cli-block": "^1.0.0", | ||
"arco-cli-create-template": "^1.0.0", | ||
"arco-cli-dev-utils": "^1.1.0", | ||
"arco-cli-generate": "^1.0.0", | ||
"arco-cli-init": "^1.2.0", | ||
"arco-cli-publish": "^1.0.0", | ||
"arco-cli-sync": "^1.12.2", | ||
"arco-cli-auth": "^1.0.1", | ||
"arco-cli-block": "^1.0.1", | ||
"arco-cli-create-template": "^1.0.1", | ||
"arco-cli-dev-utils": "^1.1.1", | ||
"arco-cli-generate": "^1.0.1", | ||
"arco-cli-init": "^1.2.1", | ||
"arco-cli-publish": "^1.0.1", | ||
"arco-cli-sync": "^1.12.3", | ||
"axios": "~0", | ||
@@ -39,3 +39,3 @@ "chalk": "^4.0.0", | ||
"license": "MIT", | ||
"gitHead": "3a876b41778a8e7576c7d456bbe2c49f447dd1df" | ||
"gitHead": "e873c42c9a4e5ae66ed5ed2b9787374c7e2d50a8" | ||
} |
41826
921
Updatedarco-cli-auth@^1.0.1
Updatedarco-cli-block@^1.0.1
Updatedarco-cli-dev-utils@^1.1.1
Updatedarco-cli-generate@^1.0.1
Updatedarco-cli-init@^1.2.1
Updatedarco-cli-publish@^1.0.1
Updatedarco-cli-sync@^1.12.3