@jsenv/core 39.5.8 → 39.5.10

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.
@@ -3967,13 +3967,12 @@ const registerDirectoryLifecycle = (
3967
3967
  patternValue,
3968
3968
  };
3969
3969
  } catch (e) {
3970
- if (e.code === "ENOENT") {
3971
- return {
3972
- type: null,
3973
- stat: null,
3974
- };
3975
- }
3976
- if (e.code === "EACCES" || e.code === "EPERM") {
3970
+ if (
3971
+ e.code === "ENOENT" ||
3972
+ e.code === "EACCES" ||
3973
+ e.code === "EPERM" ||
3974
+ e.code === "ENOTDIR" // happens on mac12 sometimes
3975
+ ) {
3977
3976
  return {
3978
3977
  type: null,
3979
3978
  stat: null,
@@ -4112,7 +4111,7 @@ const registerDirectoryLifecycle = (
4112
4111
  const directoryUrlObject = new URL(directoryUrl);
4113
4112
  entryNameArray = readdirSync(directoryUrlObject);
4114
4113
  } catch (e) {
4115
- if (e.code === "ENOENT") {
4114
+ if (e.code === "ENOENT" || e.code === "EACCES") {
4116
4115
  return;
4117
4116
  }
4118
4117
  throw e;
@@ -4144,7 +4143,7 @@ const registerDirectoryLifecycle = (
4144
4143
  });
4145
4144
  });
4146
4145
  } catch (e) {
4147
- if (e.code === "ENOENT") {
4146
+ if (e.code === "ENOENT" || e.code === "EACCES") {
4148
4147
  return;
4149
4148
  }
4150
4149
  throw e;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@jsenv/core",
3
- "version": "39.5.8",
3
+ "version": "39.5.10",
4
4
  "description": "Tool to develop, test and build js projects",
5
5
  "license": "MIT",
6
6
  "author": {
@@ -70,7 +70,7 @@
70
70
  "@financial-times/polyfill-useragent-normaliser": "1.10.2",
71
71
  "@jsenv/abort": "4.3.0",
72
72
  "@jsenv/ast": "6.2.17",
73
- "@jsenv/filesystem": "4.10.8",
73
+ "@jsenv/filesystem": "4.10.10",
74
74
  "@jsenv/humanize": "1.2.8",
75
75
  "@jsenv/importmap": "1.2.1",
76
76
  "@jsenv/integrity": "0.0.2",