@jsenv/test 3.7.25 → 3.7.28
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/jsenv_test.js
CHANGED
|
@@ -14,6 +14,7 @@ import { spawn, spawnSync, fork } from "node:child_process";
|
|
|
14
14
|
import { availableParallelism, cpus, totalmem, release, freemem } from "node:os";
|
|
15
15
|
import { SOURCEMAP, generateSourcemapDataUrl } from "@jsenv/sourcemap";
|
|
16
16
|
import { injectSupervisorIntoHTML, supervisorFileUrl } from "@jsenv/plugin-supervisor";
|
|
17
|
+
import { pidtree } from "pidtree";
|
|
17
18
|
import { Worker } from "node:worker_threads";
|
|
18
19
|
import he from "he";
|
|
19
20
|
import "node:tty";
|
|
@@ -4260,13 +4261,13 @@ const applyPackageResolve = (packageSpecifier, resolutionContext) => {
|
|
|
4260
4261
|
: resolvePackageSymlink(packageDirectoryFacadeUrl);
|
|
4261
4262
|
const packageJson = readPackageJson(packageDirectoryUrl);
|
|
4262
4263
|
if (packageJson !== null) {
|
|
4263
|
-
const { exports
|
|
4264
|
-
if (exports
|
|
4264
|
+
const { exports } = packageJson;
|
|
4265
|
+
if (exports !== null && exports !== undefined) {
|
|
4265
4266
|
return applyPackageExportsResolution(packageSubpath, {
|
|
4266
4267
|
...resolutionContext,
|
|
4267
4268
|
packageDirectoryUrl,
|
|
4268
4269
|
packageJson,
|
|
4269
|
-
exports
|
|
4270
|
+
exports,
|
|
4270
4271
|
});
|
|
4271
4272
|
}
|
|
4272
4273
|
}
|
|
@@ -4304,8 +4305,8 @@ const applyPackageSelfResolution = (packageSubpath, resolutionContext) => {
|
|
|
4304
4305
|
if (packageJson.name !== packageName) {
|
|
4305
4306
|
return undefined;
|
|
4306
4307
|
}
|
|
4307
|
-
const { exports
|
|
4308
|
-
if (!exports
|
|
4308
|
+
const { exports } = packageJson;
|
|
4309
|
+
if (!exports) {
|
|
4309
4310
|
const subpathResolution = applyLegacySubpathResolution(packageSubpath, {
|
|
4310
4311
|
...resolutionContext,
|
|
4311
4312
|
packageDirectoryUrl,
|
|
@@ -9900,8 +9901,6 @@ const killProcessTree = async (
|
|
|
9900
9901
|
processId,
|
|
9901
9902
|
{ signal, timeout = 2000 },
|
|
9902
9903
|
) => {
|
|
9903
|
-
const pidtree = importWithRequire("pidtree");
|
|
9904
|
-
|
|
9905
9904
|
let descendantProcessIds;
|
|
9906
9905
|
try {
|
|
9907
9906
|
descendantProcessIds = await pidtree(processId);
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@jsenv/test",
|
|
3
|
-
"version": "3.7.
|
|
3
|
+
"version": "3.7.28",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"repository": {
|
|
6
6
|
"type": "git",
|
|
@@ -30,15 +30,15 @@
|
|
|
30
30
|
},
|
|
31
31
|
"dependencies": {
|
|
32
32
|
"@c88/v8-coverage": "0.1.1",
|
|
33
|
-
"@jsenv/ast": "6.8.
|
|
34
|
-
"@jsenv/plugin-supervisor": "1.8.
|
|
35
|
-
"@jsenv/sourcemap": "1.4.
|
|
33
|
+
"@jsenv/ast": "6.8.4",
|
|
34
|
+
"@jsenv/plugin-supervisor": "1.8.7",
|
|
35
|
+
"@jsenv/sourcemap": "1.4.2",
|
|
36
36
|
"he": "1.2.0",
|
|
37
37
|
"istanbul-lib-coverage": "3.2.2",
|
|
38
38
|
"istanbul-lib-instrument": "6.0.3",
|
|
39
39
|
"istanbul-lib-report": "3.0.1",
|
|
40
40
|
"istanbul-reports": "3.2.0",
|
|
41
|
-
"pidtree": "0.
|
|
41
|
+
"pidtree": "1.0.0",
|
|
42
42
|
"v8-to-istanbul": "9.3.0"
|
|
43
43
|
},
|
|
44
44
|
"optionalDependencies": {
|
|
@@ -64,7 +64,7 @@
|
|
|
64
64
|
"@jsenv/url-meta": "../../tooling/url-meta",
|
|
65
65
|
"@jsenv/urls": "../../tooling/urls",
|
|
66
66
|
"@jsenv/utils": "../../tooling/utils",
|
|
67
|
-
"prettier": "3.
|
|
67
|
+
"prettier": "3.9.6",
|
|
68
68
|
"strip-ansi": "7.2.0",
|
|
69
69
|
"supports-color": "10.2.2"
|
|
70
70
|
},
|
|
@@ -1,12 +1,10 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { pidtree } from "pidtree";
|
|
2
2
|
|
|
3
3
|
// see also https://github.com/sindresorhus/execa/issues/96
|
|
4
4
|
export const killProcessTree = async (
|
|
5
5
|
processId,
|
|
6
6
|
{ signal, timeout = 2000 },
|
|
7
7
|
) => {
|
|
8
|
-
const pidtree = importWithRequire("pidtree");
|
|
9
|
-
|
|
10
8
|
let descendantProcessIds;
|
|
11
9
|
try {
|
|
12
10
|
descendantProcessIds = await pidtree(processId);
|