Garlic and shallot sauté: Heat olive oil in a medium pan over medium heat. Add the garlic and shallot and sauté for 2 minutes until fragrant and soft.
Add white wine: Pour white wine into the pan, scraping any brown bits off the bottom, and let the wine cook off for 3–4 minutes.
Lemon and capers: Add lemon juice and capers. Stir well, then cook for an additional 1-2 minutes.
Make it creamy: Reduce the heat to low, and stir in the heavy cream. Allow it to gently simmer for about 5 minutes until the sauce thickens slightly.
Finish with butter: Stir in the butter and allow it to melt completely, further enriching and smoothing the sauce.
Season and serve: Season the sauce to taste with salt and black pepper. Stir the chopped parsley and basil into the sauce just before serving to add a fresh burst of flavour.