In the sentence "Before my trip, Bonnie wished me a safe flight," the word in bold ("me") is an indirect object.
The direct object in this sentence is "a safe flight," as it is the thing that is being wished. The indirect object "me" identifies to whom the safe flight is wished.