@powerlines/plugin-automd 0.1.237 → 0.1.239
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-BrXtsOCC.cjs +41 -0
- package/dist/{_virtual/rolldown_runtime.cjs → chunk-CS8OKu3y.mjs} +5 -2
- package/dist/dist-8g8frrZv.cjs +246 -0
- package/dist/dist-BavrV299.cjs +682 -0
- package/dist/dist-DVv98dZY.cjs +87 -0
- package/dist/dist-Jfd0GR_C.mjs +223 -0
- package/dist/dist-Jfd0GR_C.mjs.map +1 -0
- package/dist/dist-PRh64A_O.mjs +70 -0
- package/dist/dist-PRh64A_O.mjs.map +1 -0
- package/dist/dist-PXnBmevt.mjs +681 -0
- package/dist/dist-PXnBmevt.mjs.map +1 -0
- package/dist/index-B8OHl-c_.d.mts +1 -0
- package/dist/index-CmCelmEL.d.cts +1 -0
- package/dist/index.cjs +9607 -15
- package/dist/index.d.cts +5 -4
- package/dist/index.d.cts.map +1 -0
- package/dist/index.d.mts +5 -4
- package/dist/index.d.mts.map +1 -0
- package/dist/index.mjs +9600 -12
- package/dist/index.mjs.map +1 -0
- package/dist/loader-BRhKFmUn.mjs +58373 -0
- package/dist/loader-BRhKFmUn.mjs.map +1 -0
- package/dist/loader-DNEbMIIe.cjs +58372 -0
- package/dist/multipart-parser-C_EjwsED.cjs +178 -0
- package/dist/multipart-parser-CglOohoL.mjs +179 -0
- package/dist/multipart-parser-CglOohoL.mjs.map +1 -0
- package/dist/node-CsMhpAoX.cjs +269 -0
- package/dist/node-DapIDpAC.cjs +4024 -0
- package/dist/node-Du1vi9nA.mjs +3974 -0
- package/dist/node-Du1vi9nA.mjs.map +1 -0
- package/dist/node-d_BpkPSt.mjs +267 -0
- package/dist/node-d_BpkPSt.mjs.map +1 -0
- package/dist/plugin-BVD0UMjp.d.cts +52 -0
- package/dist/plugin-BVD0UMjp.d.cts.map +1 -0
- package/dist/plugin-C6jB5e_j.d.mts +52 -0
- package/dist/plugin-C6jB5e_j.d.mts.map +1 -0
- package/dist/plugin-Ckx8qAq8.cjs +0 -0
- package/dist/plugin-jZ9N9Mz-.mjs +1 -0
- package/dist/toc-BN2Ji9Yo.d.mts +35 -0
- package/dist/toc-BN2Ji9Yo.d.mts.map +1 -0
- package/dist/toc-BQgoCyR1.cjs +0 -0
- package/dist/toc-BrayIFG6.d.cts +35 -0
- package/dist/toc-BrayIFG6.d.cts.map +1 -0
- package/dist/toc-CBjybXug.mjs +1 -0
- package/dist/types/index.cjs +3 -0
- package/dist/types/index.d.cts +3 -2
- package/dist/types/index.d.mts +3 -2
- package/dist/types/index.mjs +4 -0
- package/dist/types/plugin.cjs +1 -0
- package/dist/types/plugin.d.cts +2 -50
- package/dist/types/plugin.d.mts +2 -50
- package/dist/types/plugin.mjs +2 -0
- package/dist/types/toc.cjs +1 -0
- package/dist/types/toc.d.cts +1 -33
- package/dist/types/toc.d.mts +1 -33
- package/dist/types/toc.mjs +2 -0
- package/dist/types--fVOUYBq.mjs +1 -0
- package/dist/types-D208vOSb.cjs +0 -0
- package/package.json +4 -4
|
@@ -0,0 +1,41 @@
|
|
|
1
|
+
//#region rolldown:runtime
|
|
2
|
+
var __create = Object.create;
|
|
3
|
+
var __defProp = Object.defineProperty;
|
|
4
|
+
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
5
|
+
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
6
|
+
var __getProtoOf = Object.getPrototypeOf;
|
|
7
|
+
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
8
|
+
var __commonJSMin = (cb, mod) => () => (mod || cb((mod = { exports: {} }).exports, mod), mod.exports);
|
|
9
|
+
var __copyProps = (to, from, except, desc) => {
|
|
10
|
+
if (from && typeof from === "object" || typeof from === "function") {
|
|
11
|
+
for (var keys = __getOwnPropNames(from), i = 0, n = keys.length, key; i < n; i++) {
|
|
12
|
+
key = keys[i];
|
|
13
|
+
if (!__hasOwnProp.call(to, key) && key !== except) {
|
|
14
|
+
__defProp(to, key, {
|
|
15
|
+
get: ((k) => from[k]).bind(null, key),
|
|
16
|
+
enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable
|
|
17
|
+
});
|
|
18
|
+
}
|
|
19
|
+
}
|
|
20
|
+
}
|
|
21
|
+
return to;
|
|
22
|
+
};
|
|
23
|
+
var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", {
|
|
24
|
+
value: mod,
|
|
25
|
+
enumerable: true
|
|
26
|
+
}) : target, mod));
|
|
27
|
+
|
|
28
|
+
//#endregion
|
|
29
|
+
|
|
30
|
+
Object.defineProperty(exports, '__commonJSMin', {
|
|
31
|
+
enumerable: true,
|
|
32
|
+
get: function () {
|
|
33
|
+
return __commonJSMin;
|
|
34
|
+
}
|
|
35
|
+
});
|
|
36
|
+
Object.defineProperty(exports, '__toESM', {
|
|
37
|
+
enumerable: true,
|
|
38
|
+
get: function () {
|
|
39
|
+
return __toESM;
|
|
40
|
+
}
|
|
41
|
+
});
|
|
@@ -1,3 +1,5 @@
|
|
|
1
|
+
import { createRequire } from "node:module";
|
|
2
|
+
|
|
1
3
|
//#region rolldown:runtime
|
|
2
4
|
var __create = Object.create;
|
|
3
5
|
var __defProp = Object.defineProperty;
|
|
@@ -5,6 +7,7 @@ var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
|
5
7
|
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
6
8
|
var __getProtoOf = Object.getPrototypeOf;
|
|
7
9
|
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
10
|
+
var __commonJSMin = (cb, mod) => () => (mod || cb((mod = { exports: {} }).exports, mod), mod.exports);
|
|
8
11
|
var __copyProps = (to, from, except, desc) => {
|
|
9
12
|
if (from && typeof from === "object" || typeof from === "function") {
|
|
10
13
|
for (var keys = __getOwnPropNames(from), i = 0, n = keys.length, key; i < n; i++) {
|
|
@@ -23,7 +26,7 @@ var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__ge
|
|
|
23
26
|
value: mod,
|
|
24
27
|
enumerable: true
|
|
25
28
|
}) : target, mod));
|
|
29
|
+
var __require = /* @__PURE__ */ createRequire(import.meta.url);
|
|
26
30
|
|
|
27
31
|
//#endregion
|
|
28
|
-
|
|
29
|
-
exports.__toESM = __toESM;
|
|
32
|
+
export { __require as n, __toESM as r, __commonJSMin as t };
|
|
@@ -0,0 +1,246 @@
|
|
|
1
|
+
|
|
2
|
+
//#region ../../node_modules/.pnpm/ufo@1.6.3/node_modules/ufo/dist/index.mjs
|
|
3
|
+
const r = String.fromCharCode;
|
|
4
|
+
const HASH_RE = /#/g;
|
|
5
|
+
const AMPERSAND_RE = /&/g;
|
|
6
|
+
const SLASH_RE = /\//g;
|
|
7
|
+
const EQUAL_RE = /=/g;
|
|
8
|
+
const PLUS_RE = /\+/g;
|
|
9
|
+
const ENC_CARET_RE = /%5e/gi;
|
|
10
|
+
const ENC_BACKTICK_RE = /%60/gi;
|
|
11
|
+
const ENC_PIPE_RE = /%7c/gi;
|
|
12
|
+
const ENC_SPACE_RE = /%20/gi;
|
|
13
|
+
function encode(text) {
|
|
14
|
+
return encodeURI("" + text).replace(ENC_PIPE_RE, "|");
|
|
15
|
+
}
|
|
16
|
+
function encodeQueryValue(input) {
|
|
17
|
+
return encode(typeof input === "string" ? input : JSON.stringify(input)).replace(PLUS_RE, "%2B").replace(ENC_SPACE_RE, "+").replace(HASH_RE, "%23").replace(AMPERSAND_RE, "%26").replace(ENC_BACKTICK_RE, "`").replace(ENC_CARET_RE, "^").replace(SLASH_RE, "%2F");
|
|
18
|
+
}
|
|
19
|
+
function encodeQueryKey(text) {
|
|
20
|
+
return encodeQueryValue(text).replace(EQUAL_RE, "%3D");
|
|
21
|
+
}
|
|
22
|
+
function decode(text = "") {
|
|
23
|
+
try {
|
|
24
|
+
return decodeURIComponent("" + text);
|
|
25
|
+
} catch {
|
|
26
|
+
return "" + text;
|
|
27
|
+
}
|
|
28
|
+
}
|
|
29
|
+
function decodeQueryKey(text) {
|
|
30
|
+
return decode(text.replace(PLUS_RE, " "));
|
|
31
|
+
}
|
|
32
|
+
function decodeQueryValue(text) {
|
|
33
|
+
return decode(text.replace(PLUS_RE, " "));
|
|
34
|
+
}
|
|
35
|
+
function parseQuery(parametersString = "") {
|
|
36
|
+
const object = /* @__PURE__ */ Object.create(null);
|
|
37
|
+
if (parametersString[0] === "?") parametersString = parametersString.slice(1);
|
|
38
|
+
for (const parameter of parametersString.split("&")) {
|
|
39
|
+
const s = parameter.match(/([^=]+)=?(.*)/) || [];
|
|
40
|
+
if (s.length < 2) continue;
|
|
41
|
+
const key = decodeQueryKey(s[1]);
|
|
42
|
+
if (key === "__proto__" || key === "constructor") continue;
|
|
43
|
+
const value = decodeQueryValue(s[2] || "");
|
|
44
|
+
if (object[key] === void 0) object[key] = value;
|
|
45
|
+
else if (Array.isArray(object[key])) object[key].push(value);
|
|
46
|
+
else object[key] = [object[key], value];
|
|
47
|
+
}
|
|
48
|
+
return object;
|
|
49
|
+
}
|
|
50
|
+
function encodeQueryItem(key, value) {
|
|
51
|
+
if (typeof value === "number" || typeof value === "boolean") value = String(value);
|
|
52
|
+
if (!value) return encodeQueryKey(key);
|
|
53
|
+
if (Array.isArray(value)) return value.map((_value) => `${encodeQueryKey(key)}=${encodeQueryValue(_value)}`).join("&");
|
|
54
|
+
return `${encodeQueryKey(key)}=${encodeQueryValue(value)}`;
|
|
55
|
+
}
|
|
56
|
+
function stringifyQuery(query) {
|
|
57
|
+
return Object.keys(query).filter((k) => query[k] !== void 0).map((k) => encodeQueryItem(k, query[k])).filter(Boolean).join("&");
|
|
58
|
+
}
|
|
59
|
+
const PROTOCOL_STRICT_REGEX = /^[\s\w\0+.-]{2,}:([/\\]{1,2})/;
|
|
60
|
+
const PROTOCOL_REGEX = /^[\s\w\0+.-]{2,}:([/\\]{2})?/;
|
|
61
|
+
const PROTOCOL_RELATIVE_REGEX = /^([/\\]\s*){2,}[^/\\]/;
|
|
62
|
+
const TRAILING_SLASH_RE = /\/$|\/\?|\/#/;
|
|
63
|
+
const JOIN_LEADING_SLASH_RE = /^\.?\//;
|
|
64
|
+
function hasProtocol(inputString, opts = {}) {
|
|
65
|
+
if (typeof opts === "boolean") opts = { acceptRelative: opts };
|
|
66
|
+
if (opts.strict) return PROTOCOL_STRICT_REGEX.test(inputString);
|
|
67
|
+
return PROTOCOL_REGEX.test(inputString) || (opts.acceptRelative ? PROTOCOL_RELATIVE_REGEX.test(inputString) : false);
|
|
68
|
+
}
|
|
69
|
+
function hasTrailingSlash(input = "", respectQueryAndFragment) {
|
|
70
|
+
if (!respectQueryAndFragment) return input.endsWith("/");
|
|
71
|
+
return TRAILING_SLASH_RE.test(input);
|
|
72
|
+
}
|
|
73
|
+
function withoutTrailingSlash(input = "", respectQueryAndFragment) {
|
|
74
|
+
if (!respectQueryAndFragment) return (hasTrailingSlash(input) ? input.slice(0, -1) : input) || "/";
|
|
75
|
+
if (!hasTrailingSlash(input, true)) return input || "/";
|
|
76
|
+
let path = input;
|
|
77
|
+
let fragment = "";
|
|
78
|
+
const fragmentIndex = input.indexOf("#");
|
|
79
|
+
if (fragmentIndex !== -1) {
|
|
80
|
+
path = input.slice(0, fragmentIndex);
|
|
81
|
+
fragment = input.slice(fragmentIndex);
|
|
82
|
+
}
|
|
83
|
+
const [s0, ...s] = path.split("?");
|
|
84
|
+
return ((s0.endsWith("/") ? s0.slice(0, -1) : s0) || "/") + (s.length > 0 ? `?${s.join("?")}` : "") + fragment;
|
|
85
|
+
}
|
|
86
|
+
function withTrailingSlash(input = "", respectQueryAndFragment) {
|
|
87
|
+
if (!respectQueryAndFragment) return input.endsWith("/") ? input : input + "/";
|
|
88
|
+
if (hasTrailingSlash(input, true)) return input || "/";
|
|
89
|
+
let path = input;
|
|
90
|
+
let fragment = "";
|
|
91
|
+
const fragmentIndex = input.indexOf("#");
|
|
92
|
+
if (fragmentIndex !== -1) {
|
|
93
|
+
path = input.slice(0, fragmentIndex);
|
|
94
|
+
fragment = input.slice(fragmentIndex);
|
|
95
|
+
if (!path) return fragment;
|
|
96
|
+
}
|
|
97
|
+
const [s0, ...s] = path.split("?");
|
|
98
|
+
return s0 + "/" + (s.length > 0 ? `?${s.join("?")}` : "") + fragment;
|
|
99
|
+
}
|
|
100
|
+
function withBase(input, base) {
|
|
101
|
+
if (isEmptyURL(base) || hasProtocol(input)) return input;
|
|
102
|
+
const _base = withoutTrailingSlash(base);
|
|
103
|
+
if (input.startsWith(_base)) {
|
|
104
|
+
const nextChar = input[_base.length];
|
|
105
|
+
if (!nextChar || nextChar === "/" || nextChar === "?") return input;
|
|
106
|
+
}
|
|
107
|
+
return joinURL(_base, input);
|
|
108
|
+
}
|
|
109
|
+
function withQuery(input, query) {
|
|
110
|
+
const parsed = parseURL(input);
|
|
111
|
+
parsed.search = stringifyQuery({
|
|
112
|
+
...parseQuery(parsed.search),
|
|
113
|
+
...query
|
|
114
|
+
});
|
|
115
|
+
return stringifyParsedURL(parsed);
|
|
116
|
+
}
|
|
117
|
+
function isEmptyURL(url) {
|
|
118
|
+
return !url || url === "/";
|
|
119
|
+
}
|
|
120
|
+
function isNonEmptyURL(url) {
|
|
121
|
+
return url && url !== "/";
|
|
122
|
+
}
|
|
123
|
+
function joinURL(base, ...input) {
|
|
124
|
+
let url = base || "";
|
|
125
|
+
for (const segment of input.filter((url2) => isNonEmptyURL(url2))) if (url) {
|
|
126
|
+
const _segment = segment.replace(JOIN_LEADING_SLASH_RE, "");
|
|
127
|
+
url = withTrailingSlash(url) + _segment;
|
|
128
|
+
} else url = segment;
|
|
129
|
+
return url;
|
|
130
|
+
}
|
|
131
|
+
const protocolRelative = Symbol.for("ufo:protocolRelative");
|
|
132
|
+
function parseURL(input = "", defaultProto) {
|
|
133
|
+
const _specialProtoMatch = input.match(/^[\s\0]*(blob:|data:|javascript:|vbscript:)(.*)/i);
|
|
134
|
+
if (_specialProtoMatch) {
|
|
135
|
+
const [, _proto, _pathname = ""] = _specialProtoMatch;
|
|
136
|
+
return {
|
|
137
|
+
protocol: _proto.toLowerCase(),
|
|
138
|
+
pathname: _pathname,
|
|
139
|
+
href: _proto + _pathname,
|
|
140
|
+
auth: "",
|
|
141
|
+
host: "",
|
|
142
|
+
search: "",
|
|
143
|
+
hash: ""
|
|
144
|
+
};
|
|
145
|
+
}
|
|
146
|
+
if (!hasProtocol(input, { acceptRelative: true })) return defaultProto ? parseURL(defaultProto + input) : parsePath(input);
|
|
147
|
+
const [, protocol = "", auth, hostAndPath = ""] = input.replace(/\\/g, "/").match(/^[\s\0]*([\w+.-]{2,}:)?\/\/([^/@]+@)?(.*)/) || [];
|
|
148
|
+
let [, host = "", path = ""] = hostAndPath.match(/([^#/?]*)(.*)?/) || [];
|
|
149
|
+
if (protocol === "file:") path = path.replace(/\/(?=[A-Za-z]:)/, "");
|
|
150
|
+
const { pathname, search, hash } = parsePath(path);
|
|
151
|
+
return {
|
|
152
|
+
protocol: protocol.toLowerCase(),
|
|
153
|
+
auth: auth ? auth.slice(0, Math.max(0, auth.length - 1)) : "",
|
|
154
|
+
host,
|
|
155
|
+
pathname,
|
|
156
|
+
search,
|
|
157
|
+
hash,
|
|
158
|
+
[protocolRelative]: !protocol
|
|
159
|
+
};
|
|
160
|
+
}
|
|
161
|
+
function parsePath(input = "") {
|
|
162
|
+
const [pathname = "", search = "", hash = ""] = (input.match(/([^#?]*)(\?[^#]*)?(#.*)?/) || []).splice(1);
|
|
163
|
+
return {
|
|
164
|
+
pathname,
|
|
165
|
+
search,
|
|
166
|
+
hash
|
|
167
|
+
};
|
|
168
|
+
}
|
|
169
|
+
function stringifyParsedURL(parsed) {
|
|
170
|
+
const pathname = parsed.pathname || "";
|
|
171
|
+
const search = parsed.search ? (parsed.search.startsWith("?") ? "" : "?") + parsed.search : "";
|
|
172
|
+
const hash = parsed.hash || "";
|
|
173
|
+
const auth = parsed.auth ? parsed.auth + "@" : "";
|
|
174
|
+
const host = parsed.host || "";
|
|
175
|
+
return (parsed.protocol || parsed[protocolRelative] ? (parsed.protocol || "") + "//" : "") + auth + host + pathname + search + hash;
|
|
176
|
+
}
|
|
177
|
+
|
|
178
|
+
//#endregion
|
|
179
|
+
//#region ../../node_modules/.pnpm/destr@2.0.5/node_modules/destr/dist/index.mjs
|
|
180
|
+
const suspectProtoRx = /"(?:_|\\u0{2}5[Ff]){2}(?:p|\\u0{2}70)(?:r|\\u0{2}72)(?:o|\\u0{2}6[Ff])(?:t|\\u0{2}74)(?:o|\\u0{2}6[Ff])(?:_|\\u0{2}5[Ff]){2}"\s*:/;
|
|
181
|
+
const suspectConstructorRx = /"(?:c|\\u0063)(?:o|\\u006[Ff])(?:n|\\u006[Ee])(?:s|\\u0073)(?:t|\\u0074)(?:r|\\u0072)(?:u|\\u0075)(?:c|\\u0063)(?:t|\\u0074)(?:o|\\u006[Ff])(?:r|\\u0072)"\s*:/;
|
|
182
|
+
const JsonSigRx = /^\s*["[{]|^\s*-?\d{1,16}(\.\d{1,17})?([Ee][+-]?\d+)?\s*$/;
|
|
183
|
+
function jsonParseTransform(key, value) {
|
|
184
|
+
if (key === "__proto__" || key === "constructor" && value && typeof value === "object" && "prototype" in value) {
|
|
185
|
+
warnKeyDropped(key);
|
|
186
|
+
return;
|
|
187
|
+
}
|
|
188
|
+
return value;
|
|
189
|
+
}
|
|
190
|
+
function warnKeyDropped(key) {
|
|
191
|
+
console.warn(`[destr] Dropping "${key}" key to prevent prototype pollution.`);
|
|
192
|
+
}
|
|
193
|
+
function destr(value, options = {}) {
|
|
194
|
+
if (typeof value !== "string") return value;
|
|
195
|
+
if (value[0] === "\"" && value[value.length - 1] === "\"" && value.indexOf("\\") === -1) return value.slice(1, -1);
|
|
196
|
+
const _value = value.trim();
|
|
197
|
+
if (_value.length <= 9) switch (_value.toLowerCase()) {
|
|
198
|
+
case "true": return true;
|
|
199
|
+
case "false": return false;
|
|
200
|
+
case "undefined": return;
|
|
201
|
+
case "null": return null;
|
|
202
|
+
case "nan": return NaN;
|
|
203
|
+
case "infinity": return Number.POSITIVE_INFINITY;
|
|
204
|
+
case "-infinity": return Number.NEGATIVE_INFINITY;
|
|
205
|
+
}
|
|
206
|
+
if (!JsonSigRx.test(value)) {
|
|
207
|
+
if (options.strict) throw new SyntaxError("[destr] Invalid JSON");
|
|
208
|
+
return value;
|
|
209
|
+
}
|
|
210
|
+
try {
|
|
211
|
+
if (suspectProtoRx.test(value) || suspectConstructorRx.test(value)) {
|
|
212
|
+
if (options.strict) throw new Error("[destr] Possible prototype pollution");
|
|
213
|
+
return JSON.parse(value, jsonParseTransform);
|
|
214
|
+
}
|
|
215
|
+
return JSON.parse(value);
|
|
216
|
+
} catch (error) {
|
|
217
|
+
if (options.strict) throw error;
|
|
218
|
+
return value;
|
|
219
|
+
}
|
|
220
|
+
}
|
|
221
|
+
|
|
222
|
+
//#endregion
|
|
223
|
+
Object.defineProperty(exports, 'destr', {
|
|
224
|
+
enumerable: true,
|
|
225
|
+
get: function () {
|
|
226
|
+
return destr;
|
|
227
|
+
}
|
|
228
|
+
});
|
|
229
|
+
Object.defineProperty(exports, 'joinURL', {
|
|
230
|
+
enumerable: true,
|
|
231
|
+
get: function () {
|
|
232
|
+
return joinURL;
|
|
233
|
+
}
|
|
234
|
+
});
|
|
235
|
+
Object.defineProperty(exports, 'withBase', {
|
|
236
|
+
enumerable: true,
|
|
237
|
+
get: function () {
|
|
238
|
+
return withBase;
|
|
239
|
+
}
|
|
240
|
+
});
|
|
241
|
+
Object.defineProperty(exports, 'withQuery', {
|
|
242
|
+
enumerable: true,
|
|
243
|
+
get: function () {
|
|
244
|
+
return withQuery;
|
|
245
|
+
}
|
|
246
|
+
});
|