disposable-domains 2.0.0 → 2.0.4

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.
package/package.json CHANGED
@@ -1,11 +1,27 @@
1
1
  {
2
2
  "name": "disposable-domains",
3
- "version": "2.0.0",
3
+ "version": "2.0.4",
4
4
  "description": "A list of disposable email domains",
5
+ "keywords": [
6
+ "disposable",
7
+ "disposable-email",
8
+ "temporary-email",
9
+ "throwaway-email",
10
+ "burner-email",
11
+ "email",
12
+ "email-validation",
13
+ "blocklist",
14
+ "signup",
15
+ "fraud-prevention"
16
+ ],
5
17
  "repository": {
6
18
  "type": "git",
7
19
  "url": "git+https://github.com/tompec/disposable-email-domains.git"
8
20
  },
21
+ "homepage": "https://www.usercheck.com",
22
+ "bugs": {
23
+ "url": "https://github.com/tompec/disposable-email-domains/issues"
24
+ },
9
25
  "license": "MIT",
10
26
  "main": "./index.json",
11
27
  "scripts": {
package/test/index.js CHANGED
@@ -1,6 +1,7 @@
1
1
  const _ = require('lodash');
2
2
  const domains = require('../index');
3
3
  const chai = require('chai');
4
+ const { tlds } = require('top-level-domains');
4
5
  const expect = chai.expect;
5
6
 
6
7
  chai.use(require("chai-sorted"));
@@ -26,4 +27,8 @@ describe('Domains', function(){
26
27
  it('should be a valid domain', function(){
27
28
  expect(domains).to.be.all.isFQDN;
28
29
  });
30
+ it('should not list a bare public suffix', function(){
31
+ const suffixes = new Set(tlds.map(item => item.tld));
32
+ expect(domains.filter(domain => suffixes.has(domain))).to.be.empty;
33
+ });
29
34
  });