ph-utils 0.14.0 → 0.14.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.
Files changed (2) hide show
  1. package/lib/config.js +2 -2
  2. package/package.json +1 -1
package/lib/config.js CHANGED
@@ -74,8 +74,8 @@ export function parseEnv(envFiles = [".env", ".env.local"]) {
74
74
  * 该函数会根据当前环境加载相应的配置文件,并将其内容合并到最终的配置对象中。
75
75
  * 如果指定的文件列表中不包含环境特定的配置文件,则会自动添加。
76
76
  */
77
- export function parseConfig(files = ["config.json", "config.local.json"], runParseEnv = true) {
78
- let d = [...files];
77
+ export function parseConfig(files, runParseEnv = true) {
78
+ let d = [...(files || ["config.json", "config.local.json"])];
79
79
  if (runParseEnv) {
80
80
  parseEnv();
81
81
  }
package/package.json CHANGED
@@ -68,7 +68,7 @@
68
68
  },
69
69
  "./*": "./lib/*"
70
70
  },
71
- "version": "0.14.0",
71
+ "version": "0.14.1",
72
72
  "type": "module",
73
73
  "repository": {
74
74
  "type": "git",