Skip to content

Commit

Permalink
Merge branch 'dev'
Browse files Browse the repository at this point in the history
  • Loading branch information
kinfuy committed Aug 23, 2024
2 parents bcff122 + 6acce6e commit fc96892
Show file tree
Hide file tree
Showing 6 changed files with 15 additions and 12 deletions.
4 changes: 2 additions & 2 deletions dist/gacm.js
Original file line number Diff line number Diff line change
Expand Up @@ -111,7 +111,7 @@ const execCommand = async (cmd, args) => {
};

var name$1 = "gacm";
var version$1 = "1.2.9";
var version$1 = "1.2.10";
var description$1 = "gacm";
var author$1 = "alqmc";
var license$1 = "MIT";
Expand Down Expand Up @@ -205,7 +205,7 @@ const insertUser = async (name, email, alias = name) => {
};

var name = "gacm";
var version = "1.2.9";
var version = "1.2.10";
var description = "git account manage";
var author = "alqmc";
var license = "MIT";
Expand Down
7 changes: 4 additions & 3 deletions dist/gnrm.js
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ var execa__default = /*#__PURE__*/_interopDefaultLegacy(execa);
var fetch__default = /*#__PURE__*/_interopDefaultLegacy(fetch);

var name$1 = "gacm";
var version$1 = "1.2.9";
var version$1 = "1.2.10";
var description$1 = "git account manage";
var author$1 = "alqmc";
var license$1 = "MIT";
Expand Down Expand Up @@ -185,7 +185,7 @@ const execCommand = async (cmd, args) => {
};

var name = "gacm";
var version = "1.2.9";
var version = "1.2.10";
var description = "gacm";
var author = "alqmc";
var license = "MIT";
Expand Down Expand Up @@ -500,7 +500,8 @@ const useTest = async (cmd) => {
const test = async (registry2) => {
const { status, start, isTimeout } = await testRegistry(new URL("", registry2.registry).href);
if (isTimeout)
log.error("timeout");
console.log(`
${kolorist.red("\u3010Timeout\u3011")} ping ${registry2.alias}${registry2.alias === registry2.name ? "" : `${kolorist.gray(`(${registry2.name})`)}`}\uFF1A${registry2.registry}`);
if (status) {
const end = Date.now();
console.log(`
Expand Down
4 changes: 2 additions & 2 deletions dist/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "gacm",
"version": "1.2.9",
"version": "1.2.10",
"private": false,
"description": "git account manage",
"author": "alqmc",
Expand All @@ -24,4 +24,4 @@
"node-fetch": "2.6.6",
"prompts": "^2.4.2"
}
}
}
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "gacm",
"version": "1.2.9",
"version": "1.2.10",
"description": "gacm",
"author": "alqmc",
"license": "MIT",
Expand Down
8 changes: 5 additions & 3 deletions package/commands/gnrm/useTest.ts
Original file line number Diff line number Diff line change
@@ -1,9 +1,8 @@
import prompts from 'prompts';
import fetch from 'node-fetch';
import { gray, green } from 'kolorist';
import { gray, green, red } from 'kolorist';
import type { RegistryInfo, TestCmd } from '../../type/shell.type';
import { checkRegistry } from '../../utils/getUserList';
import { log } from '../../utils/log';

const testRegistry = async (registry: string) => {
const start = Date.now();
Expand Down Expand Up @@ -33,7 +32,10 @@ export const useTest = async (cmd: TestCmd) => {

const test = async (registry: RegistryInfo) => {
const { status, start, isTimeout } = await testRegistry(new URL('', registry.registry).href);
if (isTimeout) log.error('timeout');
if (isTimeout)
// eslint-disable-next-line no-console
console.log((`\n ${red('【Timeout】')} ping ${registry.alias}${registry.alias === registry.name ? '' : `${gray(`(${registry.name})`)}`}${registry.registry}`));

if (status) {
const end = Date.now();
// eslint-disable-next-line no-console
Expand Down
2 changes: 1 addition & 1 deletion package/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "gacm",
"version": "1.2.9",
"version": "1.2.10",
"private": false,
"description": "git account manage",
"author": "kinfuy (https://github.com/kinfuy)",
Expand Down

0 comments on commit fc96892

Please sign in to comment.