mirror of
https://github.com/tiennm99/is-a-dev.git
synced 2026-08-13 16:22:52 +00:00
adds psl validation TXT record
This commit is contained in:
+1
-1
@@ -6,7 +6,7 @@ let
|
||||
nodejs-15_x
|
||||
yarn
|
||||
docker-compose
|
||||
#dnsutils
|
||||
dnsutils
|
||||
#certbot
|
||||
];
|
||||
in
|
||||
|
||||
@@ -0,0 +1,11 @@
|
||||
{
|
||||
"description": "PSL validation record for is-a.dev",
|
||||
"repo": "https://github.com/is-a-dev/is-a-dev.github.io",
|
||||
"owner": {
|
||||
"username": "phenax",
|
||||
"email": "phenax5@gmail.com"
|
||||
},
|
||||
"record": {
|
||||
"TXT": "https://github.com/publicsuffix/list/pull/1327"
|
||||
}
|
||||
}
|
||||
@@ -3,7 +3,8 @@ const { VALID_RECORD_TYPES, TTL, ENV } = require('../utils/constants');
|
||||
const { domainService: dc } = require('../utils/domain-service');
|
||||
const { getDomains: gd } = require('../utils/get-domain');
|
||||
|
||||
const getRecords = R.compose(R.toPairs, R.pick(VALID_RECORD_TYPES));
|
||||
// Allow TXT records while publishing (for pcl validation)
|
||||
const getRecords = R.compose(R.toPairs, R.pick(VALID_RECORD_TYPES.concat(['TXT'])));
|
||||
|
||||
const toHostList = R.chain(data => {
|
||||
const rs = getRecords(data.record);
|
||||
|
||||
@@ -12,6 +12,7 @@ describe('Domains', () => {
|
||||
|
||||
it('should be valid', (done) => {
|
||||
getDomains()
|
||||
.then(R.reject(R.propEq('name', '_psl')))
|
||||
.then(R.map(data => {
|
||||
const { errors } = validateDomainData(data);
|
||||
if (errors.length) {
|
||||
|
||||
Reference in New Issue
Block a user