@jsenv/test 3.6.11 → 3.6.12

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.
Files changed (2) hide show
  1. package/dist/jsenv_test.js +5 -2
  2. package/package.json +11 -9
@@ -2054,8 +2054,11 @@ const getParentDirectoryUrl = (url) => {
2054
2054
  return new URL(url.endsWith("/") ? "../" : "./", url).href;
2055
2055
  };
2056
2056
 
2057
- const findAncestorDirectoryUrl = (url, callback) => {
2057
+ const findSelfOrAncestorDirectoryUrl = (url, callback) => {
2058
2058
  url = String(url);
2059
+ if (!url.endsWith("/")) {
2060
+ url = new URL("./", url).href;
2061
+ }
2059
2062
  while (url !== "file:///") {
2060
2063
  if (callback(url)) {
2061
2064
  return url;
@@ -3342,7 +3345,7 @@ const writeDirectorySync = (
3342
3345
  if (e.code === "ENOTDIR") {
3343
3346
  let previousNonDirUrl = destinationUrl;
3344
3347
  // we must try all parent directories as long as it fails with ENOTDIR
3345
- findAncestorDirectoryUrl(destinationUrl, (ancestorUrl) => {
3348
+ findSelfOrAncestorDirectoryUrl(destinationUrl, (ancestorUrl) => {
3346
3349
  try {
3347
3350
  statSync(new URL(ancestorUrl));
3348
3351
  return true;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@jsenv/test",
3
- "version": "3.6.11",
3
+ "version": "3.6.12",
4
4
  "license": "MIT",
5
5
  "repository": {
6
6
  "type": "git",
@@ -29,7 +29,9 @@
29
29
  ],
30
30
  "sideEffects": [
31
31
  "./src/runtime_node/node_child_process_controlled.mjs",
32
- "./src/runtime_node/node_worker_thread_controlled.mjs"
32
+ "./src/runtime_node/node_worker_thread_controlled.mjs",
33
+ "./dist/js/node_child_process_controlled.mjs",
34
+ "./dist/js/node_worker_thread_controlled.mjs"
33
35
  ],
34
36
  "scripts": {
35
37
  "build": "node --conditions=development ./scripts/build.mjs",
@@ -41,16 +43,16 @@
41
43
  "dependencies": {
42
44
  "@c88/v8-coverage": "0.1.1",
43
45
  "@jsenv/abort": "4.3.1",
44
- "@jsenv/ast": "6.6.7",
46
+ "@jsenv/ast": "6.6.9",
45
47
  "@jsenv/exception": "1.1.7",
46
- "@jsenv/filesystem": "4.14.6",
47
- "@jsenv/github-check-run": "0.2.22",
48
+ "@jsenv/filesystem": "4.15.0",
49
+ "@jsenv/github-check-run": "0.2.23",
48
50
  "@jsenv/node-esm-resolution": "1.2.0",
49
- "@jsenv/humanize": "1.4.0",
50
- "@jsenv/plugin-supervisor": "1.6.12",
51
- "@jsenv/sourcemap": "1.3.4",
51
+ "@jsenv/humanize": "1.5.0",
52
+ "@jsenv/plugin-supervisor": "1.6.13",
53
+ "@jsenv/sourcemap": "1.3.5",
52
54
  "@jsenv/url-meta": "8.5.6",
53
- "@jsenv/urls": "2.7.1",
55
+ "@jsenv/urls": "2.7.2",
54
56
  "@jsenv/utils": "2.3.0",
55
57
  "he": "1.2.0",
56
58
  "istanbul-lib-coverage": "3.2.2",