In my study on the concept of limit, I've come across two different definitions:
Let's assume that $a \in \bar D$, i.e. $a$ belongs to the closure of the domain of function $f$. Then $\lim_{x\rightarrow a}f(x)=b$
- $\forall_{\epsilon>0}\exists_{\delta>0}\forall_{x}\ \ x\in D \land|x-a|<\delta\implies |f(x)-b|<\epsilon$
- $\forall_{\epsilon>0}\exists_{\delta>0}\forall_{x}\ \ x\in D \land(0<|x-a|<\delta)\implies |f(x)-b|<\epsilon$
I've seen definition 1. being used mainly in book written in continental Europe, while definition 2 in books written in USA or UK. I may be wrong though.
The point is that these definitions are clearly very different. For example, if $f$ is equal to $1$ in every point in $\mathcal{R}$ except in $a$, where it's equal to $2$, then according to def.1. the limit doesn't exist at $a$, but according to def.2. it does exist. Another difference I've notice is in proving the existence of composition of limits, in def1. it will be less demanding than in def2.
Why would so many books use these different definitions?
Edit:
Because many of this forum may not be accquainted with def.1, you can check the book called "Multidimensional Real Analysis" by Duistermaat and Kolk, published by Cambridge University Press, where this is given as Definition 1.3.1. Here's an image of the book:
And clearly it's not a typo. (you can check the errata at the book's site.)

Here is supplementary information showing that actually both definitions are in use. I have to admit, since I am familiar with definition $2$ (punctured neighborhood) the definition $1$ looks rather weird to me.
Here is a small illustration to the second point. Let us consider a function $f$ defined on $0\leq x <1$ with $f(x)=1$ if $0<x<1$ and $f(0)=2$. We obtain according to the different definitions \begin{array}{ll} \text{definition }1\qquad&\qquad\text{definition }2\\ \hline \lim_{x\rightarrow 0}f(x)\quad\not\exists\qquad&\qquad\lim_{x\rightarrow 0}f(x)=1\\ \lim_{x\rightarrow 1}f(x)=1\qquad&\qquad\lim_{x\rightarrow 1}f(x)=1\\ \end{array}
In fact when going through some analysis books I found both kinds of definitions.
It's interesting that the definition does not that clearly state a punctured neigborhood. This is different to the german version where this book is based upon:
Finally a short summary of pros for definition 1 and pros for definiton 2:
Definition 1: O. Forster - S. Lang
Definition 2: R. Courant - H. Heuser - W. Rudin