Sha256: a538ae85b1d0f72f57483de3080f592bd9c70aa9e1f07717332259571f243407
Contents?: true
Size: 814 Bytes
Versions: 18
Compression:
Stored size: 814 Bytes
Contents
import { BaseLink } from "@/links/base" import type { Link, LinkType } from "@/types" class SecurityTrails extends BaseLink { public baseURL: string public name: string public type: LinkType public constructor() { super() this.baseURL = "https://securitytrails.com" this.name = "SecurityTrails" this.type = "domain" } } export class SecurityTrailsForDomain extends SecurityTrails implements Link { public constructor() { super() this.type = "domain" } public href(data: string): string { return this.baseURL + `/domain/${data}/dns` } } export class SecurityTrailsForIP extends SecurityTrails implements Link { public constructor() { super() this.type = "ip" } public href(data: string): string { return this.baseURL + `/list/ip/${data}` } }
Version data entries
18 entries across 18 versions & 1 rubygems