@a11ywatch/core
Version:
a11ywatch central API
54 lines • 1.54 kB
JavaScript
var __rest = (this && this.__rest) || function (s, e) {
var t = {};
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0)
t[p] = s[p];
if (s != null && typeof Object.getOwnPropertySymbols === "function")
for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {
if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i]))
t[p[i]] = s[p[i]];
}
return t;
};
Object.defineProperty(exports, "__esModule", { value: true });
exports.makeWebsite = exports.WebsiteModel = void 0;
const WebsiteModel = {
userId: undefined,
url: "",
domain: "",
pageInsights: false,
pageHeaders: [],
pageLoadTime: {
duration: 0,
durationFormated: "",
color: "",
},
lastScanDate: "",
online: true,
ua: "",
mobile: false,
standard: "WCAG2AA",
actionsEnabled: false,
monitoringEnabled: true,
robots: true,
subdomains: false,
tld: false,
order: 0,
verified: false,
verificationCode: "",
ignore: [],
rules: [],
runners: [],
proxy: "",
};
exports.WebsiteModel = WebsiteModel;
const makeWebsite = (_a = { url: "", domain: "" }) => {
var { url, domain } = _a, extra = __rest(_a, ["url", "domain"]);
return Object.assign({}, WebsiteModel, {
url,
domain,
lastScanDate: new Date().toISOString(),
}, extra);
};
exports.makeWebsite = makeWebsite;
//# sourceMappingURL=model.js.map
;