UNPKG

bunny-move

Version:

Move files to and from your storage zones with bunny.net in a single cli command 🐰

3 lines (2 loc) 904 B
import { createRequire } from 'module';const require = createRequire(import.meta.url); import{QueryClient as i,QueryClientProvider as l}from"@tanstack/react-query";import{Text as p}from"ink";import u from"react";import{ErrorBoundary as a}from"react-error-boundary";function t(r){return typeof r=="object"&&r!==null&&"message"in r&&typeof r.message=="string"}function s(r){if(t(r))return r;try{return new Error(JSON.stringify(r))}catch{return new Error(String(r))}}function o(r){return s(r).message}import{jsx as e}from"react/jsx-runtime";var c=new i;function f({commandProps:r,Component:n}){return e(l,{client:c,children:e(a,{FallbackComponent:g,children:e(u.Suspense,{fallback:e(m,{}),children:e(n,{...r})})})})}function g({error:r}){let n=o(r);return process.exitCode=1,process.env.CI?(console.error(n),console.error(),null):e(p,{color:"red",children:n})}function m(){return null}export{f as default};