It's neither more or less secure.
The disadvantage of an anonymous function when compared to a named function is that it is only called once (or once per parent function) as that block of code is read. It can't be called by name.
The advantage of an anonymous function as opposed to a named function would be shorter syntax.
But if the question is whether to use this anonymous function as a wrapper, I really don't see any advantage to it. It's just adding extra code.
EDIT: If your anonymous function were a little longer, and contained variables, I can see it being useful to avoid polluting the global scope with those variable names. But in your example, that's not the case. See this answer for discussion of how its useful for namespacing: https://stackoverflow.com/a/2421949/4992551.