vike 0.4.199-commit-5d1b353 → 0.4.199-commit-dc15087
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/cjs/node/prerender/runPrerender.js +3 -1
- package/dist/cjs/utils/PROJECT_VERSION.js +1 -1
- package/dist/esm/client/client-routing-runtime/history.js +1 -1
- package/dist/esm/node/prerender/runPrerender.js +3 -1
- package/dist/esm/utils/PROJECT_VERSION.d.ts +1 -1
- package/dist/esm/utils/PROJECT_VERSION.js +1 -1
- package/dist/esm/utils/projectInfo.d.ts +1 -1
- package/package.json +1 -1
|
@@ -605,7 +605,9 @@ async function write(urlOriginal, pageContext, fileExtension, fileContent, root,
|
|
|
605
605
|
(0, utils_js_1.assertPosixPath)(fileUrl);
|
|
606
606
|
(0, utils_js_1.assert)(fileUrl.startsWith('/'));
|
|
607
607
|
const filePathRelative = fileUrl.slice(1);
|
|
608
|
-
(0, utils_js_1.assert)(!filePathRelative.startsWith('/')
|
|
608
|
+
(0, utils_js_1.assert)(!filePathRelative.startsWith('/'),
|
|
609
|
+
// Let's remove this debug info after we add a assertUsage() avoiding https://github.com/vikejs/vike/issues/1929
|
|
610
|
+
{ urlOriginal, fileUrl });
|
|
609
611
|
(0, utils_js_1.assertPosixPath)(outDirClient);
|
|
610
612
|
(0, utils_js_1.assertPosixPath)(filePathRelative);
|
|
611
613
|
const filePath = path_1.default.posix.join(outDirClient, filePathRelative);
|
|
@@ -140,10 +140,10 @@ function getHistoryInfo() {
|
|
|
140
140
|
};
|
|
141
141
|
}
|
|
142
142
|
function onPopStateBegin() {
|
|
143
|
+
const { previous } = globalObject;
|
|
143
144
|
const isNewState = window.history.state === null;
|
|
144
145
|
if (isNewState)
|
|
145
146
|
enhanceHistoryState();
|
|
146
|
-
const { previous } = globalObject;
|
|
147
147
|
const current = getHistoryInfo();
|
|
148
148
|
globalObject.previous = current;
|
|
149
149
|
return { isNewState, previous, current };
|
|
@@ -577,7 +577,9 @@ async function write(urlOriginal, pageContext, fileExtension, fileContent, root,
|
|
|
577
577
|
assertPosixPath(fileUrl);
|
|
578
578
|
assert(fileUrl.startsWith('/'));
|
|
579
579
|
const filePathRelative = fileUrl.slice(1);
|
|
580
|
-
assert(!filePathRelative.startsWith('/')
|
|
580
|
+
assert(!filePathRelative.startsWith('/'),
|
|
581
|
+
// Let's remove this debug info after we add a assertUsage() avoiding https://github.com/vikejs/vike/issues/1929
|
|
582
|
+
{ urlOriginal, fileUrl });
|
|
581
583
|
assertPosixPath(outDirClient);
|
|
582
584
|
assertPosixPath(filePathRelative);
|
|
583
585
|
const filePath = path.posix.join(outDirClient, filePathRelative);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export declare const PROJECT_VERSION: "0.4.199-commit-
|
|
1
|
+
export declare const PROJECT_VERSION: "0.4.199-commit-dc15087";
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
// Automatically updated by @brillout/release-me
|
|
2
|
-
export const PROJECT_VERSION = '0.4.199-commit-
|
|
2
|
+
export const PROJECT_VERSION = '0.4.199-commit-dc15087';
|