unplugin-https-reverse-proxy 0.0.16 → 0.0.17
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/{chunk-MPY62XIL.js → chunk-7YCZMCZN.js} +1 -1
- package/dist/{chunk-HWUN3C5Q.js → chunk-QRPGIR3T.js} +1 -1
- package/dist/{chunk-G5VIL2MO.js → chunk-X56GIMIN.js} +2 -2
- package/dist/esbuild.cjs +2 -2
- package/dist/esbuild.js +1 -1
- package/dist/index.cjs +2 -2
- package/dist/index.js +1 -1
- package/dist/nuxt.cjs +2 -2
- package/dist/nuxt.js +3 -3
- package/dist/rollup.cjs +2 -2
- package/dist/rollup.js +1 -1
- package/dist/vite.cjs +2 -2
- package/dist/vite.js +2 -2
- package/dist/webpack.cjs +2 -2
- package/dist/webpack.js +2 -2
- package/package.json +1 -1
- package/src/caddy/index.ts +2 -2
|
@@ -320,9 +320,9 @@ var CaddyInstant = class {
|
|
|
320
320
|
} = options || {};
|
|
321
321
|
if (!this.inited)
|
|
322
322
|
await this.init();
|
|
323
|
-
if (await tryPort(443))
|
|
323
|
+
if (https && await tryPort(443))
|
|
324
324
|
await kill(443, "tcp");
|
|
325
|
-
if (process2.platform === "win32" && await tryPort(80))
|
|
325
|
+
if ((process2.platform === "win32" || !https) && await tryPort(80))
|
|
326
326
|
await kill(80, "tcp");
|
|
327
327
|
if (!await this.updateHost(source.split(":")[0], target.split(":")[0]))
|
|
328
328
|
throw new Error("update host failed");
|
package/dist/esbuild.cjs
CHANGED
|
@@ -380,9 +380,9 @@ var CaddyInstant = class {
|
|
|
380
380
|
} = options || {};
|
|
381
381
|
if (!this.inited)
|
|
382
382
|
await this.init();
|
|
383
|
-
if (await tryPort(443))
|
|
383
|
+
if (https && await tryPort(443))
|
|
384
384
|
await (0, import_kill_port.default)(443, "tcp");
|
|
385
|
-
if (import_node_process2.default.platform === "win32" && await tryPort(80))
|
|
385
|
+
if ((import_node_process2.default.platform === "win32" || !https) && await tryPort(80))
|
|
386
386
|
await (0, import_kill_port.default)(80, "tcp");
|
|
387
387
|
if (!await this.updateHost(source.split(":")[0], target.split(":")[0]))
|
|
388
388
|
throw new Error("update host failed");
|
package/dist/esbuild.js
CHANGED
package/dist/index.cjs
CHANGED
|
@@ -379,9 +379,9 @@ var CaddyInstant = class {
|
|
|
379
379
|
} = options || {};
|
|
380
380
|
if (!this.inited)
|
|
381
381
|
await this.init();
|
|
382
|
-
if (await tryPort(443))
|
|
382
|
+
if (https && await tryPort(443))
|
|
383
383
|
await (0, import_kill_port.default)(443, "tcp");
|
|
384
|
-
if (import_node_process2.default.platform === "win32" && await tryPort(80))
|
|
384
|
+
if ((import_node_process2.default.platform === "win32" || !https) && await tryPort(80))
|
|
385
385
|
await (0, import_kill_port.default)(80, "tcp");
|
|
386
386
|
if (!await this.updateHost(source.split(":")[0], target.split(":")[0]))
|
|
387
387
|
throw new Error("update host failed");
|
package/dist/index.js
CHANGED
package/dist/nuxt.cjs
CHANGED
|
@@ -383,9 +383,9 @@ var CaddyInstant = class {
|
|
|
383
383
|
} = options || {};
|
|
384
384
|
if (!this.inited)
|
|
385
385
|
await this.init();
|
|
386
|
-
if (await tryPort(443))
|
|
386
|
+
if (https && await tryPort(443))
|
|
387
387
|
await (0, import_kill_port.default)(443, "tcp");
|
|
388
|
-
if (import_node_process2.default.platform === "win32" && await tryPort(80))
|
|
388
|
+
if ((import_node_process2.default.platform === "win32" || !https) && await tryPort(80))
|
|
389
389
|
await (0, import_kill_port.default)(80, "tcp");
|
|
390
390
|
if (!await this.updateHost(source.split(":")[0], target.split(":")[0]))
|
|
391
391
|
throw new Error("update host failed");
|
package/dist/nuxt.js
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import {
|
|
2
2
|
vite_default
|
|
3
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-QRPGIR3T.js";
|
|
4
4
|
import {
|
|
5
5
|
webpack_default
|
|
6
|
-
} from "./chunk-
|
|
7
|
-
import "./chunk-
|
|
6
|
+
} from "./chunk-7YCZMCZN.js";
|
|
7
|
+
import "./chunk-X56GIMIN.js";
|
|
8
8
|
import "./chunk-CQC5SSJR.js";
|
|
9
9
|
|
|
10
10
|
// src/nuxt.ts
|
package/dist/rollup.cjs
CHANGED
|
@@ -380,9 +380,9 @@ var CaddyInstant = class {
|
|
|
380
380
|
} = options || {};
|
|
381
381
|
if (!this.inited)
|
|
382
382
|
await this.init();
|
|
383
|
-
if (await tryPort(443))
|
|
383
|
+
if (https && await tryPort(443))
|
|
384
384
|
await (0, import_kill_port.default)(443, "tcp");
|
|
385
|
-
if (import_node_process2.default.platform === "win32" && await tryPort(80))
|
|
385
|
+
if ((import_node_process2.default.platform === "win32" || !https) && await tryPort(80))
|
|
386
386
|
await (0, import_kill_port.default)(80, "tcp");
|
|
387
387
|
if (!await this.updateHost(source.split(":")[0], target.split(":")[0]))
|
|
388
388
|
throw new Error("update host failed");
|
package/dist/rollup.js
CHANGED
package/dist/vite.cjs
CHANGED
|
@@ -380,9 +380,9 @@ var CaddyInstant = class {
|
|
|
380
380
|
} = options || {};
|
|
381
381
|
if (!this.inited)
|
|
382
382
|
await this.init();
|
|
383
|
-
if (await tryPort(443))
|
|
383
|
+
if (https && await tryPort(443))
|
|
384
384
|
await (0, import_kill_port.default)(443, "tcp");
|
|
385
|
-
if (import_node_process2.default.platform === "win32" && await tryPort(80))
|
|
385
|
+
if ((import_node_process2.default.platform === "win32" || !https) && await tryPort(80))
|
|
386
386
|
await (0, import_kill_port.default)(80, "tcp");
|
|
387
387
|
if (!await this.updateHost(source.split(":")[0], target.split(":")[0]))
|
|
388
388
|
throw new Error("update host failed");
|
package/dist/vite.js
CHANGED
package/dist/webpack.cjs
CHANGED
|
@@ -380,9 +380,9 @@ var CaddyInstant = class {
|
|
|
380
380
|
} = options || {};
|
|
381
381
|
if (!this.inited)
|
|
382
382
|
await this.init();
|
|
383
|
-
if (await tryPort(443))
|
|
383
|
+
if (https && await tryPort(443))
|
|
384
384
|
await (0, import_kill_port.default)(443, "tcp");
|
|
385
|
-
if (import_node_process2.default.platform === "win32" && await tryPort(80))
|
|
385
|
+
if ((import_node_process2.default.platform === "win32" || !https) && await tryPort(80))
|
|
386
386
|
await (0, import_kill_port.default)(80, "tcp");
|
|
387
387
|
if (!await this.updateHost(source.split(":")[0], target.split(":")[0]))
|
|
388
388
|
throw new Error("update host failed");
|
package/dist/webpack.js
CHANGED
package/package.json
CHANGED
package/src/caddy/index.ts
CHANGED
|
@@ -175,9 +175,9 @@ export class CaddyInstant {
|
|
|
175
175
|
if (!this.inited)
|
|
176
176
|
await this.init()
|
|
177
177
|
|
|
178
|
-
if (await tryPort(443))
|
|
178
|
+
if (https && await tryPort(443))
|
|
179
179
|
await kill(443, 'tcp')
|
|
180
|
-
if (process.platform === 'win32' && await tryPort(80))
|
|
180
|
+
if ((process.platform === 'win32' || !https) && await tryPort(80))
|
|
181
181
|
await kill(80, 'tcp')
|
|
182
182
|
|
|
183
183
|
if (!await this.updateHost(source.split(':')[0], target.split(':')[0]))
|