befly 3.74.2 → 3.74.3

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 +2 -2
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "befly",
3
- "version": "3.74.2",
3
+ "version": "3.74.3",
4
4
  "gitHead": "49c39d36695036e85fc64083cc43c1652fff96cb",
5
5
  "private": false,
6
6
  "description": "Befly - 为 Bun 专属打造的 JavaScript API 接口框架核心引擎",
package/utils/is.js CHANGED
@@ -347,10 +347,10 @@ export function isEmpty(value) {
347
347
 
348
348
  /**
349
349
  * 判断当前进程是否为主进程。
350
- * PM2 cluster 的实例 0 是主进程;未由 PM2 启动时视为主进程。
350
+ * bm2 的实例 0 是主进程;未由 bm2 启动时视为主进程。
351
351
  */
352
352
  export function isPrimaryProcess() {
353
- const instance = Bun.env.NODE_APP_INSTANCE;
353
+ const instance = Bun.env.BM2_APP_INSTANCE;
354
354
  return instance === "0" || instance === 0 || instance === undefined;
355
355
  }
356
356