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.
@@ -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);
@@ -2,4 +2,4 @@
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.PROJECT_VERSION = void 0;
4
4
  // Automatically updated by @brillout/release-me
5
- exports.PROJECT_VERSION = '0.4.199-commit-5d1b353';
5
+ exports.PROJECT_VERSION = '0.4.199-commit-dc15087';
@@ -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-5d1b353";
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-5d1b353';
2
+ export const PROJECT_VERSION = '0.4.199-commit-dc15087';
@@ -1,4 +1,4 @@
1
1
  export declare const projectInfo: {
2
2
  projectName: "Vike";
3
- projectVersion: "0.4.199-commit-5d1b353";
3
+ projectVersion: "0.4.199-commit-dc15087";
4
4
  };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "vike",
3
- "version": "0.4.199-commit-5d1b353",
3
+ "version": "0.4.199-commit-dc15087",
4
4
  "repository": "https://github.com/vikejs/vike",
5
5
  "exports": {
6
6
  "./server": {