befly 3.67.0 → 3.68.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.
Files changed (2) hide show
  1. package/package.json +1 -1
  2. package/utils/is.js +1 -1
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "befly",
3
- "version": "3.67.0",
3
+ "version": "3.68.0",
4
4
  "gitHead": "49c39d36695036e85fc64083cc43c1652fff96cb",
5
5
  "private": false,
6
6
  "description": "Befly - 为 Bun 专属打造的 JavaScript API 接口框架核心引擎",
package/utils/is.js CHANGED
@@ -350,7 +350,7 @@ export function isEmpty(value) {
350
350
  * PM2 cluster 的实例 0 是主进程;未由 PM2 启动时视为主进程。
351
351
  */
352
352
  export function isPrimaryProcess(env) {
353
- return env.NODE_APP_INSTANCE === "0" || env.NODE_APP_INSTANCE === undefined;
353
+ return env.NODE_APP_INSTANCE === "0" || env.NODE_APP_INSTANCE === 0 || env.NODE_APP_INSTANCE === undefined;
354
354
  }
355
355
 
356
356
  export const isDirentDirectory = (parentDir, entry) => {