vike 0.4.229-commit-e1ca16d → 0.4.230

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.
@@ -3,7 +3,6 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
3
3
  return (mod && mod.__esModule) ? mod : { "default": mod };
4
4
  };
5
5
  Object.defineProperty(exports, "__esModule", { value: true });
6
- exports.redirectsErrPrefix = void 0;
7
6
  exports.resolveRedirects = resolveRedirects;
8
7
  exports.resolveRouteStringRedirect = resolveRouteStringRedirect;
9
8
  const assertIsNotBrowser_js_1 = require("../../../utils/assertIsNotBrowser.js");
@@ -13,7 +12,6 @@ const resolveRouteString_js_1 = require("../../../shared/route/resolveRouteStrin
13
12
  const picocolors_1 = __importDefault(require("@brillout/picocolors"));
14
13
  (0, assertIsNotBrowser_js_1.assertIsNotBrowser)(); // Don't bloat the client
15
14
  const redirectsErrPrefix = '[+redirects]';
16
- exports.redirectsErrPrefix = redirectsErrPrefix;
17
15
  function resolveRedirects(redirectsAll, urlPathname) {
18
16
  const redirects = merge(redirectsAll);
19
17
  for (const [urlSource, urlTarget] of Object.entries(redirects)) {
@@ -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.229-commit-e1ca16d';
5
+ exports.PROJECT_VERSION = '0.4.230';
@@ -94,7 +94,6 @@ function modifyUrlPathname(url, modifier) {
94
94
  function removeUrlOrigin(url) {
95
95
  const { origin, pathnameOriginal, searchOriginal, hashOriginal } = (0, parseUrl_js_1.parseUrl)(url, '/');
96
96
  const urlModified = (0, parseUrl_js_1.createUrlFromComponents)(null, pathnameOriginal, searchOriginal, hashOriginal);
97
- (0, assert_js_1.assert)(urlModified.startsWith('/'));
98
97
  return { urlModified, origin };
99
98
  }
100
99
  function setUrlOrigin(url, origin) {
@@ -1,6 +1,4 @@
1
1
  export { resolveRedirects };
2
2
  export { resolveRouteStringRedirect };
3
- export { redirectsErrPrefix };
4
- declare const redirectsErrPrefix = "[+redirects]";
5
3
  declare function resolveRedirects(redirectsAll: Record<string, string>[], urlPathname: string): null | string;
6
4
  declare function resolveRouteStringRedirect(urlSource: string, urlTarget: string, urlPathname: string): null | string;
@@ -1,7 +1,6 @@
1
1
  export { resolveRedirects };
2
2
  // For ./resolveRedirects.spec.ts
3
3
  export { resolveRouteStringRedirect };
4
- export { redirectsErrPrefix };
5
4
  import { assertIsNotBrowser } from '../../../utils/assertIsNotBrowser.js';
6
5
  import { assert, assertUsage, assertUsageUrlRedirectTarget, isUrlRedirectTarget } from '../../../shared/utils.js';
7
6
  import { resolveUrlPathname } from '../../../shared/route/resolveUrlPathname.js';
@@ -1 +1 @@
1
- export declare const PROJECT_VERSION: "0.4.229-commit-e1ca16d";
1
+ export declare const PROJECT_VERSION: "0.4.230";
@@ -1,2 +1,2 @@
1
1
  // Automatically updated by @brillout/release-me
2
- export const PROJECT_VERSION = '0.4.229-commit-e1ca16d';
2
+ export const PROJECT_VERSION = '0.4.230';
@@ -92,7 +92,6 @@ function modifyUrlPathname(url, modifier) {
92
92
  function removeUrlOrigin(url) {
93
93
  const { origin, pathnameOriginal, searchOriginal, hashOriginal } = parseUrl(url, '/');
94
94
  const urlModified = createUrlFromComponents(null, pathnameOriginal, searchOriginal, hashOriginal);
95
- assert(urlModified.startsWith('/'));
96
95
  return { urlModified, origin };
97
96
  }
98
97
  function setUrlOrigin(url, origin) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "vike",
3
- "version": "0.4.229-commit-e1ca16d",
3
+ "version": "0.4.230",
4
4
  "repository": "https://github.com/vikejs/vike",
5
5
  "exports": {
6
6
  "./server": {