Automatically wrap publish data in an array