Breastfeeding and colonoscopy meds

I am a breastfeeding mom of my seven month old baby. I have a scheduled colonoscopy and will be given Demerol and Versed. Can you advise if I can nurse 12 hours after being given the meds? thank you very much.