Indonesia's parliament unanimously approved a strengthened anti-terrorism law, expanding the definition of terror and lengthening detention periods, spurred into action by bombings less than two weeks ago that involved children as perpetrators.

Rights groups have criticized the revisions passed Friday as overly broad and vague and warned against rushing them into law. A divisive provision in the law provides scope for the military to become involved in counter-terrorism policing, until now the domain of civilian authorities.

President Joko "Jokowi" Widodo had threatened to impose the changes by decree if parliament didn't rapidly approve them.

Police have killed 14 suspected militants and arrested 60 since the suicide bombings in Indonesia's second-largest city, Surabaya, that were carried out by radicalized families, who involved their children, as young as 7, in the attacks.