fix(core): update

This commit is contained in:
2023-04-19 21:48:16 +02:00
parent 2cf760d788
commit de3ac113fc
5 changed files with 33 additions and 22 deletions

View File

@ -1,4 +1,5 @@
import * as plugins from '../ul-interfaces.plugins.js';
import { ILinkSnapshot } from './linksnapshot.js';
export interface IDomainSnapshot {
registration: {
@ -7,13 +8,7 @@ export interface IDomainSnapshot {
createdDate: number;
expiryDate: number;
};
delegation: {
domainWithoutSuffix: string;
publicSuffix: string;
subdomain: string;
isIcann: boolean;
dnsSecEnabled: boolean;
};
delegation: plugins.tsclass.network.IDomainDelegation;
phishingFlags: {
listName: string;
}[];
@ -27,7 +22,8 @@ export interface IDomainSnapshot {
specialRecords: {
dmarc: plugins.tsclass.network.IDnsRecord[];
}
}[]
}[];
linkSnapshots: ILinkSnapshot[];
whoisServers: {
serverUrl: string;
content: string;

View File

@ -1,14 +1,29 @@
import * as plugins from '../ul-interfaces.plugins.js';
export interface ILinkSnapshot {
/**
* the link base on which the snapshot was taken
*/
linkBaseUrl: string;
httpsSupport: boolean;
httpHttpsParity: boolean;
httpToHttpsRedirect: boolean;
wwwToRootRedirect: boolean;
rootToWwwRedirect: boolean;
fromWwwRedirect: boolean;
toWwwRedirect: boolean;
statusCode: number;
fullPageLoadSize: number;
fullPageLoadTimeMs: number;
cookies: any[];
gdprCompliance: boolean;
httpRequest: {
statusCode: number;
headers: {
[key: string]: string;
}
};
httpsRequest: {
statusCode: number;
headers: {
[key: string]: string;
}
};
}