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.
- package/package.json +1 -1
- package/utils/is.js +1 -1
package/package.json
CHANGED
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) => {
|