From b18b653bb10ef718d3caf6506a5f4133efb303bd Mon Sep 17 00:00:00 2001 From: Markus Tacker Date: Fri, 20 Dec 2024 01:31:20 +0100 Subject: [PATCH] refactor: remove unneeded prefix --- src/darkIssuers.ts | 11 +---------- src/list.ts | 2 +- 2 files changed, 2 insertions(+), 11 deletions(-) diff --git a/src/darkIssuers.ts b/src/darkIssuers.ts index 79e8ebb..d5dbaa5 100644 --- a/src/darkIssuers.ts +++ b/src/darkIssuers.ts @@ -4,7 +4,6 @@ import type { IssuerList } from './types.js' * This is a list of issuers, that we know operate, but they are not (yet) listed in the ITU-T E.118 database. */ const darkIssuers: Array<{ - prefix: number countryCode: number networkCode: string country: string @@ -12,21 +11,18 @@ const darkIssuers: Array<{ url?: URL }> = [ { - prefix: 893108, networkCode: '08', countryCode: 31, country: 'Netherlands', company: 'KPN Telecom B.V., Card Services', }, { - prefix: 894573, networkCode: '73', countryCode: 45, country: 'Denmark', company: 'Onomondo ApS', }, { - prefix: 894604, networkCode: '04', countryCode: 46, country: 'Sweden', @@ -34,7 +30,6 @@ const darkIssuers: Array<{ url: new URL('http://telavox.se'), }, { - prefix: 8985220, networkCode: '20', countryCode: 852, country: 'Hong Kong, China', @@ -42,7 +37,6 @@ const darkIssuers: Array<{ url: new URL('http://iij.ad.jp'), }, { - prefix: 8988280, networkCode: '80', countryCode: 882, country: 'Germany', @@ -50,21 +44,18 @@ const darkIssuers: Array<{ url: new URL('http://1nce.com'), }, { - prefix: 89883440, networkCode: '440', countryCode: 883, country: 'Global', company: 'Truphone Limited', }, { - prefix: 898835100, networkCode: '5100', countryCode: 883, country: 'Global', company: 'Voxbone SA', }, { - prefix: 898835110, networkCode: '5110', countryCode: 883, country: 'Global', @@ -80,7 +71,7 @@ export const darkIssuersList: Mutable = darkIssuers.reduce< Mutable >((list, issuer) => { list[`${issuer.countryCode}${issuer.networkCode}`] = [ - issuer.prefix, + parseInt(`89${issuer.countryCode}${issuer.networkCode}`, 10), issuer.networkCode, issuer.countryCode, issuer.country, diff --git a/src/list.ts b/src/list.ts index 241ff1d..00ec5ad 100644 --- a/src/list.ts +++ b/src/list.ts @@ -1,6 +1,6 @@ /* Auto-generated file. Do not change! */ -/* Generated: 2024-12-20T00:29:30.292Z */ +/* Generated: 2024-12-20T00:30:56.126Z */ import type { IssuerList } from './types.js'