PND medication and breastfeeding??

My doctor prescribed me sertraline for my post natal depression and because I had a panic attack whilst on it he had given me 5mg of diazepam to take along side this. I am currently breastfeeding and expressing milk so is it safe? I can't find anything online. But surely he wouldn't have given me it if it wasnt safe while breastfeeding?