unplugin-https-reverse-proxy 1.0.0-beta.14 → 1.0.0-beta.16
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-2VGRJ3QS.js +45 -0
- package/dist/chunk-QMYDD3HL.js +651 -0
- package/dist/esbuild.cjs +41 -1667
- package/dist/esbuild.js +2 -2
- package/dist/index.cjs +41 -1667
- package/dist/index.js +2 -2
- package/dist/nuxt.cjs +22 -1657
- package/dist/nuxt.js +3 -3
- package/dist/rollup.cjs +41 -1667
- package/dist/rollup.js +2 -2
- package/dist/rspack.cjs +41 -1667
- package/dist/rspack.js +2 -2
- package/dist/utils.cjs +1 -1
- package/dist/utils.js +1 -1
- package/dist/vite.cjs +41 -1667
- package/dist/vite.js +2 -2
- package/dist/webpack.cjs +41 -1667
- package/dist/webpack.js +2 -2
- package/package.json +4 -3
- package/scripts/postinstall.cjs +1 -0
- package/src/caddy/index.ts +20 -28
- package/dist/chunk-SD5AGUG6.js +0 -2261
- package/dist/chunk-UGWFCSQS.js +0 -80
package/dist/chunk-UGWFCSQS.js
DELETED
|
@@ -1,80 +0,0 @@
|
|
|
1
|
-
var __defProp = Object.defineProperty;
|
|
2
|
-
var __defProps = Object.defineProperties;
|
|
3
|
-
var __getOwnPropDescs = Object.getOwnPropertyDescriptors;
|
|
4
|
-
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
5
|
-
var __getOwnPropSymbols = Object.getOwnPropertySymbols;
|
|
6
|
-
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
7
|
-
var __propIsEnum = Object.prototype.propertyIsEnumerable;
|
|
8
|
-
var __defNormalProp = (obj, key, value) => key in obj ? __defProp(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
|
|
9
|
-
var __spreadValues = (a, b) => {
|
|
10
|
-
for (var prop in b || (b = {}))
|
|
11
|
-
if (__hasOwnProp.call(b, prop))
|
|
12
|
-
__defNormalProp(a, prop, b[prop]);
|
|
13
|
-
if (__getOwnPropSymbols)
|
|
14
|
-
for (var prop of __getOwnPropSymbols(b)) {
|
|
15
|
-
if (__propIsEnum.call(b, prop))
|
|
16
|
-
__defNormalProp(a, prop, b[prop]);
|
|
17
|
-
}
|
|
18
|
-
return a;
|
|
19
|
-
};
|
|
20
|
-
var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
|
|
21
|
-
var __require = /* @__PURE__ */ ((x) => typeof require !== "undefined" ? require : typeof Proxy !== "undefined" ? new Proxy(x, {
|
|
22
|
-
get: (a, b) => (typeof require !== "undefined" ? require : a)[b]
|
|
23
|
-
}) : x)(function(x) {
|
|
24
|
-
if (typeof require !== "undefined")
|
|
25
|
-
return require.apply(this, arguments);
|
|
26
|
-
throw Error('Dynamic require of "' + x + '" is not supported');
|
|
27
|
-
});
|
|
28
|
-
var __commonJS = (cb, mod) => function __require2() {
|
|
29
|
-
return mod || (0, cb[__getOwnPropNames(cb)[0]])((mod = { exports: {} }).exports, mod), mod.exports;
|
|
30
|
-
};
|
|
31
|
-
|
|
32
|
-
// src/utils.ts
|
|
33
|
-
import process from "process";
|
|
34
|
-
import path from "path";
|
|
35
|
-
import { chmod, readdir, stat } from "fs/promises";
|
|
36
|
-
import { execSync } from "child_process";
|
|
37
|
-
import { createConsola } from "consola";
|
|
38
|
-
var consola = createConsola({
|
|
39
|
-
level: 3
|
|
40
|
-
}).withTag("reverse-proxy");
|
|
41
|
-
async function chmodRecursive(_path, mode) {
|
|
42
|
-
await chmod(_path, mode);
|
|
43
|
-
if ((await stat(_path)).isDirectory()) {
|
|
44
|
-
const children = await readdir(_path);
|
|
45
|
-
for (const child of children)
|
|
46
|
-
await chmodRecursive(path.join(_path, child), mode);
|
|
47
|
-
}
|
|
48
|
-
}
|
|
49
|
-
function once(fn) {
|
|
50
|
-
let called = false;
|
|
51
|
-
return (...args) => {
|
|
52
|
-
if (called)
|
|
53
|
-
return;
|
|
54
|
-
called = true;
|
|
55
|
-
return fn(...args);
|
|
56
|
-
};
|
|
57
|
-
}
|
|
58
|
-
function isAdmin() {
|
|
59
|
-
if (process.platform === "win32") {
|
|
60
|
-
try {
|
|
61
|
-
execSync("net session", { stdio: "ignore" });
|
|
62
|
-
return true;
|
|
63
|
-
} catch (e) {
|
|
64
|
-
return false;
|
|
65
|
-
}
|
|
66
|
-
} else {
|
|
67
|
-
return process.getuid && process.getuid() === 0;
|
|
68
|
-
}
|
|
69
|
-
}
|
|
70
|
-
|
|
71
|
-
export {
|
|
72
|
-
__spreadValues,
|
|
73
|
-
__spreadProps,
|
|
74
|
-
__require,
|
|
75
|
-
__commonJS,
|
|
76
|
-
consola,
|
|
77
|
-
chmodRecursive,
|
|
78
|
-
once,
|
|
79
|
-
isAdmin
|
|
80
|
-
};
|