@qwik.dev/router 2.0.0-alpha.5 → 2.0.0-alpha.7
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/lib/index.qwik.cjs +11 -17
- package/lib/index.qwik.mjs +11 -17
- package/lib/middleware/request-handler/index.cjs +13 -1
- package/lib/middleware/request-handler/index.mjs +13 -1
- package/lib/vite/index.cjs +33 -21
- package/lib/vite/index.mjs +33 -21
- package/package.json +2 -2
package/lib/index.qwik.cjs
CHANGED
|
@@ -285,11 +285,7 @@ const Link = core.component$((props) => {
|
|
|
285
285
|
}) : void 0;
|
|
286
286
|
const handleClick = clientNavPath ? core.$(async (event, elm) => {
|
|
287
287
|
if (event.defaultPrevented) {
|
|
288
|
-
if (elm.
|
|
289
|
-
await nav(location.href, {
|
|
290
|
-
type: "popstate"
|
|
291
|
-
});
|
|
292
|
-
} else if (elm.href) {
|
|
288
|
+
if (elm.href) {
|
|
293
289
|
elm.setAttribute("aria-pressed", "true");
|
|
294
290
|
await nav(elm.href, {
|
|
295
291
|
forceReload: reload,
|
|
@@ -614,7 +610,6 @@ const spaInit = core.event$((_, el) => {
|
|
|
614
610
|
if (!win[spa] && !win[initPopstate] && !win[initAnchors] && !win[initVisibility] && !win[initScroll]) {
|
|
615
611
|
const currentPath = location.pathname + location.search;
|
|
616
612
|
const historyPatch = "_qRouterHistoryPatch";
|
|
617
|
-
const bootstrap = "_qRouterBootstrap";
|
|
618
613
|
const scrollEnabled = "_qRouterScrollEnabled";
|
|
619
614
|
const debounceTimeout = "_qRouterScrollDebounce";
|
|
620
615
|
const scrollHistory = "_qRouterScroll";
|
|
@@ -646,15 +641,16 @@ const spaInit = core.event$((_, el) => {
|
|
|
646
641
|
clearTimeout(win[debounceTimeout]);
|
|
647
642
|
if (currentPath !== location.pathname + location.search) {
|
|
648
643
|
const getContainer = (el2) => el2.closest("[q\\:container]:not([q\\:container=html]):not([q\\:container=text])");
|
|
649
|
-
const
|
|
650
|
-
|
|
651
|
-
|
|
652
|
-
|
|
653
|
-
|
|
654
|
-
|
|
655
|
-
|
|
656
|
-
|
|
657
|
-
|
|
644
|
+
const container = getContainer(el);
|
|
645
|
+
const domContainer = container.qContainer;
|
|
646
|
+
const hostElement = domContainer.vNodeLocate(el);
|
|
647
|
+
const nav = domContainer?.resolveContext(hostElement, {
|
|
648
|
+
id: "qc--n"
|
|
649
|
+
});
|
|
650
|
+
if (nav) {
|
|
651
|
+
nav(location.href, {
|
|
652
|
+
type: "popstate"
|
|
653
|
+
});
|
|
658
654
|
} else {
|
|
659
655
|
location.reload();
|
|
660
656
|
}
|
|
@@ -1123,8 +1119,6 @@ const QwikRouterProvider = core.component$((props) => {
|
|
|
1123
1119
|
});
|
|
1124
1120
|
removeEventListener("scroll", win._qRouterInitScroll);
|
|
1125
1121
|
win._qRouterInitScroll = void 0;
|
|
1126
|
-
win._qRouterBootstrap?.remove();
|
|
1127
|
-
win._qRouterBootstrap = void 0;
|
|
1128
1122
|
spaInit.resolve();
|
|
1129
1123
|
}
|
|
1130
1124
|
if (navType !== "popstate") {
|
package/lib/index.qwik.mjs
CHANGED
|
@@ -267,11 +267,7 @@ const Link = component$((props) => {
|
|
|
267
267
|
}) : void 0;
|
|
268
268
|
const handleClick = clientNavPath ? $(async (event, elm) => {
|
|
269
269
|
if (event.defaultPrevented) {
|
|
270
|
-
if (elm.
|
|
271
|
-
await nav(location.href, {
|
|
272
|
-
type: "popstate"
|
|
273
|
-
});
|
|
274
|
-
} else if (elm.href) {
|
|
270
|
+
if (elm.href) {
|
|
275
271
|
elm.setAttribute("aria-pressed", "true");
|
|
276
272
|
await nav(elm.href, {
|
|
277
273
|
forceReload: reload,
|
|
@@ -596,7 +592,6 @@ const spaInit = event$((_, el) => {
|
|
|
596
592
|
if (!win[spa] && !win[initPopstate] && !win[initAnchors] && !win[initVisibility] && !win[initScroll]) {
|
|
597
593
|
const currentPath = location.pathname + location.search;
|
|
598
594
|
const historyPatch = "_qRouterHistoryPatch";
|
|
599
|
-
const bootstrap = "_qRouterBootstrap";
|
|
600
595
|
const scrollEnabled = "_qRouterScrollEnabled";
|
|
601
596
|
const debounceTimeout = "_qRouterScrollDebounce";
|
|
602
597
|
const scrollHistory = "_qRouterScroll";
|
|
@@ -628,15 +623,16 @@ const spaInit = event$((_, el) => {
|
|
|
628
623
|
clearTimeout(win[debounceTimeout]);
|
|
629
624
|
if (currentPath !== location.pathname + location.search) {
|
|
630
625
|
const getContainer = (el2) => el2.closest("[q\\:container]:not([q\\:container=html]):not([q\\:container=text])");
|
|
631
|
-
const
|
|
632
|
-
|
|
633
|
-
|
|
634
|
-
|
|
635
|
-
|
|
636
|
-
|
|
637
|
-
|
|
638
|
-
|
|
639
|
-
|
|
626
|
+
const container = getContainer(el);
|
|
627
|
+
const domContainer = container.qContainer;
|
|
628
|
+
const hostElement = domContainer.vNodeLocate(el);
|
|
629
|
+
const nav = domContainer?.resolveContext(hostElement, {
|
|
630
|
+
id: "qc--n"
|
|
631
|
+
});
|
|
632
|
+
if (nav) {
|
|
633
|
+
nav(location.href, {
|
|
634
|
+
type: "popstate"
|
|
635
|
+
});
|
|
640
636
|
} else {
|
|
641
637
|
location.reload();
|
|
642
638
|
}
|
|
@@ -1105,8 +1101,6 @@ const QwikRouterProvider = component$((props) => {
|
|
|
1105
1101
|
});
|
|
1106
1102
|
removeEventListener("scroll", win._qRouterInitScroll);
|
|
1107
1103
|
win._qRouterInitScroll = void 0;
|
|
1108
|
-
win._qRouterBootstrap?.remove();
|
|
1109
|
-
win._qRouterBootstrap = void 0;
|
|
1110
1104
|
spaInit.resolve();
|
|
1111
1105
|
}
|
|
1112
1106
|
if (navType !== "popstate") {
|
|
@@ -689,8 +689,20 @@ function createRequestEvent(serverRequestEv, loadedRoute, requestHandlers, manif
|
|
|
689
689
|
} else {
|
|
690
690
|
status = statusOrResponse.status;
|
|
691
691
|
statusOrResponse.headers.forEach((value, key) => {
|
|
692
|
+
if (key.toLowerCase() === "set-cookie") {
|
|
693
|
+
return;
|
|
694
|
+
}
|
|
692
695
|
headers.append(key, value);
|
|
693
696
|
});
|
|
697
|
+
statusOrResponse.headers.getSetCookie().forEach((ck) => {
|
|
698
|
+
const index = ck.indexOf("=");
|
|
699
|
+
if (index === -1) {
|
|
700
|
+
return;
|
|
701
|
+
}
|
|
702
|
+
const key = ck.slice(0, index).trim();
|
|
703
|
+
const value = ck.slice(index + 1).trim();
|
|
704
|
+
cookie.set(key, value);
|
|
705
|
+
});
|
|
694
706
|
if (statusOrResponse.body) {
|
|
695
707
|
const writableStream2 = requestEv.getWritableStream();
|
|
696
708
|
statusOrResponse.body.pipeTo(writableStream2);
|
|
@@ -1430,7 +1442,7 @@ async function measure(requestEv, name, fn) {
|
|
|
1430
1442
|
}
|
|
1431
1443
|
function isContentType(headers, ...types) {
|
|
1432
1444
|
var _a;
|
|
1433
|
-
const type = ((_a = headers.get("content-type")) == null ? void 0 : _a.split(
|
|
1445
|
+
const type = ((_a = headers.get("content-type")) == null ? void 0 : _a.split(/;/, 1)[0].trim()) ?? "";
|
|
1434
1446
|
return types.includes(type);
|
|
1435
1447
|
}
|
|
1436
1448
|
|
|
@@ -647,8 +647,20 @@ function createRequestEvent(serverRequestEv, loadedRoute, requestHandlers, manif
|
|
|
647
647
|
} else {
|
|
648
648
|
status = statusOrResponse.status;
|
|
649
649
|
statusOrResponse.headers.forEach((value, key) => {
|
|
650
|
+
if (key.toLowerCase() === "set-cookie") {
|
|
651
|
+
return;
|
|
652
|
+
}
|
|
650
653
|
headers.append(key, value);
|
|
651
654
|
});
|
|
655
|
+
statusOrResponse.headers.getSetCookie().forEach((ck) => {
|
|
656
|
+
const index = ck.indexOf("=");
|
|
657
|
+
if (index === -1) {
|
|
658
|
+
return;
|
|
659
|
+
}
|
|
660
|
+
const key = ck.slice(0, index).trim();
|
|
661
|
+
const value = ck.slice(index + 1).trim();
|
|
662
|
+
cookie.set(key, value);
|
|
663
|
+
});
|
|
652
664
|
if (statusOrResponse.body) {
|
|
653
665
|
const writableStream2 = requestEv.getWritableStream();
|
|
654
666
|
statusOrResponse.body.pipeTo(writableStream2);
|
|
@@ -1388,7 +1400,7 @@ async function measure(requestEv, name, fn) {
|
|
|
1388
1400
|
}
|
|
1389
1401
|
function isContentType(headers, ...types) {
|
|
1390
1402
|
var _a;
|
|
1391
|
-
const type = ((_a = headers.get("content-type")) == null ? void 0 : _a.split(
|
|
1403
|
+
const type = ((_a = headers.get("content-type")) == null ? void 0 : _a.split(/;/, 1)[0].trim()) ?? "";
|
|
1392
1404
|
return types.includes(type);
|
|
1393
1405
|
}
|
|
1394
1406
|
|
package/lib/vite/index.cjs
CHANGED
|
@@ -9631,7 +9631,7 @@ var init_default = __esm({
|
|
|
9631
9631
|
}
|
|
9632
9632
|
});
|
|
9633
9633
|
|
|
9634
|
-
// node_modules/.pnpm/micromark-util-character@2.1.
|
|
9634
|
+
// node_modules/.pnpm/micromark-util-character@2.1.1/node_modules/micromark-util-character/index.js
|
|
9635
9635
|
function asciiControl(code3) {
|
|
9636
9636
|
return (
|
|
9637
9637
|
// Special whitespace codes (which have negative values), C0 and Control
|
|
@@ -9656,7 +9656,7 @@ function regexCheck(regex3) {
|
|
|
9656
9656
|
}
|
|
9657
9657
|
var asciiAlpha, asciiAlphanumeric, asciiAtext, asciiDigit, asciiHexDigit, asciiPunctuation, unicodePunctuation, unicodeWhitespace;
|
|
9658
9658
|
var init_micromark_util_character = __esm({
|
|
9659
|
-
"node_modules/.pnpm/micromark-util-character@2.1.
|
|
9659
|
+
"node_modules/.pnpm/micromark-util-character@2.1.1/node_modules/micromark-util-character/index.js"() {
|
|
9660
9660
|
asciiAlpha = regexCheck(/[A-Za-z]/);
|
|
9661
9661
|
asciiAlphanumeric = regexCheck(/[\dA-Za-z]/);
|
|
9662
9662
|
asciiAtext = regexCheck(/[#-'*+\--9=?A-Z^-~]/);
|
|
@@ -10464,12 +10464,12 @@ var init_mdast_util_gfm_autolink_literal = __esm({
|
|
|
10464
10464
|
}
|
|
10465
10465
|
});
|
|
10466
10466
|
|
|
10467
|
-
// node_modules/.pnpm/micromark-util-normalize-identifier@2.0.
|
|
10467
|
+
// node_modules/.pnpm/micromark-util-normalize-identifier@2.0.1/node_modules/micromark-util-normalize-identifier/index.js
|
|
10468
10468
|
function normalizeIdentifier(value2) {
|
|
10469
10469
|
return value2.replace(/[\t\n\r ]+/g, " ").replace(/^ | $/g, "").toLowerCase().toUpperCase();
|
|
10470
10470
|
}
|
|
10471
10471
|
var init_micromark_util_normalize_identifier = __esm({
|
|
10472
|
-
"node_modules/.pnpm/micromark-util-normalize-identifier@2.0.
|
|
10472
|
+
"node_modules/.pnpm/micromark-util-normalize-identifier@2.0.1/node_modules/micromark-util-normalize-identifier/index.js"() {
|
|
10473
10473
|
}
|
|
10474
10474
|
});
|
|
10475
10475
|
|
|
@@ -12180,7 +12180,7 @@ var init_mdast_util_gfm = __esm({
|
|
|
12180
12180
|
}
|
|
12181
12181
|
});
|
|
12182
12182
|
|
|
12183
|
-
// node_modules/.pnpm/micromark-util-chunked@2.0.
|
|
12183
|
+
// node_modules/.pnpm/micromark-util-chunked@2.0.1/node_modules/micromark-util-chunked/index.js
|
|
12184
12184
|
function splice(list3, start, remove, items) {
|
|
12185
12185
|
const end = list3.length;
|
|
12186
12186
|
let chunkStart = 0;
|
|
@@ -12207,11 +12207,11 @@ function splice(list3, start, remove, items) {
|
|
|
12207
12207
|
}
|
|
12208
12208
|
}
|
|
12209
12209
|
var init_micromark_util_chunked = __esm({
|
|
12210
|
-
"node_modules/.pnpm/micromark-util-chunked@2.0.
|
|
12210
|
+
"node_modules/.pnpm/micromark-util-chunked@2.0.1/node_modules/micromark-util-chunked/index.js"() {
|
|
12211
12211
|
}
|
|
12212
12212
|
});
|
|
12213
12213
|
|
|
12214
|
-
// node_modules/.pnpm/micromark-util-combine-extensions@2.0.
|
|
12214
|
+
// node_modules/.pnpm/micromark-util-combine-extensions@2.0.1/node_modules/micromark-util-combine-extensions/index.js
|
|
12215
12215
|
function combineExtensions(extensions) {
|
|
12216
12216
|
const all3 = {};
|
|
12217
12217
|
let index = -1;
|
|
@@ -12251,7 +12251,7 @@ function constructs(existing, list3) {
|
|
|
12251
12251
|
}
|
|
12252
12252
|
var hasOwnProperty;
|
|
12253
12253
|
var init_micromark_util_combine_extensions = __esm({
|
|
12254
|
-
"node_modules/.pnpm/micromark-util-combine-extensions@2.0.
|
|
12254
|
+
"node_modules/.pnpm/micromark-util-combine-extensions@2.0.1/node_modules/micromark-util-combine-extensions/index.js"() {
|
|
12255
12255
|
init_micromark_util_chunked();
|
|
12256
12256
|
hasOwnProperty = {}.hasOwnProperty;
|
|
12257
12257
|
}
|
|
@@ -12617,7 +12617,7 @@ var init_micromark_extension_gfm_autolink_literal = __esm({
|
|
|
12617
12617
|
}
|
|
12618
12618
|
});
|
|
12619
12619
|
|
|
12620
|
-
// node_modules/.pnpm/micromark-util-classify-character@2.0.
|
|
12620
|
+
// node_modules/.pnpm/micromark-util-classify-character@2.0.1/node_modules/micromark-util-classify-character/index.js
|
|
12621
12621
|
function classifyCharacter(code3) {
|
|
12622
12622
|
if (code3 === null || markdownLineEndingOrSpace(code3) || unicodeWhitespace(code3)) {
|
|
12623
12623
|
return 1;
|
|
@@ -12627,12 +12627,12 @@ function classifyCharacter(code3) {
|
|
|
12627
12627
|
}
|
|
12628
12628
|
}
|
|
12629
12629
|
var init_micromark_util_classify_character = __esm({
|
|
12630
|
-
"node_modules/.pnpm/micromark-util-classify-character@2.0.
|
|
12630
|
+
"node_modules/.pnpm/micromark-util-classify-character@2.0.1/node_modules/micromark-util-classify-character/index.js"() {
|
|
12631
12631
|
init_micromark_util_character();
|
|
12632
12632
|
}
|
|
12633
12633
|
});
|
|
12634
12634
|
|
|
12635
|
-
// node_modules/.pnpm/micromark-util-resolve-all@2.0.
|
|
12635
|
+
// node_modules/.pnpm/micromark-util-resolve-all@2.0.1/node_modules/micromark-util-resolve-all/index.js
|
|
12636
12636
|
function resolveAll(constructs2, events, context) {
|
|
12637
12637
|
const called = [];
|
|
12638
12638
|
let index = -1;
|
|
@@ -12646,11 +12646,11 @@ function resolveAll(constructs2, events, context) {
|
|
|
12646
12646
|
return events;
|
|
12647
12647
|
}
|
|
12648
12648
|
var init_micromark_util_resolve_all = __esm({
|
|
12649
|
-
"node_modules/.pnpm/micromark-util-resolve-all@2.0.
|
|
12649
|
+
"node_modules/.pnpm/micromark-util-resolve-all@2.0.1/node_modules/micromark-util-resolve-all/index.js"() {
|
|
12650
12650
|
}
|
|
12651
12651
|
});
|
|
12652
12652
|
|
|
12653
|
-
// node_modules/.pnpm/micromark-factory-space@2.0.
|
|
12653
|
+
// node_modules/.pnpm/micromark-factory-space@2.0.1/node_modules/micromark-factory-space/index.js
|
|
12654
12654
|
function factorySpace(effects, ok3, type, max) {
|
|
12655
12655
|
const limit = max ? max - 1 : Number.POSITIVE_INFINITY;
|
|
12656
12656
|
let size = 0;
|
|
@@ -12672,12 +12672,12 @@ function factorySpace(effects, ok3, type, max) {
|
|
|
12672
12672
|
}
|
|
12673
12673
|
}
|
|
12674
12674
|
var init_micromark_factory_space = __esm({
|
|
12675
|
-
"node_modules/.pnpm/micromark-factory-space@2.0.
|
|
12675
|
+
"node_modules/.pnpm/micromark-factory-space@2.0.1/node_modules/micromark-factory-space/index.js"() {
|
|
12676
12676
|
init_micromark_util_character();
|
|
12677
12677
|
}
|
|
12678
12678
|
});
|
|
12679
12679
|
|
|
12680
|
-
// node_modules/.pnpm/micromark-core-commonmark@2.0.
|
|
12680
|
+
// node_modules/.pnpm/micromark-core-commonmark@2.0.2/node_modules/micromark-core-commonmark/lib/blank-line.js
|
|
12681
12681
|
function tokenizeBlankLine(effects, ok3, nok) {
|
|
12682
12682
|
return start;
|
|
12683
12683
|
function start(code3) {
|
|
@@ -12689,19 +12689,19 @@ function tokenizeBlankLine(effects, ok3, nok) {
|
|
|
12689
12689
|
}
|
|
12690
12690
|
var blankLine;
|
|
12691
12691
|
var init_blank_line = __esm({
|
|
12692
|
-
"node_modules/.pnpm/micromark-core-commonmark@2.0.
|
|
12692
|
+
"node_modules/.pnpm/micromark-core-commonmark@2.0.2/node_modules/micromark-core-commonmark/lib/blank-line.js"() {
|
|
12693
12693
|
init_micromark_factory_space();
|
|
12694
12694
|
init_micromark_util_character();
|
|
12695
12695
|
blankLine = {
|
|
12696
|
-
|
|
12697
|
-
|
|
12696
|
+
partial: true,
|
|
12697
|
+
tokenize: tokenizeBlankLine
|
|
12698
12698
|
};
|
|
12699
12699
|
}
|
|
12700
12700
|
});
|
|
12701
12701
|
|
|
12702
|
-
// node_modules/.pnpm/micromark-core-commonmark@2.0.
|
|
12702
|
+
// node_modules/.pnpm/micromark-core-commonmark@2.0.2/node_modules/micromark-core-commonmark/index.js
|
|
12703
12703
|
var init_micromark_core_commonmark = __esm({
|
|
12704
|
-
"node_modules/.pnpm/micromark-core-commonmark@2.0.
|
|
12704
|
+
"node_modules/.pnpm/micromark-core-commonmark@2.0.2/node_modules/micromark-core-commonmark/index.js"() {
|
|
12705
12705
|
init_blank_line();
|
|
12706
12706
|
}
|
|
12707
12707
|
});
|
|
@@ -14869,8 +14869,20 @@ function createRequestEvent(serverRequestEv, loadedRoute, requestHandlers, manif
|
|
|
14869
14869
|
} else {
|
|
14870
14870
|
status = statusOrResponse.status;
|
|
14871
14871
|
statusOrResponse.headers.forEach((value2, key) => {
|
|
14872
|
+
if (key.toLowerCase() === "set-cookie") {
|
|
14873
|
+
return;
|
|
14874
|
+
}
|
|
14872
14875
|
headers.append(key, value2);
|
|
14873
14876
|
});
|
|
14877
|
+
statusOrResponse.headers.getSetCookie().forEach((ck) => {
|
|
14878
|
+
const index = ck.indexOf("=");
|
|
14879
|
+
if (index === -1) {
|
|
14880
|
+
return;
|
|
14881
|
+
}
|
|
14882
|
+
const key = ck.slice(0, index).trim();
|
|
14883
|
+
const value2 = ck.slice(index + 1).trim();
|
|
14884
|
+
cookie.set(key, value2);
|
|
14885
|
+
});
|
|
14874
14886
|
if (statusOrResponse.body) {
|
|
14875
14887
|
const writableStream2 = requestEv.getWritableStream();
|
|
14876
14888
|
statusOrResponse.body.pipeTo(writableStream2);
|
|
@@ -15562,7 +15574,7 @@ async function measure(requestEv, name, fn) {
|
|
|
15562
15574
|
}
|
|
15563
15575
|
function isContentType(headers, ...types) {
|
|
15564
15576
|
var _a;
|
|
15565
|
-
const type = ((_a = headers.get("content-type")) == null ? void 0 : _a.split(
|
|
15577
|
+
const type = ((_a = headers.get("content-type")) == null ? void 0 : _a.split(/;/, 1)[0].trim()) ?? "";
|
|
15566
15578
|
return types.includes(type);
|
|
15567
15579
|
}
|
|
15568
15580
|
|
package/lib/vite/index.mjs
CHANGED
|
@@ -9629,7 +9629,7 @@ var init_default = __esm({
|
|
|
9629
9629
|
}
|
|
9630
9630
|
});
|
|
9631
9631
|
|
|
9632
|
-
// node_modules/.pnpm/micromark-util-character@2.1.
|
|
9632
|
+
// node_modules/.pnpm/micromark-util-character@2.1.1/node_modules/micromark-util-character/index.js
|
|
9633
9633
|
function asciiControl(code3) {
|
|
9634
9634
|
return (
|
|
9635
9635
|
// Special whitespace codes (which have negative values), C0 and Control
|
|
@@ -9654,7 +9654,7 @@ function regexCheck(regex3) {
|
|
|
9654
9654
|
}
|
|
9655
9655
|
var asciiAlpha, asciiAlphanumeric, asciiAtext, asciiDigit, asciiHexDigit, asciiPunctuation, unicodePunctuation, unicodeWhitespace;
|
|
9656
9656
|
var init_micromark_util_character = __esm({
|
|
9657
|
-
"node_modules/.pnpm/micromark-util-character@2.1.
|
|
9657
|
+
"node_modules/.pnpm/micromark-util-character@2.1.1/node_modules/micromark-util-character/index.js"() {
|
|
9658
9658
|
asciiAlpha = regexCheck(/[A-Za-z]/);
|
|
9659
9659
|
asciiAlphanumeric = regexCheck(/[\dA-Za-z]/);
|
|
9660
9660
|
asciiAtext = regexCheck(/[#-'*+\--9=?A-Z^-~]/);
|
|
@@ -10462,12 +10462,12 @@ var init_mdast_util_gfm_autolink_literal = __esm({
|
|
|
10462
10462
|
}
|
|
10463
10463
|
});
|
|
10464
10464
|
|
|
10465
|
-
// node_modules/.pnpm/micromark-util-normalize-identifier@2.0.
|
|
10465
|
+
// node_modules/.pnpm/micromark-util-normalize-identifier@2.0.1/node_modules/micromark-util-normalize-identifier/index.js
|
|
10466
10466
|
function normalizeIdentifier(value2) {
|
|
10467
10467
|
return value2.replace(/[\t\n\r ]+/g, " ").replace(/^ | $/g, "").toLowerCase().toUpperCase();
|
|
10468
10468
|
}
|
|
10469
10469
|
var init_micromark_util_normalize_identifier = __esm({
|
|
10470
|
-
"node_modules/.pnpm/micromark-util-normalize-identifier@2.0.
|
|
10470
|
+
"node_modules/.pnpm/micromark-util-normalize-identifier@2.0.1/node_modules/micromark-util-normalize-identifier/index.js"() {
|
|
10471
10471
|
}
|
|
10472
10472
|
});
|
|
10473
10473
|
|
|
@@ -12178,7 +12178,7 @@ var init_mdast_util_gfm = __esm({
|
|
|
12178
12178
|
}
|
|
12179
12179
|
});
|
|
12180
12180
|
|
|
12181
|
-
// node_modules/.pnpm/micromark-util-chunked@2.0.
|
|
12181
|
+
// node_modules/.pnpm/micromark-util-chunked@2.0.1/node_modules/micromark-util-chunked/index.js
|
|
12182
12182
|
function splice(list3, start, remove, items) {
|
|
12183
12183
|
const end = list3.length;
|
|
12184
12184
|
let chunkStart = 0;
|
|
@@ -12205,11 +12205,11 @@ function splice(list3, start, remove, items) {
|
|
|
12205
12205
|
}
|
|
12206
12206
|
}
|
|
12207
12207
|
var init_micromark_util_chunked = __esm({
|
|
12208
|
-
"node_modules/.pnpm/micromark-util-chunked@2.0.
|
|
12208
|
+
"node_modules/.pnpm/micromark-util-chunked@2.0.1/node_modules/micromark-util-chunked/index.js"() {
|
|
12209
12209
|
}
|
|
12210
12210
|
});
|
|
12211
12211
|
|
|
12212
|
-
// node_modules/.pnpm/micromark-util-combine-extensions@2.0.
|
|
12212
|
+
// node_modules/.pnpm/micromark-util-combine-extensions@2.0.1/node_modules/micromark-util-combine-extensions/index.js
|
|
12213
12213
|
function combineExtensions(extensions) {
|
|
12214
12214
|
const all3 = {};
|
|
12215
12215
|
let index = -1;
|
|
@@ -12249,7 +12249,7 @@ function constructs(existing, list3) {
|
|
|
12249
12249
|
}
|
|
12250
12250
|
var hasOwnProperty;
|
|
12251
12251
|
var init_micromark_util_combine_extensions = __esm({
|
|
12252
|
-
"node_modules/.pnpm/micromark-util-combine-extensions@2.0.
|
|
12252
|
+
"node_modules/.pnpm/micromark-util-combine-extensions@2.0.1/node_modules/micromark-util-combine-extensions/index.js"() {
|
|
12253
12253
|
init_micromark_util_chunked();
|
|
12254
12254
|
hasOwnProperty = {}.hasOwnProperty;
|
|
12255
12255
|
}
|
|
@@ -12615,7 +12615,7 @@ var init_micromark_extension_gfm_autolink_literal = __esm({
|
|
|
12615
12615
|
}
|
|
12616
12616
|
});
|
|
12617
12617
|
|
|
12618
|
-
// node_modules/.pnpm/micromark-util-classify-character@2.0.
|
|
12618
|
+
// node_modules/.pnpm/micromark-util-classify-character@2.0.1/node_modules/micromark-util-classify-character/index.js
|
|
12619
12619
|
function classifyCharacter(code3) {
|
|
12620
12620
|
if (code3 === null || markdownLineEndingOrSpace(code3) || unicodeWhitespace(code3)) {
|
|
12621
12621
|
return 1;
|
|
@@ -12625,12 +12625,12 @@ function classifyCharacter(code3) {
|
|
|
12625
12625
|
}
|
|
12626
12626
|
}
|
|
12627
12627
|
var init_micromark_util_classify_character = __esm({
|
|
12628
|
-
"node_modules/.pnpm/micromark-util-classify-character@2.0.
|
|
12628
|
+
"node_modules/.pnpm/micromark-util-classify-character@2.0.1/node_modules/micromark-util-classify-character/index.js"() {
|
|
12629
12629
|
init_micromark_util_character();
|
|
12630
12630
|
}
|
|
12631
12631
|
});
|
|
12632
12632
|
|
|
12633
|
-
// node_modules/.pnpm/micromark-util-resolve-all@2.0.
|
|
12633
|
+
// node_modules/.pnpm/micromark-util-resolve-all@2.0.1/node_modules/micromark-util-resolve-all/index.js
|
|
12634
12634
|
function resolveAll(constructs2, events, context) {
|
|
12635
12635
|
const called = [];
|
|
12636
12636
|
let index = -1;
|
|
@@ -12644,11 +12644,11 @@ function resolveAll(constructs2, events, context) {
|
|
|
12644
12644
|
return events;
|
|
12645
12645
|
}
|
|
12646
12646
|
var init_micromark_util_resolve_all = __esm({
|
|
12647
|
-
"node_modules/.pnpm/micromark-util-resolve-all@2.0.
|
|
12647
|
+
"node_modules/.pnpm/micromark-util-resolve-all@2.0.1/node_modules/micromark-util-resolve-all/index.js"() {
|
|
12648
12648
|
}
|
|
12649
12649
|
});
|
|
12650
12650
|
|
|
12651
|
-
// node_modules/.pnpm/micromark-factory-space@2.0.
|
|
12651
|
+
// node_modules/.pnpm/micromark-factory-space@2.0.1/node_modules/micromark-factory-space/index.js
|
|
12652
12652
|
function factorySpace(effects, ok3, type, max) {
|
|
12653
12653
|
const limit = max ? max - 1 : Number.POSITIVE_INFINITY;
|
|
12654
12654
|
let size = 0;
|
|
@@ -12670,12 +12670,12 @@ function factorySpace(effects, ok3, type, max) {
|
|
|
12670
12670
|
}
|
|
12671
12671
|
}
|
|
12672
12672
|
var init_micromark_factory_space = __esm({
|
|
12673
|
-
"node_modules/.pnpm/micromark-factory-space@2.0.
|
|
12673
|
+
"node_modules/.pnpm/micromark-factory-space@2.0.1/node_modules/micromark-factory-space/index.js"() {
|
|
12674
12674
|
init_micromark_util_character();
|
|
12675
12675
|
}
|
|
12676
12676
|
});
|
|
12677
12677
|
|
|
12678
|
-
// node_modules/.pnpm/micromark-core-commonmark@2.0.
|
|
12678
|
+
// node_modules/.pnpm/micromark-core-commonmark@2.0.2/node_modules/micromark-core-commonmark/lib/blank-line.js
|
|
12679
12679
|
function tokenizeBlankLine(effects, ok3, nok) {
|
|
12680
12680
|
return start;
|
|
12681
12681
|
function start(code3) {
|
|
@@ -12687,19 +12687,19 @@ function tokenizeBlankLine(effects, ok3, nok) {
|
|
|
12687
12687
|
}
|
|
12688
12688
|
var blankLine;
|
|
12689
12689
|
var init_blank_line = __esm({
|
|
12690
|
-
"node_modules/.pnpm/micromark-core-commonmark@2.0.
|
|
12690
|
+
"node_modules/.pnpm/micromark-core-commonmark@2.0.2/node_modules/micromark-core-commonmark/lib/blank-line.js"() {
|
|
12691
12691
|
init_micromark_factory_space();
|
|
12692
12692
|
init_micromark_util_character();
|
|
12693
12693
|
blankLine = {
|
|
12694
|
-
|
|
12695
|
-
|
|
12694
|
+
partial: true,
|
|
12695
|
+
tokenize: tokenizeBlankLine
|
|
12696
12696
|
};
|
|
12697
12697
|
}
|
|
12698
12698
|
});
|
|
12699
12699
|
|
|
12700
|
-
// node_modules/.pnpm/micromark-core-commonmark@2.0.
|
|
12700
|
+
// node_modules/.pnpm/micromark-core-commonmark@2.0.2/node_modules/micromark-core-commonmark/index.js
|
|
12701
12701
|
var init_micromark_core_commonmark = __esm({
|
|
12702
|
-
"node_modules/.pnpm/micromark-core-commonmark@2.0.
|
|
12702
|
+
"node_modules/.pnpm/micromark-core-commonmark@2.0.2/node_modules/micromark-core-commonmark/index.js"() {
|
|
12703
12703
|
init_blank_line();
|
|
12704
12704
|
}
|
|
12705
12705
|
});
|
|
@@ -14858,8 +14858,20 @@ function createRequestEvent(serverRequestEv, loadedRoute, requestHandlers, manif
|
|
|
14858
14858
|
} else {
|
|
14859
14859
|
status = statusOrResponse.status;
|
|
14860
14860
|
statusOrResponse.headers.forEach((value2, key) => {
|
|
14861
|
+
if (key.toLowerCase() === "set-cookie") {
|
|
14862
|
+
return;
|
|
14863
|
+
}
|
|
14861
14864
|
headers.append(key, value2);
|
|
14862
14865
|
});
|
|
14866
|
+
statusOrResponse.headers.getSetCookie().forEach((ck) => {
|
|
14867
|
+
const index = ck.indexOf("=");
|
|
14868
|
+
if (index === -1) {
|
|
14869
|
+
return;
|
|
14870
|
+
}
|
|
14871
|
+
const key = ck.slice(0, index).trim();
|
|
14872
|
+
const value2 = ck.slice(index + 1).trim();
|
|
14873
|
+
cookie.set(key, value2);
|
|
14874
|
+
});
|
|
14863
14875
|
if (statusOrResponse.body) {
|
|
14864
14876
|
const writableStream2 = requestEv.getWritableStream();
|
|
14865
14877
|
statusOrResponse.body.pipeTo(writableStream2);
|
|
@@ -15551,7 +15563,7 @@ async function measure(requestEv, name, fn) {
|
|
|
15551
15563
|
}
|
|
15552
15564
|
function isContentType(headers, ...types) {
|
|
15553
15565
|
var _a;
|
|
15554
|
-
const type = ((_a = headers.get("content-type")) == null ? void 0 : _a.split(
|
|
15566
|
+
const type = ((_a = headers.get("content-type")) == null ? void 0 : _a.split(/;/, 1)[0].trim()) ?? "";
|
|
15555
15567
|
return types.includes(type);
|
|
15556
15568
|
}
|
|
15557
15569
|
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@qwik.dev/router",
|
|
3
3
|
"description": "The router for Qwik.",
|
|
4
|
-
"version": "2.0.0-alpha.
|
|
4
|
+
"version": "2.0.0-alpha.7",
|
|
5
5
|
"bugs": "https://github.com/QwikDev/qwik/issues",
|
|
6
6
|
"dependencies": {
|
|
7
7
|
"@mdx-js/mdx": "^3",
|
|
@@ -41,7 +41,7 @@
|
|
|
41
41
|
"unist-util-visit": "5.0.0",
|
|
42
42
|
"uvu": "0.5.6",
|
|
43
43
|
"yaml": "2.4.5",
|
|
44
|
-
"@qwik.dev/core": "2.0.0-alpha.
|
|
44
|
+
"@qwik.dev/core": "2.0.0-alpha.7"
|
|
45
45
|
},
|
|
46
46
|
"engines": {
|
|
47
47
|
"node": "^18.17.0 || ^20.3.0 || >=21.0.0"
|