unplugin-https-reverse-proxy 2.0.0 → 2.0.1
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-SO2FMQ2Q.js → chunk-DKHKFLLC.js} +12 -0
- package/dist/esbuild.cjs +12 -0
- package/dist/esbuild.js +1 -1
- package/dist/index.cjs +12 -0
- package/dist/index.js +1 -1
- package/dist/nuxt.cjs +4 -0
- package/dist/nuxt.js +5 -1
- package/dist/rollup.cjs +12 -0
- package/dist/rollup.js +1 -1
- package/dist/rspack.cjs +12 -0
- package/dist/rspack.js +1 -1
- package/dist/vite.cjs +12 -0
- package/dist/vite.js +1 -1
- package/dist/webpack.cjs +12 -0
- package/dist/webpack.js +1 -1
- package/package.json +1 -1
- package/src/index.ts +15 -0
- package/src/nuxt.ts +5 -0
|
@@ -642,6 +642,10 @@ var unpluginFactory = (options) => ({
|
|
|
642
642
|
consola.fail("please provide target");
|
|
643
643
|
return;
|
|
644
644
|
}
|
|
645
|
+
if (target.match(/^(?:https?)?:\/\//)) {
|
|
646
|
+
consola.fail("target must be a domain");
|
|
647
|
+
return;
|
|
648
|
+
}
|
|
645
649
|
const _printUrls = server.printUrls.bind(server);
|
|
646
650
|
let source = `localhost:${config.server.port || 5173}`;
|
|
647
651
|
const url = (_a = server.resolvedUrls) == null ? void 0 : _a.local[0];
|
|
@@ -671,6 +675,10 @@ var unpluginFactory = (options) => ({
|
|
|
671
675
|
consola.fail("please provide target");
|
|
672
676
|
return;
|
|
673
677
|
}
|
|
678
|
+
if (target.match(/^(?:https?)?:\/\//)) {
|
|
679
|
+
consola.fail("target must be a domain");
|
|
680
|
+
return;
|
|
681
|
+
}
|
|
674
682
|
const devServer = {
|
|
675
683
|
host: "localhost",
|
|
676
684
|
port: 8080,
|
|
@@ -721,6 +729,10 @@ var unpluginFactory = (options) => ({
|
|
|
721
729
|
consola.fail("please provide target");
|
|
722
730
|
return;
|
|
723
731
|
}
|
|
732
|
+
if (target.match(/^(?:https?)?:\/\//)) {
|
|
733
|
+
consola.fail("target must be a domain");
|
|
734
|
+
return;
|
|
735
|
+
}
|
|
724
736
|
const devServer = {
|
|
725
737
|
host: "localhost",
|
|
726
738
|
port: 8080,
|
package/dist/esbuild.cjs
CHANGED
|
@@ -727,6 +727,10 @@ var unpluginFactory = (options) => ({
|
|
|
727
727
|
consola.fail("please provide target");
|
|
728
728
|
return;
|
|
729
729
|
}
|
|
730
|
+
if (target.match(/^(?:https?)?:\/\//)) {
|
|
731
|
+
consola.fail("target must be a domain");
|
|
732
|
+
return;
|
|
733
|
+
}
|
|
730
734
|
const _printUrls = server.printUrls.bind(server);
|
|
731
735
|
let source = `localhost:${config.server.port || 5173}`;
|
|
732
736
|
const url = (_a = server.resolvedUrls) == null ? void 0 : _a.local[0];
|
|
@@ -756,6 +760,10 @@ var unpluginFactory = (options) => ({
|
|
|
756
760
|
consola.fail("please provide target");
|
|
757
761
|
return;
|
|
758
762
|
}
|
|
763
|
+
if (target.match(/^(?:https?)?:\/\//)) {
|
|
764
|
+
consola.fail("target must be a domain");
|
|
765
|
+
return;
|
|
766
|
+
}
|
|
759
767
|
const devServer = {
|
|
760
768
|
host: "localhost",
|
|
761
769
|
port: 8080,
|
|
@@ -806,6 +814,10 @@ var unpluginFactory = (options) => ({
|
|
|
806
814
|
consola.fail("please provide target");
|
|
807
815
|
return;
|
|
808
816
|
}
|
|
817
|
+
if (target.match(/^(?:https?)?:\/\//)) {
|
|
818
|
+
consola.fail("target must be a domain");
|
|
819
|
+
return;
|
|
820
|
+
}
|
|
809
821
|
const devServer = {
|
|
810
822
|
host: "localhost",
|
|
811
823
|
port: 8080,
|
package/dist/esbuild.js
CHANGED
package/dist/index.cjs
CHANGED
|
@@ -727,6 +727,10 @@ var unpluginFactory = (options) => ({
|
|
|
727
727
|
consola.fail("please provide target");
|
|
728
728
|
return;
|
|
729
729
|
}
|
|
730
|
+
if (target.match(/^(?:https?)?:\/\//)) {
|
|
731
|
+
consola.fail("target must be a domain");
|
|
732
|
+
return;
|
|
733
|
+
}
|
|
730
734
|
const _printUrls = server.printUrls.bind(server);
|
|
731
735
|
let source = `localhost:${config.server.port || 5173}`;
|
|
732
736
|
const url = (_a = server.resolvedUrls) == null ? void 0 : _a.local[0];
|
|
@@ -756,6 +760,10 @@ var unpluginFactory = (options) => ({
|
|
|
756
760
|
consola.fail("please provide target");
|
|
757
761
|
return;
|
|
758
762
|
}
|
|
763
|
+
if (target.match(/^(?:https?)?:\/\//)) {
|
|
764
|
+
consola.fail("target must be a domain");
|
|
765
|
+
return;
|
|
766
|
+
}
|
|
759
767
|
const devServer = {
|
|
760
768
|
host: "localhost",
|
|
761
769
|
port: 8080,
|
|
@@ -806,6 +814,10 @@ var unpluginFactory = (options) => ({
|
|
|
806
814
|
consola.fail("please provide target");
|
|
807
815
|
return;
|
|
808
816
|
}
|
|
817
|
+
if (target.match(/^(?:https?)?:\/\//)) {
|
|
818
|
+
consola.fail("target must be a domain");
|
|
819
|
+
return;
|
|
820
|
+
}
|
|
809
821
|
const devServer = {
|
|
810
822
|
host: "localhost",
|
|
811
823
|
port: 8080,
|
package/dist/index.js
CHANGED
package/dist/nuxt.cjs
CHANGED
|
@@ -727,6 +727,10 @@ var nuxt_default = (0, import_kit.defineNuxtModule)({
|
|
|
727
727
|
consola.fail("please provide target");
|
|
728
728
|
return;
|
|
729
729
|
}
|
|
730
|
+
if (target.match(/^(?:https?)?:\/\//)) {
|
|
731
|
+
consola.fail("target must be a domain");
|
|
732
|
+
return;
|
|
733
|
+
}
|
|
730
734
|
_nuxt.hook("listen", (_, listener) => {
|
|
731
735
|
const url = listener.url;
|
|
732
736
|
const source = new URL(url).host;
|
package/dist/nuxt.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import {
|
|
2
2
|
vitePrintUrls
|
|
3
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-DKHKFLLC.js";
|
|
4
4
|
import {
|
|
5
5
|
consola,
|
|
6
6
|
isAdmin
|
|
@@ -32,6 +32,10 @@ var nuxt_default = defineNuxtModule({
|
|
|
32
32
|
consola.fail("please provide target");
|
|
33
33
|
return;
|
|
34
34
|
}
|
|
35
|
+
if (target.match(/^(?:https?)?:\/\//)) {
|
|
36
|
+
consola.fail("target must be a domain");
|
|
37
|
+
return;
|
|
38
|
+
}
|
|
35
39
|
_nuxt.hook("listen", (_, listener) => {
|
|
36
40
|
const url = listener.url;
|
|
37
41
|
const source = new URL(url).host;
|
package/dist/rollup.cjs
CHANGED
|
@@ -727,6 +727,10 @@ var unpluginFactory = (options) => ({
|
|
|
727
727
|
consola.fail("please provide target");
|
|
728
728
|
return;
|
|
729
729
|
}
|
|
730
|
+
if (target.match(/^(?:https?)?:\/\//)) {
|
|
731
|
+
consola.fail("target must be a domain");
|
|
732
|
+
return;
|
|
733
|
+
}
|
|
730
734
|
const _printUrls = server.printUrls.bind(server);
|
|
731
735
|
let source = `localhost:${config.server.port || 5173}`;
|
|
732
736
|
const url = (_a = server.resolvedUrls) == null ? void 0 : _a.local[0];
|
|
@@ -756,6 +760,10 @@ var unpluginFactory = (options) => ({
|
|
|
756
760
|
consola.fail("please provide target");
|
|
757
761
|
return;
|
|
758
762
|
}
|
|
763
|
+
if (target.match(/^(?:https?)?:\/\//)) {
|
|
764
|
+
consola.fail("target must be a domain");
|
|
765
|
+
return;
|
|
766
|
+
}
|
|
759
767
|
const devServer = {
|
|
760
768
|
host: "localhost",
|
|
761
769
|
port: 8080,
|
|
@@ -806,6 +814,10 @@ var unpluginFactory = (options) => ({
|
|
|
806
814
|
consola.fail("please provide target");
|
|
807
815
|
return;
|
|
808
816
|
}
|
|
817
|
+
if (target.match(/^(?:https?)?:\/\//)) {
|
|
818
|
+
consola.fail("target must be a domain");
|
|
819
|
+
return;
|
|
820
|
+
}
|
|
809
821
|
const devServer = {
|
|
810
822
|
host: "localhost",
|
|
811
823
|
port: 8080,
|
package/dist/rollup.js
CHANGED
package/dist/rspack.cjs
CHANGED
|
@@ -726,6 +726,10 @@ var unpluginFactory = (options) => ({
|
|
|
726
726
|
consola.fail("please provide target");
|
|
727
727
|
return;
|
|
728
728
|
}
|
|
729
|
+
if (target.match(/^(?:https?)?:\/\//)) {
|
|
730
|
+
consola.fail("target must be a domain");
|
|
731
|
+
return;
|
|
732
|
+
}
|
|
729
733
|
const _printUrls = server.printUrls.bind(server);
|
|
730
734
|
let source = `localhost:${config.server.port || 5173}`;
|
|
731
735
|
const url = (_a = server.resolvedUrls) == null ? void 0 : _a.local[0];
|
|
@@ -755,6 +759,10 @@ var unpluginFactory = (options) => ({
|
|
|
755
759
|
consola.fail("please provide target");
|
|
756
760
|
return;
|
|
757
761
|
}
|
|
762
|
+
if (target.match(/^(?:https?)?:\/\//)) {
|
|
763
|
+
consola.fail("target must be a domain");
|
|
764
|
+
return;
|
|
765
|
+
}
|
|
758
766
|
const devServer = {
|
|
759
767
|
host: "localhost",
|
|
760
768
|
port: 8080,
|
|
@@ -805,6 +813,10 @@ var unpluginFactory = (options) => ({
|
|
|
805
813
|
consola.fail("please provide target");
|
|
806
814
|
return;
|
|
807
815
|
}
|
|
816
|
+
if (target.match(/^(?:https?)?:\/\//)) {
|
|
817
|
+
consola.fail("target must be a domain");
|
|
818
|
+
return;
|
|
819
|
+
}
|
|
808
820
|
const devServer = {
|
|
809
821
|
host: "localhost",
|
|
810
822
|
port: 8080,
|
package/dist/rspack.js
CHANGED
package/dist/vite.cjs
CHANGED
|
@@ -727,6 +727,10 @@ var unpluginFactory = (options) => ({
|
|
|
727
727
|
consola.fail("please provide target");
|
|
728
728
|
return;
|
|
729
729
|
}
|
|
730
|
+
if (target.match(/^(?:https?)?:\/\//)) {
|
|
731
|
+
consola.fail("target must be a domain");
|
|
732
|
+
return;
|
|
733
|
+
}
|
|
730
734
|
const _printUrls = server.printUrls.bind(server);
|
|
731
735
|
let source = `localhost:${config.server.port || 5173}`;
|
|
732
736
|
const url = (_a = server.resolvedUrls) == null ? void 0 : _a.local[0];
|
|
@@ -756,6 +760,10 @@ var unpluginFactory = (options) => ({
|
|
|
756
760
|
consola.fail("please provide target");
|
|
757
761
|
return;
|
|
758
762
|
}
|
|
763
|
+
if (target.match(/^(?:https?)?:\/\//)) {
|
|
764
|
+
consola.fail("target must be a domain");
|
|
765
|
+
return;
|
|
766
|
+
}
|
|
759
767
|
const devServer = {
|
|
760
768
|
host: "localhost",
|
|
761
769
|
port: 8080,
|
|
@@ -806,6 +814,10 @@ var unpluginFactory = (options) => ({
|
|
|
806
814
|
consola.fail("please provide target");
|
|
807
815
|
return;
|
|
808
816
|
}
|
|
817
|
+
if (target.match(/^(?:https?)?:\/\//)) {
|
|
818
|
+
consola.fail("target must be a domain");
|
|
819
|
+
return;
|
|
820
|
+
}
|
|
809
821
|
const devServer = {
|
|
810
822
|
host: "localhost",
|
|
811
823
|
port: 8080,
|
package/dist/vite.js
CHANGED
package/dist/webpack.cjs
CHANGED
|
@@ -727,6 +727,10 @@ var unpluginFactory = (options) => ({
|
|
|
727
727
|
consola.fail("please provide target");
|
|
728
728
|
return;
|
|
729
729
|
}
|
|
730
|
+
if (target.match(/^(?:https?)?:\/\//)) {
|
|
731
|
+
consola.fail("target must be a domain");
|
|
732
|
+
return;
|
|
733
|
+
}
|
|
730
734
|
const _printUrls = server.printUrls.bind(server);
|
|
731
735
|
let source = `localhost:${config.server.port || 5173}`;
|
|
732
736
|
const url = (_a = server.resolvedUrls) == null ? void 0 : _a.local[0];
|
|
@@ -756,6 +760,10 @@ var unpluginFactory = (options) => ({
|
|
|
756
760
|
consola.fail("please provide target");
|
|
757
761
|
return;
|
|
758
762
|
}
|
|
763
|
+
if (target.match(/^(?:https?)?:\/\//)) {
|
|
764
|
+
consola.fail("target must be a domain");
|
|
765
|
+
return;
|
|
766
|
+
}
|
|
759
767
|
const devServer = {
|
|
760
768
|
host: "localhost",
|
|
761
769
|
port: 8080,
|
|
@@ -806,6 +814,10 @@ var unpluginFactory = (options) => ({
|
|
|
806
814
|
consola.fail("please provide target");
|
|
807
815
|
return;
|
|
808
816
|
}
|
|
817
|
+
if (target.match(/^(?:https?)?:\/\//)) {
|
|
818
|
+
consola.fail("target must be a domain");
|
|
819
|
+
return;
|
|
820
|
+
}
|
|
809
821
|
const devServer = {
|
|
810
822
|
host: "localhost",
|
|
811
823
|
port: 8080,
|
package/dist/webpack.js
CHANGED
package/package.json
CHANGED
package/src/index.ts
CHANGED
|
@@ -102,6 +102,11 @@ export const unpluginFactory: UnpluginFactory<Options> = options => ({
|
|
|
102
102
|
return
|
|
103
103
|
}
|
|
104
104
|
|
|
105
|
+
if (target.match(/^(?:https?)?:\/\//)) {
|
|
106
|
+
consola.fail('target must be a domain')
|
|
107
|
+
return
|
|
108
|
+
}
|
|
109
|
+
|
|
105
110
|
const _printUrls = server.printUrls.bind(server)
|
|
106
111
|
|
|
107
112
|
let source = `localhost:${config.server.port || 5173}`
|
|
@@ -138,6 +143,11 @@ export const unpluginFactory: UnpluginFactory<Options> = options => ({
|
|
|
138
143
|
return
|
|
139
144
|
}
|
|
140
145
|
|
|
146
|
+
if (target.match(/^(?:https?)?:\/\//)) {
|
|
147
|
+
consola.fail('target must be a domain')
|
|
148
|
+
return
|
|
149
|
+
}
|
|
150
|
+
|
|
141
151
|
const devServer = {
|
|
142
152
|
host: 'localhost',
|
|
143
153
|
port: 8080,
|
|
@@ -200,6 +210,11 @@ export const unpluginFactory: UnpluginFactory<Options> = options => ({
|
|
|
200
210
|
return
|
|
201
211
|
}
|
|
202
212
|
|
|
213
|
+
if (target.match(/^(?:https?)?:\/\//)) {
|
|
214
|
+
consola.fail('target must be a domain')
|
|
215
|
+
return
|
|
216
|
+
}
|
|
217
|
+
|
|
203
218
|
const devServer = {
|
|
204
219
|
host: 'localhost',
|
|
205
220
|
port: 8080,
|
package/src/nuxt.ts
CHANGED
|
@@ -36,6 +36,11 @@ export default defineNuxtModule<ModuleOptions>({
|
|
|
36
36
|
return
|
|
37
37
|
}
|
|
38
38
|
|
|
39
|
+
if (target.match(/^(?:https?)?:\/\//)) {
|
|
40
|
+
consola.fail('target must be a domain')
|
|
41
|
+
return
|
|
42
|
+
}
|
|
43
|
+
|
|
39
44
|
// https://github.com/nuxt/cli/issues/220#issuecomment-1735394141
|
|
40
45
|
_nuxt.hook('listen', (_, listener) => {
|
|
41
46
|
const url = listener.url
|