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.
- package/package.json +1 -1
- package/utils/is.js +2 -2
package/package.json
CHANGED
package/utils/is.js
CHANGED
|
@@ -347,10 +347,10 @@ export function isEmpty(value) {
|
|
|
347
347
|
|
|
348
348
|
/**
|
|
349
349
|
* 判断当前进程是否为主进程。
|
|
350
|
-
*
|
|
350
|
+
* bm2 的实例 0 是主进程;未由 bm2 启动时视为主进程。
|
|
351
351
|
*/
|
|
352
352
|
export function isPrimaryProcess() {
|
|
353
|
-
const instance = Bun.env.
|
|
353
|
+
const instance = Bun.env.BM2_APP_INSTANCE;
|
|
354
354
|
return instance === "0" || instance === 0 || instance === undefined;
|
|
355
355
|
}
|
|
356
356
|
|