Merge branch 'main' into main

This commit is contained in:
DIBSTER
2023-09-22 23:32:16 -04:00
committed by GitHub
47 changed files with 388 additions and 33 deletions
+1 -1
View File
@@ -11,6 +11,6 @@ jobs:
fetch-depth: 0
- uses: oven-sh/setup-bun@v1
with:
bun-version: 1.0.0
bun-version: 1.0.3
- run: bun install
- run: bun test
+1 -1
View File
@@ -14,7 +14,7 @@ jobs:
- uses: actions/checkout@v3
- uses: oven-sh/setup-bun@v1
with:
bun-version: 1.0.0
bun-version: 1.0.3
- run: bun install
- run: bun test
- name: Publishing records
BIN
View File
Binary file not shown.
+11
View File
@@ -0,0 +1,11 @@
{
"owner": {
"username": "cy920820",
"email": "cuiyang673308817@gmail.com"
},
"record": {
"A": ["217.174.245.249"],
"MX": ["hosts.is-a.dev"],
"TXT": "v=spf1 a mx ip4:217.174.245.249 ~all"
}
}
+11
View File
@@ -0,0 +1,11 @@
{
"owner": {
"username": "goesbyabhi",
"email": "abxisxekpanda@gmail.com"
},
"record": {
"A": ["217.174.245.249"],
"MX": ["hosts.is-a.dev"],
"TXT": "v=spf1 a mx ip4:217.174.245.249 ~all"
}
}
+9
View File
@@ -0,0 +1,9 @@
{
"owner": {
"username": "atharvaupadhyay",
"email": "atharva.upadhyay1099@gmail.com"
},
"record": {
"CNAME": "atharvaupadhyay.github.io"
}
}
+11
View File
@@ -0,0 +1,11 @@
{
"owner": {
"username": "dexjr",
"email": "dexjrdexjr@gmail.com"
},
"record": {
"A": ["217.174.245.249"],
"MX": ["hosts.is-a.dev"],
"TXT": "v=spf1 a mx ip4:217.174.245.249 ~all"
}
}
+11
View File
@@ -0,0 +1,11 @@
{
"owner": {
"username": "bampenes",
"email": "rafinhabampa@hotmail.com"
},
"record": {
"A": ["217.174.245.249"],
"MX": ["hosts.is-a.dev"],
"TXT": "v=spf1 a mx ip4:217.174.245.249 ~all"
}
}
+11
View File
@@ -0,0 +1,11 @@
{
"owner": {
"username": "cha0ticcoder",
"email": "chaoticplayern1@gmail.com"
},
"record": {
"A": ["217.174.245.249"],
"MX": ["hosts.is-a.dev"],
"TXT": "v=spf1 a mx ip4:217.174.245.249 ~all"
}
}
+11
View File
@@ -0,0 +1,11 @@
{
"owner": {
"username": "chandrabosep",
"email": "chandrabosep3112@gmail.com"
},
"record": {
"A": ["217.174.245.249"],
"MX": ["hosts.is-a.dev"],
"TXT": "v=spf1 a mx ip4:217.174.245.249 ~all"
}
}
+3 -4
View File
@@ -4,8 +4,7 @@
"email": "cycloneaddon@gmail.com"
},
"record": {
"A": ["217.174.245.249"],
"MX": ["hosts.is-a.dev"],
"TXT": "v=spf1 a mx ip4:217.174.245.249 ~all"
"A": ["34.132.134.162"],
"TXT": "replit-verify=4aa75152-01c8-46af-b007-80d24ba1a8fa"
}
}
}
+5 -5
View File
@@ -2,8 +2,8 @@
"owner": {
"username": "BruhDark",
"email": "darkpxint@gmail.com"
},
"record": {
"CNAME": "bruhdarkgithubio-production.up.railway.app"
}
}
},
"record": {
"CNAME": "website-93d6f.web.app"
}
}
+9
View File
@@ -0,0 +1,9 @@
{
"owner": {
"username": "HabibMollah",
"email": "habib.prodev@gmail.com"
},
"record": {
"URL": "https://mollah.vercel.app"
}
}
+9
View File
@@ -0,0 +1,9 @@
{
"owner": {
"username": "hkamran80",
"email": "hkamran@hkamran.com"
},
"record": {
"URL": "https://hkamran.com/?ref=isadev"
}
}
+9
View File
@@ -0,0 +1,9 @@
{
"owner": {
"username": "horn7x",
"email": "horn7x@gmail.com"
},
"record": {
"CNAME": "horn7x.github.io"
}
}
+6 -6
View File
@@ -1,11 +1,11 @@
{
"owner": {
"username": "ShadowPlayzYT22",
"email": "peterwyneg@gmail.com"
"username": "DemonGamez",
"email": "peterwyneg@gmail.com",
"discord": "1038747272701292584"
},
"record": {
"A": ["217.174.245.249"],
"MX": ["hosts.is-a.dev"],
"TXT": "v=spf1 a mx ip4:217.174.245.249 ~all"
"CNAME": "DemonGamez.github.io"
}
}
}
+11
View File
@@ -0,0 +1,11 @@
{
"owner": {
"username": "jamesisacutedog",
"email": "jamezemailreal@gmail.com"
},
"record": {
"A": ["217.174.245.249"],
"MX": ["hosts.is-a.dev"],
"TXT": "v=spf1 a mx ip4:217.174.245.249 ~all"
}
}
+11
View File
@@ -0,0 +1,11 @@
{
"owner": {
"username": "heyjumanji",
"email": "madhuchutiya.unhinge650@silomails.com"
},
"record": {
"A": ["217.174.245.249"],
"MX": ["hosts.is-a.dev"],
"TXT": "v=spf1 a mx ip4:217.174.245.249 ~all"
}
}
+3 -5
View File
@@ -4,8 +4,6 @@
"email": "givemelognotes@gmail.com"
},
"record": {
"A": ["217.174.245.249"],
"MX": ["hosts.is-a.dev"],
"TXT": "v=spf1 a mx ip4:217.174.245.249 ~all"
}
}
"URL": "https://ka0un.github.io"
}
}
+11
View File
@@ -0,0 +1,11 @@
{
"owner": {
"username": "Lenn106",
"email": "lennongreyson@gmail.com"
},
"record": {
"A": ["217.174.245.249"],
"MX": ["hosts.is-a.dev"],
"TXT": "v=spf1 a mx ip4:217.174.245.249 ~all"
}
}
+3 -1
View File
@@ -4,6 +4,8 @@
"email": "mdbesoain@gmail.com"
},
"record": {
"URL": "https://mdbesoain.cl"
"A": ["217.174.245.249"],
"MX": ["hosts.is-a.dev"],
"TXT": "v=spf1 a mx ip4:217.174.245.249 ~all"
}
}
+10
View File
@@ -0,0 +1,10 @@
{
"repo": "https://github.com/Miroslavchen/hatynka_0A.github.io",
"owner": {
"username": "miroslavchen",
"email": "miroslavnezgoduk8@gmail.com"
},
"record": {
"CNAME": "miroslavchen.github.io"
}
}
+11
View File
@@ -0,0 +1,11 @@
{
"owner": {
"username": "Zyelixify",
"email": "heroxmain@gmail.com"
},
"record": {
"A": ["217.174.245.249"],
"MX": ["hosts.is-a.dev"],
"TXT": "v=spf1 a mx ip4:217.174.245.249 ~all"
}
}
+3 -1
View File
@@ -4,6 +4,8 @@
"email": "illegalhacker2.0@gmail.com"
},
"record": {
"CNAME": "glitch.edgeapp.net"
"A": ["217.174.245.249"],
"MX": ["hosts.is-a.dev"],
"TXT": "v=spf1 a mx ip4:217.174.245.249 ~all"
}
}
+11
View File
@@ -0,0 +1,11 @@
{
"owner": {
"username": "Musikid-Official",
"email": "musikid@proton.me"
},
"record": {
"A": ["217.174.245.249"],
"MX": ["hosts.is-a.dev"],
"TXT": "v=spf1 a mx ip4:217.174.245.249 ~all"
}
}
+11
View File
@@ -0,0 +1,11 @@
{
"owner": {
"username": "kardespro",
"email": "kardesdcys@gmail.com"
},
"record": {
"A": ["217.174.245.249"],
"MX": ["hosts.is-a.dev"],
"TXT": "v=spf1 a mx ip4:217.174.245.249 ~all"
}
}
+9
View File
@@ -0,0 +1,9 @@
{
"owner": {
"username": "nixxvl",
"email": "noyboyroblox@gmail.com"
},
"record": {
"CNAME": "nixxvl.space"
}
}
+11
View File
@@ -0,0 +1,11 @@
{
"owner": {
"username": "xrenata",
"email": "emirhan@duck.com"
},
"record": {
"A": ["217.174.245.249"],
"MX": ["hosts.is-a.dev"],
"TXT": "v=spf1 a mx ip4:217.174.245.249 ~all"
}
}
+11
View File
@@ -0,0 +1,11 @@
{
"owner": {
"username": "PsxScriptsW",
"email": "jacob.blits@gmail.com"
},
"record": {
"A": ["217.174.245.249"],
"MX": ["hosts.is-a.dev"],
"TXT": "v=spf1 a mx ip4:217.174.245.249 ~all"
}
}
+9
View File
@@ -0,0 +1,9 @@
{
"owner": {
"username": "skysthelimitt",
"email": "skysth3limit@pm.me"
},
"record": {
"CNAME": "selenite.pages.dev"
}
}
+11
View File
@@ -0,0 +1,11 @@
{
"owner": {
"username": "sharan-218",
"email": "yenugulasharan8019@gmail.com"
},
"record": {
"A": ["217.174.245.249"],
"MX": ["hosts.is-a.dev"],
"TXT": "v=spf1 a mx ip4:217.174.245.249 ~all"
}
}
+9
View File
@@ -0,0 +1,9 @@
{
"owner": {
"username": "Sharathchandra345",
"email": "csharathchandra3@gmail.com"
},
"record": {
"URL": "https://sharathweb.netlify.app/"
}
}
+9
View File
@@ -0,0 +1,9 @@
{
"owner": {
"username": "Sharathchandra345",
"email": "csharathchandra3@gmail.com"
},
"record": {
"URL": "https://csharath.netlify.app/"
}
}
+10
View File
@@ -0,0 +1,10 @@
{
"owner": {
"username": "ShingSemicolon",
"email": "Shing.XD.0602@gmail.com"
},
"record": {
"A": ["129.80.190.178"],
"AAAA": ["2603:c020:400d:3e89:2d5a:b8a3:1999:49f"]
}
}
+11
View File
@@ -0,0 +1,11 @@
{
"owner": {
"username": "sid-008",
"email": "siddharthtewari14@gmail.com"
},
"record": {
"A": ["217.174.245.249"],
"MX": ["hosts.is-a.dev"],
"TXT": "v=spf1 a mx ip4:217.174.245.249 ~all"
}
}
+4 -2
View File
@@ -4,6 +4,8 @@
"email": "reeseb1660@outlook.com"
},
"record": {
"A": ["216.24.57.1"]
"A": ["217.174.245.249"],
"MX": ["hosts.is-a.dev"],
"TXT": "v=spf1 a mx ip4:217.174.245.249 ~all"
}
}
}
+9
View File
@@ -0,0 +1,9 @@
{
"owner": {
"username": "hirakotm",
"email": "hirakoo@proton.me"
},
"record": {
"CNAME": "hirako-is-really-cool.pages.dev"
}
}
+11
View File
@@ -0,0 +1,11 @@
{
"owner": {
"username": "Tazmyan",
"email": "tikpatka@gmail.com"
},
"record": {
"A": ["217.174.245.249"],
"MX": ["hosts.is-a.dev"],
"TXT": "v=spf1 a mx ip4:217.174.245.249 ~all"
}
}
+9
View File
@@ -0,0 +1,9 @@
{
"owner": {
"username": "yasserfds",
"email": "yasserfedsi34@gmail.com"
},
"record": {
"URL": "https://yasserfedsi.vercel.app"
}
}
+10
View File
@@ -0,0 +1,10 @@
{
"owner": {
"username": "yassinmoussamih",
"email": "yassinmoussamih7@gmail.com"
},
"record": {
"URL": "https://yassinmoussamih.vercel.app"
}
}
+11
View File
@@ -0,0 +1,11 @@
{
"owner": {
"username": "zhougonglai",
"email": "838048635@qq.com"
},
"record": {
"A": ["217.174.245.249"],
"MX": ["hosts.is-a.dev"],
"TXT": "v=spf1 a mx ip4:217.174.245.249 ~all"
}
}
+11
View File
@@ -0,0 +1,11 @@
{
"owner": {
"username": "Zyelixify",
"email": "heroxmain@gmail.com"
},
"record": {
"A": ["217.174.245.249"],
"MX": ["hosts.is-a.dev"],
"TXT": "v=spf1 a mx ip4:217.174.245.249 ~all"
}
}
+1
View File
@@ -16,6 +16,7 @@
"author": "Akshay Nair <phenax5@gmail.com>",
"license": "GPL-3.0",
"dependencies": {
"ip-regex": "^5.0.0",
"ramda": "^0.27.1"
},
"devDependencies": {
+8
View File
@@ -59,6 +59,11 @@ describe('validateDomainData', () => {
{ ...defaultDomain, name: 'help.baa' },
{ ...defaultDomain, name: '_github-pages-challenge-is-a-dev' },
{ ...defaultDomain, name: '_github-challenge-is-a-dev' },
{ ...defaultDomain, record: { AAAA: [] } },
{ ...defaultDomain, record: { AAAA: ['182.22.222.22', '::1'] } },
{ ...defaultDomain, record: { AAAA: '182.22.222.22' } },
{ ...defaultDomain, record: { A: '::1' } },
{ ...defaultDomain, name: '_discord' },
];
const validCases = [
@@ -86,6 +91,9 @@ describe('validateDomainData', () => {
{ ...defaultDomain, name: '_github-challenge-hello01-ga' },
{ ...defaultDomain, name: '_github-challenge-hello01_ga' },
{ ...defaultDomain, record: { TXT: ['foobar wow nice!!!', 'more text'] } },
{ ...defaultDomain, record: { AAAA: ['::1', '2001:db8:3333:4444:5555:6666:7777:8888'] } },
{ ...defaultDomain, record: { A: ['122.222.222.222'] } },
{ ...defaultDomain, name: '_discord.subdomain' },
];
it('should return false for invalid data', () => {
+1 -1
View File
@@ -18,7 +18,7 @@ const DOMAINS_PATH = path.resolve('domains');
module.exports = {
ENV,
IS_TEST,
VALID_RECORD_TYPES: ['CNAME', 'A', 'URL', 'MX', 'TXT'],
VALID_RECORD_TYPES: ['CNAME', 'A', 'URL', 'MX', 'TXT', 'AAAA'],
DOMAIN_DOMAIN: DOMAIN_DOMAIN || 'booboo.xyz',
DOMAIN_USER: IS_TEST ? 'testuser' : DOMAIN_USER,
DOMAIN_API_KEY: IS_TEST ? 'testkey' : DOMAIN_API_KEY,
+2 -1
View File
@@ -14,5 +14,6 @@
"ww3",
"ww4",
"wwww",
"your-domain-name"
"your-domain-name",
"_discord"
]
+18 -5
View File
@@ -2,6 +2,8 @@ const R = require('ramda');
const { VALID_RECORD_TYPES } = require('./constants');
const { or, and, validate, between, testRegex, withLengthEq, withLengthGte } = require('./helpers');
const INVALID_NAMES = require('./invalid-domains.json');
const ipRegex_ = require('ip-regex');
const ipRegex = ipRegex_.default ?? ipRegex_;
const isValidURL = and([R.is(String), testRegex(/^https?:\/\//ig)]);
@@ -17,6 +19,7 @@ const validateCnameRecord = type => and([
const validateARecord = type => and([
R.propIs(Array, type),
R.propSatisfies(withLengthGte(1), type),
R.all(testRegex(ipRegex.v4({ exact: true }))),
]);
const validateMXRecord = type => and([
@@ -25,8 +28,19 @@ const validateMXRecord = type => and([
R.propSatisfies(R.all(isValidDomain), type),
]);
const validateAAAARecord = R.propSatisfies(and([
R.is(Array),
withLengthGte(1),
R.all(testRegex(ipRegex.v6({ exact: true }))),
]))
const checkRestrictedNames = R.complement(R.includes(R.__, INVALID_NAMES))
const extraSupportedNames = [
testRegex(/^_github(-pages)?-challenge-[a-z0-9-_]+$/i), // Exception for github verification records
R.equals('_discord'),
]
const validateDomainData = validate({
name: {
reason: 'The name of the file is invalid. It must be lowercased, alphanumeric and each component must be more than 2 characters long',
@@ -34,17 +48,15 @@ const validateDomainData = validate({
R.equals('@'),
and([
R.is(String),
checkRestrictedNames,
R.compose(
R.all(or([
and([
testRegex(/^_github(-pages)?-challenge-[a-z0-9-_]+$/i), // Exception for github verification records
checkRestrictedNames,
]),
and([
R.compose(between(2, 100), R.length),
testRegex(/^[a-z0-9-]+$/g),
checkRestrictedNames,
])
]),
...extraSupportedNames,
])),
R.split('.'),
),
@@ -75,6 +87,7 @@ const validateDomainData = validate({
[R.has('URL'), R.propSatisfies(isValidURL, 'URL')],
[R.has('MX'), validateMXRecord('MX')],
[R.has('TXT'), R.propSatisfies(or([ R.is(String), R.is(Array) ]), 'TXT')],
[R.has('AAAA'), validateAAAARecord('AAAA')],
[R.T, R.T],
]),
]),