Skip to content

Commit

Permalink
refactor: remove unneeded prefix
Browse files Browse the repository at this point in the history
  • Loading branch information
coderbyheart committed Dec 20, 2024
1 parent f5b1f5f commit b18b653
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 11 deletions.
11 changes: 1 addition & 10 deletions src/darkIssuers.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,67 +4,58 @@ 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
company: string
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',
company: 'eRate Sverige AB',
url: new URL('http://telavox.se'),
},
{
prefix: 8985220,
networkCode: '20',
countryCode: 852,
country: 'Hong Kong, China',
company: 'Internet Initiative Japan Inc.',
url: new URL('http://iij.ad.jp'),
},
{
prefix: 8988280,
networkCode: '80',
countryCode: 882,
country: 'Germany',
company: '1NCE GmbH',
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',
Expand All @@ -80,7 +71,7 @@ export const darkIssuersList: Mutable<IssuerList> = darkIssuers.reduce<
Mutable<IssuerList>
>((list, issuer) => {
list[`${issuer.countryCode}${issuer.networkCode}`] = [
issuer.prefix,
parseInt(`89${issuer.countryCode}${issuer.networkCode}`, 10),
issuer.networkCode,
issuer.countryCode,
issuer.country,
Expand Down
2 changes: 1 addition & 1 deletion src/list.ts
Original file line number Diff line number Diff line change
@@ -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'

Expand Down

0 comments on commit b18b653

Please sign in to comment.