@flun/flun 8.0.2 → 8.0.3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (3) hide show
  1. package/CHANGELOG.md +5 -5
  2. package/cli.js +3 -3
  3. package/package.json +1 -1
package/CHANGELOG.md CHANGED
@@ -1,5 +1,9 @@
1
1
  # 更新日志
2
2
 
3
+ ## [8.0.3] - 2026-11-01 15:59
4
+ ### 优化
5
+ - 优化了指向本工具更新容易引起误会的说辞:"当前包有新版...",直接改成"@flun/flun有新版...";
6
+
3
7
  ## [8.0.2] - 2026-11-01 15:39
4
8
  ### 变更
5
9
  - 调整列表配色,提升状态辨识度:分组标题已装为青色、未装为深蓝色;
@@ -8,8 +12,4 @@
8
12
 
9
13
  ## [8.0.1] - 2026-11-01 11:51
10
14
  ### 修复
11
- - 修复 `packages.json` 收录本包自身的问题,清单生成时按新目录名排除本包;
12
-
13
- ## [8.0.0] - 2026-11-01 11:09
14
- ### 变更
15
- - `pkg` 子命令更名为 `pkgs`,旧名不再可用;
15
+ - 修复 `packages.json` 收录本包自身的问题,清单生成时按新目录名排除本包;
package/cli.js CHANGED
@@ -132,13 +132,13 @@ const GOLD = '#B8860B',
132
132
  checkSelfUpdate = async refresh => {
133
133
  try {
134
134
  const self = JSON.parse(fs.readFileSync(new URL('./package.json', import.meta.url), 'utf8')).version,
135
- { data, online } = await resolveLatest(['@flun/flun'], refresh), latest = data['@flun/flun'];
135
+ M = '@flun/flun', { data, online } = await resolveLatest([M], refresh), latest = data[M];
136
136
  if (!online || !latest || latest === self) return;
137
137
  const x = latest.split('.').map(Number), y = self.split('.').map(Number);
138
138
  for (let i = 0; i < 3; i++) {
139
139
  if ((x[i] || 0) !== (y[i] || 0)) {
140
- if ((x[i] || 0) > (y[i] || 0)) console.log('\n ' + chalk.blueBright('当前包有新版:') + chalk.hex(GOLD)(latest)
141
- + chalk.gray(',更新: npm i -g @flun/flun'));
140
+ if ((x[i] || 0) > (y[i] || 0)) console.log('\n ' + chalk.blueBright(`${M}有新版:`) + chalk.hex(GOLD)(latest)
141
+ + chalk.gray(`,更新: npm i -g ${M}`) + '\n');
142
142
  return;
143
143
  }
144
144
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@flun/flun",
3
- "version": "8.0.2",
3
+ "version": "8.0.3",
4
4
  "description": "Flun 生态包索引:列出全部官方包、查看用途与用法、一键打开文档;",
5
5
  "type": "module",
6
6
  "types": "index.d.ts",