5. Let $f(x)=\frac{x^{2}+x+2}{x+2}$, then the minimum value of $f(x)$ on $[-1,1]$ is $\qquad$ , and the maximum value is

Translate the text above into English, please keep the original text's line breaks and format, and output the translation result directly.
5. 1,2

Translate the text above into English, please retain the original text's line breaks and format, and output the translation result directly.