sim 2.3.0-preview.326.1 → 2.3.0-preview.327.1
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/index.js +1 -1
- package/dist/runtime.js +1 -1
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -53725,7 +53725,7 @@ function isAlive(pid) {
|
|
|
53725
53725
|
}
|
|
53726
53726
|
}
|
|
53727
53727
|
async function isStaleLock(lock, seen) {
|
|
53728
|
-
const owner = toRecord(await readFile2(join6(lock, LOCK_OWNER_FILE), "utf8").then((text) => JSON.parse(text)
|
|
53728
|
+
const owner = toRecord(await readFile2(join6(lock, LOCK_OWNER_FILE), "utf8").then((text) => JSON.parse(text)).catch(() => null));
|
|
53729
53729
|
if (typeof owner.pid === "number" && typeof owner.host === "string") {
|
|
53730
53730
|
return owner.host === hostname() && !isAlive(owner.pid);
|
|
53731
53731
|
}
|
package/dist/runtime.js
CHANGED
|
@@ -53774,7 +53774,7 @@ function isAlive(pid) {
|
|
|
53774
53774
|
}
|
|
53775
53775
|
}
|
|
53776
53776
|
async function isStaleLock(lock, seen) {
|
|
53777
|
-
const owner = toRecord(await readFile2(join6(lock, LOCK_OWNER_FILE), "utf8").then((text) => JSON.parse(text)
|
|
53777
|
+
const owner = toRecord(await readFile2(join6(lock, LOCK_OWNER_FILE), "utf8").then((text) => JSON.parse(text)).catch(() => null));
|
|
53778
53778
|
if (typeof owner.pid === "number" && typeof owner.host === "string") {
|
|
53779
53779
|
return owner.host === hostname() && !isAlive(owner.pid);
|
|
53780
53780
|
}
|