UNPKG

recoder-code

Version:

🚀 AI-powered development platform - Chat with 32+ models, build projects, automate workflows. Free models included!

17 lines (16 loc) • 446 B
import { tokenIntercept } from "./getSSOTokenFromFile"; import { fileIntercept } from "./slurpFile"; export const externalDataInterceptor = { getFileRecord() { return fileIntercept; }, interceptFile(path, contents) { fileIntercept[path] = Promise.resolve(contents); }, getTokenRecord() { return tokenIntercept; }, interceptToken(id, contents) { tokenIntercept[id] = contents; }, };