@nsnanocat/preference-panes 0.7.2 → 0.8.0

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.
@@ -1,14 +0,0 @@
1
- import { response } from "../lib/response.mjs";
2
- import { complete } from "./response.mjs";
3
-
4
- /**
5
- * 为没有原生远程 Mock 的代理返回 BoxJS JSON,不提供存储或页面处理。
6
- * Return BoxJS JSON on proxies without native remote Mock, without storage or page handling.
7
- * @param {unknown} config 构建时嵌入的 BoxJS JSON / BoxJS JSON embedded at build time.
8
- * @returns {void} 将响应交给宿主 / Deliver the response to the host.
9
- */
10
- export function mock(config) {
11
- const method = globalThis.$request.method;
12
- const allowed = method === "GET" || method === "HEAD";
13
- complete(response(globalThis.$request, allowed ? 200 : 405, allowed ? config : { error: "Method not allowed" }));
14
- }