unplugin-https-reverse-proxy 1.0.0-beta.3 → 1.0.0-beta.4
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-ZAZWZOPZ.js → chunk-GAKOA5LE.js} +3 -0
- package/dist/esbuild.cjs +3 -0
- package/dist/esbuild.js +1 -1
- package/dist/index.cjs +3 -0
- package/dist/index.js +1 -1
- package/dist/nuxt.cjs +3 -0
- package/dist/nuxt.js +1 -1
- package/dist/rollup.cjs +3 -0
- package/dist/rollup.js +1 -1
- package/dist/vite.cjs +3 -0
- package/dist/vite.js +1 -1
- package/dist/webpack.cjs +3 -0
- package/dist/webpack.js +1 -1
- package/package.json +1 -1
- package/src/caddy/index.ts +4 -0
|
@@ -354,6 +354,9 @@ var CaddyInstant = class {
|
|
|
354
354
|
});
|
|
355
355
|
const originalExit = process3.exit.bind(process3);
|
|
356
356
|
process3.exit = async (code) => {
|
|
357
|
+
const port = Number(source.split(":")[1]);
|
|
358
|
+
if (!Number.isNaN(port) && await tryPort(port))
|
|
359
|
+
await kill(port, "tcp");
|
|
357
360
|
if (!restore || this.stoped)
|
|
358
361
|
return originalExit(code);
|
|
359
362
|
try {
|
package/dist/esbuild.cjs
CHANGED
|
@@ -436,6 +436,9 @@ var CaddyInstant = class {
|
|
|
436
436
|
});
|
|
437
437
|
const originalExit = import_node_process4.default.exit.bind(import_node_process4.default);
|
|
438
438
|
import_node_process4.default.exit = async (code) => {
|
|
439
|
+
const port = Number(source.split(":")[1]);
|
|
440
|
+
if (!Number.isNaN(port) && await tryPort(port))
|
|
441
|
+
await (0, import_kill_port.default)(port, "tcp");
|
|
439
442
|
if (!restore || this.stoped)
|
|
440
443
|
return originalExit(code);
|
|
441
444
|
try {
|
package/dist/esbuild.js
CHANGED
package/dist/index.cjs
CHANGED
|
@@ -436,6 +436,9 @@ var CaddyInstant = class {
|
|
|
436
436
|
});
|
|
437
437
|
const originalExit = import_node_process4.default.exit.bind(import_node_process4.default);
|
|
438
438
|
import_node_process4.default.exit = async (code) => {
|
|
439
|
+
const port = Number(source.split(":")[1]);
|
|
440
|
+
if (!Number.isNaN(port) && await tryPort(port))
|
|
441
|
+
await (0, import_kill_port.default)(port, "tcp");
|
|
439
442
|
if (!restore || this.stoped)
|
|
440
443
|
return originalExit(code);
|
|
441
444
|
try {
|
package/dist/index.js
CHANGED
package/dist/nuxt.cjs
CHANGED
|
@@ -438,6 +438,9 @@ var CaddyInstant = class {
|
|
|
438
438
|
});
|
|
439
439
|
const originalExit = import_node_process4.default.exit.bind(import_node_process4.default);
|
|
440
440
|
import_node_process4.default.exit = async (code) => {
|
|
441
|
+
const port = Number(source.split(":")[1]);
|
|
442
|
+
if (!Number.isNaN(port) && await tryPort(port))
|
|
443
|
+
await (0, import_kill_port.default)(port, "tcp");
|
|
441
444
|
if (!restore || this.stoped)
|
|
442
445
|
return originalExit(code);
|
|
443
446
|
try {
|
package/dist/nuxt.js
CHANGED
package/dist/rollup.cjs
CHANGED
|
@@ -436,6 +436,9 @@ var CaddyInstant = class {
|
|
|
436
436
|
});
|
|
437
437
|
const originalExit = import_node_process4.default.exit.bind(import_node_process4.default);
|
|
438
438
|
import_node_process4.default.exit = async (code) => {
|
|
439
|
+
const port = Number(source.split(":")[1]);
|
|
440
|
+
if (!Number.isNaN(port) && await tryPort(port))
|
|
441
|
+
await (0, import_kill_port.default)(port, "tcp");
|
|
439
442
|
if (!restore || this.stoped)
|
|
440
443
|
return originalExit(code);
|
|
441
444
|
try {
|
package/dist/rollup.js
CHANGED
package/dist/vite.cjs
CHANGED
|
@@ -436,6 +436,9 @@ var CaddyInstant = class {
|
|
|
436
436
|
});
|
|
437
437
|
const originalExit = import_node_process4.default.exit.bind(import_node_process4.default);
|
|
438
438
|
import_node_process4.default.exit = async (code) => {
|
|
439
|
+
const port = Number(source.split(":")[1]);
|
|
440
|
+
if (!Number.isNaN(port) && await tryPort(port))
|
|
441
|
+
await (0, import_kill_port.default)(port, "tcp");
|
|
439
442
|
if (!restore || this.stoped)
|
|
440
443
|
return originalExit(code);
|
|
441
444
|
try {
|
package/dist/vite.js
CHANGED
package/dist/webpack.cjs
CHANGED
|
@@ -436,6 +436,9 @@ var CaddyInstant = class {
|
|
|
436
436
|
});
|
|
437
437
|
const originalExit = import_node_process4.default.exit.bind(import_node_process4.default);
|
|
438
438
|
import_node_process4.default.exit = async (code) => {
|
|
439
|
+
const port = Number(source.split(":")[1]);
|
|
440
|
+
if (!Number.isNaN(port) && await tryPort(port))
|
|
441
|
+
await (0, import_kill_port.default)(port, "tcp");
|
|
439
442
|
if (!restore || this.stoped)
|
|
440
443
|
return originalExit(code);
|
|
441
444
|
try {
|
package/dist/webpack.js
CHANGED
package/package.json
CHANGED
package/src/caddy/index.ts
CHANGED
|
@@ -166,6 +166,10 @@ export class CaddyInstant {
|
|
|
166
166
|
|
|
167
167
|
// @ts-expect-error override
|
|
168
168
|
process.exit = async (code?: number) => {
|
|
169
|
+
const port = Number(source.split(':')[1])
|
|
170
|
+
if (!Number.isNaN(port) && await tryPort(port))
|
|
171
|
+
await kill(port, 'tcp')
|
|
172
|
+
|
|
169
173
|
if (!restore || this.stoped)
|
|
170
174
|
return originalExit(code)
|
|
171
175
|
|