fix(dashboard): show enriched network details
CI / validate (push) Successful in 5m39s
Release / release (push) Successful in 7m15s

This commit is contained in:
dmg
2026-08-02 08:05:57 -04:00
parent aa0b757814
commit 24808b0f8c
12 changed files with 106 additions and 14 deletions
+6
View File
@@ -16,6 +16,8 @@ export interface IpLocation {
export interface IpNetwork {
asn: string | null;
provider: string | null;
connectionType?: string | null;
proxy?: boolean | null;
}
export interface IpIntelligenceResult {
@@ -112,6 +114,10 @@ export class ProxyCheckProvider implements IpIntelligenceProvider {
network: {
asn: stringValue(data.asn),
provider: stringValue(data.provider) ?? stringValue(data.organisation),
connectionType: stringValue(data.type),
proxy: String(data.proxy).toLowerCase() === "yes"
? true
: String(data.proxy).toLowerCase() === "no" ? false : null,
},
rawResponse: root,
};
+1 -1
View File
@@ -42,7 +42,7 @@ describe("ProxyCheck.io intelligence", () => {
longitude: -122.0775,
timezone: "America/Los_Angeles",
},
network: { asn: "AS15169", provider: "Google LLC" },
network: { asn: "AS15169", provider: "Google LLC", connectionType: "Business", proxy: false },
});
expect(request).toHaveBeenCalledWith(
expect.stringContaining("https://proxycheck.io/v2/8.8.8.8"),