Skip to content

Commit 3b9aaeb

Browse files
authored
fix: update @webpod/ps to v0.1.4 to handle eperm issues (#1267)
* fix: update @webpod/ps to v0.1.4 to handle eperm issues * chore: update bundles
1 parent 978c0e1 commit 3b9aaeb

File tree

5 files changed

+23
-20
lines changed

5 files changed

+23
-20
lines changed

.size-limit.json

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@
1515
"README.md",
1616
"LICENSE"
1717
],
18-
"limit": "122.85 kB",
18+
"limit": "122.90 kB",
1919
"brotli": false,
2020
"gzip": false
2121
},
@@ -29,7 +29,7 @@
2929
"build/globals.js",
3030
"build/deno.js"
3131
],
32-
"limit": "813.35 kB",
32+
"limit": "813.40 kB",
3333
"brotli": false,
3434
"gzip": false
3535
},
@@ -43,7 +43,7 @@
4343
{
4444
"name": "vendor",
4545
"path": "build/vendor-*.{cjs,d.ts}",
46-
"limit": "766.50 kB",
46+
"limit": "766.55 kB",
4747
"brotli": false,
4848
"gzip": false
4949
},
@@ -62,7 +62,7 @@
6262
"README.md",
6363
"LICENSE"
6464
],
65-
"limit": "869.40 kB",
65+
"limit": "869.50 kB",
6666
"brotli": false,
6767
"gzip": false
6868
}

build/3rd-party-licenses

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ THIRD PARTY LICENSES
2020
sindresorhus/merge-streams
2121
MIT
2222

23-
23+
2424
<unknown>
2525
git://github.com/webpod/ps.git
2626
MIT

build/vendor-core.cjs

Lines changed: 10 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1193,13 +1193,16 @@ var IS_WIN = import_node_process4.default.platform === "win32";
11931193
var WMIC_INPUT = "wmic process get ProcessId,ParentProcessId,CommandLine";
11941194
var isBin = (f) => {
11951195
if (f === "") return false;
1196-
if (!f.includes("/")) return true;
1197-
if (!f.includes("\\")) return true;
1196+
if (!f.includes("/") && !f.includes("\\")) return true;
11981197
if (f.length > 3 && f[0] === '"')
11991198
return f[f.length - 1] === '"' ? isBin(f.slice(1, -1)) : false;
1200-
if (!import_node_fs.default.existsSync(f)) return false;
1201-
const stat = import_node_fs.default.lstatSync(f);
1202-
return stat.isFile() || stat.isSymbolicLink();
1199+
try {
1200+
if (!import_node_fs.default.existsSync(f)) return false;
1201+
const stat = import_node_fs.default.lstatSync(f);
1202+
return stat.isFile() || stat.isSymbolicLink();
1203+
} catch (e) {
1204+
return false;
1205+
}
12031206
};
12041207
var lookup = (query = {}, cb = noop2) => _lookup({ query, cb, sync: false });
12051208
var lookupSync = (query = {}, cb = noop2) => _lookup({ query, cb, sync: true });
@@ -1363,8 +1366,8 @@ var formatOutput = (data) => data.reduce((m, d) => {
13631366
const cmd = _cmd.length === 1 ? _cmd[0].split(/\s+/) : _cmd;
13641367
if (pid && cmd.length > 0) {
13651368
const c = cmd.findIndex((_v, i) => isBin(cmd.slice(0, i).join(" ")));
1366-
const command = cmd.slice(0, c).join(" ");
1367-
const args = cmd.length > 1 ? cmd.slice(c) : [];
1369+
const command = (c === -1 ? cmd : cmd.slice(0, c)).join(" ");
1370+
const args = c === -1 ? [] : cmd.slice(c);
13681371
m.push({
13691372
pid,
13701373
ppid,

package-lock.json

Lines changed: 6 additions & 6 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "zx",
3-
"version": "8.7.0",
3+
"version": "8.7.1",
44
"description": "A tool for writing better scripts",
55
"type": "module",
66
"main": "./build/index.cjs",
@@ -112,7 +112,7 @@
112112
"@types/node": "24.0.13",
113113
"@types/which": "3.0.4",
114114
"@webpod/ingrid": "1.1.1",
115-
"@webpod/ps": "0.1.3",
115+
"@webpod/ps": "0.1.4",
116116
"c8": "10.1.3",
117117
"chalk": "5.4.1",
118118
"create-require": "1.1.1",

0 commit comments

Comments
 (0)