���Root Mod By V1rus_Alfa
User / IP
:
216.73.216.158
Host / Server
:
195.214.235.115 / npln.ir
System
:
Linux damavand.pws-dns.net 5.14.0-503.35.1.el9_5.x86_64 #1 SMP PREEMPT_DYNAMIC Fri Apr 4 05:23:43 EDT 2025 x86_64
Command
|
Upload
|
Mass Deface
|
Create
:
/
home2
/
cutunixc
/
.trash
/
.nuxt
/
dist
/
server
/
_nuxt
/
Viewing: fetch-BLrdAwwP.js
import { computed, toValue, reactive } from "vue"; import { hash } from "ohash"; import { B as fetchDefaults, j as useAsyncData, C as useRequestFetch } from "../server.mjs"; function useFetch(request, arg1, arg2) { const [opts = {}, autoKey] = typeof arg1 === "string" ? [{}, arg1] : [arg1, arg2]; const _request = computed(() => toValue(request)); const _key = opts.key || hash([autoKey, typeof _request.value === "string" ? _request.value : "", ...generateOptionSegments(opts)]); if (!_key || typeof _key !== "string") { throw new TypeError("[nuxt] [useFetch] key must be a string: " + _key); } if (!request) { throw new Error("[nuxt] [useFetch] request is missing."); } const key = _key === autoKey ? "$f" + _key : _key; if (!opts.baseURL && typeof _request.value === "string" && (_request.value[0] === "/" && _request.value[1] === "/")) { throw new Error('[nuxt] [useFetch] the request URL must not start with "//".'); } const { server, lazy, default: defaultFn, transform, pick, watch, immediate, getCachedData, deep, dedupe, ...fetchOptions } = opts; const _fetchOptions = reactive({ ...fetchDefaults, ...fetchOptions, cache: typeof opts.cache === "boolean" ? void 0 : opts.cache }); const _asyncDataOptions = { server, lazy, default: defaultFn, transform, pick, immediate, getCachedData, deep, dedupe, watch: watch === false ? [] : [_fetchOptions, _request, ...watch || []] }; let controller; const asyncData = useAsyncData(key, () => { var _a; (_a = controller == null ? void 0 : controller.abort) == null ? void 0 : _a.call(controller, "Request aborted as another request to the same endpoint was initiated."); controller = typeof AbortController !== "undefined" ? new AbortController() : {}; const timeoutLength = toValue(opts.timeout); let timeoutId; if (timeoutLength) { timeoutId = setTimeout(() => controller.abort("Request aborted due to timeout."), timeoutLength); controller.signal.onabort = () => clearTimeout(timeoutId); } let _$fetch = opts.$fetch || globalThis.$fetch; if (!opts.$fetch) { const isLocalFetch = typeof _request.value === "string" && _request.value[0] === "/" && (!toValue(opts.baseURL) || toValue(opts.baseURL)[0] === "/"); if (isLocalFetch) { _$fetch = useRequestFetch(); } } return _$fetch(_request.value, { signal: controller.signal, ..._fetchOptions }).finally(() => { clearTimeout(timeoutId); }); }, _asyncDataOptions); return asyncData; } function generateOptionSegments(opts) { var _a; const segments = [ ((_a = toValue(opts.method)) == null ? void 0 : _a.toUpperCase()) || "GET", toValue(opts.baseURL) ]; for (const _obj of [opts.params || opts.query]) { const obj = toValue(_obj); if (!obj) { continue; } const unwrapped = {}; for (const [key, value] of Object.entries(obj)) { unwrapped[toValue(key)] = toValue(value); } segments.push(unwrapped); } return segments; } export { useFetch as u }; //# sourceMappingURL=fetch-BLrdAwwP.js.map
Coded With 💗 by
0x6ick Mod By V1rus_Alfa