Skip to content

Commit ac0338c

Browse files
authored
perf: faster text-table (#5665)
1 parent 8ae7aa8 commit ac0338c

File tree

5 files changed

+5
-6
lines changed

5 files changed

+5
-6
lines changed

lib/plugins/console/list/category.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
import { underline } from 'picocolors';
2-
import table from 'text-table';
2+
import table from 'fast-text-table';
33
import { stringLength } from './common';
44
import type Hexo from '../../../hexo';
55
import type { CategorySchema } from '../../../types';

lib/plugins/console/list/page.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
import { magenta, underline, gray } from 'picocolors';
2-
import table from 'text-table';
2+
import table from 'fast-text-table';
33
import { stringLength } from './common';
44
import type Hexo from '../../../hexo';
55
import type { PageSchema } from '../../../types';

lib/plugins/console/list/post.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
import { gray, magenta, underline } from 'picocolors';
2-
import table from 'text-table';
2+
import table from 'fast-text-table';
33
import { stringLength } from './common';
44
import type Hexo from '../../../hexo';
55
import type { PostSchema } from '../../../types';

lib/plugins/console/list/tag.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
import { magenta, underline } from 'picocolors';
2-
import table from 'text-table';
2+
import table from 'fast-text-table';
33
import { stringLength } from './common';
44
import type Hexo from '../../../hexo';
55
import type { TagSchema } from '../../../types';

package.json

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -42,6 +42,7 @@
4242
"abbrev": "^3.0.0",
4343
"archy": "^1.0.0",
4444
"bluebird": "^3.7.2",
45+
"fast-text-table": "^1.0.1",
4546
"hexo-cli": "^4.3.2",
4647
"hexo-front-matter": "^4.2.1",
4748
"hexo-fs": "^5.0.0",
@@ -58,7 +59,6 @@
5859
"picocolors": "^1.1.1",
5960
"pretty-hrtime": "^1.0.3",
6061
"strip-ansi": "^6.0.0",
61-
"text-table": "^0.2.0",
6262
"tildify": "^2.0.0",
6363
"titlecase": "^1.1.3",
6464
"warehouse": "^6.0.0"
@@ -74,7 +74,6 @@
7474
"@types/node": "^20.17.6",
7575
"@types/nunjucks": "^3.2.2",
7676
"@types/sinon": "^17.0.3",
77-
"@types/text-table": "^0.2.4",
7877
"0x": "^5.1.2",
7978
"c8": "^9.0.0",
8079
"chai": "^4.3.6",

0 commit comments

Comments
 (0)