@jsenv/core 41.5.29 → 41.5.31
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.
|
@@ -12484,8 +12484,16 @@ const cacheIsDisabledInResponseHeader = (urlInfo) => {
|
|
|
12484
12484
|
};
|
|
12485
12485
|
|
|
12486
12486
|
// "dir/page.html@L10C7-L14C16.js" -> "dir/page.html" (search kept: it is the
|
|
12487
|
-
// parent's
|
|
12487
|
+
// parent's, copied onto the inline url by generateUrlForInlineContent). Null
|
|
12488
|
+
// for anything else — the inline url grammar is the one
|
|
12488
12489
|
// generateUrlForInlineContent writes (@jsenv/ast).
|
|
12490
|
+
// "v" and "hot" are the exception: the dev server puts them on the url it
|
|
12491
|
+
// hands the browser and strips them back off when the request comes in (see
|
|
12492
|
+
// jsenv:version_search_param and jsenv:hot_search_param), so no url in the
|
|
12493
|
+
// graph ever carries them — while the inline url in the request does. An html
|
|
12494
|
+
// served from a fixed address inside node_modules (our own /.internal pages)
|
|
12495
|
+
// shows it: the page has no "v", its inline scripts get one, and looking for a
|
|
12496
|
+
// "page.html?v=…" parent finds nothing — the inline script then 404s.
|
|
12489
12497
|
const getInlineContentParentUrl = (url) => {
|
|
12490
12498
|
const urlObject = new URL(url);
|
|
12491
12499
|
const match = /^(.+)@[^@/]*?L\d+C\d+(?:-L\d+C\d+)?\.[a-z0-9]+$/.exec(
|
|
@@ -12495,7 +12503,12 @@ const getInlineContentParentUrl = (url) => {
|
|
|
12495
12503
|
return null;
|
|
12496
12504
|
}
|
|
12497
12505
|
urlObject.pathname = match[1];
|
|
12498
|
-
|
|
12506
|
+
urlObject.searchParams.delete("v");
|
|
12507
|
+
urlObject.searchParams.delete("hot");
|
|
12508
|
+
// normalizeUrl: searchParams.delete re-serializes the whole query and would
|
|
12509
|
+
// turn a valueless param ("?enabled") into "?enabled=", which no graph url
|
|
12510
|
+
// is spelled with.
|
|
12511
|
+
return normalizeUrl(urlObject.href);
|
|
12499
12512
|
};
|
|
12500
12513
|
|
|
12501
12514
|
const EXECUTED_BY_TEST_PLAN = process.argv.includes("--jsenv-test");
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@jsenv/core",
|
|
3
|
-
"version": "41.5.
|
|
3
|
+
"version": "41.5.31",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"description": "Tool to develop, test and build js projects",
|
|
6
6
|
"repository": {
|
|
@@ -79,7 +79,7 @@
|
|
|
79
79
|
"@jsenv/plugin-minification": "1.7.24",
|
|
80
80
|
"@jsenv/plugin-supervisor": "1.8.26",
|
|
81
81
|
"@jsenv/plugin-transpilation": "1.7.11",
|
|
82
|
-
"@jsenv/server": "17.6.
|
|
82
|
+
"@jsenv/server": "17.6.7",
|
|
83
83
|
"@jsenv/sourcemap": "1.4.10",
|
|
84
84
|
"react-table": "7.8.0"
|
|
85
85
|
},
|
|
@@ -647,8 +647,16 @@ const cacheIsDisabledInResponseHeader = (urlInfo) => {
|
|
|
647
647
|
};
|
|
648
648
|
|
|
649
649
|
// "dir/page.html@L10C7-L14C16.js" -> "dir/page.html" (search kept: it is the
|
|
650
|
-
// parent's
|
|
650
|
+
// parent's, copied onto the inline url by generateUrlForInlineContent). Null
|
|
651
|
+
// for anything else — the inline url grammar is the one
|
|
651
652
|
// generateUrlForInlineContent writes (@jsenv/ast).
|
|
653
|
+
// "v" and "hot" are the exception: the dev server puts them on the url it
|
|
654
|
+
// hands the browser and strips them back off when the request comes in (see
|
|
655
|
+
// jsenv:version_search_param and jsenv:hot_search_param), so no url in the
|
|
656
|
+
// graph ever carries them — while the inline url in the request does. An html
|
|
657
|
+
// served from a fixed address inside node_modules (our own /.internal pages)
|
|
658
|
+
// shows it: the page has no "v", its inline scripts get one, and looking for a
|
|
659
|
+
// "page.html?v=…" parent finds nothing — the inline script then 404s.
|
|
652
660
|
const getInlineContentParentUrl = (url) => {
|
|
653
661
|
const urlObject = new URL(url);
|
|
654
662
|
const match = /^(.+)@[^@/]*?L\d+C\d+(?:-L\d+C\d+)?\.[a-z0-9]+$/.exec(
|
|
@@ -658,5 +666,10 @@ const getInlineContentParentUrl = (url) => {
|
|
|
658
666
|
return null;
|
|
659
667
|
}
|
|
660
668
|
urlObject.pathname = match[1];
|
|
661
|
-
|
|
669
|
+
urlObject.searchParams.delete("v");
|
|
670
|
+
urlObject.searchParams.delete("hot");
|
|
671
|
+
// normalizeUrl: searchParams.delete re-serializes the whole query and would
|
|
672
|
+
// turn a valueless param ("?enabled") into "?enabled=", which no graph url
|
|
673
|
+
// is spelled with.
|
|
674
|
+
return normalizeUrl(urlObject.href);
|
|
662
675
|
};
|