@jsenv/core 39.5.3 → 39.5.5
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_core.js +19 -2
- package/package.json +2 -2
package/dist/jsenv_core.js
CHANGED
|
@@ -3973,6 +3973,12 @@ const registerDirectoryLifecycle = (
|
|
|
3973
3973
|
stat: null,
|
|
3974
3974
|
};
|
|
3975
3975
|
}
|
|
3976
|
+
if (e.code === "EACCES") {
|
|
3977
|
+
return {
|
|
3978
|
+
type: null,
|
|
3979
|
+
stat: null,
|
|
3980
|
+
};
|
|
3981
|
+
}
|
|
3976
3982
|
throw e;
|
|
3977
3983
|
}
|
|
3978
3984
|
};
|
|
@@ -4101,13 +4107,24 @@ const registerDirectoryLifecycle = (
|
|
|
4101
4107
|
infoMap.set(entryInfo.relativeUrl, entryInfo);
|
|
4102
4108
|
if (entryInfo.type === "directory") {
|
|
4103
4109
|
const directoryUrl = `${entryInfo.url}/`;
|
|
4104
|
-
|
|
4110
|
+
let entryNameArray;
|
|
4111
|
+
try {
|
|
4112
|
+
const directoryUrlObject = new URL(directoryUrl);
|
|
4113
|
+
entryNameArray = readdirSync(directoryUrlObject);
|
|
4114
|
+
} catch (e) {
|
|
4115
|
+
if (e.code === "ENOENT") {
|
|
4116
|
+
entryNameArray = [];
|
|
4117
|
+
} else {
|
|
4118
|
+
throw e;
|
|
4119
|
+
}
|
|
4120
|
+
}
|
|
4121
|
+
for (const entryName of entryNameArray) {
|
|
4105
4122
|
const childEntryUrl = new URL(entryName, directoryUrl).href;
|
|
4106
4123
|
const childEntryInfo = readEntryInfo(childEntryUrl);
|
|
4107
4124
|
if (childEntryInfo.type !== null && childEntryInfo.patternValue) {
|
|
4108
4125
|
handleEntryFound(childEntryInfo, { notify });
|
|
4109
4126
|
}
|
|
4110
|
-
}
|
|
4127
|
+
}
|
|
4111
4128
|
// we must watch manually every directory we find
|
|
4112
4129
|
if (!fsWatchSupportsRecursive) {
|
|
4113
4130
|
const watcher = createWatcher(urlToFileSystemPath(entryInfo.url), {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@jsenv/core",
|
|
3
|
-
"version": "39.5.
|
|
3
|
+
"version": "39.5.5",
|
|
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.
|
|
73
|
+
"@jsenv/filesystem": "4.10.5",
|
|
74
74
|
"@jsenv/humanize": "1.2.8",
|
|
75
75
|
"@jsenv/importmap": "1.2.1",
|
|
76
76
|
"@jsenv/integrity": "0.0.2",
|