vike 0.4.184-commit-6c9e3a7 → 0.4.184-commit-7048cc1

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.
@@ -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.184-commit-6c9e3a7';
5
+ exports.PROJECT_VERSION = '0.4.184-commit-7048cc1';
@@ -129,17 +129,15 @@ function parseHost(host, url) {
129
129
  const ret = { hostname: null, port: null };
130
130
  if (!host)
131
131
  return ret;
132
- // hostname
133
- const [hostname, ...rest] = host.split(':');
134
- ret.hostname = hostname;
135
132
  // port
136
- if (rest.length > 0) {
137
- (0, assert_js_1.assert)(rest.length === 1, url);
138
- const portStr = rest[0];
139
- const port = parseInt(portStr, 10);
133
+ const parts = host.split(':');
134
+ if (parts.length > 1) {
135
+ const port = parseInt(parts.pop(), 10);
140
136
  (0, assert_js_1.assert)(port || port === 0, url);
141
137
  ret.port = port;
142
138
  }
139
+ // hostname
140
+ ret.hostname = parts.join(':');
143
141
  return ret;
144
142
  }
145
143
  function parseProtocol(uri) {
@@ -1 +1 @@
1
- export declare const PROJECT_VERSION: "0.4.184-commit-6c9e3a7";
1
+ export declare const PROJECT_VERSION: "0.4.184-commit-7048cc1";
@@ -1,2 +1,2 @@
1
1
  // Automatically updated by @brillout/release-me
2
- export const PROJECT_VERSION = '0.4.184-commit-6c9e3a7';
2
+ export const PROJECT_VERSION = '0.4.184-commit-7048cc1';
@@ -134,17 +134,15 @@ function parseHost(host, url) {
134
134
  const ret = { hostname: null, port: null };
135
135
  if (!host)
136
136
  return ret;
137
- // hostname
138
- const [hostname, ...rest] = host.split(':');
139
- ret.hostname = hostname;
140
137
  // port
141
- if (rest.length > 0) {
142
- assert(rest.length === 1, url);
143
- const portStr = rest[0];
144
- const port = parseInt(portStr, 10);
138
+ const parts = host.split(':');
139
+ if (parts.length > 1) {
140
+ const port = parseInt(parts.pop(), 10);
145
141
  assert(port || port === 0, url);
146
142
  ret.port = port;
147
143
  }
144
+ // hostname
145
+ ret.hostname = parts.join(':');
148
146
  return ret;
149
147
  }
150
148
  function parseProtocol(uri) {
@@ -1,4 +1,4 @@
1
1
  export declare const projectInfo: {
2
2
  projectName: "Vike";
3
- projectVersion: "0.4.184-commit-6c9e3a7";
3
+ projectVersion: "0.4.184-commit-7048cc1";
4
4
  };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "vike",
3
- "version": "0.4.184-commit-6c9e3a7",
3
+ "version": "0.4.184-commit-7048cc1",
4
4
  "scripts": {
5
5
  "dev": "tsc --watch",
6
6
  "build": "rimraf dist/ && pnpm run build:esm && pnpm run build:cjs",
@@ -21,7 +21,7 @@
21
21
  "acorn": "^8.0.0",
22
22
  "cac": "^6.0.0",
23
23
  "es-module-lexer": "^1.0.0",
24
- "esbuild": "0.23.0",
24
+ "esbuild": "^0.19.0 || ^0.20.0 || ^0.21.0 || ^0.22.0 || ^0.23.0",
25
25
  "fast-glob": "^3.0.0",
26
26
  "semver": "^7.0.0",
27
27
  "sirv": "^2.0.0",
@@ -217,6 +217,7 @@
217
217
  "acorn": "^8.11.2",
218
218
  "cac": "^6.7.14",
219
219
  "es-module-lexer": "^1.4.1",
220
+ "esbuild": "^0.23.0",
220
221
  "fast-glob": "^3.3.2",
221
222
  "react-streaming": "^0.3.42",
222
223
  "rimraf": "^5.0.5",