import { TStoreFrontAdapter, TStoreFrontConfig } from '../types.js'; export const createMemoryAdapter = (config: TStoreFrontConfig): TStoreFrontAdapter => { return { config: async (withSecrets: boolean): Promise => { if (withSecrets) { return config; } return { ...config, configuration: { ...config.configuration, CRYSTALLIZE_ACCESS_TOKEN_ID: '', CRYSTALLIZE_ACCESS_TOKEN_SECRET: '', }, }; }, }; };