In any proceeding pursuant to section 3142 for the purpose of determining whether a defendant charged under this chapter shall be released pending trial, or for the purpose of determining conditions of such release, the alleged victim shall be given an opportunity to be heard regarding the danger posed by the defendant.