chore: 更新 user-agent 版本为 0.40.2
- user-agent-updater.js 默认值 - config.json 配置值
This commit is contained in:
@@ -13,9 +13,9 @@ let isUpdating = false;
|
||||
|
||||
function getDefaultVersion() {
|
||||
const cfg = getConfig();
|
||||
const userAgent = cfg.user_agent || 'factory-cli/0.19.3';
|
||||
const userAgent = cfg.user_agent || 'factory-cli/0.40.2';
|
||||
const match = userAgent.match(/\/(\d+\.\d+\.\d+)/);
|
||||
return match ? match[1] : '0.19.3';
|
||||
return match ? match[1] : '0.40.2';
|
||||
}
|
||||
|
||||
function initializeVersion() {
|
||||
|
||||
Reference in New Issue
Block a user