teddi-x
Version:
Teddi (teddi-x) is a Node package that extends security to vertical agents., applications, and tooling built on, for, or with AI.
31 lines (28 loc) • 758 B
JavaScript
import { secureFetch } from "./utils/secureFetch.js";
import { withSecureFetch } from "./utils/withSecureFetch.js";
import { getProxyUrl } from "./utils/getProxyUrl.js";
// Avoid circular dependency by using dynamic import
function createClient(teddiHash) {
return {
supabase: async() => {
const { createSupabase } = await
import ("./integrations/Supabase.js");
return createSupabase(teddiHash);
},
// more integrations can go here
};
}
// Named exports
export {
secureFetch,
getProxyUrl,
withSecureFetch,
createClient,
};
// Add a default export that includes all named exports
export default {
secureFetch,
getProxyUrl,
withSecureFetch,
createClient,
};