fakefilter 0.1.7 → 0.1.8

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (2) hide show
  1. package/index.js +1 -1
  2. package/package.json +1 -1
package/index.js CHANGED
@@ -11,7 +11,7 @@ function getDomain(email) {
11
11
  }
12
12
 
13
13
  function isFakeDomain(domain) {
14
- return json.flat.includes(domain.toLowerCase())
14
+ return json.domains.hasOwnProperty(domain.toLowerCase())
15
15
  }
16
16
 
17
17
  function isFakeEmail(email) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "fakefilter",
3
- "version": "0.1.7",
3
+ "version": "0.1.8",
4
4
  "description": "reliable fake and temp email filter solution for site operators",
5
5
  "main": "index.js",
6
6
  "scripts": {