unplugin-https-reverse-proxy 0.0.13 → 0.0.14

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/README.md CHANGED
@@ -57,6 +57,7 @@ module.exports = {
57
57
  },
58
58
  },
59
59
  setupExitSignals: true,
60
+ allowedHosts: 'all',
60
61
  },
61
62
  plugins: [
62
63
  require('unplugin-https-reverse-proxy/webpack')({ /* options */ })
@@ -98,6 +99,7 @@ module.exports = {
98
99
  },
99
100
  },
100
101
  setupExitSignals: true,
102
+ allowedHosts: 'all',
101
103
  },
102
104
  configureWebpack: {
103
105
  plugins: [
@@ -125,4 +127,4 @@ If your broswer shows a not trusted certificate warning, please check the keycha
125
127
 
126
128
  ![keychain](https://github.com/zcf0508/unplugin-https-reverse-proxy/blob/main/images/Snipaste_2023-11-16_16-59-55.png)
127
129
 
128
- More info, you can check [caddy about CA Root](https://caddyserver.com/docs/automatic-https#ca-root).
130
+ More info, you can check [caddy about CA Root](https://caddyserver.com/docs/automatic-https#ca-root).
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  unpluginFactory
3
- } from "./chunk-DH6VMKTP.js";
3
+ } from "./chunk-IOQLAF3J.js";
4
4
 
5
5
  // src/webpack.ts
6
6
  import { createWebpackPlugin } from "unplugin";
@@ -453,9 +453,6 @@ var unpluginFactory = (options) => ({
453
453
  consola.error(e);
454
454
  }
455
455
  };
456
- },
457
- async buildEnd() {
458
- _stop && await _stop();
459
456
  }
460
457
  },
461
458
  webpack(compiler) {
@@ -470,13 +467,6 @@ var unpluginFactory = (options) => ({
470
467
  return;
471
468
  }
472
469
  try {
473
- registerExit(async () => {
474
- try {
475
- _stop && await _stop();
476
- } catch (e) {
477
- consola.error(e);
478
- }
479
- });
480
470
  const devServer = __spreadValues(__spreadValues({
481
471
  host: "127.0.0.1",
482
472
  port: 8080
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  unpluginFactory
3
- } from "./chunk-DH6VMKTP.js";
3
+ } from "./chunk-IOQLAF3J.js";
4
4
 
5
5
  // src/vite.ts
6
6
  import { createVitePlugin } from "unplugin";
package/dist/esbuild.cjs CHANGED
@@ -513,9 +513,6 @@ var unpluginFactory = (options) => ({
513
513
  consola.error(e);
514
514
  }
515
515
  };
516
- },
517
- async buildEnd() {
518
- _stop && await _stop();
519
516
  }
520
517
  },
521
518
  webpack(compiler) {
@@ -530,13 +527,6 @@ var unpluginFactory = (options) => ({
530
527
  return;
531
528
  }
532
529
  try {
533
- registerExit(async () => {
534
- try {
535
- _stop && await _stop();
536
- } catch (e) {
537
- consola.error(e);
538
- }
539
- });
540
530
  const devServer = __spreadValues(__spreadValues({
541
531
  host: "127.0.0.1",
542
532
  port: 8080
package/dist/esbuild.js CHANGED
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  unpluginFactory
3
- } from "./chunk-DH6VMKTP.js";
3
+ } from "./chunk-IOQLAF3J.js";
4
4
  import "./chunk-CQC5SSJR.js";
5
5
 
6
6
  // src/esbuild.ts
package/dist/index.cjs CHANGED
@@ -512,9 +512,6 @@ var unpluginFactory = (options) => ({
512
512
  consola.error(e);
513
513
  }
514
514
  };
515
- },
516
- async buildEnd() {
517
- _stop && await _stop();
518
515
  }
519
516
  },
520
517
  webpack(compiler) {
@@ -529,13 +526,6 @@ var unpluginFactory = (options) => ({
529
526
  return;
530
527
  }
531
528
  try {
532
- registerExit(async () => {
533
- try {
534
- _stop && await _stop();
535
- } catch (e) {
536
- consola.error(e);
537
- }
538
- });
539
529
  const devServer = __spreadValues(__spreadValues({
540
530
  host: "127.0.0.1",
541
531
  port: 8080
package/dist/index.js CHANGED
@@ -2,7 +2,7 @@ import {
2
2
  src_default,
3
3
  unplugin,
4
4
  unpluginFactory
5
- } from "./chunk-DH6VMKTP.js";
5
+ } from "./chunk-IOQLAF3J.js";
6
6
  import "./chunk-CQC5SSJR.js";
7
7
  export {
8
8
  src_default as default,
package/dist/nuxt.cjs CHANGED
@@ -516,9 +516,6 @@ var unpluginFactory = (options) => ({
516
516
  consola.error(e);
517
517
  }
518
518
  };
519
- },
520
- async buildEnd() {
521
- _stop && await _stop();
522
519
  }
523
520
  },
524
521
  webpack(compiler) {
@@ -533,13 +530,6 @@ var unpluginFactory = (options) => ({
533
530
  return;
534
531
  }
535
532
  try {
536
- registerExit(async () => {
537
- try {
538
- _stop && await _stop();
539
- } catch (e) {
540
- consola.error(e);
541
- }
542
- });
543
533
  const devServer = __spreadValues(__spreadValues({
544
534
  host: "127.0.0.1",
545
535
  port: 8080
package/dist/nuxt.d.cts CHANGED
@@ -5,4 +5,4 @@ interface ModuleOptions extends Options {
5
5
  }
6
6
  declare const _default: _nuxt_schema.NuxtModule<ModuleOptions>;
7
7
 
8
- export { ModuleOptions, _default as default };
8
+ export { type ModuleOptions, _default as default };
package/dist/nuxt.d.ts CHANGED
@@ -5,4 +5,4 @@ interface ModuleOptions extends Options {
5
5
  }
6
6
  declare const _default: _nuxt_schema.NuxtModule<ModuleOptions>;
7
7
 
8
- export { ModuleOptions, _default as default };
8
+ export { type ModuleOptions, _default as default };
package/dist/nuxt.js CHANGED
@@ -1,10 +1,10 @@
1
1
  import {
2
2
  vite_default
3
- } from "./chunk-6KXUNICB.js";
3
+ } from "./chunk-YJCVUFTG.js";
4
4
  import {
5
5
  webpack_default
6
- } from "./chunk-RTEXFW4L.js";
7
- import "./chunk-DH6VMKTP.js";
6
+ } from "./chunk-5OTBSQ6U.js";
7
+ import "./chunk-IOQLAF3J.js";
8
8
  import "./chunk-CQC5SSJR.js";
9
9
 
10
10
  // src/nuxt.ts
package/dist/rollup.cjs CHANGED
@@ -513,9 +513,6 @@ var unpluginFactory = (options) => ({
513
513
  consola.error(e);
514
514
  }
515
515
  };
516
- },
517
- async buildEnd() {
518
- _stop && await _stop();
519
516
  }
520
517
  },
521
518
  webpack(compiler) {
@@ -530,13 +527,6 @@ var unpluginFactory = (options) => ({
530
527
  return;
531
528
  }
532
529
  try {
533
- registerExit(async () => {
534
- try {
535
- _stop && await _stop();
536
- } catch (e) {
537
- consola.error(e);
538
- }
539
- });
540
530
  const devServer = __spreadValues(__spreadValues({
541
531
  host: "127.0.0.1",
542
532
  port: 8080
package/dist/rollup.d.cts CHANGED
@@ -1,6 +1,6 @@
1
1
  import * as rollup from 'rollup';
2
2
  import { Options } from './types.cjs';
3
3
 
4
- declare const _default: (options: Options) => rollup.Plugin | rollup.Plugin[];
4
+ declare const _default: (options: Options) => rollup.Plugin<any> | rollup.Plugin<any>[];
5
5
 
6
6
  export { _default as default };
package/dist/rollup.d.ts CHANGED
@@ -1,6 +1,6 @@
1
1
  import * as rollup from 'rollup';
2
2
  import { Options } from './types.js';
3
3
 
4
- declare const _default: (options: Options) => rollup.Plugin | rollup.Plugin[];
4
+ declare const _default: (options: Options) => rollup.Plugin<any> | rollup.Plugin<any>[];
5
5
 
6
6
  export { _default as default };
package/dist/rollup.js CHANGED
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  unpluginFactory
3
- } from "./chunk-DH6VMKTP.js";
3
+ } from "./chunk-IOQLAF3J.js";
4
4
  import "./chunk-CQC5SSJR.js";
5
5
 
6
6
  // src/rollup.ts
package/dist/types.d.cts CHANGED
@@ -4,4 +4,4 @@ interface Options {
4
4
  showCaddyLog?: boolean;
5
5
  }
6
6
 
7
- export { Options };
7
+ export type { Options };
package/dist/types.d.ts CHANGED
@@ -4,4 +4,4 @@ interface Options {
4
4
  showCaddyLog?: boolean;
5
5
  }
6
6
 
7
- export { Options };
7
+ export type { Options };
package/dist/vite.cjs CHANGED
@@ -513,9 +513,6 @@ var unpluginFactory = (options) => ({
513
513
  consola.error(e);
514
514
  }
515
515
  };
516
- },
517
- async buildEnd() {
518
- _stop && await _stop();
519
516
  }
520
517
  },
521
518
  webpack(compiler) {
@@ -530,13 +527,6 @@ var unpluginFactory = (options) => ({
530
527
  return;
531
528
  }
532
529
  try {
533
- registerExit(async () => {
534
- try {
535
- _stop && await _stop();
536
- } catch (e) {
537
- consola.error(e);
538
- }
539
- });
540
530
  const devServer = __spreadValues(__spreadValues({
541
531
  host: "127.0.0.1",
542
532
  port: 8080
package/dist/vite.js CHANGED
@@ -1,7 +1,7 @@
1
1
  import {
2
2
  vite_default
3
- } from "./chunk-6KXUNICB.js";
4
- import "./chunk-DH6VMKTP.js";
3
+ } from "./chunk-YJCVUFTG.js";
4
+ import "./chunk-IOQLAF3J.js";
5
5
  import "./chunk-CQC5SSJR.js";
6
6
  export {
7
7
  vite_default as default
package/dist/webpack.cjs CHANGED
@@ -513,9 +513,6 @@ var unpluginFactory = (options) => ({
513
513
  consola.error(e);
514
514
  }
515
515
  };
516
- },
517
- async buildEnd() {
518
- _stop && await _stop();
519
516
  }
520
517
  },
521
518
  webpack(compiler) {
@@ -530,13 +527,6 @@ var unpluginFactory = (options) => ({
530
527
  return;
531
528
  }
532
529
  try {
533
- registerExit(async () => {
534
- try {
535
- _stop && await _stop();
536
- } catch (e) {
537
- consola.error(e);
538
- }
539
- });
540
530
  const devServer = __spreadValues(__spreadValues({
541
531
  host: "127.0.0.1",
542
532
  port: 8080
package/dist/webpack.js CHANGED
@@ -1,7 +1,7 @@
1
1
  import {
2
2
  webpack_default
3
- } from "./chunk-RTEXFW4L.js";
4
- import "./chunk-DH6VMKTP.js";
3
+ } from "./chunk-5OTBSQ6U.js";
4
+ import "./chunk-IOQLAF3J.js";
5
5
  import "./chunk-CQC5SSJR.js";
6
6
  export {
7
7
  webpack_default as default
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "unplugin-https-reverse-proxy",
3
3
  "type": "module",
4
- "version": "0.0.13",
4
+ "version": "0.0.14",
5
5
  "packageManager": "pnpm@8.6.12",
6
6
  "description": "",
7
7
  "license": "MIT",
@@ -120,6 +120,7 @@
120
120
  "@nuxt/schema": "^3.6.5",
121
121
  "@types/kill-port": "^2.0.3",
122
122
  "@types/node": "^20.5.2",
123
+ "@vue/cli": "^5.0.8",
123
124
  "bumpp": "^9.2.0",
124
125
  "chalk": "^5.3.0",
125
126
  "eslint": "^8.47.0",
@@ -139,7 +140,8 @@
139
140
  "dev": "tsup --watch src",
140
141
  "build:fix": "esno scripts/postbuild.ts",
141
142
  "lint": "eslint .",
142
- "play": "npm -C playground run dev",
143
+ "play": "npm -C examples/vite run dev",
144
+ "play:vuecli": "npm -C examples/vuecli run serve",
143
145
  "release": "bumpp",
144
146
  "start": "esno src/index.ts",
145
147
  "test": "vitest"
package/src/index.ts CHANGED
@@ -109,10 +109,6 @@ export const unpluginFactory: UnpluginFactory<Options> = options => ({
109
109
  }
110
110
  }
111
111
  },
112
- async buildEnd() {
113
- // https://github.com/vitejs/vite/commit/4338d7d6f32c8e0e67ff58f0cb8c1a9120294756#diff-c0b6eb176448702b6325d2e1b2567c5ccf969f03eef1242950e0bfb18877022fR580
114
- _stop && await _stop()
115
- },
116
112
  },
117
113
  webpack(compiler) {
118
114
  const {
@@ -127,14 +123,14 @@ export const unpluginFactory: UnpluginFactory<Options> = options => ({
127
123
  }
128
124
 
129
125
  try {
130
- registerExit(async () => {
131
- try {
132
- _stop && await _stop()
133
- }
134
- catch (e) {
135
- consola.error(e)
136
- }
137
- })
126
+ // registerExit(async () => {
127
+ // try {
128
+ // _stop && await _stop()
129
+ // }
130
+ // catch (e) {
131
+ // consola.error(e)
132
+ // }
133
+ // })
138
134
 
139
135
  const devServer = {
140
136
  host: '127.0.0.1',