befly-shared 1.1.2 → 1.2.0

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "befly-shared",
3
- "version": "1.1.2",
3
+ "version": "1.2.0",
4
4
  "type": "module",
5
5
  "exports": {
6
6
  ".": {
@@ -36,5 +36,5 @@
36
36
  "merge-anything": "^6.0.6",
37
37
  "pathe": "^2.0.3"
38
38
  },
39
- "gitHead": "d9a4c57539f6eb692d7db6c7fd800e021891a07c"
39
+ "gitHead": "ebb51601e566ac01ef09824309a6ec60a5d32388"
40
40
  }
@@ -14,6 +14,8 @@ export interface LoadConfigOptions {
14
14
  mode?: 'all' | 'first';
15
15
  /** 指定要提取的字段路径数组,如 ['menus', 'database.host'],为空则返回完整对象 */
16
16
  paths?: string[];
17
+ /** 默认配置对象,会与加载的配置合并 */
18
+ defaults?: Record<string, any>;
17
19
  }
18
20
  /**
19
21
  * Addon 配置合并选项(已废弃,仅用于向后兼容)