@napuketto/loader 0.0.19 → 0.0.20
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/dist/host/self-host.cjs +3 -0
- package/package.json +1 -1
package/dist/host/self-host.cjs
CHANGED
|
@@ -1768,6 +1768,9 @@ if (ipcMode) {
|
|
|
1768
1768
|
}
|
|
1769
1769
|
log(`[self-host] 启动 @ ${(/* @__PURE__ */ new Date()).toISOString()} pid=${process.pid} node=${process.version} type=${process.type ?? "(标准 node)"}`);
|
|
1770
1770
|
log(`[self-host] stub 目录: ${env.NAPUTO_STUB_DIR ?? "(PATH 前置,未记录)"}`);
|
|
1771
|
+
process.on("unhandledRejection", (reason) => {
|
|
1772
|
+
log(`[self-host] ⚠️ unhandledRejection: ${errMsg(reason)}`);
|
|
1773
|
+
});
|
|
1771
1774
|
const lockDataDir = env.NAPUTO_CFG_DIR;
|
|
1772
1775
|
if (lockDataDir) {
|
|
1773
1776
|
if (!acquireInstanceLock(lockDataDir)) {
|