diff --git a/.all-contributorsrc b/.all-contributorsrc
index c16acd7f..a2dcb363 100644
--- a/.all-contributorsrc
+++ b/.all-contributorsrc
@@ -501,6 +501,15 @@
"contributions": [
"doc"
]
+ },
+ {
+ "login": "yoniholmes",
+ "name": "Jonathan Holmes",
+ "avatar_url": "https://avatars.githubusercontent.com/u/184589?v=4",
+ "profile": "https://github.com/yoniholmes",
+ "contributions": [
+ "code"
+ ]
}
],
"skipCi": true,
diff --git a/README.md b/README.md
index 73316210..d0f0a073 100644
--- a/README.md
+++ b/README.md
@@ -42,7 +42,6 @@
-
- [The problem](#the-problem)
- [The solution](#the-solution)
- [When to use this library](#when-to-use-this-library)
@@ -238,6 +237,7 @@ Thanks goes to these wonderful people ([emoji key](https://allcontributors.org/d
Sean Baines
π
Mikhail Vasin
π
Aleksandar Grbic
π
+
Jonathan Holmes
π»
diff --git a/src/pure.ts b/src/pure.ts
index ec72c6fe..33da7895 100644
--- a/src/pure.ts
+++ b/src/pure.ts
@@ -9,7 +9,7 @@ function hasDependency(name: string) {
try {
require(name)
return true
- } catch {
+ } catch (error) {
return false
}
}