Merge branch 'main' into main

This commit is contained in:
Cosintan authored and GitHub committed 2025-07-28 21:41:34 +05:30
commit e091b1dbc0
3 files changed
+22 -30

No files matched your search

+9
View File
@@ -0,0 +1,9 @@
{
"owner": {
"username": "0xcyberpj",
"email": "0xcyberpj@gmail.com"
},
"records": {
"TXT": "vc-domain-verify=cyberpj.is-a.dev,935d711596b23ded6906"
}
}
+9
View File
@@ -0,0 +1,9 @@
{
"owner": {
"username": "beleshivprasad",
"email": "shivprasadoctomusprime@gmail.com"
},
"records": {
"CNAME": "portfolio-aek.pages.dev"
}
}
+4 -30
View File
@@ -11,7 +11,6 @@ if (!fs.existsSync(outputDir)) {
const internal = require(path.join(__dirname, "internal.json"));
const reserved = require(path.join(__dirname, "reserved.json"));
const v1 = [];
const v2 = [];
for (const subdomain of internal) {
@@ -27,11 +26,6 @@ for (const subdomain of internal) {
CNAME: "internal.is-a.dev"
};
v1.push({
...commonData,
record: records
});
v2.push({
...commonData,
records: records,
@@ -52,11 +46,6 @@ for (const subdomain of reserved) {
URL: "https://is-a.dev/reserved"
};
v1.push({
...commonData,
record: records
});
v2.push({
...commonData,
records: records,
@@ -83,13 +72,6 @@ fs.readdir(directoryPath, function (err, files) {
delete item.owner.email;
let itemV1 = {
domain: item.domain,
subdomain: item.subdomain,
owner: item.owner,
record: item.records
};
let itemV2 = {
domain: item.domain,
subdomain: item.subdomain,
@@ -97,29 +79,21 @@ fs.readdir(directoryPath, function (err, files) {
records: item.records
};
if (item.redirect_config) {
itemV1.redirect_config = item.redirect_config;
itemV2.redirect_config = item.redirect_config;
}
if (item.redirect_config) itemV2.redirect_config = item.redirect_config;
if (item.proxied) {
itemV1.proxied = item.proxied;
itemV2.proxied = item.proxied;
}
if (item.proxied) itemV2.proxied = item.proxied;
v1.push(itemV1);
v2.push(itemV2);
processedCount++;
if (processedCount === files.length) {
v1.sort((a, b) => a.domain.localeCompare(b.subdomain));
v2.sort((a, b) => a.domain.localeCompare(b.subdomain));
fs.writeFile("raw-api/index.json", JSON.stringify(v1), (err) => {
fs.writeFile("raw-api/index.json", JSON.stringify({"code":404,"message":"v1 of the Raw API is no longer available, please upgrade to v2 located at https://raw.is-a.dev/v2.json"}), (err) => {
if (err) throw err;
});
fs.writeFile("raw-api/v1.json", JSON.stringify(v1), (err) => {
fs.writeFile("raw-api/v1.json", JSON.stringify({"code":404,"message":"v1 of the Raw API is no longer available, please upgrade to v2 located at https://raw.is-a.dev/v2.json"}), (err) => {
if (err) throw err;
});