UNPKG

@getontime/cli

Version:
3 lines (2 loc) 862 B
import{e as a,k as s}from"./vendor-DFNUfA2K.js";import{aw as d,bo as f,bP as n,M as i}from"./index-BNit4nUw.js";(function(){try{var e=typeof window<"u"?window:typeof global<"u"?global:typeof globalThis<"u"?globalThis:typeof self<"u"?self:{},t=new e.Error().stack;t&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[t]="18b65af1-58a5-4fd2-bde9-c309f55ffc70",e._sentryDebugIdIdentifier="sentry-dbid-18b65af1-58a5-4fd2-bde9-c309f55ffc70")}catch{}})();const o=`${d}/report`;async function l(){return(await a.get(o)).data}async function b(){await a.delete(`${o}/all`),await f.invalidateQueries({queryKey:n})}function p(){const{data:e,refetch:t}=s({queryKey:n,queryFn:l,placeholderData:(r,u)=>r,retry:5,retryDelay:r=>r*2500,networkMode:"always",staleTime:i});return{data:e??{},refetch:t}}export{b as d,p as u}; //# sourceMappingURL=useReport-C6WYCwpP.js.map