ygc-dsh-plugin-autoupdate 0.9.0 → 0.9.1
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.
- package/lib/core.js +6 -1
- package/package.json +1 -1
package/lib/core.js
CHANGED
|
@@ -14,7 +14,12 @@ import path from 'node:path';
|
|
|
14
14
|
import os from 'node:os';
|
|
15
15
|
|
|
16
16
|
export const STATE_DIR = path.join(os.homedir(), '.dsh', 'storages');
|
|
17
|
-
|
|
17
|
+
/**
|
|
18
|
+
* 状态文件位置。允许用环境变量覆盖:
|
|
19
|
+
* 探针/端到端测试会走真实路由,绝不能把测试记录写进用户真实配置。
|
|
20
|
+
*/
|
|
21
|
+
export const STATE_FILE =
|
|
22
|
+
process.env.DSH_PLUGIN_AUTOUPDATE_STATE_FILE || path.join(STATE_DIR, 'plugin-autoupdate.json');
|
|
18
23
|
|
|
19
24
|
/** 默认检查间隔(分钟)。 */
|
|
20
25
|
export const DEFAULT_INTERVAL_MINUTES = 360;
|
package/package.json
CHANGED