mirror of
https://github.com/tiennm99/is-a-dev.git
synced 2026-10-20 00:15:20 +00:00
update ava version, migrate to gacts/install-dnscontrol and use lockfiles
This commit is contained in:
1 parent
fb5e12dc36
commit
a692aa1209
11 files changed
+1927
-43
No files matched your search
@@ -1,6 +1,6 @@
|
||||
const t = require("ava");
|
||||
const fs = require("fs-extra");
|
||||
const path = require("path");
|
||||
import t from "ava";
|
||||
import fs from "fs-extra";
|
||||
import path from "path";
|
||||
|
||||
const domainsPath = path.resolve("domains");
|
||||
const files = fs.readdirSync(domainsPath).filter((file) => file.endsWith(".json"));
|
||||
|
||||
+6
-6
@@ -1,6 +1,9 @@
|
||||
const t = require("ava");
|
||||
const fs = require("fs-extra");
|
||||
const path = require("path");
|
||||
import t from "ava";
|
||||
import fs from "fs-extra";
|
||||
import path from "path";
|
||||
|
||||
import internalDomains from "../util/internal.json" with { type: "json" };
|
||||
import reservedDomains from "../util/reserved.json" with { type: "json" };
|
||||
|
||||
const ignoredRootJSONFiles = ["package-lock.json", "package.json"];
|
||||
|
||||
@@ -32,9 +35,6 @@ const blockedFields = ["domain", "internal", "proxy", "reserved", "services", "s
|
||||
const emailRegex = /^[a-zA-Z0-9._%+-]+@[a-zA-Z0-9.-]+\.[a-zA-Z]{2,}$/;
|
||||
const hostnameRegex = /^(?=.{1,253}$)(?:(?:[_a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?)\.)+[a-zA-Z]{2,63}$/;
|
||||
|
||||
const internalDomains = require("../util/internal.json");
|
||||
const reservedDomains = require("../util/reserved.json");
|
||||
|
||||
const domainsPath = path.resolve("domains");
|
||||
const files = fs.readdirSync(domainsPath);
|
||||
|
||||
|
||||
+5
-4
@@ -1,9 +1,10 @@
|
||||
const t = require("ava");
|
||||
const fs = require("fs-extra");
|
||||
const path = require("path");
|
||||
import t from "ava";
|
||||
import fs from "fs-extra";
|
||||
import path from "path";
|
||||
|
||||
import trustedUsers from "../util/trusted.json" with { type: "json" };
|
||||
|
||||
const requiredEnvVars = ["PR_AUTHOR", "PR_AUTHOR_ID"];
|
||||
const trustedUsers = require("../util/trusted.json");
|
||||
|
||||
const trusted = trustedUsers.map((u) => u.id.toString());
|
||||
const admins = trustedUsers.filter((u) => u.admin).map((u) => u.id.toString());
|
||||
|
||||
+3
-3
@@ -1,6 +1,6 @@
|
||||
const t = require("ava");
|
||||
const fs = require("fs-extra");
|
||||
const path = require("path");
|
||||
import t from "ava";
|
||||
import fs from "fs-extra";
|
||||
import path from "path";
|
||||
|
||||
const requiredRecordsToProxy = new Set(["A", "AAAA", "CNAME"]);
|
||||
|
||||
|
||||
@@ -1,6 +1,8 @@
|
||||
const t = require("ava");
|
||||
const fs = require("fs-extra");
|
||||
const path = require("path");
|
||||
import t from "ava";
|
||||
import fs from "fs-extra";
|
||||
import path from "path";
|
||||
|
||||
import disallowedCNAMEs from "../util/disallowed-cnames.json" with { type: "json" };
|
||||
|
||||
const validRecordTypes = new Set(["A", "AAAA", "CAA", "CNAME", "DS", "MX", "NS", "SRV", "TLSA", "TXT", "URL"]);
|
||||
const hostnameRegex = /^(?=.{1,253}$)(?:(?:[_a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?)\.)+[a-zA-Z]{2,63}$/;
|
||||
@@ -88,8 +90,6 @@ function isValidHexadecimal(value) {
|
||||
return /^[0-9a-fA-F]+$/.test(value);
|
||||
}
|
||||
|
||||
const disallowedCNAMEs = require("../util/disallowed-cnames.json");
|
||||
|
||||
function validateRecordValues(t, data, file) {
|
||||
const subdomain = file.replace(/\.json$/, "");
|
||||
|
||||
|
||||
Reference in new issue
Block a user