diff --git a/biome.json b/biome.json index 7f883a01..43734cce 100644 --- a/biome.json +++ b/biome.json @@ -1,5 +1,5 @@ { - "$schema": "https://biomejs.dev/schemas/1.3.3/schema.json", + "$schema": "https://biomejs.dev/schemas/1.7.2/schema.json", "organizeImports": { "enabled": true }, diff --git a/bun.lockb b/bun.lockb index 9fb03f6b..aaba7c46 100755 Binary files a/bun.lockb and b/bun.lockb differ diff --git a/lib/utils/numberReplace.ts b/lib/utils/numberReplace.ts index 17a49290..8345baee 100644 --- a/lib/utils/numberReplace.ts +++ b/lib/utils/numberReplace.ts @@ -1,4 +1,4 @@ -import { ParserOptions } from '../parser' +import type { ParserOptions } from '../parser' import { normalize } from './normalize' export const numberReplace = diff --git a/lib/validator.ts b/lib/validator.ts index 0e276e9b..a18c5d67 100644 --- a/lib/validator.ts +++ b/lib/validator.ts @@ -10,7 +10,9 @@ const findNumbersByLength = ( digits: number, trailingDigits: number, ): RegExp => { - const areaCodes = RIKTNUMMER.map((phoneNumber) => parseInt(phoneNumber, 10)) + const areaCodes = RIKTNUMMER.map((phoneNumber) => + Number.parseInt(phoneNumber, 10), + ) .map((phoneNumber) => `0${phoneNumber.toString()}`) .filter((phoneNumber) => phoneNumber.length === digits) .join('|') diff --git a/package.json b/package.json index d5bc98b1..9a704b0e 100644 --- a/package.json +++ b/package.json @@ -44,10 +44,10 @@ }, "homepage": "https://github.com/opendevtools/telefonnummer#readme", "devDependencies": { - "@biomejs/biome": "1.5.3", - "bun-types": "1.0.25", + "@biomejs/biome": "1.7.2", + "bun-types": "1.1.7", "rimraf": "5.0.5", - "typescript": "5.3.3" + "typescript": "5.4.5" }, "type": "module" }