PageSourceSearch

https://spicycrust.pizza/packs/api-CFnNWVnx.js

js spicycrust.pizza collected 2026-10-07 19:36:32 UTC 1,382 bytes, 2 lines download raw bytes

1import{o as e}from"./rolldown-runtime-C0FnF6B9.js";import{t}from"./ready-B3bZnx13.js";import{h as n}from"./initial_state-CQfWVRE7.js";import{t as r}from"./axios-BtwFZmtf.js";import{n as i}from"./defineProperty-C0YrXxyM.js";var a=e(i()),o=e=>{let t=e.headers.link;return t?a.default.parse(t):new a.default},s=e=>`id`in e&&`retry`in e,c=e=>{let t=e.headers[`mastodon-async-refresh`];if(!t)return null;let n={};return t.split(/,\s*/).forEach(e=>{let[t,r]=e.split(`=`,2),i;t&&[`id`,`retry`].includes(t)&&r&&(i=r.startsWith(`"`)?r.slice(1,-1):parseInt(r),n[t]=i)}),s(n)?n:null},l={};t(()=>{let e=document.querySelector(`meta[name=csrf-token]`);e&&(l[`X-CSRF-Token`]=e.content)});var u=()=>{let e=n();return e?{Authorization:`Bearer ${e}`}:{}};function d(e=!0){return r.create({transitional:{clarifyTimeoutError:!0},headers:{...l,...e?u():{}},transformResponse:[function(e){try{return JSON.parse(e)}catch{return e}}]})}async function f(e,t,n={}){let{data:r}=await d().request({method:e,url:`/api/`+t,...n});return r}async function p(e,t,n={}){return f(`GET`,e,{params:t,...n})}async function m(e,t){return f(`POST`,e,{data:t})}async function h(e,t){return f(`PUT`,e,{data:t})}async function g(e,t){return f(`DELETE`,e,{params:t})}async function _(e,t){return f(`PATCH`,e,{data:t})}export{_ as a,c,p as i,o as l,f as n,m as o,g as r,h as s,d as t};
2//# sourceMappingURL=api-CFnNWVnx.js.map

Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.