@jsenv/core 28.3.2 → 28.3.3
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/main.js +10 -4
- package/package.json +1 -1
- package/src/omega/server/file_service.js +11 -5
package/dist/main.js
CHANGED
|
@@ -25301,11 +25301,17 @@ const createFileService = ({
|
|
|
25301
25301
|
clientFileChangeCallbackList.push(({
|
|
25302
25302
|
url
|
|
25303
25303
|
}) => {
|
|
25304
|
-
|
|
25304
|
+
urlGraph.urlInfoMap.forEach(urlInfo => {
|
|
25305
|
+
if (urlInfo.url === url) {
|
|
25306
|
+
urlGraph.considerModified(urlInfo);
|
|
25307
|
+
} else {
|
|
25308
|
+
const urlWithoutSearch = asUrlWithoutSearch(urlInfo.url);
|
|
25305
25309
|
|
|
25306
|
-
|
|
25307
|
-
|
|
25308
|
-
|
|
25310
|
+
if (urlWithoutSearch === url) {
|
|
25311
|
+
urlGraph.considerModified(urlInfo);
|
|
25312
|
+
}
|
|
25313
|
+
}
|
|
25314
|
+
});
|
|
25309
25315
|
});
|
|
25310
25316
|
const kitchen = createKitchen({
|
|
25311
25317
|
signal,
|
package/package.json
CHANGED
|
@@ -5,7 +5,7 @@ import {
|
|
|
5
5
|
composeTwoResponses,
|
|
6
6
|
} from "@jsenv/server"
|
|
7
7
|
import { registerDirectoryLifecycle, bufferToEtag } from "@jsenv/filesystem"
|
|
8
|
-
import { urlIsInsideOf, moveUrl } from "@jsenv/urls"
|
|
8
|
+
import { urlIsInsideOf, moveUrl, asUrlWithoutSearch } from "@jsenv/urls"
|
|
9
9
|
import { URL_META } from "@jsenv/url-meta"
|
|
10
10
|
|
|
11
11
|
import { getCorePlugins } from "@jsenv/core/src/plugins/plugins.js"
|
|
@@ -95,10 +95,16 @@ export const createFileService = ({
|
|
|
95
95
|
)
|
|
96
96
|
const urlGraph = createUrlGraph()
|
|
97
97
|
clientFileChangeCallbackList.push(({ url }) => {
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
98
|
+
urlGraph.urlInfoMap.forEach((urlInfo) => {
|
|
99
|
+
if (urlInfo.url === url) {
|
|
100
|
+
urlGraph.considerModified(urlInfo)
|
|
101
|
+
} else {
|
|
102
|
+
const urlWithoutSearch = asUrlWithoutSearch(urlInfo.url)
|
|
103
|
+
if (urlWithoutSearch === url) {
|
|
104
|
+
urlGraph.considerModified(urlInfo)
|
|
105
|
+
}
|
|
106
|
+
}
|
|
107
|
+
})
|
|
102
108
|
})
|
|
103
109
|
const kitchen = createKitchen({
|
|
104
110
|
signal,
|