com.jimuwd.xian.registry-proxy 1.0.127 → 1.0.128

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 (2) hide show
  1. package/dist/port.js +3 -3
  2. package/package.json +1 -1
package/dist/port.js CHANGED
@@ -13,14 +13,14 @@ export const deletePortFile = async () => {
13
13
  async function deleteFile(filePath) {
14
14
  try {
15
15
  await unlink(filePath);
16
- console.log(`文件 ${basename(filePath)} 已删除`);
16
+ logger.info(`端口文件 ${basename(filePath)} 已删除`);
17
17
  }
18
18
  catch (err) {
19
19
  if (err.code === 'ENOENT') {
20
- console.log('文件不存在');
20
+ logger.warn(`端口文件 ${filePath} 不存在`);
21
21
  }
22
22
  else {
23
- console.error('删除失败:', err.message);
23
+ logger.error(`端口文件 ${filePath} 删除失败:`, err.message);
24
24
  }
25
25
  }
26
26
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "com.jimuwd.xian.registry-proxy",
3
- "version": "1.0.127",
3
+ "version": "1.0.128",
4
4
  "description": "A lightweight npm registry proxy with fallback support",
5
5
  "type": "module",
6
6
  "main": "dist/index.js",