e118-iin-list
Advanced tools
Comparing version 1.3.0 to 1.3.1
@@ -19,2 +19,3 @@ "use strict"; | ||
const iin = parseInt(IssuerIdentifierNumber[0].replace(/ /g, ''), 10); | ||
const key = `${countryCode}${issuerIdentifierNumber}`; | ||
const emailRegEx = /e-mail ?: ?(.+)/i; | ||
@@ -33,3 +34,3 @@ const companyURLs = Contact.reduce((urls, s) => { | ||
...list, | ||
[iin]: { | ||
[key]: { | ||
iin, | ||
@@ -46,3 +47,3 @@ countryCode: parseInt(countryCode, 10), | ||
`import {IssuerList} from './types';`, | ||
`export const iinRegEx = /^(${Object.keys(list).join('|')})/;`, | ||
`export const iinRegEx = /^89(${Object.keys(list).join('|')})/;`, | ||
`export const e118IINList: IssuerList = ${JSON.stringify(list, null, 2)} as const;`, | ||
@@ -49,0 +50,0 @@ ].join('\n\n'), { parser: 'typescript' }), 'utf-8'); |
@@ -9,5 +9,3 @@ "use strict"; | ||
return Option_1.none; | ||
const iin = iinMatch[0]; | ||
const issuer = list_1.e118IINList[iin]; | ||
return Option_1.some(issuer); | ||
return Option_1.some(list_1.e118IINList[iinMatch[1]]); | ||
}; |
{ | ||
"name": "e118-iin-list", | ||
"version": "1.3.0", | ||
"version": "1.3.1", | ||
"description": "List of issuer identifier numbers for the international telecommunication charge card (ITU-T E.118)", | ||
@@ -5,0 +5,0 @@ "main": "dist/index.js", |
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is too big to display
816248
19305